CREATE TABLE checking (custid NUMBER, balance NUMBER)
CREATE TABLE savings (custid NUMBER, balance NUMBER)
CREATE TABLE accounts (custid NUMBER, name CLOB)

What is the total balance of savings accounts not belonging to someone with the name Brown?
SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
SELECT SUM("T2"."balance") FROM "accounts" "T1" JOIN "savings" "T2" ON "T1"."custid" = "T2"."custid" WHERE "T1"."name" <> 'Brown'