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
Msz2001
.
Listuje bezpośrednie podkategorie kategorii na Commons, razem z liczbą plików. Grupuje według kryterium mniejsze/większe niż określony próg.
Toggle Highlighting
SQL
SET @category := 'Rosa_cultivars_A'; SET @treshold := 20; SELECT * FROM ( SELECT cat.page_title AS 'Podkategoria', COUNT(*) AS 'Liczba_plików' FROM categorylinks c1 JOIN page cat ON cat.page_id = c1.cl_from JOIN categorylinks c2 ON c2.cl_to = cat.page_title WHERE c1.cl_to = @category AND c1.cl_type = 'subcat' AND c2.cl_type = 'file' GROUP BY cat.page_title);
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...