Task: Text to Code
Input (English): select the rows whose incumbent record fuzzily matches to sam graves . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to russ carnahan . take the first elected record of this row . the second record is 4 larger than the first record .
Output (English): eq { diff { hop { filter_eq { all_rows ; incumbent ; sam graves } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; russ carnahan } ; first elected } } ; -4 }