def query(query):
    '''
    Send an ADQL query to the Gaia archive,
    wait for a response,
    and hang on to the results.
    '''

    # send the query to the Gaia archive
    with warnings.catch_warnings() :
        warnings.filterwarnings("ignore")

        _gaia_job = astroquery.gaia.Gaia.launch_job(query)

        # return the table of results
        return _gaia_job.get_results()
Send an ADQL query to the Gaia archive,
    wait for a response,
    and hang on to the results.