|
Download tasks/readable/020/task_readable.md from megagonlabs/arcs: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/020/task_readable.md
- Command line
-
hf download hf://datasets/megagonlabs/arcs/tasks/readable/020/task_readable.md
-
curl -L -o task_readable.md https://huggingface.co/datasets/megagonlabs/arcs/resolve/main/tasks/readable/020/task_readable.md
1.03 kB
| # Task: 020 | |
| **Database:** retails | |
| ## Question | |
| List large parts that haven't been shipped to Middle East countries. Only includes parts with ID <= 1000. | |
| ## Gold Query | |
| ```sql | |
| SELECT DISTINCT p.p_partkey, p.p_name, p.p_type, p.p_size | |
| FROM part p | |
| WHERE p.p_type LIKE 'LARGE%' | |
| AND p.p_partkey <= 1000 | |
| AND p.p_partkey NOT IN ( | |
| SELECT DISTINCT l.l_partkey | |
| FROM lineitem l | |
| JOIN orders o ON l.l_orderkey = o.o_orderkey | |
| JOIN customer c ON o.o_custkey = c.c_custkey | |
| JOIN nation n ON c.c_nationkey = n.n_nationkey | |
| JOIN region r ON n.n_regionkey = r.r_regionkey | |
| WHERE r.r_name = 'MIDDLE EAST' | |
| ) | |
| ORDER BY p.p_partkey; | |
| ``` | |
| **Execution Result:** | |
| | p_partkey | p_name | p_type | p_size | | |
| |-------------|------------------------------------------|------------------------|----------| | |
| | 355 | frosted ivory beige orange slate | LARGE BURNISHED NICKEL | 33 | | |
| | 887 | cornsilk purple purple lavender seashell | LARGE BRUSHED BRASS | 50 | | |
| *2 rows* |