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
Lucas Werkmeister
.
The templates of the Wikidata Lexeme Forms tool that are used most often, as tracked in the edit summary.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT REGEXP_REPLACE(comment_text, '.*\\|([^[]*)]].*', '\\1') AS template, SUM(count) AS total FROM comment JOIN ( SELECT rev_comment_id, COUNT(*) AS count FROM change_tag JOIN revision ON ct_rev_id = rev_id WHERE ct_tag_id IN ( SELECT ctd_id FROM change_tag_def WHERE ctd_name IN ('OAuth CID: 1109', 'OAuth CID: 1704') ) GROUP BY rev_comment_id ) AS counts ON comment_id = rev_comment_id GROUP BY REGEXP_REPLACE(comment_text, '.*\\|([^[]*)]].*', '\\1') ORDER BY total DESC;
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...