Luxoft Interview Question

implement a “spaceship” operator for SQL for all types possible test with select 'a'::text<=>'b', 1<=> -3, now()<=> now()-interval '1m';