which wine of the leap wine cellars has the appellation of napa valley?
Entity
m.045rlxs
2005 Stag's Leap Wine Cellars "Artemis" Napa Valley Cabernet Sauvignon
class entity entity
wine.wine m.09nd1x m.026b9gc
wine.wine wine.wine_producer wine.appellation
Wine leap wine cellars napa valley
none none none
wine.wine_producer.wines wine.wine.appellation
Wines Appellation
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.wine . 
VALUES ?x1 { :m.09nd1x } 
VALUES ?x2 { :m.026b9gc } 
?x1 :wine.wine_producer.wines ?x0 . 
?x0 :wine.wine.appellation ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND wine.wine (AND (JOIN (R wine.wine_producer.wines) m.09nd1x) (JOIN wine.wine.appellation m.026b9gc)))