query options with order type