Skip to content

Instantly share code, notes, and snippets.

@fditrapani
Created February 14, 2019 19:55
Show Gist options
  • Save fditrapani/f727b212a2bd92280e2eed9b40458e6a to your computer and use it in GitHub Desktop.
Save fditrapani/f727b212a2bd92280e2eed9b40458e6a to your computer and use it in GitHub Desktop.
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
ep.key = 'site_type' and
ep.value = 'education' and
ep2.key = 'site_topic'
group by value
order by counts desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment