Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Teibit
.
We want a table that for each IAL lists all users that edit on the website and the number of contributions they’ve made in descending order.
Toggle Highlighting
SQL
( SELECT 'Simple English' AS IAL, simple_rev.rev_user AS User_ID, COUNT(simple_rev.rev_user) AS Contributions FROM simplewiki_p.revision AS simple_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Esperanto' AS IAL, eo_rev.rev_user AS User_ID, COUNT(eo_rev.rev_user) AS Contributions FROM eowiki_p.revision AS eo_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Ido' AS IAL, io_rev.rev_user AS User_ID, COUNT(io_rev.rev_user) AS Contributions FROM iowiki_p.revision AS io_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Interlingua' AS IAL, ia_rev.rev_user AS User_ID, COUNT(ia_rev.rev_user) AS Contributions FROM iawiki_p.revision AS ia_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Novial' AS IAL, nov_rev.rev_user AS User_ID, COUNT(nov_rev.rev_user) AS Contributions FROM novwiki_p.revision AS nov_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Interlingue' AS IAL, ie_rev.rev_user AS User_ID, COUNT(ie_rev.rev_user) AS Contributions FROM iewiki_p.revision AS ie_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 ) UNION ( SELECT 'Volapük' AS IAL, vo_rev.rev_user AS User_ID, COUNT(vo_rev.rev_user) AS Contributions FROM vowiki_p.revision AS vo_rev GROUP BY User_ID ORDER BY Contributions DESC LIMIT 3 );
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...