code: def prevent_rewrite(expr, client=None):
      
      if client is None:
          client, = ibis.client.find_backends(expr)
      query = client.compile(expr)
      return ops.SQLQueryResult(query, expr.schema(), client).to_expr()
docs: Prevent optimization from happening below `expr`.
  
      Parameters
      ----------
      expr : ir.TableExpr
          Any table expression whose optimization you want to prevent
      client : ibis.client.Client, optional, default None
          A client to use to create the SQLQueryResult operation. This is useful
          if you're compiling an expression that derives from an
          :class:`~ibis.expr.operations.UnboundTable` operation.
  
      Returns
      -------
      sql_query_result : ir.TableExpr