Green Dot interview question

Describe a time you had to write a complex SQL query