# Migration Leader Selection

THE GREAT DUCK MIGRATION! · challenge 5 · hard

> Goose Gordon arrives with the golden migration compass and ceremonial staff. "Time to choose our overall migration leader! We need the duck with the best average performance in 2025 - they'll guide thousands through perilous skies. Remember: when ducks attempted sports multiple times, use only their best score. Excellence under pressure determines survival!"

## Task

Return the SSN of the duck with the highest average score in 2025 (using their best score per sport). You will be working with the `duck_athletes` and `performance_records` tables to find the ultimate migration leader.

## Tables

### `performance_records` (800 rows)

| column | type |
| --- | --- |
| duck_id | BIGINT |
| sport | VARCHAR |
| score | DOUBLE |
| competition_date | DATE |

### `duck_athletes` (50 rows)

| column | type |
| --- | --- |
| id | BIGINT |
| ssn | BIGINT |
| name | VARCHAR |
| age | BIGINT |
| hometown | VARCHAR |

## Data

The tables live in a DuckDB database: https://dbquacks.com/data/databases/athletic_champions.duckdb

To query it outside the browser, attach it read-only:

```sql
ATTACH 'https://dbquacks.com/data/databases/athletic_champions.duckdb' AS db (READ_ONLY);
USE db;
```

Play it in the browser: https://dbquacks.com/challenges/athletic/5

## Answer

The expected answer is not published. Submit on the page to have it checked.
