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 pagelinks ON pl_from=CLt.cl_from AND pl_from_namespace=0 AND pl_namespace=0 JOIN page Pt ON Pt.page_namespace=0 AND Pt.page_title=CLt.cl_to JOIN page Pf ON Pf.page_id=CLt.cl_from AND Pf.page_namespace=0 WHERE cl_to='Surnames' AND CLt.cl_type='page' AND Pt.page_id NOT IN (SELECT CLf.cl_from FROM categorylinks CLf WHERE CLf.cl_to='Surnames' AND CLf.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...