  Most stars, including the Sun, are born in rich stellar clusters containing
massive stars. Therefore, the study of the chemical reservoir of massive
star-forming regions is crucial to understand the basic chemical ingredients
available at the dawn of planetary systems. We present a detailed study of the
molecular inventory of the hot molecular core G31.41+0.31 from the project
GUAPOS (G31.41+0.31 Unbiased ALMA sPectral Observational Survey). We analyze 34
species for the first time plus 20 species analyzed in previous GUAPOS works,
including oxygen, nitrogen, sulfur, phosphorus, and chlorine species. We
compare the abundances derived in G31.41+0.31 with those observed in other
chemically-rich sources that represent the initial and last stages of the
formation of stars and planets: the hot corino in the Solar-like protostar IRAS
16293-2422 B, and the comets 67P/Churyumov-Gerasimenko and 46P/Wirtanen. The
comparative analysis reveals that the chemical feedstock of the two
star-forming regions are similar. The abundances of oxygen- and
nitrogen-bearing molecules exhibit a good correlation for all pair of sources,
including the two comets, suggesting a chemical heritage of these species
during the process of star formation, and hence an early phase formation of the
molecules. However, sulfur- and phosphorus-bearing species present worse
correlations, being more abundant in comets. This suggests that while sulfur-
and phosphorus-bearing species are predominantly trapped on the surface of icy
grains in the hot close surroundings of protostars, they could be more easily
released into gas phase in comets, allowing their cosmic abundances to be
almost recovered.
