What is the {world war} for {has cause} of {Treaty of Versailles}
Which world war did the Treaty of Versailles take place after?
Treaty of Versailles is the aftermath of which world war?
SELECT DISTINCT ?w WHERE { ?w property:has_cause resource:Treaty_of_Versailles . ?w rdf:type ontology:world_war }
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/P828> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8736> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q103495> } 
 select distinct ?sbj where { ?sbj wdt:P828 wd:Q8736 . ?sbj wdt:P31 wd:Q103495 } 
World War II