By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
✓
✓
| competitor_id | competitions | rankings | ranking_with_penalties |
|---|---|---|---|
| 1 | 1; 2; M | 0.1; 0.4 | 0.1; 0.4; +1.0 |
| 2 | 1; 2; M | 0.4; 0.1 | 0.4; 0.1; +1.0 |
| 3 | 1; 2; 3 | 0.2; 0.2; 0.1 | 0.2; 0.2; 0.1 |
| 4 | 1; M; 3 | 0.3; 0.4 | 0.3; +1.0; 0.4 |
| 5 | M; 2; 3 | 0.3; 0.2 | +1.0; 0.3; 0.2 |
| 6 | M; M; 3 | 0.3 | +1.0; +1.0; 0.3 |