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-0083525 | Wen earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?
```python
rate = 20.0
hours = 50
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
Execution prints 1100.00.
Wen earns $1,100.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1100.00", "printed": "1100.00", "notation": null} |
nlprog_det-setting-0083526 | A client paid a $10,000 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?
```python
retainer = 10000
hours = 6
rate = 150
left = retainer - hours * rate # 9100
print(left)
```
Result: 9100
The remaining balance is $9,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "9100", "printed": "9100", "notation": null} |
nlprog_det-setting-0083527 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $18. What do 2 hours cost?<|eot|>
<|assistant|>
```python
rate = 4
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
The program outputs: 8
The charge is $8.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $18. What do 2 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 2\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nThe program outputs: 8\n\nThe charge is $8."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0083528 | 2 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Each client gets $22,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "22500.00", "printed": "22500.00", "notation": null} |
nlprog_det-setting-0083529 | What average speed covers 238 miles in 2 hours?
Program:
```python
distance = 238
hours = 2
speed = distance / hours
print(round(speed))
```
The run gives 119.
It averages 119 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0083530 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $12,000 over 6 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 1080.0
print(f"{interest:.2f}")
```
Running this gives 1080.00.
$1,080.00 accrues.<|eot|>
... | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $12,000 over 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 6\ninterest = balance * monthly_rate * months # 1080.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0083531 | A recipe for 8 people uses 300 grams of rice. How many grams are needed for 4 people?
Here is the program.
```python
grams = 300
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 150
print(scaled)
```
(Out: 150)
Use 150 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0083532 | <|start|><|user|>
A recipe for 2 people uses 150 grams of sugar. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 150
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 900
print(scaled)
```
Execution result — 900
900 grams of sugar are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 150 grams of sugar. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 2\nneeded_for = 12\nscaled = grams * needed_for // serves # 900\nprint(scaled)\n```\nExecution result — 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0083533 | The firm was founded in 2025. How many years had passed by 2060?
Computation in Python:
```python
start_year = 2025
end_year = 2060
print(end_year - start_year)
```
This prints 35, as expected.
35 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0083534 | A 6-month warranty starts on December 8, 2025. On what date does it end?
Here's the code.
from datetime import date
start = date(2025, 12, 8)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
In... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2026-06-08", "printed": "2026-06-08", "notation": null} |
nlprog_det-setting-0083535 | A 23 lb package ships at $10 base plus $0.75/lb. What is the charge?
The program:
```python
base = 10
per_pound = 0.75
weight = 23
cost = base + per_pound * weight # 27.25
print(f"{cost:.2f}")
```
(Run result: 27.25)
The charge is $27.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "27.25", "printed": "27.25", "notation": null} |
nlprog_det-setting-0083536 | <|start|><|user|>
A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
```
That prints: 36000.00
The fee is $36,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 36000.0\nprint(f\"{fee:.2f}\")\n```\nThat prints: 36000.00\n\nThe fee is $36,000.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0083537 | <|start|><|user|>
How many of 264 votes make 60% (round up)?<|eot|>
<|assistant|>
159 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 264 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "159 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "159", "printed": "159", "notation": null} |
nlprog_det-setting-0083538 | What percentage of $5,000 is $3,700?
Written as code:
```python
budget = 5000
spent = 3700
percent = spent / budget * 100 # 74.0
print(round(percent, 1))
```
Python prints: 74.0
74.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "74.0", "printed": "74.0", "notation": null} |
nlprog_det-setting-0083539 | <|start|><|user|>
Each storage box holds 20 files. How many boxes are needed for 54 files?<|eot|>
<|assistant|>
```python
import math
files = 54
per_box = 20
boxes = math.ceil(files / per_box) # 3
print(boxes)
```
This prints 3.
3 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 54 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 54\nper_box = 20\nboxes = math.ceil(files / per_box) # 3\nprint(boxes)\n```\nThis prints 3.\n\n3 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0083540 | <|start|><|user|>
A hall has 11 rows of 24 seats, and 37 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 11
per_row = 24
empty = 37
seated = rows * per_row - empty # 227
print(seated)
```
Running this gives 227.
227 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 11 rows of 24 seats, and 37 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 11\nper_row = 24\nempty = 37\nseated = rows * per_row - empty # 227\nprint(seated)\n```\nRunning this gives 227.\n\n227 peop... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "227", "printed": "227", "notation": null} |
nlprog_det-setting-0083541 | What commission does Lucia make on $95,299 in sales at 2%?
Computing it:
```python
sales = 95299
rate = 2 / 100 # 0.02
commission = sales * rate # 1905.98
print(f"{commission:.2f}")
```
Out — 1905.98
Lucia earns $1,905.98. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1905.98", "printed": "1905.98", "notation": null} |
nlprog_det-setting-0083542 | A hall has 25 rows of 18 seats, and 37 seats are empty. How many people are seated?
We write it as a program:
```python
rows = 25
per_row = 18
empty = 37
seated = rows * per_row - empty # 413
print(seated)
```
Interpreter output: 413
413 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "413", "printed": "413", "notation": null} |
nlprog_det-setting-0083543 | Each storage box holds 12 files. How many boxes are needed for 55 files?
Written as code:
```python
import math
files = 55
per_box = 12
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
It prints 5, as expected.
It takes 5 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0083544 | <|start|><|user|>
What is a 15% tip on a $247.54 bill?<|eot|>
<|assistant|>
```python
bill = 247.54
tip_rate = 15 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Executing it gives: 37.13
The tip is $37.13.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $247.54 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 247.54\ntip_rate = 15 / 100\ntip = bill * tip_rate\nprint(f\"{tip:.2f}\")\n```\nExecuting it gives: 37.13\n\nThe tip is $37.13."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "37.13", "printed": "37.13", "notation": null} |
nlprog_det-setting-0083545 | Straight-line depreciation: cost $12,000, salvage $3,000, 3 years. How much per year?
The computation:
```python
cost = 12000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Python prints: 3000.00
Depreciation is $3,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0083546 | <|start|><|user|>
What day of the week is August 10, 2011?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2011, 8, 10) # datetime.date(2011, 8, 10)
print(hearing.strftime("%A"))
```
It prints: Wednesday
August 10, 2011 is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is August 10, 2011?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2011, 8, 10) # datetime.date(2011, 8, 10)\nprint(hearing.strftime(\"%A\"))\n```\nIt prints: Wednesday\n\nAugust 10, 2011 is a Wednes... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0083547 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
At $0.70 per mile, what is the reimbursement for 336 miles?<|eot|>
<|assistant|>
```python
miles = 336
rate = 0.7
reimbursement = miles * rate # 235.2
print(f"{reimbursement:.2f}")
```
Shell output — 235.20
The reimbursement is $235.20.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 336 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 336\nrate = 0.7\nreimbursement = miles * rate # 235.2\nprint(f\"{reimbursemen... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "235.20", "printed": "235.20", "notation": null} |
nlprog_det-setting-0083548 | With 17 rows of 8 chairs and 31 empty chairs, how many chairs are taken?
Here is the program.
```python
rows = 17
per_row = 8
empty = 31
seated = rows * per_row - empty # 105
print(seated)
```
(Out: 105)
105 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0083549 | Counting the first and last day, how many days are there from December 2, 2026 through December 14, 2026?
Here is a short program for it.
```python
from datetime import date
first = date(2026, 12, 2) # datetime.date(2026, 12, 2)
last = date(2026, 12, 14) # datetime.date(2026, 12, 14)
days = (last - first).days + 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0083550 | A 24-month warranty starts on May 24, 2021. On what date does it end?
Python does the arithmetic:
```python
from datetime import date
start = date(2021, 5, 24)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2023-05-24", "printed": "2023-05-24", "notation": null} |
nlprog_det-setting-0083551 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 249 | {"gold": "493.55", "printed": "493.55", "notation": null} |
nlprog_det-setting-0083552 | An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?
As a program:
balance = 7500
monthly_rate = 1 / 100
months = 6
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
The run gives 450.00.
The interest is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0083553 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Yoko was born on June 17, 1960. How old is Yoko on August 20, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1960, 6, 17) # datetime.date(1960, 6, 17)
on = date(2022, 8, 20) # datetime.date(2022, 8, 20)
age = on.year - born.year - ... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Yoko was born on June 17, 1960. How old is Yoko on August 20, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1960, 6, 17) # datetime.date(1960, 6,... | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0083554 | Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 3,000 gallons?
Translated to Python:
```python
base = 20
rate = 4.2
used = 3
free = 0
bill = base + rate * max(0, used - free) # 32.6
print(f"{bill:.2f}")
```
This prints: 32.60
$32.60 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "32.60", "printed": "32.60", "notation": null} |
nlprog_det-setting-0083555 | Equal monthly payments repay $6,000 plus 10% simple yearly interest over 36 months. How large is a payment?
Each payment is $216.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "216.67", "printed": "216.67", "notation": null} |
nlprog_det-setting-0083556 | <|start|><|user|>
Convert 5,662 USD to CAD at 1 USD = 1.31 CAD.<|eot|>
<|assistant|>
That is 7,417.22 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,662 USD to CAD at 1 USD = 1.31 CAD."
},
{
"role": "assistant",
"content": "That is 7,417.22 CAD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "7417.22", "printed": "7417.22", "notation": null} |
nlprog_det-setting-0083557 | 6 friends split a $210 bill plus a 18% tip evenly. How much does each pay?
In code:
bill = 210
tip_rate = 18 / 100 # 0.18
people = 6
each = bill * (1 + tip_rate) / people # 41.3
print(f"{each:.2f}")
Printed: 41.30
Each person pays $41.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "41.30", "printed": "41.30", "notation": null} |
nlprog_det-setting-0083558 | <|start|><|user|>
Walls total 802 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 802
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
Python prints 4.
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 802 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 802\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nPython prints 4.\n\nBuy 4 cans."... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0083559 | An office budget of $20,000 has expenses of $1,227, $3,593, $1,508, $2,486. How much of the budget is left?
Let's compute it with Python.
```python
budget = 20000
expenses = [1227, 3593, 1508, 2486]
left = budget - sum(expenses) # 11186
print(left)
```
The code prints 11186.
The remaining budget is $11,186. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "11186", "printed": "11186", "notation": null} |
nlprog_det-setting-0083560 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Pack A has 10 items for $13.71. Pack B has 15 items for $10.01. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 13.71 / 10 # 1.371
pack_b = 10.01 / 15 # 0.6673333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(chea... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Pack A has 10 items for $13.71. Pack B has 15 items for $10.01. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.71 / 10 # 1.371\npack_b = 10.01 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0083561 | Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
The computation:
```python
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026
print(round(margin, 1))
```
Program output: 2.7
Profit is 2.7% of r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0083562 | <|start|><|user|>
12 boxes hold 25 water bottles each. After 14 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 25
given_away = 14
left = boxes * per_box - given_away # 286
print(left)
```
Printed:
286
That leaves 286 water bottles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 boxes hold 25 water bottles each. After 14 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 25\ngiven_away = 14\nleft = boxes * per_box - given_away # 286\nprint(left)\n```\nPrinted:\n286\n\nThat leaves 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "286", "printed": "286", "notation": null} |
nlprog_det-setting-0083563 | The paralegal logged 8 hours at a rate of $300. How much is billed?
```python
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
```
Console:
2400.00
That comes to $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0083564 | With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.
Computation in Python:
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
Out — 11.1
Profit is 11.1% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0083565 | Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Python version:
```python
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.263157894736842
print(round(margin, 1))
```
This prints 5.3.
The margin is 5.3%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0083566 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 374 files?<|eot|>
<|assistant|>
```python
import math
files = 374
per_box = 15
boxes = math.ceil(files / per_box) # 25
print(boxes)
```
Run it and it prints 25.
25 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 374 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 374\nper_box = 15\nboxes = math.ceil(files / per_box) # 25\nprint(boxes)\n```\nRun it and it prints 25.\n\n25 boxes are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0083567 | A lawyer's fee is 30% of a $40,000 recovery. How large is the fee?
In Python:
```python
recovery = 40000
rate = 30 / 100 # 0.3
fee = recovery * rate # 12000.0
print(f"{fee:.2f}")
```
stdout: 12000.00
The lawyer's fee comes to $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0083568 | Bruna has 7 documents to file, and each filing costs $125. How much are the filing fees in total?
Here is a short program for it.
```python
fee = 125
filings = 7
total = fee * filings # 875
print(total)
```
Running it prints 875, as expected.
The filings cost $875 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "875", "printed": "875", "notation": null} |
nlprog_det-setting-0083569 | <|start|><|user|>
How many 1-foot square tiles cover a 8 ft by 14 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 8
width = 14
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 112
print(tiles)
```
It prints 112, as expected.
It takes 112 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 8 ft by 14 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 8\nwidth = 14\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 112\nprint(tiles)\n```\nIt prints 112, as expec... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0083570 | <|start|><|user|>
Ines earns a 5% commission on $18,612 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 18612
rate = 5 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Printed result: 930.60
Ines earns $930.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ines earns a 5% commission on $18,612 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 18612\nrate = 5 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nPrinted result: 930.60\n\nInes earns $930.60."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "930.60", "printed": "930.60", "notation": null} |
nlprog_det-setting-0083571 | <|start|><|user|>
Attendance was 129 out of 200. Express it as a percent.<|eot|>
<|assistant|>
64.5% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 129 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "64.5% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "64.5", "printed": "64.5", "notation": null} |
nlprog_det-setting-0083572 | A 3-day trip pays $69 a day for meals and $110 a night for lodging (2 nights). What is the total allowance?
That comes to $427. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "427", "printed": "427", "notation": null} |
nlprog_det-setting-0083573 | A measure needs at least 67% of 214 votes. How many votes is that, rounded up?
The computation:
```python
import math
voters = 214
needed = math.ceil(voters * 67 / 100) # 144
print(needed)
```
# stdout: 144
At least 144 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0083574 | The bridge was finished in 2018. How many years had passed by 2021?
Python does the arithmetic:
```python
start_year = 2018
end_year = 2021
print(end_year - start_year)
```
Executing it gives 3.
3 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0083575 | <|start|><|system|>
You may call the tools below.
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
To read 420 p... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0083576 | A $60,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?
```python
grant = 60000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 9666.666666666666
print(f"{each:.2f}")
```
This prints 9666.67, as expected.
$9,666.67 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "9666.67", "printed": "9666.67", "notation": null} |
nlprog_det-setting-0083577 | <|start|><|user|>
At $0.70 per mile, what is the reimbursement for 622 miles?<|eot|>
<|assistant|>
Hugo is owed $435.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 622 miles?"
},
{
"role": "assistant",
"content": "Hugo is owed $435.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "435.40", "printed": "435.40", "notation": null} |
nlprog_det-setting-0083578 | 3 books come back 18 days late, at $0.50 a day each. What is the fine?
per_day = 0.5
days_late = 18
books = 3
fine = per_day * days_late * books # 27.0
print(f"{fine:.2f}")
(Execution result: 27.00)
$27.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0083579 | Of a $8,000 budget, $5,000 has been spent. What percent is that?
As Python:
```python
budget = 8000
spent = 5000
percent = spent / budget * 100 # 62.5
print(round(percent, 1))
```
Program output — 62.5
That is 62.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "62.5", "printed": "62.5", "notation": null} |
nlprog_det-setting-0083580 | <|start|><|user|>
$10,000 is invested at 4% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 12166.529024000001
print(f"{value:.2f}")
```
Output: 12166.53
The balance is $12,166.53.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 4% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 4 / 100 # 0.04\nyears = 5\nvalue = principal * (1 + rate) ** years # 12166.529024000001\nprint(f\"{value:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "12166.53", "printed": "12166.53", "notation": null} |
nlprog_det-setting-0083581 | How much sales tax is charged on a $366.23 purchase at 8%?
The program:
```python
price = 366.23
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 29.2984
print(f"{tax:.2f}")
```
Shell output — 29.30
$29.30 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "29.30", "printed": "29.30", "notation": null} |
nlprog_det-setting-0083583 | 47 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
Computing it:
```python
total = 47
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# result: 7 each, 5 left over
7 each, 5 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "7 each, 5 left over", "printed": "7 each, 5 left over", "notation": null} |
nlprog_det-setting-0083584 | How many days are there from June 12, 2025 to January 27, 2026?
```python
from datetime import date
first = date(2025, 6, 12) # datetime.date(2025, 6, 12)
second = date(2026, 1, 27) # datetime.date(2026, 1, 27)
print((second - first).days)
```
When run, it prints 229.
There are 229 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "229", "printed": "229", "notation": null} |
nlprog_det-setting-0083585 | Beatriz and Nikhil share $3,717 in the ratio 3:4. How much does Beatriz get?
Code:
```python
total = 3717
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1593
print(share_a)
```
Python prints: 1593
Beatriz gets $1,593. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1593", "printed": "1593", "notation": null} |
nlprog_det-setting-0083586 | Counting the first and last day, how many days are there from June 1, 2022 through June 23, 2022?
One way, in code:
```python
from datetime import date
first = date(2022, 6, 1) # datetime.date(2022, 6, 1)
last = date(2022, 6, 23) # datetime.date(2022, 6, 23)
days = (last - first).days + 1 # 23
print(days)
```
Print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0083587 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
Script:
```python
base = 12
rate = 4.2
used = 20
free = 3
bill = base + rate * max(0, used - free) # 83.4
print(f"{bill:.2f}")
```
# printed: 83.40
$83.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "83.40", "printed": "83.40", "notation": null} |
nlprog_det-setting-0083588 | At a 5% tax rate, what is the tax on $620.08?
Computing it:
```python
price = 620.08
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 31.004000000000005
print(f"{tax:.2f}")
```
Run result — 31.00
The tax is $31.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "31.00", "printed": "31.00", "notation": null} |
nlprog_det-setting-0083589 | Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Profit is 5.3% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0083590 | <|start|><|user|>
What is the total rent on a 24-month lease at $1,640 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months # 39360
print(total)
```
Console output: 39360
In total, $39,360 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 24\ntotal = monthly_rent * months # 39360\nprint(total)\n```\nConsole output: 39360\n\nIn total, $39,360 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0083591 | A library charges $0.20 per book per day late. What is the fine for 3 books that are 21 days late?
$12.60 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "12.60", "printed": "12.60", "notation": null} |
nlprog_det-setting-0083592 | Someone works 32 hours at $30.81 per hour. What are the earnings?
Script:
rate = 30.81
hours = 32
earnings = rate * hours # 985.92
print(f"{earnings:.2f}")
Printed: 985.92
The pay is $985.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "985.92", "printed": "985.92", "notation": null} |
nlprog_det-setting-0083593 | <|start|><|user|>
Shipping costs $10 plus $1.50 per pound. What does a 26-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 10
per_pound = 1.5
weight = 26
cost = base + per_pound * weight # 49.0
print(f"{cost:.2f}")
Execution result — 49.00
Shipping costs $49.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $1.50 per pound. What does a 26-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 10\n per_pound = 1.5\n weight = 26\n cost = base + per_pound * weight # 49.0\n print(f\"{cost:.2f}\")\nExecution result ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "49.00", "printed": "49.00", "notation": null} |
nlprog_det-setting-0083594 | With 16 rows of 24 chairs and 11 empty chairs, how many chairs are taken?
A few lines of Python do it:
rows = 16
per_row = 24
empty = 11
seated = rows * per_row - empty # 373
print(seated)
# out: 373
373 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "373", "printed": "373", "notation": null} |
nlprog_det-setting-0083595 | Fines run at $100 per day up to a maximum of $2,500. How much after 41 days?
Python does the arithmetic:
```python
per_day = 100
days = 41
cap = 2500
fine = min(per_day * days, cap)
print(fine)
```
# run result: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0083596 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A 12-month warranty starts on August 1, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 8, 1)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A 12-month warranty starts on August 1, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 8, 1)\nmonths = 12\nyears, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2028-08-01", "printed": "2028-08-01", "notation": null} |
nlprog_det-setting-0083597 | Monthly: $29. Annual: $336. What is saved per year by paying annually?
Python, step by step:
```python
monthly = 29
yearly = 336
savings = monthly * 12 - yearly # 12
print(savings)
```
Running this gives: 12
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0083598 | How long, in days, is it from May 13, 2022 until July 23, 2022?
There are 71 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0083599 | A hearing is set for June 10, 2029. What day of the week is that?
```python
from datetime import date
hearing = date(2029, 6, 10) # datetime.date(2029, 6, 10)
print(hearing.strftime("%A"))
```
(Result: Sunday)
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0083600 | A shift runs from 8:48 AM to 12:33 PM. How long is it in minutes?
We can compute it in Python.
```python
start = 8 * 60 + 48
end = 12 * 60 + 33
print(end - start)
```
The program prints: 225
It is 225 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0083601 | What is -10 degrees Celsius in Fahrenheit?
Here is a short program for it.
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
The interpreter prints 14.
It equals 14 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0083603 | A board has 36 members. A majority is more than half. How many votes make a majority?
A short script:
```python
members = 36
majority = members // 2 + 1 # 19
print(majority)
```
This prints 19, as expected.
19 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0083604 | 2 claimants share a $18,000 settlement equally. What is each share?
Let the code do the arithmetic:
```python
settlement = 18000
parties = 2
share = settlement // parties # 9000
print(share)
```
Out = 9000
Each party receives $9,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0083605 | On which weekday does March 28, 1992 fall?
A short script:
```python
from datetime import date
hearing = date(1992, 3, 28) # datetime.date(1992, 3, 28)
print(hearing.strftime("%A"))
```
Interpreter output — Saturday
March 28, 1992 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0083606 | With 40% off, what does a $80 chair cost?
Code:
```python
price = 80
discount = 40 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
Output:
48.00
The sale price is $48.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "48.00", "printed": "48.00", "notation": null} |
nlprog_det-setting-0083607 | <|start|><|user|>
A hall has 25 rows of 19 seats, and 5 seats are empty. How many people are seated?<|eot|>
<|assistant|>
470 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 25 rows of 19 seats, and 5 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "470 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "470", "printed": "470", "notation": null} |
nlprog_det-setting-0083608 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A 4% increase is applied to $1,100 mon... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0083609 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Delia's scores were 91, 89, 66, 60, 95 and 97. What is the average score?<|eot|>
<|assistant|>
```python
scores = [91, 89, 66, 60, 95, 97]
average = sum(scores) // len(scores) # 83
print(average)
```
The script prints: 83
The mean is 83.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Delia's scores were 91, 89, 66, 60, 95 and 97. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [91, 89, 66, 60, 95, 97]\naverage = sum(scores) // ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0083610 | <|start|><|user|>
How many units at $15 each (variable cost $5) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 1200
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 120
print(units)
On running, it outputs: 120
120 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $5) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 1200\n price = 15\n variable = 5\n units = math.ceil(fixed / (price - variable)) # 120\n print(units)\nOn runn... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0083611 | <|start|><|user|>
Convert 3 h 40 min (the length of a film) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 40
total_minutes = hours * 60 + minutes
print(total_minutes)
```
The script prints 220, as expected.
That is 220 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 40 min (the length of a film) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 40\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nThe script prints 220, as expected.\n\nThat is 220 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0083612 | A $1,500 security deposit has deductions of $200 and $45. How much is refunded?
Program:
```python
deposit = 1500
deductions = [200, 45]
refund = deposit - sum(deductions) # 1255
print(refund)
```
Shell output — 1255
$1,255 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1255", "printed": "1255", "notation": null} |
nlprog_det-setting-0083613 | <|start|><|user|>
A 6-day trip pays $59 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
The allowance is $904.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6-day trip pays $59 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "The allowance is $904."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "904", "printed": "904", "notation": null} |
nlprog_det-setting-0083614 | 5 friends split a $150 bill plus a 20% tip evenly. How much does each pay?
Here is a short program for it.
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
```
(Result: 36.00)
Each person pays $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0083615 | <|start|><|user|>
An invoice lists 39 ink cartridges at $15 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 39
unit_price = 15
subtotal = quantity * unit_price # 585
total = subtotal * (1 + 8 / 100) # 631.8000000000001
print(f"{total:.2f}")
```
The interpreter prints 631.... | chat | [
{
"role": "user",
"content": "An invoice lists 39 ink cartridges at $15 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 39\nunit_price = 15\nsubtotal = quantity * unit_price # 585\ntotal = subtotal * (1 + 8 / 100) # 631.800000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "631.80", "printed": "631.80", "notation": null} |
nlprog_det-setting-0083616 | A 170-mile drive at a steady 40 mph takes how many minutes?
Here is a short program for it.
```python
distance = 170
speed = 40
minutes = distance / speed * 60 # 255.0
print(round(minutes))
```
Console output: 255
The trip takes 255 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0083617 | <|start|><|user|>
What day of the week is February 27, 2017?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2017, 2, 27)
print(hearing.strftime("%A"))
```
Printed = Monday
February 27, 2017 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is February 27, 2017?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2017, 2, 27)\nprint(hearing.strftime(\"%A\"))\n```\nPrinted = Monday\n\nFebruary 27, 2017 is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0083618 | <|start|><|user|>
A 18-month warranty starts on October 3, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 10, 3)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | chat | [
{
"role": "user",
"content": "A 18-month warranty starts on October 3, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 10, 3)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2021-04-03", "printed": "2021-04-03", "notation": null} |
nlprog_det-setting-0083619 | Shipping costs $8 plus $2.50 per pound. What does a 27-pound parcel cost to ship?
Python does the arithmetic:
```python
base = 8
per_pound = 2.5
weight = 27
cost = base + per_pound * weight # 75.5
print(f"{cost:.2f}")
```
Run result — 75.50
The charge is $75.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "75.50", "printed": "75.50", "notation": null} |
nlprog_det-setting-0083620 | At $15.42 an hour, what does 20 hours of work pay?
The pay is $308.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "308.40", "printed": "308.40", "notation": null} |
nlprog_det-setting-0083621 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Of a $5,000 budget, $1,200 has been spent. What percent is that?<|eot|>
<|assistant|>
24.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Of a $5,000 budget, $1,200 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "24.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "24.0", "printed": "24.0", "notation": null} |
nlprog_det-setting-0083624 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A shift runs from 8:45 AM to 1:55 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 45 # 525
end = 13 * 60 + 55 # 835
print(end - start)
```
# program output: 310
310 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A shift runs from 8:45 AM to 1:55 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 45 # 525\nend = 13 * 60 + 55 # 835\nprint(end - start)\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "310", "printed": "310", "notation": null} |
nlprog_det-setting-0083625 | <|start|><|user|>
A $60,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 14250.0
print(f"{each:.2f}")
```
Console:
14250.00
Each installment is $1... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 4\neach = (grant - up_front) / installments # 14250.0\nprint(f... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "14250.00", "printed": "14250.00", "notation": null} |
nlprog_det-setting-0083626 | <|start|><|user|>
Under a 40% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Execution prints 10000.00.
The fee is $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nExecution prints 10000.00.\n\nThe fee is... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0083627 | <|start|><|user|>
3 boxes hold 25 calendars each. After 19 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 3
per_box = 25
given_away = 19
left = boxes * per_box - given_away # 56
print(left)
When run, it prints 56, as expected.
That leaves 56 calendars.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 25 calendars each. After 19 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 3\n per_box = 25\n given_away = 19\n left = boxes * per_box - given_away # 56\n print(left)\nWhen run, it prints 56, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0083628 | At 1% a month (simple), what interest builds on $1,000 over 5 months?
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 50.0
print(f"{interest:.2f}")
```
The program outputs 50.00.
The interest is $50.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "50.00", "printed": "50.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.