Task: Text to Code
Input (English): select the rows whose gold record is equal to 2 . among these rows , select the rows whose total record is equal to 4 . the number of such rows is 2 .
Output (English): eq { count { filter_eq { filter_eq { all_rows ; gold ; 2 } ; total ; 4 } } ; 2 }