Added sql query 3 solution (query3.sql)