added average Queries