What is {diplomatic relation} of {Mongolia}, that has {has local government areas} is {Hubei} ?
Who is Mongolia in discretionary relations with, that has it nearby government in Hubei?
Who is Mongolia in diplomatic relations with, that has it local government in Hubei?
SELECT ?h WHERE { resource:Mongolia property:diplomatic_relation ?h . ?h property:contains_administrative_territorial_entity resource:Hubei }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q711> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530>. ?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/Q46862> . }
SELECT ?answer WHERE { wd:Q711 wdt:P530 ?answer . ?answer wdt:P150 wd:Q46862}
People's Republic of China