[1.5.x] Fixed #19926 -- Fixed a link to code example in queries docs

Thanks Randy Salvo for the report.
Backport of b0ba21db07 from master.