It can also run under.
How to put plumbing in concrete floor.
The photo below shows a sink drain hot water line and cold water line at a stud wall on the outer edge of the floor slab.
The plumbing trenches are typically dug at the same time as the slab footings if any.
Considerations cutting through a concrete floor should be a last resort.
Using the dimensions on the floor plan measure from the outside of the foundation walls or slab.
Take your floor plan and measuring tape and check the location of every pipe.
At this point you will no longer see the horizontal drainpipes and the main sewer line but you will see the stubs that extend vertically out of the sand.
Next cut and remove the portion of the slab necessary to install the plumbing supply and drain lines then repour new concrete over the new plumbing and make the floors as level as possible.
Plumbing is one of the rough in elements of construction and is generally hidden by the finished elements such as walls floors and roofs.
Once the concrete is out you can dig in the remaining trench to remove the sand or soil before running the new plumbing.
How to run plumbing under concrete.