SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/headquarter> <http://dbpedia.org/resource/New_York_City> . ?uri <http://dbpedia.org/ontology/company> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Which sitcoms are made by a company headquartered in NYC?
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Television_Show . ?j property:company ?u . ?u property:headquarter resource:New_York_City }
answer
The television shows whose company's admin HQ is in New York City are [answer].
TV shows headquartered in New York are [more].