CREATE TABLE follows (f1 NUMBER, f2 NUMBER)
CREATE TABLE tweets (id NUMBER, uid NUMBER, text CLOB, createdate TIME)
CREATE TABLE user_profiles (uid NUMBER, name CLOB, email CLOB, partitionid NUMBER, followers NUMBER)

Find the id of users who are followed by Mary or Susan.
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan"
SELECT "T2"."f1" FROM "user_profiles" "T1" JOIN "follows" "T2" ON "T1"."uid" = "T2"."f2" WHERE "Mary" = "T1"."name" OR "Susan" = "T1"."name"