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
SR5
.
Toggle Highlighting
SQL
USE kowiki_p; SELECT el_to, ko.page_title, pp_value FROM externallinks JOIN page_props ON el_from = pp_page AND pp_propname = "wikibase_item" JOIN wikidatawiki_p.page AS wd ON wd.page_namespace = 0 AND wd.page_title = pp_value JOIN page AS ko ON ko.page_id = el_from WHERE el_to LIKE "%문화재_정보%" AND el_to LIKE "%번호=%" AND ko.page_namespace = 0 #AND NOT EXISTS (SELECT 1 FROM wikidatawiki_p.pagelinks WHERE pl_namespace = 120 AND pl_title = "P3003" AND pl_from = wd.page_id) AND wd.page_id NOT IN (SELECT pl_from FROM wikidatawiki_p.pagelinks WHERE pl_namespace = 120 AND pl_title = "P17") ORDER BY page_title;
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...