working zig zag queries