For the session relevance query, you can simply cast both sides of the string comparison to ‘as lowercase’ or ‘as uppercase’ to avoid case sensitivity. Some examples:
"A" = "a" -> FALSE
("A" as lowercase) = ("a" as lowercase) -> TRUE
You could also use regex to accomplish this as well.
Here’s a sample session relevance query that returns the ID, Computer Name, and Last Report Time in a single query filtered on a given computer name without case sensitivity:
(id of it, name of it, last report time of it) of bes computers whose (name of it as lowercase starts with "ComputerName" as lowercase)