what kind of ingredient does waldorf salad need which includes friut?
Entity
m.014j1m
Apple tree
class entity entity
food.ingredient m.02xwb m.01c5nc
food.ingredient food.ingredient food.dish
Ingredient friut Waldorf salad
none none none
food.ingredient.more_specific_ingredient food.dish.ingredients
More specific ingredient 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 :food.ingredient . 
VALUES ?x1 { :m.02xwb } 
VALUES ?x2 { :m.01c5nc } 
?x1 :food.ingredient.more_specific_ingredient ?x0 . 
?x2 :food.dish.ingredients ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND food.ingredient (AND (JOIN (R food.ingredient.more_specific_ingredient) m.02xwb) (JOIN (R food.dish.ingredients) m.01c5nc)))