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-0051408 | A pack of 12 pens sells for $360. What does each cost?
The program:
```python
total = 360
count = 12
per_item = total // count # 30
print(per_item)
```
It outputs 30.
Each one costs $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0051410 | A 16 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
A few lines of Python do it:
```python
import math
length = 16
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
```
Out:
36
It takes 36 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0051411 | <|start|><|user|>
On which weekday does February 13, 2025 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2025, 2, 13) # datetime.date(2025, 2, 13)
print(hearing.strftime("%A"))
```
Running it prints Thursday, as expected.
February 13, 2025 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does February 13, 2025 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2025, 2, 13) # datetime.date(2025, 2, 13)\nprint(hearing.strftime(\"%A\"))\n```\nRunning it prints Thursday, as expected.\n\nFe... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0051412 | <|start|><|user|>
What is the total rent on a 6-month lease at $3,250 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
```
Out: 19500
In total, $19,500 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 6\ntotal = monthly_rent * months # 19500\nprint(total)\n```\nOut: 19500\n\nIn total, $19,500 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0051415 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Someone born October 26, 1972 turns how old by November 9, 2025? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1972, 10, 26) # datetime.date(1972, 10, 26)
on = date(2025, 11, 9) # datetime.date(2025,... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Someone born October 26, 1972 turns how old by November 9, 2025? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1972... | nlprog_det | setting | original | null | deterministic | [] | [] | 171 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0051416 | How many minutes pass from 9:27 AM to 11:15 AM on the same day? 108 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0051417 | <|start|><|user|>
Which is cheaper per unit: 8 for $13.17 (A) or 18 for $19.04 (B)?<|eot|>
<|assistant|>
```python
pack_a = 13.17 / 8 # 1.64625
pack_b = 19.04 / 18 # 1.0577777777777777
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The script prints B.
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $13.17 (A) or 18 for $19.04 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.17 / 8 # 1.64625\npack_b = 19.04 / 18 # 1.0577777777777777\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0051418 | 3 lanyards cost $7 apiece. With 6% tax added, what is the total?
Python code:
```python
quantity = 3
unit_price = 7
subtotal = quantity * unit_price
total = subtotal * (1 + 6 / 100)
print(f"{total:.2f}")
```
On running, it outputs: 22.26
The invoice total is $22.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "22.26", "printed": "22.26", "notation": null} |
nlprog_det-setting-0051419 | After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
The Python version:
```python
award = 48000
fee = award * 30 / 100 # 14400.0
remaining = award - fee # 33600.0
per_client = remaining / 4 # 8400.0
print(f"{per_client:.2f}")
```
The program ou... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "8400.00", "printed": "8400.00", "notation": null} |
nlprog_det-setting-0051420 | <|start|><|user|>
How long, in days, is it from February 12, 2023 until November 18, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 2, 12) # datetime.date(2023, 2, 12)
second = date(2023, 11, 18) # datetime.date(2023, 11, 18)
print((second - first).days)
```
Out:
279
There are 279 ... | chat | [
{
"role": "user",
"content": "How long, in days, is it from February 12, 2023 until November 18, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 2, 12) # datetime.date(2023, 2, 12)\nsecond = date(2023, 11, 18) # datetime.date(2023, 11, 18)\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "279", "printed": "279", "notation": null} |
nlprog_det-setting-0051421 | A claim accrued on September 12, 2013. The limitations period is 4 years. On what date does it expire?
We can compute it in Python.
```python
from datetime import date
accrued = date(2013, 9, 12) # datetime.date(2013, 9, 12)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 9, 12)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2017-09-12", "printed": "2017-09-12", "notation": null} |
nlprog_det-setting-0051422 | A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?
A Python solution:
```python
monthly = 15
yearly = 168
savings = monthly * 12 - yearly
print(savings)
```
Execution result: 12
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0051423 | At 30 miles per hour, how many minutes does a 195-mile trip take?
Computing it:
```python
distance = 195
speed = 30
minutes = distance / speed * 60 # 390.0
print(round(minutes))
```
It prints: 390
The trip takes 390 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0051424 | <|start|><|user|>
How many minutes pass from 9:37 AM to 4:00 PM on the same day?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 37 # 577
end = 16 * 60 + 0 # 960
print(end - start)
```
The interpreter prints: 383
383 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 9:37 AM to 4:00 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 37 # 577\nend = 16 * 60 + 0 # 960\nprint(end - start)\n```\nThe interpreter prints: 383\n\n383 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "383", "printed": "383", "notation": null} |
nlprog_det-setting-0051425 | Count 30 days forward from August 1, 2020. What date is that?
Set it up in Python:
```python
from datetime import date, timedelta
start = date(2020, 8, 1) # datetime.date(2020, 8, 1)
end = start + timedelta(days=30) # datetime.date(2020, 8, 31)
print(end.isoformat())
```
Python prints: 2020-08-31
The period ends on... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2020-08-31", "printed": "2020-08-31", "notation": null} |
nlprog_det-setting-0051426 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A clerk's office charges $25 for each filing. Signe submits 5 filings. What is the total fee?<|eot|>
<|assistant|>
fee = 25
filings = 5
total = fee * filings # 125
print(total)
# result: 125
The total fee is $125.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Signe submits 5 filings. What is the total fee?"
},
{
"role": "assistant",
"content": " fee = 25\n filings = 5\n total = fee... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0051427 | <|start|><|user|>
From a $5,000 retainer, 12 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 12
rate = 275
left = retainer - hours * rate # 1700
print(left)
```
Interpreter output: 1700
The remaining balance is $1,700.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 12 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 12\nrate = 275\nleft = retainer - hours * rate # 1700\nprint(left)\n```\nInterpreter output: 1700\n\nThe remainin... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0051428 | <|start|><|user|>
Monthly rent is $1,500. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 300.0
print(f"{prorated:.2f}")
```
The program outputs: 300.00
Th... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month # 300.0\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0051429 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 20, 2026 up to and including April 3, 2026?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2026, 3, 20)
end = date(2026, 4, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + time... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 20, 2026 up to and including April 3, 2026?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2026, 3, 20)\n end = date(2026, 4, 3)\n count = 0\n for k in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0051430 | 3 claimants share a $18,000 settlement equally. What is each share?
Programmatically:
```python
settlement = 18000
parties = 3
share = settlement // parties # 6000
print(share)
```
Running it prints: 6000
Each party receives $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0051431 | If a 2-year limitations period starts on March 22, 2013, when does it end?
A few lines of Python do it:
```python
from datetime import date
accrued = date(2013, 3, 22) # datetime.date(2013, 3, 22)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 3, 22)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2015-03-22", "printed": "2015-03-22", "notation": null} |
nlprog_det-setting-0051433 | How many minutes pass from 10:09 AM to 11:02 AM on the same day?
As a program:
```python
start = 10 * 60 + 9 # 609
end = 11 * 60 + 2 # 662
print(end - start)
```
It prints 53, as expected.
It is 53 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0051435 | After an initial $0, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?
```python
grant = 12000
up_front = 0
installments = 4
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
The printout reads 3000.00.
Each installment is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0051436 | <|start|><|user|>
Find the mean of these test scores: 81, 75, 98 and 70.<|eot|>
<|assistant|>
```python
scores = [81, 75, 98, 70]
average = sum(scores) // len(scores) # 81
print(average)
```
Output of the run: 81
The mean is 81.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 81, 75, 98 and 70."
},
{
"role": "assistant",
"content": "```python\nscores = [81, 75, 98, 70]\naverage = sum(scores) // len(scores) # 81\nprint(average)\n```\nOutput of the run: 81\n\nThe mean is 81."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0051437 | <|start|><|user|>
Buying 4 file boxes at $22 each, 1 tape rolls at $12 each, 5 mugs at $30 each, 6 keyboards at $2 each, someone hands over $300. What change comes back?<|eot|>
<|assistant|>
The change is $38.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 4 file boxes at $22 each, 1 tape rolls at $12 each, 5 mugs at $30 each, 6 keyboards at $2 each, someone hands over $300. What change comes back?"
},
{
"role": "assistant",
"content": "The change is $38."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0051438 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
After an initial $3,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part?<|eot|>
<|assistant|>
Each installment is $5,250.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "Each installment is $5,250.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0051439 | At $24.35 an hour, what does 16 hours of work pay?
That earns $389.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "389.60", "printed": "389.60", "notation": null} |
nlprog_det-setting-0051440 | Fines run at $250 per day up to a maximum of $1,000. How much after 34 days?
```python
per_day = 250
days = 34
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Execution prints 1000, as expected.
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0051441 | Starting from $20,000, the team spends $3,752, $2,964, $968. What remains?
$12,316 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "12316", "printed": "12316", "notation": null} |
nlprog_det-setting-0051442 | A storeroom has 1846 ink cartridges. The office uses 39 a day. How many are left after 14 days?
1300 ink cartridges are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0051443 | 2 books come back 4 days late, at $0.15 a day each. What is the fine?
The Python version:
```python
per_day = 0.15
days_late = 4
books = 2
fine = per_day * days_late * books # 1.2
print(f"{fine:.2f}")
```
The run gives 1.20, as expected.
The fine is $1.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1.20", "printed": "1.20", "notation": null} |
nlprog_det-setting-0051444 | <|start|><|system|>
You have access to these functions:
[{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0051445 | How much sales tax is charged on a $139.51 purchase at 4%?
```python
price = 139.51
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 5.5804
print(f"{tax:.2f}")
```
Printed = 5.58
$5.58 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5.58", "printed": "5.58", "notation": null} |
nlprog_det-setting-0051446 | Marek has 5 documents to file, and each filing costs $35. How much are the filing fees in total?
As Python:
```python
fee = 35
filings = 5
total = fee * filings # 175
print(total)
```
Printed = 175
The filings cost $175 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0051448 | A measure needs at least 60% of 256 votes. How many votes is that, rounded up?
Python, step by step:
```python
import math
voters = 256
needed = math.ceil(voters * 60 / 100) # 154
print(needed)
```
Execution prints: 154
154 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0051449 | <|start|><|user|>
Express 376 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 376
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
What it prints — 15 days and 16 hours
That is 15 days and 16 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 376 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 376\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhat it prints — 15 days and 16 hours\n\nThat is 15 days and 16 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "15 days and 16 hours", "printed": "15 days and 16 hours", "notation": null} |
nlprog_det-setting-0051450 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0051451 | Under a 33% contingency agreement, what fee is owed on a $60,000 award?
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
Shell output: 19800.00
The lawyer's fee comes to $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0051453 | A 20 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
```python
import math
length = 20
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 50
print(tiles)
```
Program output — 50
50 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0051454 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $40,000 award?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 30 / 100 # 0.3
fee = recovery * rate # 12000.0
print(f"{fee:.2f}")
```
stdout:
12000.00
The fee is $12,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $40,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 12000.0\nprint(f\"{fee:.2f}\")\n```\nstdout:\n12000.00\n\nThe fee is $12,000.... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0051455 | <|start|><|user|>
The paralegal logged 7 hours at a rate of $225. How much is billed?<|eot|>
<|assistant|>
hours = 7
rate = 225
bill = hours * rate # 1575
print(f"{bill:.2f}")
Execution prints 1575.00, as expected.
The bill is $1,575.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 7 hours at a rate of $225. How much is billed?"
},
{
"role": "assistant",
"content": " hours = 7\n rate = 225\n bill = hours * rate # 1575\n print(f\"{bill:.2f}\")\nExecution prints 1575.00, as expected.\n\nThe bill is $1,575.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0051456 | Lucia drove 252 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
We write it as a program:
```python
miles = 252
rate = 0.65
reimbursement = miles * rate # 163.8
print(f"{reimbursement:.2f}")
```
It prints: 163.80
The reimbursement is $163.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "163.80", "printed": "163.80", "notation": null} |
nlprog_det-setting-0051457 | <|start|><|user|>
How many meters are in 58.6 kilometers?<|eot|>
<|assistant|>
```python
km = 58.6
meters = km * 1000
print(round(meters))
```
Execution prints: 58600
That is 58,600 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 58.6 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 58.6\nmeters = km * 1000\nprint(round(meters))\n```\nExecution prints: 58600\n\nThat is 58,600 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "58600", "printed": "58600", "notation": null} |
nlprog_det-setting-0051458 | <|start|><|user|>
At $0.70 per mile, what is the reimbursement for 31 miles?<|eot|>
<|assistant|>
```python
miles = 31
rate = 0.7
reimbursement = miles * rate # 21.7
print(f"{reimbursement:.2f}")
```
The printout reads 21.70.
Yara is owed $21.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 31 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 31\nrate = 0.7\nreimbursement = miles * rate # 21.7\nprint(f\"{reimbursement:.2f}\")\n```\nThe printout reads 21.70.\n\nYara is owed $21.70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "21.70", "printed": "21.70", "notation": null} |
nlprog_det-setting-0051459 | Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?
A short script:
```python
cost = 24000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 3600.0
print(f"{per_year:.2f}")
```
Running this gives 3600.00.
Depreciation is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0051460 | Starting from $8,000, the team spends $1,604, $3,485, $3,050. What remains?
Computation in Python:
```python
budget = 8000
expenses = [1604, 3485, 3050]
left = budget - sum(expenses) # -139
print(left)
```
# result: -139
The remaining budget is -$139. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "-139", "printed": "-139", "notation": null} |
nlprog_det-setting-0051462 | Convert -10 °C to Fahrenheit.
Coded up:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Output:
14
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0051463 | Someone born June 5, 1973 turns how old by January 18, 2022? Give the age in whole years.
Python does the arithmetic:
```python
from datetime import date
born = date(1973, 6, 5) # datetime.date(1973, 6, 5)
on = date(2022, 1, 18) # datetime.date(2022, 1, 18)
age = on.year - born.year - ((on.month, on.day) < (born.mon... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0051464 | An invoice lists 7 chairs at $4 each, plus 10% sales tax. What is the invoice total?
Here's the code.
quantity = 7
unit_price = 4
subtotal = quantity * unit_price # 28
total = subtotal * (1 + 10 / 100) # 30.800000000000004
print(f"{total:.2f}")
That prints: 30.80
The total with tax is $30.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "30.80", "printed": "30.80", "notation": null} |
nlprog_det-setting-0051465 | <|start|><|user|>
Split $1,125 between Oskar and Arjun in the ratio 1 to 2. What is Oskar's share?<|eot|>
<|assistant|>
```python
total = 1125
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
stdout = 375
Oskar gets $375.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,125 between Oskar and Arjun in the ratio 1 to 2. What is Oskar's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1125\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nstdout = 375\n\nOskar ge... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0051466 | Pack A has 10 items for $13.88. Pack B has 15 items for $31.71. Which has the lower price per item?
Set it up in Python:
```python
pack_a = 13.88 / 10 # 1.3880000000000001
pack_b = 31.71 / 15 # 2.114
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Printed: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0051467 | At 40 miles per hour, how many minutes does a 270-mile trip take?
In Python:
```python
distance = 270
speed = 40
minutes = distance / speed * 60 # 405.0
print(round(minutes))
```
Out:
405
405 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0051468 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
2 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 108.0
print(f"{each:.2f}")
```
That prints 108.00.
The sh... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "2 friends split a $180 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 2\neach = bill... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0051469 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Divide 79 items among 3 groups as... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "26 each, 1 left over", "printed": "26 each, 1 left over", "notation": null} |
nlprog_det-setting-0051470 | A party has 28 days to respond to a motion served on August 10, 2018, with 3 days added because service was by mail. When is the response due?
As Python:
```python
from datetime import date, timedelta
served = date(2018, 8, 10) # datetime.date(2018, 8, 10)
response_days = 28
mail_days = 3
due = served + timedelta(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-09-10", "printed": "2018-09-10", "notation": null} |
nlprog_det-setting-0051471 | A client paid a $10,000 retainer. The firm has billed 12 hours at $200 per hour. How much of the retainer is left?
A few lines of Python do it:
retainer = 10000
hours = 12
rate = 200
left = retainer - hours * rate
print(left)
Run output — 7600
$7,600 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7600", "printed": "7600", "notation": null} |
nlprog_det-setting-0051472 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Express 85 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 85
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Result: 3 days and 13 hours
That is 3 days and 13 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Express 85 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 85\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nResult: 3 days ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3 days and 13 hours", "printed": "3 days and 13 hours", "notation": null} |
nlprog_det-setting-0051473 | <|start|><|user|>
A measure needs at least 67% of 166 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 166
needed = math.ceil(voters * 67 / 100) # 112
print(needed)
```
It prints 112, as expected.
112 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 166 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 166\nneeded = math.ceil(voters * 67 / 100) # 112\nprint(needed)\n```\nIt prints 112, as expected.\n\n112 votes are... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0051474 | A 7 lb package ships at $5 base plus $2.50/lb. What is the charge?
Program:
```python
base = 5
per_pound = 2.5
weight = 7
cost = base + per_pound * weight # 22.5
print(f"{cost:.2f}")
```
Executing it gives 22.50, as expected.
Shipping costs $22.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "22.50", "printed": "22.50", "notation": null} |
nlprog_det-setting-0051475 | $2,000 is invested at 3% compounded yearly. What is it worth after 4 years?
Program:
```python
principal = 2000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 2251.01762
print(f"{value:.2f}")
```
stdout — 2251.02
It is worth $2,251.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2251.02", "printed": "2251.02", "notation": null} |
nlprog_det-setting-0051476 | How many meters are in 50 kilometers?
Python does the arithmetic:
```python
km = 50
meters = km * 1000 # 50000
print(round(meters))
```
Execution result — 50000
50,000 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "50000", "printed": "50000", "notation": null} |
nlprog_det-setting-0051477 | A 8% increase is applied to $1,800 monthly rent. What is the new amount?
As Python:
```python
rent = 1800
increase = 8 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
Run it and it prints: 1944.00
It rises to $1,944.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0051478 | If a 4-year limitations period starts on June 13, 2013, when does it end?
Here is a short program for it.
from datetime import date
accrued = date(2013, 6, 13) # datetime.date(2013, 6, 13)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 6, 13)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2017-06-13", "printed": "2017-06-13", "notation": null} |
nlprog_det-setting-0051479 | Under a 40% contingency agreement, what fee is owed on a $60,000 award?
Translated to Python:
```python
recovery = 60000
rate = 40 / 100 # 0.4
fee = recovery * rate # 24000.0
print(f"{fee:.2f}")
```
Interpreter output — 24000.00
The fee is $24,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0051480 | <|start|><|user|>
Of a $5,000 budget, $3,000 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 3000
percent = spent / budget * 100 # 60.0
print(round(percent, 1))
```
Running it prints 60.0.
60.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $3,000 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 3000\npercent = spent / budget * 100 # 60.0\nprint(round(percent, 1))\n```\nRunning it prints 60.0.\n\n60.0% has been spent."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0051481 | <|start|><|user|>
What simple interest does $8,000 earn at 8% a year over 6 years?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 8 / 100 # 0.08
years = 6
interest = principal * rate * years # 3840.0
print(f"{interest:.2f}")
```
Printed = 3840.00
The interest is $3,840.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $8,000 earn at 8% a year over 6 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 8 / 100 # 0.08\nyears = 6\ninterest = principal * rate * years # 3840.0\nprint(f\"{interest:.2f}\")\n```\nPrinted = 3840.00\... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3840.00", "printed": "3840.00", "notation": null} |
nlprog_det-setting-0051482 | <|start|><|user|>
A service costs $15 a month or $144 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
Printed result: 36
The annual plan saves $36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $15 a month or $144 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 144\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nPrinted result: 36\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0051483 | <|start|><|system|>
You may call the tools below.
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "compute", "description": "Use for arith... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 387 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0051484 | 7 walks at 400 calories each burn how many calories in total?
In Python:
```python
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
```
The script prints: 2800
That burns 2800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0051485 | A client paid a $10,000 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?
Coded up:
```python
retainer = 10000
hours = 5
rate = 275
left = retainer - hours * rate
print(left)
```
(Output: 8625)
The remaining balance is $8,625. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "8625", "printed": "8625", "notation": null} |
nlprog_det-setting-0051486 | 12 boxes hold 8 ink cartridges each. After 19 are handed out, how many are left?
The program:
```python
boxes = 12
per_box = 8
given_away = 19
left = boxes * per_box - given_away
print(left)
```
The printout reads: 77
That leaves 77 ink cartridges. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0051487 | A meal costs $131.67. How much is a 15% tip?
Script:
```python
bill = 131.67
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 19.7505
print(f"{tip:.2f}")
```
(Printed result: 19.75)
The tip is $19.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "19.75", "printed": "19.75", "notation": null} |
nlprog_det-setting-0051488 | <|start|><|user|>
What commission does Tomas make on $23,482 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 23482
rate = 5 / 100 # 0.05
commission = sales * rate # 1174.1000000000001
print(f"{commission:.2f}")
```
Running this gives 1174.10.
Tomas earns $1,174.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Tomas make on $23,482 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 23482\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 1174.1000000000001\nprint(f\"{commission:.2f}\")\n```\nRunning this gives 1174.10.\n\nTom... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1174.10", "printed": "1174.10", "notation": null} |
nlprog_det-setting-0051489 | <|start|><|user|>
What simple interest does $1,000 earn at 6% a year over 6 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 360.0
print(f"{interest:.2f}")
```
Result — 360.00
It earns $360.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $1,000 earn at 6% a year over 6 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 6 / 100 # 0.06\nyears = 6\ninterest = principal * rate * years # 360.0\nprint(f\"{interest:.2f}\")\n```\nResult — 360.00\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0051490 | A $24,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?
Set it up in Python:
```python
grant = 24000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
The program outputs: 2000.00
$2,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0051491 | How many units at $40 each (variable cost $34) cover $6,000 of fixed costs?
Program:
```python
import math
fixed = 6000
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
(Execution result: 1000)
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0051493 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 31
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
That prints 580.6... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 10\nprorated = rent * days_occupied / days_in_month # 580.64... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0051494 | <|start|><|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
Executed, it shows 300... | chat | [
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": " balance = 7500\n monthly_rate = 1 / 100 # 0.01\n months = 4\n interest = balance * monthly_rate * months # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0051495 | <|start|><|user|>
A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 330
savings = monthly * 12 - yearly
print(savings)
```
Python prints 18, as expected.
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 330\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nPython prints 18, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051496 | How many minutes pass from 11:59 AM to 12:25 PM on the same day?
Python code:
```python
start = 11 * 60 + 59 # 719
end = 12 * 60 + 25 # 745
print(end - start)
```
The program prints: 26
It is 26 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0051497 | <|start|><|user|>
Sales went from 1,000 to 1,100. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1000
new = 1100
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Console:
10
The change is 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,000 to 1,100. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1000\nnew = 1100\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nConsole:\n10\n\nThe change is 10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0051498 | A 6-month warranty starts on February 16, 2025. On what date does it end?
Program:
```python
from datetime import date
start = date(2025, 2, 16)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Execution result: 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2025-08-16", "printed": "2025-08-16", "notation": null} |
nlprog_det-setting-0051499 | Rent of $2,200 goes up 8%. What is the new rent?
```python
rent = 2200
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 2376.0
print(f"{new_rent:.2f}")
```
The code prints: 2376.00
It rises to $2,376.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2376.00", "printed": "2376.00", "notation": null} |
nlprog_det-setting-0051500 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A clerk's office charges $150 for each filing. Rosa submits 11 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 150
filings = 11
total = fee * filings # 1650
print(total)
```
Program output: 1650
The total fee is $1,650.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A clerk's office charges $150 for each filing. Rosa submits 11 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 150\nfilings = 11\ntotal = fee * filings # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0051501 | <|start|><|user|>
An office budget of $25,000 has expenses of $1,742, $1,063, $522. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [1742, 1063, 522]
left = budget - sum(expenses) # 21673
print(left)
```
On running, it outputs 21673.
The remaining budget is $21,673.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "An office budget of $25,000 has expenses of $1,742, $1,063, $522. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [1742, 1063, 522]\nleft = budget - sum(expenses) # 21673\nprint(left)\n```\nOn running, it... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "21673", "printed": "21673", "notation": null} |
nlprog_det-setting-0051502 | At a 6% tax rate, what is the tax on $46.66?
Python makes this quick:
```python
price = 46.66
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 2.7996
print(f"{tax:.2f}")
```
The script prints 2.80, as expected.
$2.80 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2.80", "printed": "2.80", "notation": null} |
nlprog_det-setting-0051503 | <|start|><|user|>
At 65 miles per hour, how many minutes does a 195-mile trip take?<|eot|>
<|assistant|>
```python
distance = 195
speed = 65
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
# program output: 180
180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 65 miles per hour, how many minutes does a 195-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 195\nspeed = 65\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\n# program output: 180\n\n180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0051504 | Counting the first and last day, how many days are there from April 11, 2018 through May 3, 2018?
That is 23 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0051505 | Rent of $900 goes up 3%. What is the new rent?
It rises to $927.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0051506 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
12 hours of work at $150 an hour: what is the total charge?<|eot|>
<|assistant|>
That comes to $1,800.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "12 hours of work at $150 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "That comes to $1,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0051507 | Find the mean of these test scores: 63, 90, 87, 64, 90 and 74.
As Python:
```python
scores = [63, 90, 87, 64, 90, 74]
average = sum(scores) // len(scores) # 78
print(average)
```
The printout reads: 78
The mean is 78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0051508 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
An attorney bills 4 hours at $350 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 4
rate = 350
bill = hours * rate # 1400
print(f"{bill:.2f}")
```
Running it prints 1400.00.
That comes to $1,400.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "An attorney bills 4 hours at $350 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 350\nbill = hours * rate # 1400\nprint(f\"{bill:.2f}\")\n```\nRunning it pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0051509 | A customer buys 4 ink cartridges at $5 each, 1 desk lamps at $15 each and pays with $50. How much change is due?
Coded up:
items = [(4, 5), (1, 15)]
total = sum(q * p for q, p in items) # 35
paid = 50
change = paid - total # 15
print(change)
This prints: 15
The change is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0051510 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 48
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 192.0
pay = regular + overtime # 832.0
print(f"{pay:.2f}")
```
It prints 832.00, ... | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 48\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 192.0\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "832.00", "printed": "832.00", "notation": null} |
nlprog_det-setting-0051512 | If a 2-year limitations period starts on August 6, 2019, when does it end?
In Python:
from datetime import date
accrued = date(2019, 8, 6) # datetime.date(2019, 8, 6)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 8, 6)
print(expires.isoformat())
Executing it... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2021-08-06", "printed": "2021-08-06", "notation": null} |
nlprog_det-setting-0051513 | <|start|><|user|>
A garage charges $2 an hour, never more than $24 a day. How much for 3 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 3
daily_max = 24
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Result:
6
Parking costs $6.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $24 a day. How much for 3 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 3\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 6\nprint(cost)\n```\nResult:\n6\n\nParking costs $6."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0051514 | A 4-day trip pays $64 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?
Set it up in Python:
```python
days = 4
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 676
print(total)
```
The run gives: 676
That comes to $676. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "676", "printed": "676", "notation": null} |
nlprog_det-setting-0051515 | At an exchange rate of 1.27 EUR per USD, how many EUR is 3,376 USD?
Python:
```python
amount = 3376
rate = 1.27
converted = amount * rate # 4287.52
print(f"{converted:.2f}")
```
Result: 4287.52
That is 4,287.52 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "4287.52", "printed": "4287.52", "notation": null} |
nlprog_det-setting-0051516 | Leon buys 9 boxes of 25 tape rolls each and gives away 7 tape rolls. How many tape rolls are left?
The program:
```python
boxes = 9
per_box = 25
given_away = 7
left = boxes * per_box - given_away
print(left)
```
Printed result: 218
That leaves 218 tape rolls. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "218", "printed": "218", "notation": null} |
nlprog_det-setting-0051517 | 6 boxes hold 24 labels each. After 20 are handed out, how many are left?
Let the code do the arithmetic:
```python
boxes = 6
per_box = 24
given_away = 20
left = boxes * per_box - given_away # 124
print(left)
```
It prints: 124
That leaves 124 labels. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "124", "printed": "124", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.