What is the {democratic republic} for {replaced by} of {Thirteen Colonies}
[]
Which is the democratic republic that is replaced by the Thirteen Colonies?
SELECT DISTINCT ?g WHERE { resource:Thirteen_Colonies property:replaced_by ?g . ?g rdf:type ontology:democratic_republic }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q179997> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1366> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5255892> } 
 select distinct ?obj where { wd:Q179997 wdt:P1366 ?obj . ?obj wdt:P31 wd:Q5255892 } 
United States of America