How can I create a Bowen knot?
From left to right:

Create a circle and in edit mode shift it

Delete a quarter of the vertices

Duplicate/rotate 3 times

Join the vertices

Rotate each circle (say) 10 degrees

Convert the mesh into a curve



Curve settings:

Give it extrusion. As the extrusion is along Z, rotate the knot around X so that it is Z up and apply the rotation.
Shader: get the U of the UV that is along the curve and add a color ramp.
a better, quicker way

Start from a plane instead of a circle.
Add subdivisions.
Next steps are the same.