Amelia interview question

Cobol, join queries