QR 151 then AZ 2422 at Madrid
Doha → Madrid → Gran Canaria
Timetable, Madrid time
20:35QR 151 from Doha at the gate
20:10AZ 2422 to Gran Canaria leaves the gatealso KL 3382, EY 4315, SV 4742, AF 4822, AM 6827, AD 6996, SK 8374, UX 9172, TK 9398
23 h 35 apart on the timetable, overnight
AZ 2422 leaves 23 h 35 after QR 151 arrives on the timetable: more than half a day, so not a connection we count.