Task: Text to Code
Input (English): select the rows whose week record is less than or equal to 5 . the average of the attendance record of these rows is 74,287 .
Output (English): round_eq { avg { filter_less_eq { all_rows ; week ; 5 } ; attendance } ; 74,287 }