String format error


I want to keep a SQL code in a string variable. I will pass the variable as a type into activity in browser.

Since the SQL already has “” in it’s showing compilation error. SS are attached. Kindly suggest how can I store an SQL code in string variable: