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-0052159 | A recipe for 6 people uses 150 grams of oats. How many grams are needed for 10 people?
Python code:
```python
grams = 150
serves = 6
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
Running this gives: 250
250 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0052160 | Arjun's scores were 86, 55 and 60. What is the average score?
The mean is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0052161 | A water bill is $20 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 24 thousand gallons?
Set it up in Python:
```python
base = 20
rate = 3.5
used = 24
free = 3
bill = base + rate * max(0, used - free) # 93.5
print(f"{bill:.2f}")
```
The run gives 93.50.
$93.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "93.50", "printed": "93.50", "notation": null} |
nlprog_det-setting-0052162 | After a 40% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
A few lines of Python do it:
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 2 # 28800.0
print(f"{per_client:.2f}")
```
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
nlprog_det-setting-0052163 | <|start|><|user|>
A water bill is $15 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 17 thousand gallons?<|eot|>
<|assistant|>
The bill is $86.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 17 thousand gallons?"
},
{
"role": "assistant",
"content": "The bill is $86.25."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "86.25", "printed": "86.25", "notation": null} |
nlprog_det-setting-0052164 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
What average speed covers 486 miles in 1.5 hours?<|eot|>
<|assistant|>
distance = 486
hours = 1.5
speed = distance / hours # 324.0
print(round(speed))
Shell output — 324
It averages 324 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "What average speed covers 486 miles in 1.5 hours?"
},
{
"role": "assistant",
"content": " distance = 486\n hours = 1.5\n speed = distance / hours # 324.0\n print(round(speed))\nShell... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "324", "printed": "324", "notation": null} |
nlprog_det-setting-0052165 | Papers were served by mail on September 7, 2025. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Program:
```python
from datetime import date, timedelta
served = date(2025, 9, 7) # datetime.date(2025, 9, 7)
response_days = 21
mail_days = 3
due = served + timedelta(days=re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2025-10-01", "printed": "2025-10-01", "notation": null} |
nlprog_det-setting-0052166 | <|start|><|system|>
Tool definitions:
{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "convert_units", "description": ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 312 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0052167 | <|start|><|system|>
You have access to these functions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "python_exec", "description": "Use f... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0052168 | Scale 100 g of lentils from 2 servings to 12 servings.
Written as code:
```python
grams = 100
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
```
The script prints 600, as expected.
Use 600 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0052169 | A 26 lb package ships at $12 base plus $1.20/lb. What is the charge?
Here's the code.
```python
base = 12
per_pound = 1.2
weight = 26
cost = base + per_pound * weight # 43.2
print(f"{cost:.2f}")
```
# result: 43.20
The charge is $43.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "43.20", "printed": "43.20", "notation": null} |
nlprog_det-setting-0052170 | A party has 28 days to respond to a motion served on September 19, 2027, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2027, 9, 19) # datetime.date(2027, 9, 19)
response_days = 28
mail_days = 3
due = served + timedelta(days=respon... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2027-10-20", "printed": "2027-10-20", "notation": null} |
nlprog_det-setting-0052171 | Someone works 32 hours at $23.14 per hour. What are the earnings?
In Python:
```python
rate = 23.14
hours = 32
earnings = rate * hours # 740.48
print(f"{earnings:.2f}")
```
It prints 740.48, as expected.
The pay is $740.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "740.48", "printed": "740.48", "notation": null} |
nlprog_det-setting-0052173 | <|start|><|user|>
Yoko's scores were 96, 61, 73 and 86. What is the average score?<|eot|>
<|assistant|>
```python
scores = [96, 61, 73, 86]
average = sum(scores) // len(scores) # 79
print(average)
```
Out: 79
The average score is 79.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yoko's scores were 96, 61, 73 and 86. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [96, 61, 73, 86]\naverage = sum(scores) // len(scores) # 79\nprint(average)\n```\nOut: 79\n\nThe average score is 79."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0052174 | <|start|><|user|>
642 files go into boxes of 24. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 642
per_box = 24
boxes = math.ceil(files / per_box) # 27
print(boxes)
```
Out = 27
It takes 27 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "642 files go into boxes of 24. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 642\nper_box = 24\nboxes = math.ceil(files / per_box) # 27\nprint(boxes)\n```\nOut = 27\n\nIt takes 27 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0052175 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A 7 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 7
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 25
print(tiles)
```
(Program output: 25)
25 tiles ar... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A 7 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 7\nwidth = 14\ntile = 2\ntiles = math.ceil... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0052176 | Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year?
Python code:
```python
cost = 18000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
```
Printed result — 2000.00
$2,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0052177 | A 160-mile drive at a steady 30 mph takes how many minutes?
The program:
distance = 160
speed = 30
minutes = distance / speed * 60 # 320.0
print(round(minutes))
# console output: 320
320 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0052178 | Count 45 days forward from February 27, 2020. What date is that?
The computation:
```python
from datetime import date, timedelta
start = date(2020, 2, 27) # datetime.date(2020, 2, 27)
end = start + timedelta(days=45) # datetime.date(2020, 4, 12)
print(end.isoformat())
```
Execution result: 2020-04-12
It ends on Apr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2020-04-12", "printed": "2020-04-12", "notation": null} |
nlprog_det-setting-0052179 | <|start|><|user|>
Under a 33% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
Output of the run: 19800.00
The lawyer's fee comes to $19,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 19800.0\nprint(f\"{fee:.2f}\")\n```\nOutput of the run: 19800.00\n\nThe lawy... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0052181 | Of a $8,000 budget, $4,600 has been spent. What percent is that?
The computation:
```python
budget = 8000
spent = 4600
percent = spent / budget * 100 # 57.49999999999999
print(round(percent, 1))
```
The program outputs: 57.5
That is 57.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "57.5", "printed": "57.5", "notation": null} |
nlprog_det-setting-0052182 | A party has 14 days to respond to a motion served on December 3, 2023, with 3 days added because service was by mail. When is the response due?
Translated to Python:
from datetime import date, timedelta
served = date(2023, 12, 3) # datetime.date(2023, 12, 3)
response_days = 14
mail_days = 3
due = ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "2023-12-20", "printed": "2023-12-20", "notation": null} |
nlprog_det-setting-0052183 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A storeroom has 562 calendars. The office uses 9 a day. How many are left after 12 days?<|eot|>
<|assistant|>
454 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A storeroom has 562 calendars. The office uses 9 a day. How many are left after 12 days?"
},
{
"role": "assistant",
"content": "454 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "454", "printed": "454", "notation": null} |
nlprog_det-setting-0052184 | A client paid a $5,000 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left?
Programmatically:
retainer = 5000
hours = 2
rate = 275
left = retainer - hours * rate # 4450
print(left)
stdout: 4450
The remaining balance is $4,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "4450", "printed": "4450", "notation": null} |
nlprog_det-setting-0052186 | What is the total rent on a 12-month lease at $975 a month?
In total, $11,700 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0052187 | At a 6% tax rate, what is the tax on $694.05?
Computation in Python:
```python
price = 694.05
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 41.642999999999994
print(f"{tax:.2f}")
```
This prints 41.64, as expected.
$41.64 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "41.64", "printed": "41.64", "notation": null} |
nlprog_det-setting-0052188 | <|start|><|user|>
Monthly: $12. Annual: $114. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
```
This prints: 30
The annual plan saves $30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $12. Annual: $114. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 114\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nThis prints: 30\n\nThe annual plan saves $30."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0052189 | Fines run at $25 per day up to a maximum of $5,000. How much after 11 days?
We write it as a program:
```python
per_day = 25
days = 11
cap = 5000
fine = min(per_day * days, cap) # 275
print(fine)
```
# printed: 275
$275 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "275", "printed": "275", "notation": null} |
nlprog_det-setting-0052190 | 96 of 100 members attended. What percent attended?
In code:
```python
present = 96
total = 100
percent = present / total * 100 # 96.0
print(round(percent, 1))
```
(Printed result: 96.0)
96.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "96.0", "printed": "96.0", "notation": null} |
nlprog_det-setting-0052191 | <|start|><|user|>
A settlement of $84,000 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
Python prints 10500.
Each party receives $10,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $84,000 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 8\nshare = settlement // parties # 10500\nprint(share)\n```\nPython prints 10500.\n\nEach par... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0052192 | A measure needs at least 60% of 63 votes. How many votes is that, rounded up?
Python, step by step:
```python
import math
voters = 63
needed = math.ceil(voters * 60 / 100)
print(needed)
```
Output of the run — 38
38 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0052193 | <|start|><|user|>
How many units at $40 each (variable cost $36) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 40
variable = 36
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
stdout:
1000
Break-even is 1000 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $36) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 40\nvariable = 36\nunits = math.ceil(fixed / (price - variable)) # 1000\nprint(units)\n```\nstdout:\n100... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0052194 | <|start|><|user|>
What does $2,000 grow to in 3 years at 2% annual compounding?<|eot|>
<|assistant|>
principal = 2000
rate = 2 / 100
years = 3
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
# execution result: 2122.42
The balance is $2,122.42.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $2,000 grow to in 3 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": " principal = 2000\n rate = 2 / 100\n years = 3\n value = principal * (1 + rate) ** years\n print(f\"{value:.2f}\")\n# execution result: 2122.42\n\nThe... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2122.42", "printed": "2122.42", "notation": null} |
nlprog_det-setting-0052195 | How many days are there from July 18, 2020 to December 1, 2020?
As Python:
```python
from datetime import date
first = date(2020, 7, 18) # datetime.date(2020, 7, 18)
second = date(2020, 12, 1) # datetime.date(2020, 12, 1)
print((second - first).days)
```
Run result: 136
It is 136 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0052197 | <|start|><|user|>
How much sales tax is charged on a $505.59 purchase at 9%?<|eot|>
<|assistant|>
```python
price = 505.59
tax_rate = 9 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
Run result = 45.50
The tax is $45.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $505.59 purchase at 9%?"
},
{
"role": "assistant",
"content": "```python\nprice = 505.59\ntax_rate = 9 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nRun result = 45.50\n\nThe tax is $45.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "45.50", "printed": "45.50", "notation": null} |
nlprog_det-setting-0052198 | Walls total 235 sq ft and each can covers 400 sq ft. How many cans should be bought?
We write it as a program:
```python
import math
area = 235
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
# output: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0052199 | How many of 93 votes make 60% (round up)?
Script:
```python
import math
voters = 93
needed = math.ceil(voters * 60 / 100) # 56
print(needed)
```
That prints 56.
56 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0052200 | Which is cheaper per unit: 10 for $11.46 (A) or 30 for $27.29 (B)?
Let's compute it with Python.
```python
pack_a = 11.46 / 10 # 1.1460000000000001
pack_b = 27.29 / 30 # 0.9096666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Out — B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052201 | <|start|><|user|>
Starting with 1289 clipboards and using 39 per day, how many remain after 16 days?<|eot|>
<|assistant|>
stock = 1289
per_day = 39
days = 16
left = stock - per_day * days # 665
print(left)
Running this gives 665.
665 clipboards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1289 clipboards and using 39 per day, how many remain after 16 days?"
},
{
"role": "assistant",
"content": " stock = 1289\n per_day = 39\n days = 16\n left = stock - per_day * days # 665\n print(left)\nRunning this gives 665.\n\n665 cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "665", "printed": "665", "notation": null} |
nlprog_det-setting-0052202 | A chair costs $180. It is 40% off. What is the sale price?
A short script:
```python
price = 180
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 108.0
print(f"{sale_price:.2f}")
```
Python prints 108.00.
It costs $108.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0052203 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "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"]}}]<|eot|>
<|user|>
A water bill is $12 pl... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0052204 | <|start|><|user|>
Express 124 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 124
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives 5 days and 4 hours.
That is 5 days and 4 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 124 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 124\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe run gives 5 days and 4 hours.\n\nThat is 5 days and 4 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "5 days and 4 hours", "printed": "5 days and 4 hours", "notation": null} |
nlprog_det-setting-0052205 | A count moves from 500 to 625. By what percent did it change (use a minus sign for a drop)?
```python
old = 500
new = 625
change = (new - old) / old * 100 # 25.0
print(round(change))
```
Run result = 25
It changed by 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0052206 | Fines run at $100 per day up to a maximum of $5,000. How much after 8 days?
As a program:
per_day = 100
days = 8
cap = 5000
fine = min(per_day * days, cap) # 800
print(fine)
Program output: 800
The fine is $800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0052207 | Goods bought on December 28, 2026 carry a 18-month warranty. When does it expire?
Translated to Python:
```python
from datetime import date
start = date(2026, 12, 28)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2028-06-28", "printed": "2028-06-28", "notation": null} |
nlprog_det-setting-0052208 | <|start|><|user|>
Fuel for 300 miles at 24 mpg, with gas at $4.59/gallon: what is the cost?<|eot|>
<|assistant|>
Fuel costs $57.38.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fuel for 300 miles at 24 mpg, with gas at $4.59/gallon: what is the cost?"
},
{
"role": "assistant",
"content": "Fuel costs $57.38."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "57.38", "printed": "57.38", "notation": null} |
nlprog_det-setting-0052209 | <|start|><|system|>
You have access to these functions:
{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
3 clients ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0052210 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Omar has 14 documents to file, and each filing costs $45. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 45
filings = 14
total = fee * filings # 630
print(total)
```
Result:
630
The filings cost $630 in all.<|e... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Omar has 14 documents to file, and each filing costs $45. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 14\ntota... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "630", "printed": "630", "notation": null} |
nlprog_det-setting-0052212 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Divide 246 items among 4... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "61 each, 2 left over", "printed": "61 each, 2 left over", "notation": null} |
nlprog_det-setting-0052213 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Walls total 1083 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1083
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
(Output: 4)
Buy 4 cans.<|eot|... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Walls total 1083 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1083\ncoverage = 30... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0052215 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A car travels 310 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 310
hours = 2
speed = distance / hours # 155.0
print(round(speed))
```
This prints 155, as expected.
It averages 155 miles pe... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A car travels 310 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 310\nhours = 2\nspeed = distance / hours ... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "155", "printed": "155", "notation": null} |
nlprog_det-setting-0052216 | <|start|><|system|>
Functions:
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Someone works 20 hours at $15.78 ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "315.60", "printed": "315.60", "notation": null} |
nlprog_det-setting-0052217 | An attorney bills 6.5 hours at $225 per hour. What is the bill?
Here is a short program for it.
```python
hours = 6.5
rate = 225
bill = hours * rate # 1462.5
print(f"{bill:.2f}")
```
Running it prints: 1462.50
That comes to $1,462.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1462.50", "printed": "1462.50", "notation": null} |
nlprog_det-setting-0052218 | Shipping costs $12 plus $1.20 per pound. What does a 12-pound parcel cost to ship?
Translated to Python:
base = 12
per_pound = 1.2
weight = 12
cost = base + per_pound * weight # 26.4
print(f"{cost:.2f}")
# result: 26.40
Shipping costs $26.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "26.40", "printed": "26.40", "notation": null} |
nlprog_det-setting-0052219 | Prorate $1,200 of monthly rent for 9 days of a 31-day month.
Python makes this quick:
```python
rent = 1200
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 348.38709677419354
print(f"{prorated:.2f}")
```
Out = 348.39
The prorated rent is $348.39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "348.39", "printed": "348.39", "notation": null} |
nlprog_det-setting-0052220 | <|start|><|user|>
A meal costs $138.50. How much is a 10% tip?<|eot|>
<|assistant|>
bill = 138.5
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 13.850000000000001
print(f"{tip:.2f}")
The run gives 13.85, as expected.
The tip is $13.85.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $138.50. How much is a 10% tip?"
},
{
"role": "assistant",
"content": " bill = 138.5\n tip_rate = 10 / 100 # 0.1\n tip = bill * tip_rate # 13.850000000000001\n print(f\"{tip:.2f}\")\nThe run gives 13.85, as expected.\n\nThe tip is $13.85."... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "13.85", "printed": "13.85", "notation": null} |
nlprog_det-setting-0052221 | Someone born June 8, 1988 turns how old by October 12, 2020? Give the age in whole years.
Code:
from datetime import date
born = date(1988, 6, 8)
on = date(2020, 10, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
Output of the run: 32
The age is 32 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0052222 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 1007 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1007
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run output — 3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1007 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1007\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRun output — 3\n\nBu... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0052223 | On which weekday does April 10, 2027 fall?
Here is the program.
```python
from datetime import date
hearing = date(2027, 4, 10) # datetime.date(2027, 4, 10)
print(hearing.strftime("%A"))
```
Execution prints Saturday, as expected.
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0052224 | How many minutes pass from 7:58 AM to 8:42 AM on the same day?
Here is the program.
```python
start = 7 * 60 + 58 # 478
end = 8 * 60 + 42 # 522
print(end - start)
```
It prints: 44
It is 44 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0052225 | What does $2,000 grow to in 3 years at 2% annual compounding?
Computing it:
principal = 2000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 2122.416
print(f"{value:.2f}")
Executed, it shows 2122.42.
It is worth $2,122.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2122.42", "printed": "2122.42", "notation": null} |
nlprog_det-setting-0052226 | Sales went from 1,200 to 1,500. What is the percent change?
Written as code:
old = 1200
new = 1500
change = (new - old) / old * 100
print(round(change))
Out: 25
It changed by 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0052227 | 2 friends split a $240 bill plus a 20% tip evenly. How much does each pay?
```python
bill = 240
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 144.0
print(f"{each:.2f}")
```
Printed result: 144.00
Each person pays $144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0052228 | A penalty of $250 a day accrues, capped at $1,000. What is owed after 22 days?
Programmatically:
```python
per_day = 250
days = 22
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Output = 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0052229 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years?
In code:
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
Output of the run: 1276.28
It is worth $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0052230 | At a 7% tax rate, what is the tax on $882.76?
The program:
price = 882.76
tax_rate = 7 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
The run gives 61.79, as expected.
The tax is $61.79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "61.79", "printed": "61.79", "notation": null} |
nlprog_det-setting-0052231 | What is a 22% tip on a $114.72 bill?
As a program:
```python
bill = 114.72
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 25.2384
print(f"{tip:.2f}")
```
Execution result — 25.24
The tip is $25.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "25.24", "printed": "25.24", "notation": null} |
nlprog_det-setting-0052232 | Buying 2 desk lamps at $25 each, 5 paper reams at $8 each, someone hands over $100. What change comes back?
Program:
```python
items = [(2, 25), (5, 8)]
total = sum(q * p for q, p in items) # 90
paid = 100
change = paid - total # 10
print(change)
```
The program prints 10, as expected.
$10 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0052233 | The rules require 1/3 of 7 members (round up) to be present. How many is that?
The program:
```python
import math
members = 7
quorum = math.ceil(members * 1 / 3) # 3
print(quorum)
```
Printed: 3
That is 3 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0052235 | At $0.67 per mile, what is the reimbursement for 341 miles? The reimbursement is $228.47. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "228.47", "printed": "228.47", "notation": null} |
nlprog_det-setting-0052236 | <|start|><|user|>
What commission does Jae make on $83,038 in sales at 6%?<|eot|>
<|assistant|>
```python
sales = 83038
rate = 6 / 100 # 0.06
commission = sales * rate # 4982.28
print(f"{commission:.2f}")
```
Python prints 4982.28, as expected.
The commission is $4,982.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Jae make on $83,038 in sales at 6%?"
},
{
"role": "assistant",
"content": "```python\nsales = 83038\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 4982.28\nprint(f\"{commission:.2f}\")\n```\nPython prints 4982.28, as expected.\n\nThe comm... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4982.28", "printed": "4982.28", "notation": null} |
nlprog_det-setting-0052237 | From 1994 to 2012, how many years is that?
Program:
```python
start_year = 1994
end_year = 2012
print(end_year - start_year)
```
# stdout: 18
18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0052238 | <|start|><|user|>
On which weekday does March 17, 2027 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2027, 3, 17) # datetime.date(2027, 3, 17)
print(hearing.strftime("%A"))
```
The program prints Wednesday.
It is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does March 17, 2027 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2027, 3, 17) # datetime.date(2027, 3, 17)\nprint(hearing.strftime(\"%A\"))\n```\nThe program prints Wednesday.\n\nIt is a Wednesda... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0052240 | <|start|><|user|>
Beatriz lends $20,000 at 8% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 20000
rate = 8 / 100 # 0.08
years = 6
interest = principal * rate * years # 9600.0
print(f"{interest:.2f}")
```
Out:
9600.00
The interest is $9,600.00.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Beatriz lends $20,000 at 8% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 20000\nrate = 8 / 100 # 0.08\nyears = 6\ninterest = principal * rate * years # 9600.0\nprint(f\"{interest:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0052241 | <|start|><|user|>
A trial runs from May 7, 2018 to May 21, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 5, 7) # datetime.date(2018, 5, 7)
last = date(2018, 5, 21) # datetime.date(2018, 5, 21)
days = (last - first).days + 1 # 15
... | chat | [
{
"role": "user",
"content": "A trial runs from May 7, 2018 to May 21, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 5, 7) # datetime.date(2018, 5, 7)\nlast = date(2018, 5, 21) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0052242 | <|start|><|user|>
With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
(Output: 16.7)
Profit ... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 15000\ncosts = 12500\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 16.666666666... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0052244 | At $22.01 an hour, what does 12 hours of work pay?
As Python:
```python
rate = 22.01
hours = 12
earnings = rate * hours # 264.12
print(f"{earnings:.2f}")
```
Out:
264.12
That earns $264.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "264.12", "printed": "264.12", "notation": null} |
nlprog_det-setting-0052245 | Fixed costs are $9,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?
In Python:
```python
import math
fixed = 9000
price = 25
variable = 15
units = math.ceil(fixed / (price - variable))
print(units)
```
Executing it gives 900, as expected.
900 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0052246 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Pack A has 12 items for $8.84. Pack B has 18 items for $9.29. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 8.84 / 12
pack_b = 9.29 / 18
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
The run gives: B
Pack... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Pack A has 12 items for $8.84. Pack B has 18 items for $9.29. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.84 / 12\npack_b = 9.29 / ... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052247 | What simple interest does $12,000 earn at 4% a year over 6 years?
Python does the arithmetic:
```python
principal = 12000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
Execution result — 2880.00
The interest is $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0052248 | 51 of 100 members attended. What percent attended?
Set it up in Python:
```python
present = 51
total = 100
percent = present / total * 100 # 51.0
print(round(percent, 1))
```
(Out: 51.0)
Attendance was 51.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "51.0", "printed": "51.0", "notation": null} |
nlprog_det-setting-0052250 | <|start|><|user|>
A pack of 24 rulers sells for $456. What does each cost?<|eot|>
<|assistant|>
```python
total = 456
count = 24
per_item = total // count # 19
print(per_item)
```
# printed result: 19
Each one costs $19.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 rulers sells for $456. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 456\ncount = 24\nper_item = total // count # 19\nprint(per_item)\n```\n# printed result: 19\n\nEach one costs $19."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0052251 | Starting from $8,000, the team spends $3,105, $1,162. What remains?
One way, in code:
```python
budget = 8000
expenses = [3105, 1162]
left = budget - sum(expenses) # 3733
print(left)
```
Printed:
3733
$3,733 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3733", "printed": "3733", "notation": null} |
nlprog_det-setting-0052252 | An invoice lists 20 rulers at $5 each, plus 7% sales tax. What is the invoice total?
Computation in Python:
```python
quantity = 20
unit_price = 5
subtotal = quantity * unit_price # 100
total = subtotal * (1 + 7 / 100) # 107.0
print(f"{total:.2f}")
```
Execution prints 107.00, as expected.
The total with tax is $10... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "107.00", "printed": "107.00", "notation": null} |
nlprog_det-setting-0052253 | Zoe and Beatriz share $1,099 in the ratio 2:5. How much does Zoe get?
A Python solution:
```python
total = 1099
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 314
print(share_a)
```
Console:
314
Zoe gets $314. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "314", "printed": "314", "notation": null} |
nlprog_det-setting-0052254 | Counting only Monday through Friday, how many business days are there after August 22, 2026 through September 26, 2026?
As a program:
```python
from datetime import date, timedelta
start = date(2026, 8, 22)
end = date(2026, 9, 26)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0052255 | <|start|><|user|>
A storeroom has 566 envelopes. The office uses 33 a day. How many are left after 17 days?<|eot|>
<|assistant|>
```python
stock = 566
per_day = 33
days = 17
left = stock - per_day * days # 5
print(left)
```
On running, it outputs 5.
5 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 566 envelopes. The office uses 33 a day. How many are left after 17 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 566\nper_day = 33\ndays = 17\nleft = stock - per_day * days # 5\nprint(left)\n```\nOn running, it outputs 5.\n\n5 rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0052256 | Convert 2 h 14 min (the length of a deposition) to minutes.
Here is the program.
```python
hours = 2
minutes = 14
total_minutes = hours * 60 + minutes # 134
print(total_minutes)
```
Result = 134
That is 134 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0052257 | <|start|><|system|>
Tools (call with JSON):
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description": "S... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0052258 | A hall has 7 rows of 19 seats, and 2 seats are empty. How many people are seated?
Computing it:
rows = 7
per_row = 19
empty = 2
seated = rows * per_row - empty # 131
print(seated)
When run, it prints 131.
131 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0052259 | Pilar earns a 2% commission on $21,424 of sales. What is the commission?
Pilar earns $428.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "428.48", "printed": "428.48", "notation": null} |
nlprog_det-setting-0052261 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A storeroom has 1521 paper reams. The office uses 14 a day. How many are left after 10 days?<|eot|>
<|assistant|>
```python
stock = 1521
per_day = 14
days = 10
left = stock - per_day * days # 1381
print(left)
```
Result — 1381
1381 paper reams... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A storeroom has 1521 paper reams. The office uses 14 a day. How many are left after 10 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1521\nper_day = 14\ndays = 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1381", "printed": "1381", "notation": null} |
nlprog_det-setting-0052262 | <|start|><|user|>
Count 45 days forward from May 21, 2027. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 5, 21) # datetime.date(2027, 5, 21)
end = start + timedelta(days=45) # datetime.date(2027, 7, 5)
print(end.isoformat())
```
On running, it outputs: 2027-... | chat | [
{
"role": "user",
"content": "Count 45 days forward from May 21, 2027. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 5, 21) # datetime.date(2027, 5, 21)\nend = start + timedelta(days=45) # datetime.date(2027, 7, 5)... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2027-07-05", "printed": "2027-07-05", "notation": null} |
nlprog_det-setting-0052263 | What is a 22% tip on a $218.83 bill?
Python does the arithmetic:
```python
bill = 218.83
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 48.1426
print(f"{tip:.2f}")
```
(stdout: 48.14)
Leave $48.14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "48.14", "printed": "48.14", "notation": null} |
nlprog_det-setting-0052264 | The rules require 2/3 of 16 members (round up) to be present. How many is that? 11 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0052265 | At a 4% tax rate, what is the tax on $199.31?
Python makes this quick:
```python
price = 199.31
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 7.9724
print(f"{tax:.2f}")
```
The script prints 7.97.
The tax is $7.97. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "7.97", "printed": "7.97", "notation": null} |
nlprog_det-setting-0052266 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What is a 22% tip on a $188.92 bill?<|eot|>
<|assistant|>
```python
bill = 188.92
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 41.5624
print(f"{tip:.2f}")
```
stdout:
41.56
Leave $41.56.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What is a 22% tip on a $188.92 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 188.92\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 41.5624\nprint(f\"{tip:... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "41.56", "printed": "41.56", "notation": null} |
nlprog_det-setting-0052267 | How many meters are in 3.4 kilometers?
Programmatically:
```python
km = 3.4
meters = km * 1000 # 3400.0
print(round(meters))
```
Python prints: 3400
That is 3,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "3400", "printed": "3400", "notation": null} |
nlprog_det-setting-0052268 | <|start|><|system|>
You have access to these functions:
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
An unpaid balan... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0052269 | Starting with 1523 chairs and using 19 per day, how many remain after 15 days?
Let the code do the arithmetic:
```python
stock = 1523
per_day = 19
days = 15
left = stock - per_day * days # 1238
print(left)
```
Output of the run — 1238
1238 chairs are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1238", "printed": "1238", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.