Quickstart
Find datasets, run SQL and save the results to a file with the Queria CLI
This page goes from finding a dataset to saving SQL results to a file. Every command below also works with uvx queria in place of queria.
1. Find a dataset
queria list
queria search 人口
2. Inspect tables and columns
queria schema e_stat
queria columns e_stat a_pref_population
3. Run SQL
Write tables as <dataset>.<schema>.<table>. The CLI attaches the datasets your SQL names.
queria sql "
SELECT date, holiday_name
FROM calendar.calendar.day
WHERE is_holiday AND date BETWEEN DATE '2026-01-01' AND DATE '2026-12-31'
ORDER BY date
"
SQL runs on DuckDB, so DuckDB SQL works as is, including JOINs across datasets.
4. Save the results to a file
queria sql "SELECT * FROM zipcode.main.mart_zipcode" --out zipcodes.parquet
queria sql "SELECT * FROM zipcode.main.mart_zipcode" --out zipcodes.csv
Choose the standard output format with --format table|csv|json|jsonl|markdown (default is table).
Read next
- CLI guide: commands and options
- Analyze with AI agents: use the CLI from Claude Code and similar agents
- Python API: use from notebooks and scripts
