BT 877 then QR 4704 at Barcelona
Tallinn → Barcelona → Porto
Timetable, Barcelona time
10:30BT 877 from Tallinn at the gate
08:35QR 4704 to Porto leaves the gate
22 h 05 apart on the timetable, overnight
QR 4704 leaves 22 h 05 after BT 877 arrives on the timetable: more than half a day, so not a connection we count.