EX Raids - My theory on how EX Raid invitation algorithm works

I genuinely don’t think I will get an EX raid pass unless I am in a city at any point.

Suppose that you plan to play in sponsored gyms. Will you consider to play in gyms that have EX recently/in the past or that do not have EX in priority?