Task: Text to Code
Input (English): select the rows whose pos record fuzzily matches to qb . the average of the contract record of these rows is 2 .
Output (English): round_eq { avg { filter_eq { all_rows ; pos ; qb } ; contract } ; 2 }