Task: Text to Code
Input (English): select the row whose scoring average record of all rows is minimum . the year record of this row is 2007 .
Output (English): eq { hop { argmin { all_rows ; scoring average } ; year } ; 2007 }