Task: Text to Code
Input (English): select the rows whose competition record fuzzily matches to world championships . among these rows , select the rows whose position record fuzzily matches to 31st . there is only one such row in the table . the year record of this unqiue row is 2007 .
Output (English): and { only { filter_eq { filter_eq { all_rows ; competition ; world championships } ; position ; 31st } } ; eq { hop { filter_eq { filter_eq { all_rows ; competition ; world championships } ; position ; 31st } ; year } ; 2007 } }