If query is of the form name='Y' then you can use the same X.Y syntax as is used for accessing structures. attachments[size>1024], DocumentContainer[name!='Summary' AND value~'top secret'].value X[N] where X is an array and N is an integer number >= 0, gets the Nth element of the array X. If N is a floating point number, the integer part will be used as the index.