File size: 602 Bytes
1fb4e2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # 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* |