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
Jura1
.
Toggle Highlighting
SQL
# list of given name items linked from page [[User:Jura1/first names/items (P31: ok, label: tbd)]] # use wikidatawiki_p; # SELECT page_title AS item, term_type, term_language, term_text, page_title AS item1, CONCAT('L', term_language) AS Desc1, CONCAT('"', term_text , '"') AS Str1 # FROM pagelinks, page, wb_entity_per_page, wb_terms # WHERE pl_from = 21293912 # id of page [[d:User:Jura1/first names/items (P31: ok, label: tbd)]] AND pl_namespace = 0 AND pl_title = page_title AND page_id = epp_page_id AND epp_entity_id = term_entity_id AND term_entity_type = 'item' # 'item' not 'property' AND term_type = 'label' # 'label', 'description', 'alias' AND term_language in ('en') # # alternate "term_language" for main languages with Roman script # AND term_language IN ('en','de','fr','it','es','af','an','ast','bar','br','ca','co','cs','cy','da', 'de-at','de-ch','en-ca','en-gb','eo','et','eu','fi','frp','fur','ga','gd','gl','gsw','hr','hu','ia','id','ie','is','io','kg','lb','li','lij','mg','min','ms', 'nap','nb','nds','nds-nl','nl','nn','nrm','oc','pcd','pl','pms','pt','pt-br', 'rm','ro','sc','scn','sco','sk','sl','sr-el','sv','sw','vec','vi','vls','vo','wa','wo','zu')
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...