which ancient country had capital as taiyuan and luoyang ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_capital dbr_Taiyuan sep_dot var_uri dbo_capital dbr_Luoyang sep_dot var_uri a dbo_Country brack_close