docs on query formatting