# Query disease association for target list in BigQuery

**URL:** <https://community.opentargets.org/t/query-disease-association-for-target-list-in-bigquery/755>\
**Category:** Google BigQuery/Cloud\
**Created:** [14 September 2022 15:48 UTC](https://community.opentargets.org/t/query-disease-association-for-target-list-in-bigquery/755 "2022-09-14T15:48:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hcornu](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/hcornu/32/716_2.png) [@hcornu](https://community.opentargets.org/u/hcornu)\
**Post date:** [15 September 2022 09:14 UTC](https://community.opentargets.org/t/query-disease-association-for-target-list-in-bigquery/755/2 "2022-09-15T09:14:40Z")

</div>

Hi @CGW, and welcome to the Open Targets Community! 🥳

Please could you take a look at the following posts, and see if they answer your question?

> [@Get marketed drugs for a set of targets with BigQuery](https://community.opentargets.org/t/get-marketed-drugs-for-a-set-of-targets-with-bigquery/101):
>
> At Open Targets, we have several ways of accessing our data. In this post, we illustrate how to make the best use of it from the BigQuery workspace. Batch search using BigQuery This query is an example of how to extract the drugs that are on the market for a restricted list of targets. SELECT targets.approvedSymbol, targets.id, ARRAY\_AGG(drugs.id) AS drugIds FROM `open-targets-prod.platform.molecule` AS drugs, UNNEST(linkedTargets.rows.list) AS linkedTarget JOIN `open-targets-prod.pla…

> [@How to find targets associated with a disease using the new GraphQL API or Google BigQuery](https://community.opentargets.org/t/how-to-find-targets-associated-with-a-disease-using-the-new-graphql-api-or-google-bigquery/122):
>
> Problem The Open Targets helpdesk recently received the following question: I have used the older version of the Open Targets Platform (21.02), and the previous API technique, to get targets associated with disease and their overall scores. But now after updating (to version 21.04) I can’t do it with the new GraphQL API technique. Could you help me with this? How can I get associated targets with disease and their overall scores using the new GraphQL API? To make it easier, I need to get t…

> [@Returning all associations data using the Platform API](https://community.opentargets.org/t/returning-all-associations-data-using-the-platform-api/324/2):
>
> Hello @anticancer.org.uk! wave Welcome to the Open Targets Community! tada Thank you for submitting your question about how to access associations data using our GraphQL API. I have responded below and also included two other ways of accessing the data for more systematic and comprehensive queries. How do I access associations data using the Open Targets Platform GraphQL API? To access all associations data for a given target or disease/phenotype through our GraphQL API, you you will nee…

  

There are also some [sample queries available in our documentation](https://platform-docs.opentargets.org/data-access/google-bigquery), as well as in [our Google Cloud dataset homepage](https://console.cloud.google.com/marketplace/product/bigquery-public-data/open-targets-platform?project=open-targets-prod).

  

These should help you get started 😃

---

_[View the full topic](https://community.opentargets.org/t/query-disease-association-for-target-list-in-bigquery/755)._
