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
.
Toggle Highlighting
SQL
-- Step 1: Find pages with the "short description" template WITH short_desc_pages AS ( SELECT DISTINCT tl_from FROM templatelinks WHERE tl_target_id = 137 ), -- Step 2: Find pages with templates that generate a short description template_ids_generating_short_desc AS ( SELECT DISTINCT tl_from FROM templatelinks WHERE tl_target_id IN (/* List of template IDs that generate a short description */) ), -- Step 3: Find pages in the second set but not the first 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 article titles SELECT page_title FROM page 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...