what medical treatment is contraindication for temazepam?
Entity Entity Entity
m.01xcnj m.0hb2r m.02z1hl3
Hypersensitivity Breastfeeding Driving
class class class entity
medicine.contraindication medicine.medical_treatment medicine.contraindication m.01jskm
medicine.contraindication medicine.medical_treatment medicine.contraindication medicine.medical_treatment
Contraindication Medical Treatment Contraindication Temazepam
none none none none
medicine.medical_treatment.contraindications medicine.contraindication.contraindication_for medicine.contraindication.contraindication_for
Contraindications Contraindication for Contraindication for
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.contraindication . 
?x1 :type.object.type :medicine.medical_treatment . 
?x2 :type.object.type :medicine.contraindication . 
VALUES ?x3 { :m.01jskm } 
?x1 :medicine.medical_treatment.contraindications ?x0 . 
?x2 :medicine.contraindication.contraindication_for ?x1 . 
?x2 :medicine.contraindication.contraindication_for ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND medicine.contraindication (JOIN (R medicine.medical_treatment.contraindications) (JOIN (R medicine.contraindication.contraindication_for) (JOIN medicine.contraindication.contraindication_for m.01jskm))))