which countries have participated the olympic games held at new york, ny?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0345h m.03gj2 m.06bnz m.07ssc m.0f8l9c m.015fr m.03_3d m.03rjj m.03rk0 m.09c7w0 m.0d05w3 m.0chghy m.06qd3 m.047lj m.02jx1 m.026xwdk
Germany Hungary Russia United Kingdom France Brazil Japan Italy India United States of America China Australia South Korea Kazakhstan England Independent Olympic Participants
class class class entity
olympics.olympic_participating_country olympics.olympic_games olympics.olympic_city_bid m.02_286
olympics.olympic_participating_country olympics.olympic_games olympics.olympic_city_bid olympics.olympic_bidding_city
Olympic participating country Olympic games Olympic city bid new york, ny
none none none none
olympics.olympic_games.participating_countries olympics.olympic_games.bidding_cities olympics.olympic_bidding_city.olympics_bid_on
Participating countries Bidding cities Olympics bid on
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_participating_country . 
?x1 :type.object.type :olympics.olympic_games . 
?x2 :type.object.type :olympics.olympic_city_bid . 
VALUES ?x3 { :m.02_286 } 
?x1 :olympics.olympic_games.participating_countries ?x0 . 
?x1 :olympics.olympic_games.bidding_cities ?x2 . 
?x3 :olympics.olympic_bidding_city.olympics_bid_on ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND olympics.olympic_participating_country (JOIN (R olympics.olympic_games.participating_countries) (JOIN olympics.olympic_games.bidding_cities (JOIN (R olympics.olympic_bidding_city.olympics_bid_on) m.02_286))))