Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
exact text search in Wikidata labels/descriptions/aliases
by
Lucas Werkmeister (WMDE)
This query is marked as a draft
This query has been published
by
Akbarali
.
Query to search for an exact string in labels, descriptions or aliases of any item in any language (but not other statements or entity types).
Toggle Highlighting
SQL
SELECT CONCAT('Q', wbit_item_id), wbxl_language, wby_name, wbx_text -- use CONCAT('P', wbpt_property_id) when searching wbt_property_terms FROM wbt_item_terms -- can also be wbt_property_terms, but not lexicographical data JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id -- use wbpt_term_in_lang_id when searching wbt_property_terms JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id JOIN wbt_text ON wbxl_text_id = wbx_id JOIN wbt_type ON wbtl_type_id = wby_id WHERE wbx_text = 'universe'; -- change text here; LIKE 'prefix%' is also efficient
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...