Task: Text to Code
Input (English): select the rows whose rank record is less than 6 . the sum of the gold record of these rows is 42 .
Output (English): round_eq { sum { filter_less { all_rows ; rank ; 6 } ; gold } ; 42 }