AA 40 then QR 3646 at Barcelona
Chicago → Barcelona → Almeria
Timetable, Barcelona time
09:35AA 40 from Chicago at the gate
07:30QR 3646 to Almeria leaves the gate
21 h 55 apart on the timetable, overnight
QR 3646 leaves 21 h 55 after AA 40 arrives on the timetable: more than half a day, so not a connection we count.