Class ExampleQuery (0.3.0)

ExampleQuery(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
sql_query str
Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'". This field is a member of oneof_ query.
natural_language_question str
Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?".