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-0074205 | A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?
The Python version:
```python
recovery = 12000
rate = 30 / 100 # 0.3
fee = recovery * rate # 3600.0
print(f"{fee:.2f}")
```
The program prints 3600.00, as expected.
The lawyer's fee comes to $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0074206 | <|start|><|system|>
Tool definitions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"typ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python\", \"description\": \"Executes a Py... | nlprog_det | setting | original | null | deterministic | [] | [] | 267 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0074207 | What commission does Reza make on $36,024 in sales at 8%?
Written as code:
```python
sales = 36024
rate = 8 / 100 # 0.08
commission = sales * rate # 2881.92
print(f"{commission:.2f}")
```
# console output: 2881.92
The commission is $2,881.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2881.92", "printed": "2881.92", "notation": null} |
nlprog_det-setting-0074208 | <|start|><|system|>
Functions:
{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
With $12,500 in costs and $17,... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snip... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0074209 | At 1.5% a month (simple), what interest builds on $7,500 over 3 months?
The program:
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print(f"{interest:.2f}")
Run output — 337.50
$337.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0074211 | At $18.67 an hour, what does 30 hours of work pay?
That earns $560.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "560.10", "printed": "560.10", "notation": null} |
nlprog_det-setting-0074212 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
167 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 167
per_box = 40
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
Running it prints 5.
5 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "167 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 167\nper_box = 40\nboxes = math.ceil(files / per_box) # 5\nprint(boxes)\... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0074213 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
$320.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "$320.00 accrues."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0074214 | What commission does Marek make on $83,734 in sales at 2%?
Python:
```python
sales = 83734
rate = 2 / 100 # 0.02
commission = sales * rate # 1674.68
print(f"{commission:.2f}")
```
Result: 1674.68
The commission is $1,674.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1674.68", "printed": "1674.68", "notation": null} |
nlprog_det-setting-0074215 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + interest) / months # 55... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 5% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "55.00", "printed": "55.00", "notation": null} |
nlprog_det-setting-0074216 | A training session lasted 4 hours and 24 minutes. How many minutes is that?
```python
hours = 4
minutes = 24
total_minutes = hours * 60 + minutes # 264
print(total_minutes)
```
Running it prints 264, as expected.
That is 264 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0074217 | The rules require 2/3 of 20 members (round up) to be present. How many is that?
Here's the code.
```python
import math
members = 20
quorum = math.ceil(members * 2 / 3) # 14
print(quorum)
```
# execution result: 14
14 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0074218 | A count moves from 2,500 to 2,375. By what percent did it change (use a minus sign for a drop)?
A Python solution:
```python
old = 2500
new = 2375
change = (new - old) / old * 100 # -5.0
print(round(change))
```
The script prints -5.
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0074219 | <|start|><|user|>
How many of 89 votes make 60% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 89
needed = math.ceil(voters * 60 / 100) # 54
print(needed)
```
Python prints 54, as expected.
54 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 89 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 89\nneeded = math.ceil(voters * 60 / 100) # 54\nprint(needed)\n```\nPython prints 54, as expected.\n\n54 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0074220 | 448 files go into boxes of 40. How many boxes does that take?
We write it as a program:
```python
import math
files = 448
per_box = 40
boxes = math.ceil(files / per_box) # 12
print(boxes)
```
The script prints: 12
12 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074221 | A 125-page report must be reviewed in 5 days. How many pages a day is that, evenly?
Let's compute it with Python.
```python
pages = 125
days = 5
per_day = pages // days # 25
print(per_day)
```
Executing it gives 25.
25 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0074222 | <|start|><|user|>
766 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 766
per_box = 40
boxes = math.ceil(files / per_box) # 20
print(boxes)
```
The code prints: 20
20 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "766 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 766\nper_box = 40\nboxes = math.ceil(files / per_box) # 20\nprint(boxes)\n```\nThe code prints: 20\n\n20 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0074223 | <|start|><|user|>
What simple interest does $5,000 earn at 6% a year over 4 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 6 / 100 # 0.06
years = 4
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
```
Out — 1200.00
It earns $1,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $5,000 earn at 6% a year over 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 6 / 100 # 0.06\nyears = 4\ninterest = principal * rate * years # 1200.0\nprint(f\"{interest:.2f}\")\n```\nOut — 1200.00\n\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0074224 | <|start|><|user|>
What is a 15% tip on a $145.52 bill?<|eot|>
<|assistant|>
Leave $21.83.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $145.52 bill?"
},
{
"role": "assistant",
"content": "Leave $21.83."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "21.83", "printed": "21.83", "notation": null} |
nlprog_det-setting-0074225 | <|start|><|user|>
A meeting lasted 5 hours and 18 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 18
total_minutes = hours * 60 + minutes # 318
print(total_minutes)
```
It outputs 318.
The meeting lasted 318 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting lasted 5 hours and 18 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 18\ntotal_minutes = hours * 60 + minutes # 318\nprint(total_minutes)\n```\nIt outputs 318.\n\nThe meeting lasted 318 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "318", "printed": "318", "notation": null} |
nlprog_det-setting-0074226 | <|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": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Sami buys ... | 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\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0074227 | Printing costs 12 cents a page. What does it cost to print 139 copies of a 47-page handout?
Code:
```python
pages = 47
copies = 139
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 783.9599999999999
print(f"{cost:.2f}")
```
Out:
783.96
Printing costs $783.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "783.96", "printed": "783.96", "notation": null} |
nlprog_det-setting-0074228 | An invoice lists 20 lanyards at $8 each, plus 6% sales tax. What is the invoice total?
Computing it:
```python
quantity = 20
unit_price = 8
subtotal = quantity * unit_price # 160
total = subtotal * (1 + 6 / 100) # 169.60000000000002
print(f"{total:.2f}")
```
The program prints 169.60.
The total with tax is $169.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "169.60", "printed": "169.60", "notation": null} |
nlprog_det-setting-0074231 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 24
total = monthly_rent * months # 20400
print(total)
```
What it prints: 20400
The rent over the term i... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 24\ntotal = monthly_... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0074232 | With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.
We write it as a program:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Executing it gives: 38.5
The margin is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0074233 | A 522-page report must be reviewed in 9 days. How many pages a day is that, evenly?
pages = 522
days = 9
per_day = pages // days # 58
print(per_day)
This prints 58, as expected.
58 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0074234 | A 6-month warranty starts on December 2, 2019. On what date does it end?
A few lines of Python do it:
```python
from datetime import date
start = date(2019, 12, 2)
months = 6
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 | [] | [] | 148 | {"gold": "2020-06-02", "printed": "2020-06-02", "notation": null} |
nlprog_det-setting-0074235 | At 40 miles per hour, how many minutes does a 120-mile trip take?
Code:
```python
distance = 120
speed = 40
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
(Out: 180)
180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0074236 | Convert 40 °C to Fahrenheit.
Here is the program.
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
It prints: 104
That is 104 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0074237 | Someone works 24 hours at $19.78 per hour. What are the earnings?
```python
rate = 19.78
hours = 24
earnings = rate * hours # 474.72
print(f"{earnings:.2f}")
```
The run gives: 474.72
That earns $474.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "474.72", "printed": "474.72", "notation": null} |
nlprog_det-setting-0074238 | <|start|><|user|>
A trial runs from December 5, 2028 to December 11, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 12, 5)
last = date(2028, 12, 11)
days = (last - first).days + 1
print(days)
```
The run gives: 7
That is 7 days.<|eo... | chat | [
{
"role": "user",
"content": "A trial runs from December 5, 2028 to December 11, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 12, 5)\nlast = date(2028, 12, 11)\ndays = (last - first).days... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0074240 | Of a $2,000 budget, $100 has been spent. What percent is that?
Computation in Python:
```python
budget = 2000
spent = 100
percent = spent / budget * 100 # 5.0
print(round(percent, 1))
```
# stdout: 5.0
That is 5.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0074241 | How many weekdays (Monday to Friday) fall after January 8, 2018 up to and including February 9, 2018?
Computation in Python:
```python
from datetime import date, timedelta
start = date(2018, 1, 8)
end = date(2018, 2, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() <... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0074242 | <|start|><|user|>
Starting from $25,000, the team spends $2,379, $1,026, $2,865, $3,964. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [2379, 1026, 2865, 3964]
left = budget - sum(expenses) # 14766
print(left)
```
Executed, it shows: 14766
The remaining budget is $14,766.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $2,379, $1,026, $2,865, $3,964. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [2379, 1026, 2865, 3964]\nleft = budget - sum(expenses) # 14766\nprint(left)\n```\nExecuted, it shows: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "14766", "printed": "14766", "notation": null} |
nlprog_det-setting-0074243 | Sami and Rafael share $2,115 in the ratio 1:2. How much does Sami get? Sami gets $705. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "705", "printed": "705", "notation": null} |
nlprog_det-setting-0074245 | <|start|><|user|>
A car gets 25 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 300-mile trip?<|eot|>
<|assistant|>
Fuel costs $49.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car gets 25 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 300-mile trip?"
},
{
"role": "assistant",
"content": "Fuel costs $49.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "49.44", "printed": "49.44", "notation": null} |
nlprog_det-setting-0074246 | Copies cost $10 plus $0.25 for each page beyond 20. How much for 56 pages?
We can compute it in Python.
```python
pages = 56
base = 10
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
Interpreter output: 19.00
The total is $19.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "19.00", "printed": "19.00", "notation": null} |
nlprog_det-setting-0074247 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?
Programmatically:
```python
rate = 18.5
hours = 41
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 27.75
pay = regular + overtime # 767.75
print(f"{pay:.2f}")
```
(Result: 767.75)
The weekly pay is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "767.75", "printed": "767.75", "notation": null} |
nlprog_det-setting-0074248 | A $2,000 security deposit has deductions of $120 and $120. How much is refunded?
$1,760 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1760", "printed": "1760", "notation": null} |
nlprog_det-setting-0074249 | Convert 35 °C to Fahrenheit.
As Python:
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
Output: 95
It equals 95 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0074250 | Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
A short script:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
stdout — 50.0
The margin is 50.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0074251 | Starting from $5,000, the team spends $2,133, $1,967. What remains?
Computing it:
```python
budget = 5000
expenses = [2133, 1967]
left = budget - sum(expenses) # 900
print(left)
```
Output = 900
$900 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0074253 | <|start|><|user|>
How many meters are in 1.7 kilometers?<|eot|>
<|assistant|>
That is 1,700 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 1.7 kilometers?"
},
{
"role": "assistant",
"content": "That is 1,700 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0074254 | Each storage box holds 20 files. How many boxes are needed for 827 files?
As a program:
```python
import math
files = 827
per_box = 20
boxes = math.ceil(files / per_box) # 42
print(boxes)
```
The run gives 42, as expected.
42 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0074255 | <|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": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the c... | 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\"]}}\n{\"name\": \"sandbox_python\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 362 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0074256 | Under a 40% contingency agreement, what fee is owed on a $60,000 award?
Computation in Python:
```python
recovery = 60000
rate = 40 / 100 # 0.4
fee = recovery * rate # 24000.0
print(f"{fee:.2f}")
```
On running, it outputs 24000.00.
The lawyer's fee comes to $24,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0074257 | <|start|><|user|>
279 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 279
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executed, it shows 39 each, 6 left over.
39 each... | chat | [
{
"role": "user",
"content": "279 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 279\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "39 each, 6 left over", "printed": "39 each, 6 left over", "notation": null} |
nlprog_det-setting-0074258 | Attendance was 17 out of 20. Express it as a percent.
Python does the arithmetic:
```python
present = 17
total = 20
percent = present / total * 100 # 85.0
print(round(percent, 1))
```
Run output: 85.0
Attendance was 85.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0074260 | Hana has 6 documents to file, and each filing costs $125. How much are the filing fees in total?
Set it up in Python:
fee = 125
filings = 6
total = fee * filings # 750
print(total)
The script prints 750.
The filings cost $750 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0074262 | <|start|><|user|>
Of a $5,000 budget, $2,900 has been spent. What percent is that?<|eot|>
<|assistant|>
budget = 5000
spent = 2900
percent = spent / budget * 100
print(round(percent, 1))
Python prints 58.0.
That is 58.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $2,900 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": " budget = 5000\n spent = 2900\n percent = spent / budget * 100\n print(round(percent, 1))\nPython prints 58.0.\n\nThat is 58.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0074263 | Starting with 803 staplers and using 19 per day, how many remain after 4 days?
As a program:
```python
stock = 803
per_day = 19
days = 4
left = stock - per_day * days # 727
print(left)
```
Printed — 727
727 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "727", "printed": "727", "notation": null} |
nlprog_det-setting-0074265 | <|start|><|system|>
Tools you may use:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"math_engine\", \"description\": \"Evaluate... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "64 each, 3 left over", "printed": "64 each, 3 left over", "notation": null} |
nlprog_det-setting-0074266 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
How many minutes pass from 8:06 AM to 12:02 PM on the same day?<|eot|>
<|assistant|>
236 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "How many minutes pass from 8:06 AM to 12:02 PM on the same day?"
},
{
"role": "assistant",
"content": "236 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "236", "printed": "236", "notation": null} |
nlprog_det-setting-0074267 | Zoe was born on September 21, 1996. How old is Zoe on July 15, 2020? The age is 23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0074268 | <|start|><|user|>
How many meters are in 12.7 kilometers?<|eot|>
<|assistant|>
```python
km = 12.7
meters = km * 1000 # 12700.0
print(round(meters))
```
Execution prints 12700.
That is 12,700 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 12.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 12.7\nmeters = km * 1000 # 12700.0\nprint(round(meters))\n```\nExecution prints 12700.\n\nThat is 12,700 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "12700", "printed": "12700", "notation": null} |
nlprog_det-setting-0074269 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $5,000. How much after 51 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 51
cap = 5000
fine = min(per_day * days, cap) # 2550
print(fine)
```
When run, it prints: 2550
$2,550 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $5,000. How much after 51 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 51\ncap = 5000\nfine = min(per_day * days, cap) # 2550\nprint(fine)\n```\nWhen run, it prints: 2550\n\n$2,550 is owed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2550", "printed": "2550", "notation": null} |
nlprog_det-setting-0074270 | <|start|><|user|>
How many meters are in 37.6 kilometers?<|eot|>
<|assistant|>
```python
km = 37.6
meters = km * 1000 # 37600.0
print(round(meters))
```
The code prints 37600.
37,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 37.6 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 37.6\nmeters = km * 1000 # 37600.0\nprint(round(meters))\n```\nThe code prints 37600.\n\n37,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "37600", "printed": "37600", "notation": null} |
nlprog_det-setting-0074271 | <|start|><|user|>
Which is cheaper per unit: 6 for $4.54 (A) or 18 for $23.73 (B)?<|eot|>
<|assistant|>
A has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $4.54 (A) or 18 for $23.73 (B)?"
},
{
"role": "assistant",
"content": "A has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0074272 | <|start|><|user|>
Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 313
print(units)
```
Run it and it prints 313.
Break-even... | chat | [
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 40\nvariable = 32\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0074273 | A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?
Program:
```python
monthly_rent = 3250
months = 36
total = monthly_rent * months # 117000
print(total)
```
The script prints 117000.
In total, $117,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0074274 | After an initial $6,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?
We can compute it in Python.
```python
grant = 24000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 1500.0
print(f"{each:.2f}")
```
It prints 1500.00.
Each installment is $1,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0074275 | $5,000 is invested at 3% compounded yearly. What is it worth after 3 years?
Python code:
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 5463.635
print(f"{value:.2f}")
```
Output: 5463.64
The balance is $5,463.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "5463.64", "printed": "5463.64", "notation": null} |
nlprog_det-setting-0074276 | A meal costs $39.10. How much is a 15% tip?
We write it as a program:
```python
bill = 39.1
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 5.865
print(f"{tip:.2f}")
```
The program prints: 5.87
Leave $5.87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5.87", "printed": "5.87", "notation": null} |
nlprog_det-setting-0074277 | <|start|><|system|>
Functions:
[{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description": "Look up... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0074278 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Executing it gives: 1000
1000 units... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 40\nvariable = 34\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0074279 | A party has 21 days to respond to a motion served on February 13, 2026, with 3 days added because service was by mail. When is the response due?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
served = date(2026, 2, 13) # datetime.date(2026, 2, 13)
response_days = 21
mail_days = 3
due =... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2026-03-09", "printed": "2026-03-09", "notation": null} |
nlprog_det-setting-0074280 | <|start|><|user|>
A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
The program prints: 10000.00
The lawyer's fee comes to $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nThe program prints: 10000.00\n\nThe lawyer's ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0074281 | A 9-day trip pays $64 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?
That comes to $1,456. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1456", "printed": "1456", "notation": null} |
nlprog_det-setting-0074282 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 46 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 46
cap = 2500
fine = min(per_day * days, cap) # 1150
print(fine)
```
Interpreter output — 1150
$1,150 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 46 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 46\ncap = 2500\nfine = min(per_day * days, cap) # 1150\nprint(fine)\n```\nInterpreter output — 1150\n\n$1,150 is owe... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1150", "printed": "1150", "notation": null} |
nlprog_det-setting-0074283 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "python_exec", "description": "Run Python code in... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"nam... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0074284 | <|start|><|user|>
Buying 5 envelopes at $21 each, 5 headsets at $21 each, 1 batteries at $30 each, 5 mugs at $29 each, someone hands over $400. What change comes back?<|eot|>
<|assistant|>
```python
items = [(5, 21), (5, 21), (1, 30), (5, 29)]
total = sum(q * p for q, p in items) # 385
paid = 400
change = paid - total... | chat | [
{
"role": "user",
"content": "Buying 5 envelopes at $21 each, 5 headsets at $21 each, 1 batteries at $30 each, 5 mugs at $29 each, someone hands over $400. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 21), (5, 21), (1, 30), (5, 29)]\ntotal = sum(q * p fo... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0074286 | <|start|><|user|>
A 11 lb package ships at $12 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.0
weight = 11
cost = base + per_pound * weight # 34.0
print(f"{cost:.2f}")
```
The script prints: 34.00
The charge is $34.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 11 lb package ships at $12 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.0\nweight = 11\ncost = base + per_pound * weight # 34.0\nprint(f\"{cost:.2f}\")\n```\nThe script prints: 34.00\n\nThe cha... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "34.00", "printed": "34.00", "notation": null} |
nlprog_det-setting-0074287 | Convert 5 h 27 min (the length of a training session) to minutes.
We write it as a program:
```python
hours = 5
minutes = 27
total_minutes = hours * 60 + minutes # 327
print(total_minutes)
```
Run it and it prints 327.
That is 327 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "327", "printed": "327", "notation": null} |
nlprog_det-setting-0074288 | Prorate $1,500 of monthly rent for 13 days of a 31-day month.
Python does the arithmetic:
```python
rent = 1500
days_in_month = 31
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 629.0322580645161
print(f"{prorated:.2f}")
```
# execution result: 629.03
The tenant owes $629.03. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "629.03", "printed": "629.03", "notation": null} |
nlprog_det-setting-0074289 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $12,000 over 5 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 600.0
print(f"{interest:.2f}")
```
stdout: 600.00
$600.... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $12,000 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = bal... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0074290 | <|start|><|user|>
Priya and Rosa share $464 in the ratio 1:3. How much does Priya get?<|eot|>
<|assistant|>
```python
total = 464
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 116
print(share_a)
```
The program prints 116, as expected.
Priya's share is $116.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Priya and Rosa share $464 in the ratio 1:3. How much does Priya get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 464\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 116\nprint(share_a)\n```\nThe program prints 116, as exp... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0074291 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $1,000. What is owed after 8 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 8
cap = 1000
fine = min(per_day * days, cap) # 200
print(fine)
```
# output: 200
The fine is $200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 8 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 8\ncap = 1000\nfine = min(per_day * days, cap) # 200\nprint(fine)\n```\n# output: 200\n\nThe fine is $200."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0074292 | <|start|><|user|>
An office budget of $8,000 has expenses of $3,669, $1,822, $2,359. How much of the budget is left?<|eot|>
<|assistant|>
budget = 8000
expenses = [3669, 1822, 2359]
left = budget - sum(expenses) # 150
print(left)
This prints 150, as expected.
$150 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $3,669, $1,822, $2,359. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [3669, 1822, 2359]\n left = budget - sum(expenses) # 150\n print(left)\nThis prints 150... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0074293 | At 1.5% a month (simple), what interest builds on $7,500 over 4 months?
Written as code:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 450.0
print(f"{interest:.2f}")
```
Run result = 450.00
$450.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0074294 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
How many units at $30 each (variable cost $20) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
Result — 250
Break-even is 250 un... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "How many units at $30 each (variable cost $20) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 20\nunits = math.ce... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0074295 | A 240-mile drive at a steady 40 mph takes how many minutes?
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0074296 | <|start|><|user|>
A 6% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1590.0
print(f"{new_rent:.2f}")
```
Run output — 1590.00
The new rent is $1,590.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1590.0\nprint(f\"{new_rent:.2f}\")\n```\nRun output — 1590.00\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1590.00", "printed": "1590.00", "notation": null} |
nlprog_det-setting-0074297 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Walls total 1351 sq ft and each can co... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0074298 | Prorate $900 of monthly rent for 6 days of a 30-day month.
Here's the code.
```python
rent = 900
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 180.0
print(f"{prorated:.2f}")
```
This prints: 180.00
The prorated rent is $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0074299 | <|start|><|user|>
At a 8% tax rate, what is the tax on $160.35?<|eot|>
<|assistant|>
```python
price = 160.35
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 12.828
print(f"{tax:.2f}")
```
Output of the run — 12.83
The tax is $12.83.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 8% tax rate, what is the tax on $160.35?"
},
{
"role": "assistant",
"content": "```python\nprice = 160.35\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 12.828\nprint(f\"{tax:.2f}\")\n```\nOutput of the run — 12.83\n\nThe tax is $12.83."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "12.83", "printed": "12.83", "notation": null} |
nlprog_det-setting-0074300 | <|start|><|user|>
Femi and Diego share $5,384 in the ratio 3:5. How much does Femi get?<|eot|>
<|assistant|>
```python
total = 5384
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2019
print(share_a)
```
Run result — 2019
Femi gets $2,019.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Femi and Diego share $5,384 in the ratio 3:5. How much does Femi get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5384\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2019\nprint(share_a)\n```\nRun result — 2019\n\nFemi g... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2019", "printed": "2019", "notation": null} |
nlprog_det-setting-0074301 | Monthly: $19. Annual: $216. What is saved per year by paying annually?
The program:
```python
monthly = 19
yearly = 216
savings = monthly * 12 - yearly # 12
print(savings)
```
stdout:
12
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074302 | How many meters are in 27.9 kilometers?
Let's compute it with Python.
```python
km = 27.9
meters = km * 1000 # 27900.0
print(round(meters))
```
(Output: 27900)
27,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "27900", "printed": "27900", "notation": null} |
nlprog_det-setting-0074303 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Counting the first and last day, how many days are there from January 21, 2027 through February 6, 2027?<|eot|>
<|assistant|>
17 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from January 21, 2027 through February 6, 2027?"
},
{
"role": "assistant",
"content": "17 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0074304 | Convert 2 h 48 min (the length of a workshop) to minutes.
Translated to Python:
```python
hours = 2
minutes = 48
total_minutes = hours * 60 + minutes # 168
print(total_minutes)
```
The script prints 168.
That is 168 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "168", "printed": "168", "notation": null} |
nlprog_det-setting-0074305 | Under a 30% contingency agreement, what fee is owed on a $60,000 award?
Translated to Python:
```python
recovery = 60000
rate = 30 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
This prints 18000.00, as expected.
The lawyer's fee comes to $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0074306 | A water bill is $18 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 19 thousand gallons?
The program:
```python
base = 18
rate = 4.2
used = 19
free = 3
bill = base + rate * max(0, used - free) # 85.2
print(f"{bill:.2f}")
```
Out = 85.20
The bill is $85.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "85.20", "printed": "85.20", "notation": null} |
nlprog_det-setting-0074307 | What simple interest does $12,000 earn at 6% a year over 5 years?
One way, in code:
principal = 12000
rate = 6 / 100 # 0.06
years = 5
interest = principal * rate * years # 3600.0
print(f"{interest:.2f}")
Printed result — 3600.00
It earns $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0074308 | A 3% increase is applied to $2,200 monthly rent. What is the new amount?
Here is a short program for it.
```python
rent = 2200
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 2266.0
print(f"{new_rent:.2f}")
```
Running it prints: 2266.00
It rises to $2,266.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0074309 | <|start|><|user|>
The paralegal logged 8 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
That comes to $2,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 8 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "That comes to $2,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0074310 | What does $2,000 grow to in 5 years at 2% annual compounding?
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 2208.1616064
print(f"{value:.2f}")
```
(Result: 2208.16)
It is worth $2,208.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2208.16", "printed": "2208.16", "notation": null} |
nlprog_det-setting-0074311 | A 212-page report must be reviewed in 4 days. How many pages a day is that, evenly?
Coded up:
```python
pages = 212
days = 4
per_day = pages // days # 53
print(per_day)
```
It outputs: 53
53 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0074312 | <|start|><|user|>
How many whole days and leftover hours are in 326 hours?<|eot|>
<|assistant|>
326 hours is 13 days and 14 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 326 hours?"
},
{
"role": "assistant",
"content": "326 hours is 13 days and 14 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "13 days and 14 hours", "printed": "13 days and 14 hours", "notation": null} |
nlprog_det-setting-0074313 | <|start|><|user|>
A lawyer's fee is 33% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 33 / 100 # 0.33
fee = recovery * rate # 8250.0
print(f"{fee:.2f}")
```
It outputs 8250.00.
The lawyer's fee comes to $8,250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 33% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 8250.0\nprint(f\"{fee:.2f}\")\n```\nIt outputs 8250.00.\n\nThe lawyer's fee comes... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "8250.00", "printed": "8250.00", "notation": null} |
nlprog_det-setting-0074314 | To read 360 pages in 9 days, how many pages per day are needed?
```python
pages = 360
days = 9
per_day = pages // days # 40
print(per_day)
```
(Printed result: 40)
That is 40 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "40", "printed": "40", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.