Basic query condition parser. The query condition is in the form `reference[reference-operator]key[query-operator]value`