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

[source, python]
----
resp = client.sql.query(
    format="txt",
    query="SELECT YEAR(release_date) AS year FROM library WHERE page_count > 300 AND author = 'Frank Herbert' GROUP BY year HAVING COUNT(*) > 0",
)
print(resp)
----
