Which is the democratic republic that is replaced by the Thirteen Colonies?
 select distinct ?obj where { wd:Q179997 wdt:P1366 ?obj . ?obj wdt:P31 wd:Q5255892 } 
thirteen colonies: Q179997 democratic republic: Q5255892