def run_query(client, query, job_config):
    """Runs specified SQL query in BigQuery.

    Args:
        client: `google.cloud.bigquery.client.Client` instance.
        query: String containing SQL query.
        job_configuration: `QueryJobConfig` instance.

    Returns:
        Result from running the query in BigQuery.
    """
    query_job = client.query(
        query,
        job_config=job_config)
    return query_job.result()