Spring Health Interview Question

Easy code in SQL and python.