Live Tag Usage

All tags

TABLE without ID
    flattenedTags as Tags, length(rows.file.name) as Count, join(rows.file.link, ", ") as Files
FROM
    !"templates"
WHERE
    Tags
FLATTEN
    Tags as flattenedTags
GROUP BY
    flattenedTags
SORT
    rows.Count desc

Untagged

List 
    
FROM
    !"templates"
WHERE
    !Tags
SORT
    rows.Count desc