add implementations for queries 7-11
create new test graphs for every query, to make testing easier