What is the {global city} for {narrative location} of {Friends}
What city does the appear "Companions" take put in?
What city does the show "Friends" take place in?
SELECT DISTINCT ?x WHERE { resource:Friends property:narrative_location ?x . ?x rdf:type ontology:global_city }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q79784> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P840> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q208511> } 
 select distinct ?obj where { wd:Q79784 wdt:P840 ?obj . ?obj wdt:P31 wd:Q208511 } 
New York City