Update query51a.tpl

-fix line break
-add name for subquery block