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 (WMDE)
.
Toggle Highlighting
SQL
SELECT SUM(comment_text RLIKE '\\[\\[\\S*[PQ][1-9]\\d*\\]\\]') AS benefiting, -- ENTITY_ID_SUMMARY_REGEXP COUNT(*) AS total, 100 * SUM(comment_text RLIKE '\\[\\[\\S*[PQ][1-9]\\d*\\]\\]') / COUNT(*) AS percent -- unlike SPARQL, SQL doesn’t allow "100 * benefiting / total, here :( FROM recentchanges JOIN comment_recentchanges ON rc_comment_id = comment_id WHERE rc_type IN (0, 1) -- RC_EDIT, RC_NEW AND rc_namespace NOT IN (0, 120, 146) -- Items, Properties, Lexemes AND '20241201000000' <= rc_timestamp AND rc_timestamp < '20241208000000';
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...