This query is marked as a draft This query has been published by Zache.

SQL

x
 
SELECT
    "mies" as category,
    sum(1) as c,
    group_concat(user_name) 
FROM 
    user
WHERE
    user_editcount>0
    AND (lower(user_name) like "%mies")
UNION    
SELECT
    "nainen" as category,
    sum(1) as c,
    group_concat(user_name) 
FROM 
    user
WHERE
    user_editcount>0
    AND (lower(user_name) like "%nainen")
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...