which cheese is from both the greece and republic of cyprus?
Entity
m.016kgn
Halloumi
class entity entity
food.cheese m.035qy m.01ppq
food.cheese location.country location.country
Cheese Greece republic of cyprus
none none none
food.cheese.country_of_origin food.cheese.country_of_origin
Country Of Origin Country Of Origin
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 :food.cheese . 
VALUES ?x1 { :m.035qy } 
VALUES ?x2 { :m.01ppq } 
?x0 :food.cheese.country_of_origin ?x1 . 
?x0 :food.cheese.country_of_origin ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND food.cheese (AND (JOIN food.cheese.country_of_origin m.035qy) (JOIN food.cheese.country_of_origin m.01ppq)))