Replicas browser and optimizer
Test:wikidata-Get ta.labels without bracket,comma, etc.
This query is marked as a draft
This query has been published
use wikidatawiki_p; select CONCAT("Q",ips_item_id,'~',ips_site_page), if(ips_site_page not like '%,%' and ips_site_page not like '%(%' and ips_site_page not like '%)%', 1, if(ips_site_page like '%,%' and ips_site_page not like '%(%' and ips_site_page not like '%)%', 2, if(ips_site_page not like '%,%' and (ips_site_page like '%(%' or ips_site_page like '%)%'), 3, 4 ) ) ) as ips_item_id_type from wb_items_per_site i where i.ips_site_id='tawiki' and not exists (select term_entity_id from wb_terms where i.ips_item_id = term_entity_id and term_type = "label" and term_language='ta') group by ips_item_id order by ips_item_id_type limit 3000;
By running queries you agree to the
and you irrevocably agree to release your SQL under
All SQL code is licensed under
Checking query status...
Report a bug!
Wikimedia Cloud VPS
, written in