

Is this planned journey allowed?
I am planning to do: Glasgow to Dublin to Doha to Beijing to Osaka. I understand this one will be fine, and I plan to use the 240-hour transit-free policy since I want to visit Beijing for a few days. However, my question is the journey following this one. So after my time in Japan (2 weeks later), I return back home (Glasgow) via: Tokyo to Beijing to Doha to Dublin to Glasgow. Would this be allowed?
I ask this in the sense of:
1: using the visa-free transit policy twice within 2 weeks of each other
2: I'm going back to Doha (Qatar) on the second journey. Would their system indicate I was already there two weeks prior and that I have to go to another country, not Qatar, even though it's a completely different journey and still only used for transit since my end destination is Glasgow (Scotland)?
3. Stupid Question, but I imagine if you have someone travelling with yo,u it doesn't matter and still the same rules?
Your help will be much appreciated. Thanks