Added docs for named queries.
Relates to #3581