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
How many followers does Mary have?
assistant
SELECT Followers FROM user_profiles WHERE name = 'Mary';
human
How about that of Susan?
assistant
SELECT Followers FROM user_profiles WHERE name = 'Susan';
human
Who is followed by either one of them?
assistant
SELECT T3.NAME FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 JOIN user_profiles AS T3 ON T3.uid = T2.f1 WHERE T1.name = "Mary" OR T1.name = "Susan" ;