loop hits_100m_single 10000 5000 20000 right(URL, 16) substring(URL, greatest(minus(plus(length(URL), 1), 16), 1)) SELECT count() FROM hits_100m_single WHERE NOT ignore({func})