CVS Health Interview Question

3 SQL queries were given