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
FoBe
.
Lists pages for which a category with the same name exists and the page is in this category. First column is the page title, second column contains all the categories containing category with the same name as page.
Toggle Highlighting
SQL
USE huwiki_p; SELECT article.page_title, GROUP_CONCAT(CONCAT('[[Kategória:',cl_cat.cl_to,']]') SEPARATOR ';') FROM category inner join page as article on article.page_title = category.cat_title #inner join categorylinks as cl_article #on cl_page.cl_from = article.page_id and cl_page.cl_to = category.cat_title inner join page as cat on cat.page_namespace = 14 and cat.page_title = category.cat_title inner join categorylinks as cl_cat on cl_cat.cl_from = cat.page_id WHERE article.page_namespace = 0 #ORDER BY page_title GROUP BY article.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...