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-0050221 | The firm was founded in 2009. How many years had passed by 2026?
Here is the program.
```python
start_year = 2009
end_year = 2026
print(end_year - start_year)
```
This prints: 17
That is 17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0050222 | Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons?
Python, step by step:
```python
base = 20
rate = 3.5
used = 14
free = 0
bill = base + rate * max(0, used - free) # 69.0
print(f"{bill:.2f}")
```
The program prints 69.00.
The bill is $69.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0050223 | Eamon buys 4 boxes of 24 binders each and gives away 2 binders. How many binders are left?
That leaves 94 binders. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "94", "printed": "94", "notation": null} |
nlprog_det-setting-0050225 | <|start|><|user|>
Emeka earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 45
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 187.5
pay = regular + overtime # 1187.5
print(f"{pay:.2f}")
```
Python prin... | chat | [
{
"role": "user",
"content": "Emeka earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 45\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 187.5\npay = regul... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1187.50", "printed": "1187.50", "notation": null} |
nlprog_det-setting-0050226 | Attendance was 147 out of 200. Express it as a percent.
Written as code:
```python
present = 147
total = 200
percent = present / total * 100 # 73.5
print(round(percent, 1))
```
(Printed: 73.5)
73.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "73.5", "printed": "73.5", "notation": null} |
nlprog_det-setting-0050227 | If a 5-year limitations period starts on February 13, 2020, when does it end?
A Python solution:
from datetime import date
accrued = date(2020, 2, 13) # datetime.date(2020, 2, 13)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 2, 13)
print(expires.isoformat()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2025-02-13", "printed": "2025-02-13", "notation": null} |
nlprog_det-setting-0050228 | What average speed covers 229 miles in 0.5 hours?
Python, step by step:
```python
distance = 229
hours = 0.5
speed = distance / hours # 458.0
print(round(speed))
```
The program prints: 458
The average speed is 458 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "458", "printed": "458", "notation": null} |
nlprog_det-setting-0050229 | What average speed covers 254 miles in 2 hours?
A few lines of Python do it:
distance = 254
hours = 2
speed = distance / hours # 127.0
print(round(speed))
Executing it gives 127.
It averages 127 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0050230 | <|start|><|user|>
Someone born October 24, 1982 turns how old by October 3, 2020? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1982, 10, 24) # datetime.date(1982, 10, 24)
on = date(2020, 10, 3) # datetime.date(2020, 10, 3)
age = on.year - born.year - ((on.month, on... | chat | [
{
"role": "user",
"content": "Someone born October 24, 1982 turns how old by October 3, 2020? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1982, 10, 24) # datetime.date(1982, 10, 24)\non = date(2020, 10, 3) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0050231 | Attendance was 19 out of 20. Express it as a percent.
Programmatically:
```python
present = 19
total = 20
percent = present / total * 100 # 95.0
print(round(percent, 1))
```
The program prints 95.0.
95.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0050233 | After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Written as code:
```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}")
```
The interpreter p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0050234 | Water costs $20 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?
```python
base = 20
rate = 5.1
used = 7
free = 2
bill = base + rate * max(0, used - free) # 45.5
print(f"{bill:.2f}")
```
The program prints 45.50, as expected.
The bill is $45.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "45.50", "printed": "45.50", "notation": null} |
nlprog_det-setting-0050235 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 17 days?
We can compute it in Python.
```python
per_day = 100
days = 17
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Running it prints 1000.
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0050236 | <|start|><|user|>
A meal costs $220.86. How much is a 25% tip?<|eot|>
<|assistant|>
bill = 220.86
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 55.215
print(f"{tip:.2f}")
Running this gives 55.22.
Leave $55.22.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $220.86. How much is a 25% tip?"
},
{
"role": "assistant",
"content": " bill = 220.86\n tip_rate = 25 / 100 # 0.25\n tip = bill * tip_rate # 55.215\n print(f\"{tip:.2f}\")\nRunning this gives 55.22.\n\nLeave $55.22."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "55.22", "printed": "55.22", "notation": null} |
nlprog_det-setting-0050237 | <|start|><|user|>
A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 24
total = monthly_rent * months # 23400
print(total)
```
Run result: 23400
The rent over the term is $23,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 24\ntotal = monthly_rent * months # 23400\nprint(total)\n```\nRun result: 23400\n\nThe rent over ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "23400", "printed": "23400", "notation": null} |
nlprog_det-setting-0050238 | <|start|><|user|>
What is the total rent on a 18-month lease at $3,250 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 18
total = monthly_rent * months # 58500
print(total)
```
When run, it prints 58500.
The rent over the term is $58,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 18\ntotal = monthly_rent * months # 58500\nprint(total)\n```\nWhen run, it prints 58500.\n\nThe rent over the term is $58,5... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0050239 | From 2022 to 2037, how many years is that?
Python, step by step:
```python
start_year = 2022
end_year = 2037
print(end_year - start_year)
```
# out: 15
15 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0050241 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A 867-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
pages = 867
days = 17
per_day = pages // days # 51
print(per_day)
Console output — 51
That is 51 pages per day.<|eot|>
... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A 867-page report must be reviewed in 17 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": " pages = 867\n days = 17\n per_day = pages /... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0050242 | What is 10 degrees Celsius in Fahrenheit?
Coded up:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
When run, it prints 50.
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0050243 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Which is cheaper per unit: 6 for $3.02 (A) or 24 for $24.48 (B)?<|eot|>
<|assistant|>
```python
pack_a = 3.02 / 6 # 0.5033333333333333
pack_b = 24.48 / 24 # 1.02
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Output of the... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $3.02 (A) or 24 for $24.48 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 3.02 / 6 # 0.5033333333333333\npack_b = 24.48 / 24 # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0050244 | How many minutes pass from 8:16 AM to 1:03 PM on the same day?
Written as code:
```python
start = 8 * 60 + 16 # 496
end = 13 * 60 + 3 # 783
print(end - start)
```
Program output — 287
287 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "287", "printed": "287", "notation": null} |
nlprog_det-setting-0050245 | A party has 21 days to respond to a motion served on January 2, 2023, with 3 days added because service was by mail. When is the response due?
The program:
```python
from datetime import date, timedelta
served = date(2023, 1, 2)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2023-01-26", "printed": "2023-01-26", "notation": null} |
nlprog_det-setting-0050247 | <|start|><|user|>
What is the total rent on a 24-month lease at $2,100 a month?<|eot|>
<|assistant|>
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
What it prints: 50400
The rent over the term is $50,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $2,100 a month?"
},
{
"role": "assistant",
"content": " monthly_rent = 2100\n months = 24\n total = monthly_rent * months # 50400\n print(total)\nWhat it prints: 50400\n\nThe rent over the term is $50,400."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0050248 | <|start|><|user|>
A jacket costs $45. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 31.499999999999996
print(f"{sale_price:.2f}")
```
Printed result: 31.50
It costs $31.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $45. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 31.499999999999996\nprint(f\"{sale_price:.2f}\")\n```\nPrinted result: 31.50\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "31.50", "printed": "31.50", "notation": null} |
nlprog_det-setting-0050249 | <|start|><|user|>
From a $7,500 retainer, 14 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 14
rate = 250
left = retainer - hours * rate # 4000
print(left)
```
Output:
4000
$4,000 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 14 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 14\nrate = 250\nleft = retainer - hours * rate # 4000\nprint(left)\n```\nOutput:\n4000\n\n$4,000 of the retainer ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4000", "printed": "4000", "notation": null} |
nlprog_det-setting-0050250 | <|start|><|user|>
How many 2-foot square tiles cover a 4 ft by 5 ft floor (round up)?<|eot|>
<|assistant|>
It takes 5 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 4 ft by 5 ft floor (round up)?"
},
{
"role": "assistant",
"content": "It takes 5 tiles."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0050251 | <|start|><|user|>
What is the total rent on a 18-month lease at $1,475 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
Interpreter output: 26550
In total, $26,550 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $1,475 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1475\nmonths = 18\ntotal = monthly_rent * months # 26550\nprint(total)\n```\nInterpreter output: 26550\n\nIn total, $26,550 is paid."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0050252 | With 25 rows of 23 chairs and 36 empty chairs, how many chairs are taken?
Here is the program.
```python
rows = 25
per_row = 23
empty = 36
seated = rows * per_row - empty # 539
print(seated)
```
The program prints 539.
539 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "539", "printed": "539", "notation": null} |
nlprog_det-setting-0050253 | Which is cheaper per unit: 6 for $7.30 (A) or 30 for $22.46 (B)?
We can compute it in Python.
```python
pack_a = 7.3 / 6 # 1.2166666666666666
pack_b = 22.46 / 30 # 0.7486666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Result:
B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0050254 | What commission does Yara make on $119,429 in sales at 4%?
The commission is $4,777.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "4777.16", "printed": "4777.16", "notation": null} |
nlprog_det-setting-0050255 | Starting from $25,000, the team spends $975, $3,468, $2,371, $1,865. What remains?
A Python solution:
budget = 25000
expenses = [975, 3468, 2371, 1865]
left = budget - sum(expenses) # 16321
print(left)
(Out: 16321)
$16,321 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "16321", "printed": "16321", "notation": null} |
nlprog_det-setting-0050256 | <|start|><|system|>
You can call tools. Available tools:
{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
With 30% off, w... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0050257 | What is 40 degrees Celsius in Fahrenheit?
Written as code:
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
This prints 104, as expected.
That is 104 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0050258 | <|start|><|user|>
Copies cost $5 plus $0.10 for each page beyond 0. How much for 32 pages?<|eot|>
<|assistant|>
pages = 32
base = 5
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 8.2
print(f"{cost:.2f}")
# result: 8.20
The copy costs $8.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.10 for each page beyond 0. How much for 32 pages?"
},
{
"role": "assistant",
"content": " pages = 32\n base = 5\n per_page = 0.1\n free_pages = 0\n cost = base + max(0, pages - free_pages) * per_page # 8.2\n print(f\"{cost:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "8.20", "printed": "8.20", "notation": null} |
nlprog_det-setting-0050259 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Convert 15 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
It outputs: 59
It equals 59 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Convert 15 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 15\nfahrenheit = celsius * 9 / 5 + 32 # 59.0\nprint(round(fahrenheit))\n```\nIt outputs: 59\n\nIt equals ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0050260 | <|start|><|user|>
Buying 6 markers at $14 each, 4 desk lamps at $23 each, 4 labels at $25 each, someone hands over $300. What change comes back?<|eot|>
<|assistant|>
```python
items = [(6, 14), (4, 23), (4, 25)]
total = sum(q * p for q, p in items) # 276
paid = 300
change = paid - total # 24
print(change)
```
Executi... | chat | [
{
"role": "user",
"content": "Buying 6 markers at $14 each, 4 desk lamps at $23 each, 4 labels at $25 each, someone hands over $300. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(6, 14), (4, 23), (4, 25)]\ntotal = sum(q * p for q, p in items) # 276\npaid = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0050261 | <|start|><|user|>
Each of Bilal's swims burns 400 calories. How many calories over 3 swims?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Result — 1200
That burns 1200 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Bilal's swims burns 400 calories. How many calories over 3 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions # 1200\nprint(total)\n```\nResult — 1200\n\nThat burns 1200 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0050262 | <|start|><|user|>
Of a $2,000 budget, $1,400 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 1400
percent = spent / budget * 100 # 70.0
print(round(percent, 1))
```
Executed, it shows 70.0.
That is 70.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $2,000 budget, $1,400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 1400\npercent = spent / budget * 100 # 70.0\nprint(round(percent, 1))\n```\nExecuted, it shows 70.0.\n\nThat is 70.0% of the bu... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0050263 | A 33 lb package ships at $5 base plus $2.50/lb. What is the charge?
In Python:
base = 5
per_pound = 2.5
weight = 33
cost = base + per_pound * weight # 87.5
print(f"{cost:.2f}")
The program prints 87.50, as expected.
The charge is $87.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "87.50", "printed": "87.50", "notation": null} |
nlprog_det-setting-0050264 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0050265 | A $48,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?
Computation in Python:
```python
grant = 48000
up_front = 0
installments = 3
each = (grant - up_front) / installments # 16000.0
print(f"{each:.2f}")
```
What it prints: 16000.00
$16,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0050266 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A garage charges $2 an hour, never more than $24 a day. How much for 9 hours?<|eot|>
<|assistant|>
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $24 a day. How much for 9 hours?"
},
{
"role": "assistant",
"content": "The charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0050267 | <|start|><|user|>
An office budget of $5,000 has expenses of $1,589, $3,195, $3,200, $2,617. How much of the budget is left?<|eot|>
<|assistant|>
-$5,601 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $1,589, $3,195, $3,200, $2,617. How much of the budget is left?"
},
{
"role": "assistant",
"content": "-$5,601 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "-5601", "printed": "-5601", "notation": null} |
nlprog_det-setting-0050268 | How much sales tax is charged on a $803.22 purchase at 9%?
```python
price = 803.22
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 72.2898
print(f"{tax:.2f}")
```
Output of the run — 72.29
$72.29 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "72.29", "printed": "72.29", "notation": null} |
nlprog_det-setting-0050269 | <|start|><|user|>
A garage charges $2 an hour, never more than $15 a day. How much for 10 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 10
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
(Printed: 15)
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $15 a day. How much for 10 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 10\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\n(Printed: 15)\n\nParking costs $15."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0050270 | Straight-line depreciation: cost $24,000, salvage $0, 4 years. How much per year?
Program:
```python
cost = 24000
salvage = 0
years = 4
per_year = (cost - salvage) / years # 6000.0
print(f"{per_year:.2f}")
```
Executed, it shows: 6000.00
Depreciation is $6,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0050271 | Split $160 between Goran and Mateo in the ratio 2 to 3. What is Goran's share?
Goran gets $64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0050272 | Jonas and Jamal share $812 in the ratio 2:5. How much does Jonas get?
Jonas gets $232. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "232", "printed": "232", "notation": null} |
nlprog_det-setting-0050273 | Count the days between October 13, 2022 and June 22, 2023.
The computation:
```python
from datetime import date
first = date(2022, 10, 13) # datetime.date(2022, 10, 13)
second = date(2023, 6, 22) # datetime.date(2023, 6, 22)
print((second - first).days)
```
This prints 252.
There are 252 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0050274 | Buying 2 mugs at $29 each, 5 mugs at $7 each, someone hands over $100. What change comes back?
Here's the code.
```python
items = [(2, 29), (5, 7)]
total = sum(q * p for q, p in items)
paid = 100
change = paid - total
print(change)
```
(Program output: 7)
The change is $7. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0050276 | <|start|><|user|>
7 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
hours = 7
rate = 410
bill = hours * rate # 2870
print(f"{bill:.2f}")
Interpreter output — 2870.00
The bill is $2,870.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": " hours = 7\n rate = 410\n bill = hours * rate # 2870\n print(f\"{bill:.2f}\")\nInterpreter output — 2870.00\n\nThe bill is $2,870.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "2870.00", "printed": "2870.00", "notation": null} |
nlprog_det-setting-0050277 | Buying 1 keyboards at $30 each, 6 water bottles at $20 each, someone hands over $200. What change comes back?
The change is $50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0050278 | A clerk's office charges $35 for each filing. Liesel submits 15 filings. What is the total fee?
Python version:
```python
fee = 35
filings = 15
total = fee * filings # 525
print(total)
```
# program output: 525
The total fee is $525. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "525", "printed": "525", "notation": null} |
nlprog_det-setting-0050279 | <|start|><|user|>
Which is cheaper per unit: 10 for $13.77 (A) or 20 for $9.28 (B)?<|eot|>
<|assistant|>
pack_a = 13.77 / 10 # 1.377
pack_b = 9.28 / 20 # 0.46399999999999997
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
When run, it prints: B
Pack B is cheaper per item.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $13.77 (A) or 20 for $9.28 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 13.77 / 10 # 1.377\n pack_b = 9.28 / 20 # 0.46399999999999997\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(cheaper)\nWh... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0050280 | With 29 rows of 8 chairs and 21 empty chairs, how many chairs are taken?
Python, step by step:
```python
rows = 29
per_row = 8
empty = 21
seated = rows * per_row - empty # 211
print(seated)
```
The interpreter prints 211.
211 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "211", "printed": "211", "notation": null} |
nlprog_det-setting-0050281 | One can of paint covers 250 square feet. How many cans are needed for 1316 square feet of wall?
We can compute it in Python.
```python
import math
area = 1316
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
```
Run result: 6
6 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0050282 | <|start|><|user|>
Shipping costs $12 plus $1.20 per pound. What does a 38-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 1.2
weight = 38
cost = base + per_pound * weight # 57.6
print(f"{cost:.2f}")
```
Printed: 57.60
Shipping costs $57.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $1.20 per pound. What does a 38-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 1.2\nweight = 38\ncost = base + per_pound * weight # 57.6\nprint(f\"{cost:.2f}\")\n```\nPrinted: 57.60\n\nShi... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "57.60", "printed": "57.60", "notation": null} |
nlprog_det-setting-0050283 | Which is cheaper per unit: 6 for $6.32 (A) or 15 for $6.01 (B)?
Programmatically:
```python
pack_a = 6.32 / 6 # 1.0533333333333335
pack_b = 6.01 / 15 # 0.40066666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It outputs: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0050284 | <|start|><|user|>
At an exchange rate of 0.74 USD per CHF, how many USD is 4,392 CHF?<|eot|>
<|assistant|>
```python
amount = 4392
rate = 0.74
converted = amount * rate # 3250.08
print(f"{converted:.2f}")
```
On running, it outputs 3250.08.
That is 3,250.08 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.74 USD per CHF, how many USD is 4,392 CHF?"
},
{
"role": "assistant",
"content": "```python\namount = 4392\nrate = 0.74\nconverted = amount * rate # 3250.08\nprint(f\"{converted:.2f}\")\n```\nOn running, it outputs 3250.08.\n\nThat is 3,250... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3250.08", "printed": "3250.08", "notation": null} |
nlprog_det-setting-0050285 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "descri... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 324 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0050286 | A 18-month warranty starts on January 20, 2024. On what date does it end?
Python:
```python
from datetime import date
start = date(2024, 1, 20)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Console:
2025-07-20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2025-07-20", "printed": "2025-07-20", "notation": null} |
nlprog_det-setting-0050287 | A 12-month warranty starts on December 6, 2024. On what date does it end?
It expires on December 6, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2025-12-06", "printed": "2025-12-06", "notation": null} |
nlprog_det-setting-0050288 | A storeroom has 985 hard drives. The office uses 35 a day. How many are left after 13 days?
Python, step by step:
```python
stock = 985
per_day = 35
days = 13
left = stock - per_day * days # 530
print(left)
```
When run, it prints: 530
530 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "530", "printed": "530", "notation": null} |
nlprog_det-setting-0050289 | A library charges $0.20 per book per day late. What is the fine for 1 books that are 17 days late?
Script:
```python
per_day = 0.2
days_late = 17
books = 1
fine = per_day * days_late * books # 3.4000000000000004
print(f"{fine:.2f}")
```
The script prints: 3.40
$3.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3.40", "printed": "3.40", "notation": null} |
nlprog_det-setting-0050290 | 6.5 hours of work at $250 an hour: what is the total charge?
Written as code:
```python
hours = 6.5
rate = 250
bill = hours * rate # 1625.0
print(f"{bill:.2f}")
```
The printout reads: 1625.00
The bill is $1,625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1625.00", "printed": "1625.00", "notation": null} |
nlprog_det-setting-0050291 | How much sales tax is charged on a $458.56 purchase at 5%?
```python
price = 458.56
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 22.928
print(f"{tax:.2f}")
```
The program outputs 22.93.
$22.93 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "22.93", "printed": "22.93", "notation": null} |
nlprog_det-setting-0050292 | At a 8% tax rate, what is the tax on $316.99?
Set it up in Python:
```python
price = 316.99
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 25.3592
print(f"{tax:.2f}")
```
Running it prints 25.36, as expected.
The tax is $25.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "25.36", "printed": "25.36", "notation": null} |
nlprog_det-setting-0050293 | 4 hours of work at $350 an hour: what is the total charge?
Programmatically:
```python
hours = 4
rate = 350
bill = hours * rate # 1400
print(f"{bill:.2f}")
```
Interpreter output: 1400.00
That comes to $1,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0050294 | Convert 15 °C to Fahrenheit.
Programmatically:
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
Execution result: 59
It equals 59 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0050295 | How many of 9 members form a majority (more than half)?
Script:
```python
members = 9
majority = members // 2 + 1 # 5
print(majority)
```
# output: 5
5 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0050296 | Notice was given on September 1, 2027. The notice period is 90 days. When does it run out?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2027, 9, 1) # datetime.date(2027, 9, 1)
end = start + timedelta(days=90) # datetime.date(2027, 11, 30)
print(end.isoformat())
```
Program output... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2027-11-30", "printed": "2027-11-30", "notation": null} |
nlprog_det-setting-0050297 | <|start|><|user|>
A count moves from 400 to 560. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
It changed by 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 560. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "It changed by 40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0050298 | A shift runs from 7:51 AM to 12:47 PM. How long is it in minutes?
Code:
```python
start = 7 * 60 + 51 # 471
end = 12 * 60 + 47 # 767
print(end - start)
```
On running, it outputs: 296
It is 296 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "296", "printed": "296", "notation": null} |
nlprog_det-setting-0050299 | A backpack costs $120. It is 40% off. What is the sale price?
Python code:
```python
price = 120
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 72.0
print(f"{sale_price:.2f}")
```
The printout reads: 72.00
It costs $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0050301 | <|start|><|user|>
4 walks at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
1600 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 walks at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "1600 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0050302 | <|start|><|user|>
Count 10 days forward from July 18, 2019. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 7, 18) # datetime.date(2019, 7, 18)
end = start + timedelta(days=10) # datetime.date(2019, 7, 28)
print(end.isoformat())
```
Printed result: 2019-07-28
... | chat | [
{
"role": "user",
"content": "Count 10 days forward from July 18, 2019. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 7, 18) # datetime.date(2019, 7, 18)\nend = start + timedelta(days=10) # datetime.date(2019, 7, 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2019-07-28", "printed": "2019-07-28", "notation": null} |
nlprog_det-setting-0050303 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
How many days are there from August 10, 2021 to August 1, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 8, 10)
second = date(2022, 8, 1)
print((second - first).days)
```
The program prints 356.
There are 356 days between the ... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "How many days are there from August 10, 2021 to August 1, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 8, 10)\nsecond = date(2022, 8, 1)\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "356", "printed": "356", "notation": null} |
nlprog_det-setting-0050304 | Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?
As a program:
```python
import math
fixed = 6000
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
# console output: 1000
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0050305 | A $6,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
In Python:
```python
principal = 6000
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 900.0
payment = (principal + interest) /... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "191.67", "printed": "191.67", "notation": null} |
nlprog_det-setting-0050306 | At 1% a month (simple), what interest builds on $2,500 over 5 months?
A short script:
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 125.0
print(f"{interest:.2f}")
The program prints 125.00, as expected.
The interest is $125.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "125.00", "printed": "125.00", "notation": null} |
nlprog_det-setting-0050307 | A party has 21 days to respond to a motion served on November 9, 2025, with 3 days added because service was by mail. When is the response due?
In code:
```python
from datetime import date, timedelta
served = date(2025, 11, 9)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2025-12-03", "printed": "2025-12-03", "notation": null} |
nlprog_det-setting-0050308 | <|start|><|system|>
Tools you may use:
[{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A library charges $0.2... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "22.40", "printed": "22.40", "notation": null} |
nlprog_det-setting-0050309 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A settlement of $960 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 960
parties = 8
share = settlement // parties # 120
print(share)
```
Result: 120
Each party receives $... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A settlement of $960 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 960\nparties = 8\ns... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0050310 | An invoice lists 35 cables at $24 each, plus 10% sales tax. What is the invoice total?
In code:
```python
quantity = 35
unit_price = 24
subtotal = quantity * unit_price # 840
total = subtotal * (1 + 10 / 100) # 924.0000000000001
print(f"{total:.2f}")
```
The program prints 924.00, as expected.
The invoice total is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "924.00", "printed": "924.00", "notation": null} |
nlprog_det-setting-0050311 | Count the days between March 22, 2021 and April 24, 2022.
Here is the program.
```python
from datetime import date
first = date(2021, 3, 22) # datetime.date(2021, 3, 22)
second = date(2022, 4, 24) # datetime.date(2022, 4, 24)
print((second - first).days)
```
Running this gives 398.
There are 398 days between the tw... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "398", "printed": "398", "notation": null} |
nlprog_det-setting-0050312 | Water costs $18 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 9,000 gallons?
Coded up:
base = 18
rate = 5.1
used = 9
free = 3
bill = base + rate * max(0, used - free) # 48.599999999999994
print(f"{bill:.2f}")
The program outputs: 48.60
The bill is $48.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "48.60", "printed": "48.60", "notation": null} |
nlprog_det-setting-0050313 | 2 friends split a $210 bill plus a 20% tip evenly. How much does each pay?
A short script:
bill = 210
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 126.0
print(f"{each:.2f}")
On running, it outputs: 126.00
The share is $126.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0050314 | What average speed covers 556 miles in 2 hours?
The Python version:
distance = 556
hours = 2
speed = distance / hours # 278.0
print(round(speed))
Execution result: 278
It averages 278 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "278", "printed": "278", "notation": null} |
nlprog_det-setting-0050315 | <|start|><|user|>
The meal allowance is $79 per day. What is it for 6 days?<|eot|>
<|assistant|>
The allowance is $474.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $79 per day. What is it for 6 days?"
},
{
"role": "assistant",
"content": "The allowance is $474."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "474", "printed": "474", "notation": null} |
nlprog_det-setting-0050316 | <|start|><|user|>
What is the total rent on a 36-month lease at $2,100 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2100
months = 36
total = monthly_rent * months # 75600
print(total)
```
(stdout: 75600)
In total, $75,600 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $2,100 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2100\nmonths = 36\ntotal = monthly_rent * months # 75600\nprint(total)\n```\n(stdout: 75600)\n\nIn total, $75,600 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "75600", "printed": "75600", "notation": null} |
nlprog_det-setting-0050317 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What day of the ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0050318 | Which is cheaper per unit: 10 for $4.43 (A) or 30 for $10.80 (B)?
Written as code:
pack_a = 4.43 / 10 # 0.44299999999999995
pack_b = 10.8 / 30 # 0.36000000000000004
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
The run gives B, as expected.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0050319 | <|start|><|user|>
A 36-month warranty starts on July 13, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 7, 13)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on July 13, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 7, 13)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2030-07-13", "printed": "2030-07-13", "notation": null} |
nlprog_det-setting-0050320 | <|start|><|user|>
Fines run at $250 per day up to a maximum of $2,500. How much after 5 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 5
cap = 2500
fine = min(per_day * days, cap) # 1250
print(fine)
```
Printed = 1250
The fine is $1,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $2,500. How much after 5 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 5\ncap = 2500\nfine = min(per_day * days, cap) # 1250\nprint(fine)\n```\nPrinted = 1250\n\nThe fine is $1,250."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0050321 | A film lasted 1 hours and 12 minutes. How many minutes is that?
Here is a short program for it.
```python
hours = 1
minutes = 12
total_minutes = hours * 60 + minutes # 72
print(total_minutes)
```
That prints 72.
That is 72 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0050322 | <|start|><|user|>
Divide 218 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 218
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed result: 24 each, 2 left ove... | chat | [
{
"role": "user",
"content": "Divide 218 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 218\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "24 each, 2 left over", "printed": "24 each, 2 left over", "notation": null} |
nlprog_det-setting-0050324 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A desk lamp costs $60. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 60
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
```
The program prints: 54.00
It costs $5... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A desk lamp costs $60. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0050325 | <|start|><|user|>
A hearing is set for April 23, 2028. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2028, 4, 23) # datetime.date(2028, 4, 23)
print(hearing.strftime("%A"))
```
Result = Sunday
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for April 23, 2028. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2028, 4, 23) # datetime.date(2028, 4, 23)\nprint(hearing.strftime(\"%A\"))\n```\nResult = Sunday\n\nIt is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0050326 | <|start|><|user|>
A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
# program output: 6250.00
The lawyer's fee comes to $6,250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 6250.0\nprint(f\"{fee:.2f}\")\n```\n# program output: 6250.00\n\nThe lawyer's fee... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0050327 | An office budget of $25,000 has expenses of $2,991, $3,936, $1,890, $2,018. How much of the budget is left?
Python makes this quick:
```python
budget = 25000
expenses = [2991, 3936, 1890, 2018]
left = budget - sum(expenses) # 14165
print(left)
```
# console output: 14165
$14,165 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "14165", "printed": "14165", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.