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