Task: Text to Code
Input (English): select the rows whose international tourist arrivals ( 2012 ) record is greater than 40 million . select the row whose change ( 2011 to 2012 ) record of these rows is 1st maximum . the country record of this row is spain .
Output (English): eq { hop { nth_argmax { filter_greater { all_rows ; international tourist arrivals ( 2012 ) ; 40 million } ; change ( 2011 to 2012 ) ; 1 } ; country } ; spain }