What is {human population} of {head quarters} of {Gemäldegalerie} ?
Which { human population } is { Painting Gallery }?
Which {human population} {head quarters} is {Gemäldegalerie} ?
SELECT ?n WHERE { resource:Gemäldegalerie property:headquarters_location ?c . ?c property:population ?n }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165631> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q165631 wdt:P159 ?X . ?X wdt:P1082 ?answer}
3644826