Adapted SQL contingencies.