Seeing eye dogs pee and poo on command so that their owners can clean up after them. (The command is usually "Get busy!" and pups will pace back and forth until they do their business.) Male dogs are also trained to do their business without lifting their leg.
Luna doesn't pee or poo in the house or in the garden, she knows to wait until we take her out on the street. I was waiting for another post to talk about what I taught her and what I didn't. I guess that will be my next subject. Thanks!