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

[source, python]
----
resp = client.sql.query(
    format="txt",
    query="SELECT * FROM library ORDER BY page_count DESC",
    filter={
        "range": {
            "page_count": {
                "gte": 100,
                "lte": 200
            }
        }
    },
    fetch_size=5,
)
print(resp)
----
