Then, once Pete learns to ring the bell to go out, he will be a perfect dog.
(the bell; to go out; ) (he; will be; a perfect dog; T:Then; T:once Pete learns to ring the bell)
the bell he
to go out will be
a perfect dog T:Then T:once Pete learns to ring the bell