nyc is the subject for which artwork?
Entity Entity Entity Entity Entity Entity
m.061m7h m.05bnx35 m.04tn84x m.0ch2_r8 m.0gkmrtx m.0h8bp07
Nighthawks Flags on Fifty-Seventh Street Old-timer, keeping up with the boys Office at Night The Soul of the Soulless City ('New York - an Abstraction') End of 14th Street Crosstown Line
class entity
visual_art.artwork m.02_286
visual_art.artwork visual_art.art_subject
Artwork nyc
none none
visual_art.artwork.art_subject
Art Subject
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 :visual_art.artwork . 
VALUES ?x1 { :m.02_286 } 
?x0 :visual_art.artwork.art_subject ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND visual_art.artwork (JOIN visual_art.artwork.art_subject m.02_286))