I think it depends on the earth in question, if its soil with no roots and you left the dog to dig on, most terriers would get there. but in a rooty earth, or a rubbish tip etc, if there's a gap too small the dog isnt going to get there at all, no matter how much it wants in.
just my inexperienced oppinion!
ATB
Molie