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-0063087 | Rent of $1,500 goes up 5%. What is the new rent?
Python code:
```python
rent = 1500
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1575.0
print(f"{new_rent:.2f}")
```
(Printed: 1575.00)
The new rent is $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0063089 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $12,000 over 4 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 720.0
print(f"{interest:.2f}")
```
The script prints 720.00.
$720.00 accrues.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $12,000 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 4\ninterest = balance * monthly_rate * months # 720.0\nprint(f\"{interest:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0063090 | <|start|><|user|>
At an exchange rate of 1.27 EUR per USD, how many EUR is 1,319 USD?<|eot|>
<|assistant|>
```python
amount = 1319
rate = 1.27
converted = amount * rate # 1675.13
print(f"{converted:.2f}")
```
stdout — 1675.13
It converts to 1,675.13 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.27 EUR per USD, how many EUR is 1,319 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 1319\nrate = 1.27\nconverted = amount * rate # 1675.13\nprint(f\"{converted:.2f}\")\n```\nstdout — 1675.13\n\nIt converts to 1,675.13 EUR.... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1675.13", "printed": "1675.13", "notation": null} |
nlprog_det-setting-0063091 | With 23 rows of 15 chairs and 28 empty chairs, how many chairs are taken?
A Python solution:
```python
rows = 23
per_row = 15
empty = 28
seated = rows * per_row - empty # 317
print(seated)
```
The program prints 317.
317 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "317", "printed": "317", "notation": null} |
nlprog_det-setting-0063092 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Buying 1 mugs at $8 each, 5 batteries at $10 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 8), (5, 10)]
total = sum(q * p for q, p in items) # 58
paid = 100
change = paid - total # 42
print(change)
`... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Buying 1 mugs at $8 each, 5 batteries at $10 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 8), (5, 10)]\ntotal = sum... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0063093 | <|start|><|user|>
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 14500
costs = 12500
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 13.793103448275861
print(round(margin, 1))
```
Output: 13.8
The m... | chat | [
{
"role": "user",
"content": "Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 14500\ncosts = 12500\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 13.79310... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0063094 | Revenue is $21,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
The program:
```python
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
```
Running this gives: 4.8
Profit is 4.8% of re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0063095 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
A party has 28 days to respond to a motion served on December 5, 2023, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2023, 12, 5) # datetime.date(20... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on December 5, 2023, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python... | nlprog_det | setting | original | null | deterministic | [] | [] | 188 | {"gold": "2024-01-05", "printed": "2024-01-05", "notation": null} |
nlprog_det-setting-0063096 | A backpack costs $250. It is 15% off. What is the sale price?
Written as code:
```python
price = 250
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 212.5
print(f"{sale_price:.2f}")
```
Output — 212.50
The sale price is $212.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "212.50", "printed": "212.50", "notation": null} |
nlprog_det-setting-0063097 | <|start|><|user|>
What average speed covers 540 miles in 2.5 hours?<|eot|>
<|assistant|>
```python
distance = 540
hours = 2.5
speed = distance / hours # 216.0
print(round(speed))
```
The run gives 216, as expected.
The average speed is 216 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 540 miles in 2.5 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 540\nhours = 2.5\nspeed = distance / hours # 216.0\nprint(round(speed))\n```\nThe run gives 216, as expected.\n\nThe average speed is 216 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "216", "printed": "216", "notation": null} |
nlprog_det-setting-0063098 | <|start|><|user|>
A $48,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 48000
up_front = 3000
installments = 12
each = (grant - up_front) / installments
print(f"{each:.2f}")
This prints 3750.00, as expected.
$3,750.00... | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 48000\n up_front = 3000\n installments = 12\n each = (grant - up_front) / installments\n print(f... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3750.00", "printed": "3750.00", "notation": null} |
nlprog_det-setting-0063099 | <|start|><|user|>
Meals are $64 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1282
print(total)
```
Running it prints: 1282
That come... | chat | [
{
"role": "user",
"content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1282", "printed": "1282", "notation": null} |
nlprog_det-setting-0063100 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1399 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1399
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
(stdout: 5)
Buy 5 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1399 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1399\ncoverage = 300\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\n(stdout: 5)\n\nBuy 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0063101 | Each of Lucia's walks burns 250 calories. How many calories over 7 walks?
Python makes this quick:
per_session = 250
sessions = 7
total = per_session * sessions # 1750
print(total)
Execution result — 1750
1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0063102 | <|start|><|user|>
Zoe and Chen share $1,860 in the ratio 2:3. How much does Zoe get?<|eot|>
<|assistant|>
Zoe's share is $744.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe and Chen share $1,860 in the ratio 2:3. How much does Zoe get?"
},
{
"role": "assistant",
"content": "Zoe's share is $744."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "744", "printed": "744", "notation": null} |
nlprog_det-setting-0063103 | <|start|><|user|>
After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 2 # 21000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0063104 | <|start|><|system|>
Tools you may use:
{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A claim accrued on March 16, 2013. T... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "2015-03-16", "printed": "2015-03-16", "notation": null} |
nlprog_det-setting-0063105 | Each of Emeka's runs burns 150 calories. How many calories over 3 runs? 450 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0063106 | How many of 87 votes make 75% (round up)?
66 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0063107 | A garage charges $5 an hour, never more than $15 a day. How much for 12 hours?
A short script:
```python
rate = 5
hours = 12
daily_max = 15
cost = min(rate * hours, daily_max)
print(cost)
```
stdout = 15
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0063108 | At 1% a month (simple), what interest builds on $7,500 over 4 months?
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
The program prints 300.00.
$300.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0063109 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours?
As Python:
```python
rate = 16.0
hours = 51
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 264.0
pay = regular + overtime # 904.0
print(f"{pay:.2f}")
```
The printout reads: 904.00
Uma earns $904.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "904.00", "printed": "904.00", "notation": null} |
nlprog_det-setting-0063110 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 80... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmont... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0063111 | Someone works 30 hours at $19.15 per hour. What are the earnings?
Python code:
```python
rate = 19.15
hours = 30
earnings = rate * hours # 574.5
print(f"{earnings:.2f}")
```
When run, it prints 574.50, as expected.
That earns $574.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "574.50", "printed": "574.50", "notation": null} |
nlprog_det-setting-0063112 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0063114 | Yara earns a 8% commission on $60,282 of sales. What is the commission?
Here is the program.
```python
sales = 60282
rate = 8 / 100 # 0.08
commission = sales * rate # 4822.56
print(f"{commission:.2f}")
```
It outputs: 4822.56
The commission is $4,822.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4822.56", "printed": "4822.56", "notation": null} |
nlprog_det-setting-0063115 | Each of Sami's swims burns 300 calories. How many calories over 5 swims?
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0063116 | One can of paint covers 300 square feet. How many cans are needed for 597 square feet of wall?
```python
import math
area = 597
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
It prints: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0063117 | Convert 1,740 USD to CAD at 1 USD = 1.08 CAD.
Let's compute it with Python.
```python
amount = 1740
rate = 1.08
converted = amount * rate
print(f"{converted:.2f}")
```
stdout — 1879.20
It converts to 1,879.20 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1879.20", "printed": "1879.20", "notation": null} |
nlprog_det-setting-0063118 | Under a 25% contingency agreement, what fee is owed on a $25,000 award?
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
The code prints: 6250.00
The fee is $6,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0063119 | <|start|><|user|>
A printer costs $120. It is 15% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 120
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 102.0
print(f"{sale_price:.2f}")
```
The code prints: 102.00
The sale price is $102.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A printer costs $120. It is 15% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 102.0\nprint(f\"{sale_price:.2f}\")\n```\nThe code prints: 102.00\n\nThe s... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "102.00", "printed": "102.00", "notation": null} |
nlprog_det-setting-0063120 | <|start|><|user|>
Diego buys 6 boxes of 8 staplers each and gives away 10 staplers. How many staplers are left?<|eot|>
<|assistant|>
38 staplers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Diego buys 6 boxes of 8 staplers each and gives away 10 staplers. How many staplers are left?"
},
{
"role": "assistant",
"content": "38 staplers are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0063121 | Which is cheaper per unit: 6 for $11.09 (A) or 15 for $21.71 (B)?
Program:
```python
pack_a = 11.09 / 6 # 1.8483333333333334
pack_b = 21.71 / 15 # 1.4473333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It prints B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0063122 | What is a 18% tip on a $183.04 bill?
Python:
```python
bill = 183.04
tip_rate = 18 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
stdout:
32.95
The tip is $32.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32.95", "printed": "32.95", "notation": null} |
nlprog_det-setting-0063123 | With 14 rows of 18 chairs and 39 empty chairs, how many chairs are taken?
Program:
```python
rows = 14
per_row = 18
empty = 39
seated = rows * per_row - empty # 213
print(seated)
```
The code prints: 213
213 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "213", "printed": "213", "notation": null} |
nlprog_det-setting-0063124 | 12 hours of work at $350 an hour: what is the total charge?
Python version:
```python
hours = 12
rate = 350
bill = hours * rate # 4200
print(f"{bill:.2f}")
```
stdout — 4200.00
That comes to $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0063125 | <|start|><|user|>
Copies cost $15 plus $0.10 for each page beyond 10. How much for 27 pages?<|eot|>
<|assistant|>
The total is $16.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.10 for each page beyond 10. How much for 27 pages?"
},
{
"role": "assistant",
"content": "The total is $16.70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "16.70", "printed": "16.70", "notation": null} |
nlprog_det-setting-0063126 | With 40% off, what does a $40 jacket cost?
Set it up in Python:
```python
price = 40
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 24.0
print(f"{sale_price:.2f}")
```
Executed, it shows: 24.00
The sale price is $24.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0063127 | A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 84-page copy cost?
Let's compute it with Python.
```python
pages = 84
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 28.5
print(f"{cost:.2f}")
```
Output: 28.50
The total is $28.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "28.50", "printed": "28.50", "notation": null} |
nlprog_det-setting-0063128 | <|start|><|system|>
You have access to these functions:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"typ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"search_cases\", \"descrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 356 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0063129 | From 1994 to 2016, how many years is that?
We can compute it in Python.
```python
start_year = 1994
end_year = 2016
print(end_year - start_year)
```
The script prints: 22
That is 22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0063130 | <|start|><|user|>
A library charges $0.15 per book per day late. What is the fine for 4 books that are 26 days late?<|eot|>
<|assistant|>
The fine is $15.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 4 books that are 26 days late?"
},
{
"role": "assistant",
"content": "The fine is $15.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "15.60", "printed": "15.60", "notation": null} |
nlprog_det-setting-0063131 | Goods bought on May 16, 2024 carry a 24-month warranty. When does it expire?
One way, in code:
```python
from datetime import date
start = date(2024, 5, 16)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2026-05-16", "printed": "2026-05-16", "notation": null} |
nlprog_det-setting-0063132 | A car travels 518 miles in 2 hours. What is its average speed in miles per hour?
```python
distance = 518
hours = 2
speed = distance / hours # 259.0
print(round(speed))
```
Running this gives: 259
It averages 259 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "259", "printed": "259", "notation": null} |
nlprog_det-setting-0063133 | A film lasted 5 hours and 7 minutes. How many minutes is that?
In Python:
```python
hours = 5
minutes = 7
total_minutes = hours * 60 + minutes
print(total_minutes)
```
Printed: 307
The film lasted 307 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "307", "printed": "307", "notation": null} |
nlprog_det-setting-0063134 | An invoice lists 20 toner kits at $9 each, plus 10% sales tax. What is the invoice total?
Script:
```python
quantity = 20
unit_price = 9
subtotal = quantity * unit_price # 180
total = subtotal * (1 + 10 / 100) # 198.00000000000003
print(f"{total:.2f}")
```
stdout — 198.00
The total with tax is $198.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "198.00", "printed": "198.00", "notation": null} |
nlprog_det-setting-0063136 | <|start|><|user|>
A customer buys 2 headsets at $29 each, 2 chairs at $10 each, 5 file boxes at $19 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
```python
items = [(2, 29), (2, 10), (5, 19)]
total = sum(q * p for q, p in items) # 173
paid = 200
change = paid - total # 27
print(change)
```
(st... | chat | [
{
"role": "user",
"content": "A customer buys 2 headsets at $29 each, 2 chairs at $10 each, 5 file boxes at $19 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(2, 29), (2, 10), (5, 19)]\ntotal = sum(q * p for q, p in items) # 173\npai... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0063137 | <|start|><|user|>
To read 486 pages in 18 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 486
days = 18
per_day = pages // days # 27
print(per_day)
Output — 27
That is 27 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 486 pages in 18 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 486\n days = 18\n per_day = pages // days # 27\n print(per_day)\nOutput — 27\n\nThat is 27 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0063138 | <|start|><|user|>
At an exchange rate of 1.08 USD per EUR, how many USD is 5,181 EUR?<|eot|>
<|assistant|>
```python
amount = 5181
rate = 1.08
converted = amount * rate # 5595.4800000000005
print(f"{converted:.2f}")
```
The run gives 5595.48.
It converts to 5,595.48 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.08 USD per EUR, how many USD is 5,181 EUR?"
},
{
"role": "assistant",
"content": "```python\namount = 5181\nrate = 1.08\nconverted = amount * rate # 5595.4800000000005\nprint(f\"{converted:.2f}\")\n```\nThe run gives 5595.48.\n\nIt converts... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "5595.48", "printed": "5595.48", "notation": null} |
nlprog_det-setting-0063139 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
From 2004 to 2027, how many years is that?<|eot|>
<|assistant|>
23 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "From 2004 to 2027, how many years is that?"
},
{
"role": "assistant",
"content": "23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0063140 | <|start|><|user|>
5 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
Each share is $240.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each share is $240."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0063142 | Count the days between October 16, 2019 and April 27, 2020.
A short script:
```python
from datetime import date
first = date(2019, 10, 16) # datetime.date(2019, 10, 16)
second = date(2020, 4, 27) # datetime.date(2020, 4, 27)
print((second - first).days)
```
Executing it gives 194.
It is 194 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "194", "printed": "194", "notation": null} |
nlprog_det-setting-0063143 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 296 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0063144 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?<|eot|>
<|assistant|>
The weekly pay is $808.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?"
},
{
"role": "assistant",
"content": "The weekly pay is $808.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "808.00", "printed": "808.00", "notation": null} |
nlprog_det-setting-0063145 | 3 claimants share a $7,350 settlement equally. What is each share?
Python:
settlement = 7350
parties = 3
share = settlement // parties # 2450
print(share)
The run gives 2450, as expected.
Each party receives $2,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0063146 | What is the total rent on a 36-month lease at $2,100 a month?
Python code:
```python
monthly_rent = 2100
months = 36
total = monthly_rent * months # 75600
print(total)
```
Python prints 75600.
In total, $75,600 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "75600", "printed": "75600", "notation": null} |
nlprog_det-setting-0063147 | A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?
A Python solution:
```python
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
```
The run gives: 12000.00
$12,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0063148 | From a $2,500 retainer, 4 hours at $250/hour have been drawn. What remains?
$1,500 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0063149 | <|start|><|user|>
A $96 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
Each person pays $57.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $96 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "Each person pays $57.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "57.60", "printed": "57.60", "notation": null} |
nlprog_det-setting-0063150 | <|start|><|user|>
Convert 80.1 km to meters.<|eot|>
<|assistant|>
```python
km = 80.1
meters = km * 1000 # 80100.0
print(round(meters))
```
Running this gives 80100.
That is 80,100 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 80.1 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 80.1\nmeters = km * 1000 # 80100.0\nprint(round(meters))\n```\nRunning this gives 80100.\n\nThat is 80,100 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "80100", "printed": "80100", "notation": null} |
nlprog_det-setting-0063151 | Walls total 793 sq ft and each can covers 250 sq ft. How many cans should be bought?
One way, in code:
```python
import math
area = 793
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
The code prints 4.
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0063152 | Notice was given on July 1, 2022. The notice period is 30 days. When does it run out?
Python, step by step:
```python
from datetime import date, timedelta
start = date(2022, 7, 1) # datetime.date(2022, 7, 1)
end = start + timedelta(days=30) # datetime.date(2022, 7, 31)
print(end.isoformat())
```
Out:
2022-07-31
It ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2022-07-31", "printed": "2022-07-31", "notation": null} |
nlprog_det-setting-0063153 | Straight-line depreciation: cost $30,000, salvage $6,000, 4 years. How much per year?
Python, step by step:
```python
cost = 30000
salvage = 6000
years = 4
per_year = (cost - salvage) / years # 6000.0
print(f"{per_year:.2f}")
```
(Output: 6000.00)
$6,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0063154 | How many days are there from June 3, 2021 to April 7, 2022?
```python
from datetime import date
first = date(2021, 6, 3) # datetime.date(2021, 6, 3)
second = date(2022, 4, 7) # datetime.date(2022, 4, 7)
print((second - first).days)
```
# output: 308
It is 308 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "308", "printed": "308", "notation": null} |
nlprog_det-setting-0063155 | <|start|><|user|>
A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 1200
months = 36
total = monthly_rent * months # 43200
print(total)
(Console output: 43200)
The rent over the term is $43,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 1200\n months = 36\n total = monthly_rent * months # 43200\n print(total)\n(Console output: 43200)\n\nThe r... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0063156 | <|start|><|user|>
Zoe buys 5 boxes of 8 lanyards each and gives away 14 lanyards. How many lanyards are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 8
given_away = 14
left = boxes * per_box - given_away # 26
print(left)
```
On running, it outputs: 26
That leaves 26 lanyards.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe buys 5 boxes of 8 lanyards each and gives away 14 lanyards. How many lanyards are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 8\ngiven_away = 14\nleft = boxes * per_box - given_away # 26\nprint(left)\n```\nOn running, it outputs... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0063158 | <|start|><|user|>
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 21-page copy cost?<|eot|>
<|assistant|>
```python
pages = 21
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 6.1
print(f"{cost:.2f}")
```
Execution prints 6.10.
The ... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 21-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 21\nbase = 5\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "6.10", "printed": "6.10", "notation": null} |
nlprog_det-setting-0063160 | A claim accrued on April 1, 2024. The limitations period is 2 years. On what date does it expire?
```python
from datetime import date
accrued = date(2024, 4, 1) # datetime.date(2024, 4, 1)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 4, 1)
print(expires.isoformat())
```
Consol... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-04-01", "printed": "2026-04-01", "notation": null} |
nlprog_det-setting-0063161 | A car travels 256 miles in 2 hours. What is its average speed in miles per hour?
Coded up:
distance = 256
hours = 2
speed = distance / hours # 128.0
print(round(speed))
That prints: 128
The average speed is 128 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "128", "printed": "128", "notation": null} |
nlprog_det-setting-0063162 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
What is 5 d... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0063164 | Find the mean of these test scores: 102, 100, 56, 68, 96, 72 and 73.
The mean is 81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0063165 | <|start|><|user|>
A garage charges $2 an hour, never more than $18 a day. How much for 1 hours?<|eot|>
<|assistant|>
rate = 2
hours = 1
daily_max = 18
cost = min(rate * hours, daily_max)
print(cost)
(stdout: 2)
The charge is $2.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $18 a day. How much for 1 hours?"
},
{
"role": "assistant",
"content": " rate = 2\n hours = 1\n daily_max = 18\n cost = min(rate * hours, daily_max)\n print(cost)\n(stdout: 2)\n\nThe charge is $2."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0063166 | A $30,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?
Python:
```python
grant = 30000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
# run result: 6000.00
$6,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0063167 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 768 square feet of wall?<|eot|>
<|assistant|>
import math
area = 768
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
(Execution result: 2)
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 768 square feet of wall?"
},
{
"role": "assistant",
"content": " import math\n area = 768\n coverage = 400\n cans = math.ceil(area / coverage) # 2\n print(cans)\n(Execution result:... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0063168 | <|start|><|system|>
Tools (call with JSON):
[{"name": "sandbox_python", "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"]}}, {"name": "convert_... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 334 | {"gold": "138", "printed": "138", "notation": null} |
nlprog_det-setting-0063169 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Split $3,976 between Jonas and Helga in the ratio 3 to 5. What is Jonas's share?<|eot|>
<|assistant|>
total = 3976
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1491
print(share_a)
It prints 1491, ... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Split $3,976 between Jonas and Helga in the ratio 3 to 5. What is Jonas's share?"
},
{
"role": "assistant",
"content": " total = 3976\n parts_a = 3\n parts_b = 5\n share... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1491", "printed": "1491", "notation": null} |
nlprog_det-setting-0063170 | <|start|><|user|>
A meal costs $27.16. How much is a 22% tip?<|eot|>
<|assistant|>
```python
bill = 27.16
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 5.9752
print(f"{tip:.2f}")
```
It prints: 5.98
The tip is $5.98.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $27.16. How much is a 22% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 27.16\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 5.9752\nprint(f\"{tip:.2f}\")\n```\nIt prints: 5.98\n\nThe tip is $5.98."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "5.98", "printed": "5.98", "notation": null} |
nlprog_det-setting-0063171 | An office budget of $20,000 has expenses of $3,539, $2,184, $3,908, $1,755. How much of the budget is left?
Python code:
```python
budget = 20000
expenses = [3539, 2184, 3908, 1755]
left = budget - sum(expenses) # 8614
print(left)
```
(Printed result: 8614)
The remaining budget is $8,614. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "8614", "printed": "8614", "notation": null} |
nlprog_det-setting-0063172 | Someone works 36 hours at $29.08 per hour. What are the earnings?
Let's compute it with Python.
```python
rate = 29.08
hours = 36
earnings = rate * hours # 1046.8799999999999
print(f"{earnings:.2f}")
```
Printed: 1046.88
The pay is $1,046.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1046.88", "printed": "1046.88", "notation": null} |
nlprog_det-setting-0063173 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A 264-page report m... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063174 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Kofi and Elena share $3,052 in the ratio 3:4. How much does Kofi get?<|eot|>
<|assistant|>
```python
total = 3052
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1308
print(share_a)
```
That prints 1308.
Kofi's share is $1,308.<|e... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Kofi and Elena share $3,052 in the ratio 3:4. How much does Kofi get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 3052\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (par... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "1308", "printed": "1308", "notation": null} |
nlprog_det-setting-0063175 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Nikhil earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 52
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 403.19999999999993
pay =... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Nikhil earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 52\nregula... | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "1299.20", "printed": "1299.20", "notation": null} |
nlprog_det-setting-0063176 | <|start|><|user|>
If a 5-year limitations period starts on September 13, 2020, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2020, 9, 13) # datetime.date(2020, 9, 13)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 9, 13)
print(expires.i... | chat | [
{
"role": "user",
"content": "If a 5-year limitations period starts on September 13, 2020, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2020, 9, 13) # datetime.date(2020, 9, 13)\nyears = 5\nexpires = accrued.replace(year=accrued.y... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2025-09-13", "printed": "2025-09-13", "notation": null} |
nlprog_det-setting-0063177 | To read 63 pages in 3 days, how many pages per day are needed?
Python does the arithmetic:
```python
pages = 63
days = 3
per_day = pages // days # 21
print(per_day)
```
Running this gives: 21
That is 21 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0063178 | <|start|><|system|>
Tool definitions:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Convert 5 h 48 min (the length of a f... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "348", "printed": "348", "notation": null} |
nlprog_det-setting-0063179 | What commission does Rosa make on $21,512 in sales at 4%?
As Python:
```python
sales = 21512
rate = 4 / 100 # 0.04
commission = sales * rate # 860.48
print(f"{commission:.2f}")
```
The script prints: 860.48
The commission is $860.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "860.48", "printed": "860.48", "notation": null} |
nlprog_det-setting-0063180 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Each of Pilar's walks burns 300 calories. How many calories over 7 walks?<|eot|>
<|assistant|>
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
Run output — 2100
That burns 2100 calories.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Each of Pilar's walks burns 300 calories. How many calories over 7 walks?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 7\n total = per_session * sessions # 210... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0063182 | A library charges $0.20 per book per day late. What is the fine for 4 books that are 16 days late?
$12.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "12.80", "printed": "12.80", "notation": null} |
nlprog_det-setting-0063183 | <|start|><|user|>
At an exchange rate of 1.12 USD per CHF, how many USD is 6,216 CHF?<|eot|>
<|assistant|>
It converts to 6,961.92 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per CHF, how many USD is 6,216 CHF?"
},
{
"role": "assistant",
"content": "It converts to 6,961.92 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "6961.92", "printed": "6961.92", "notation": null} |
nlprog_det-setting-0063184 | Shipping costs $10 plus $1.50 per pound. What does a 36-pound parcel cost to ship?
Program:
```python
base = 10
per_pound = 1.5
weight = 36
cost = base + per_pound * weight # 64.0
print(f"{cost:.2f}")
```
Result — 64.00
Shipping costs $64.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0063185 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
Set it up in Python:
```python
rate = 22.4
hours = 42
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 67.19999999999999
pay = regular + overtime # 963.2
print(f"{pay:.2f}")
```
stdout:
963.20
Tomas e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "963.20", "printed": "963.20", "notation": null} |
nlprog_det-setting-0063186 | <|start|><|user|>
Pack A has 6 items for $12.69. Pack B has 18 items for $23.62. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 12.69 / 6 # 2.1149999999999998
pack_b = 23.62 / 18 # 1.3122222222222222
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
stdout: B
B has the ... | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $12.69. Pack B has 18 items for $23.62. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 12.69 / 6 # 2.1149999999999998\npack_b = 23.62 / 18 # 1.3122222222222222\ncheaper = \"A\" if pack_a < pack... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0063187 | Attendance was 19 out of 20. Express it as a percent.
Script:
```python
present = 19
total = 20
percent = present / total * 100 # 95.0
print(round(percent, 1))
```
That prints: 95.0
95.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0063188 | <|start|><|user|>
Wen was born on August 17, 1951. How old is Wen on February 17, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1951, 8, 17) # datetime.date(1951, 8, 17)
on = date(2028, 2, 17) # datetime.date(2028, 2, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born... | chat | [
{
"role": "user",
"content": "Wen was born on August 17, 1951. How old is Wen on February 17, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1951, 8, 17) # datetime.date(1951, 8, 17)\non = date(2028, 2, 17) # datetime.date(2028, 2, 17)\nage = on.... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0063189 | 2 friends split a $120 bill plus a 18% tip evenly. How much does each pay?
Translated to Python:
bill = 120
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
This prints 70.80, as expected.
The share is $70.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0063190 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "eval_pyth... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 335 | {"gold": "1666.67", "printed": "1666.67", "notation": null} |
nlprog_det-setting-0063191 | A lease runs for 24 months at $2,875 per month. How much rent is paid over the whole term?
We write it as a program:
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months # 69000
print(total)
```
Console output: 69000
The rent over the term is $69,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0063192 | A claim accrued on April 12, 2022. The limitations period is 4 years. On what date does it expire?
The computation:
```python
from datetime import date
accrued = date(2022, 4, 12) # datetime.date(2022, 4, 12)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 4, 12)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2026-04-12", "printed": "2026-04-12", "notation": null} |
nlprog_det-setting-0063193 | A meal costs $38.92. How much is a 22% tip?
Programmatically:
```python
bill = 38.92
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 8.5624
print(f"{tip:.2f}")
```
Program output — 8.56
Leave $8.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "8.56", "printed": "8.56", "notation": null} |
nlprog_det-setting-0063194 | <|start|><|user|>
Scale 150 g of rice from 6 servings to 4 servings.<|eot|>
<|assistant|>
```python
grams = 150
serves = 6
needed_for = 4
scaled = grams * needed_for // serves # 100
print(scaled)
```
# printed: 100
Use 100 g of rice.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of rice from 6 servings to 4 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 6\nneeded_for = 4\nscaled = grams * needed_for // serves # 100\nprint(scaled)\n```\n# printed: 100\n\nUse 100 g of rice."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "100", "printed": "100", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.