What is the {capital} for {work location} of {Vladimir Lenin}
What is the title of the capital city where Vladimir Lenin worked?
What is the name of the capital city where Vladimir Lenin worked?
SELECT DISTINCT ?n WHERE { resource:Vladimir_Lenin property:work_location ?n . ?n rdf:type ontology:capital }
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/Q5119> } 
 select distinct ?obj where { wd:Q1394 wdt:P937 ?obj . ?obj wdt:P31 wd:Q5119 } 
Moscow