What is {comes before} of {comes after} of {Estonian Soviet Socialist Republic} ?
WHO COMES BEFORE OR AFTER ESTONIAN SOVIET SOCIALIST REPBULIC?
WHO COMES BEFORE OR AFTER ESTONIAN SOVIET SOCIALIST REPBULIC?
SELECT ?g WHERE { ?o property:followed_by ?g . resource:Estonian_Soviet_Socialist_Republic property:follows ?o }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q130280> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P155>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P156> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q130280 wdt:P155 ?X . ?X wdt:P156 ?answer}
occupation of the Baltic states Estonian Soviet Socialist Republic