query 1 and 3 fixed