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
MisterSynergy
.
to be used locally in order to identify deleted items that are in use at Wikimedia Commons via SDC; this usage is difficult to track – only via WCQS in fact – and thus often overlooked during a Wikidata deletion process
Toggle Highlighting
SQL
WITH my_cte AS ( SELECT log_id, MAX(log_timestamp) AS max_log_timestamp FROM logging WHERE log_namespace=0 AND log_type='delete' AND log_action='delete' AND log_title LIKE 'Q%' GROUP BY log_id ) SELECT l.log_title, a.actor_name, l.log_timestamp FROM logging_userindex AS l JOIN actor_logging AS a ON l.log_actor=a.actor_id INNER JOIN my_cte AS g ON l.log_id=g.log_id ORDER BY CAST(SUBSTRING(l.log_title, 2) AS int) ASC;
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...