Fix tag order in documentation of query functions