More fun with 'Query JSON with SQL'

My objective is to determine which key is selected within a changesetArray and to use this as a variable.

My first step is to use a js transformer as below:


My next step is to use {{changekey.value}} in this query:


With the somewhat bizarre result that you can see.

Notice the difference here (which is of course the behavior I am looking for):


I wait with baited breath,

Many thanks as always....