Agilysys Interview Question: some SQL queries | Glassdoor