Task: Text to Code
Input (English): select the rows whose 2004 record is greater than 1000 . there is only one such row in the table . the tournament record of this unqiue row is year end ranking .
Output (English): and { only { filter_greater { all_rows ; 2004 ; 1000 } } ; eq { hop { filter_greater { all_rows ; 2004 ; 1000 } ; tournament } ; year end ranking } }