Question: Find the name of each user and number of tweets tweeted by each of 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