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-0071214 | <|start|><|user|>
A garage charges $3 an hour, never more than $18 a day. How much for 9 hours?<|eot|>
<|assistant|>
```python
rate = 3
hours = 9
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Run it and it prints: 18
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $18 a day. How much for 9 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 9\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nRun it and it prints: 18\n\nThe charge i... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0071215 | <|start|><|user|>
A trial runs from April 8, 2024 to April 29, 2024, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 22 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from April 8, 2024 to April 29, 2024, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 22 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0071216 | <|start|><|user|>
3 bike rides at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 3
total = per_session * sessions
print(total)
```
The run gives: 1050
That burns 1050 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 bike rides at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 3\ntotal = per_session * sessions\nprint(total)\n```\nThe run gives: 1050\n\nThat burns 1050 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0071217 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
The meal allowance is ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 195 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0071218 | <|start|><|user|>
Pilar was born on October 2, 1956. How old is Pilar on May 13, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1956, 10, 2) # datetime.date(1956, 10, 2)
on = date(2022, 5, 13) # datetime.date(2022, 5, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.... | chat | [
{
"role": "user",
"content": "Pilar was born on October 2, 1956. How old is Pilar on May 13, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1956, 10, 2) # datetime.date(1956, 10, 2)\non = date(2022, 5, 13) # datetime.date(2022, 5, 13)\nage = on.y... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0071219 | A settlement of $524 is split equally among 2 parties. How much does each party receive?
Computation in Python:
```python
settlement = 524
parties = 2
share = settlement // parties # 262
print(share)
```
What it prints: 262
Each share is $262. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0071220 | A court charges $15 per request plus $0.25 per page after the first 0 pages. What does a 64-page copy cost?
Program:
```python
pages = 64
base = 15
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 31.0
print(f"{cost:.2f}")
```
# console output: 31.00
The copy costs $31.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "31.00", "printed": "31.00", "notation": null} |
nlprog_det-setting-0071223 | <|start|><|user|>
Buying 2 flash drives at $16 each, 6 cables at $17 each, 2 water bottles at $29 each, 1 folders at $22 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
```python
items = [(2, 16), (6, 17), (2, 29), (1, 22)]
total = sum(q * p for q, p in items) # 214
paid = 250
change = paid... | chat | [
{
"role": "user",
"content": "Buying 2 flash drives at $16 each, 6 cables at $17 each, 2 water bottles at $29 each, 1 folders at $22 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(2, 16), (6, 17), (2, 29), (1, 22)]\ntotal = sum(... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0071224 | What commission does Signe make on $40,601 in sales at 10%?
```python
sales = 40601
rate = 10 / 100 # 0.1
commission = sales * rate # 4060.1000000000004
print(f"{commission:.2f}")
```
Program output: 4060.10
Signe earns $4,060.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4060.10", "printed": "4060.10", "notation": null} |
nlprog_det-setting-0071225 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 5000\ncosts = 4000\nprof... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0071226 | A garage charges $2 an hour, never more than $18 a day. How much for 6 hours?
Written as code:
```python
rate = 2
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
This prints 12, as expected.
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0071227 | Split $3,225 between Ivan and Yoko in the ratio 2 to 3. What is Ivan's share?
As a program:
```python
total = 3225
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1290
print(share_a)
```
Executing it gives: 1290
Ivan gets $1,290. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1290", "printed": "1290", "notation": null} |
nlprog_det-setting-0071228 | If a 25-minute class begins at 10:30 AM, what time does it finish?
We can compute it in Python.
```python
start = 10 * 60 + 30
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints 10:55 AM.
It ends at 10:55 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "10:55 AM", "printed": "10:55 AM", "notation": null} |
nlprog_det-setting-0071229 | A recipe for 4 people uses 100 grams of pasta. How many grams are needed for 6 people?
Use 150 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0071230 | <|start|><|user|>
After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Output = 3000.00
$3,000.00 per installment.<... | chat | [
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 3000.0\nprint(f\"{e... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0071231 | Ines was born on October 16, 1988. How old is Ines on December 17, 2022?
Python version:
```python
from datetime import date
born = date(1988, 10, 16) # datetime.date(1988, 10, 16)
on = date(2022, 12, 17) # datetime.date(2022, 12, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 34
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0071232 | 3 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Here's the code.
```python
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 3 # 22400.0
print(f"{per_client:.2f}")
```
When run, it prints 22400.00, as ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "22400.00", "printed": "22400.00", "notation": null} |
nlprog_det-setting-0071233 | <|start|><|user|>
A workshop lasted 2 hours and 51 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 2
minutes = 51
total_minutes = hours * 60 + minutes # 171
print(total_minutes)
```
Printed result: 171
The workshop lasted 171 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 2 hours and 51 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 51\ntotal_minutes = hours * 60 + minutes # 171\nprint(total_minutes)\n```\nPrinted result: 171\n\nThe workshop lasted 171 minu... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "171", "printed": "171", "notation": null} |
nlprog_det-setting-0071234 | A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?
Code:
```python
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
```
Printed:
29520
In total, $29,520 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0071235 | What is -10 degrees Celsius in Fahrenheit?
Script:
celsius = -10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
When run, it prints 14, as expected.
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0071236 | How much is a $74 daily meal allowance over 4 days?
Computing it:
```python
days = 4
meal_rate = 74
total = days * meal_rate # 296
print(total)
```
Printed:
296
The allowance is $296. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "296", "printed": "296", "notation": null} |
nlprog_det-setting-0071237 | With 16 rows of 24 chairs and 5 empty chairs, how many chairs are taken?
```python
rows = 16
per_row = 24
empty = 5
seated = rows * per_row - empty # 379
print(seated)
```
It outputs 379.
379 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "379", "printed": "379", "notation": null} |
nlprog_det-setting-0071239 | Filing fees are $45 per document. What do 12 filings cost?
We write it as a program:
```python
fee = 45
filings = 12
total = fee * filings # 540
print(total)
```
Interpreter output: 540
$540 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0071240 | At a 9% tax rate, what is the tax on $630.43?
Programmatically:
```python
price = 630.43
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 56.738699999999994
print(f"{tax:.2f}")
```
The script prints 56.74, as expected.
$56.74 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "56.74", "printed": "56.74", "notation": null} |
nlprog_det-setting-0071241 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
From 2018 to 2025, how many years is that?<|eot|>
<|assistant|>
That is 7 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "From 2018 to 2025, how many years is that?"
},
{
"role": "assistant",
"content": "That is 7 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0071242 | <|start|><|user|>
Liesel drove 509 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 509
rate = 0.7
reimbursement = miles * rate # 356.29999999999995
print(f"{reimbursement:.2f}")
```
# result: 356.30
The reimbursement is $356.30.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Liesel drove 509 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 509\nrate = 0.7\nreimbursement = miles * rate # 356.29999999999995\nprint(f\"{reimbursement:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "356.30", "printed": "356.30", "notation": null} |
nlprog_det-setting-0071243 | Find the mean of these test scores: 96, 83, 54, 93, 55, 89 and 97.
A short script:
```python
scores = [96, 83, 54, 93, 55, 89, 97]
average = sum(scores) // len(scores) # 81
print(average)
```
When run, it prints 81.
The average score is 81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0071244 | How many whole days and leftover hours are in 321 hours?
```python
hours = 321
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed:
13 days and 9 hours
That is 13 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "13 days and 9 hours", "printed": "13 days and 9 hours", "notation": null} |
nlprog_det-setting-0071245 | A count moves from 1,200 to 1,380. By what percent did it change (use a minus sign for a drop)?
A Python solution:
```python
old = 1200
new = 1380
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Executing it gives 15, as expected.
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0071246 | After an initial $6,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part?
Let's compute it with Python.
```python
grant = 12000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
```
What it prints — 1000.00
$1,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0071248 | <|start|><|user|>
Pack A has 8 items for $9.20. Pack B has 15 items for $10.69. Which has the lower price per item?<|eot|>
<|assistant|>
pack_a = 9.2 / 8 # 1.15
pack_b = 10.69 / 15 # 0.7126666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
On running, it outputs B.
B has the... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $9.20. Pack B has 15 items for $10.69. Which has the lower price per item?"
},
{
"role": "assistant",
"content": " pack_a = 9.2 / 8 # 1.15\n pack_b = 10.69 / 15 # 0.7126666666666667\n cheaper = \"A\" if pack_a < pack_b else \"B\" #... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071249 | Split $4,970 between Kaito and Diego in the ratio 2 to 5. What is Kaito's share?
We write it as a program:
```python
total = 4970
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1420
print(share_a)
```
The interpreter prints: 1420
Kaito's share is $1,420. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1420", "printed": "1420", "notation": null} |
nlprog_det-setting-0071250 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A hall has 28 rows of 24 seats, and 7 seats are empty. How many people are seated?<|eot|>
<|assistant|>
665 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A hall has 28 rows of 24 seats, and 7 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "665 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "665", "printed": "665", "notation": null} |
nlprog_det-setting-0071251 | Prorate $1,800 of monthly rent for 6 days of a 30-day month.
Set it up in Python:
```python
rent = 1800
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 360.0
print(f"{prorated:.2f}")
```
(Execution result: 360.00)
The prorated rent is $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0071252 | Papers were served by mail on October 23, 2024. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
A few lines of Python do it:
```python
from datetime import date, timedelta
served = date(2024, 10, 23) # datetime.date(2024, 10, 23)
response_days = 30
mail_days = 3
due = ser... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2024-11-25", "printed": "2024-11-25", "notation": null} |
nlprog_det-setting-0071253 | Kaito earns a 3% commission on $23,510 of sales. What is the commission?
One way, in code:
```python
sales = 23510
rate = 3 / 100 # 0.03
commission = sales * rate # 705.3
print(f"{commission:.2f}")
```
It outputs: 705.30
The commission is $705.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "705.30", "printed": "705.30", "notation": null} |
nlprog_det-setting-0071254 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 4
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
The program prints 6750.00, as ex... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "6750.00", "printed": "6750.00", "notation": null} |
nlprog_det-setting-0071255 | A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?
We write it as a program:
```python
monthly = 12
yearly = 120
savings = monthly * 12 - yearly # 24
print(savings)
```
Executing it gives: 24
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071257 | A 18 lb package ships at $5 base plus $0.75/lb. What is the charge?
One way, in code:
```python
base = 5
per_pound = 0.75
weight = 18
cost = base + per_pound * weight # 18.5
print(f"{cost:.2f}")
```
When run, it prints: 18.50
Shipping costs $18.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "18.50", "printed": "18.50", "notation": null} |
nlprog_det-setting-0071258 | <|start|><|user|>
At $0.70 per mile, what is the reimbursement for 613 miles?<|eot|>
<|assistant|>
```python
miles = 613
rate = 0.7
reimbursement = miles * rate # 429.09999999999997
print(f"{reimbursement:.2f}")
```
Run output: 429.10
Lucia is owed $429.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 613 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 613\nrate = 0.7\nreimbursement = miles * rate # 429.09999999999997\nprint(f\"{reimbursement:.2f}\")\n```\nRun output: 429.10\n\nLucia is owed $429.... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "429.10", "printed": "429.10", "notation": null} |
nlprog_det-setting-0071259 | What is 0 degrees Celsius in Fahrenheit?
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0071260 | After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
In Python:
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 3 # 6000.0
print(f"{per_client:.2f}")
```
This prints: 6000.00
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0071261 | After an initial $3,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?
$6,750.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "6750.00", "printed": "6750.00", "notation": null} |
nlprog_det-setting-0071263 | <|start|><|user|>
At $0.58 per mile, what is the reimbursement for 439 miles?<|eot|>
<|assistant|>
```python
miles = 439
rate = 0.58
reimbursement = miles * rate # 254.61999999999998
print(f"{reimbursement:.2f}")
```
# printed result: 254.62
The reimbursement is $254.62.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 439 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 439\nrate = 0.58\nreimbursement = miles * rate # 254.61999999999998\nprint(f\"{reimbursement:.2f}\")\n```\n# printed result: 254.62\n\nThe reimburs... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "254.62", "printed": "254.62", "notation": null} |
nlprog_det-setting-0071264 | With 17 rows of 9 chairs and 37 empty chairs, how many chairs are taken?
116 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0071265 | Goran lends $2,500 at 5% simple interest per year for 4 years. How much interest is earned?
The program:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 500.0
print(f"{interest:.2f}")
```
Console:
500.00
The interest is $500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0071267 | Someone born April 13, 2004 turns how old by July 13, 2023? Give the age in whole years.
```python
from datetime import date
born = date(2004, 4, 13) # datetime.date(2004, 4, 13)
on = date(2023, 7, 13) # datetime.date(2023, 7, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 19
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0071268 | A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?
A short script:
```python
recovery = 60000
rate = 40 / 100 # 0.4
fee = recovery * rate # 24000.0
print(f"{fee:.2f}")
```
The printout reads: 24000.00
The lawyer's fee comes to $24,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0071269 | Scale 300 g of lentils from 2 servings to 6 servings.
```python
grams = 300
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 900
print(scaled)
```
Printed result — 900
900 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0071270 | <|start|><|user|>
Scale 100 g of lentils from 8 servings to 10 servings.<|eot|>
<|assistant|>
grams = 100
serves = 8
needed_for = 10
scaled = grams * needed_for // serves
print(scaled)
Running it prints: 125
Use 125 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 100 g of lentils from 8 servings to 10 servings."
},
{
"role": "assistant",
"content": " grams = 100\n serves = 8\n needed_for = 10\n scaled = grams * needed_for // serves\n print(scaled)\nRunning it prints: 125\n\nUse 125 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0071271 | 489 files go into boxes of 24. How many boxes does that take?
As a program:
```python
import math
files = 489
per_box = 24
boxes = math.ceil(files / per_box) # 21
print(boxes)
```
Executed, it shows: 21
21 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0071272 | 16 headsets cost $8 apiece. With 7% tax added, what is the total?
One way, in code:
```python
quantity = 16
unit_price = 8
subtotal = quantity * unit_price # 128
total = subtotal * (1 + 7 / 100) # 136.96
print(f"{total:.2f}")
```
Result — 136.96
The total with tax is $136.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "136.96", "printed": "136.96", "notation": null} |
nlprog_det-setting-0071273 | Each of Sara's bike rides burns 350 calories. How many calories over 6 bike rides?
Computation in Python:
```python
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
```
(Run result: 2100)
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0071274 | A $1,500 security deposit has deductions of $60, $150 and $75. How much is refunded?
The refund is $1,215. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1215", "printed": "1215", "notation": null} |
nlprog_det-setting-0071275 | Goods bought on March 19, 2024 carry a 24-month warranty. When does it expire?
The computation:
```python
from datetime import date
start = date(2024, 3, 19)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
On ru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2026-03-19", "printed": "2026-03-19", "notation": null} |
nlprog_det-setting-0071276 | <|start|><|user|>
With 10% off, what does a $250 filing cabinet cost?<|eot|>
<|assistant|>
```python
price = 250
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
Result: 225.00
It costs $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $250 filing cabinet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 250\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 225.0\nprint(f\"{sale_price:.2f}\")\n```\nResult: 225.00\n\nIt costs $225.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0071277 | Papers were served by mail on November 15, 2019. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
The response is due on December 16, 2019. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "2019-12-16", "printed": "2019-12-16", "notation": null} |
nlprog_det-setting-0071278 | <|start|><|user|>
Someone born August 28, 1984 turns how old by January 1, 2030? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1984, 8, 28) # datetime.date(1984, 8, 28)
on = date(2030, 1, 1) # datetime.date(2030, 1, 1)
age = on.year - born.year - ((on.month, on.day)... | chat | [
{
"role": "user",
"content": "Someone born August 28, 1984 turns how old by January 1, 2030? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1984, 8, 28) # datetime.date(1984, 8, 28)\non = date(2030, 1, 1) # datetime.date(20... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0071279 | Wanjiru lends $1,000 at 6% simple interest per year for 5 years. How much interest is earned?
```python
principal = 1000
rate = 6 / 100 # 0.06
years = 5
interest = principal * rate * years # 300.0
print(f"{interest:.2f}")
```
Running it prints: 300.00
It earns $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0071280 | Monthly rent is $1,200. A tenant moves in with 24 days left in a 31-day month. What is the prorated rent?
Program:
```python
rent = 1200
days_in_month = 31
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 929.0322580645161
print(f"{prorated:.2f}")
```
Printed:
929.03
The tenant owes $929.03. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "929.03", "printed": "929.03", "notation": null} |
nlprog_det-setting-0071281 | Parking is $2 per hour with a daily maximum of $20. What do 8 hours cost?
Computing it:
rate = 2
hours = 8
daily_max = 20
cost = min(rate * hours, daily_max) # 16
print(cost)
Result — 16
Parking costs $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0071282 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $1,000. How much after 37 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 37
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Out: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $1,000. How much after 37 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 37\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nOut: 1000\n\nThe fine is $1,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0071283 | What average speed covers 490 miles in 0.5 hours?
Set it up in Python:
```python
distance = 490
hours = 0.5
speed = distance / hours # 980.0
print(round(speed))
```
Output = 980
The average speed is 980 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "980", "printed": "980", "notation": null} |
nlprog_det-setting-0071284 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?
We write it as a program:
```python
rate = 20.0
hours = 46
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 180.0
pay = regular + overtime # 980.0
print(f"{pay:.2f}")
```
The program outputs: 980.00
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "980.00", "printed": "980.00", "notation": null} |
nlprog_det-setting-0071285 | <|start|><|user|>
Buying 5 scissors at $30 each, 3 folders at $22 each, 5 ink cartridges at $2 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
```python
items = [(5, 30), (3, 22), (5, 2)]
total = sum(q * p for q, p in items) # 226
paid = 250
change = paid - total # 24
print(change)
```
The... | chat | [
{
"role": "user",
"content": "Buying 5 scissors at $30 each, 3 folders at $22 each, 5 ink cartridges at $2 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 30), (3, 22), (5, 2)]\ntotal = sum(q * p for q, p in items) # 226\npai... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071286 | Monthly rent is $1,200. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent?
Python code:
```python
rent = 1200
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 425.80645161290323
print(f"{prorated:.2f}")
```
(Run result: 425.81)
The tenant owes $42... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "425.81", "printed": "425.81", "notation": null} |
nlprog_det-setting-0071287 | 391 files go into boxes of 50. How many boxes does that take?
Computing it:
```python
import math
files = 391
per_box = 50
boxes = math.ceil(files / per_box) # 8
print(boxes)
```
It prints 8, as expected.
8 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0071288 | A shift runs from 8:39 AM to 12:36 PM. How long is it in minutes?
Script:
```python
start = 8 * 60 + 39 # 519
end = 12 * 60 + 36 # 756
print(end - start)
```
Running it prints: 237
It is 237 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0071289 | At a 4% tax rate, what is the tax on $691.17?
Python makes this quick:
```python
price = 691.17
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 27.6468
print(f"{tax:.2f}")
```
stdout: 27.65
$27.65 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "27.65", "printed": "27.65", "notation": null} |
nlprog_det-setting-0071290 | If a 2-year limitations period starts on February 19, 2018, when does it end?
As a program:
```python
from datetime import date
accrued = date(2018, 2, 19) # datetime.date(2018, 2, 19)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 2, 19)
print(expires.isoformat())
```
stdout:
2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2020-02-19", "printed": "2020-02-19", "notation": null} |
nlprog_det-setting-0071291 | At $0.62 per mile, what is the reimbursement for 402 miles?
Python, step by step:
```python
miles = 402
rate = 0.62
reimbursement = miles * rate # 249.24
print(f"{reimbursement:.2f}")
```
Executed, it shows 249.24.
The reimbursement is $249.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "249.24", "printed": "249.24", "notation": null} |
nlprog_det-setting-0071292 | At $0.58 per mile, what is the reimbursement for 148 miles?
A short script:
miles = 148
rate = 0.58
reimbursement = miles * rate # 85.83999999999999
print(f"{reimbursement:.2f}")
The program outputs 85.84.
The reimbursement is $85.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "85.84", "printed": "85.84", "notation": null} |
nlprog_det-setting-0071293 | Parking is $4 per hour with a daily maximum of $15. What do 1 hours cost?
```python
rate = 4
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 4
print(cost)
```
# program output: 4
The charge is $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0071294 | 2 claimants share a $36,000 settlement equally. What is each share?
Computation in Python:
```python
settlement = 36000
parties = 2
share = settlement // parties
print(share)
```
Python prints: 18000
Each party receives $18,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "18000", "printed": "18000", "notation": null} |
nlprog_det-setting-0071295 | <|start|><|user|>
Meals are $69 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 427
print(total)
```
On running, it outputs 427.
That c... | chat | [
{
"role": "user",
"content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "427", "printed": "427", "notation": null} |
nlprog_det-setting-0071296 | <|start|><|user|>
Which is cheaper per unit: 12 for $7.35 (A) or 30 for $8.08 (B)?<|eot|>
<|assistant|>
```python
pack_a = 7.35 / 12
pack_b = 8.08 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Output: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $7.35 (A) or 30 for $8.08 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 7.35 / 12\npack_b = 8.08 / 30\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nOutput: B\n\nB has the lower unit price."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071297 | A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments?
Translated to Python:
```python
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
```
It prints 30, as expected.
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0071298 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Pack A ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071299 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $150,000 award?<|eot|>
<|assistant|>
```python
recovery = 150000
rate = 25 / 100 # 0.25
fee = recovery * rate # 37500.0
print(f"{fee:.2f}")
```
Running this gives: 37500.00
The fee is $37,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $150,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 150000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 37500.0\nprint(f\"{fee:.2f}\")\n```\nRunning this gives: 37500.00\n\nThe f... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "37500.00", "printed": "37500.00", "notation": null} |
nlprog_det-setting-0071301 | Fines run at $100 per day up to a maximum of $5,000. How much after 32 days?
Coded up:
```python
per_day = 100
days = 32
cap = 5000
fine = min(per_day * days, cap) # 3200
print(fine)
```
Executing it gives 3200, as expected.
$3,200 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3200", "printed": "3200", "notation": null} |
nlprog_det-setting-0071302 | A 8-day trip pays $79 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?
Script:
```python
days = 8
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1612
print(total)
```
Executing it gives: 1612
That comes to $1,612. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1612", "printed": "1612", "notation": null} |
nlprog_det-setting-0071303 | A 24 lb package ships at $5 base plus $1.20/lb. What is the charge?
Python, step by step:
```python
base = 5
per_pound = 1.2
weight = 24
cost = base + per_pound * weight # 33.8
print(f"{cost:.2f}")
```
The code prints: 33.80
The charge is $33.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "33.80", "printed": "33.80", "notation": null} |
nlprog_det-setting-0071304 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Parking is $4 per hour with a daily maximum of $20. What do 8 hours cost?<|eot|>
<|assistant|>
```python
rate = 4
hours = 8
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Result — 20
Parking costs $20.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $20. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 8\ndaily_max = 20\ncost = min(rate * hours, daily_max... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0071305 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "103.68", "printed": "103.68", "notation": null} |
nlprog_det-setting-0071306 | <|start|><|user|>
A 28 lb package ships at $10 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.5
weight = 28
cost = base + per_pound * weight # 80.0
print(f"{cost:.2f}")
```
What it prints: 80.00
The charge is $80.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 28 lb package ships at $10 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 2.5\nweight = 28\ncost = base + per_pound * weight # 80.0\nprint(f\"{cost:.2f}\")\n```\nWhat it prints: 80.00\n\nThe charge... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0071307 | <|start|><|user|>
Grace was born on March 15, 1979. How old is Grace on April 1, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1979, 3, 15) # datetime.date(1979, 3, 15)
on = date(2026, 4, 1) # datetime.date(2026, 4, 1)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.da... | chat | [
{
"role": "user",
"content": "Grace was born on March 15, 1979. How old is Grace on April 1, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1979, 3, 15) # datetime.date(1979, 3, 15)\non = date(2026, 4, 1) # datetime.date(2026, 4, 1)\nage = on.yea... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0071308 | A party has 28 days to respond to a motion served on June 15, 2018, with 3 days added because service was by mail. When is the response due?
A Python solution:
```python
from datetime import date, timedelta
served = date(2018, 6, 15) # datetime.date(2018, 6, 15)
response_days = 28
mail_days = 3
due = served + timedel... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2018-07-16", "printed": "2018-07-16", "notation": null} |
nlprog_det-setting-0071309 | Scale 240 g of rice from 2 servings to 6 servings.
We can compute it in Python.
grams = 240
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 720
print(scaled)
Printed result: 720
720 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0071310 | Bilal and Bruna share $4,452 in the ratio 3:4. How much does Bilal get?
Written as code:
```python
total = 4452
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1908
print(share_a)
```
The interpreter prints 1908.
Bilal's share is $1,908. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1908", "printed": "1908", "notation": null} |
nlprog_det-setting-0071312 | Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year?
$5,250.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0071313 | How much is a $59 daily meal allowance over 8 days?
Let the code do the arithmetic:
days = 8
meal_rate = 59
total = days * meal_rate # 472
print(total)
Run output — 472
The allowance is $472. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "472", "printed": "472", "notation": null} |
nlprog_det-setting-0071314 | Which is cheaper per unit: 10 for $9.35 (A) or 24 for $18.18 (B)?
A few lines of Python do it:
```python
pack_a = 9.35 / 10
pack_b = 18.18 / 24
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
(Execution result: B)
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071315 | Someone born June 19, 1965 turns how old by January 27, 2022? Give the age in whole years.
The age is 56 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0071316 | Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 4,000 gallons?
Let's compute it with Python.
```python
base = 18
rate = 3.5
used = 4
free = 2
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
The script prints: 25.00
$25.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0071318 | <|start|><|user|>
Papers were served by mail on July 24, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2022, 7, 24) # datetime.date(2022, 7, 24)
response_days = 30
mail_days = 3... | chat | [
{
"role": "user",
"content": "Papers were served by mail on July 24, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2022, 7, 24) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2022-08-26", "printed": "2022-08-26", "notation": null} |
nlprog_det-setting-0071319 | <|start|><|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
# stdout: 68
That is 68 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": " celsius = 20\n fahrenheit = celsius * 9 / 5 + 32 # 68.0\n print(round(fahrenheit))\n# stdout: 68\n\nThat is 68 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0071320 | Someone born September 3, 2008 turns how old by June 17, 2027? Give the age in whole years.
We write it as a program:
```python
from datetime import date
born = date(2008, 9, 3) # datetime.date(2008, 9, 3)
on = date(2027, 6, 17) # datetime.date(2027, 6, 17)
age = on.year - born.year - ((on.month, on.day) < (born.mon... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0071321 | <|start|><|user|>
Count the days between October 21, 2020 and October 19, 2021.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 10, 21) # datetime.date(2020, 10, 21)
second = date(2021, 10, 19) # datetime.date(2021, 10, 19)
print((second - first).days)
```
What it prints — 363
There are 3... | chat | [
{
"role": "user",
"content": "Count the days between October 21, 2020 and October 19, 2021."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 10, 21) # datetime.date(2020, 10, 21)\nsecond = date(2021, 10, 19) # datetime.date(2021, 10, 19)\nprint((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "363", "printed": "363", "notation": null} |
nlprog_det-setting-0071322 | 14 of 20 members attended. What percent attended?
A Python solution:
```python
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
Running this gives: 70.0
Attendance was 70.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0071323 | Walls total 1304 sq ft and each can covers 400 sq ft. How many cans should be bought?
Translated to Python:
```python
import math
area = 1304
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
When run, it prints: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4", "printed": "4", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.