What is the {chemical compound} for {medical condition treated} of {bipolar disorder}
What is the drug's chemical compound used to treat bipolar disorder?
What is the chemical compound of the drug used to treat bipolar disorder
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:chemical_compound . ?n property:medical_condition_treated resource:bipolar_disorder }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2175> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q131755> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q11173> } 
 select distinct ?sbj where { ?sbj wdt:P2175 wd:Q131755 . ?sbj wdt:P31 wd:Q11173 } 
olanzapine topiramate clozapine valproic acid clonazepam quetiapine lamotrigine gabapentin carbamazepin risperidone tiagabine transclopenthixol