Filters in aliases

Hi!
I'm trying to understand how filters in aliases exactly work. Are they simply added to queries? Or query is applied to result of filters?

Basically the filter is applied to the query.