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
DreamRimmer
.
Toggle Highlighting
SQL
select concat('Draft:', page_title), rev_timestamp, (select actor_name from actor where actor_id = (select rev_actor from revision where rev_page = page_id order by rev_timestamp asc limit 1)) as actor_name_ from page p left join revision r on p.page_latest = r.rev_id where page_namespace = 118 and page_is_redirect = 0 and not exists (select 1 from page where page_namespace = 4 and page_title = concat('Miscellany_for_deletion/Draft:', p.page_title)) and rev_timestamp < DATE_FORMAT((NOW() - INTERVAL 153 DAY), '%Y%m%d%H%i%S') union select concat('User:', page_title), rev_timestamp, (select actor_name from actor where actor_id = (select rev_actor from revision where rev_page = page_id order by rev_timestamp asc limit 1)) as actor_name_ from templatelinks tl left join page p on tl.tl_from = p.page_id left join revision r on p.page_latest = r.rev_id where tl_from_namespace = 2 and tl_target_id in (select lt_id from linktarget where lt_namespace = 10 and lt_title in ('AFC_submission', 'AfC_submission')) and page_is_redirect = 0 and not exists (select 1 from page where page_namespace = 4 and page_title = concat('Miscellany_for_deletion/User:', p.page_title)) and rev_timestamp < DATE_FORMAT((NOW() - INTERVAL 153 DAY), '%Y%m%d%H%i%S') order by rev_timestamp;
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...