New Yorker interview question

Stored procedures, variables, and Aggregate functions