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-0051082 | From 1994 to 2012, how many years is that?
Let the code do the arithmetic:
```python
start_year = 1994
end_year = 2012
print(end_year - start_year)
```
It outputs 18.
That is 18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051083 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name":... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0051085 | <|start|><|user|>
A 120-day notice period begins on January 7, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 1, 7) # datetime.date(2019, 1, 7)
end = start + timedelta(days=120) # datetime.date(2019, 5, 7)
print(end.isoformat())
```
Interpreter o... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on January 7, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 1, 7) # datetime.date(2019, 1, 7)\nend = start + timedelta(days=120) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2019-05-07", "printed": "2019-05-07", "notation": null} |
nlprog_det-setting-0051086 | <|start|><|user|>
What commission does Malik make on $16,401 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 16401
rate = 5 / 100 # 0.05
commission = sales * rate # 820.0500000000001
print(f"{commission:.2f}")
```
Run it and it prints 820.05.
Malik earns $820.05.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Malik make on $16,401 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 16401\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 820.0500000000001\nprint(f\"{commission:.2f}\")\n```\nRun it and it prints 820.05.\n\nMal... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "820.05", "printed": "820.05", "notation": null} |
nlprog_det-setting-0051087 | Fines run at $250 per day up to a maximum of $5,000. How much after 44 days?
Python:
```python
per_day = 250
days = 44
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
Printed = 5000
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0051088 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|>
<|assistant|>
```python
rate = 4
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 4
print(cost)
```
The program outputs: 4
Parking costs $4.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $15. What do 1 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 4\nprint(cost)\n```\nThe program outputs: 4\n\nParking costs $4."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0051089 | With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.
The program:
```python
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.493506493506493
print(round(margin, 1))
```
The script prints: 6.5
The margin is 6.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0051090 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "descrip... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "256", "printed": "256", "notation": null} |
nlprog_det-setting-0051091 | Parking is $3 per hour with a daily maximum of $15. What do 3 hours cost?
We write it as a program:
```python
rate = 3
hours = 3
daily_max = 15
cost = min(rate * hours, daily_max) # 9
print(cost)
```
When run, it prints 9.
The charge is $9. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0051092 | With $36,000 in costs and $40,000 in revenue, what percent of revenue is profit? Round to one decimal.
Let's compute it with Python.
```python
revenue = 40000
costs = 36000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 10.0
print(round(margin, 1))
```
Run output — 10.0
The margin is 10.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0051093 | <|start|><|user|>
A 6 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 6
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 15
print(tiles)
```
The script prints 15, as expected.
It takes 15 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 6\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 15\nprint(tiles)\n```\nThe script p... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0051094 | A storeroom has 240 mugs. The office uses 8 a day. How many are left after 18 days?
96 mugs are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "96", "printed": "96", "notation": null} |
nlprog_det-setting-0051095 | What percentage of $2,000 is $1,400?
Let the code do the arithmetic:
```python
budget = 2000
spent = 1400
percent = spent / budget * 100 # 70.0
print(round(percent, 1))
```
Running it prints 70.0, as expected.
That is 70.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0051097 | <|start|><|user|>
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 48-page copy cost?<|eot|>
<|assistant|>
The total is $24.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 48-page copy cost?"
},
{
"role": "assistant",
"content": "The total is $24.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0051098 | Scale 100 g of lentils from 2 servings to 12 servings.
The program:
```python
grams = 100
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
```
(Program output: 600)
Use 600 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0051099 | From a $7,500 retainer, 9 hours at $275/hour have been drawn. What remains? $5,025 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "5025", "printed": "5025", "notation": null} |
nlprog_det-setting-0051100 | <|start|><|user|>
A 4% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 1800
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
stdout: 1872.00
The new rent is $1,872.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $1,800 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 1800\n increase = 4 / 100\n new_rent = rent * (1 + increase)\n print(f\"{new_rent:.2f}\")\nstdout: 1872.00\n\nThe new rent is $1,872.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0051101 | <|start|><|user|>
What is -15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
The run gives 5.
That is 5 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nThe run gives 5.\n\nThat is 5 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0051102 | A customer buys 3 rulers at $29 each, 1 headsets at $29 each, 2 ink cartridges at $28 each, 5 pens at $4 each and pays with $200. How much change is due?
As Python:
```python
items = [(3, 29), (1, 29), (2, 28), (5, 4)]
total = sum(q * p for q, p in items)
paid = 200
change = paid - total
print(change)
```
# output: 8
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0051103 | <|start|><|user|>
Tomas and Mateo share $4,774 in the ratio 3:4. How much does Tomas get?<|eot|>
<|assistant|>
```python
total = 4774
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2046
print(share_a)
```
This prints: 2046
Tomas gets $2,046.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Tomas and Mateo share $4,774 in the ratio 3:4. How much does Tomas get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4774\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 2046\nprint(share_a)\n```\nThis prints: 2046\n\nToma... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2046", "printed": "2046", "notation": null} |
nlprog_det-setting-0051104 | A meal costs $111.26. How much is a 20% tip? Leave $22.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "22.25", "printed": "22.25", "notation": null} |
nlprog_det-setting-0051105 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Meals are $79 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 79
lodging_rate = 110
nights = days - 1
total = days * meal_rate + nights * lodging_rate... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Meals are $79 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 79... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1591", "printed": "1591", "notation": null} |
nlprog_det-setting-0051106 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
A... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 257 | {"gold": "1463", "printed": "1463", "notation": null} |
nlprog_det-setting-0051107 | <|start|><|user|>
A claim accrued on February 17, 2015. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
It runs out on February 17, 2020.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A claim accrued on February 17, 2015. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "It runs out on February 17, 2020."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "2020-02-17", "printed": "2020-02-17", "notation": null} |
nlprog_det-setting-0051108 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
4 boxes hol... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0051109 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 46
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 144.0
pay = regular + overt... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 46\nregular =... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0051110 | Count 90 days forward from April 23, 2027. What date is that?
In code:
from datetime import date, timedelta
start = date(2027, 4, 23) # datetime.date(2027, 4, 23)
end = start + timedelta(days=90) # datetime.date(2027, 7, 22)
print(end.isoformat())
Executed, it shows: 2027-07-22
It ends on July 22, 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2027-07-22", "printed": "2027-07-22", "notation": null} |
nlprog_det-setting-0051111 | Convert 10 °C to Fahrenheit.
Here's the code.
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
Printed result — 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0051112 | How many weekdays (Monday to Friday) fall after November 1, 2023 up to and including November 24, 2023?
```python
from datetime import date, timedelta
start = date(2023, 11, 1)
end = date(2023, 11, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0051113 | A customer buys 1 lanyards at $19 each, 5 notebooks at $19 each and pays with $150. How much change is due?
Python code:
```python
items = [(1, 19), (5, 19)]
total = sum(q * p for q, p in items) # 114
paid = 150
change = paid - total # 36
print(change)
```
Out — 36
$36 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0051114 | At $0.62 per mile, what is the reimbursement for 269 miles?
Kemal is owed $166.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "166.78", "printed": "166.78", "notation": null} |
nlprog_det-setting-0051116 | The statute was enacted in 2004. How many years had passed by 2007?
3 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0051117 | Convert 2 h 43 min (the length of a meeting) to minutes.
The meeting lasted 163 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0051118 | At a 9% tax rate, what is the tax on $392.66?
One way, in code:
```python
price = 392.66
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 35.3394
print(f"{tax:.2f}")
```
Printed: 35.34
The tax is $35.34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "35.34", "printed": "35.34", "notation": null} |
nlprog_det-setting-0051119 | <|start|><|system|>
You may call the tools below.
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "des... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "75.98", "printed": "75.98", "notation": null} |
nlprog_det-setting-0051120 | A 18-month warranty starts on March 21, 2018. On what date does it end?
A short script:
```python
from datetime import date
start = date(2018, 3, 21)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The program p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2019-09-21", "printed": "2019-09-21", "notation": null} |
nlprog_det-setting-0051121 | Monthly rent is $1,500. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?
In Python:
```python
rent = 1500
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 800.0
print(f"{prorated:.2f}")
```
It prints 800.00.
The tenant owes $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0051122 | <|start|><|user|>
Someone works 12 hours at $15.51 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 15.51
hours = 12
earnings = rate * hours # 186.12
print(f"{earnings:.2f}")
```
Executing it gives: 186.12
That earns $186.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 12 hours at $15.51 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 15.51\nhours = 12\nearnings = rate * hours # 186.12\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives: 186.12\n\nThat earns $186.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "186.12", "printed": "186.12", "notation": null} |
nlprog_det-setting-0051123 | A hearing is set for October 23, 2005. What day of the week is that?
Python makes this quick:
from datetime import date
hearing = date(2005, 10, 23) # datetime.date(2005, 10, 23)
print(hearing.strftime("%A"))
When run, it prints Sunday, as expected.
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0051124 | Rent of $1,500 goes up 8%. What is the new rent?
```python
rent = 1500
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1620.0
print(f"{new_rent:.2f}")
```
Execution result: 1620.00
It rises to $1,620.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1620.00", "printed": "1620.00", "notation": null} |
nlprog_det-setting-0051125 | <|start|><|user|>
2 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 2
share = settlement // parties # 9000
print(share)
```
What it prints: 9000
Each share is $9,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 2\nshare = settlement // parties # 9000\nprint(share)\n```\nWhat it prints: 9000\n\nEach share is $9,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0051126 | <|start|><|user|>
Count the days between May 26, 2025 and October 15, 2025.<|eot|>
<|assistant|>
It is 142 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between May 26, 2025 and October 15, 2025."
},
{
"role": "assistant",
"content": "It is 142 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "142", "printed": "142", "notation": null} |
nlprog_det-setting-0051127 | <|start|><|system|>
You have access to these functions:
{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A settlement of $7,350 is spl... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro... | nlprog_det | setting | original | null | deterministic | [] | [] | 197 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0051128 | A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?
Programmatically:
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
Execution result: 6250.00
The lawyer's fee comes to $6,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0051129 | With 25% off, what does a $80 chair cost? It costs $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0051131 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 30
variable = 22
units = math.ceil(fixed / (price - variable)) # 750
print(units)
```
That prints: 750
750 units are neede... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 30\nvariable = 22\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0051132 | <|start|><|user|>
$1,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
It is worth $1,040.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 2% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "It is worth $1,040.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1040.40", "printed": "1040.40", "notation": null} |
nlprog_det-setting-0051133 | <|start|><|system|>
You can call tools. Available tools:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "par... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"py_exec\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 297 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0051135 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
5 walks at... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0051136 | Yoko has 13 documents to file, and each filing costs $405. How much are the filing fees in total?
The filings cost $5,265 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "5265", "printed": "5265", "notation": null} |
nlprog_det-setting-0051137 | From 1997 to 2013, how many years is that?
We can compute it in Python.
```python
start_year = 1997
end_year = 2013
print(end_year - start_year)
```
Python prints 16.
That is 16 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0051138 | Counting the first and last day, how many days are there from November 18, 2025 through December 9, 2025?
The computation:
```python
from datetime import date
first = date(2025, 11, 18) # datetime.date(2025, 11, 18)
last = date(2025, 12, 9) # datetime.date(2025, 12, 9)
days = (last - first).days + 1 # 22
print(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0051139 | A 6% increase is applied to $900 monthly rent. What is the new amount? It rises to $954.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "954.00", "printed": "954.00", "notation": null} |
nlprog_det-setting-0051140 | <|start|><|user|>
Each of Marek's walks burns 250 calories. How many calories over 6 walks?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
It outputs: 1500
1500 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Marek's walks burns 250 calories. How many calories over 6 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\nIt outputs: 1500\n\n1500 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0051141 | Eamon earns a 8% commission on $74,612 of sales. What is the commission?
One way, in code:
```python
sales = 74612
rate = 8 / 100 # 0.08
commission = sales * rate # 5968.96
print(f"{commission:.2f}")
```
That prints: 5968.96
Eamon earns $5,968.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5968.96", "printed": "5968.96", "notation": null} |
nlprog_det-setting-0051142 | A 140-mile drive at a steady 40 mph takes how many minutes?
Computation in Python:
```python
distance = 140
speed = 40
minutes = distance / speed * 60 # 210.0
print(round(minutes))
```
What it prints: 210
The trip takes 210 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0051143 | Papers were served by mail on April 16, 2021. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
```python
from datetime import date, timedelta
served = date(2021, 4, 16) # datetime.date(2021, 4, 16)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2021-05-10", "printed": "2021-05-10", "notation": null} |
nlprog_det-setting-0051144 | <|start|><|user|>
Delia drove 269 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 269
rate = 0.67
reimbursement = miles * rate # 180.23000000000002
print(f"{reimbursement:.2f}")
```
# program output: 180.23
The reimbursement is $180.23.<|... | chat | [
{
"role": "user",
"content": "Delia drove 269 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 269\nrate = 0.67\nreimbursement = miles * rate # 180.23000000000002\nprint(f\"{reimbursement:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "180.23", "printed": "180.23", "notation": null} |
nlprog_det-setting-0051145 | A party has 30 days to respond to a motion served on September 2, 2022, with 3 days added because service was by mail. When is the response due?
Here is the program.
```python
from datetime import date, timedelta
served = date(2022, 9, 2) # datetime.date(2022, 9, 2)
response_days = 30
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2022-10-05", "printed": "2022-10-05", "notation": null} |
nlprog_det-setting-0051146 | 6 bike rides at 350 calories each burn how many calories in total?
Code:
```python
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
```
Printed — 2100
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0051147 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 271 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0051148 | How many of 292 votes make 75% (round up)?
Program:
```python
import math
voters = 292
needed = math.ceil(voters * 75 / 100) # 219
print(needed)
```
The printout reads 219.
At least 219 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "219", "printed": "219", "notation": null} |
nlprog_det-setting-0051149 | A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?
The rent over the term is $39,360. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0051150 | How many weekdays (Monday to Friday) fall after May 17, 2023 up to and including June 3, 2023?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2023, 5, 17)
end = date(2023, 6, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0051151 | 26 calendars cost $9 apiece. With 5% tax added, what is the total?
Computing it:
```python
quantity = 26
unit_price = 9
subtotal = quantity * unit_price # 234
total = subtotal * (1 + 5 / 100) # 245.70000000000002
print(f"{total:.2f}")
```
(Execution result: 245.70)
The invoice total is $245.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "245.70", "printed": "245.70", "notation": null} |
nlprog_det-setting-0051152 | <|start|><|user|>
On which weekday does September 25, 1997 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1997, 9, 25) # datetime.date(1997, 9, 25)
print(hearing.strftime("%A"))
```
The program prints Thursday.
September 25, 1997 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does September 25, 1997 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1997, 9, 25) # datetime.date(1997, 9, 25)\nprint(hearing.strftime(\"%A\"))\n```\nThe program prints Thursday.\n\nSeptember 25,... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0051153 | Of a $2,000 budget, $700 has been spent. What percent is that?
```python
budget = 2000
spent = 700
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
Python prints 35.0, as expected.
35.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0051154 | A settlement of $7,350 is split equally among 3 parties. How much does each party receive?
Script:
```python
settlement = 7350
parties = 3
share = settlement // parties # 2450
print(share)
```
Running it prints 2450.
Each share is $2,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0051155 | A count moves from 200 to 280. By what percent did it change (use a minus sign for a drop)?
Python:
old = 200
new = 280
change = (new - old) / old * 100 # 40.0
print(round(change))
When run, it prints: 40
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0051156 | <|start|><|user|>
How many whole days and leftover hours are in 389 hours?<|eot|>
<|assistant|>
```python
hours = 389
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
What it prints — 16 days and 5 hours
That is 16 days and 5 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 389 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 389\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhat it prints — 16 days and 5 hours\n\nThat is 16 days and 5 hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "16 days and 5 hours", "printed": "16 days and 5 hours", "notation": null} |
nlprog_det-setting-0051157 | <|start|><|user|>
A 18-month warranty starts on April 1, 2026. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2026, 4, 1)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat(... | chat | [
{
"role": "user",
"content": "A 18-month warranty starts on April 1, 2026. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2026, 4, 1)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.yea... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2027-10-01", "printed": "2027-10-01", "notation": null} |
nlprog_det-setting-0051158 | <|start|><|user|>
Each of Rosa's swims burns 350 calories. How many calories over 6 swims?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
```
The program prints: 2100
2100 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Rosa's swims burns 350 calories. How many calories over 6 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 6\ntotal = per_session * sessions # 2100\nprint(total)\n```\nThe program prints: 2100\n\n2100 calories in total.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0051159 | Under a 35% contingency agreement, what fee is owed on a $12,000 award?
Computation in Python:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
The program prints 4200.00.
The fee is $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0051160 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
G... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 280 | {"gold": "2027-09-12", "printed": "2027-09-12", "notation": null} |
nlprog_det-setting-0051161 | Tomas has 13 documents to file, and each filing costs $75. How much are the filing fees in total?
In Python:
```python
fee = 75
filings = 13
total = fee * filings
print(total)
```
This prints 975.
The filings cost $975 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "975", "printed": "975", "notation": null} |
nlprog_det-setting-0051162 | If a 40-minute appointment begins at 12:10 PM, what time does it finish?
The Python version:
start = 12 * 60 + 10
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
What it prints — 12:50 PM
The appointment finishes at 12:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "12:50 PM", "printed": "12:50 PM", "notation": null} |
nlprog_det-setting-0051163 | Monthly: $9. Annual: $60. What is saved per year by paying annually?
```python
monthly = 9
yearly = 60
savings = monthly * 12 - yearly # 48
print(savings)
```
Executing it gives 48, as expected.
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0051164 | A $1,000 security deposit has deductions of $120, $200 and $200. How much is refunded?
$480 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0051165 | A chair costs $75. It is 15% off. What is the sale price?
The sale price is $63.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "63.75", "printed": "63.75", "notation": null} |
nlprog_det-setting-0051166 | Printing costs 10 cents a page. What does it cost to print 142 copies of a 44-page handout?
Printing costs $624.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "624.80", "printed": "624.80", "notation": null} |
nlprog_det-setting-0051167 | Convert 42.7 km to meters.
Here is the program.
```python
km = 42.7
meters = km * 1000 # 42700.0
print(round(meters))
```
Run result = 42700
That is 42,700 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "42700", "printed": "42700", "notation": null} |
nlprog_det-setting-0051168 | <|start|><|user|>
A clerk's office charges $75 for each filing. Carmen submits 17 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 75
filings = 17
total = fee * filings # 1275
print(total)
```
It outputs: 1275
$1,275 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $75 for each filing. Carmen submits 17 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 75\nfilings = 17\ntotal = fee * filings # 1275\nprint(total)\n```\nIt outputs: 1275\n\n$1,275 in filing fees."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1275", "printed": "1275", "notation": null} |
nlprog_det-setting-0051169 | A hall has 19 rows of 11 seats, and 16 seats are empty. How many people are seated?
193 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "193", "printed": "193", "notation": null} |
nlprog_det-setting-0051170 | <|start|><|user|>
6 swims at 250 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
# out: 1500
That burns 1500 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 swims at 250 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\n# out: 1500\n\nThat burns 1500 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0051171 | <|start|><|user|>
$1,000 is invested at 2% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 4
value = principal * (1 + rate) ** years # 1082.43216
print(f"{value:.2f}")
```
stdout:
1082.43
The balance is $1,082.43.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 2% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 1082.43216\nprint(f\"{value:.2f}\")\n```\nst... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1082.43", "printed": "1082.43", "notation": null} |
nlprog_det-setting-0051172 | <|start|><|user|>
From a $7,500 retainer, 10 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 10
rate = 200
left = retainer - hours * rate
print(left)
```
stdout: 5500
The remaining balance is $5,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 10 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 10\nrate = 200\nleft = retainer - hours * rate\nprint(left)\n```\nstdout: 5500\n\nThe remaining balance is $5,500.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "5500", "printed": "5500", "notation": null} |
nlprog_det-setting-0051173 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?
```python
rate = 16.0
hours = 43
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 72.0
pay = regular + overtime # 712.0
print(f"{pay:.2f}")
```
# stdout: 712.00
Nikhil earns $712.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "712.00", "printed": "712.00", "notation": null} |
nlprog_det-setting-0051174 | Prorate $1,500 of monthly rent for 15 days of a 31-day month.
Here is a short program for it.
```python
rent = 1500
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 725.8064516129032
print(f"{prorated:.2f}")
```
Printed = 725.81
The tenant owes $725.81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "725.81", "printed": "725.81", "notation": null} |
nlprog_det-setting-0051175 | 4 claimants share a $7,348 settlement equally. What is each share?
Computation in Python:
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
When run, it prints 1837.
Each share is $1,837. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0051176 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?
Python:
```python
rate = 18.5
hours = 45
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 138.75
pay = regular + overtime # 878.75
print(f"{pay:.2f}")
```
On running, it outputs 878.75.
The weekly pay... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "878.75", "printed": "878.75", "notation": null} |
nlprog_det-setting-0051177 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 3 books that are 22 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 22
books = 3
fine = per_day * days_late * books # 16.5
print(f"{fine:.2f}")
```
(Run result: 16.50)
The fine is $16.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 22 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 22\nbooks = 3\nfine = per_day * days_late * books # 16.5\nprint(f\"{fine:.2f}\")\n```\n(... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "16.50", "printed": "16.50", "notation": null} |
nlprog_det-setting-0051178 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days", "descriptio... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 374 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0051179 | After an initial $2,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?
Code:
```python
grant = 30000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 2333.3333333333335
print(f"{each:.2f}")
```
Printed — 2333.33
Each installment is $2,333.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2333.33", "printed": "2333.33", "notation": null} |
nlprog_det-setting-0051180 | A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?
Computation in Python:
```python
old = 500
new = 575
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Result: 15
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0051181 | Buying 3 water bottles at $28 each, 2 calendars at $6 each, 6 file boxes at $21 each, someone hands over $250. What change comes back?
A short script:
```python
items = [(3, 28), (2, 6), (6, 21)]
total = sum(q * p for q, p in items) # 222
paid = 250
change = paid - total # 28
print(change)
```
Out = 28
The change i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0051182 | <|start|><|system|>
Tools you may use:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "p... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0051184 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Monthly: $12. Annual: $126. Wh... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr... | nlprog_det | setting | original | null | deterministic | [] | [] | 203 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051185 | How much sales tax is charged on a $836.84 purchase at 9%?
The tax is $75.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "75.32", "printed": "75.32", "notation": null} |
nlprog_det-setting-0051186 | <|start|><|user|>
Oskar earns a 10% commission on $19,093 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 19093
rate = 10 / 100 # 0.1
commission = sales * rate # 1909.3000000000002
print(f"{commission:.2f}")
```
Run output: 1909.30
The commission is $1,909.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Oskar earns a 10% commission on $19,093 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 19093\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 1909.3000000000002\nprint(f\"{commission:.2f}\")\n```\nRun output: 1909.30... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1909.30", "printed": "1909.30", "notation": null} |
nlprog_det-setting-0051187 | Convert 4,352 GBP to USD at 1 GBP = 0.74 USD.
Code:
```python
amount = 4352
rate = 0.74
converted = amount * rate # 3220.48
print(f"{converted:.2f}")
```
Execution prints 3220.48.
That is 3,220.48 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3220.48", "printed": "3220.48", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.