If this was case-sensitive, that means it's being executed on the web server vs. being sent down to SQL.  It looks like we've already fetched the graph into memory, but if that changed, this might fail when sent to SQL.  Can you validate if this expression can be sent down to SQL please?