Task: Text to Code
Input (English): select the rows whose result record fuzzily matches to re - elected . among these rows , select the rows whose first elected record is equal to 1902 . the number of such rows is 2 .
Output (English): eq { count { filter_eq { filter_eq { all_rows ; result ; re - elected } ; first elected ; 1902 } } ; 2 }