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
Chlod
.
A list of critically endangered species with stub articles. You can use this query as a template for building your own niche-specific + class-specific searches.
Toggle Highlighting
SQL
# Category of the mainspace article SET @MAIN_CAT = "IUCN Red List critically endangered species"; # Class category SET @CLASS_CAT = "Stub-Class articles"; # Get the category ID of the mainspace category SET @MAIN_CATID = (SELECT cat_id FROM category WHERE cat_title = REPLACE(@MAIN_CAT, " ", "_")); # Get the category ID of the class root category SET @CLASS_CATID = (SELECT cat_id FROM category WHERE cat_title = REPLACE(@CLASS_CAT, " ", "_")); # GO SELECT * FROM `categorylinks` cl1 LEFT JOIN `page` p1 ON cl1.`cl_from` = p1.`page_id` RIGHT JOIN `page` p2 ON p2.`page_title` = p.`page_id` RIGHT JOIN `categorylinks` cl2 ON p.`page_title` WHERE cl_from = @MAIN_CAT ==
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...