order state query