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 cswiki_p; SELECT COUNT(*) FROM wbc_entity_usage; SELECT eu_row_id, page_title, eu_entity_id, COUNT(DISTINCT eu_entity_id), eu_touched FROM wbc_entity_usage JOIN page ON page_id = eu_page_id GROUP BY eu_page_id ORDER BY eu_touched DESC LIMIT 50; SELECT eu_entity_id, change_time, GROUP_CONCAT(DISTINCT page2.page_title SEPARATOR ', ') FROM wikidatawiki_p.wb_changes JOIN (SELECT * FROM wikidatawiki_p.user WHERE user_name = "Matěj Suchánek") AS user ON user.user_id = change_user_id JOIN wikidatawiki_p.revision ON rev_id = change_revision_id JOIN wikidatawiki_p.page AS page1 ON page1.page_id = rev_page JOIN wbc_entity_usage ON eu_entity_id = page1.page_title JOIN (SELECT * FROM page WHERE page_namespace = 0) AS page2 ON page2.page_id = eu_page_id GROUP BY eu_entity_id ORDER BY change_time DESC LIMIT 50; SELECT page_title, COUNT(DISTINCT eu_entity_id), COUNT(eu_aspect), eu_touched FROM wbc_entity_usage JOIN page ON page_id = eu_page_id GROUP BY eu_page_id ORDER BY COUNT(DISTINCT eu_entity_id) DESC, COUNT(eu_aspect) DESC LIMIT 50;
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...