How can I write a raw sql query?

As Luca pointed out, it will search for a name that begins with the literal string “$1#”