Task: Text to Code
Input (English): select the row whose registered voters record of all rows is 3rd maximum . the city record of this row is encinitas .
Output (English): eq { hop { nth_argmax { all_rows ; registered voters ; 3 } ; city } ; encinitas }