in which olympic games was republic of mongolia a participant?
Entity Entity Entity Entity Entity
m.03mfdg m.0sx8l m.018ctl m.0kbws m.09n48
2014 Winter Olympics 1980 Winter Olympics 2010 Winter Olympics 2008 Summer Olympics 2002 Winter Olympics
class entity
olympics.olympic_games m.04w8f
olympics.olympic_games olympics.olympic_participating_country
Olympic games republic of mongolia
none none
olympics.olympic_games.participating_countries
Participating countries
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 :olympics.olympic_games . 
VALUES ?x1 { :m.04w8f } 
?x0 :olympics.olympic_games.participating_countries ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND olympics.olympic_games (JOIN olympics.olympic_games.participating_countries m.04w8f))