Execute SQL from GIT or File?

I spent some more time this this example and it’s close to working. The biggest issue is nobody formats their SQL on a single line and so that’s a deal breaker for us. This old 2013 post still has some good information. Can I read in an external sql file and use this in a query

Does anyone know how you might put a multi-line text file into a single variable for DB Query Reader to use?