Another way for SQL with a collection of patterns and using when/some