Here is a HTML rendition of the notes for a short course on how to use ADQL from scripts using make and STILTS.
It’s allowed to cut-and-paste the queries…
Also, there’s a PDF version that you can print and keep as a makeshift reference.
To work with this course you need STILTS and make preinstalled to your machine. Make should be packaged for most *IX systems. We don’t keep track to the Windows world and highly recommend the usage of a reasonable OS.
For a full introduction into make goto https://www.gnu.org/software/make/ Find the STILTS documentation here : http://www.star.bris.ac.uk/ mbt/stilts/