what is the {place of publication} for {Nintendo Entertainment System} has {publication date} as {1987-0-0} ?
what was the nintendo entertainment system published in the year 1987?
Where was the Nintendo Entertainment system published in 1987?
SELECT ?c WHERE { resource:Nintendo_Entertainment_System property:publication_date ?f . ?f property:publication_date ?j . ?f property:place_of_publication ?c . FILTER ( CONTAINS ( YEAR ( ?j ) , '1987' ) ) }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q172742> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P577> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1987-0-0> .
?statement <http://www.wikidata.org/entity/P291> ?value. 
} 

SELECT ?value WHERE { wd:Q172742 p:P577 ?s . ?s ps:P577 ?x filter(contains(YEAR(?x),'1987')) . ?s pq:P291 ?value}