EW 2522 then QR 4704 at Barcelona
Stuttgart → Barcelona → Porto
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
08:35QR 4704 to Porto leaves the gate
12 h 35 apart on the timetable, overnight
QR 4704 leaves 12 h 35 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.