which diabetes treatments has pains side effects?
Entity
m.07ypgv
Pramlintide
class class entity entity
medicine.medical_treatment medicine.symptom m.0849qj m.062t2
medicine.medical_treatment medicine.symptom medicine.disease medicine.symptom
Medical Treatment Symptom diabetes pains
none none none none
medicine.medical_treatment.side_effects medicine.medical_treatment.used_to_treat medicine.symptom.parent_symptom
Side effects Used To Treat Parent Symptom
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.medical_treatment . 
?x1 :type.object.type :medicine.symptom . 
VALUES ?x2 { :m.0849qj } 
VALUES ?x3 { :m.062t2 } 
?x0 :medicine.medical_treatment.side_effects ?x1 . 
?x0 :medicine.medical_treatment.used_to_treat ?x2 . 
?x1 :medicine.symptom.parent_symptom ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND medicine.medical_treatment (AND (JOIN medicine.medical_treatment.side_effects (JOIN medicine.symptom.parent_symptom m.062t2)) (JOIN medicine.medical_treatment.used_to_treat m.0849qj)))