Implemented query aggregators and projection (Issue #8)