pub fn lower_query( catalog: &Catalog, query: &QueryDecl, type_ctx: &TypeContext, ) -> Result<QueryIR>