|
Download tasks/readable/027/task_readable.md from megagonlabs/arcs: direct link, hf CLI and curl.
- Browser
- Download file 2.16 kB
-
https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/027/task_readable.md
- Command line
-
hf download hf://datasets/megagonlabs/arcs/tasks/readable/027/task_readable.md
-
curl -L -o task_readable.md https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/027/task_readable.md
2.16 kB
Task: 027
Database: professional_basketball
Question
List all teams with low points allowed from the Western conference that have made the playoffs.
Gold Query
SELECT t1.tmID, t1.name, SUM(t1.d_pts) * 1.0 / SUM(t1.games) AS avg_points_allowed_per_game
FROM teams t1
WHERE t1.tmID IN (
SELECT DISTINCT tmID
FROM teams
WHERE confID = 'WC' AND playoff IS NOT NULL
)
GROUP BY t1.tmID, t1.name
HAVING SUM(t1.d_pts) * 1.0 / SUM(t1.games) < :points_allowed_threshold
ORDER BY SUM(t1.d_pts) * 1.0 / SUM(t1.games) ASC;
Execution Result:
| tmID | name | avg_points_allowed_per_game |
|---|---|---|
| SEA | Seattle Supersonics | 104.65615615615616 |
| KCO | KC-Omaha Kings | 105.96747967479675 |
| CHI | Chicago Bulls | 108.23675923275121 |
| KCK | Kansas City Kings | 109.79024390243903 |
| SAS | San Antonio Spurs | 110.06282722513089 |
| MIL | Milwaukee Bucks | 110.07267267267267 |
| HOU | Houston Rockets | 110.12062256809338 |
| UTA | Utah Jazz | 110.22158154859967 |
| POR | Portland Trail Blazers | 110.4772583701832 |
| DET | Detroit Pistons | 110.54402290622762 |
| ... | ... | ... |
| PHO | Phoenix Suns | 113.03063063063063 |
| SFW | San Francisco Warriors | 113.92455418381344 |
| MIN | Minnesota Timberwolves | 114.41728855721394 |
| LAC | Los Angeles Clippers | 115.31219028741329 |
| GSW | Golden State Warriors | 115.77594033722438 |
| SAC | Sacramento Kings | 116.39204545454545 |
| DEN | Denver Nuggets | 117.14734480179506 |
| MEM | Memphis Grizzlies | 132.67073170731706 |
| NOH | New Orleans Hornets | 148.19268292682926 |
| OKC | Oklahoma City Thunder | 380.1341463414634 |
... truncated (22 rows total)