Task: Text to Code
Input (English): select the row whose apparent magnitude record of all rows is maximum . the ngc number record of this row is 5003 .
Output (English): eq { hop { argmax { all_rows ; apparent magnitude } ; ngc number } ; 5003 }