Try to use the hint: /*+ USE HASH (a b)*/