Task: Text to Code
Input (English): select the rows whose result record fuzzily matches to lost re - election republican gain . there is only one such row in the table . the district record of this unqiue row is illinois 21 .
Output (English): and { only { filter_eq { all_rows ; result ; lost re - election republican gain } } ; eq { hop { filter_eq { all_rows ; result ; lost re - election republican gain } ; district } ; illinois 21 } }