Fix typo in query api breaking querying for specific values of the field with sort_key defined.