Gemalto Interview Question

some database queries questions.