Combines and polygons which are touching in to a single polygon. Returns a geometry array so have to use unnest to get these back as geoms.
CREATE TABLE JOINED_GEN_Z AS
SELECT
unnest(join_touching(geom)) As the_geom,
substr(quads, 1, 1)
FROM gen_z_moran_w_geom
WHERE significance < 0.05
GROUP BY 2;