Run a query and wait for it to finish with the :func:`~google.cloud.bigquery.client.Client.query` method:
.. literalinclude:: ../samples/client_query.py :language: python :dedent: 4 :start-after: [START bigquery_query] :end-before: [END bigquery_query]
.. literalinclude:: ../snippets.py :language: python :dedent: 4 :start-after: [START bigquery_query_dry_run] :end-before: [END bigquery_query_dry_run]
See BigQuery documentation for more information on writing query results.
.. literalinclude:: ../snippets.py :language: python :dedent: 4 :start-after: [START bigquery_query_destination_table] :end-before: [END bigquery_query_destination_table]
See BigQuery documentation for more information on parameterized queries.
.. literalinclude:: ../snippets.py :language: python :dedent: 4 :start-after: [START bigquery_query_params_named] :end-before: [END bigquery_query_params_named]