# Class ExampleQuery (0.13.1)

0.13.1 (latest) 0.13.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.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.
Currently only used for BigQuery data sources.

.. _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?". |
| `parameters` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1.types.QueryParameter]` Optional. The list of query parameters. Example: The parameterized SQL query "SELECT \\\* FROM my_table WHERE id = @id" can be matched with any value of id. |