first implementation of wms query