how can i improve the performance of this query
Select
item_w.SLR_ID
, count(distinct item_loc.ITEM_ID ) TOTAL_ITEM_SHIP_INTL
from b_views.D_LOC item_loc
,b_views.D_W item_w
,b_views.D_C shpmt_loc
,b_views.D_CNTRIES cntry_1
,b_views.D_CNTRIES cntry_2
Where item_loc.ITEM_ID=item_w.ITEM_ID
And item_loc.S_CODE=shpmt_loc.S_CODE
And shpmt_loc.CNTRY_ID=cntry_1.CNTRY_ID
and item_w.SLR_CNTRY_ID = cntry_2.CNTRY_ID
and cntry_1.R_ROLLUP <> cntry_2.R_ROLLUP
And item_w.L_ID=1
AND item_w.P_FLAG<>'X'
Group by 1
Select
item_w.SLR_ID
, count(distinct item_loc.ITEM_ID ) TOTAL_ITEM_SHIP_INTL
from b_views.D_LOC item_loc
,b_views.D_W item_w
,b_views.D_C shpmt_loc
,b_views.D_CNTRIES cntry_1
,b_views.D_CNTRIES cntry_2
Where item_loc.ITEM_ID=item_w.ITEM_ID
And item_loc.S_CODE=shpmt_loc.S_CODE
And shpmt_loc.CNTRY_ID=cntry_1.CNTRY_ID
and item_w.SLR_CNTRY_ID = cntry_2.CNTRY_ID
and cntry_1.R_ROLLUP <> cntry_2.R_ROLLUP
And item_w.L_ID=1
AND item_w.P_FLAG<>'X'
Group by 1