Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?

### Inputs:
table_name: table, columns: ['Production year', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011']

### Response:
SELECT AVG 2002 FROM table WHERE 2010 < 5587 AND Production year = sunflower AND 2007 > 546