Skip to content

Instantly share code, notes, and snippets.

@jarib
Created July 12, 2014 14:35
Show Gist options
  • Save jarib/c16345c19971e324ac82 to your computer and use it in GitHub Desktop.
Save jarib/c16345c19971e324ac82 to your computer and use it in GitHub Desktop.
SELECT
title,
CONCAT('http://en.wikipedia.org/w/index.php?diff=', STRING(revision_id)) AS diff_url,
revision_id,
SEC_TO_TIMESTAMP(timestamp) AS ts,
timestamp,
contributor_ip
FROM publicdata:samples.wikipedia
WHERE (REGEXP_MATCH(contributor_ip, r'^(6|11|21|22|25|26|29|30|33|34|55|214|215)\.'))
ORDER BY ts DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment