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
Ranjithraj
.
Toggle Highlighting
SQL
SELECT DISTINCT p.page_title, p.page_len, cl.cl_to, COALESCE(SUM(acc.hit_count), 0) as page_views FROM page p JOIN categorylinks cl ON p.page_id = cl.cl_from LEFT JOIN page_props pp ON p.page_id = pp.pp_page AND pp.pp_propname = 'wikibase_item' LEFT JOIN logging_userindex acc ON p.page_title = acc.page_title AND acc.page_namespace = 0 WHERE p.page_namespace = 0 AND p.page_is_redirect = 0 AND pp.pp_value IS NULL AND cl.cl_to LIKE '%category' GROUP BY p.page_title, p.page_len, cl.cl_to ORDER BY page_views DESC, p.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...