StateServer: Implement (and add tests for) QUERY_FIELD(S).