<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prevent_rewrite(expr, client=None):
 """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 """

    if client is None:
        client, = ibis.client.find_backends(expr)
    query = client.compile(expr)
    return ops.SQLQueryResult(query, expr.schema(), client).to_expr()