republic of chile is the country of origin of which wine?
Entity
m.02_30fq
2005 La Capitana Cabernet Sauvignon Barrel Reserve
class entity
wine.wine m.01p1v
wine.wine location.country
Wine republic of chile
none none
wine.wine.country
Country
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.01p1v } 
?x0 :wine.wine.country ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND wine.wine (JOIN wine.wine.country m.01p1v))