N403JS
Airworthiness directives that may apply · 42
Matched by this aircraft’s airframe and engine models. Each AD’s applicability may narrow it by serial number, part number or equipment. Not a compliance determination.
Query with SQL
duckdb -csv -c "SELECT d.ad_number, d.status, d.subject, d.effective_date, m.matched_by
FROM (
SELECT ad_id, min(rank) AS rank, arg_min(matched_by, rank) AS matched_by
FROM (SELECT ad_id, 1 AS rank, 'airframe' AS matched_by FROM 'https://openairdocs.org/data/latest/faa_aircraft_model_directive.parquet' WHERE aircraft_model_code = '3980115'
UNION ALL SELECT ad_id, 2, 'engine' FROM 'https://openairdocs.org/data/latest/faa_engine_model_directive.parquet' WHERE engine_model_code = '54561')
GROUP BY ad_id
) m JOIN 'https://openairdocs.org/data/latest/faa_directive.parquet' d USING (ad_id)
ORDER BY d.status = 'Historical', m.rank, coalesce(d.effective_date, d.publication_date, d.issue_date) DESC, d.ad_number 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 d.ad_number, d.status, d.subject, d.effective_date, m.matched_by
FROM (
SELECT ad_id, min(rank) AS rank, arg_min(matched_by, rank) AS matched_by
FROM (SELECT ad_id, 1 AS rank, 'airframe' AS matched_by FROM 'https://openairdocs.org/data/latest/faa_aircraft_model_directive.parquet' WHERE aircraft_model_code = '3980115'
UNION ALL SELECT ad_id, 2, 'engine' FROM 'https://openairdocs.org/data/latest/faa_engine_model_directive.parquet' WHERE engine_model_code = '54561')
GROUP BY ad_id
) m JOIN 'https://openairdocs.org/data/latest/faa_directive.parquet' d USING (ad_id)
ORDER BY d.status = 'Historical', m.rank, coalesce(d.effective_date, d.publication_date, d.issue_date) DESC, d.ad_number 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.
| 1988 | 1 |
|---|---|
| 1989 | 3 |
| 1990 | 2 |
| 1991 | 3 |
| 1993 | 3 |
| 1994 | 3 |
| 1995 | 1 |
| 1996 | 1 |
| 2000 | 1 |
| 2001 | 2 |
| 2002 | 1 |
| 2004 | 2 |
| 2005 | 1 |
| 2006 | 1 |
| 2009 | 3 |
| 2010 | 1 |
| 2012 | 1 |
| 2016 | 2 |
| 2017 | 2 |
| 2018 | 2 |
| 2019 | 1 |
| 2020 | 1 |
| 2022 | 1 |
| 2023 | 2 |
| 2026 | 1 |