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
Certes
.
Toggle Highlighting
SQL
SELECT Pf.page_title, Pt.page_title FROM categorylinks CLt JOIN page Pt ON Pt.page_id=CLt.cl_from AND Pt.page_namespace=0 JOIN pagelinks PL ON PL.pl_title=Pt.page_title AND PL.pl_namespace=0 AND NOT EXISTS (SELECT 1 FROM categorylinks CLf WHERE CLf.cl_to='Surnames' AND CLf.cl_type='page' AND CLf.cl_from=PL.pl_from) JOIN page Pf ON Pf.page_id=PL.pl_from WHERE CLt.cl_to='Surnames' AND CLt.cl_type='page'
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...