Task: Text to Code
Input (English): select the rows whose date record fuzzily matches to 1987 . the average of the winning score record of these rows is 305.5 .
Output (English): round_eq { avg { filter_eq { all_rows ; date ; 1987 } ; winning score } ; 305.5 }