Solution Street interview question

Given a database schema with two related tables, use both SQL and ActiveRecord to extract information.