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
.
Toggle Highlighting
SQL
/* SELECT wbc_entity_usage.*, page_id, page_latest, ar_namespace, ar_title, (SELECT MAX(log_timestamp) FROM logging WHERE ar_namespace IS NOT NULL AND ar_title IS NOT NULL AND log_namespace = ar_namespace AND log_title = ar_title AND log_type = 'delete' AND log_action = 'delete') AS last_entry FROM wbc_entity_usage LEFT JOIN page ON page_id = eu_page_id LEFT JOIN archive ON ar_page_id = eu_page_id AND ar_parent_id = 0 WHERE page_id IS NULL; */ /* SELECT wbc_entity_usage.*, page_namespace, page_title, Karel_Matěj_Čapek-Chod FROM wbc_entity_usage LEFT JOIN page ON page_id = eu_page_id WHERE eu_aspect = 'X'; /* SELECT ctd_name, afa_filter, afa_parameters FROM change_tag_def, abuse_filter_action WHERE ctd_user_defined = 1 AND afa_consequence = 'tag' AND ( afa_parameters = ctd_name OR afa_parameters LIKE CONCAT('%\n', ctd_name) OR afa_parameters LIKE CONCAT(ctd_name, '\n%') OR afa_parameters LIKE CONCAT('%\n', ctd_name, '\n%') ); #*/ SELECT log_id, log_timestamp, log_namespace, log_title, log_page, ct_rev_id, ct_tag_id FROM logging JOIN change_tag ON ct_log_id = log_id WHERE log_type = 'protect' AND log_action = 'protect' AND ct_rev_id IS NOT NULL #AND log_page <> 0 AND log_timestamp > '2016' AND ct_tag_id <> 590 ORDER BY log_timestamp LIMIT 1;
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...