What is the {sovereign state} for {diplomatic relation} of {German Democratic Republic}
What was the sovereign state of the German Democratic Republic's diplomatic relations?
What was the sovereign state for the diplomatic relations of the German Democratic Republic?
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sovereign_state . ?u property:diplomatic_relation resource:East_Germany }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q16957> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3624078> } 
 select distinct ?sbj where { ?sbj wdt:P530 wd:Q16957 . ?sbj wdt:P31 wd:Q3624078 } 
Serbia North Korea Israel Pakistan