QR 3702 then FR 3193 at Barcelona
Berlin → Barcelona → Riga
Timetable, Barcelona time
21:00QR 3702 from Berlin at the gate
19:40FR 3193 to Riga leaves the gate
22 h 40 apart on the timetable, overnight
FR 3193 leaves 22 h 40 after QR 3702 arrives on the timetable: more than half a day, so not a connection we count.