Implemented QueryMap and QueryArray