I am running flink sql in flink version 1.12.0 and batch mode,
select app_id, count(case cnt when 1 then 1 end ), count(case cnt > 1 then 1 end ) from xxx