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-0067031 | A storeroom has 1149 badges. The office uses 9 a day. How many are left after 4 days?
The computation:
```python
stock = 1149
per_day = 9
days = 4
left = stock - per_day * days # 1113
print(left)
```
What it prints: 1113
1113 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1113", "printed": "1113", "notation": null} |
nlprog_det-setting-0067032 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Convert 63.6 km to mete... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 190 | {"gold": "63600", "printed": "63600", "notation": null} |
nlprog_det-setting-0067033 | Convert 9.8 km to meters.
The computation:
```python
km = 9.8
meters = km * 1000 # 9800.0
print(round(meters))
```
Interpreter output — 9800
That is 9,800 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "9800", "printed": "9800", "notation": null} |
nlprog_det-setting-0067034 | A car travels 440 miles in 4 hours. What is its average speed in miles per hour?
The average speed is 110 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0067035 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0067036 | With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.
Let's compute it with Python.
```python
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
```
Execution prints 4.8, as expecte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0067037 | A $1,200 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
As a program:
```python
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interes... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "43.33", "printed": "43.33", "notation": null} |
nlprog_det-setting-0067038 | 1 books come back 22 days late, at $0.20 a day each. What is the fine?
Written as code:
```python
per_day = 0.2
days_late = 22
books = 1
fine = per_day * days_late * books # 4.4
print(f"{fine:.2f}")
```
Console output — 4.40
The fine is $4.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4.40", "printed": "4.40", "notation": null} |
nlprog_det-setting-0067039 | <|start|><|user|>
A car travels 459 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 459
hours = 1.5
speed = distance / hours
print(round(speed))
```
The run gives 306.
It averages 306 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 459 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 459\nhours = 1.5\nspeed = distance / hours\nprint(round(speed))\n```\nThe run gives 306.\n\nIt averages 306 miles per hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "306", "printed": "306", "notation": null} |
nlprog_det-setting-0067040 | <|start|><|system|>
You have access to these functions:
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
3 clients win $... | 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\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "22400.00", "printed": "22400.00", "notation": null} |
nlprog_det-setting-0067041 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Shipping costs $12 plus $1.20 per pound. What does a 13-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 1.2
weight = 13
cost = base + per_pound * weight # 27.6
print(f"{cost:.2f}")
```
Out — 27.60
Shipping costs $27.60.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Shipping costs $12 plus $1.20 per pound. What does a 13-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 1.2\nweight = 13\ncost = base + per_poun... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "27.60", "printed": "27.60", "notation": null} |
nlprog_det-setting-0067042 | <|start|><|user|>
How many units at $40 each (variable cost $36) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
Break-even is 2250 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $36) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "Break-even is 2250 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0067043 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Of a $10,000 budget, $800 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 800
percent = spent / budget * 100 # 8.0
print(round(percent, 1))
```
Out = 8.0
8.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Of a $10,000 budget, $800 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 800\npercent = spent / budget * 100 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0067044 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
The program prints: 7500.00
The lawyer's fee comes to $7,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 7500.0\nprint(f\"{fee:.2f}\")\n```\nThe program prints: 7500.00\n\nThe lawyer... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0067045 | What day of the week is May 23, 2003?
Programmatically:
```python
from datetime import date
hearing = date(2003, 5, 23) # datetime.date(2003, 5, 23)
print(hearing.strftime("%A"))
```
Run it and it prints: Friday
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0067046 | What is a 25% tip on a $205.95 bill?
A Python solution:
```python
bill = 205.95
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 51.4875
print(f"{tip:.2f}")
```
# out: 51.49
Leave $51.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "51.49", "printed": "51.49", "notation": null} |
nlprog_det-setting-0067047 | <|start|><|user|>
Each of Jae's bike rides burns 200 calories. How many calories over 5 bike rides?<|eot|>
<|assistant|>
That burns 1000 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Jae's bike rides burns 200 calories. How many calories over 5 bike rides?"
},
{
"role": "assistant",
"content": "That burns 1000 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0067048 | How many 1-foot square tiles cover a 11 ft by 9 ft floor (round up)?
We write it as a program:
```python
import math
length = 11
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 99
print(tiles)
```
(Execution result: 99)
99 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0067050 | A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interest) /... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0067051 | <|start|><|user|>
Sales went from 500 to 375. What is the percent change?<|eot|>
<|assistant|>
```python
old = 500
new = 375
change = (new - old) / old * 100 # -25.0
print(round(change))
```
(Output: -25)
It changed by -25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 500 to 375. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 375\nchange = (new - old) / old * 100 # -25.0\nprint(round(change))\n```\n(Output: -25)\n\nIt changed by -25%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0067052 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $7,500 over 4 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
The code... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $7,500 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 4\ni... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0067053 | <|start|><|user|>
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 22500
costs = 20000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
Executing it gives 1... | chat | [
{
"role": "user",
"content": "Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.11111... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0067056 | <|start|><|user|>
A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 2100
months = 18
total = monthly_rent * months # 37800
print(total)
```
Result — 37800
The rent over the term is $37,800.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2100\nmonths = 18\ntotal = monthly_rent * months # 37800\nprint(total)\n```\nResult — 37800\n\nThe rent over ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0067057 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A hall h... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "367", "printed": "367", "notation": null} |
nlprog_det-setting-0067058 | If a 90-minute shift begins at 8:10 AM, what time does it finish?
Python makes this quick:
```python
start = 8 * 60 + 10
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output of the run: 9:40 AM
It ends at 9:40 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "9:40 AM", "printed": "9:40 AM", "notation": null} |
nlprog_det-setting-0067059 | <|start|><|user|>
From a $5,000 retainer, 12 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 12
rate = 250
left = retainer - hours * rate # 2000
print(left)
```
(Printed: 2000)
The remaining balance is $2,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 12 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 12\nrate = 250\nleft = retainer - hours * rate # 2000\nprint(left)\n```\n(Printed: 2000)\n\nThe remaining balance... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0067060 | <|start|><|user|>
A workshop lasted 1 hours and 38 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 1
minutes = 38
total_minutes = hours * 60 + minutes # 98
print(total_minutes)
# program output: 98
That is 98 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 1 hours and 38 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 1\n minutes = 38\n total_minutes = hours * 60 + minutes # 98\n print(total_minutes)\n# program output: 98\n\nThat is 98 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0067061 | A shift runs from 9:52 AM to 11:52 AM. How long is it in minutes?
Program:
```python
start = 9 * 60 + 52 # 592
end = 11 * 60 + 52 # 712
print(end - start)
```
The code prints: 120
120 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0067062 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 325-mile trip take?<|eot|>
<|assistant|>
```python
distance = 325
speed = 50
minutes = distance / speed * 60 # 390.0
print(round(minutes))
```
Run output — 390
The trip takes 390 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 325-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 325\nspeed = 50\nminutes = distance / speed * 60 # 390.0\nprint(round(minutes))\n```\nRun output — 390\n\nThe trip takes 390 minutes."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0067063 | <|start|><|user|>
Pack A has 8 items for $12.13. Pack B has 15 items for $23.65. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 12.13 / 8 # 1.51625
pack_b = 23.65 / 15 # 1.5766666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
It prints A.
A has the lower un... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $12.13. Pack B has 15 items for $23.65. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 12.13 / 8 # 1.51625\npack_b = 23.65 / 15 # 1.5766666666666667\ncheaper = \"A\" if pack_a < pack_b else \"B... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0067064 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A hall has 19 rows of 22 seats, and 26 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 19
per_row = 22
empty = 26
seated = rows * per_row - empty # 392
print(seated)
```
This prints 392.
392 people are seated... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A hall has 19 rows of 22 seats, and 26 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 19\nper_row = 22\nempty = 26\nseated =... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "392", "printed": "392", "notation": null} |
nlprog_det-setting-0067065 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
An invoice lists 15 chairs at $8 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
The total with tax is $128.40.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "An invoice lists 15 chairs at $8 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "The total with tax is $128.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "128.40", "printed": "128.40", "notation": null} |
nlprog_det-setting-0067066 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A client paid a $5,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 13
rate = 200
left = retainer - hours * rate # 2400
print(left)
```
Printed result — 240... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 13\... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0067067 | A storeroom has 1821 staplers. The office uses 23 a day. How many are left after 11 days?
As a program:
```python
stock = 1821
per_day = 23
days = 11
left = stock - per_day * days # 1568
print(left)
```
Result — 1568
1568 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1568", "printed": "1568", "notation": null} |
nlprog_det-setting-0067068 | To read 900 pages in 18 days, how many pages per day are needed? That is 50 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0067069 | Someone works 38 hours at $20.49 per hour. What are the earnings?
We write it as a program:
```python
rate = 20.49
hours = 38
earnings = rate * hours # 778.6199999999999
print(f"{earnings:.2f}")
```
Running it prints 778.62.
That earns $778.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "778.62", "printed": "778.62", "notation": null} |
nlprog_det-setting-0067070 | <|start|><|user|>
What does $1,000 grow to in 5 years at 2% annual compounding?<|eot|>
<|assistant|>
The balance is $1,104.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 5 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "The balance is $1,104.08."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0067071 | <|start|><|user|>
A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 276
savings = monthly * 12 - yearly # 24
print(savings)
```
(Result: 24)
$24 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n(Result: 24)\n\n$24 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067072 | <|start|><|user|>
Starting with 1442 lanyards and using 14 per day, how many remain after 16 days?<|eot|>
<|assistant|>
```python
stock = 1442
per_day = 14
days = 16
left = stock - per_day * days # 1218
print(left)
```
The program prints: 1218
1218 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1442 lanyards and using 14 per day, how many remain after 16 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1442\nper_day = 14\ndays = 16\nleft = stock - per_day * days # 1218\nprint(left)\n```\nThe program prints: 1218\n\n1218 remain... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1218", "printed": "1218", "notation": null} |
nlprog_det-setting-0067073 | A hearing lasted 3 hours and 15 minutes. How many minutes is that?
Coded up:
```python
hours = 3
minutes = 15
total_minutes = hours * 60 + minutes # 195
print(total_minutes)
```
stdout = 195
The hearing lasted 195 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0067074 | $5,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Python code:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 6083.264512000001
print(f"{value:.2f}")
```
The run gives 6083.26, as expected.
It is worth $6,083.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "6083.26", "printed": "6083.26", "notation": null} |
nlprog_det-setting-0067075 | How many minutes pass from 7:48 AM to 1:54 PM on the same day?
Python, step by step:
```python
start = 7 * 60 + 48 # 468
end = 13 * 60 + 54 # 834
print(end - start)
```
The run gives 366.
366 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "366", "printed": "366", "notation": null} |
nlprog_det-setting-0067076 | From a $7,500 retainer, 9 hours at $250/hour have been drawn. What remains?
$5,250 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "5250", "printed": "5250", "notation": null} |
nlprog_det-setting-0067077 | Rent of $1,100 goes up 5%. What is the new rent?
Written as code:
```python
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
```
The code prints 1155.00.
The new rent is $1,155.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0067078 | Filing fees are $50 per document. What do 12 filings cost?
The computation:
fee = 50
filings = 12
total = fee * filings # 600
print(total)
Console output: 600
The total fee is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0067079 | <|start|><|user|>
7 boxes hold 12 notebooks each. After 2 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 12
given_away = 2
left = boxes * per_box - given_away # 82
print(left)
```
Out = 82
82 notebooks are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 12 notebooks each. After 2 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 12\ngiven_away = 2\nleft = boxes * per_box - given_away # 82\nprint(left)\n```\nOut = 82\n\n82 notebooks are left."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0067080 | <|start|><|system|>
You may call the tools below.
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "calc", "description": "Executes a Python program and returns its output.", "parameters":... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"calc\", \"description\": \"Execute... | nlprog_det | setting | original | null | deterministic | [] | [] | 338 | {"gold": "2028-08-13", "printed": "2028-08-13", "notation": null} |
nlprog_det-setting-0067081 | Oskar and Ana share $2,576 in the ratio 3:5. How much does Oskar get?
Script:
```python
total = 2576
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 966
print(share_a)
```
Running it prints: 966
Oskar gets $966. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "966", "printed": "966", "notation": null} |
nlprog_det-setting-0067082 | <|start|><|user|>
How many minutes pass from 10:34 AM to 2:53 PM on the same day?<|eot|>
<|assistant|>
259 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:34 AM to 2:53 PM on the same day?"
},
{
"role": "assistant",
"content": "259 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "259", "printed": "259", "notation": null} |
nlprog_det-setting-0067083 | Monthly rent is $900. A tenant moves in with 11 days left in a 30-day month. What is the prorated rent?
In Python:
```python
rent = 900
days_in_month = 30
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 330.0
print(f"{prorated:.2f}")
```
The interpreter prints 330.00.
The prorated rent is $330.0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0067084 | <|start|><|user|>
How long, in days, is it from June 25, 2025 until September 15, 2025?<|eot|>
<|assistant|>
There are 82 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from June 25, 2025 until September 15, 2025?"
},
{
"role": "assistant",
"content": "There are 82 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0067085 | A seminar starts at 12:30 PM and lasts 50 minutes. When does it end?
The seminar finishes at 1:20 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1:20 PM", "printed": "1:20 PM", "notation": null} |
nlprog_det-setting-0067086 | Convert 83.5 km to meters.
Coded up:
km = 83.5
meters = km * 1000 # 83500.0
print(round(meters))
Result — 83500
83,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "83500", "printed": "83500", "notation": null} |
nlprog_det-setting-0067087 | An attorney bills 12 hours at $410 per hour. What is the bill?
Script:
```python
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
```
(stdout: 4920.00)
The bill is $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0067088 | <|start|><|user|>
Someone works 16 hours at $23.36 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 23.36
hours = 16
earnings = rate * hours # 373.76
print(f"{earnings:.2f}")
```
# printed result: 373.76
That earns $373.76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 16 hours at $23.36 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 23.36\nhours = 16\nearnings = rate * hours # 373.76\nprint(f\"{earnings:.2f}\")\n```\n# printed result: 373.76\n\nThat earns $373.76."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "373.76", "printed": "373.76", "notation": null} |
nlprog_det-setting-0067089 | Hugo earns a 3% commission on $49,792 of sales. What is the commission?
Computing it:
```python
sales = 49792
rate = 3 / 100 # 0.03
commission = sales * rate # 1493.76
print(f"{commission:.2f}")
```
Run output — 1493.76
Hugo earns $1,493.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1493.76", "printed": "1493.76", "notation": null} |
nlprog_det-setting-0067090 | <|start|><|user|>
Shipping costs $12 plus $2.00 per pound. What does a 35-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.0
weight = 35
cost = base + per_pound * weight # 82.0
print(f"{cost:.2f}")
```
Run it and it prints 82.00.
The charge is $82.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $2.00 per pound. What does a 35-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.0\nweight = 35\ncost = base + per_pound * weight # 82.0\nprint(f\"{cost:.2f}\")\n```\nRun it and it prints ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "82.00", "printed": "82.00", "notation": null} |
nlprog_det-setting-0067091 | What average speed covers 228 miles in 0.5 hours?
Python:
```python
distance = 228
hours = 0.5
speed = distance / hours # 456.0
print(round(speed))
```
Execution prints: 456
The average speed is 456 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "456", "printed": "456", "notation": null} |
nlprog_det-setting-0067092 | 5 boxes hold 6 flash drives each. After 3 are handed out, how many are left?
In code:
```python
boxes = 5
per_box = 6
given_away = 3
left = boxes * per_box - given_away # 27
print(left)
```
The script prints 27, as expected.
27 flash drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0067093 | How many whole days and leftover hours are in 308 hours?
Python, step by step:
```python
hours = 308
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution prints 12 days and 20 hours.
That is 12 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12 days and 20 hours", "printed": "12 days and 20 hours", "notation": null} |
nlprog_det-setting-0067094 | What is the total rent on a 6-month lease at $1,200 a month?
```python
monthly_rent = 1200
months = 6
total = monthly_rent * months # 7200
print(total)
```
# result: 7200
In total, $7,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0067095 | <|start|><|user|>
If a 105-minute seminar begins at 4:40 PM, what time does it finish?<|eot|>
<|assistant|>
start = 16 * 60 + 40
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The printout reads: 6:25 PM
It ends at 6:25 PM.<|e... | chat | [
{
"role": "user",
"content": "If a 105-minute seminar begins at 4:40 PM, what time does it finish?"
},
{
"role": "assistant",
"content": " start = 16 * 60 + 40\n end = start + 105\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else '... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6:25 PM", "printed": "6:25 PM", "notation": null} |
nlprog_det-setting-0067096 | Prorate $900 of monthly rent for 20 days of a 31-day month.
rent = 900
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
It prints 580.65.
The prorated rent is $580.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0067097 | <|start|><|user|>
Counting the first and last day, how many days are there from February 8, 2019 through February 14, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 2, 8) # datetime.date(2019, 2, 8)
last = date(2019, 2, 14) # datetime.date(2019, 2, 14)
days = (last - first).days + 1... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from February 8, 2019 through February 14, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 2, 8) # datetime.date(2019, 2, 8)\nlast = date(2019, 2, 14) # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0067098 | <|start|><|system|>
Tools (call with JSON):
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "interpreter", "description": "Runs a short Python snippet and returns wh... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"interpreter\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 324 | {"gold": "116.90", "printed": "116.90", "notation": null} |
nlprog_det-setting-0067099 | How much sales tax is charged on a $420.70 purchase at 6%?
In Python:
```python
price = 420.7
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 25.241999999999997
print(f"{tax:.2f}")
```
(Printed result: 25.24)
The tax is $25.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "25.24", "printed": "25.24", "notation": null} |
nlprog_det-setting-0067100 | Convert 4 h 9 min (the length of a training session) to minutes.
Computation in Python:
hours = 4
minutes = 9
total_minutes = hours * 60 + minutes # 249
print(total_minutes)
The script prints: 249
The training session lasted 249 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "249", "printed": "249", "notation": null} |
nlprog_det-setting-0067101 | <|start|><|user|>
A 323-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 323
days = 19
per_day = pages // days
print(per_day)
```
On running, it outputs: 17
That is 17 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 323-page report must be reviewed in 19 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 323\ndays = 19\nper_day = pages // days\nprint(per_day)\n```\nOn running, it outputs: 17\n\nThat is 17 pages per day."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0067102 | Each storage box holds 25 files. How many boxes are needed for 295 files?
Written as code:
```python
import math
files = 295
per_box = 25
boxes = math.ceil(files / per_box) # 12
print(boxes)
```
# printed result: 12
It takes 12 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067103 | An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?
One way, in code:
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 450.0
print(f"{interest:.2f}")
```
(Result: 450.00)
The interest is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0067104 | A car travels 226 miles in 2 hours. What is its average speed in miles per hour?
Python:
```python
distance = 226
hours = 2
speed = distance / hours # 113.0
print(round(speed))
```
Executed, it shows: 113
It averages 113 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0067105 | Convert 5,075 EUR to USD at 1 EUR = 1.12 USD.
Python:
amount = 5075
rate = 1.12
converted = amount * rate # 5684.000000000001
print(f"{converted:.2f}")
When run, it prints: 5684.00
That is 5,684.00 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "5684.00", "printed": "5684.00", "notation": null} |
nlprog_det-setting-0067106 | <|start|><|system|>
You may call the tools below.
{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A customer buys 5 clipbo... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 265 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0067107 | Attendance was 19 out of 20. Express it as a percent.
Coded up:
present = 19
total = 20
percent = present / total * 100 # 95.0
print(round(percent, 1))
(Execution result: 95.0)
95.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0067108 | A client paid a $7,500 retainer. The firm has billed 4 hours at $200 per hour. How much of the retainer is left?
Let the code do the arithmetic:
```python
retainer = 7500
hours = 4
rate = 200
left = retainer - hours * rate # 6700
print(left)
```
(Result: 6700)
The remaining balance is $6,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6700", "printed": "6700", "notation": null} |
nlprog_det-setting-0067109 | An attorney bills 8 hours at $225 per hour. What is the bill?
Written as code:
```python
hours = 8
rate = 225
bill = hours * rate # 1800
print(f"{bill:.2f}")
```
stdout — 1800.00
That comes to $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0067110 | <|start|><|user|>
At a 9% tax rate, what is the tax on $286.28?<|eot|>
<|assistant|>
```python
price = 286.28
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 25.765199999999997
print(f"{tax:.2f}")
```
# printed result: 25.77
The tax is $25.77.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $286.28?"
},
{
"role": "assistant",
"content": "```python\nprice = 286.28\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 25.765199999999997\nprint(f\"{tax:.2f}\")\n```\n# printed result: 25.77\n\nThe tax is $25.77."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "25.77", "printed": "25.77", "notation": null} |
nlprog_det-setting-0067111 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $3,000, 4 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 5250.0
print(f"{per_year:.2f}")
```
Output of the run: 5250.00
Depreciation is $5,250.00 per year.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $3,000, 4 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years # 5250.0\nprint(f\"{per_year:.2f}\")\n```\nOutput of... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0067112 | <|start|><|user|>
With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 17500
costs = 12500
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 28.57142857142857
print(round(margin, 1))
```
When run, it prints: 28.... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 17500\ncosts = 12500\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 28.571428571... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0067113 | A storeroom has 1042 staplers. The office uses 15 a day. How many are left after 6 days?
Program:
```python
stock = 1042
per_day = 15
days = 6
left = stock - per_day * days # 952
print(left)
```
The code prints 952.
952 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "952", "printed": "952", "notation": null} |
nlprog_det-setting-0067114 | The bridge was finished in 2005. How many years had passed by 2026?
Computation in Python:
```python
start_year = 2005
end_year = 2026
print(end_year - start_year)
```
Out: 21
That is 21 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0067115 | From a $5,000 retainer, 7 hours at $200/hour have been drawn. What remains?
Programmatically:
```python
retainer = 5000
hours = 7
rate = 200
left = retainer - hours * rate # 3600
print(left)
```
Run result = 3600
The remaining balance is $3,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3600", "printed": "3600", "notation": null} |
nlprog_det-setting-0067116 | <|start|><|system|>
Tools you may use:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A 7-day ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 247 | {"gold": "1178", "printed": "1178", "notation": null} |
nlprog_det-setting-0067117 | Signe has 11 documents to file, and each filing costs $75. How much are the filing fees in total?
$825 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "825", "printed": "825", "notation": null} |
nlprog_det-setting-0067118 | <|start|><|user|>
On which weekday does May 15, 2007 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2007, 5, 15) # datetime.date(2007, 5, 15)
print(hearing.strftime("%A"))
```
When run, it prints Tuesday.
May 15, 2007 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does May 15, 2007 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2007, 5, 15) # datetime.date(2007, 5, 15)\nprint(hearing.strftime(\"%A\"))\n```\nWhen run, it prints Tuesday.\n\nMay 15, 2007 is a T... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0067119 | How many days are there from May 3, 2018 to January 5, 2019?
There are 247 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "247", "printed": "247", "notation": null} |
nlprog_det-setting-0067120 | Starting with 548 flash drives and using 7 per day, how many remain after 3 days?
527 flash drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "527", "printed": "527", "notation": null} |
nlprog_det-setting-0067121 | A 12 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
144 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0067123 | Printing costs 5 cents a page. What does it cost to print 185 copies of a 56-page handout?
In Python:
```python
pages = 56
copies = 185
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 518.0
print(f"{cost:.2f}")
```
It outputs: 518.00
The job costs $518.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "518.00", "printed": "518.00", "notation": null} |
nlprog_det-setting-0067124 | <|start|><|user|>
Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 5.1
used = 10
free = 3
bill = base + rate * max(0, used - free) # 50.699999999999996
print(f"{bill:.2f}")
```
Console output: 50.70
$50.70 is owed.<|... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 5.1\nused = 10\nfree = 3\nbill = base + rate * max(0, used - free) # 50.699999999999996\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "50.70", "printed": "50.70", "notation": null} |
nlprog_det-setting-0067125 | A service costs $9 a month or $60 a year. How much does the yearly plan save over 12 monthly payments?
```python
monthly = 9
yearly = 60
savings = monthly * 12 - yearly # 48
print(savings)
```
Run it and it prints: 48
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0067126 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 19 days?
The Python version:
```python
per_day = 25
days = 19
cap = 2500
fine = min(per_day * days, cap) # 475
print(fine)
```
Run result = 475
The fine is $475. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "475", "printed": "475", "notation": null} |
nlprog_det-setting-0067127 | Attendance was 75 out of 100. Express it as a percent.
Python makes this quick:
```python
present = 75
total = 100
percent = present / total * 100 # 75.0
print(round(percent, 1))
```
Executing it gives: 75.0
75.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0067128 | <|start|><|user|>
Split $6,888 between Ivan and Ulla in the ratio 3 to 5. What is Ivan's share?<|eot|>
<|assistant|>
```python
total = 6888
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2583
print(share_a)
```
The script prints 2583.
Ivan gets $2,583.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $6,888 between Ivan and Ulla in the ratio 3 to 5. What is Ivan's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 6888\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2583\nprint(share_a)\n```\nThe script prints 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2583", "printed": "2583", "notation": null} |
nlprog_det-setting-0067129 | How many units at $15 each (variable cost $10) cover $6,000 of fixed costs?
As a program:
```python
import math
fixed = 6000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 1200
print(units)
```
stdout — 1200
1200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0067130 | Count the days between April 18, 2018 and August 22, 2018.
A few lines of Python do it:
```python
from datetime import date
first = date(2018, 4, 18) # datetime.date(2018, 4, 18)
second = date(2018, 8, 22) # datetime.date(2018, 8, 22)
print((second - first).days)
```
The program outputs 126.
There are 126 days betw... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0067131 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather"... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "84.0", "printed": "84.0", "notation": null} |
nlprog_det-setting-0067132 | Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year?
```python
cost = 12000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 1200.0
print(f"{per_year:.2f}")
```
The run gives: 1200.00
Depreciation is $1,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0067133 | <|start|><|user|>
If a 25-minute shift begins at 1:00 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 13 * 60 + 0
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The script prints 1:25 PM.
The shift finishes at 1:25 PM.... | chat | [
{
"role": "user",
"content": "If a 25-minute shift begins at 1:00 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 13 * 60 + 0\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1:25 PM", "printed": "1:25 PM", "notation": null} |
nlprog_det-setting-0067134 | What day of the week is December 27, 2018?
Python code:
```python
from datetime import date
hearing = date(2018, 12, 27) # datetime.date(2018, 12, 27)
print(hearing.strftime("%A"))
```
# console output: Thursday
It is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.