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-0048835 | <|start|><|user|>
A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 17 thousand gallons?<|eot|>
<|assistant|>
base = 12
rate = 4.75
used = 17
free = 3
bill = base + rate * max(0, used - free) # 78.5
print(f"{bill:.2f}")
The run gives: 78.50
T... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 17 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 12\n rate = 4.75\n used = 17\n free = 3\n bill = base + rate * max(0, used - free... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "78.50", "printed": "78.50", "notation": null} |
nlprog_det-setting-0048836 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
How many whole days and leftover hours are in 156 hours?<|eot|>
<|assistant|>
```python
hours = 156
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executing it gives 6 days and 12 hours, as expected.
That is 6 days ... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 156 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 156\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6 days and 12 hours", "printed": "6 days and 12 hours", "notation": null} |
nlprog_det-setting-0048837 | Abel earns a 8% commission on $90,111 of sales. What is the commission?
The program:
```python
sales = 90111
rate = 8 / 100 # 0.08
commission = sales * rate # 7208.88
print(f"{commission:.2f}")
```
It outputs: 7208.88
The commission is $7,208.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "7208.88", "printed": "7208.88", "notation": null} |
nlprog_det-setting-0048838 | Abel drove 406 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
As a program:
miles = 406
rate = 0.65
reimbursement = miles * rate # 263.90000000000003
print(f"{reimbursement:.2f}")
What it prints — 263.90
The reimbursement is $263.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "263.90", "printed": "263.90", "notation": null} |
nlprog_det-setting-0048839 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
36 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 36
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Printed... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "36 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 36\ngroups = 4\nper_group, remainder... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "9 each, 0 left over", "printed": "9 each, 0 left over", "notation": null} |
nlprog_det-setting-0048840 | Find the mean of these test scores: 52, 56, 81, 88, 51, 56 and 57.
The average score is 63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0048841 | Express 378 hours in days and hours.
Python code:
```python
hours = 378
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(Result: 15 days and 18 hours)
378 hours is 15 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "15 days and 18 hours", "printed": "15 days and 18 hours", "notation": null} |
nlprog_det-setting-0048842 | $2,000 is invested at 2% compounded yearly. What is it worth after 5 years?
One way, in code:
principal = 2000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 2208.1616064
print(f"{value:.2f}")
(Result: 2208.16)
It is worth $2,208.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2208.16", "printed": "2208.16", "notation": null} |
nlprog_det-setting-0048843 | <|start|><|user|>
How many of 104 votes make 67% (round up)?<|eot|>
<|assistant|>
import math
voters = 104
needed = math.ceil(voters * 67 / 100) # 70
print(needed)
On running, it outputs 70.
At least 70 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 104 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": " import math\n voters = 104\n needed = math.ceil(voters * 67 / 100) # 70\n print(needed)\nOn running, it outputs 70.\n\nAt least 70 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0048844 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?
Let's compute it with Python.
```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}")
```
It prints 1250.00.
Noor ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0048845 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "descrip... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 276 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0048846 | A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 109-page copy cost?
In code:
```python
pages = 109
base = 15
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 39.75
print(f"{cost:.2f}")
```
The run gives 39.75.
The copy costs $39.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "39.75", "printed": "39.75", "notation": null} |
nlprog_det-setting-0048847 | Copies cost $15 plus $0.10 for each page beyond 0. How much for 11 pages?
As Python:
pages = 11
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 16.1
print(f"{cost:.2f}")
Out:
16.10
The total is $16.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "16.10", "printed": "16.10", "notation": null} |
nlprog_det-setting-0048848 | <|start|><|user|>
A customer buys 6 labels at $14 each, 2 flash drives at $19 each, 2 lanyards at $12 each, 4 mugs at $2 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
The change is $46.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A customer buys 6 labels at $14 each, 2 flash drives at $19 each, 2 lanyards at $12 each, 4 mugs at $2 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "The change is $46."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0048849 | At a 6% tax rate, what is the tax on $61.56?
Here's the code.
```python
price = 61.56
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 3.6936
print(f"{tax:.2f}")
```
Run result = 3.69
The tax is $3.69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3.69", "printed": "3.69", "notation": null} |
nlprog_det-setting-0048851 | Nadia and Hana share $2,940 in the ratio 2:3. How much does Nadia get?
Here is a short program for it.
```python
total = 2940
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1176
print(share_a)
```
Program output: 1176
Nadia gets $1,176. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1176", "printed": "1176", "notation": null} |
nlprog_det-setting-0048852 | A trial runs from May 24, 2020 to June 6, 2020, counting both days. How many calendar days is that?
Here's the code.
```python
from datetime import date
first = date(2020, 5, 24) # datetime.date(2020, 5, 24)
last = date(2020, 6, 6) # datetime.date(2020, 6, 6)
days = (last - first).days + 1 # 14
print(days)
```
Prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0048853 | Express 375 hours in days and hours.
The program:
```python
hours = 375
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives: 15 days and 15 hours
375 hours is 15 days and 15 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "15 days and 15 hours", "printed": "15 days and 15 hours", "notation": null} |
nlprog_det-setting-0048854 | Lucia has 16 documents to file, and each filing costs $350. How much are the filing fees in total?
Coded up:
```python
fee = 350
filings = 16
total = fee * filings # 5600
print(total)
```
Console output: 5600
The total fee is $5,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5600", "printed": "5600", "notation": null} |
nlprog_det-setting-0048855 | <|start|><|user|>
What is 15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
Output — 59
It equals 59 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 15\nfahrenheit = celsius * 9 / 5 + 32 # 59.0\nprint(round(fahrenheit))\n```\nOutput — 59\n\nIt equals 59 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0048856 | How many meters are in 80.5 kilometers?
Set it up in Python:
```python
km = 80.5
meters = km * 1000 # 80500.0
print(round(meters))
```
# program output: 80500
That is 80,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "80500", "printed": "80500", "notation": null} |
nlprog_det-setting-0048857 | After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Translated to Python:
```python
award = 48000
fee = award * 30 / 100 # 14400.0
remaining = award - fee # 33600.0
per_client = remaining / 4 # 8400.0
print(f"{per_client:.2f}")
```
Run result: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "8400.00", "printed": "8400.00", "notation": null} |
nlprog_det-setting-0048858 | With 12 rows of 16 chairs and 36 empty chairs, how many chairs are taken?
Coded up:
```python
rows = 12
per_row = 16
empty = 36
seated = rows * per_row - empty # 156
print(seated)
```
Run it and it prints: 156
156 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0048859 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
How much sales tax is charged on a $621.70 purchase at 5%?<|eot|>
<|assistant|>
```python
price = 621.7
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 31.085000000000004
print(f"{tax:.2f}")
```
Result:
31.09
The tax is $31.09.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "How much sales tax is charged on a $621.70 purchase at 5%?"
},
{
"role": "assistant",
"content": "```python\nprice = 621.7\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 31.085000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "31.09", "printed": "31.09", "notation": null} |
nlprog_det-setting-0048860 | <|start|><|user|>
Starting from $25,000, the team spends $1,730, $3,031, $2,202, $2,745. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [1730, 3031, 2202, 2745]
left = budget - sum(expenses)
print(left)
```
Result = 15292
$15,292 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $1,730, $3,031, $2,202, $2,745. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [1730, 3031, 2202, 2745]\nleft = budget - sum(expenses)\nprint(left)\n```\nResult = 15292\n\n$15,292 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "15292", "printed": "15292", "notation": null} |
nlprog_det-setting-0048861 | Pack A has 6 items for $5.32. Pack B has 18 items for $30.18. Which has the lower price per item?
Python, step by step:
pack_a = 5.32 / 6 # 0.8866666666666667
pack_b = 30.18 / 18 # 1.6766666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
# out: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0048862 | Scale 240 g of oats from 8 servings to 6 servings.
Computation in Python:
```python
grams = 240
serves = 8
needed_for = 6
scaled = grams * needed_for // serves # 180
print(scaled)
```
This prints 180, as expected.
180 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0048863 | <|start|><|user|>
The meal allowance is $79 per day. What is it for 9 days?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 79
total = days * meal_rate # 711
print(total)
```
The printout reads 711.
The allowance is $711.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $79 per day. What is it for 9 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 79\ntotal = days * meal_rate # 711\nprint(total)\n```\nThe printout reads 711.\n\nThe allowance is $711."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "711", "printed": "711", "notation": null} |
nlprog_det-setting-0048864 | Fines run at $100 per day up to a maximum of $2,500. How much after 36 days?
As Python:
```python
per_day = 100
days = 36
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
When run, it prints 2500.
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0048865 | At 1.5% a month (simple), what interest builds on $4,000 over 2 months? $120.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0048866 | 36 sticky pads cost $12 apiece. With 8% tax added, what is the total?
Here's the code.
```python
quantity = 36
unit_price = 12
subtotal = quantity * unit_price # 432
total = subtotal * (1 + 8 / 100) # 466.56000000000006
print(f"{total:.2f}")
```
Executing it gives: 466.56
The invoice total is $466.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "466.56", "printed": "466.56", "notation": null} |
nlprog_det-setting-0048867 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
What average spee... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0048868 | After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Written as code:
```python
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")
```
stdout — 18000.0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0048869 | Bilal earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
Python:
```python
rate = 25.0
hours = 54
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 525.0
pay = regular + overtime # 1525.0
print(f"{pay:.2f}")
```
Shell output — 1525.00
The weekly pay is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "1525.00", "printed": "1525.00", "notation": null} |
nlprog_det-setting-0048870 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A 24-month warranty starts on June 26, 2025. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2025, 6, 26)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A 24-month warranty starts on June 26, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2025, 6, 26)\nmont... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2027-06-26", "printed": "2027-06-26", "notation": null} |
nlprog_det-setting-0048871 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Under a 35% contingency agreement, what fee is owed on a $40,000 award?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 35 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
On running, it outputs: 14000.00
The fee is $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $40,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 35 / 100\nfee = recovery * rate\nprint(f\"{fee:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0048872 | From a $2,500 retainer, 7 hours at $150/hour have been drawn. What remains?
Computing it:
```python
retainer = 2500
hours = 7
rate = 150
left = retainer - hours * rate # 1450
print(left)
```
(Result: 1450)
The remaining balance is $1,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1450", "printed": "1450", "notation": null} |
nlprog_det-setting-0048873 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Maren and Yara share $606 in the ratio 1:2. How much does Maren get?<|eot|>
<|assistant|>
total = 606
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 202
print(share_a)
When run, it prints: 202
Maren's share is $... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Maren and Yara share $606 in the ratio 1:2. How much does Maren get?"
},
{
"role": "assistant",
"content": " total = 606\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (pa... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "202", "printed": "202", "notation": null} |
nlprog_det-setting-0048874 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A party has 14 days to respond to a motion served on April 22, 2022, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 4, 22) # datetim... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on April 22, 2022, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "... | nlprog_det | setting | original | null | deterministic | [] | [] | 187 | {"gold": "2022-05-09", "printed": "2022-05-09", "notation": null} |
nlprog_det-setting-0048875 | <|start|><|user|>
A backpack costs $180. It is 40% off. What is the sale price?<|eot|>
<|assistant|>
The sale price is $108.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A backpack costs $180. It is 40% off. What is the sale price?"
},
{
"role": "assistant",
"content": "The sale price is $108.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0048876 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "get_weather", "description": "Get... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 344 | {"gold": "2027-09-05", "printed": "2027-09-05", "notation": null} |
nlprog_det-setting-0048877 | 28 labels cost $6 apiece. With 5% tax added, what is the total?
The total with tax is $176.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "176.40", "printed": "176.40", "notation": null} |
nlprog_det-setting-0048878 | A car travels 184 miles in 2 hours. What is its average speed in miles per hour?
The average speed is 92 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0048879 | Count 60 days forward from June 8, 2026. What date is that?
Programmatically:
```python
from datetime import date, timedelta
start = date(2026, 6, 8) # datetime.date(2026, 6, 8)
end = start + timedelta(days=60) # datetime.date(2026, 8, 7)
print(end.isoformat())
```
Output of the run: 2026-08-07
It ends on August 7,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2026-08-07", "printed": "2026-08-07", "notation": null} |
nlprog_det-setting-0048880 | <|start|><|user|>
Find the mean of these test scores: 53, 90, 70, 85 and 62.<|eot|>
<|assistant|>
```python
scores = [53, 90, 70, 85, 62]
average = sum(scores) // len(scores) # 72
print(average)
```
It prints: 72
The mean is 72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 53, 90, 70, 85 and 62."
},
{
"role": "assistant",
"content": "```python\nscores = [53, 90, 70, 85, 62]\naverage = sum(scores) // len(scores) # 72\nprint(average)\n```\nIt prints: 72\n\nThe mean is 72."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0048881 | Viktor and Joelle share $1,128 in the ratio 3:5. How much does Viktor get?
As Python:
```python
total = 1128
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
Executing it gives 423, as expected.
Viktor's share is $423. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "423", "printed": "423", "notation": null} |
nlprog_det-setting-0048882 | What day of the week is September 23, 2010?
Here is a short program for it.
```python
from datetime import date
hearing = date(2010, 9, 23) # datetime.date(2010, 9, 23)
print(hearing.strftime("%A"))
```
# console output: Thursday
September 23, 2010 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0048883 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Monthly rent... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 255 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0048884 | Divide 256 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
In code:
```python
total = 256
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executed, it shows: 28 each, 4 left over
The answer: 28 each, 4... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "28 each, 4 left over", "printed": "28 each, 4 left over", "notation": null} |
nlprog_det-setting-0048885 | What day of the week is December 18, 2011?
Python, step by step:
```python
from datetime import date
hearing = date(2011, 12, 18) # datetime.date(2011, 12, 18)
print(hearing.strftime("%A"))
```
Interpreter output: Sunday
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0048886 | At 65 miles per hour, how many minutes does a 65-mile trip take?
```python
distance = 65
speed = 65
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
Python prints: 60
60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0048887 | An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?
$150.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0048888 | A meal costs $210.68. How much is a 25% tip?
Python, step by step:
```python
bill = 210.68
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 52.67
print(f"{tip:.2f}")
```
Printed result — 52.67
Leave $52.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "52.67", "printed": "52.67", "notation": null} |
nlprog_det-setting-0048889 | Uma has 5 documents to file, and each filing costs $405. How much are the filing fees in total?
```python
fee = 405
filings = 5
total = fee * filings
print(total)
```
Interpreter output — 2025
The total fee is $2,025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "2025", "printed": "2025", "notation": null} |
nlprog_det-setting-0048890 | A bicycle helmet costs $250. It is 40% off. What is the sale price?
Let's compute it with Python.
```python
price = 250
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 150.0
print(f"{sale_price:.2f}")
```
This prints 150.00.
It costs $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0048891 | <|start|><|user|>
Count the days between March 28, 2027 and December 4, 2027.<|eot|>
<|assistant|>
It is 251 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between March 28, 2027 and December 4, 2027."
},
{
"role": "assistant",
"content": "It is 251 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0048892 | To read 728 pages in 14 days, how many pages per day are needed?
Programmatically:
pages = 728
days = 14
per_day = pages // days # 52
print(per_day)
Shell output: 52
That is 52 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0048893 | <|start|><|user|>
A hall has 10 rows of 14 seats, and 38 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 10
per_row = 14
empty = 38
seated = rows * per_row - empty # 102
print(seated)
```
Executing it gives: 102
102 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 10 rows of 14 seats, and 38 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 10\nper_row = 14\nempty = 38\nseated = rows * per_row - empty # 102\nprint(seated)\n```\nExecuting it gives: 102\n\n102 peop... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0048894 | <|start|><|user|>
A 36-month warranty starts on June 6, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 6, 6)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat()... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on June 6, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 6, 6)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2022-06-06", "printed": "2022-06-06", "notation": null} |
nlprog_det-setting-0048896 | <|start|><|user|>
Each of Kofi's runs burns 250 calories. How many calories over 5 runs?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 5
total = per_session * sessions # 1250
print(total)
```
(Printed: 1250)
That burns 1250 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Kofi's runs burns 250 calories. How many calories over 5 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions # 1250\nprint(total)\n```\n(Printed: 1250)\n\nThat burns 1250 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0048897 | A claim accrued on February 9, 2015. The limitations period is 5 years. On what date does it expire?
We write it as a program:
```python
from datetime import date
accrued = date(2015, 2, 9) # datetime.date(2015, 2, 9)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 2, 9)
print(ex... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2020-02-09", "printed": "2020-02-09", "notation": null} |
nlprog_det-setting-0048898 | <|start|><|user|>
What percentage of $8,000 is $2,800?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 2800
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
It prints: 35.0
That is 35.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $2,800?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 2800\npercent = spent / budget * 100 # 35.0\nprint(round(percent, 1))\n```\nIt prints: 35.0\n\nThat is 35.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0048899 | <|start|><|user|>
Which is cheaper per unit: 8 for $11.46 (A) or 15 for $9.03 (B)?<|eot|>
<|assistant|>
```python
pack_a = 11.46 / 8 # 1.4325
pack_b = 9.03 / 15 # 0.602
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It outputs: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $11.46 (A) or 15 for $9.03 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.46 / 8 # 1.4325\npack_b = 9.03 / 15 # 0.602\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nIt outputs: B\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048900 | A training session lasted 3 hours and 7 minutes. How many minutes is that?
Here's the code.
```python
hours = 3
minutes = 7
total_minutes = hours * 60 + minutes # 187
print(total_minutes)
```
That prints: 187
That is 187 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0048901 | <|start|><|user|>
A lawyer's fee is 35% of a $90,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
```
It prints 31500.00.
The lawyer's fee comes to $31,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 35% of a $90,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 31499.999999999996\nprint(f\"{fee:.2f}\")\n```\nIt prints 31500.00.\n\nThe lawyer... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0048902 | Water costs $18 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons?
Python version:
```python
base = 18
rate = 5.1
used = 19
free = 3
bill = base + rate * max(0, used - free) # 99.6
print(f"{bill:.2f}")
```
The printout reads 99.60.
$99.60 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "99.60", "printed": "99.60", "notation": null} |
nlprog_det-setting-0048903 | Count 90 days forward from October 19, 2021. What date is that?
The program:
from datetime import date, timedelta
start = date(2021, 10, 19) # datetime.date(2021, 10, 19)
end = start + timedelta(days=90) # datetime.date(2022, 1, 17)
print(end.isoformat())
What it prints — 2022-01-17
It ends on Janua... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2022-01-17", "printed": "2022-01-17", "notation": null} |
nlprog_det-setting-0048904 | <|start|><|user|>
4 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 4
rate = 410
bill = hours * rate # 1640
print(f"{bill:.2f}")
```
It prints 1640.00, as expected.
That comes to $1,640.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 410\nbill = hours * rate # 1640\nprint(f\"{bill:.2f}\")\n```\nIt prints 1640.00, as expected.\n\nThat comes to $1,640.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0048905 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A 18 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 0.75
weight = 18
cost = base + per_pound * weight # 25.5
print(f"{cost:.2f}")
```
(Program output: 25.50)
Shipping costs $25.50.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A 18 lb package ships at $12 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 0.75\nweight = 18\ncost = base + per_pound * weight #... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "25.50", "printed": "25.50", "notation": null} |
nlprog_det-setting-0048906 | How many whole days and leftover hours are in 328 hours?
That is 13 days and 16 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "13 days and 16 hours", "printed": "13 days and 16 hours", "notation": null} |
nlprog_det-setting-0048907 | Goods bought on June 11, 2020 carry a 18-month warranty. When does it expire?
Python makes this quick:
```python
from datetime import date
start = date(2020, 6, 11)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2021-12-11", "printed": "2021-12-11", "notation": null} |
nlprog_det-setting-0048908 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?
The computation:
```python
rate = 16.0
hours = 46
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 144.0
pay = regular + overtime # 784.0
print(f"{pay:.2f}")
```
Program output: 784.00
The weekly pay ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0048909 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
At 40 miles per hour, how many minutes does a 260-mile trip take?<|eot|>
<|assistant|>
```python
distance = 260
speed = 40
minutes = distance / speed * 60 # 390.0
print(round(minutes))
```
The script prints 390, as expected.
390 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 260-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 260\nspeed = 40\nminutes = distance / speed * 60 # 390.0\nprint(rou... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0048910 | A settlement of $522 is split equally among 6 parties. How much does each party receive?
Here's the code.
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
The program outputs 87.
Each party receives $87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0048911 | Under a 35% contingency agreement, what fee is owed on a $25,000 award?
A Python solution:
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
Printed: 8750.00
The lawyer's fee comes to $8,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0048912 | 3 walks at 300 calories each burn how many calories in total? That burns 900 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0048913 | <|start|><|user|>
Sofia has 19 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 35
filings = 19
total = fee * filings # 665
print(total)
```
Result:
665
The total fee is $665.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sofia has 19 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 19\ntotal = fee * filings # 665\nprint(total)\n```\nResult:\n665\n\nThe total fee is $665."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "665", "printed": "665", "notation": null} |
nlprog_det-setting-0048914 | A 300-mile drive at a steady 50 mph takes how many minutes?
In code:
```python
distance = 300
speed = 50
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
It prints: 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0048915 | <|start|><|user|>
2.5 hours of work at $150 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 2.5
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
(Out: 375.00)
The bill is $375.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2.5 hours of work at $150 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 2.5\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\n(Out: 375.00)\n\nThe bill is $375.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0048917 | A workshop lasted 1 hours and 53 minutes. How many minutes is that? The workshop lasted 113 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0048918 | $10,000 is invested at 4% compounded yearly. What is it worth after 3 years?
A Python solution:
principal = 10000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 11248.640000000001
print(f"{value:.2f}")
Output:
11248.64
The balance is $11,248.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "11248.64", "printed": "11248.64", "notation": null} |
nlprog_det-setting-0048919 | <|start|><|user|>
How many 2-foot square tiles cover a 18 ft by 15 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 18
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 68
print(tiles)
Running it prints: 68
68 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 18 ft by 15 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 18\n width = 15\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 68\n print(tiles)\nRunning it pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0048920 | Under a 40% contingency agreement, what fee is owed on a $25,000 award?
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
Run it and it prints 10000.00.
The fee is $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0048921 | A hall has 16 rows of 20 seats, and 20 seats are empty. How many people are seated?
Computation in Python:
```python
rows = 16
per_row = 20
empty = 20
seated = rows * per_row - empty # 300
print(seated)
```
On running, it outputs: 300
300 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0048922 | <|start|><|user|>
Walls total 1310 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
import math
area = 1310
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
Executing it gives 6, as expected.
6 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1310 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": " import math\n area = 1310\n coverage = 250\n cans = math.ceil(area / coverage) # 6\n print(cans)\nExecuting it gives 6, as e... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0048923 | After an initial $3,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?
Python code:
```python
grant = 12000
up_front = 3000
installments = 4
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
(Console output: 2250.00)
$2,250.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0048924 | <|start|><|user|>
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 9000.0
print(f"{each:.2f}")
```
The run gives 9000.00.
Each installment is $... | chat | [
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 9000.0\nprint(f\"{e... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0048925 | Equal monthly payments repay $3,600 plus 8% simple yearly interest over 36 months. How large is a payment?
Written as code:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 864.0
payment = (principal + interest) / months # 124.0
print(f"{payment:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "124.00", "printed": "124.00", "notation": null} |
nlprog_det-setting-0048926 | <|start|><|user|>
2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")
```
# printed re... | chat | [
{
"role": "user",
"content": "2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 40 / 100 # 24000.0\nremaining = award - fee # 36000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0048927 | <|start|><|user|>
What is the total rent on a 24-month lease at $2,100 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
```
Printed = 50400
The rent over the term is $50,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $2,100 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2100\nmonths = 24\ntotal = monthly_rent * months # 50400\nprint(total)\n```\nPrinted = 50400\n\nThe rent over the term is $50,400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0048928 | A recipe for 2 people uses 300 grams of flour. How many grams are needed for 3 people?
```python
grams = 300
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 450
print(scaled)
```
Result:
450
Use 450 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0048929 | What average speed covers 78 miles in 1.5 hours?
Python makes this quick:
```python
distance = 78
hours = 1.5
speed = distance / hours # 52.0
print(round(speed))
```
Printed:
52
It averages 52 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0048930 | With 24 rows of 23 chairs and 22 empty chairs, how many chairs are taken?
As Python:
```python
rows = 24
per_row = 23
empty = 22
seated = rows * per_row - empty # 530
print(seated)
```
Output: 530
530 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "530", "printed": "530", "notation": null} |
nlprog_det-setting-0048932 | A 40 lb package ships at $12 base plus $1.50/lb. What is the charge?
Code:
```python
base = 12
per_pound = 1.5
weight = 40
cost = base + per_pound * weight # 72.0
print(f"{cost:.2f}")
```
(Printed: 72.00)
The charge is $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0048933 | <|start|><|user|>
Pack A has 12 items for $14.16. Pack B has 18 items for $22.61. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 14.16 / 12 # 1.18
pack_b = 22.61 / 18 # 1.2561111111111112
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Program output: A)
Pack A is ch... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $14.16. Pack B has 18 items for $22.61. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.16 / 12 # 1.18\npack_b = 22.61 / 18 # 1.2561111111111112\ncheaper = \"A\" if pack_a < pack_b else \"B\... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0048934 | Someone born October 22, 1972 turns how old by November 6, 2027? Give the age in whole years.
Here is a short program for it.
```python
from datetime import date
born = date(1972, 10, 22) # datetime.date(1972, 10, 22)
on = date(2027, 11, 6) # datetime.date(2027, 11, 6)
age = on.year - born.year - ((on.month, on.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0048936 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "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"]}}, {"name": "convert_units", "descri... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 349 | {"gold": "2026-08-21", "printed": "2026-08-21", "notation": null} |
nlprog_det-setting-0048937 | 4 claimants share a $1,200 settlement equally. What is each share?
Python code:
settlement = 1200
parties = 4
share = settlement // parties # 300
print(share)
(Printed result: 300)
Each share is $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0048938 | One can of paint covers 350 square feet. How many cans are needed for 399 square feet of wall?
The program:
```python
import math
area = 399
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
```
Result: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0048939 | <|start|><|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
principal = 1000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 1081.6000000000001
print(f"{value:.2f}")
The program prints: 1081.60
The balance is $1,081.... | chat | [
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": " principal = 1000\n rate = 4 / 100 # 0.04\n years = 2\n value = principal * (1 + rate) ** years # 1081.6000000000001\n print(f\"{value... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1081.60", "printed": "1081.60", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.