Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions troll_tweets/troll_tweets_analysis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ select count(*) from troll_tweets where language = 'English';
select count(*) from troll_tweets_partitioned where language = 'English';

-- number of tweets in French
select count(*) from troll_tweets where language = 'French';
select count(*) from troll_tweets_partitioned where language = 'French';

-- average number of followers for each language
select language, avg(followers) from troll_tweets group by language;
select language, avg(followers) from troll_tweets_partitioned group by language;

-- top 10 authors with the most tweets
select author, count(*) from troll_tweets group by author order by count(*) desc limit 10;
select author, count(*) from troll_tweets_partitioned group by author order by count(*) desc limit 10;

-- top 10 authors with the most followers (max followers for any tweet by that author)
select author, max(followers) from troll_tweets group by author order by max(followers) desc limit 10;
select author, max(followers) from troll_tweets_partitioned group by author order by max(followers) desc limit 10;