Task: Text to Code
Input (English): select the rows whose competition record fuzzily matches to friendly . the sum of the result record of these rows is 4 .
Output (English): round_eq { sum { filter_eq { all_rows ; competition ; friendly } ; result } ; 4 }