r/bigquery•
fhoffa

1.7 billion reddit comments loaded on BigQuery

Dataset published and compiled by u/Stuck_In_the_Matrix, in r/datasets.

Tables available on BigQuery at https://bigquery.cloud.google.com/table/fh-bigquery:reddit_comments.2015_05.

Sample visualization: Most common reddit comments, and their average score (view in Tableau):

SELECT RANK() OVER(ORDER BY count DESC) rank, count, comment, avg_score, count_subs, count_authors, example_id 
FROM (
  SELECT comment, COUNT(*) count, AVG(avg_score) avg_score, COUNT(UNIQUE(subs)) count_subs, COUNT(UNIQUE(author)) count_authors, FIRST(example_id) example_id
  FROM (
    SELECT body comment, author, AVG(score) avg_score, UNIQUE(subreddit) subs, FIRST('http://reddit.com/r/'+subreddit+'/comments/'+REGEXP_REPLACE(link_id, 't[0-9]_','')+'/c/'+id) example_id
    FROM [fh-bigquery:reddit_comments.2015_05]
    WHERE author NOT IN (SELECT author FROM [fh-bigquery:reddit_comments.bots_201505])
    AND subreddit IN (SELECT subreddit FROM [fh-bigquery:reddit_comments.subr_rank_201505] WHERE authors>10000)
    GROUP EACH BY 1, 2
  )
  GROUP EACH BY 1
  ORDER BY 2 DESC
  LIMIT 300
)
countcommentavg_scorecount_subscount_authorsexample_id
6056Thanks!1.8087909561325920/r/pcmasterrace/comments/34tnkh/c/cqymdpy
5887Yes5.68683778561315731/r/AdviceAnimals/comments/37s8vv/c/crpkuqv
5441Yes.8.79584098051295293/r/movies/comments/36mruc/c/crfzgtq
4668lol3.36954717361214443/r/2007scape/comments/34y3as/c/cqz4syu
4256:(10.28766564851214145/r/AskReddit/comments/35owvx/c/cr70qla
3852No.3.85004497961273738/r/MMA/comments/36kokn/c/crese9p
3531F6.26227711821063357/r/gaming/comments/35dxln/c/cr3mr06
3466No3.59246086521243353/r/PS4/comments/359xxn/c/cr3h8c7
3386Thank you!2.64010870441333344/r/MakeupAddiction/comments/35q806/c/cr8dql8
3290yes5.73768229331253216/r/todayilearned/comments/34m93d/c/cqw7yuv
3023Why?3.02684862561242952/r/nfl/comments/34gp9p/c/cquhmx3
2810What?3.45518551511242726/r/mildlyinteresting/comments/36vioz/c/crhzdw8
2737Lol2.75174158021202603/r/AskReddit/comments/36kja4/c/crereph
2733no3.52600486061232662/r/AskReddit/comments/36u262/c/crha851
2545Thanks2.36594337941242492/r/4chan/comments/34yx0y/c/cqzx7x5
2319( ͡° ͜ʖ ͡°)12.66260498761082145/r/millionairemakers/comments/36xf3t/c/cri8f4u
2115:)5.64825399261152071/r/politics/comments/35vfjl/c/cr9xw02
1975Source?3.62426563551161921/r/todayilearned/comments/37bvmu/c/crlkdc2

Posted Jul 7, 2015, 8:01 AM UTC · edited

7569
Loading comments…