Add support for query fragments
Simplify validator as we can assert less due to fragments