Get pipes with certain direction

Can you please refer to what you have tried so far and/or to related posts such as this one?