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
ערן
.
Category links from user pages
Toggle Highlighting
SQL
use hewiki_p; select distinct(page_title) from page inner join categorylinks cl on cl_from = page_id inner join (select cl_to from categorylinks inner join page on cl_from=page_id where (page_namespace=0 or page_namespace=2) group by cl_to having count(distinct(page_namespace))>1 and sum(if(page_namespace=0,1,0))>sum(if(page_namespace=2,1,0))) bad_cats on bad_cats.cl_to=cl.cl_to where page_namespace=2
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...