gabriel restaurants and sbarro both serve what kind of cuisine?
Entity
m.09y2k2
Italian food
class entity entity
dining.cuisine m.05bgj8b m.079v62
dining.cuisine dining.restaurant dining.restaurant
Cuisine Gabriel Restaurants Sbarro
none none none
dining.cuisine.restaurant dining.restaurant.cuisine
Restaurants Cuisine
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 . 
VALUES ?x1 { :m.05bgj8b } 
VALUES ?x2 { :m.079v62 } 
?x0 :dining.cuisine.restaurant ?x1 . 
?x2 :dining.restaurant.cuisine ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND dining.cuisine (AND (JOIN dining.cuisine.restaurant m.05bgj8b) (JOIN (R dining.restaurant.cuisine) m.079v62)))