arcs / tasks /readable /032 /task_readable.md
yanlinf's picture
Release ARCS dataset
1fb4e2d verified
|
Raw History Blame Contribute Delete
602 Bytes
# Task: 032
**Database:** professional_basketball
## Question
List tall players that have played for NBA teams from Los Angeles.
## Gold Query
```sql
SELECT DISTINCT
p.playerID,
p.firstName,
p.lastName,
p.height
FROM players p
JOIN players_teams pt ON p.playerID = pt.playerID
WHERE p.birthCity = 'Los Angeles'
AND p.height >= :height_threshold
AND pt.lgID = 'NBA'
ORDER BY p.lastName, p.firstName;
```
**Execution Result:**
| playerID | firstName | lastName | height |
|------------|-------------|------------|----------|
| willike02 | Kevin | Willis | 84 |
*1 rows*