error query sqlcmd

Hi, okay?

I’m new to ansible, so understand my rookie mistakes, rsrsrs. I’m having an error interpreting my query. From what I realized the problem is in the comma, when you get into it the Ansible gives the error below.
After adjusting this, I want to work with Jinja2 in the query.

What do I need to do to execute this query correctly?

ansible-playbook test.yml

If you remove all the indentation (spaces, new lines), it works.
If you remove a portion of the indentation, errors occur on other lines, such as
“Msg”: “Msg 102, Level 15, State 1, Server SRVBD2, Line 22 \ nIncorrect syntax near ‘CODPOA’.”

Is there a way to leave the query indented?