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:

image

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

image

With the somewhat bizarre result that you can see.

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

image

I wait with baited breath,

Many thanks as always....