what is the {postal code} for {South Moravian Region} has {headquarters location} as {Brno} ?
Which is the postal code for the headquarters of South Maravian Region that is located in Brno?
What is the postal code for South Maravian Region that has headquarters located in Brno?
SELECT ?q WHERE { ?q property:postal_code ?q . resource:South_Moravian_Region property:headquarters_location ?q . ?q property:headquarters_location resource:Brno }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q192697> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q14960> .
?statement <http://www.wikidata.org/entity/P281> ?value. 
} 

SELECT ?value WHERE { wd:Q192697 p:P159 ?s . ?s ps:P159 wd:Q14960 . ?s pq:P281 ?value}