added queries 8 and 9