Task: Text to Code
Input (English): select the rows whose year record is less than or equal to 2009 . the sum of the tournaments played record of these rows is 52 .
Output (English): round_eq { sum { filter_less_eq { all_rows ; year ; 2009 } ; tournaments played } ; 52 }