What event happened first, Krakow surrendering to Cahrles X Gustav, or a second treaty being ratified at Kedainlai?
return Krakow surrendering to Cahrles X Gustav ;return second treaty being ratified at Kedainlai ;return when  was  #1 ;return when  was  #2 ;return which is lowest of #3 ,  #4
['select', 'select', 'project', 'project', 'comparison']