which grape variety has a wine styles with grape varieties of molinara?
Entity Entity
m.03t4vk m.02pgvl
Rondinella Corvina
class class entity
wine.grape_variety food.wine_style m.02qkbfk
wine.grape_variety food.wine_style wine.grape_variety
Grape Variety Wine style Molinara
none none none
wine.grape_variety.wine_styles food.wine_style.grape_varieties
Wine styles Grape varieties
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 :wine.grape_variety . 
?x1 :type.object.type :food.wine_style . 
VALUES ?x2 { :m.02qkbfk } 
?x0 :wine.grape_variety.wine_styles ?x1 . 
?x1 :food.wine_style.grape_varieties ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND wine.grape_variety (JOIN wine.grape_variety.wine_styles (JOIN food.wine_style.grape_varieties m.02qkbfk)))