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
Lopullinen
.
Toggle Highlighting
SQL
USE zhwiki_p; SELECT DISTINCT cl_to FROM categorylinks AS cat JOIN page AS pg1 ON cat.cl_from = pg1.page_id WHERE page_namespace = 2 AND EXISTS (SELECT 1 FROM page AS pg2 JOIN categorylinks AS cl ON pg2.page_id = cl.cl_from WHERE pg2.page_namespace = 0 AND cat.cl_to = cl.cl_to) AND cl_to NOT IN (SELECT page_title FROM page JOIN templatelinks ON tl_from = page_id WHERE page_namespace = 14 AND tl_namespace = 10 AND tl_title = '电子游戏') LIMIT 250;
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...