What is {birth city} of {Charles IV}, that has {has states} is {Čimice} ?
What is the birth city of Charles IV which is within the state Čimice?
What is the birth city of Charles IV which is in the state Čimice?
SELECT ?f WHERE { ?f property:contains_administrative_territorial_entity resource:Čimice . resource:Charles_IV property:place_of_birth ?f }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q155669> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2440414> . }
SELECT ?answer WHERE { wd:Q155669 wdt:P19 ?answer . ?answer wdt:P150 wd:Q2440414}
Prague