add where.
add groupBy.