SQL Queries Qn 8 and 10 unfinished