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
Matěj Suchánek
.
This query lists items with no sitelinks which had some sitelinks before, but they were removed. It has its testing alternative at https://quarry.wmflabs.org/query/1269
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT CONCAT('* [[User:',rev_user_text,'|]] [[Special:Diff/',rev_id,'|deleted]] a sitelink from [[Q',epp_entity_id,"]] with comment: ''", REPLACE(REPLACE(REPLACE(rev_comment,' */','}}'),'/* wbsetsitelink-remove:','{{int:wikibase-item-summary-wbsetsitelink-remove|'),"''"),'}} ','}}: '), rev_timestamp FROM revision JOIN page ON page_id = rev_page JOIN wb_entity_per_page ON epp_page_id = page_id WHERE rev_comment LIKE '/* wbsetsitelink-remove:%' AND NOT EXISTS (SELECT * FROM wb_items_per_site WHERE ips_item_id = epp_entity_id ) AND page_is_redirect = 0 GROUP BY page_title LIMIT 500;
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...