// This file is autogenerated, DO NOT EDIT
// sql/endpoints/rest.asciidoc:433

[source, python]
----
resp = client.sql.query(
    format="json",
    query="SELECT * FROM library ORDER BY page_count DESC",
    fetch_size=5,
    columnar=True,
)
print(resp)
----
