sql expression with heredoc