Pipe Calculation for Water Flow

I know only the flow rate (40 m3/hr) of water but velocity and pipe diameter are unknown.

How can I calculate the unknown diameter and velocity?

Please help.