what class of drugs is nitrogen binding agent?
Entity
m.05jqy
Nonsteroidal anti-inflammatory drug
class class entity
medicine.drug_class medicine.drug m.0hqyvy7
medicine.drug_class medicine.drug medicine.drug_class
Drug class Drug Nitrogen Binding Agent
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.0hqyvy7 } 
?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.0hqyvy7)))