what class of drugs is benzodiazepines?
Entity Entity Entity Entity Entity Entity
m.07rb5 m.014yf3 m.011vz m.03psr m.0199xw m.0hqx5nq
Tricyclic antidepressant Antiemetic Anxiolytic Hypnotic Atypical antipsychotic Benzodiazepine Antagonist
class class entity
medicine.drug_class medicine.drug m.01j4k
medicine.drug_class medicine.drug medicine.drug_class
Drug class Drug benzodiazepines
none none none
medicine.drug_class.drugs medicine.drug.drug_class
Drugs Pharmacological class
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :medicine.drug_class . 
?x1 :type.object.type :medicine.drug . 
VALUES ?x2 { :m.01j4k } 
?x0 :medicine.drug_class.drugs ?x1 . 
?x1 :medicine.drug.drug_class ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND medicine.drug_class (JOIN medicine.drug_class.drugs (JOIN medicine.drug.drug_class m.01j4k)))