Treat functions as filters

In the case that a function can return true or false, it makes sense to
handle it as a WHERE clause filter. An example would be the CONTAINS
function from T-SQL.