Internally some attributes are realised by reference fields. E.g the Locations have a Room. This is problematic for queries with question word 'how many' and 'which'. E.g. 'which objects have the location kitchen table' would lead to the query handler trying a join between objects and locations (to get to locations name attribute), which will then fail. A workaround for this must be implemented.