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-0080110 | <|start|><|user|>
6 walks at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
Run result: 2100
2100 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 walks at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": " per_session = 350\n sessions = 6\n total = per_session * sessions # 2100\n print(total)\nRun result: 2100\n\n2100 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0080111 | Walls total 193 sq ft and each can covers 300 sq ft. How many cans should be bought?
The Python version:
```python
import math
area = 193
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
```
Shell output: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0080112 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A meal costs $193.71. How much is a 10% tip?<|eot|>
<|assistant|>
```python
bill = 193.71
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 19.371000000000002
print(f"{tip:.2f}")
```
The script prints 19.37, as expected.
Leave $19.37.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A meal costs $193.71. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 193.71\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 19.371000000000002\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "19.37", "printed": "19.37", "notation": null} |
nlprog_det-setting-0080114 | With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal.
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
The program outputs: 20.0
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0080115 | <|start|><|user|>
A customer buys 4 calendars at $23 each, 5 tape rolls at $22 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(4, 23), (5, 22)]
total = sum(q * p for q, p in items) # 202
paid = 250
change = paid - total # 48
print(change)
```
It prints: 48
The change is $48.... | chat | [
{
"role": "user",
"content": "A customer buys 4 calendars at $23 each, 5 tape rolls at $22 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 23), (5, 22)]\ntotal = sum(q * p for q, p in items) # 202\npaid = 250\nchange = paid - total... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0080116 | A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Translated to Python:
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 480.0
payment = (principal + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0080117 | Pack A has 6 items for $7.91. Pack B has 18 items for $21.43. Which has the lower price per item?
In code:
```python
pack_a = 7.91 / 6 # 1.3183333333333334
pack_b = 21.43 / 18 # 1.1905555555555556
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
When run, it prints: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0080118 | To read 182 pages in 7 days, how many pages per day are needed?
Let's compute it with Python.
```python
pages = 182
days = 7
per_day = pages // days # 26
print(per_day)
```
# stdout: 26
26 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0080119 | Pack A has 6 items for $3.26. Pack B has 20 items for $17.58. Which has the lower price per item?
A Python solution:
```python
pack_a = 3.26 / 6 # 0.5433333333333333
pack_b = 17.58 / 20 # 0.8789999999999999
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Execution result: A)
Pack A is cheaper p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0080120 | What is the total rent on a 12-month lease at $2,100 a month?
A Python solution:
```python
monthly_rent = 2100
months = 12
total = monthly_rent * months # 25200
print(total)
```
Output = 25200
In total, $25,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0080121 | <|start|><|user|>
Convert 69.7 km to meters.<|eot|>
<|assistant|>
```python
km = 69.7
meters = km * 1000 # 69700.0
print(round(meters))
```
It prints: 69700
69,700 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 69.7 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 69.7\nmeters = km * 1000 # 69700.0\nprint(round(meters))\n```\nIt prints: 69700\n\n69,700 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "69700", "printed": "69700", "notation": null} |
nlprog_det-setting-0080122 | 6 claimants share a $4,500 settlement equally. What is each share?
A Python solution:
```python
settlement = 4500
parties = 6
share = settlement // parties # 750
print(share)
```
(Output: 750)
Each share is $750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0080123 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $15. What do 8 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 8
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Printed result — 15
The charge is $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $15. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 8\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nPrinted result — 15\n\nThe charge is $15."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0080124 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A measure needs at least 75% of 70 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 70
needed = math.ceil(voters * 75 / 100) # 53
print(needed)
```
stdout — 53
At least 53 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A measure needs at least 75% of 70 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 70\nneeded = math.ceil(voters * 75 / 100) # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0080125 | A pack of 24 sticky pads sells for $1224. What does each cost?
Code:
```python
total = 1224
count = 24
per_item = total // count
print(per_item)
```
Console output: 51
Each one costs $51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0080126 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "488", "printed": "488", "notation": null} |
nlprog_det-setting-0080127 | A count moves from 2,000 to 2,500. By what percent did it change (use a minus sign for a drop)?
In code:
```python
old = 2000
new = 2500
change = (new - old) / old * 100 # 25.0
print(round(change))
```
Console output — 25
It changed by 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0080128 | A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?
Let's compute it with Python.
```python
monthly_rent = 1475
months = 36
total = monthly_rent * months # 53100
print(total)
```
Running this gives: 53100
The rent over the term is $53,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "53100", "printed": "53100", "notation": null} |
nlprog_det-setting-0080129 | <|start|><|user|>
Flooring at $5/sq ft for a 20 ft × 17 ft room costs how much?<|eot|>
<|assistant|>
It costs $1,700.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $5/sq ft for a 20 ft × 17 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $1,700."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0080130 | If a 135-minute seminar begins at 10:15 AM, what time does it finish?
Here is a short program for it.
```python
start = 10 * 60 + 15
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output = 12:30 PM
The seminar finishes at 12:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0080131 | What is 5 degrees Celsius in Fahrenheit?
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0080133 | <|start|><|user|>
213 files go into boxes of 25. How many boxes does that take?<|eot|>
<|assistant|>
It takes 9 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "213 files go into boxes of 25. How many boxes does that take?"
},
{
"role": "assistant",
"content": "It takes 9 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0080134 | <|start|><|user|>
A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 12-page copy cost?<|eot|>
<|assistant|>
```python
pages = 12
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.0
print(f"{cost:.2f}")
```
(Program output: 5.00)
The... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 12-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 12\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0080135 | <|start|><|user|>
An office budget of $20,000 has expenses of $2,340, $1,126, $2,269, $1,347. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [2340, 1126, 2269, 1347]
left = budget - sum(expenses) # 12918
print(left)
```
This prints: 12918
$12,918 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $2,340, $1,126, $2,269, $1,347. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [2340, 1126, 2269, 1347]\nleft = budget - sum(expenses) # 12918\nprint(left)\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "12918", "printed": "12918", "notation": null} |
nlprog_det-setting-0080136 | <|start|><|user|>
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 7000.0
print(f"{per_year:.2f}")
```
Printed: 7000.00
$7,00... | chat | [
{
"role": "user",
"content": "Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 7... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0080137 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A 5% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
```
Console output: 1155.00
It rises to $1,155.... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A 5% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increa... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0080138 | 140 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
```python
total = 140
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Running it prints: 15 each, 5 left over
The answer: 15 each, 5 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "15 each, 5 left over", "printed": "15 each, 5 left over", "notation": null} |
nlprog_det-setting-0080139 | Buying 3 rulers at $2 each, 2 batteries at $14 each, someone hands over $50. What change comes back?
Set it up in Python:
```python
items = [(3, 2), (2, 14)]
total = sum(q * p for q, p in items) # 34
paid = 50
change = paid - total # 16
print(change)
```
It prints: 16
$16 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0080140 | Rent of $1,800 goes up 5%. What is the new rent?
A Python solution:
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
(Printed: 1890.00)
It rises to $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0080141 | A kettle costs $250. It is 15% off. What is the sale price?
```python
price = 250
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 212.5
print(f"{sale_price:.2f}")
```
# stdout: 212.50
It costs $212.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "212.50", "printed": "212.50", "notation": null} |
nlprog_det-setting-0080142 | <|start|><|user|>
Monthly rent is $2,400. A tenant moves in with 7 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 7
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The code prints: 560.00
The prorated re... | chat | [
{
"role": "user",
"content": "Monthly rent is $2,400. A tenant moves in with 7 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 7\nprorated = rent * days_occupied / days_in_month\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "560.00", "printed": "560.00", "notation": null} |
nlprog_det-setting-0080143 | How many of 172 votes make 67% (round up)?
Script:
```python
import math
voters = 172
needed = math.ceil(voters * 67 / 100) # 116
print(needed)
```
When run, it prints 116.
116 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0080144 | <|start|><|user|>
A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 3833.3333333333335
print(f"{each:.2f}")
Run it and it prints: ... | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 48000\n up_front = 2000\n installments = 12\n each = (grant - up_front) / installments # 3833.3333... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0080145 | <|start|><|user|>
4 walks at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 4
total = per_session * sessions # 800
print(total)
```
Running this gives: 800
800 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 walks at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 4\ntotal = per_session * sessions # 800\nprint(total)\n```\nRunning this gives: 800\n\n800 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0080146 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Tobias was born on July 13, 1956. How old is Tobias on February 28, 2027?<|eot|>
<|assistant|>
from datetime import date
born = date(1956, 7, 13) # datetime.date(1956, 7, 13)
on = date(2027, 2, 28) # datetime.date(2027, 2, 28)
age = on.year - b... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Tobias was born on July 13, 1956. How old is Tobias on February 28, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1956, 7, 13) # datetime.date(1956, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0080147 | <|start|><|user|>
A 4% increase is applied to $900 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 900
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
(Program output: 936.00)
It rises to $936.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $900 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\nincrease = 4 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\n(Program output: 936.00)\n\nIt rises to $936.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "936.00", "printed": "936.00", "notation": null} |
nlprog_det-setting-0080149 | At 2% a month (simple), what interest builds on $12,000 over 5 months?
Programmatically:
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 1200.0
print(f"{interest:.2f}")
When run, it prints 1200.00.
$1,200.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0080150 | <|start|><|user|>
From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
$9,600 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "$9,600 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "9600", "printed": "9600", "notation": null} |
nlprog_det-setting-0080151 | Counting the first and last day, how many days are there from May 28, 2025 through June 16, 2025?
The Python version:
from datetime import date
first = date(2025, 5, 28) # datetime.date(2025, 5, 28)
last = date(2025, 6, 16) # datetime.date(2025, 6, 16)
days = (last - first).days + 1 # 20
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0080152 | A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?
The rent over the term is $15,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "15300", "printed": "15300", "notation": null} |
nlprog_det-setting-0080153 | Printing costs 15 cents a page. What does it cost to print 140 copies of a 5-page handout?
We can compute it in Python.
```python
pages = 5
copies = 140
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 105.0
print(f"{cost:.2f}")
```
(Result: 105.00)
Printing costs $105.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0080154 | Printing costs 15 cents a page. What does it cost to print 79 copies of a 28-page handout?
A Python solution:
```python
pages = 28
copies = 79
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 331.8
print(f"{cost:.2f}")
```
stdout — 331.80
Printing costs $331.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "331.80", "printed": "331.80", "notation": null} |
nlprog_det-setting-0080155 | 29 pens cost $6 apiece. With 5% tax added, what is the total?
One way, in code:
```python
quantity = 29
unit_price = 6
subtotal = quantity * unit_price # 174
total = subtotal * (1 + 5 / 100) # 182.70000000000002
print(f"{total:.2f}")
```
This prints 182.70.
The invoice total is $182.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "182.70", "printed": "182.70", "notation": null} |
nlprog_det-setting-0080156 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
# output: 12
Parking costs $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\n# output: 12\n\nParking costs $12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0080157 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
With $4,000 in... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0080158 | <|start|><|user|>
An invoice lists 32 water bottles at $2 each, plus 10% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 32
unit_price = 2
subtotal = quantity * unit_price # 64
total = subtotal * (1 + 10 / 100) # 70.4
print(f"{total:.2f}")
```
What it prints: 70.40
The invoice total i... | chat | [
{
"role": "user",
"content": "An invoice lists 32 water bottles at $2 each, plus 10% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 32\nunit_price = 2\nsubtotal = quantity * unit_price # 64\ntotal = subtotal * (1 + 10 / 100) # 70.4\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "70.40", "printed": "70.40", "notation": null} |
nlprog_det-setting-0080159 | A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?
Python version:
```python
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
```
(Result: 50400)
In total, $50,400 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0080160 | <|start|><|system|>
Functions:
{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "translate", "description": "Translate ... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 291 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0080161 | How many of 156 votes make 67% (round up)?
Coded up:
```python
import math
voters = 156
needed = math.ceil(voters * 67 / 100) # 105
print(needed)
```
The script prints: 105
105 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0080162 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
The landlord deducts $120 and $85 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [120, 85]
refund = deposit - sum(deductions) # 795
print(refund)
```
The code prints: 795
$795 is returned.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "The landlord deducts $120 and $85 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [120, 85]\nrefund = deposit - sum(dedu... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "795", "printed": "795", "notation": null} |
nlprog_det-setting-0080163 | <|start|><|user|>
What is 10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
# stdout: 50
That is 50 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 10 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\n# stdout: 50\n\nThat is 50 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0080164 | What is -15 degrees Celsius in Fahrenheit?
Let the code do the arithmetic:
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
The run gives 5, as expected.
That is 5 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0080165 | <|start|><|user|>
A 36-month warranty starts on September 9, 2022. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2022, 9, 9)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofor... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on September 9, 2022. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2022, 9, 9)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2025-09-09", "printed": "2025-09-09", "notation": null} |
nlprog_det-setting-0080166 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 41
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 37.5
pay = regular + overtime # 1037.5
print(f"{pay:.2f}")
```
The program outpu... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 37.5\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1037.50", "printed": "1037.50", "notation": null} |
nlprog_det-setting-0080167 | Zoe lends $8,000 at 2% simple interest per year for 2 years. How much interest is earned?
It earns $320.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0080168 | At $28.84 an hour, what does 36 hours of work pay?
Program:
```python
rate = 28.84
hours = 36
earnings = rate * hours # 1038.24
print(f"{earnings:.2f}")
```
(Run result: 1038.24)
That earns $1,038.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1038.24", "printed": "1038.24", "notation": null} |
nlprog_det-setting-0080169 | Revenue is $13,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
In code:
```python
revenue = 13500
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Python prints 7.4, as expected.
Profit is 7.4% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "7.4", "printed": "7.4", "notation": null} |
nlprog_det-setting-0080170 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Python prints: 8
The charge is $8.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 4\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nPython prints: 8\n\nThe charge is $8."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0080171 | Each storage box holds 20 files. How many boxes are needed for 696 files?
The Python version:
```python
import math
files = 696
per_box = 20
boxes = math.ceil(files / per_box) # 35
print(boxes)
```
# result: 35
It takes 35 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0080172 | <|start|><|user|>
How many of 279 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 279
needed = math.ceil(voters * 67 / 100) # 187
print(needed)
```
Run result: 187
187 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 279 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 279\nneeded = math.ceil(voters * 67 / 100) # 187\nprint(needed)\n```\nRun result: 187\n\n187 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0080173 | A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?
We can compute it in Python.
```python
recovery = 150000
rate = 35 / 100 # 0.35
fee = recovery * rate # 52500.0
print(f"{fee:.2f}")
```
Executing it gives: 52500.00
The fee is $52,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "52500.00", "printed": "52500.00", "notation": null} |
nlprog_det-setting-0080174 | <|start|><|user|>
6 bike rides at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 6
total = per_session * sessions # 2400
print(total)
```
Printed:
2400
That burns 2400 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 bike rides at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 6\ntotal = per_session * sessions # 2400\nprint(total)\n```\nPrinted:\n2400\n\nThat burns 2400 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0080175 | The landlord deducts $85 from a $800 deposit. What is returned to the tenant?
Script:
```python
deposit = 800
deductions = [85]
refund = deposit - sum(deductions) # 715
print(refund)
```
Run it and it prints: 715
$715 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "715", "printed": "715", "notation": null} |
nlprog_det-setting-0080176 | Which is cheaper per unit: 10 for $5.05 (A) or 15 for $10.63 (B)?
The program:
pack_a = 5.05 / 10 # 0.505
pack_b = 10.63 / 15 # 0.7086666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
The interpreter prints A.
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0080178 | <|start|><|user|>
What day of the week is March 24, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2026, 3, 24) # datetime.date(2026, 3, 24)
print(hearing.strftime("%A"))
```
# out: Tuesday
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is March 24, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2026, 3, 24) # datetime.date(2026, 3, 24)\nprint(hearing.strftime(\"%A\"))\n```\n# out: Tuesday\n\nIt is a Tuesday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0080179 | <|start|><|user|>
A 4% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
Out:
1144.00
It rises to $1,144.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1144.0\nprint(f\"{new_rent:.2f}\")\n```\nOut:\n1144.00\n\nIt rises... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0080180 | Find the mean of these test scores: 59, 89, 59, 70, 75 and 68.
We can compute it in Python.
```python
scores = [59, 89, 59, 70, 75, 68]
average = sum(scores) // len(scores) # 70
print(average)
```
Executed, it shows: 70
The average score is 70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0080181 | <|start|><|user|>
49 copies of a 43-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 43
copies = 49
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 252.84
print(f"{cost:.2f}")
```
It prints 252.84, as expected.
Printing costs $252.84.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "49 copies of a 43-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 43\ncopies = 49\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 252.84\nprint(f\"{cost:.2f}\")\n```\nIt prints 25... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "252.84", "printed": "252.84", "notation": null} |
nlprog_det-setting-0080182 | <|start|><|system|>
Functions:
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "Convert a quanti... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0080183 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Pack A has 6 items for $9.03. Pack B has 18 items for $14.50. Which has the lower price per item?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Pack A has 6 items for $9.03. Pack B has 18 items for $14.50. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "B has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0080184 | <|start|><|system|>
You may call the tools below.
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "define_word", "description... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 262 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0080185 | With $20,000 in costs and $20,500 in revenue, what percent of revenue is profit? Round to one decimal.
The computation:
```python
revenue = 20500
costs = 20000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 2.4390243902439024
print(round(margin, 1))
```
It outputs 2.4.
The margin is 2.4%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2.4", "printed": "2.4", "notation": null} |
nlprog_det-setting-0080186 | <|start|><|user|>
Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
The margin is 16.7%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "The margin is 16.7%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0080187 | The landlord deducts $150 and $150 from a $1,500 deposit. What is returned to the tenant?
Program:
```python
deposit = 1500
deductions = [150, 150]
refund = deposit - sum(deductions) # 1200
print(refund)
```
(Result: 1200)
The refund is $1,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0080188 | <|start|><|user|>
How many days are there from May 28, 2028 to April 9, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 5, 28) # datetime.date(2028, 5, 28)
second = date(2029, 4, 9) # datetime.date(2029, 4, 9)
print((second - first).days)
```
The printout reads: 316
It is 316 days.<... | chat | [
{
"role": "user",
"content": "How many days are there from May 28, 2028 to April 9, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 5, 28) # datetime.date(2028, 5, 28)\nsecond = date(2029, 4, 9) # datetime.date(2029, 4, 9)\nprint((second - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "316", "printed": "316", "notation": null} |
nlprog_det-setting-0080189 | How many meters are in 82.3 kilometers?
We can compute it in Python.
```python
km = 82.3
meters = km * 1000 # 82300.0
print(round(meters))
```
Console output — 82300
That is 82,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "82300", "printed": "82300", "notation": null} |
nlprog_det-setting-0080190 | Counting the first and last day, how many days are there from March 28, 2025 through April 6, 2025?
Computing it:
```python
from datetime import date
first = date(2025, 3, 28) # datetime.date(2025, 3, 28)
last = date(2025, 4, 6) # datetime.date(2025, 4, 6)
days = (last - first).days + 1 # 10
print(days)
```
The run... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0080192 | With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.
A few lines of Python do it:
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
The program prints 38.5, as expecte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0080193 | <|start|><|system|>
Functions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "paramete... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"python\", \"description\": \"Run Python code in a s... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0080194 | Convert 8,766 GBP to USD at 1 GBP = 1.31 USD.
Python code:
```python
amount = 8766
rate = 1.31
converted = amount * rate # 11483.460000000001
print(f"{converted:.2f}")
```
stdout:
11483.46
It converts to 11,483.46 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "11483.46", "printed": "11483.46", "notation": null} |
nlprog_det-setting-0080195 | <|start|><|user|>
How long, in days, is it from May 11, 2028 until July 3, 2028?<|eot|>
<|assistant|>
There are 53 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from May 11, 2028 until July 3, 2028?"
},
{
"role": "assistant",
"content": "There are 53 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0080196 | A chair costs $250. It is 25% off. What is the sale price?
Python makes this quick:
```python
price = 250
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 187.5
print(f"{sale_price:.2f}")
```
The program prints 187.50, as expected.
The sale price is $187.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "187.50", "printed": "187.50", "notation": null} |
nlprog_det-setting-0080197 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Convert 37.9 km to meters.<|eot|>
<|assistant|>
```python
km = 37.9
meters = km * 1000 # 37900.0
print(round(meters))
```
(Program output: 37900)
That is 37,900 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Convert 37.9 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 37.9\nmeters = km * 1000 # 37900.0\nprint(round(meters))\n```\n(Program output: 37900)\n\nThat is 37,... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "37900", "printed": "37900", "notation": null} |
nlprog_det-setting-0080200 | <|start|><|user|>
5 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 5
share = settlement // parties # 240
print(share)
```
The script prints 240, as expected.
Each share is $240.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 5\nshare = settlement // parties # 240\nprint(share)\n```\nThe script prints 240, as expected.\n\nEach share is $240."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0080201 | Zainab buys 10 boxes of 10 clipboards each and gives away 20 clipboards. How many clipboards are left?
Code:
boxes = 10
per_box = 10
given_away = 20
left = boxes * per_box - given_away # 80
print(left)
Python prints 80, as expected.
That leaves 80 clipboards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0080202 | <|start|><|user|>
Of a $5,000 budget, $2,400 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 2400
percent = spent / budget * 100 # 48.0
print(round(percent, 1))
```
Shell output: 48.0
That is 48.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $2,400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 2400\npercent = spent / budget * 100 # 48.0\nprint(round(percent, 1))\n```\nShell output: 48.0\n\nThat is 48.0% of the budget."... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "48.0", "printed": "48.0", "notation": null} |
nlprog_det-setting-0080203 | Sales went from 1,200 to 1,800. What is the percent change?
The computation:
```python
old = 1200
new = 1800
change = (new - old) / old * 100 # 50.0
print(round(change))
```
(Printed: 50)
It changed by 50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0080204 | Copies cost $15 plus $0.50 for each page beyond 20. How much for 33 pages?
A Python solution:
```python
pages = 33
base = 15
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 21.5
print(f"{cost:.2f}")
```
(Console output: 21.50)
The copy costs $21.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0080205 | How many minutes pass from 7:12 AM to 9:22 AM on the same day?
One way, in code:
start = 7 * 60 + 12 # 432
end = 9 * 60 + 22 # 562
print(end - start)
Shell output: 130
130 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "130", "printed": "130", "notation": null} |
nlprog_det-setting-0080206 | 5 friends split a $240 bill plus a 15% tip evenly. How much does each pay?
The computation:
```python
bill = 240
tip_rate = 15 / 100 # 0.15
people = 5
each = bill * (1 + tip_rate) / people # 55.2
print(f"{each:.2f}")
```
Execution prints 55.20.
The share is $55.20 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "55.20", "printed": "55.20", "notation": null} |
nlprog_det-setting-0080208 | The statute was enacted in 2012. How many years had passed by 2050?
```python
start_year = 2012
end_year = 2050
print(end_year - start_year)
```
When run, it prints: 38
That is 38 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0080209 | Which is cheaper per unit: 8 for $11.03 (A) or 24 for $24.64 (B)?
Here is a short program for it.
```python
pack_a = 11.03 / 8 # 1.37875
pack_b = 24.64 / 24 # 1.0266666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The program outputs: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0080210 | <|start|><|system|>
Tools (call with JSON):
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name":... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 370 | {"gold": "130.00", "printed": "130.00", "notation": null} |
nlprog_det-setting-0080211 | Quinn and Hugo share $1,821 in the ratio 1:2. How much does Quinn get?
One way, in code:
```python
total = 1821
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 607
print(share_a)
```
(Console output: 607)
Quinn's share is $607. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "607", "printed": "607", "notation": null} |
nlprog_det-setting-0080212 | <|start|><|user|>
What does $1,000 grow to in 3 years at 3% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 1092.727
print(f"{value:.2f}")
```
The run gives 1092.73, as expected.
The balance is $1,092.73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 3 years at 3% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 1092.727\nprint(f\"{value:.2f}\")\n```\nThe run gives 1092... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1092.73", "printed": "1092.73", "notation": null} |
nlprog_det-setting-0080213 | <|start|><|system|>
You have access to these functions:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Printing costs 10 cents a... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "940.50", "printed": "940.50", "notation": null} |
nlprog_det-setting-0080214 | Walls total 479 sq ft and each can covers 350 sq ft. How many cans should be bought?
import math
area = 479
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
Execution result — 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0080215 | Carmen lends $5,000 at 8% simple interest per year for 5 years. How much interest is earned?
In code:
```python
principal = 5000
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 2000.0
print(f"{interest:.2f}")
```
Run result = 2000.00
The interest is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0080216 | <|start|><|user|>
Goods bought on August 6, 2025 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2025, 8, 6)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.is... | chat | [
{
"role": "user",
"content": "Goods bought on August 6, 2025 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2025, 8, 6)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2026-08-06", "printed": "2026-08-06", "notation": null} |
nlprog_det-setting-0080217 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "busines... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 334 | {"gold": "860.00", "printed": "860.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.