Minimax optimal differentially private synthetic data for smooth queries