What is {is in the voivodeship of} of {Beni Suef Governorate}, that has {diplomatic relation} is {South Korea} ?
What is Beni Suef Governorate's voivodeship with a diplomatic relationship with South Korea
What is the voivodeship of Beni Suef Governorate that has diplomatic relation to South Korea?
SELECT ?u WHERE { ?u property:diplomatic_relation resource:South_Korea . resource:Beni_Suef_Governorate property:located_in_the_administrative_territorial_entity ?u }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q30683> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?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/P530> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q884> . }
SELECT ?answer WHERE { wd:Q30683 wdt:P131 ?answer . ?answer wdt:P530 wd:Q884}
Egypt