CREATE TABLE endowment (school_id VARCHAR, amount INT)
CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)

List all the names of schools with an endowment amount smaller than or equal to 10.
SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING SUM(T1.amount) <= 10
SELECT "T2"."school_name" FROM "endowment" AS "T1" JOIN "school" AS "T2" ON "T1"."school_id" = "T2"."school_id" GROUP BY "T1"."school_id" HAVING SUM("T1"."amount") <= 10