pub fn has_aggregates(stmt: &Statement) -> bool
Check if a SELECT statement contains any aggregate functions.