CREATE TABLE list (lastname CLOB, firstname CLOB, grade NUMBER, classroom NUMBER)
CREATE TABLE teachers (lastname CLOB, firstname CLOB, classroom NUMBER)

How many teachers does the student named MADLOCK RAY have?
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY"
SELECT COUNT(*) FROM "list" "T1" JOIN "teachers" "T2" ON "T1"."classroom" = "T2"."classroom" WHERE "MADLOCK" = "T1"."firstname" AND "RAY" = "T1"."lastname"