barley hosts which plant disease?
Entity Entity Entity Entity Entity Entity
m.02pn8yb m.0ch98v8 m.0283bjw m.02pmbdg m.0cgwqjd m.02ptms1
Barley stem rust Stem rust Eyespot Leaf rust Sharp eyespot Powdery mildew
class class entity
biology.plant_disease biology.plant_disease_triangle m.09gtx
biology.plant_disease biology.plant_disease_triangle biology.plant_disease_host
Plant Disease Plant Disease Triangle Barley
none none none
biology.plant_disease.plant_disease_triangle biology.plant_disease_triangle.host
Plant Disease Triangle Host
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 :biology.plant_disease . 
?x1 :type.object.type :biology.plant_disease_triangle . 
VALUES ?x2 { :m.09gtx } 
?x0 :biology.plant_disease.plant_disease_triangle ?x1 . 
?x1 :biology.plant_disease_triangle.host ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND biology.plant_disease (JOIN biology.plant_disease.plant_disease_triangle (JOIN biology.plant_disease_triangle.host m.09gtx)))