Task: Text to Code
Input (English): the average of the year left record of all rows is 1977 .
Output (English): round_eq { avg { all_rows ; year left } ; 1977 }