Agreed, but I think the hard part is the syntax, not the idea. The concept is simple. The way the SQL is written here is unusual, and since there is little training data on it, a model will likely fall back on a more common approach it has seen before.
For better or worse, they “understand” and have seen a lot of message queuing code and read lots of message queue support discussions.