SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/place> <http://dbpedia.org/resource/New_York_City> . ?x <http://dbpedia.org/property/starring> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Play>}
Which actors have performed in plays performed in New York?
SELECT DISTINCT ?d WHERE { ?p rdf:type ontology:Play . ?p property:place resource:New_York_City . ?p property:starring ?d }
Mila Kunis, Adrian Grenier, Joey McIntyre
The cast members of the play in New York City are [Mila Kunis, Adrian Grenier, Joey McIntyre].
[Mila Kunis, Adrian Grenier, and Joy McIntyre] star in New York.