Added sql query 2 solution (query2.sql)