query comparator halfimplemented