AA 40 then EC 7173 at Barcelona
Chicago → Barcelona → Berlin
Timetable, Barcelona time
09:35AA 40 from Chicago at the gate
07:20EC 7173 to Berlin leaves the gate
21 h 45 apart on the timetable, overnight
EC 7173 leaves 21 h 45 after AA 40 arrives on the timetable: more than half a day, so not a connection we count.