Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Commons categories with only Wikidata Infobox categories
by
Prototyperspective
This query is marked as a draft
This query has been published
by
Prototyperspective
.
Created by Matěj Suchánek, requested here: https://meta.wikimedia.org/wiki/Research_talk:Quarry#c-Prototyperspective-20240924234200-Query_request Output published at: https://commons.wikimedia.org/wiki/Commons:Report_UncategorizedCategories_with_only_infobox_categories_that_are_empty
Toggle Highlighting
SQL
SELECT page_title FROM page AS P1 LEFT JOIN categorylinks ON cl_from = page_id AND cl_to NOT LIKE 'Uses\_of\_Wikidata\_Infobox%' LEFT JOIN category ON page.page_title = category.cat_title WHERE page_namespace = 14 AND page_is_redirect = 0 AND cl_to IS NULL AND category.cat_pages = 0 AND category.cat_subcats = 0 AND category.cat_files = 0 AND EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = page_id) #LEFT JOIN categorylinks ON cl_to = page_title #AND NOT EXISTS (
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...