Task: Text to Code
Input (English): select the rows whose reg gp record is equal to 2 . the number of such rows is 1 .
Output (English): eq { count { filter_eq { all_rows ; reg gp ; 2 } } ; 1 }