Update lab.sql

Fixed Q5 and Q7