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