revising homework sql queries