Improve query API documentation.