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-0064805 | Fixed costs are $1,200. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?
Coded up:
```python
import math
fixed = 1200
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
The interpreter prints: 120
Break-even is 120 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0064806 | A quorum is 1/3 of the 31 members, rounded up. How many members make a quorum?
Python version:
```python
import math
members = 31
quorum = math.ceil(members * 1 / 3) # 11
print(quorum)
```
# printed result: 11
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0064807 | <|start|><|user|>
1 books come back 2 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.5
days_late = 2
books = 1
fine = per_day * days_late * books # 1.0
print(f"{fine:.2f}")
It prints 1.00.
$1.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 2 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.5\n days_late = 2\n books = 1\n fine = per_day * days_late * books # 1.0\n print(f\"{fine:.2f}\")\nIt prints 1.00.\n\n$1.00 is o... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1.00", "printed": "1.00", "notation": null} |
nlprog_det-setting-0064808 | A 3-day trip pays $79 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?
We can compute it in Python.
```python
days = 3
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 587
print(total)
```
Printed: 587
The allowance is $5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "587", "printed": "587", "notation": null} |
nlprog_det-setting-0064809 | <|start|><|user|>
Convert 55.5 km to meters.<|eot|>
<|assistant|>
```python
km = 55.5
meters = km * 1000 # 55500.0
print(round(meters))
```
The program prints 55500.
55,500 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 55.5 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 55.5\nmeters = km * 1000 # 55500.0\nprint(round(meters))\n```\nThe program prints 55500.\n\n55,500 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "55500", "printed": "55500", "notation": null} |
nlprog_det-setting-0064811 | <|start|><|system|>
You may call the tools below.
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "eval_python", "description"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"tit... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0064812 | <|start|><|system|>
You may call the tools below.
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "run_python", "description": "A Python interpreter. Returns stand... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"run_python... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0064813 | A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?
Code:
```python
recovery = 150000
rate = 40 / 100 # 0.4
fee = recovery * rate # 60000.0
print(f"{fee:.2f}")
```
Python prints 60000.00, as expected.
The fee is $60,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "60000.00", "printed": "60000.00", "notation": null} |
nlprog_det-setting-0064814 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?
```python
base = 12
rate = 5.1
used = 20
free = 2
bill = base + rate * max(0, used - free) # 103.8
print(f"{bill:.2f}")
```
The code prints: 103.80
$103.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "103.80", "printed": "103.80", "notation": null} |
nlprog_det-setting-0064815 | Count the days between March 18, 2026 and October 18, 2026.
A Python solution:
```python
from datetime import date
first = date(2026, 3, 18) # datetime.date(2026, 3, 18)
second = date(2026, 10, 18) # datetime.date(2026, 10, 18)
print((second - first).days)
```
Output of the run — 214
There are 214 days between the ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0064816 | Scale 100 g of oats from 4 servings to 12 servings.
Program:
```python
grams = 100
serves = 4
needed_for = 12
scaled = grams * needed_for // serves # 300
print(scaled)
```
This prints 300.
300 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0064817 | A jacket costs $90. It is 25% off. What is the sale price?
Set it up in Python:
price = 90
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
On running, it outputs: 67.50
The sale price is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0064818 | Monthly: $25. Annual: $270. What is saved per year by paying annually?
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0064819 | Of a $5,000 budget, $1,000 has been spent. What percent is that?
Script:
```python
budget = 5000
spent = 1000
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
```
# output: 20.0
20.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0064820 | <|start|><|user|>
Prorate $1,800 of monthly rent for 20 days of a 30-day month.<|eot|>
<|assistant|>
The tenant owes $1,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 20 days of a 30-day month."
},
{
"role": "assistant",
"content": "The tenant owes $1,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0064821 | <|start|><|user|>
A lease runs for 36 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
In total, $35,100 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "In total, $35,100 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "35100", "printed": "35100", "notation": null} |
nlprog_det-setting-0064822 | A settlement of $84,000 is split equally among 4 parties. How much does each party receive?
Each share is $21,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "21000", "printed": "21000", "notation": null} |
nlprog_det-setting-0064823 | 2 friends split a $120 bill plus a 15% tip evenly. How much does each pay?
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0064824 | At $0.65 per mile, what is the reimbursement for 491 miles?
```python
miles = 491
rate = 0.65
reimbursement = miles * rate # 319.15000000000003
print(f"{reimbursement:.2f}")
```
Run it and it prints: 319.15
Sara is owed $319.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "319.15", "printed": "319.15", "notation": null} |
nlprog_det-setting-0064825 | Rent of $900 goes up 5%. What is the new rent?
Let the code do the arithmetic:
```python
rent = 900
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
(Program output: 945.00)
The new rent is $945.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "945.00", "printed": "945.00", "notation": null} |
nlprog_det-setting-0064826 | <|start|><|user|>
With 20% off, what does a $90 chair cost?<|eot|>
<|assistant|>
```python
price = 90
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 72.0
print(f"{sale_price:.2f}")
```
Executed, it shows 72.00.
It costs $72.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 20% off, what does a $90 chair cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 90\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows 72.00.\n\nIt costs $72.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0064828 | <|start|><|user|>
Walls total 275 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
1 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 275 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "1 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0064829 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
A car travels 160 miles in 2.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 160
hours = 2.5
speed = distance / hours # 64.0
print(round(speed))
```
Execution result: 64
The average speed is 64 mph.<|eot|>... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "A car travels 160 miles in 2.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 160\nhours = 2.5\nspeed = distance / hours #... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0064830 | A library charges $0.15 per book per day late. What is the fine for 4 books that are 4 days late?
Here is the program.
```python
per_day = 0.15
days_late = 4
books = 4
fine = per_day * days_late * books # 2.4
print(f"{fine:.2f}")
```
Execution prints 2.40.
$2.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2.40", "printed": "2.40", "notation": null} |
nlprog_det-setting-0064831 | A 255-mile drive at a steady 60 mph takes how many minutes?
In Python:
```python
distance = 255
speed = 60
minutes = distance / speed * 60
print(round(minutes))
```
Run it and it prints: 255
255 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0064832 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Arjun earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?<|eot|>
<|assistant|>
Arjun earns $989.75.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Arjun earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?"
},
{
"role": "assistant",
"content": "Arjun earns $989.75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "989.75", "printed": "989.75", "notation": null} |
nlprog_det-setting-0064833 | <|start|><|user|>
2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $14,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $14,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0064834 | Of a $8,000 budget, $3,200 has been spent. What percent is that?
Programmatically:
budget = 8000
spent = 3200
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
Run result: 40.0
40.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0064835 | <|start|><|user|>
What average speed covers 75 miles in 1 hours?<|eot|>
<|assistant|>
The average speed is 75 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 75 miles in 1 hours?"
},
{
"role": "assistant",
"content": "The average speed is 75 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0064836 | <|start|><|user|>
How many meters are in 92.2 kilometers?<|eot|>
<|assistant|>
```python
km = 92.2
meters = km * 1000
print(round(meters))
```
When run, it prints: 92200
That is 92,200 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 92.2 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 92.2\nmeters = km * 1000\nprint(round(meters))\n```\nWhen run, it prints: 92200\n\nThat is 92,200 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "92200", "printed": "92200", "notation": null} |
nlprog_det-setting-0064837 | Equipment costs $18,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?
In Python:
```python
cost = 18000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 1800.0
print(f"{per_year:.2f}")
```
The script prints 1800.00.
Depreciation is $1,800.00 p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0064838 | <|start|><|user|>
What is a 18% tip on a $83.17 bill?<|eot|>
<|assistant|>
```python
bill = 83.17
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 14.9706
print(f"{tip:.2f}")
```
# console output: 14.97
Leave $14.97.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 18% tip on a $83.17 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 83.17\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 14.9706\nprint(f\"{tip:.2f}\")\n```\n# console output: 14.97\n\nLeave $14.97."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "14.97", "printed": "14.97", "notation": null} |
nlprog_det-setting-0064839 | A client paid a $5,000 retainer. The firm has billed 3 hours at $275 per hour. How much of the retainer is left?
Set it up in Python:
retainer = 5000
hours = 3
rate = 275
left = retainer - hours * rate # 4175
print(left)
On running, it outputs 4175.
$4,175 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "4175", "printed": "4175", "notation": null} |
nlprog_det-setting-0064840 | A meal costs $77.60. How much is a 22% tip?
Programmatically:
```python
bill = 77.6
tip_rate = 22 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
(stdout: 17.07)
The tip is $17.07. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17.07", "printed": "17.07", "notation": null} |
nlprog_det-setting-0064841 | <|start|><|user|>
How many of 288 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 288
needed = math.ceil(voters * 75 / 100) # 216
print(needed)
```
(Printed: 216)
216 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 288 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 288\nneeded = math.ceil(voters * 75 / 100) # 216\nprint(needed)\n```\n(Printed: 216)\n\n216 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "216", "printed": "216", "notation": null} |
nlprog_det-setting-0064842 | Starting from $8,000, the team spends $2,737, $3,490, $1,562, $3,151. What remains?
Programmatically:
```python
budget = 8000
expenses = [2737, 3490, 1562, 3151]
left = budget - sum(expenses)
print(left)
```
(Result: -2940)
The remaining budget is -$2,940. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "-2940", "printed": "-2940", "notation": null} |
nlprog_det-setting-0064843 | Sales went from 1,000 to 800. What is the percent change?
Python code:
```python
old = 1000
new = 800
change = (new - old) / old * 100 # -20.0
print(round(change))
```
When run, it prints -20, as expected.
It changed by -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0064844 | <|start|><|user|>
What commission does Dara make on $43,896 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 43896
rate = 5 / 100 # 0.05
commission = sales * rate # 2194.8
print(f"{commission:.2f}")
```
When run, it prints: 2194.80
The commission is $2,194.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Dara make on $43,896 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 43896\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 2194.8\nprint(f\"{commission:.2f}\")\n```\nWhen run, it prints: 2194.80\n\nThe commission ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2194.80", "printed": "2194.80", "notation": null} |
nlprog_det-setting-0064845 | Which is cheaper per unit: 12 for $14.74 (A) or 30 for $18.55 (B)?
As Python:
```python
pack_a = 14.74 / 12 # 1.2283333333333333
pack_b = 18.55 / 30 # 0.6183333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Execution prints B, as expected.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0064846 | An attorney bills 1.5 hours at $180 per hour. What is the bill?
```python
hours = 1.5
rate = 180
bill = hours * rate # 270.0
print(f"{bill:.2f}")
```
The code prints 270.00.
That comes to $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0064847 | <|start|><|user|>
After an initial $2,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
grant = 48000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 7666.666666666667
print(f"{each:.2f}")
Run output — 7666.67
$7,666... | chat | [
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": " grant = 48000\n up_front = 2000\n installments = 6\n each = (grant - up_front) / installments # 7666.666666666... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "7666.67", "printed": "7666.67", "notation": null} |
nlprog_det-setting-0064848 | A 36-month warranty starts on December 6, 2020. On what date does it end?
Set it up in Python:
```python
from datetime import date
start = date(2020, 12, 6)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Result... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2023-12-06", "printed": "2023-12-06", "notation": null} |
nlprog_det-setting-0064849 | What day of the week is June 24, 2011?
Code:
```python
from datetime import date
hearing = date(2011, 6, 24) # datetime.date(2011, 6, 24)
print(hearing.strftime("%A"))
```
This prints Friday, as expected.
June 24, 2011 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0064850 | <|start|><|user|>
Counting the first and last day, how many days are there from March 5, 2027 through March 11, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 3, 5) # datetime.date(2027, 3, 5)
last = date(2027, 3, 11) # datetime.date(2027, 3, 11)
days = (last - first).days + 1 # 7
... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from March 5, 2027 through March 11, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 3, 5) # datetime.date(2027, 3, 5)\nlast = date(2027, 3, 11) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0064851 | <|start|><|user|>
How many whole days and leftover hours are in 43 hours?<|eot|>
<|assistant|>
```python
hours = 43
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# out: 1 days and 19 hours
That is 1 days and 19 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 43 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 43\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# out: 1 days and 19 hours\n\nThat is 1 days and 19 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1 days and 19 hours", "printed": "1 days and 19 hours", "notation": null} |
nlprog_det-setting-0064852 | <|start|><|user|>
Diego earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 42
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 67.19999999999999
pay = regular + overtime # 963.2
print(f"{pay:.2f}")
```
T... | chat | [
{
"role": "user",
"content": "Diego earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 42\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 67.19999999999999\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "963.20", "printed": "963.20", "notation": null} |
nlprog_det-setting-0064853 | Which is cheaper per unit: 12 for $11.31 (A) or 18 for $16.45 (B)?
We write it as a program:
```python
pack_a = 11.31 / 12 # 0.9425
pack_b = 16.45 / 18 # 0.9138888888888889
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Run result = B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0064854 | How many 1-foot square tiles cover a 14 ft by 7 ft floor (round up)?
Code:
```python
import math
length = 14
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 98
print(tiles)
```
Run output — 98
It takes 98 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0064855 | <|start|><|user|>
From a $2,500 retainer, 2 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 2
rate = 275
left = retainer - hours * rate # 1950
print(left)
```
Execution result: 1950
$1,950 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 2 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 2\nrate = 275\nleft = retainer - hours * rate # 1950\nprint(left)\n```\nExecution result: 1950\n\n$1,950 of the re... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1950", "printed": "1950", "notation": null} |
nlprog_det-setting-0064856 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Attendance was 28 out of 40. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 28
total = 40
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
What it prints — 70.0
70.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Attendance was 28 out of 40. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 28\ntotal = 40\npercent = present / total * 100 # 70.0\nprint(round(percent, 1))... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0064857 | A 12-month warranty starts on April 2, 2026. On what date does it end?
Computing it:
```python
from datetime import date
start = date(2026, 4, 2)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The code prints: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2027-04-02", "printed": "2027-04-02", "notation": null} |
nlprog_det-setting-0064858 | <|start|><|user|>
Notice was given on January 19, 2022. The notice period is 90 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 1, 19) # datetime.date(2022, 1, 19)
end = start + timedelta(days=90) # datetime.date(2022, 4, 19)
print(end.isoformat())
``... | chat | [
{
"role": "user",
"content": "Notice was given on January 19, 2022. The notice period is 90 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 1, 19) # datetime.date(2022, 1, 19)\nend = start + timedelta(days=90... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2022-04-19", "printed": "2022-04-19", "notation": null} |
nlprog_det-setting-0064859 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
Python does the arithmetic:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
Shell output — 39000
In total, $39,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0064860 | Divide 235 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python version:
```python
total = 235
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Out:
58 each, 3 left over
58 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "58 each, 3 left over", "printed": "58 each, 3 left over", "notation": null} |
nlprog_det-setting-0064861 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 122 copies of a 32-page handout?<|eot|>
<|assistant|>
pages = 32
copies = 122
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 195.20000000000002
print(f"{cost:.2f}")
stdout: 195.20
Printing costs $195.20.<|eot... | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 122 copies of a 32-page handout?"
},
{
"role": "assistant",
"content": " pages = 32\n copies = 122\n cost_per_page = 0.05\n cost = pages * copies * cost_per_page # 195.20000000000002\n print(f... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "195.20", "printed": "195.20", "notation": null} |
nlprog_det-setting-0064862 | 3 friends split a $96 bill plus a 15% tip evenly. How much does each pay?
Here is a short program for it.
```python
bill = 96
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 36.8
print(f"{each:.2f}")
```
Running this gives: 36.80
Each person pays $36.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "36.80", "printed": "36.80", "notation": null} |
nlprog_det-setting-0064863 | A claim accrued on November 13, 2022. The limitations period is 4 years. On what date does it expire?
Here is the program.
```python
from datetime import date
accrued = date(2022, 11, 13)
years = 4
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Program output: 2026-11-13
It runs o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2026-11-13", "printed": "2026-11-13", "notation": null} |
nlprog_det-setting-0064864 | The rules require 2/3 of 33 members (round up) to be present. How many is that?
One way, in code:
```python
import math
members = 33
quorum = math.ceil(members * 2 / 3) # 22
print(quorum)
```
Run output — 22
That is 22 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0064865 | <|start|><|user|>
A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
It changed by -40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "It changed by -40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0064866 | <|start|><|user|>
Jonas buys 6 boxes of 25 toner kits each and gives away 14 toner kits. How many toner kits are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 25
given_away = 14
left = boxes * per_box - given_away
print(left)
```
# printed result: 136
That leaves 136 toner kits.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jonas buys 6 boxes of 25 toner kits each and gives away 14 toner kits. How many toner kits are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 25\ngiven_away = 14\nleft = boxes * per_box - given_away\nprint(left)\n```\n# printed result: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0064867 | 112 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
In Python:
```python
total = 112
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints 12 each, 4 left over, as expected.
12 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "12 each, 4 left over", "printed": "12 each, 4 left over", "notation": null} |
nlprog_det-setting-0064868 | Signe drove 587 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Script:
```python
miles = 587
rate = 0.58
reimbursement = miles * rate # 340.46
print(f"{reimbursement:.2f}")
```
Run result = 340.46
Signe is owed $340.46. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "340.46", "printed": "340.46", "notation": null} |
nlprog_det-setting-0064869 | <|start|><|user|>
Meals are $59 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?<|eot|>
<|assistant|>
```python
days = 5
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 855
print(total)
```
Executing it gives 855.
The allowa... | chat | [
{
"role": "user",
"content": "Meals are $59 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 5\nmeal_rate = 59\nlodging_rate = 140\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "855", "printed": "855", "notation": null} |
nlprog_det-setting-0064870 | Papers were served by mail on November 23, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
A Python solution:
```python
from datetime import date, timedelta
served = date(2024, 11, 23) # datetime.date(2024, 11, 23)
response_days = 28
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 183 | {"gold": "2024-12-24", "printed": "2024-12-24", "notation": null} |
nlprog_det-setting-0064871 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "fetch_filing", "descript... | 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\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0064872 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "define_word", "description": "Re... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star... | nlprog_det | setting | original | null | deterministic | [] | [] | 360 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0064873 | A shift runs from 11:13 AM to 2:29 PM. How long is it in minutes?
The program:
```python
start = 11 * 60 + 13
end = 14 * 60 + 29
print(end - start)
```
This prints 196, as expected.
196 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "196", "printed": "196", "notation": null} |
nlprog_det-setting-0064874 | <|start|><|user|>
What is a 25% tip on a $117.28 bill?<|eot|>
<|assistant|>
```python
bill = 117.28
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 29.32
print(f"{tip:.2f}")
```
Executing it gives 29.32, as expected.
The tip is $29.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $117.28 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 117.28\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 29.32\nprint(f\"{tip:.2f}\")\n```\nExecuting it gives 29.32, as expected.\n\nThe tip is $29.32."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "29.32", "printed": "29.32", "notation": null} |
nlprog_det-setting-0064876 | <|start|><|user|>
Sales went from 1,200 to 900. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1200
new = 900
change = (new - old) / old * 100 # -25.0
print(round(change))
```
What it prints: -25
It changed by -25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,200 to 900. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1200\nnew = 900\nchange = (new - old) / old * 100 # -25.0\nprint(round(change))\n```\nWhat it prints: -25\n\nIt changed by -25%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0064878 | <|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)
```
Executed, it shows 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```\nExecuted, it shows 36.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0064879 | What commission does Eamon make on $45,579 in sales at 10%?
The computation:
```python
sales = 45579
rate = 10 / 100 # 0.1
commission = sales * rate # 4557.900000000001
print(f"{commission:.2f}")
```
(Printed: 4557.90)
Eamon earns $4,557.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4557.90", "printed": "4557.90", "notation": null} |
nlprog_det-setting-0064880 | <|start|><|user|>
Sami lends $8,000 at 5% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 5 / 100
years = 6
interest = principal * rate * years
print(f"{interest:.2f}")
```
# result: 2400.00
It earns $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sami lends $8,000 at 5% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 5 / 100\nyears = 6\ninterest = principal * rate * years\nprint(f\"{interest:.2f}\")\n```\n# result: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0064881 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Conver... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "7800", "printed": "7800", "notation": null} |
nlprog_det-setting-0064882 | What is 35 degrees Celsius in Fahrenheit?
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
Result = 95
It equals 95 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0064883 | A customer buys 3 ink cartridges at $13 each, 4 ink cartridges at $6 each and pays with $100. How much change is due?
We write it as a program:
```python
items = [(3, 13), (4, 6)]
total = sum(q * p for q, p in items) # 63
paid = 100
change = paid - total # 37
print(change)
```
(Result: 37)
The change is $37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0064884 | At an exchange rate of 1.35 EUR per USD, how many EUR is 8,945 USD?
```python
amount = 8945
rate = 1.35
converted = amount * rate # 12075.75
print(f"{converted:.2f}")
```
Printed — 12075.75
That is 12,075.75 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "12075.75", "printed": "12075.75", "notation": null} |
nlprog_det-setting-0064885 | <|start|><|user|>
Split $1,732 between Xavier and Abel in the ratio 1 to 3. What is Xavier's share?<|eot|>
<|assistant|>
total = 1732
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 433
print(share_a)
Out — 433
Xavier gets $433.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,732 between Xavier and Abel in the ratio 1 to 3. What is Xavier's share?"
},
{
"role": "assistant",
"content": " total = 1732\n parts_a = 1\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 433\n print(share_a)\nOut — 433\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "433", "printed": "433", "notation": null} |
nlprog_det-setting-0064886 | Shipping costs $12 plus $2.50 per pound. What does a 2-pound parcel cost to ship?
A Python solution:
```python
base = 12
per_pound = 2.5
weight = 2
cost = base + per_pound * weight # 17.0
print(f"{cost:.2f}")
```
The run gives 17.00.
The charge is $17.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0064887 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Equal monthly payments repay $3,600 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 3600
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 648.0
paym... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Equal monthly payments repay $3,600 plus 6% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 3600\nannual_rate = 6 / ... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "118.00", "printed": "118.00", "notation": null} |
nlprog_det-setting-0064888 | <|start|><|system|>
You may call the tools below.
[{"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"]}}, ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"st... | nlprog_det | setting | original | null | deterministic | [] | [] | 344 | {"gold": "8.80", "printed": "8.80", "notation": null} |
nlprog_det-setting-0064890 | Copies cost $5 plus $0.10 for each page beyond 10. How much for 38 pages?
We can compute it in Python.
```python
pages = 38
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 7.800000000000001
print(f"{cost:.2f}")
```
(Printed result: 7.80)
The total is $7.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "7.80", "printed": "7.80", "notation": null} |
nlprog_det-setting-0064891 | Marek and Jae share $3,199 in the ratio 3:4. How much does Marek get?
Code:
```python
total = 3199
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1371
print(share_a)
```
# output: 1371
Marek's share is $1,371. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1371", "printed": "1371", "notation": null} |
nlprog_det-setting-0064892 | At $16.33 an hour, what does 12 hours of work pay?
Python:
```python
rate = 16.33
hours = 12
earnings = rate * hours # 195.95999999999998
print(f"{earnings:.2f}")
```
It prints 195.96.
The pay is $195.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "195.96", "printed": "195.96", "notation": null} |
nlprog_det-setting-0064893 | <|start|><|user|>
Someone born July 11, 1950 turns how old by March 14, 2023? Give the age in whole years.<|eot|>
<|assistant|>
from datetime import date
born = date(1950, 7, 11) # datetime.date(1950, 7, 11)
on = date(2023, 3, 14) # datetime.date(2023, 3, 14)
age = on.year - born.year - ((on.month, on... | chat | [
{
"role": "user",
"content": "Someone born July 11, 1950 turns how old by March 14, 2023? Give the age in whole years."
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1950, 7, 11) # datetime.date(1950, 7, 11)\n on = date(2023, 3, 14) # datetime.date(202... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0064894 | <|start|><|user|>
Split $5,584 between Arjun and Ines in the ratio 3 to 5. What is Arjun's share?<|eot|>
<|assistant|>
```python
total = 5584
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2094
print(share_a)
```
This prints: 2094
Arjun's share is $2,094.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,584 between Arjun and Ines in the ratio 3 to 5. What is Arjun's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5584\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2094\nprint(share_a)\n```\nThis prints: 2094... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2094", "printed": "2094", "notation": null} |
nlprog_det-setting-0064895 | At an exchange rate of 0.74 USD per CHF, how many USD is 8,659 CHF?
Computation in Python:
```python
amount = 8659
rate = 0.74
converted = amount * rate # 6407.66
print(f"{converted:.2f}")
```
That prints: 6407.66
It converts to 6,407.66 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "6407.66", "printed": "6407.66", "notation": null} |
nlprog_det-setting-0064896 | A garage charges $4 an hour, never more than $18 a day. How much for 2 hours?
Let the code do the arithmetic:
```python
rate = 4
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Run it and it prints: 8
Parking costs $8. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0064897 | <|start|><|user|>
A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 23-page copy cost?<|eot|>
<|assistant|>
```python
pages = 23
base = 10
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 10.75
print(f"{cost:.2f}")
```
The program prints 10.7... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 23-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 23\nbase = 10\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "10.75", "printed": "10.75", "notation": null} |
nlprog_det-setting-0064898 | A 120-day notice period begins on December 12, 2025. On what date does it end?
The computation:
```python
from datetime import date, timedelta
start = date(2025, 12, 12) # datetime.date(2025, 12, 12)
end = start + timedelta(days=120) # datetime.date(2026, 4, 11)
print(end.isoformat())
```
Output of the run — 2026-04... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2026-04-11", "printed": "2026-04-11", "notation": null} |
nlprog_det-setting-0064899 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Rent of $2,200 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
Running it prints: 2310.00
The new rent is $2,310.00.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Rent of $2,200 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 2310.0\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0064900 | Notice was given on February 16, 2023. The notice period is 90 days. When does it run out?
Computing it:
```python
from datetime import date, timedelta
start = date(2023, 2, 16) # datetime.date(2023, 2, 16)
end = start + timedelta(days=90) # datetime.date(2023, 5, 17)
print(end.isoformat())
```
(Result: 2023-05-17)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2023-05-17", "printed": "2023-05-17", "notation": null} |
nlprog_det-setting-0064901 | A library charges $0.50 per book per day late. What is the fine for 1 books that are 30 days late?
The Python version:
```python
per_day = 0.5
days_late = 30
books = 1
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
The script prints: 15.00
$15.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0064902 | <|start|><|user|>
A pack of 6 hard drives sells for $348. What does each cost?<|eot|>
<|assistant|>
total = 348
count = 6
per_item = total // count # 58
print(per_item)
Output: 58
The unit price is $58.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 6 hard drives sells for $348. What does each cost?"
},
{
"role": "assistant",
"content": " total = 348\n count = 6\n per_item = total // count # 58\n print(per_item)\nOutput: 58\n\nThe unit price is $58."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0064903 | Prorate $2,400 of monthly rent for 19 days of a 30-day month.
The prorated rent is $1,520.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1520.00", "printed": "1520.00", "notation": null} |
nlprog_det-setting-0064904 | At a 7% tax rate, what is the tax on $259.92?
Coded up:
```python
price = 259.92
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 18.1944
print(f"{tax:.2f}")
```
Printed: 18.19
The tax is $18.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "18.19", "printed": "18.19", "notation": null} |
nlprog_det-setting-0064905 | An attorney bills 10.5 hours at $350 per hour. What is the bill?
Python, step by step:
```python
hours = 10.5
rate = 350
bill = hours * rate # 3675.0
print(f"{bill:.2f}")
```
(Output: 3675.00)
That comes to $3,675.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3675.00", "printed": "3675.00", "notation": null} |
nlprog_det-setting-0064906 | <|start|><|user|>
A 90-mile drive at a steady 60 mph takes how many minutes?<|eot|>
<|assistant|>
90 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 90-mile drive at a steady 60 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "90 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0064907 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A meal costs $99.12. How much is a 25% tip?<|eot|>
<|assistant|>
bill = 99.12
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 24.78
print(f"{tip:.2f}")
Executing it gives: 24.78
The tip is $24.78.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A meal costs $99.12. How much is a 25% tip?"
},
{
"role": "assistant",
"content": " bill = 99.12\n tip_rate = 25 / 100 # 0.25\n tip = bill * tip_rate # 24.78\n print(f\"{tip:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "24.78", "printed": "24.78", "notation": null} |
nlprog_det-setting-0064908 | 100 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
In Python:
```python
total = 100
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executed, it shows 14 each, 2 left over.
14 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "14 each, 2 left over", "printed": "14 each, 2 left over", "notation": null} |
nlprog_det-setting-0064909 | <|start|><|system|>
Functions:
[{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Starting from $8,000, the team spends ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "-4011", "printed": "-4011", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.