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
Nikki
.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT CONCAT("Q", l.term_entity_id) AS qid, 'Lja', -- '"huyện"' AS label CONCAT('"', REPLACE(l.term_text, " (huyện)", ""), '"') AS label, d.term_text FROM wb_terms l LEFT JOIN wb_terms d on d.term_entity_id = l.term_entity_id WHERE l.term_language = 'ja' AND l.term_type = 'label' AND l.term_entity_type = 'item' AND d.term_language = 'ja' AND d.term_type = 'label' AND d.term_entity_type = 'item' -- AND LENGTH(term_text) > 500 AND l.term_text regexp 'の曲' ORDER BY label, l.term_entity_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...