Query interface

Gaia@AIP hosts the data from Gaia data releases in a PostgreSQL database. You can query the data using ADQL or PostgreSQL.

Submit a new query job

  1. Open the Query interface in a browser window.
  2. Insert your query in the SQL query text area or choose a query from Examples.
  3. Choose either ADQL or PostgreSQL and select a queue.
  4. Click Submit new SQL query.

You can also use Cone search to look for sources around a position in the sky.

Additional options

You can give the result table a name in the Table name field and group jobs using the Run id field.

Database browser

Use the Database and Columns menus above the text area to find tables and columns in each data release. Hover over a column for a short description. You will also find your user database and uploaded tables there.

Simbad and VizieR

Gaia@AIP connects to the Simbad and VizieR services for cross-identification of objects, so the coordinates can be retrieved and used in the SQL queries.

Results of a query job

After the query job is complete, use the tabs to review the job and its results. (To view another job, select its table name in the Job list on the left.)

Job overview shows the query and the Job parameters, including the run time and size of the result table. You can rename the result table, change the run id or archive the job.

Results table shows the rows returned by your query.

Plot lets you plot numeric columns from the result table.

Download query results

Open the Download tab of a completed query job.

Download table saves the result table from your query. Choose a format and click Download.

Gaia Data Delivery (DR4) uses the source_id column in your results to retrieve additional data from large DR4 tables that require a delivery job, such as XP epoch spectra. Your results can contain up to 1,000 source IDs. Choose a table and file format, then click Create file. See the Data Delivery Service guide for the list of products.

Simple Join Service (DR3/DR2) matches source IDs in your results to selected DR3 and DR2 tables that you can also query through TAP. It is useful for downloading spectra, such as the DR3 sampled BP/RP spectra. Your results can contain up to 5,000 source IDs. Choose the source ID column, join table, and output options, then click Create file. See the Simple Join Service guide for details.

See Download data for the access options by data product.

Private cross-matching and your query archive

Use Upload VOTable to upload a table to your private user database. You can find the table in the database browser, query it with SELECT, and join it with other tables.

Gaia-specific data access

Crowded-field images

Crowded-field FITS images are available in bulk or through the image_id links in query results. See DataLink for how to follow those links and Download data for the bulk download directory.

Gaia Source Viewer

For DR4 sources, include designation in your query results and click its value to open the Gaia Source Viewer. Existing source_id links in older tables open the DR3 viewer.