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
Fish bowl
.
Toggle Highlighting
SQL
WITH t_zh_forms AS ( SELECT * FROM linktarget WHERE lt_namespace = 10 AND lt_title = 'wrongtitle' ), t_han_ref AS ( SELECT * FROM linktarget WHERE lt_namespace = 10 AND lt_title = 'Han_char' ), t_page_ids AS ( SELECT DISTINCT page_id FROM page JOIN templatelinks AS tl1 ON tl1.tl_from = page_id JOIN templatelinks AS tl2 ON tl2.tl_from = page_id WHERE tl1.tl_target_id = (SELECT lt_id FROM t_han_ref) AND tl2.tl_target_id = (SELECT lt_id FROM t_zh_forms) ) SELECT DISTINCT tl3.tl_from, p.page_title FROM templatelinks, page AS pppp JOIN t_page_ids ON tl_from = t_page_ids.page_id JOIN page ON tl_from = pppp.page_id
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...