Added array query