-- { echoOn } SELECT f1, f2['2'], count() FROM t1 GROUP BY 1,2 order by 1,2; 1 1000111 SELECT f1, f3['2'], count() FROM t1 GROUP BY 1,2 order by 1,2; 1 1000111 SELECT f1, f4[2], count() FROM t1 GROUP BY 1,2 order by 1,2; 1 0 1000111