A current flows downwards in a wire that passes vertically through a table top. Will the magnetic field lines around it go clockwise or anticlockwise when viewed from above the table?

According to the Maxwell’s right hand thumb rule the direction of the magnetic field will be in clockwise direction.