EW 2520 then QR 3518 at Barcelona
Stuttgart → Barcelona → Bilbao
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
12:40QR 3518 to Bilbao leaves the gate
22 h 15 apart on the timetable, overnight
QR 3518 leaves 22 h 15 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.