Modifying query module to allow to compare by multiple keys in gt,lt,gte,lte queries