the BELgian federal Science Policy Office (BEL-SPO) through various PROgramme de Développement d'Expériences scientifiques (PRODEX) grants and the Polish Academy of Sciences -Fonds Wetenschappelijk Onderzoek through grant VS. 091. 16N; the Brazil-France exchange programmes Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP) and Coordenação de Aperfeicoamento de Pessoal de Nível Superior (CAPES) -Comité Français d'Evaluation de la Coopération Universitaire et Scientifique avec le Brésil (COFECUB); the Chilean Dirección de Gestión de la Investigación (DGI) at the University of Antofagasta and the Comité Mixto ESO-Chile; the National Science Foundation of China (NSFC) through grants 11573054 and 11703065; the Czech-Republic Ministry of Education, Youth, and Sports through grant LG 15010, the Czech Space Office through ESA PECS contract 98058, and Charles University Prague through grant PRIMUS/SCI/17; the Danish Ministry of Science; the Estonian Ministry of Education and Research through grant IUT40-1; the European Commission's Sixth Framework Programme through the European Leadership in Space Astrometry (ELSA) Marie Curie Research Training Network (MRTN-CT-2006-033481), through Marie Curie project PIOF-GA-2009-255267 (Space AsteroSeismology & RR Lyrae stars, SAS-RRL), and through a Marie Curie Transferof-Knowledge (ToK) fellowship (MTKD-CT-2004-014188); the European Commission's Seventh Framework Programme through grant FP7-606740 (FP7-SPACE-2013-1) for the Gaia European Network for Improved data User Services (GENIUS) and through grant 264895 for the Gaia Research for European Astronomy Training (GREAT-ITN) network; the European Research Council (ERC) through grants 320360 and 647208 and through the European Union's Horizon 2020 research and innovation programme through grants 670519 (Mixing and Angular Momentum tranSport of mas-sIvE stars -MAMSIE) and 687378 (Small Bodies: Near and Far); the European Science Foundation (ESF), in the framework of the Gaia Research for European Astronomy Training Research Network Programme (GREAT-ESF); the European Space Agency (ESA) in the framework of the Gaia project, through the Plan for European Cooperating States (PECS) programme through grants for Slovenia, through contracts C98090 and 4000106398/12/NL/KML for Hungary, and through contract 4000115263/15/NL/IB for Germany; the European Union (EU) through a European Regional Development Fund (ERDF) for Galicia, Spain; the Academy of Finland and the Magnus Ehrnrooth Foundation; the French Centre National de la Recherche Scientifique (CNRS) through action 'Défi MASTODONS', the Centre National d'Etudes Spatiales (CNES), the L'Agence Nationale de la Recherche (ANR) 'Investissements d'avenir' Initiatives D'EXcellence (IDEX) programme Paris Sciences et Lettres (PSL * ) through grant ANR-10-IDEX-0001-02, the ANR 'Défi de tous les savoirs' (DS10) programme through grant ANR-15-CE31-0007 for project 'Modelling the Milky Way in the Gaia era' (MOD4Gaia), the Région Aquitaine, the Université de Bordeaux, and the Utinam Institute of the Université de Franche-Comté, supported by the Région de Franche-Comté and the Institut des Sciences de l'Univers (INSU); 50QG1403, and 50QG1404 and the Centre for Information Services and High Performance Computing (ZIH) at the Technische Universität (TU) Dresden for generous allocations of computer time; the Hungarian Academy of Sciences through the Lendület Programme LP2014-17 and the János Bolyai Research Scholarship (L.