What is {subitem of} of {history of Morocco}, that has {diplomatic relation} is {Russia} ?
What is the subitem of the history of Morocco, which has diplomatic relation to Russia?
What is the subitem of the history of Morocco, which has diplomatic relation to Russia?
SELECT ?q WHERE { ?q property:diplomatic_relation resource:Russia . resource:history_of_Morocco property:facet_of ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q472658> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?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/Q159> . }
SELECT ?answer WHERE { wd:Q472658 wdt:P1269 ?answer . ?answer wdt:P530 wd:Q159}