Groupon Interview Question

Increasingly complex SQL queries. Some basic probability (combinations, permutations, etc) and algorithm (e.g. given three possible operations, complete a task) questions.