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