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
Wizmut
.
currently it's finding articles with templates that should generate an SD but currently aren't
Toggle Highlighting
SQL
WITH pages_with_short_desc AS ( SELECT CONCAT('https://en.wikipedia.org/wiki/', page_title) AS 'Page', pp_value AS 'Short description', CHAR_LENGTH(pp_value) AS 'Length' FROM page_props INNER JOIN page ON pp_page = page_id AND page_namespace = 0 WHERE pp_propname = 'wikibase-shortdesc' ), templates_generating_short_desc AS ( SELECT lt_id AS 'Template ID', lt_title AS 'Template Name', cl_to AS 'Template Category' FROM templatelinks JOIN linktarget ON lt_id = tl_target_id JOIN page ON page_namespace = lt_namespace AND page_title = lt_title JOIN categorylinks ON cl_from = page_id WHERE tl_from = page_id AND cl_to = 'Templates_that_generate_short_descriptions' ), pages_without_short_desc_template AS ( SELECT tl_from FROM template_ids_generating_short_desc WHERE tl_from NOT IN (SELECT tl_from FROM short_desc_pages) ) SELECT CONCAT('https://en.wikipedia.org/wiki/', page_title) AS 'Page', pp_value AS 'Short description', CHAR_LENGTH(pp_value) AS 'Length' FROM page_props pp INNER JOIN page p ON pp.pp_page = p.page_id AND p.page_namespace = 0 WHERE page_id IN (SELECT tl_from FROM pages_without_short_desc_template) AND page_namespace = 0;
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...