Fixed aggregate queries.