human
Schema:
list (LastName, FirstName, Grade, Classroom)
teachers (LastName, FirstName, Classroom)
Please answer with SQL.
assistant
Sure, I understand.
human
Show me the name of all teachers in record.
assistant
SELECT firstname , lastname FROM teachers;
human
Which classrooms does TARRING LEIA teach in?
assistant
SELECT classroom FROM teachers WHERE firstname = 'TARRING' AND lastname = 'LEIA';
human
How many students study in those classrooms?
assistant
SELECT COUNT( * ) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "TARRING" AND T2.lastname = "LEIA" ;