The pipe I am referring to is in the OP where it goes straight up along the house, the previous picture I posted was that same pipe going into the basement and is connected to the drain line. And yes, it's connected through the backwater valve, which I don't understand.