What is the {megacity} for {work location} of {Vladimir Lenin}
What is the city area of Vladimir Lenin
What is the city location of Vladimir Lenin
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:megacity . resource:Vladimir_Lenin property:work_location ?j }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1394> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937> . ?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/Q174844> } 
 select distinct ?obj where { wd:Q1394 wdt:P937 ?obj . ?obj wdt:P31 wd:Q174844 } 
Moscow