GASTAT publishes the official Real Estate Price Index as a print-layout bilingual workbook; listings live elsewhere. Aqar puts both through one tested dbt + DuckDB pipeline so they can be read side by side, and refuses to publish if any test fails.
02The system
What I built
GASTAT workbookheaders found, not assumed
Privacy filterno names or deeds
dbt + DuckDBstaging, cleaning, marts
Reportprices, yields, trends
A parser that finds the workbook's headers instead of trusting row numbers, so next quarter loads unchanged
Staging, cleaning and marts in dbt; Arabic city names mapped to GASTAT regions
Privacy at ingestion: advertiser names, deed numbers and free text never enter the warehouse, and a test enforces it
A report with index trends, regional change, city and district prices and rental yields
03The result
What it achieved
1,014 published rates reconciled to within rounding; 16/16 data tests gate every build. Riyadh region +55.9% since 2021 vs +30.7% nationally; gross apartment yield 8.5% in Dammam vs 4.5% in Riyadh.