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
.
for https://www.wikidata.org/wiki/User:MisterSynergy/itemstats
Toggle Highlighting
SQL
USE wikidatawiki_p; -- log_type='delete'; log_action='delete|restore' -- SELECT * FROM logging WHERE log_namespace=0 AND log_type='delete' AND log_action='delete' AND log_timestamp<20150000000000 AND log_title NOT IN (SELECT page_title FROM page WHERE page_namespace=0); -- SELECT CEILING(SUBSTRING(log_title FROM 2) / 250000) AS bin, COUNT(DISTINCT log_title) AS cnt FROM logging WHERE log_namespace=0 AND log_type='delete' AND log_action='delete' AND log_title NOT IN (SELECT page_title FROM page WHERE page_namespace=0) GROUP BY bin ORDER BY bin ASC; SELECT CEILING(SUBSTRING(log_title FROM 2) / 250000) AS bin, log_title AS cnt FROM logging WHERE log_namespace=0 AND log_type='delete' AND log_action='delete' AND log_title NOT IN (SELECT page_title FROM page WHERE page_namespace=0) ORDER BY bin ASC LIMIT 100;
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...