Queries 7a, 7b, 7f implemented