Continental SB 515
NTSB investigations that cite it · 1
Newest first, with the revision each cites, as OpenAirDocs read it from the records’ text. OpenAirDocs read these citations from the records’ text, so one can be misread: check it against the record. A newer revision may exist that no record cites.
Query with SQL
duckdb -csv -c "SELECT n.\"ntsbNumber\", n.\"eventDate\", n.\"eventCity\", n.\"eventStateOrRegion\", string_agg(DISTINCT c.revision, ', ' ORDER BY c.revision) AS revisions,
bool_or(c.incorporated_by_reference) AS incorporated_by_reference, bool_or(c.in_regulatory_text) AS in_regulatory_text
FROM 'https://openairdocs.org/data/latest/service_document_citation.parquet' c JOIN 'https://openairdocs.org/data/latest/ntsb_case_detail.parquet' n ON CAST(n.\"mKey\" AS VARCHAR) = c.record_id
WHERE c.document_id = 'continental/sb-515' AND c.record_type = 'ntsb_case'
GROUP BY ALL
ORDER BY max(c.record_date) 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 n."ntsbNumber", n."eventDate", n."eventCity", n."eventStateOrRegion", string_agg(DISTINCT c.revision, ', ' ORDER BY c.revision) AS revisions, bool_or(c.incorporated_by_reference) AS incorporated_by_reference, bool_or(c.in_regulatory_text) AS in_regulatory_text FROM 'https://openairdocs.org/data/latest/service_document_citation.parquet' c JOIN 'https://openairdocs.org/data/latest/ntsb_case_detail.parquet' n ON CAST(n."mKey" AS VARCHAR) = c.record_id WHERE c.document_id = 'continental/sb-515' AND c.record_type = 'ntsb_case' GROUP BY ALL ORDER BY max(c.record_date) DESC
Run 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.