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
Hall1467
.
Wikidata entity page views and number of revisions See: https://github.com/hall1467/wikidata_usage_tracking/blob/master/sql_scripts/tool_labs/entity_views_table/queries/entity_views_and_edits.sql
Toggle Highlighting
SQL
SELECT entity_id, page_views, revisions FROM ( SELECT page_title, COUNT(*) AS revisions FROM wikidatawiki_p.revision INNER JOIN wikidatawiki_p.page ON page_id = rev_page WHERE page_namespace = 0 GROUP BY page_title ORDER BY RAND() ) AS page_revisions INNER JOIN s53311__wikidata_usage_and_views_p.entity_views ON page_title = entity_id;
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...