Which happened first, the defeat of the royal army at Gegodog, or the death of King Amangkurat?
return the  defeat of the   royal army at Gegodog ;return the  death of King Amangkurat ;return when  was  #1 ;return when  was  #2 ;return which is the  lowest of #3 ,  #4
['select', 'select', 'project', 'project', 'comparison']