def sql_query(node, sql, quiet=False):
    """
    Wrapper around NoisePageServer.execute() when results are expected.

    Parameters
    ----------
    node : NoisePageServer
        The node to execute the SQL on.
    sql : str
        The SQL string to be executed.

    Returns
    -------
    The result rows from executing the SQL.
    """
    return node.execute(sql, expect_result=True, quiet=quiet)