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
Andyrom75
.
Toggle Highlighting
SQL
#USE itwikivoyage_p; USE wikidatawiki_p; #SHOW TABLES FROM itwikivoyage_p; #select count(*) from page_props #describe itwikivoyage_p.pagelinks #select * from page WHERE page_title = 'Q38'; #SHOW COLUMNS FROM langlinks; #SHOW COLUMNS FROM pagelinks; #SHOW COLUMNS FROM wb_items_per_site; #SHOW COLUMNS FROM wb_entity_per_page; #select * from wb_items_per_site limit 10; #select * from wb_entity_per_page limit 10; select CONCAT('Q',ips_item_id) as ID, count(ips_site_id) as Qty, ips_site_page from wb_items_per_site, wb_entity_per_page Where wb_items_per_site.ips_item_id = wb_entity_per_page.epp_entity_id AND wb_entity_per_page.epp_entity_type = "item" #AND ips_item_id = '38' AND ips_site_id LIKE '%wikivoyage' AND ips_site_id <> 'itwikivoyage' group by ips_item_id ORDER BY count(ips_site_id) DESC limit 10; #select * from pagelinks limit 10; #select * from pagelinks WHERE pl_title = 'Q38'; #select * from langlinks limit 10; #select * from langlinks WHERE ll_lang = 'it' limit 10; #select * from pagelinks, langlinks WHERE pl_title = 'Q38' and pl_from = ll_from and ll_lang = 'it'; #SELECT pagelinks.*, page_title #FROM pagelinks, page #WHERE pl_from = page_id limit 10
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...