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-0049582 | Someone born April 17, 1968 turns how old by August 3, 2025? Give the age in whole years.
A few lines of Python do it:
```python
from datetime import date
born = date(1968, 4, 17) # datetime.date(1968, 4, 17)
on = date(2025, 8, 3) # datetime.date(2025, 8, 3)
age = on.year - born.year - ((on.month, on.day) < (born.mo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0049584 | Oskar earns a 10% commission on $46,236 of sales. What is the commission?
```python
sales = 46236
rate = 10 / 100 # 0.1
commission = sales * rate # 4623.6
print(f"{commission:.2f}")
```
The printout reads: 4623.60
Oskar earns $4,623.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4623.60", "printed": "4623.60", "notation": null} |
nlprog_det-setting-0049585 | 7 bike rides at 200 calories each burn how many calories in total?
Here's the code.
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
The code prints: 1400
That burns 1400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0049586 | <|start|><|user|>
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 24.0
print(f"{each:.2f}")
```
Executed, it shows 24.00.
The share is $24.00 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 120\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill * (1 + tip_rate) / people # 24.0\nprint(f\"{each:.2f}\")\n```\nExecuted, it ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0049587 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
An office budget of $5,000 has expenses of $823, $1,713. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [823, 1713]
left = budget - sum(expenses) # 2464
print(left)
```
# result: 2464
The remaining budget is ... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $823, $1,713. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [823, 1713]\nleft = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2464", "printed": "2464", "notation": null} |
nlprog_det-setting-0049588 | From a $10,000 retainer, 14 hours at $275/hour have been drawn. What remains?
Here's the code.
retainer = 10000
hours = 14
rate = 275
left = retainer - hours * rate
print(left)
Printed result: 6150
$6,150 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0049589 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 23 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 23
books = 4
fine = per_day * days_late * books # 23.0
print(f"{fine:.2f}")
```
# console output: 23.00
The fine is $23.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 23 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 23\nbooks = 4\nfine = per_day * days_late * books # 23.0\nprint(f\"{fine:.2f}\")\n```\n#... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0049590 | After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 3 # 7000.0
print(f"{per_client:.2f}")
```
That prints: 7000.00
Each share is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0049591 | One can of paint covers 300 square feet. How many cans are needed for 522 square feet of wall?
One way, in code:
```python
import math
area = 522
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
Console output: 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0049593 | <|start|><|user|>
Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 4,000 gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.2
used = 4
free = 3
bill = base + rate * max(0, used - free) # 16.2
print(f"{bill:.2f}")
```
Run result: 16.20
The bill is $16.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 4,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.2\nused = 4\nfree = 3\nbill = base + rate * max(0, used - free) # 16.2\nprint(f\"{bill:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "16.20", "printed": "16.20", "notation": null} |
nlprog_det-setting-0049594 | Convert 3 h 14 min (the length of a film) to minutes.
As a program:
```python
hours = 3
minutes = 14
total_minutes = hours * 60 + minutes # 194
print(total_minutes)
```
The program outputs 194.
The film lasted 194 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "194", "printed": "194", "notation": null} |
nlprog_det-setting-0049595 | <|start|><|user|>
Sofia and Vera share $2,548 in the ratio 3:4. How much does Sofia get?<|eot|>
<|assistant|>
```python
total = 2548
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1092
print(share_a)
```
Console output: 1092
Sofia's share is $1,092.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sofia and Vera share $2,548 in the ratio 3:4. How much does Sofia get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2548\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1092\nprint(share_a)\n```\nConsole output: 1092\n\nSo... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1092", "printed": "1092", "notation": null} |
nlprog_det-setting-0049597 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
At $0.58 per mile, what is the reimbursement for 23 miles?<|eot|>
<|assistant|>
```python
miles = 23
rate = 0.58
reimbursement = miles * rate # 13.34
print(f"{reimbursement:.2f}")
```
(Execution result: 13.34)
Jonas is owed $13.34.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 23 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 23\nrate = 0.58\nreimbursement = miles * rate # 13.34\nprint(f\"{rei... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "13.34", "printed": "13.34", "notation": null} |
nlprog_det-setting-0049598 | Ana and Hugo share $5,355 in the ratio 2:5. How much does Ana get?
Let the code do the arithmetic:
total = 5355
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1530
print(share_a)
The script prints 1530.
Ana's share is $1,530. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1530", "printed": "1530", "notation": null} |
nlprog_det-setting-0049599 | 14 rulers cost $5 apiece. With 8% tax added, what is the total?
The total with tax is $75.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "75.60", "printed": "75.60", "notation": null} |
nlprog_det-setting-0049600 | Abel's scores were 61, 54, 87, 85 and 78. What is the average score?
The program:
```python
scores = [61, 54, 87, 85, 78]
average = sum(scores) // len(scores) # 73
print(average)
```
Running it prints: 73
The mean is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0049601 | <|start|><|user|>
A $800 security deposit has deductions of $120 and $75. How much is refunded?<|eot|>
<|assistant|>
$605 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $120 and $75. How much is refunded?"
},
{
"role": "assistant",
"content": "$605 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "605", "printed": "605", "notation": null} |
nlprog_det-setting-0049602 | <|start|><|system|>
Tools (call with JSON):
{"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 garage charges $5 an ho... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0049603 | Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Python makes this quick:
```python
revenue = 6000
costs = 4000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
Output:
33.3
Profit is 33.3% of reve... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0049604 | Walls total 560 sq ft and each can covers 250 sq ft. How many cans should be bought?
Translated to Python:
```python
import math
area = 560
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
Out — 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0049605 | Goods bought on April 25, 2019 carry a 12-month warranty. When does it expire?
Computation in Python:
from datetime import date
start = date(2019, 4, 25)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2020-04-25", "printed": "2020-04-25", "notation": null} |
nlprog_det-setting-0049606 | The paralegal logged 4 hours at a rate of $250. How much is billed?
We can compute it in Python.
```python
hours = 4
rate = 250
bill = hours * rate # 1000
print(f"{bill:.2f}")
```
Executed, it shows: 1000.00
That comes to $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0049607 | A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?
Python does the arithmetic:
```python
recovery = 150000
rate = 40 / 100 # 0.4
fee = recovery * rate # 60000.0
print(f"{fee:.2f}")
```
Execution prints 60000.00.
The fee is $60,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "60000.00", "printed": "60000.00", "notation": null} |
nlprog_det-setting-0049608 | Fixed costs are $4,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?
400 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0049609 | <|start|><|user|>
A 5% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
The new rent is $1,575.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "The new rent is $1,575.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0049610 | Convert 40 °C to Fahrenheit.
Here's the code.
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
(Console output: 104)
It equals 104 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0049611 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?
Code:
```python
base = 12
rate = 4.2
used = 5
free = 3
bill = base + rate * max(0, used - free) # 20.4
print(f"{bill:.2f}")
```
# console output: 20.40
The bill is $20.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "20.40", "printed": "20.40", "notation": null} |
nlprog_det-setting-0049612 | Fuel for 450 miles at 30 mpg, with gas at $3.19/gallon: what is the cost? Fuel costs $47.85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "47.85", "printed": "47.85", "notation": null} |
nlprog_det-setting-0049613 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
Python makes this quick:
```python
rate = 16.0
hours = 44
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 96.0
pay = regular + overtime # 736.0
print(f"{pay:.2f}")
```
Output = 736.00
Idris earns $73... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "736.00", "printed": "736.00", "notation": null} |
nlprog_det-setting-0049614 | <|start|><|user|>
Meals are $74 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1546
print(total)
```
Result: 1546
The allowance is $1,... | chat | [
{
"role": "user",
"content": "Meals are $74 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 = 74\nlodging_rate = 110\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1546", "printed": "1546", "notation": null} |
nlprog_det-setting-0049615 | <|start|><|user|>
A 170-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
distance = 170
speed = 40
minutes = distance / speed * 60 # 255.0
print(round(minutes))
Printed result — 255
255 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 170-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": " distance = 170\n speed = 40\n minutes = distance / speed * 60 # 255.0\n print(round(minutes))\nPrinted result — 255\n\n255 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0049616 | Sales went from 800 to 400. What is the percent change?
Python does the arithmetic:
```python
old = 800
new = 400
change = (new - old) / old * 100 # -50.0
print(round(change))
```
What it prints — -50
It changed by -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0049617 | <|start|><|user|>
Which is cheaper per unit: 6 for $9.69 (A) or 20 for $22.45 (B)?<|eot|>
<|assistant|>
```python
pack_a = 9.69 / 6 # 1.615
pack_b = 22.45 / 20 # 1.1225
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Console output — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $9.69 (A) or 20 for $22.45 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 9.69 / 6 # 1.615\npack_b = 22.45 / 20 # 1.1225\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nConsole output — ... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0049618 | Tobias earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?
```python
rate = 20.0
hours = 55
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 450.0
pay = regular + overtime # 1250.0
print(f"{pay:.2f}")
```
Interpreter output — 1250.00
Tobias earns $1,250... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0049619 | Copies cost $10 plus $0.25 for each page beyond 10. How much for 100 pages?
Script:
```python
pages = 100
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 32.5
print(f"{cost:.2f}")
```
Python prints: 32.50
The total is $32.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "32.50", "printed": "32.50", "notation": null} |
nlprog_det-setting-0049622 | <|start|><|user|>
Helga lends $20,000 at 5% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
principal = 20000
rate = 5 / 100 # 0.05
years = 6
interest = principal * rate * years # 6000.0
print(f"{interest:.2f}")
The script prints: 6000.00
It earns $6,000.00... | chat | [
{
"role": "user",
"content": "Helga lends $20,000 at 5% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": " principal = 20000\n rate = 5 / 100 # 0.05\n years = 6\n interest = principal * rate * years # 6000.0\n print(f\"{int... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0049623 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Buying 3 desk lamps at $30 each, 1 folders at $26 each, 6 pens at $22 each, 3 water bottles at $14 each, someone hands over $300. What change comes back?<|eot|>
<|assistant|>
```python
items = [(3, 30), (1, 26), (6, 22), (3, 14)]
total = sum(q * p for q, ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Buying 3 desk lamps at $30 each, 1 folders at $26 each, 6 pens at $22 each, 3 water bottles at $14 each, someone hands over $300. What change comes back?"
},
{
"role": "assistant",
"content... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0049624 | <|start|><|user|>
A measure needs at least 75% of 130 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 130
needed = math.ceil(voters * 75 / 100) # 98
print(needed)
```
The program prints 98.
98 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 75% of 130 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 130\nneeded = math.ceil(voters * 75 / 100) # 98\nprint(needed)\n```\nThe program prints 98.\n\n98 votes are needed... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0049625 | 3 runs at 200 calories each burn how many calories in total?
Here's the code.
```python
per_session = 200
sessions = 3
total = per_session * sessions # 600
print(total)
```
Printed: 600
That burns 600 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0049626 | <|start|><|user|>
On which weekday does August 10, 2020 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2020, 8, 10) # datetime.date(2020, 8, 10)
print(hearing.strftime("%A"))
```
Printed = Monday
August 10, 2020 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does August 10, 2020 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2020, 8, 10) # datetime.date(2020, 8, 10)\nprint(hearing.strftime(\"%A\"))\n```\nPrinted = Monday\n\nAugust 10, 2020 is a Monday.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0049627 | <|start|><|system|>
Tools (call with JSON):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameter... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"interpreter\", \"description\": \"Eva... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0049628 | Copies cost $10 plus $0.50 for each page beyond 0. How much for 70 pages? The copy costs $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0049629 | 193 copies of a 11-page packet are printed at $0.05 per page. What is the cost?
Coded up:
```python
pages = 11
copies = 193
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 106.15
print(f"{cost:.2f}")
```
The code prints 106.15.
The job costs $106.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "106.15", "printed": "106.15", "notation": null} |
nlprog_det-setting-0049630 | A claim accrued on November 9, 2019. The limitations period is 3 years. On what date does it expire?
A short script:
```python
from datetime import date
accrued = date(2019, 11, 9) # datetime.date(2019, 11, 9)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 11, 9)
print(expires.i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2022-11-09", "printed": "2022-11-09", "notation": null} |
nlprog_det-setting-0049631 | <|start|><|user|>
Delia earns a 6% commission on $103,730 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 103730
rate = 6 / 100 # 0.06
commission = sales * rate # 6223.8
print(f"{commission:.2f}")
```
# program output: 6223.80
Delia earns $6,223.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Delia earns a 6% commission on $103,730 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 103730\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 6223.8\nprint(f\"{commission:.2f}\")\n```\n# program output: 6223.80\n\nD... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6223.80", "printed": "6223.80", "notation": null} |
nlprog_det-setting-0049632 | Nikhil earns a 5% commission on $65,664 of sales. What is the commission?
sales = 65664
rate = 5 / 100 # 0.05
commission = sales * rate # 3283.2000000000003
print(f"{commission:.2f}")
# printed: 3283.20
The commission is $3,283.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3283.20", "printed": "3283.20", "notation": null} |
nlprog_det-setting-0049633 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Pay is $25.00/hour, with overtime at 1.... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"... | nlprog_det | setting | original | null | deterministic | [] | [] | 253 | {"gold": "1525.00", "printed": "1525.00", "notation": null} |
nlprog_det-setting-0049634 | Rania's scores were 70, 52, 82 and 92. What is the average score?
Here is a short program for it.
```python
scores = [70, 52, 82, 92]
average = sum(scores) // len(scores) # 74
print(average)
```
Interpreter output: 74
The mean is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0049635 | A garage charges $5 an hour, never more than $15 a day. How much for 9 hours?
Translated to Python:
```python
rate = 5
hours = 9
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Printed result: 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0049636 | Fuel for 240 miles at 24 mpg, with gas at $3.89/gallon: what is the cost?
Fuel costs $38.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "38.90", "printed": "38.90", "notation": null} |
nlprog_det-setting-0049637 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A party has 14 days to respond to a motion served on October 5, 2018, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
It is due October 22, 2018.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on October 5, 2018, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "It is d... | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "2018-10-22", "printed": "2018-10-22", "notation": null} |
nlprog_det-setting-0049638 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $1,000. How much after 59 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 59
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Program output — 1000
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $1,000. How much after 59 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 59\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nProgram output — 1000\n\n$1,000 is owed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0049639 | Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 3,000 gallons?
$20.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0049640 | <|start|><|user|>
The building opened in 2000. How many years had passed by 2013?<|eot|>
<|assistant|>
```python
start_year = 2000
end_year = 2013
print(end_year - start_year)
```
Execution prints 13, as expected.
That is 13 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2000. How many years had passed by 2013?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2000\nend_year = 2013\nprint(end_year - start_year)\n```\nExecution prints 13, as expected.\n\nThat is 13 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0049641 | A trial runs from August 28, 2027 to September 5, 2027, counting both days. How many calendar days is that?
Here is the program.
```python
from datetime import date
first = date(2027, 8, 28) # datetime.date(2027, 8, 28)
last = date(2027, 9, 5) # datetime.date(2027, 9, 5)
days = (last - first).days + 1 # 9
print(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0049642 | Papers were served by mail on August 13, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Python makes this quick:
```python
from datetime import date, timedelta
served = date(2018, 8, 13) # datetime.date(2018, 8, 13)
response_days = 14
mail_days = 3
due = served + t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2018-08-30", "printed": "2018-08-30", "notation": null} |
nlprog_det-setting-0049643 | <|start|><|user|>
With 7 rows of 11 chairs and 38 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
39 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 7 rows of 11 chairs and 38 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "39 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0049644 | <|start|><|user|>
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 3 # 19200.0
print(f"{per_client:.2f}")
```
Out:
19200.0... | chat | [
{
"role": "user",
"content": "3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0049645 | A hall has 18 rows of 13 seats, and 35 seats are empty. How many people are seated?
199 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "199", "printed": "199", "notation": null} |
nlprog_det-setting-0049646 | Notice was given on March 11, 2028. The notice period is 90 days. When does it run out?
Programmatically:
```python
from datetime import date, timedelta
start = date(2028, 3, 11) # datetime.date(2028, 3, 11)
end = start + timedelta(days=90) # datetime.date(2028, 6, 9)
print(end.isoformat())
```
Python prints 2028-06... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2028-06-09", "printed": "2028-06-09", "notation": null} |
nlprog_det-setting-0049647 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
From a $7,500 retainer, 14 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
retainer = 7500
hours = 14
rate = 275
left = retainer - hours * rate # 3650
print(left)
This prints 3650, as expected.
$3,650 of t... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "From a $7,500 retainer, 14 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": " retainer = 7500\n hours = 14\n rate = 275\n left = reta... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3650", "printed": "3650", "notation": null} |
nlprog_det-setting-0049648 | <|start|><|user|>
A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
```
When run, it prints 18, as expected.
$18 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 282\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nWhen run, it prints 18,... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0049649 | A 30 lb package ships at $10 base plus $0.75/lb. What is the charge?
A Python solution:
```python
base = 10
per_pound = 0.75
weight = 30
cost = base + per_pound * weight # 32.5
print(f"{cost:.2f}")
```
(Execution result: 32.50)
The charge is $32.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "32.50", "printed": "32.50", "notation": null} |
nlprog_det-setting-0049650 | At a 8% tax rate, what is the tax on $353.37?
Set it up in Python:
```python
price = 353.37
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 28.2696
print(f"{tax:.2f}")
```
# console output: 28.27
The tax is $28.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "28.27", "printed": "28.27", "notation": null} |
nlprog_det-setting-0049651 | What commission does Ivan make on $103,109 in sales at 3%?
Program:
```python
sales = 103109
rate = 3 / 100 # 0.03
commission = sales * rate # 3093.27
print(f"{commission:.2f}")
```
Printed — 3093.27
The commission is $3,093.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3093.27", "printed": "3093.27", "notation": null} |
nlprog_det-setting-0049652 | Counting the first and last day, how many days are there from August 3, 2022 through August 11, 2022?
That is 9 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0049653 | <|start|><|system|>
Tool definitions:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"run_python\", \"description\": \"Run Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 283 | {"gold": "37.60", "printed": "37.60", "notation": null} |
nlprog_det-setting-0049654 | Scale 200 g of sugar from 2 servings to 3 servings.
As a program:
grams = 200
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 300
print(scaled)
Executing it gives 300.
Use 300 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0049655 | How many weekdays (Monday to Friday) fall after October 22, 2025 up to and including November 9, 2025?
Programmatically:
```python
from datetime import date, timedelta
start = date(2025, 10, 22)
end = date(2025, 11, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0049656 | <|start|><|user|>
Ana lends $2,500 at 2% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 2 / 100 # 0.02
years = 5
interest = principal * rate * years # 250.0
print(f"{interest:.2f}")
```
Run result — 250.00
The interest is $250.00.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Ana lends $2,500 at 2% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 2 / 100 # 0.02\nyears = 5\ninterest = principal * rate * years # 250.0\nprint(f\"{interest:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0049657 | A room is 12 feet by 10 feet. Flooring costs $6 per square foot. What does it cost to floor the room?
The flooring costs $720. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0049658 | Counting only Monday through Friday, how many business days are there after February 2, 2018 through March 14, 2018?
28 weekdays. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0049659 | <|start|><|user|>
Which is cheaper per unit: 8 for $4.19 (A) or 18 for $28.48 (B)?<|eot|>
<|assistant|>
```python
pack_a = 4.19 / 8
pack_b = 28.48 / 18
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
It prints A.
A has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $4.19 (A) or 18 for $28.48 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 4.19 / 8\npack_b = 28.48 / 18\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nIt prints A.\n\nA has the lower unit price.... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0049660 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $1,000. What is owed after 28 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 28
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Printed: 1000)
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 28 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 28\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Printed: 1000)\n\n$1,000 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0049661 | <|start|><|user|>
A appointment starts at 10:15 AM and lasts 25 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The script prints 10:40 AM.
The appointment finis... | chat | [
{
"role": "user",
"content": "A appointment starts at 10:15 AM and lasts 25 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 15\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "10:40 AM", "printed": "10:40 AM", "notation": null} |
nlprog_det-setting-0049662 | <|start|><|system|>
You may call the tools below.
{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
How much is a $69 daily meal allo... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program... | nlprog_det | setting | original | null | deterministic | [] | [] | 193 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0049663 | <|start|><|user|>
199 copies of a 10-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 10
copies = 199
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 99.5
print(f"{cost:.2f}")
```
stdout: 99.50
The job costs $99.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "199 copies of a 10-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 10\ncopies = 199\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 99.5\nprint(f\"{cost:.2f}\")\n```\nstdout: 99.5... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "99.50", "printed": "99.50", "notation": null} |
nlprog_det-setting-0049664 | <|start|><|system|>
Functions:
[{"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": "business_... | chat | [
{
"role": "system",
"content": "Functions:\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\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 405 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0049665 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
```
stdout:
15000.00
The fee is $15,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 15000.0\nprint(f\"{fee:.2f}\")\n```\nstdout:\n15000.00\n\nThe fee is $15,000... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0049666 | A clerk's office charges $150 for each filing. Ada submits 13 filings. What is the total fee?
Here's the code.
```python
fee = 150
filings = 13
total = fee * filings
print(total)
```
Python prints 1950.
The filings cost $1,950 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1950", "printed": "1950", "notation": null} |
nlprog_det-setting-0049667 | <|start|><|user|>
Someone works 20 hours at $24.35 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 24.35
hours = 20
earnings = rate * hours
print(f"{earnings:.2f}")
```
stdout = 487.00
The pay is $487.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 20 hours at $24.35 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.35\nhours = 20\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nstdout = 487.00\n\nThe pay is $487.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "487.00", "printed": "487.00", "notation": null} |
nlprog_det-setting-0049668 | <|start|><|system|>
Functions:
[{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Count the days between F... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "158", "printed": "158", "notation": null} |
nlprog_det-setting-0049669 | Convert 15.5 km to meters.
```python
km = 15.5
meters = km * 1000 # 15500.0
print(round(meters))
```
Running it prints 15500, as expected.
That is 15,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "15500", "printed": "15500", "notation": null} |
nlprog_det-setting-0049670 | <|start|><|user|>
Sami earns a 4% commission on $30,690 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 30690
rate = 4 / 100 # 0.04
commission = sales * rate # 1227.6000000000001
print(f"{commission:.2f}")
```
Execution prints 1227.60, as expected.
The commission is $1,227.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sami earns a 4% commission on $30,690 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 30690\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1227.6000000000001\nprint(f\"{commission:.2f}\")\n```\nExecution prints 1227... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1227.60", "printed": "1227.60", "notation": null} |
nlprog_det-setting-0049671 | A hall has 18 rows of 9 seats, and 3 seats are empty. How many people are seated?
Let the code do the arithmetic:
```python
rows = 18
per_row = 9
empty = 3
seated = rows * per_row - empty # 159
print(seated)
```
The interpreter prints: 159
159 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "159", "printed": "159", "notation": null} |
nlprog_det-setting-0049672 | A hearing is set for July 27, 2030. What day of the week is that?
Computation in Python:
from datetime import date
hearing = date(2030, 7, 27) # datetime.date(2030, 7, 27)
print(hearing.strftime("%A"))
Run result: Saturday
July 27, 2030 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0049673 | <|start|><|system|>
Functions:
{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "business_days", "description": "Count business ... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}\n{... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0049674 | <|start|><|user|>
A clerk's office charges $150 for each filing. Pilar submits 10 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 150
filings = 10
total = fee * filings # 1500
print(total)
```
It outputs 1500.
The total fee is $1,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $150 for each filing. Pilar submits 10 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 150\nfilings = 10\ntotal = fee * filings # 1500\nprint(total)\n```\nIt outputs 1500.\n\nThe total fee is $1,500."... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0049675 | <|start|><|user|>
Starting from $8,000, the team spends $1,611, $1,832, $3,087. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [1611, 1832, 3087]
left = budget - sum(expenses) # 1470
print(left)
```
Shell output — 1470
$1,470 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $1,611, $1,832, $3,087. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [1611, 1832, 3087]\nleft = budget - sum(expenses) # 1470\nprint(left)\n```\nShell output — 1470\n\n$1,470 is left... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1470", "printed": "1470", "notation": null} |
nlprog_det-setting-0049676 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_s... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 326 | {"gold": "1.20", "printed": "1.20", "notation": null} |
nlprog_det-setting-0049677 | What commission does Cyrus make on $103,216 in sales at 5%?
Python makes this quick:
sales = 103216
rate = 5 / 100 # 0.05
commission = sales * rate # 5160.8
print(f"{commission:.2f}")
Printed:
5160.80
The commission is $5,160.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5160.80", "printed": "5160.80", "notation": null} |
nlprog_det-setting-0049678 | With 9 rows of 12 chairs and 8 empty chairs, how many chairs are taken?
The computation:
```python
rows = 9
per_row = 12
empty = 8
seated = rows * per_row - empty # 100
print(seated)
```
Out: 100
100 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0049679 | A $1,500 security deposit has deductions of $45, $200 and $85. How much is refunded?
Translated to Python:
```python
deposit = 1500
deductions = [45, 200, 85]
refund = deposit - sum(deductions) # 1170
print(refund)
```
That prints 1170.
The refund is $1,170. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1170", "printed": "1170", "notation": null} |
nlprog_det-setting-0049680 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Attendance was 189 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 189
total = 200
percent = present / total * 100 # 94.5
print(round(percent, 1))
```
The run gives 94.5.
Attendance was 94.5%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Attendance was 189 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 189\ntotal = 200\npercent = present / total * 100 # 94.5\nprint(round(percent, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "94.5", "printed": "94.5", "notation": null} |
nlprog_det-setting-0049682 | <|start|><|user|>
Filing fees are $75 per document. What do 10 filings cost?<|eot|>
<|assistant|>
fee = 75
filings = 10
total = fee * filings # 750
print(total)
Run result: 750
The filings cost $750 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $75 per document. What do 10 filings cost?"
},
{
"role": "assistant",
"content": " fee = 75\n filings = 10\n total = fee * filings # 750\n print(total)\nRun result: 750\n\nThe filings cost $750 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0049683 | What is a 18% tip on a $237.88 bill?
Python makes this quick:
```python
bill = 237.88
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 42.8184
print(f"{tip:.2f}")
```
Output: 42.82
Leave $42.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "42.82", "printed": "42.82", "notation": null} |
nlprog_det-setting-0049684 | A printer costs $300. It is 40% off. What is the sale price?
The computation:
price = 300
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 180.0
print(f"{sale_price:.2f}")
The program prints: 180.00
It costs $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0049685 | <|start|><|user|>
A pack of 25 hard drives sells for $975. What does each cost?<|eot|>
<|assistant|>
```python
total = 975
count = 25
per_item = total // count # 39
print(per_item)
```
# stdout: 39
Each one costs $39.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 25 hard drives sells for $975. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 975\ncount = 25\nper_item = total // count # 39\nprint(per_item)\n```\n# stdout: 39\n\nEach one costs $39."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0049686 | <|start|><|user|>
A kettle costs $80. It is 25% off. What is the sale price?<|eot|>
<|assistant|>
price = 80
discount = 25 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
Printed:
60.00
It costs $60.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $80. It is 25% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 80\n discount = 25 / 100\n sale_price = price * (1 - discount)\n print(f\"{sale_price:.2f}\")\nPrinted:\n60.00\n\nIt costs $60.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0049687 | <|start|><|user|>
A recipe for 2 people uses 100 grams of lentils. How many grams are needed for 10 people?<|eot|>
<|assistant|>
Use 500 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 100 grams of lentils. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "Use 500 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "500", "printed": "500", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.