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
.
Toggle Highlighting
SQL
USE huwiki_p; SELECT page.page_title#, wdcat.tl_title, ccat.tl_title FROM page #inner join templatelinks as ccat #on ccat.tl_from = page.page_id #inner join templatelinks as wdcat #on wdcat.tl_from = page.page_id #WHERE page.page_namespace = 14 #and wdcat.tl_title = 'Wikidatacommons' #and (ccat.tl_title = 'Commonscat' or ccat.tl_title = 'Commonskat') WHERE page_namespace = 14 AND page_id IN ( SELECT tl_from FROM templatelinks WHERE tl_namespace = 10 AND (tl_title = 'Commonscat' OR tl_title = 'Commonskat') ) AND page_id IN ( SELECT tl_from FROM templatelinks WHERE tl_namespace = 10 AND (tl_title = 'Wikidatacommons') );
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...