Initial commit for the QueryReducer