Database: regional_sales
Question: Among the sales with 40% discount via in-store channel, how many products were shipped from warehouse code of WARE-NMK1003?
SQL: SELECT COUNT(DISTINCT T) FROM ( SELECT CASE  WHEN `Sales Channel` = 'In-Store' AND WarehouseCode = 'WARE-NMK1003' AND `Discount Applied` = '0.4' THEN OrderNumber ELSE NULL END AS T FROM `Sales Orders` ) WHERE T IS NOT NULL