STILTS tapquery \ tapurl='http://dc.zah.uni-heidelberg.de/tap' \ omode=out nupload=1 \ upload1=t1.vot upname1=tab \ out=t2.vot ofmt=vot \ adql="SELECT \ mine.*,\ tm.raj2000, tm.dej2000, tm.jmag, tm.hmag, tm.e_jmag, tm.e_hmag\ FROM tap_upload.tab AS mine\ JOIN twomass.data AS tm\ ON 1=CONTAINS(\ POINT('ICRS', tm.raj2000, tm.dej2000),\ CIRCLE('ICRS', mine.ra, mine.dec, 3/3600.))"
The STILTS tapupload arguments: