Quasar lenses and pairs in the VST-ATLAS and Gaia