INSERT INTO galaxy (name, type, diametr FLOAT, mass, discovery_date, birth_date FLOAT, astronomical_object ) VALUES (...)
INSERT INTO galaxy (name, type, diametr FLOAT, mass, discovery_date, birth_date FLOAT,
astronomical_object )
VALUES (..., (SELECT MAX('id') FROM astronomical_object))