Groupon Interview Question

Writing a series of increasingly complex SQL queries. Some basic probability (combinations, permutations, etc) and algorithm questions (e.g. combine three possible operations to accomplish a task).