Task: Text to Code
Input (English): select the rows whose year record is equal to 2006 . the average of the margin record of these rows is 3.5 .
Output (English): round_eq { avg { filter_eq { all_rows ; year ; 2006 } ; margin } ; 3.5 }