human
Schema:
follows (f1, f2)
tweets (id, uid, text, createdate)
user_profiles (uid, name, email, partitionid, followers)
Please answer with SQL.
assistant
Sure, I understand.
human
Hi, I was wondering how many users do not have tweets?
assistant
SELECT COUNT( * ) FROM user_profiles WHERE UID NOT IN ( SELECT UID FROM tweets );
human
Great, what is the average number of followers for everyone in the data set?
assistant
SELECT AVG ( followers ) FROM user_profiles;
human
Okay, and what about the average followers for those who do have tweets?
assistant
SELECT AVG ( followers ) FROM user_profiles WHERE UID IN ( SELECT UID FROM tweets ) ;