queries 6, 7