I think you would have to maybe have an option to select the type of workout, or combine several such selections into a single variable and then order that and select the last one.
Actually I could do with Running Time. And I could do with a structure with start and end time, duration, distance. (Probably JSON.) But this doesn’t seem to be available.