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
Matěj Suchánek
.
Toggle Highlighting
SQL
USE wikidatawiki_p; /* SELECT I1.wbit_item_id AS item1, I2.wbit_item_id AS item2, Ltl1.wbxl_language#, Lt1.wbx_text FROM wbt_term_in_lang AS L1 JOIN wbt_text_in_lang AS Ltl1 ON Ltl1.wbxl_id = L1.wbtl_text_in_lang_id JOIN wbt_item_terms AS I1 ON I1.wbit_term_in_lang_id = L1.wbtl_id JOIN wbt_term_in_lang AS D1 ON D1.wbtl_id = I1.wbit_term_in_lang_id JOIN wbt_text_in_lang AS Dtl1 ON Dtl1.wbxl_id = D1.wbtl_text_in_lang_id AND Dtl1.wbxl_language = Ltl1.wbxl_language JOIN wbt_item_terms AS I2 ON I2.wbit_term_in_lang_id = L1.wbtl_id #JOIN wbt_text AS Lt1 ON Lt1.wbx_id = Ltl1.wbxl_text_id WHERE L1.wbtl_type_id = 1 AND D1.wbtl_type_id = 2 AND I1.wbit_item_id <> I2.wbit_item_id LIMIT 1; wbtl_id wbtl_type_id wbtl_text_in_lang_id wbxl_id wbxl_language wbxl_text_id */ DESCRIBE wbt_item_terms; DESCRIBE wbt_term_in_lang; DESCRIBE wbt_type; DESCRIBE wbt_text_in_lang; DESCRIBE wbt_text;
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...