QR 3717 then FR 3039 at Barcelona
Hannover → Barcelona → Prague
Timetable, Barcelona time
12:40QR 3717 from Hannover at the gate
11:40FR 3039 to Prague leaves the gate
23 h apart on the timetable, overnight
FR 3039 leaves 23 h after QR 3717 arrives on the timetable: more than half a day, so not a connection we count.