What is the {chemical compound} for {medical condition treated} of {pain}
[]
Which is the chemical compound for treating the medical condition of pain?
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:chemical_compound . ?l property:medical_condition_treated resource:pain }
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/Q81938> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q11173> } 
 select distinct ?sbj where { ?sbj wdt:P2175 wd:Q81938 . ?sbj wdt:P31 wd:Q11173 } 
morphine phenol droperidol codeine ibuprofen ethyl ether lidocaine topiramate mitoxantrone diclofenac capsaicin nalbuphine mefenamic acid hydromorphone etidocaine valdecoxib dihydrocodeine L-menthol oxycodone (R,R) tramadol buprenorphine celecoxib chloroethane ketoprofen indomethacin gabapentin rofecoxib hydrocodone methocarbamol dexmedetomidine prilocaine antipyrine (-)-pentazocine cidoxepin carisoprodol levomepromazine dibucaine remifentanil sufentanil maprotiline etomidate phenacetin desflurane tetracaine phenyl salicylate articaine propofol benzocaine promethazine trichloromonofluoromethane desipramine oxymorphone tizanidine procaine nabumetone dyclonine triflupromazine venlafaxine dezocine butorphanol naproxen pramoxine salsalate etodolac bromfenac salicylamide L-morphan diflunisal meclofenamic acid chloroprocaine phenazopyridine levobupivacaine orphenadrine chlorzoxazone butacaine chlorphenesin cyclobenzaprine metaxalone trolamine salicylate α-methylnoradrenaline magnesium salicylate tetrahydrate ketorolac tromethamine strontium chloride sr-89 clonidine hydrochloride aspirin cocaine pethidine paracetamol imipramine amitriptyline clomipramine nortriptyline