2004 rhys "alpine vineyard" santa cruz mountains estate pinot noir is made from the same fruit as which wine from italian republic?
Entity Entity Entity
m.0gdp4t5 m.02_wm4c m.045q4g7
2005 Brancaia Il Blu 2005 Baricci Rosso di Montalcino Barbera d’Alba Sup. '04 Gallino
class entity class entity
wine.wine m.03rjj wine.fruit_source m.02_xsdt
wine.wine location.country wine.fruit_source wine.wine
Wine italian republic Fruit Source 2004 Rhys "Alpine Vineyard" Santa Cruz Mountains Estate Pinot Noir
none none none none
wine.wine.country wine.fruit_source.wines wine.fruit_source.wines
Country Wines Wines
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.03rjj } 
?x2 :type.object.type :wine.fruit_source . 
VALUES ?x3 { :m.02_xsdt } 
?x0 :wine.wine.country ?x1 . 
?x2 :wine.fruit_source.wines ?x0 . 
?x2 :wine.fruit_source.wines ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND wine.wine (AND (JOIN wine.wine.country m.03rjj) (JOIN (R wine.fruit_source.wines) (JOIN wine.fruit_source.wines m.02_xsdt))))