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 CONCAT('Q', L1wbit.wbit_item_id), CONCAT('Q', L2wbit.wbit_item_id) #wbxl_language, (SELECT wbx_text FROM wbt_text WHERE wbx_id = wbxl_text_id) AS text FROM wbt_item_terms AS L1wbit JOIN wbt_term_in_lang AS L1wbtl ON L1wbtl.wbtl_id = L1wbit.wbit_term_in_lang_id JOIN wbt_type AS Ly ON Ly.wby_id = L1wbtl.wbtl_type_id JOIN wbt_item_terms AS D1wbit ON D1wbit.wbit_item_id = L1wbit.wbit_item_id JOIN wbt_term_in_lang AS D1wbtl ON D1wbtl.wbtl_id = D1wbit.wbit_term_in_lang_id JOIN wbt_type AS Dy ON Dy.wby_id = D1wbtl.wbtl_type_id JOIN wbt_item_terms AS L2wbit ON L2wbit.wbit_term_in_lang_id = L2wbtl.wbtl_id JOIN wbt_item_terms AS D2wbit ON D2wbit.wbit_term_in_lang_id = D2wbtl.wbtl_id #JOIN wbt_item_terms AS Dwbit ON Dwbit.wbit_item_id = Lwbit.wbit_item_id #JOIN wbt_text ON wbx_id = wbxl_text_id WHERE Ly.wby_name = 'label' AND Dy.wby_name = 'description' AND L2wbit.wbit_item_id = D2wbit.wbit_item_id AND L1wbit.wbit_item_id <> L2wbit.wbit_item_id LIMIT 1;
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...