SELECT ... FROM `<database>`.`<table>`, like in https://quarry.wmflabs.org/query/24212. This should work in the foreseeable future, during which all the replica databases are accessible on the same server.
This is bad advice. Just last week[1] one of our DBAs warned this list that that ability is not guaranteed or supported, and changing that is indeed a possibility.