query: init the ALLOCATION query correctly