spaghetti is a typical ingredient in the dishes of which cuisines?
Entity
m.09y2k2
Italian food
class class entity
dining.cuisine food.dish m.0772h
dining.cuisine food.dish food.ingredient
Cuisine Dish Spaghetti
none none none
dining.cuisine.dishes food.dish.ingredients
Dishes Typical ingredients
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 :dining.cuisine . 
?x1 :type.object.type :food.dish . 
VALUES ?x2 { :m.0772h } 
?x0 :dining.cuisine.dishes ?x1 . 
?x1 :food.dish.ingredients ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND dining.cuisine (JOIN dining.cuisine.dishes (JOIN food.dish.ingredients m.0772h)))