Question: Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
Schema: create table tweets (uid varchar, PRIMARY KEY (uid)); create table user_profiles (name varchar, uid varchar, PRIMARY KEY (name))
SQL: select t1.name, count(*) from user_profiles as t1 join tweets as t2 on t1.uid = t2.uid group by t2.uid having count(*) > 1