zig zag queries