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

[source, python]
----
resp = client.sql.query(
    format="txt",
    query="SELECT * FROM library",
    filter={
        "terms": {
            "_routing": [
                "abc"
            ]
        }
    },
)
print(resp)
----
