What is the {chemical compound} for {medical condition treated} of {leprosy}
What medicine do you take for leprosy?
What medication do you take for leprosy?
SELECT DISTINCT ?g WHERE { ?g property:medical_condition_treated resource:leprosy . ?g rdf:type ontology:chemical_compound }
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/Q36956> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q11173> } 
 select distinct ?sbj where { ?sbj wdt:P2175 wd:Q36956 . ?sbj wdt:P31 wd:Q11173 } 
thalidomide clofazimine dapsone