for diseases treated by viagra, what is the risk factor?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.01lys3 m.02y0js m.06xqq m.0lp66 m.02gm18 m.01hbgs m.0c58k m.0dcqh m.0dcsx m.0g02vk m.02k6hp m.02bft m.0jpmt m.071d3 m.04p93k m.012lyw m.05mlh0 m.0k95h m.0fltx m.012tt4 m.0k_9 m.012jc m.02zr3h m.025s_q_ m.04nk42_ m.06z31wj m.074d1q m.03xdwt m.01c896 m.07749v1
Substance-related disorder Stroke Schizophrenia Atherosclerosis Peripheral artery disease Old age Diabetes mellitus Multiple sclerosis Alzheimer's disease Parkinson's disease Cardiovascular disease Major depression Tobacco smoking Sleep apnea Adverse drug reaction Stress Sedentary lifestyle Hypertension Obesity Peyronie's disease Anxiety Alcoholism Generalized anxiety disorder Panic disorder High-fat diet High sodium diet Prostatectomy Pituitary adenoma Personality disorder Prolonged bicycling
class class entity
medicine.risk_factor medicine.disease m.07_71
medicine.risk_factor medicine.disease medicine.medical_treatment
Risk Factor Disease or medical condition viagra
none none none
medicine.disease.risk_factors medicine.disease.treatments
Risk Factors Treatments
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.risk_factor . 
?x1 :type.object.type :medicine.disease . 
VALUES ?x2 { :m.07_71 } 
?x1 :medicine.disease.risk_factors ?x0 . 
?x1 :medicine.disease.treatments ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND medicine.risk_factor (JOIN (R medicine.disease.risk_factors) (JOIN medicine.disease.treatments m.07_71)))