How to organize a single query to several sql servers?
The servers are situated in different networks, connected through
  internet.


Preferably, don't do that. 

VPN and (as AceCTO suggested) linked servers if you must but if this is a query you want to run regularly, move the data. BCP it, replicate it, log ship it... just move it.