There is no sensible answer. It is just about one country trusting another country's screening.
But if you want to see where the origin of the flight really matters, look at SIN. Some flights get screened when they come in, some do not and passengers coming off just mix with the passengers getting ready to depart (SIN has security at the gate).