same column appears in key and value like select id,count(id) group by id; complex expr in sum select sum(if(xxx));