Advancement for dismounting

Is there a way to make an advancement that detects dismounting an entity/stopping ride?

Continue to help post