DuckDB’s JSON extension reads, creates, and manipulates JSON while inferring nested structures into DuckDB vectors. It supports querying JSON Lines files directly. section 5.3
Summarize expected goals
After flattening shot records, aggregate expected goals and goals by team: filter season 2022, calculate round(sum(xG), 2), count goal results, group, and order by totalXG.
