XY 501 then PK 204 at Dubai
Jeddah → Dubai → Lahore
Timetable, Dubai time
11:15XY 501 from Jeddah at the gate
07:10PK 204 to Lahore leaves the gate
19 h 55 apart on the timetable, overnight
PK 204 leaves 19 h 55 after XY 501 arrives on the timetable: more than half a day, so not a connection we count.