which ancient country had capital as thanjavur and poompuhar ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_capital dbr_Thanjavur sep_dot var_uri dbo_capital dbr_Poompuhar sep_dot var_uri a dbo_Country brack_close