pub fn uses_aggregate(stmt: &SelectStatement) -> bool
True if this statement should go through the aggregate path.