Query with SQL
duckdb -csv -c "SELECT c.\"ntsbNumber\", c.\"eventDate\", c.\"eventType\", c.\"eventCity\", c.\"eventStateOrRegion\", a.n_number, a.\"aircraftMake\", a.\"aircraftModel\", c.\"highestInjuryLevel\", c.\"totalFatal\", c.\"completionStatus\", c.report_url
FROM 'https://openairdocs.org/data/latest/ntsb_aircrafts.parquet' a JOIN 'https://openairdocs.org/data/latest/ntsb_case_detail.parquet' c ON c.\"mKey\" = a.case_mkey
WHERE a.aircraft_model_code IN ('0540102')
ORDER BY c.\"eventDate\" DESC, c.\"ntsbNumber\" DESC"Prints the whole list as CSV. It reads the release’s Parquet files over HTTPS, so there’s nothing to download first. Install DuckDB to run it.
SELECT c."ntsbNumber", c."eventDate", c."eventType", c."eventCity", c."eventStateOrRegion", a.n_number, a."aircraftMake", a."aircraftModel", c."highestInjuryLevel", c."totalFatal", c."completionStatus", c.report_url
FROM 'https://openairdocs.org/data/latest/ntsb_aircrafts.parquet' a JOIN 'https://openairdocs.org/data/latest/ntsb_case_detail.parquet' c ON c."mKey" = a.case_mkey
WHERE a.aircraft_model_code IN ('0540102')
ORDER BY c."eventDate" DESC, c."ntsbNumber" DESCRun it at the DuckDB prompt, or in any tool that reads Parquet over HTTPS. More ways to query the release are on Use the data.
NTSB CHI67D0021Accident · No injuriesClosedAlon A-2 · Menomonee Fls, WINTSB MKC66D0565Accident · No injuriesClosedAlon A-2 · Topeka, KSNTSB FTW66D0616Accident · No injuriesClosedAlon A-2 · Tulsa, OKNTSB CHI66F0630Accident · No injuriesClosedAlon A-2 · Waukegan, ILNTSB LAX67F0139Accident · 1 fatalClosedAlon A-2 · Santa Paula, CANTSB FTW66F0446Accident · No injuriesClosedAlon A2 · Amarillo, TXNTSB DEN66F0159Accident · No injuriesClosedAlon A2 · Sunland Pk, NMNTSB CHI66F0321Accident · No injuriesClosedAircoupe A-2 · Freeland, MINTSB CHI66A0011Accident · 1 fatalClosedAircoupe A-2 · Langlade, WI
Back to Alon A2