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
Mike.Khoroshun
.
Toggle Highlighting
SQL
USE ukwiki_p; SELECT s.country as country, s.page_title as page_title, s.views as views WITH articles_countries AS ( SELECT country, page_title, sum(view_count) AS views FROM pageview_hourly WHERE year=2018 AND month=3 AND day=15 GROUP BY country, page_title ) FROM ( SELECT max(named_struct('views', views, 'country', country, 'page_title', page_title)) as s from articles_countries group by country ) t;
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...