Query filters with 'states to include' not applied

My post below regards the annotations.alan with version yar20.

I expected this query to exclude entries where ‘Has Stock’?‘No’, per the grammar (‘query’ feature → ‘filters’ → stategroup ‘filter’ = ‘yes’ with ‘states to include’). But rows with ‘Has Stock’?‘No’ still show up:

'query' (
      'label' = [ "Order Lines" ]
      'query' = >'Colli Type' on .'Purchase Orders'* .'Order Lines'* (
              'filters' = [
                      (
                              'label' = "Has Stock"
                              'property' = .'Has Stock' (
                                      'filter' = 'yes' (
                                              'states to include' = [ state 'Yes' ( ) ]
                                      )
                              )
                      )
              ]
              'properties' = [ ... ]
      )
)

‘Has Stock’ is a derived stategroup that equals ‘No’ if ‘Total Stock’ within .‘Purchase Orders’* .‘Order Lines’* equals 0.

Is the filter feature supposed to restrict the result, or am I missing something?

This seems to be solved, because I don’t see any order lines without stock showing up?

Ok, after looking at the test environment as well.. I see what you mean. It seems odd, so I’ll check.