SELECT extract(quarter FROM interval '18 months');
SELECT extract(quarter FROM interval '-18 months');
SELECT extract(quarter FROM interval '-18 months -600 days');
SELECT extract(quarter FROM interval '-600 days');
