CardOOD: Robust Query-driven Cardinality Estimation under Out-of-Distribution