What is the {medication} for {medical condition treated} of {pain}
WHat pharmaceutical is utilized to treat torment ?
WHat medicine is used to treat pain ?
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:medication . ?j 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/Q12140> } 
 select distinct ?sbj where { ?sbj wdt:P2175 wd:Q81938 . ?sbj wdt:P31 wd:Q12140 } 
morphine phenol droperidol codeine ibuprofen lidocaine topiramate mitoxantrone diclofenac capsaicin nalbuphine mefenamic acid hydromorphone etidocaine valdecoxib dihydrocodeine L-menthol oxycodone fentanyl (R,R) tramadol buprenorphine celecoxib ketoprofen indomethacin gabapentin rofecoxib hydrocodone methocarbamol dexmedetomidine prilocaine antipyrine (-)-pentazocine cidoxepin carisoprodol levomepromazine dibucaine remifentanil sufentanil maprotiline etomidate phenacetin desflurane tetracaine articaine propofol benzocaine promethazine desipramine oxymorphone tizanidine procaine nabumetone dyclonine triflupromazine venlafaxine dezocine butorphanol naproxen salsalate etodolac bromfenac salicylamide L-morphan diflunisal meclofenamic acid chloroprocaine phenazopyridine levobupivacaine orphenadrine chlorzoxazone chlorphenesin cyclobenzaprine metaxalone α-methylnoradrenaline clonidine hydrochloride aspirin cocaine pethidine paracetamol imipramine amitriptyline clomipramine nortriptyline