which wine from alexander valley vineyards has appellation of alexander?
Entity Entity Entity Entity Entity
m.03xkd8v m.03xkfb6 m.03xkddt m.046ccdh m.03bqh3m
2004 Alexander Valley Vineyards "Cyrus" Alexander Valley Cabernet Sauvignon 2004 Alexander Valley Vineyards "Alexander School Top of the Crop" Alexander Valley Cabernet Sauvignon 2005 Alexander Valley Vineyards Alexander Valley Estate Cabernet Sauvignon 2006 Alexander Valley Vineyards "Wetzel Family Estate" Alexander Valley Estate Pinot Noir 2006 Alexander Valley Vineyards "Sin Zin" Zinfandel
class entity entity
wine.wine m.03bqh60 m.06kyj2
wine.wine wine.wine_producer wine.appellation
Wine Alexander Valley Vineyards alexander
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.03bqh60 } 
VALUES ?x2 { :m.06kyj2 } 
?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.03bqh60) (JOIN wine.wine.appellation m.06kyj2)))