TK 2151 then BT 712 at Istanbul
Ankara → Istanbul → Riga
Timetable, Istanbul time
16:15TK 2151 from Ankara at the gate
16:00BT 712 to Riga leaves the gate
23 h 45 apart on the timetable, overnight
BT 712 leaves 23 h 45 after TK 2151 arrives on the timetable: more than half a day, so not a connection we count.