If a flight delay leads to a passenger missing a connecting flight, and the delay at the final destination is 3 hours or more, they have a valid claim for compensation. The flight plan needs to be all one booking for this to apply – although it does not matter if you have a mix of different airlines in that booking.