Tags after other tags

Hello everyone!

I was wondering if there is a way that I can verify whether a user was tagged with a specific tag (e.g. ‘tag_a’) after being tagged with another tag (e.g. 'tag_b). In other words, finding whether a user was tagged with ‘tag_a’ only after being tagged with ‘tag_b’.

Thank you!