query, decission stage