Execute a SQL query and return the results.
Usage
query(sql)
sql: str
The SQL query string to execute.
list
A list of result rows.
>>> query("SELECT * FROM users") [{'id': 1, 'name': 'Alice'}]