Task: Text to Code
Input (English): select the rows whose reason for change record fuzzily matches to contested election . there is only one such row in the table . the vacator record of this unqiue row is josã m gallegos ( d ) .
Output (English): and { only { filter_eq { all_rows ; reason for change ; contested election } } ; eq { hop { filter_eq { all_rows ; reason for change ; contested election } ; vacator } ; josã m gallegos ( d ) } }