id stringlengths 23 26 | text stringlengths 20 1.37k | format stringclasses 2
values | messages listlengths 2 4 ⌀ | family stringclasses 1
value | sub stringclasses 3
values | variant stringclasses 1
value | variant_of stringclasses 0
values | generator stringclasses 1
value | sources listlengths 0 0 | source_ids listlengths 0 0 | n_tokens_alea int64 8 494 | meta stringlengths 47 170 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
nlprog_det-setting-0064372 | <|start|><|system|>
You may call the tools below.
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
At a 7% tax rate, wha... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "6.72", "printed": "6.72", "notation": null} |
nlprog_det-setting-0064373 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?
Here is a short program for it.
```python
rate = 18.5
hours = 49
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 249.75
pay = regular + overtime # 989.75
print(f"{pay:.2f}")
```
Executing it gives: 98... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "989.75", "printed": "989.75", "notation": null} |
nlprog_det-setting-0064374 | How much sales tax is charged on a $604.88 purchase at 9%?
One way, in code:
```python
price = 604.88
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 54.4392
print(f"{tax:.2f}")
```
This prints 54.44.
$54.44 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "54.44", "printed": "54.44", "notation": null} |
nlprog_det-setting-0064375 | To read 240 pages in 6 days, how many pages per day are needed?
In code:
```python
pages = 240
days = 6
per_day = pages // days # 40
print(per_day)
```
Out:
40
That is 40 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0064376 | A clerk's office charges $50 for each filing. Ulla submits 6 filings. What is the total fee?
Translated to Python:
```python
fee = 50
filings = 6
total = fee * filings
print(total)
```
Printed result: 300
The total fee is $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0064377 | <|start|><|user|>
A settlement of $960 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
Each share is $120.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $960 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "Each share is $120."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0064378 | Count 30 days forward from September 26, 2021. What date is that?
As a program:
```python
from datetime import date, timedelta
start = date(2021, 9, 26) # datetime.date(2021, 9, 26)
end = start + timedelta(days=30) # datetime.date(2021, 10, 26)
print(end.isoformat())
```
Program output: 2021-10-26
The period ends o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2021-10-26", "printed": "2021-10-26", "notation": null} |
nlprog_det-setting-0064379 | <|start|><|user|>
A trial runs from May 6, 2018 to May 27, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 5, 6) # datetime.date(2018, 5, 6)
last = date(2018, 5, 27) # datetime.date(2018, 5, 27)
days = (last - first).days + 1 # 22
... | chat | [
{
"role": "user",
"content": "A trial runs from May 6, 2018 to May 27, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 5, 6) # datetime.date(2018, 5, 6)\nlast = date(2018, 5, 27) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0064380 | <|start|><|user|>
At a 6% tax rate, what is the tax on $688.24?<|eot|>
<|assistant|>
price = 688.24
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 41.294399999999996
print(f"{tax:.2f}")
Execution prints 41.29.
$41.29 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 6% tax rate, what is the tax on $688.24?"
},
{
"role": "assistant",
"content": " price = 688.24\n tax_rate = 6 / 100 # 0.06\n tax = price * tax_rate # 41.294399999999996\n print(f\"{tax:.2f}\")\nExecution prints 41.29.\n\n$41.29 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "41.29", "printed": "41.29", "notation": null} |
nlprog_det-setting-0064381 | <|start|><|user|>
At $18.79 an hour, what does 16 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 18.79
hours = 16
earnings = rate * hours # 300.64
print(f"{earnings:.2f}")
```
Output — 300.64
The pay is $300.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $18.79 an hour, what does 16 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.79\nhours = 16\nearnings = rate * hours # 300.64\nprint(f\"{earnings:.2f}\")\n```\nOutput — 300.64\n\nThe pay is $300.64."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "300.64", "printed": "300.64", "notation": null} |
nlprog_det-setting-0064382 | <|start|><|user|>
A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 400
new = 240
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Out — -40
It changed by -40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 240\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\nOut — -40\n\nIt changed by -40%.... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0064383 | <|start|><|user|>
Shipping costs $10 plus $2.00 per pound. What does a 30-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 10
per_pound = 2.0
weight = 30
cost = base + per_pound * weight # 70.0
print(f"{cost:.2f}")
Executing it gives 70.00.
The charge is $70.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.00 per pound. What does a 30-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 10\n per_pound = 2.0\n weight = 30\n cost = base + per_pound * weight # 70.0\n print(f\"{cost:.2f}\")\nExecuting it give... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "70.00", "printed": "70.00", "notation": null} |
nlprog_det-setting-0064384 | A $30,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?
Python does the arithmetic:
grant = 30000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
Printed result: 4500.00
$4,500.00 per install... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0064385 | A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 78-page copy cost?
Python code:
```python
pages = 78
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 49.0
print(f"{cost:.2f}")
```
The script prints 49.00.
The total is $49.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "49.00", "printed": "49.00", "notation": null} |
nlprog_det-setting-0064386 | What simple interest does $5,000 earn at 4% a year over 2 years?
A Python solution:
principal = 5000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 400.0
print(f"{interest:.2f}")
Executed, it shows: 400.00
It earns $400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "400.00", "printed": "400.00", "notation": null} |
nlprog_det-setting-0064387 | <|start|><|user|>
A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 400
new = 440
change = (new - old) / old * 100 # 10.0
print(round(change))
```
The script prints 10.
It changed by 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 440\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nThe script prints 10.\n\nIt chang... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0064389 | <|start|><|user|>
Leon was born on January 15, 1978. How old is Leon on November 19, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1978, 1, 15) # datetime.date(1978, 1, 15)
on = date(2021, 11, 19) # datetime.date(2021, 11, 19)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | chat | [
{
"role": "user",
"content": "Leon was born on January 15, 1978. How old is Leon on November 19, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1978, 1, 15) # datetime.date(1978, 1, 15)\non = date(2021, 11, 19) # datetime.date(2021, 11, 19)\nage ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0064390 | A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?
Set it up in Python:
```python
monthly_rent = 3250
months = 18
total = monthly_rent * months # 58500
print(total)
```
stdout:
58500
In total, $58,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0064391 | Ines was born on July 10, 1966. How old is Ines on November 2, 2029?
```python
from datetime import date
born = date(1966, 7, 10) # datetime.date(1966, 7, 10)
on = date(2029, 11, 2) # datetime.date(2029, 11, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 63
print(age)
```
Python prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0064392 | A 4 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? 3 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0064393 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
How much is a $79 daily meal allowance over 3 days?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 79
total = days * meal_rate # 237
print(total)
```
Result: 237
The allowance is $237.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "How much is a $79 daily meal allowance over 3 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 79\ntotal = days * meal_rate # 237\nprint(total)\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0064394 | Noor was born on April 1, 1976. How old is Noor on January 17, 2027?
Script:
```python
from datetime import date
born = date(1976, 4, 1) # datetime.date(1976, 4, 1)
on = date(2027, 1, 17) # datetime.date(2027, 1, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 50
print(age)
```
Execu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0064395 | What simple interest does $8,000 earn at 6% a year over 6 years?
Python does the arithmetic:
```python
principal = 8000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
Out — 2880.00
It earns $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0064396 | Attendance was 19 out of 25. Express it as a percent.
Python, step by step:
```python
present = 19
total = 25
percent = present / total * 100 # 76.0
print(round(percent, 1))
```
Python prints 76.0.
76.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0064397 | At 1.5% a month (simple), what interest builds on $7,500 over 3 months?
Programmatically:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print(f"{interest:.2f}")
```
Out:
337.50
The interest is $337.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0064398 | <|start|><|user|>
A service costs $29 a month or $336 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 336
savings = monthly * 12 - yearly # 12
print(savings)
```
Output:
12
The annual plan saves $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $336 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 336\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nOutput:\n12\n\nThe annu... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0064399 | <|start|><|user|>
A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
old = 200
new = 240
change = (new - old) / old * 100 # 20.0
print(round(change))
(Printed result: 20)
The change is 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": " old = 200\n new = 240\n change = (new - old) / old * 100 # 20.0\n print(round(change))\n(Printed result: 20)\n\nThe chang... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0064400 | <|start|><|user|>
Which is cheaper per unit: 8 for $8.30 (A) or 20 for $11.17 (B)?<|eot|>
<|assistant|>
```python
pack_a = 8.3 / 8 # 1.0375
pack_b = 11.17 / 20 # 0.5585
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Out: B)
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $8.30 (A) or 20 for $11.17 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.3 / 8 # 1.0375\npack_b = 11.17 / 20 # 0.5585\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\n(Out: B)\n\nPack ... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0064401 | A 19 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Computation in Python:
```python
import math
length = 19
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 67
print(tiles)
```
# run result: 67
It takes 67 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0064402 | A desk lamp costs $90. It is 15% off. What is the sale price?
In Python:
```python
price = 90
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 76.5
print(f"{sale_price:.2f}")
```
Executing it gives 76.50, as expected.
The sale price is $76.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "76.50", "printed": "76.50", "notation": null} |
nlprog_det-setting-0064403 | 4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 4 # 7200.0
print(f"{per_client:.2f}")
```
Running this gives 7200.00.
Each share is $7,200.0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0064404 | A pack of 8 envelopes sells for $344. What does each cost?
Python, step by step:
total = 344
count = 8
per_item = total // count # 43
print(per_item)
Output of the run — 43
Each one costs $43. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0064406 | <|start|><|user|>
Meals are $64 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1282
print(total)
```
Out:
1282
The allowance is $1,282... | chat | [
{
"role": "user",
"content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1282", "printed": "1282", "notation": null} |
nlprog_det-setting-0064407 | How many 1-foot square tiles cover a 20 ft by 3 ft floor (round up)?
```python
import math
length = 20
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 60
print(tiles)
```
Python prints: 60
It takes 60 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0064408 | 2 books come back 26 days late, at $0.10 a day each. What is the fine?
As a program:
```python
per_day = 0.1
days_late = 26
books = 2
fine = per_day * days_late * books # 5.2
print(f"{fine:.2f}")
```
Run it and it prints 5.20.
$5.20 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "5.20", "printed": "5.20", "notation": null} |
nlprog_det-setting-0064410 | A $48,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?
Let the code do the arithmetic:
```python
grant = 48000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 7500.0
print(f"{each:.2f}")
```
Out:
7500.00
$7,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0064411 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "-4436", "printed": "-4436", "notation": null} |
nlprog_det-setting-0064412 | Wen and Wanjiru share $1,155 in the ratio 3:4. How much does Wen get?
Computation in Python:
```python
total = 1155
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 495
print(share_a)
```
Running it prints 495.
Wen gets $495. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "495", "printed": "495", "notation": null} |
nlprog_det-setting-0064413 | Monthly: $9. Annual: $72. What is saved per year by paying annually?
Program:
```python
monthly = 9
yearly = 72
savings = monthly * 12 - yearly # 36
print(savings)
```
Python prints: 36
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0064414 | <|start|><|user|>
29 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 29
total = 50
percent = present / total * 100 # 57.99999999999999
print(round(percent, 1))
```
It prints: 58.0
58.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "29 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 29\ntotal = 50\npercent = present / total * 100 # 57.99999999999999\nprint(round(percent, 1))\n```\nIt prints: 58.0\n\n58.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0064415 | At an exchange rate of 1.08 USD per GBP, how many USD is 1,986 GBP?
```python
amount = 1986
rate = 1.08
converted = amount * rate # 2144.88
print(f"{converted:.2f}")
```
Run it and it prints: 2144.88
That is 2,144.88 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2144.88", "printed": "2144.88", "notation": null} |
nlprog_det-setting-0064416 | What does $5,000 grow to in 2 years at 5% annual compounding?
As a program:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 5512.5
print(f"{value:.2f}")
```
The program prints 5512.50, as expected.
The balance is $5,512.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5512.50", "printed": "5512.50", "notation": null} |
nlprog_det-setting-0064417 | The building opened in 2015. How many years had passed by 2032?
We write it as a program:
```python
start_year = 2015
end_year = 2032
print(end_year - start_year)
```
# execution result: 17
That is 17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0064418 | From a $10,000 retainer, 14 hours at $250/hour have been drawn. What remains?
Let the code do the arithmetic:
```python
retainer = 10000
hours = 14
rate = 250
left = retainer - hours * rate # 6500
print(left)
```
Printed — 6500
The remaining balance is $6,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "6500", "printed": "6500", "notation": null} |
nlprog_det-setting-0064419 | <|start|><|user|>
A settlement of $7,348 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
```
Output — 1837
Each party receives $1,837.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $7,348 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 7348\nparties = 4\nshare = settlement // parties # 1837\nprint(share)\n```\nOutput — 1837\n\nEach party receive... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0064420 | What day of the week is November 20, 2012?
As a program:
```python
from datetime import date
hearing = date(2012, 11, 20) # datetime.date(2012, 11, 20)
print(hearing.strftime("%A"))
```
Execution prints Tuesday.
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0064421 | 168 copies of a 39-page packet are printed at $0.08 per page. What is the cost?
Let's compute it with Python.
```python
pages = 39
copies = 168
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 524.16
print(f"{cost:.2f}")
```
When run, it prints: 524.16
The job costs $524.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "524.16", "printed": "524.16", "notation": null} |
nlprog_det-setting-0064422 | Printing costs 15 cents a page. What does it cost to print 7 copies of a 41-page handout?
A Python solution:
```python
pages = 41
copies = 7
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 43.05
print(f"{cost:.2f}")
```
stdout: 43.05
Printing costs $43.05. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "43.05", "printed": "43.05", "notation": null} |
nlprog_det-setting-0064423 | <|start|><|system|>
Tool definitions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "eval_python", "description": "A Python interpreter.... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 323 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0064424 | A printer costs $300. It is 20% off. What is the sale price?
Code:
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
(Run result: 240.00)
The sale price is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0064425 | With 15% off, what does a $120 chair cost?
Let's compute it with Python.
price = 120
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 102.0
print(f"{sale_price:.2f}")
(Printed: 102.00)
It costs $102.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "102.00", "printed": "102.00", "notation": null} |
nlprog_det-setting-0064426 | Monthly: $19. Annual: $204. What is saved per year by paying annually? The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0064427 | Someone works 32 hours at $26.01 per hour. What are the earnings?
As a program:
```python
rate = 26.01
hours = 32
earnings = rate * hours # 832.32
print(f"{earnings:.2f}")
```
Execution prints: 832.32
That earns $832.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "832.32", "printed": "832.32", "notation": null} |
nlprog_det-setting-0064428 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
If a 5-year limitations period starts on June 12, 2016, when does it end?<|eot|>
<|assistant|>
It runs out on June 12, 2021.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "If a 5-year limitations period starts on June 12, 2016, when does it end?"
},
{
"role": "assistant",
"content": "It runs out on June 12, 2021."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "2021-06-12", "printed": "2021-06-12", "notation": null} |
nlprog_det-setting-0064429 | <|start|><|user|>
A measure needs at least 60% of 208 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 208
needed = math.ceil(voters * 60 / 100) # 125
print(needed)
```
Printed = 125
125 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 208 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 208\nneeded = math.ceil(voters * 60 / 100) # 125\nprint(needed)\n```\nPrinted = 125\n\n125 votes are needed."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0064430 | What is -10 degrees Celsius in Fahrenheit?
Computing it:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Run it and it prints: 14
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0064432 | Copies cost $15 plus $0.10 for each page beyond 0. How much for 95 pages?
Translated to Python:
pages = 95
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 24.5
print(f"{cost:.2f}")
Output = 24.50
The total is $24.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "24.50", "printed": "24.50", "notation": null} |
nlprog_det-setting-0064433 | 278 files go into boxes of 25. How many boxes does that take?
The Python version:
```python
import math
files = 278
per_box = 25
boxes = math.ceil(files / per_box) # 12
print(boxes)
```
Run it and it prints 12.
It takes 12 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0064434 | <|start|><|user|>
The landlord deducts $60 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [60]
refund = deposit - sum(deductions) # 1940
print(refund)
```
This prints 1940.
$1,940 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $60 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [60]\nrefund = deposit - sum(deductions) # 1940\nprint(refund)\n```\nThis prints 1940.\n\n$1,940 is return... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1940", "printed": "1940", "notation": null} |
nlprog_det-setting-0064435 | A 270-mile drive at a steady 60 mph takes how many minutes?
```python
distance = 270
speed = 60
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
Running it prints 270, as expected.
270 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0064436 | <|start|><|user|>
A clerk's office charges $50 for each filing. Oskar submits 15 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 50
filings = 15
total = fee * filings # 750
print(total)
```
stdout: 750
The filings cost $750 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $50 for each filing. Oskar submits 15 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 15\ntotal = fee * filings # 750\nprint(total)\n```\nstdout: 750\n\nThe filings cost $750 in all."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0064437 | Count the days between January 21, 2020 and July 28, 2020.
It is 189 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "189", "printed": "189", "notation": null} |
nlprog_det-setting-0064438 | A party has 28 days to respond to a motion served on September 12, 2025, with 3 days added because service was by mail. When is the response due?
In Python:
```python
from datetime import date, timedelta
served = date(2025, 9, 12) # datetime.date(2025, 9, 12)
response_days = 28
mail_days = 3
due = served + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2025-10-13", "printed": "2025-10-13", "notation": null} |
nlprog_det-setting-0064439 | A trial runs from August 18, 2026 to September 10, 2026, counting both days. How many calendar days is that?
Python does the arithmetic:
```python
from datetime import date
first = date(2026, 8, 18) # datetime.date(2026, 8, 18)
last = date(2026, 9, 10) # datetime.date(2026, 9, 10)
days = (last - first).days + 1 # 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0064440 | <|start|><|user|>
A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?<|eot|>
<|assistant|>
days = 5
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 995
print(total)
# execution re... | chat | [
{
"role": "user",
"content": "A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": " days = 5\n meal_rate = 59\n lodging_rate = 175\n nights = days - 1 # 4\n total = days * meal_rate + ni... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "995", "printed": "995", "notation": null} |
nlprog_det-setting-0064442 | <|start|><|user|>
Count 60 days forward from January 23, 2024. What date is that?<|eot|>
<|assistant|>
It ends on March 23, 2024.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count 60 days forward from January 23, 2024. What date is that?"
},
{
"role": "assistant",
"content": "It ends on March 23, 2024."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2024-03-23", "printed": "2024-03-23", "notation": null} |
nlprog_det-setting-0064443 | Prorate $1,800 of monthly rent for 7 days of a 31-day month.
The tenant owes $406.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "406.45", "printed": "406.45", "notation": null} |
nlprog_det-setting-0064444 | A party has 14 days to respond to a motion served on December 24, 2019, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2019, 12, 24) # datetime.date(2019, 12, 24)
response_days = 14
mail_days = 3
due = served + timedelta(days=respo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "2020-01-10", "printed": "2020-01-10", "notation": null} |
nlprog_det-setting-0064445 | A customer buys 3 paper reams at $22 each, 6 scissors at $10 each, 5 scissors at $22 each and pays with $250. How much change is due?
We can compute it in Python.
```python
items = [(3, 22), (6, 10), (5, 22)]
total = sum(q * p for q, p in items) # 236
paid = 250
change = paid - total # 14
print(change)
```
It output... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0064446 | <|start|><|user|>
Find the mean of these test scores: 75, 63, 64 and 86.<|eot|>
<|assistant|>
```python
scores = [75, 63, 64, 86]
average = sum(scores) // len(scores) # 72
print(average)
```
It prints 72, as expected.
The mean is 72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 75, 63, 64 and 86."
},
{
"role": "assistant",
"content": "```python\nscores = [75, 63, 64, 86]\naverage = sum(scores) // len(scores) # 72\nprint(average)\n```\nIt prints 72, as expected.\n\nThe mean is 72."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0064447 | A garage charges $3 an hour, never more than $24 a day. How much for 2 hours?
rate = 3
hours = 2
daily_max = 24
cost = min(rate * hours, daily_max) # 6
print(cost)
It prints: 6
Parking costs $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0064448 | A trial runs from August 10, 2018 to August 29, 2018, counting both days. How many calendar days is that?
Coded up:
```python
from datetime import date
first = date(2018, 8, 10) # datetime.date(2018, 8, 10)
last = date(2018, 8, 29) # datetime.date(2018, 8, 29)
days = (last - first).days + 1 # 20
print(days)
```
Run... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0064449 | <|start|><|user|>
Divide 265 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 265
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Result: 66 each, 1 left over
The a... | chat | [
{
"role": "user",
"content": "Divide 265 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 265\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "66 each, 1 left over", "printed": "66 each, 1 left over", "notation": null} |
nlprog_det-setting-0064450 | The firm was founded in 2022. How many years had passed by 2047?
```python
start_year = 2022
end_year = 2047
print(end_year - start_year)
```
Out = 25
That is 25 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0064451 | How many whole days and leftover hours are in 106 hours?
```python
hours = 106
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
When run, it prints 4 days and 10 hours, as expected.
106 hours is 4 days and 10 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4 days and 10 hours", "printed": "4 days and 10 hours", "notation": null} |
nlprog_det-setting-0064452 | A meal costs $90.77. How much is a 10% tip?
Python version:
bill = 90.77
tip_rate = 10 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
This prints 9.08.
The tip is $9.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "9.08", "printed": "9.08", "notation": null} |
nlprog_det-setting-0064453 | At 45 miles per hour, how many minutes does a 180-mile trip take?
The trip takes 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0064454 | <|start|><|user|>
5 claimants share a $36,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each share is $7,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $36,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each share is $7,200."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0064455 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Find the mean of these test scores: 75, 59, 87, 61 and 88.<|eot|>
<|assistant|>
scores = [75, 59, 87, 61, 88]
average = sum(scores) // len(scores)
print(average)
Python prints 74.
The average score is 74.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Find the mean of these test scores: 75, 59, 87, 61 and 88."
},
{
"role": "assistant",
"content": " scores = [75, 59, 87, 61, 88]\n average = sum(scores) // len(scores)\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0064456 | <|start|><|user|>
At a 7% tax rate, what is the tax on $165.33?<|eot|>
<|assistant|>
```python
price = 165.33
tax_rate = 7 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
# execution result: 11.57
$11.57 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $165.33?"
},
{
"role": "assistant",
"content": "```python\nprice = 165.33\ntax_rate = 7 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\n# execution result: 11.57\n\n$11.57 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "11.57", "printed": "11.57", "notation": null} |
nlprog_det-setting-0064458 | <|start|><|user|>
A garage charges $2 an hour, never more than $15 a day. How much for 6 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 6
daily_max = 15
cost = min(rate * hours, daily_max) # 12
print(cost)
```
# execution result: 12
The charge is $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $15 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 6\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\n# execution result: 12\n\nThe charge is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0064459 | <|start|><|user|>
At a 5% tax rate, what is the tax on $584.21?<|eot|>
<|assistant|>
```python
price = 584.21
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 29.210500000000003
print(f"{tax:.2f}")
```
Execution prints 29.21, as expected.
The tax is $29.21.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $584.21?"
},
{
"role": "assistant",
"content": "```python\nprice = 584.21\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 29.210500000000003\nprint(f\"{tax:.2f}\")\n```\nExecution prints 29.21, as expected.\n\nThe tax is $... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "29.21", "printed": "29.21", "notation": null} |
nlprog_det-setting-0064460 | Rent of $1,100 goes up 2%. What is the new rent?
```python
rent = 1100
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1122.0
print(f"{new_rent:.2f}")
```
The printout reads 1122.00.
It rises to $1,122.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1122.00", "printed": "1122.00", "notation": null} |
nlprog_det-setting-0064461 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A party has 21 days to respond to a motion served on June 13, 2021, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2021, 6, 13) # datetime.date(2021, 6,... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on June 13, 2021, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom... | nlprog_det | setting | original | null | deterministic | [] | [] | 186 | {"gold": "2021-07-07", "printed": "2021-07-07", "notation": null} |
nlprog_det-setting-0064463 | A garage charges $5 an hour, never more than $20 a day. How much for 10 hours?
As Python:
```python
rate = 5
hours = 10
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Printed result — 20
Parking costs $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0064464 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "fetch_filin... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 374 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0064465 | Counting the first and last day, how many days are there from July 27, 2027 through August 10, 2027?
The computation:
```python
from datetime import date
first = date(2027, 7, 27) # datetime.date(2027, 7, 27)
last = date(2027, 8, 10) # datetime.date(2027, 8, 10)
days = (last - first).days + 1 # 15
print(days)
```
C... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0064466 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Convert 3 h 32 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 32
total_minutes = hours * 60 + minutes # 212
print(total_minutes)
```
Result:
212
The workshop lasted 212 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Convert 3 h 32 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 32\ntotal_minutes = hours * 60 + minutes # 212\nprint(total_minute... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "212", "printed": "212", "notation": null} |
nlprog_det-setting-0064467 | <|start|><|user|>
A bicycle helmet costs $180. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
price = 180
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 162.0
print(f"{sale_price:.2f}")
Run it and it prints: 162.00
The sale price is $162.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A bicycle helmet costs $180. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 180\n discount = 10 / 100 # 0.1\n sale_price = price * (1 - discount) # 162.0\n print(f\"{sale_price:.2f}\")\nRun it and it prints: 162.... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "162.00", "printed": "162.00", "notation": null} |
nlprog_det-setting-0064468 | At a 5% tax rate, what is the tax on $133.40?
Python does the arithmetic:
```python
price = 133.4
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 6.670000000000001
print(f"{tax:.2f}")
```
Python prints 6.67, as expected.
$6.67 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "6.67", "printed": "6.67", "notation": null} |
nlprog_det-setting-0064469 | <|start|><|user|>
Copies cost $5 plus $0.25 for each page beyond 10. How much for 31 pages?<|eot|>
<|assistant|>
```python
pages = 31
base = 5
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 10.25
print(f"{cost:.2f}")
```
(stdout: 10.25)
The copy costs $10.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 10. How much for 31 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 31\nbase = 5\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 10.25\nprint(f\"{cost:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "10.25", "printed": "10.25", "notation": null} |
nlprog_det-setting-0064470 | Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons?
```python
base = 12
rate = 5.1
used = 12
free = 0
bill = base + rate * max(0, used - free) # 73.19999999999999
print(f"{bill:.2f}")
```
(Output: 73.20)
The bill is $73.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "73.20", "printed": "73.20", "notation": null} |
nlprog_det-setting-0064471 | <|start|><|user|>
A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
In total, $39,360 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "In total, $39,360 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0064472 | A training session lasted 2 hours and 37 minutes. How many minutes is that?
Translated to Python:
hours = 2
minutes = 37
total_minutes = hours * 60 + minutes # 157
print(total_minutes)
The printout reads: 157
That is 157 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "157", "printed": "157", "notation": null} |
nlprog_det-setting-0064473 | 59 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
One way, in code:
```python
total = 59
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed — 7 each, 3 left over
The answer: 7 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "7 each, 3 left over", "printed": "7 each, 3 left over", "notation": null} |
nlprog_det-setting-0064474 | <|start|><|system|>
Tools you may use:
[{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A claim accru... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "2026-03-08", "printed": "2026-03-08", "notation": null} |
nlprog_det-setting-0064475 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after June 11, 2026 up to and including July 9, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 6, 11)
end = date(2026, 7, 9)
count = 0
for k in range(1, (end - start).... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 11, 2026 up to and including July 9, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart... | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0064477 | A 36-month warranty starts on December 20, 2020. On what date does it end?
Python does the arithmetic:
```python
from datetime import date
start = date(2020, 12, 20)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-12-20", "printed": "2023-12-20", "notation": null} |
nlprog_det-setting-0064478 | Divide 152 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
Let's compute it with Python.
```python
total = 152
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# execution result: 16 each, 8 left over
1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "16 each, 8 left over", "printed": "16 each, 8 left over", "notation": null} |
nlprog_det-setting-0064479 | A hearing starts at 9:40 AM and lasts 50 minutes. When does it end?
Computation in Python:
```python
start = 9 * 60 + 40
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Result:
10:30 AM
It ends at 10:30 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "10:30 AM", "printed": "10:30 AM", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.