Task: Text to Code
Input (English): the average of the duration record of all rows is 6 months 7 days .
Output (English): round_eq { avg { all_rows ; duration } ; 6 months 7 days }