TheTrent 500 cutaway is very good, one can clearly see the bearing box and the scavange oil pipe going downward from the box. Here how such a box works in principle:
Bleed air is used to keep the outer box under pressure, the labyrinth seals has air pushing any oil back into the inner bearing box.