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-0058940 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 108 miles?<|eot|>
<|assistant|>
```python
miles = 108
rate = 0.67
reimbursement = miles * rate # 72.36
print(f"{reimbursement:.2f}")
```
stdout:
72.36
Tobias is owed $72.36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 108 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 108\nrate = 0.67\nreimbursement = miles * rate # 72.36\nprint(f\"{reimbursement:.2f}\")\n```\nstdout:\n72.36\n\nTobias is owed $72.36."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "72.36", "printed": "72.36", "notation": null} |
nlprog_det-setting-0058941 | What simple interest does $5,000 earn at 5% a year over 4 years?
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
```
Out = 1000.00
It earns $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0058942 | A client paid a $5,000 retainer. The firm has billed 9 hours at $200 per hour. How much of the retainer is left?
As Python:
```python
retainer = 5000
hours = 9
rate = 200
left = retainer - hours * rate # 3200
print(left)
```
Executed, it shows 3200.
$3,200 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3200", "printed": "3200", "notation": null} |
nlprog_det-setting-0058943 | <|start|><|user|>
Pack A has 8 items for $7.03. Pack B has 24 items for $6.84. Which has the lower price per item?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $7.03. Pack B has 24 items for $6.84. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "B has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0058944 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "1337.50", "printed": "1337.50", "notation": null} |
nlprog_det-setting-0058945 | <|start|><|user|>
Printing costs 8 cents a page. What does it cost to print 198 copies of a 9-page handout?<|eot|>
<|assistant|>
```python
pages = 9
copies = 198
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 142.56
print(f"{cost:.2f}")
```
Running this gives: 142.56
Printing costs $142.56.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 198 copies of a 9-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 9\ncopies = 198\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 142.56\nprint(f\"{cost:.2f}\")\n```\nR... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "142.56", "printed": "142.56", "notation": null} |
nlprog_det-setting-0058946 | A party has 14 days to respond to a motion served on February 2, 2019, with 3 days added because service was by mail. When is the response due?
Python does the arithmetic:
```python
from datetime import date, timedelta
served = date(2019, 2, 2) # datetime.date(2019, 2, 2)
response_days = 14
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2019-02-19", "printed": "2019-02-19", "notation": null} |
nlprog_det-setting-0058947 | At a 4% tax rate, what is the tax on $683.15?
The Python version:
```python
price = 683.15
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 27.326
print(f"{tax:.2f}")
```
Out: 27.33
$27.33 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "27.33", "printed": "27.33", "notation": null} |
nlprog_det-setting-0058948 | The landlord deducts $200 from a $800 deposit. What is returned to the tenant?
Code:
```python
deposit = 800
deductions = [200]
refund = deposit - sum(deductions) # 600
print(refund)
```
It prints 600.
The refund is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0058949 | 138 files go into boxes of 20. How many boxes does that take?
Python code:
```python
import math
files = 138
per_box = 20
boxes = math.ceil(files / per_box) # 7
print(boxes)
```
On running, it outputs 7.
It takes 7 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0058950 | At an exchange rate of 1.12 CAD per USD, how many CAD is 5,465 USD?
Set it up in Python:
```python
amount = 5465
rate = 1.12
converted = amount * rate # 6120.8
print(f"{converted:.2f}")
```
# console output: 6120.80
That is 6,120.80 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "6120.80", "printed": "6120.80", "notation": null} |
nlprog_det-setting-0058951 | A clerk's office charges $50 for each filing. Amir submits 11 filings. What is the total fee?
Program:
```python
fee = 50
filings = 11
total = fee * filings # 550
print(total)
```
Result:
550
The total fee is $550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "550", "printed": "550", "notation": null} |
nlprog_det-setting-0058952 | 15 of 20 members attended. What percent attended?
75.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0058953 | Count the days between July 6, 2023 and May 17, 2024.
Let's compute it with Python.
from datetime import date
first = date(2023, 7, 6) # datetime.date(2023, 7, 6)
second = date(2024, 5, 17) # datetime.date(2024, 5, 17)
print((second - first).days)
Executing it gives: 316
It is 316 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "316", "printed": "316", "notation": null} |
nlprog_det-setting-0058954 | After a 30% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Here is the program.
```python
award = 48000
fee = award * 30 / 100 # 14400.0
remaining = award - fee # 33600.0
per_client = remaining / 3 # 11200.0
print(f"{per_client:.2f}")
```
stdout — 112... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "11200.00", "printed": "11200.00", "notation": null} |
nlprog_det-setting-0058955 | 4 claimants share a $7,348 settlement equally. What is each share?
Python does the arithmetic:
```python
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
```
It outputs: 1837
Each share is $1,837. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0058956 | <|start|><|user|>
Rent of $1,250 goes up 8%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1350.0
print(f"{new_rent:.2f}")
```
# console output: 1350.00
It rises to $1,350.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 8%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1350.0\nprint(f\"{new_rent:.2f}\")\n```\n# console output: 1350.00\n\nIt rises to $1,350.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1350.00", "printed": "1350.00", "notation": null} |
nlprog_det-setting-0058958 | Starting from $20,000, the team spends $1,261, $3,285, $737. What remains?
Here is a short program for it.
```python
budget = 20000
expenses = [1261, 3285, 737]
left = budget - sum(expenses) # 14717
print(left)
```
The script prints: 14717
$14,717 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "14717", "printed": "14717", "notation": null} |
nlprog_det-setting-0058959 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 1
daily_max = 24
cost = min(rate * hours, daily_max) # 5
print(cost)
```
The code prints: 5
The charge is $5.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 1\ndaily_max = 24\ncost = min(rate * hours, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0058960 | <|start|><|user|>
At a 8% tax rate, what is the tax on $211.21?<|eot|>
<|assistant|>
```python
price = 211.21
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 16.896800000000002
print(f"{tax:.2f}")
```
Running this gives: 16.90
$16.90 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 8% tax rate, what is the tax on $211.21?"
},
{
"role": "assistant",
"content": "```python\nprice = 211.21\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 16.896800000000002\nprint(f\"{tax:.2f}\")\n```\nRunning this gives: 16.90\n\n$16.90 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "16.90", "printed": "16.90", "notation": null} |
nlprog_det-setting-0058961 | <|start|><|user|>
How many days are there from April 25, 2025 to May 21, 2025?<|eot|>
<|assistant|>
from datetime import date
first = date(2025, 4, 25) # datetime.date(2025, 4, 25)
second = date(2025, 5, 21) # datetime.date(2025, 5, 21)
print((second - first).days)
Run result = 26
There are 26 days b... | chat | [
{
"role": "user",
"content": "How many days are there from April 25, 2025 to May 21, 2025?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2025, 4, 25) # datetime.date(2025, 4, 25)\n second = date(2025, 5, 21) # datetime.date(2025, 5, 21)\n print((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0058962 | Divide 263 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
One way, in code:
```python
total = 263
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The run gives 65 each, 3 left over, as expected.
65 ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "65 each, 3 left over", "printed": "65 each, 3 left over", "notation": null} |
nlprog_det-setting-0058963 | Someone works 16 hours at $21.28 per hour. What are the earnings?
As Python:
rate = 21.28
hours = 16
earnings = rate * hours # 340.48
print(f"{earnings:.2f}")
Execution prints 340.48.
The pay is $340.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "340.48", "printed": "340.48", "notation": null} |
nlprog_det-setting-0058964 | A claim accrued on December 10, 2012. The limitations period is 4 years. On what date does it expire?
We can compute it in Python.
```python
from datetime import date
accrued = date(2012, 12, 10) # datetime.date(2012, 12, 10)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 12, 10... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2016-12-10", "printed": "2016-12-10", "notation": null} |
nlprog_det-setting-0058965 | What is 0 degrees Celsius in Fahrenheit?
In Python:
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
It prints 32.
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0058966 | 8 claimants share a $84,000 settlement equally. What is each share?
Translated to Python:
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
The run gives: 10500
Each party receives $10,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0058969 | The paralegal logged 1.5 hours at a rate of $410. How much is billed?
The computation:
hours = 1.5
rate = 410
bill = hours * rate # 615.0
print(f"{bill:.2f}")
The interpreter prints 615.00.
The bill is $615.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "615.00", "printed": "615.00", "notation": null} |
nlprog_det-setting-0058970 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 120 miles?<|eot|>
<|assistant|>
```python
miles = 120
rate = 0.62
reimbursement = miles * rate # 74.4
print(f"{reimbursement:.2f}")
```
Printed result: 74.40
The reimbursement is $74.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 120 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 120\nrate = 0.62\nreimbursement = miles * rate # 74.4\nprint(f\"{reimbursement:.2f}\")\n```\nPrinted result: 74.40\n\nThe reimbursement is $74.40."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "74.40", "printed": "74.40", "notation": null} |
nlprog_det-setting-0058971 | <|start|><|user|>
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
That prints: 24
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 204\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThat prints: 24\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0058972 | <|start|><|user|>
What average speed covers 588 miles in 2 hours?<|eot|>
<|assistant|>
distance = 588
hours = 2
speed = distance / hours # 294.0
print(round(speed))
Printed = 294
It averages 294 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 588 miles in 2 hours?"
},
{
"role": "assistant",
"content": " distance = 588\n hours = 2\n speed = distance / hours # 294.0\n print(round(speed))\nPrinted = 294\n\nIt averages 294 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "294", "printed": "294", "notation": null} |
nlprog_det-setting-0058973 | Pack A has 10 items for $6.63. Pack B has 15 items for $11.98. Which has the lower price per item?
Here's the code.
```python
pack_a = 6.63 / 10 # 0.663
pack_b = 11.98 / 15 # 0.7986666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
stdout:
A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0058974 | <|start|><|user|>
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 1 / 100
months = 6
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
(Run result: 240.00)
$240.00 accrues.<|eot|>... | chat | [
{
"role": "user",
"content": "An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100\nmonths = 6\ninterest = balance * monthly_rate * months\nprint(f\"{inter... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0058975 | Chen and Kaito share $1,890 in the ratio 2:5. How much does Chen get?
A short script:
total = 1890
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 540
print(share_a)
Shell output: 540
Chen's share is $540. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0058976 | <|start|><|system|>
Tools you may use:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A lease runs for 18 months at $2,... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0058977 | A $2,400 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Set it up in Python:
```python
principal = 2400
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "76.67", "printed": "76.67", "notation": null} |
nlprog_det-setting-0058978 | Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?
The computation:
```python
cost = 45000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 13000.0
print(f"{per_year:.2f}")
```
Execution result: 13000.00
Depreciation is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "13000.00", "printed": "13000.00", "notation": null} |
nlprog_det-setting-0058979 | <|start|><|user|>
Count the days between January 17, 2028 and October 21, 2028.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 1, 17) # datetime.date(2028, 1, 17)
second = date(2028, 10, 21) # datetime.date(2028, 10, 21)
print((second - first).days)
```
Result:
278
There are 278 days bet... | chat | [
{
"role": "user",
"content": "Count the days between January 17, 2028 and October 21, 2028."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 1, 17) # datetime.date(2028, 1, 17)\nsecond = date(2028, 10, 21) # datetime.date(2028, 10, 21)\nprint((sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "278", "printed": "278", "notation": null} |
nlprog_det-setting-0058980 | <|start|><|user|>
$2,000 is invested at 4% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 2339.7171200000003
print(f"{value:.2f}")
```
It prints 2339.72.
The balance is $2,339.72.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "$2,000 is invested at 4% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = principal * (1 + rate) ** years # 2339.7171200000003\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "2339.72", "printed": "2339.72", "notation": null} |
nlprog_det-setting-0058981 | Starting with 1000 chairs and using 29 per day, how many remain after 5 days?
Python, step by step:
```python
stock = 1000
per_day = 29
days = 5
left = stock - per_day * days # 855
print(left)
```
Run output: 855
855 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "855", "printed": "855", "notation": null} |
nlprog_det-setting-0058982 | <|start|><|system|>
Functions:
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A client paid a $10,000 retainer.... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "8050", "printed": "8050", "notation": null} |
nlprog_det-setting-0058983 | Copies cost $15 plus $0.10 for each page beyond 20. How much for 48 pages?
The Python version:
```python
pages = 48
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 17.8
print(f"{cost:.2f}")
```
The interpreter prints: 17.80
The copy costs $17.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "17.80", "printed": "17.80", "notation": null} |
nlprog_det-setting-0058984 | Under a 35% contingency agreement, what fee is owed on a $60,000 award?
```python
recovery = 60000
rate = 35 / 100 # 0.35
fee = recovery * rate # 21000.0
print(f"{fee:.2f}")
```
stdout — 21000.00
The fee is $21,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0058985 | <|start|><|user|>
What does $10,000 grow to in 5 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 5 / 100
years = 5
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
(Printed: 12762.82)
The balance is $12,762.82.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 5 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 5 / 100\nyears = 5\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\n(Printed: 12762.82)\n\nThe balance i... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "12762.82", "printed": "12762.82", "notation": null} |
nlprog_det-setting-0058986 | What is a 10% tip on a $247.18 bill?
The tip is $24.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "24.72", "printed": "24.72", "notation": null} |
nlprog_det-setting-0058987 | <|start|><|user|>
How many of 73 votes make 60% (round up)?<|eot|>
<|assistant|>
44 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 73 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "44 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0058988 | <|start|><|user|>
A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 110-page copy cost?<|eot|>
<|assistant|>
```python
pages = 110
base = 15
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 60.0
print(f"{cost:.2f}")
```
(Program output: 60.00)... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 110-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 110\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pa... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0058989 | An attorney bills 10.5 hours at $410 per hour. What is the bill?
One way, in code:
```python
hours = 10.5
rate = 410
bill = hours * rate # 4305.0
print(f"{bill:.2f}")
```
The program prints: 4305.00
That comes to $4,305.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "4305.00", "printed": "4305.00", "notation": null} |
nlprog_det-setting-0058990 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
What percentage of $2,000 is $600?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 600
percent = spent / budget * 100 # 30.0
print(round(percent, 1))
```
It prints: 30.0
That is 30.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "What percentage of $2,000 is $600?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 600\npercent = spent / budget * 100 # 30.0\nprint(round(percent, 1))\n```\nIt prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0058991 | Bilal buys 12 boxes of 24 notebooks each and gives away 2 notebooks. How many notebooks are left?
Here's the code.
```python
boxes = 12
per_box = 24
given_away = 2
left = boxes * per_box - given_away
print(left)
```
Shell output — 286
286 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "286", "printed": "286", "notation": null} |
nlprog_det-setting-0058992 | <|start|><|system|>
Tool definitions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameter... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calculator\", \"description\": \"Runs a sho... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "7800", "printed": "7800", "notation": null} |
nlprog_det-setting-0058993 | <|start|><|system|>
You may call the tools below.
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
From a $7,50... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "5750", "printed": "5750", "notation": null} |
nlprog_det-setting-0058995 | <|start|><|user|>
With 7 rows of 9 chairs and 12 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 7
per_row = 9
empty = 12
seated = rows * per_row - empty # 51
print(seated)
```
# console output: 51
51 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 7 rows of 9 chairs and 12 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 7\nper_row = 9\nempty = 12\nseated = rows * per_row - empty # 51\nprint(seated)\n```\n# console output: 51\n\n51 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0058996 | Parking is $3 per hour with a daily maximum of $24. What do 5 hours cost?
Computation in Python:
```python
rate = 3
hours = 5
daily_max = 24
cost = min(rate * hours, daily_max) # 15
print(cost)
```
stdout:
15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0058997 | A pack of 25 tape rolls sells for $200. What does each cost?
Coded up:
```python
total = 200
count = 25
per_item = total // count # 8
print(per_item)
```
Interpreter output — 8
Each one costs $8. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0058998 | How many weekdays (Monday to Friday) fall after September 12, 2019 up to and including October 2, 2019?
Python:
```python
from datetime import date, timedelta
start = date(2019, 9, 12)
end = date(2019, 10, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0058999 | <|start|><|user|>
A $180 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 72.0
print(f"{each:.2f}")
```
Run it and it prints: 72.00
The share is $72.00 e... | chat | [
{
"role": "user",
"content": "A $180 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 3\neach = bill * (1 + tip_rate) / people # 72.0\nprint(f\"{each:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0059000 | A library charges $0.50 per book per day late. What is the fine for 4 books that are 12 days late?
We write it as a program:
```python
per_day = 0.5
days_late = 12
books = 4
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Output:
24.00
The fine is $24.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0059001 | After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?
Program:
```python
grant = 12000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
# printed result: 2000.00
$2,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0059002 | Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?
Python, step by step:
```python
cost = 12000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 1000.0
print(f"{per_year:.2f}")
```
Printed result: 1000.00
Depreciation i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0059003 | How many whole days and leftover hours are in 50 hours?
One way, in code:
hours = 50
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Run result: 2 days and 2 hours
That is 2 days and 2 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "2 days and 2 hours", "printed": "2 days and 2 hours", "notation": null} |
nlprog_det-setting-0059004 | <|start|><|user|>
A hearing is set for September 4, 2017. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2017, 9, 4) # datetime.date(2017, 9, 4)
print(hearing.strftime("%A"))
```
Interpreter output — Monday
September 4, 2017 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 4, 2017. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2017, 9, 4) # datetime.date(2017, 9, 4)\nprint(hearing.strftime(\"%A\"))\n```\nInterpreter output — Mon... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0059005 | <|start|><|user|>
Find the mean of these test scores: 78, 92, 80, 85 and 50.<|eot|>
<|assistant|>
The average score is 77.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 78, 92, 80, 85 and 50."
},
{
"role": "assistant",
"content": "The average score is 77."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0059006 | <|start|><|user|>
Convert 3,711 EUR to USD at 1 EUR = 1.35 USD.<|eot|>
<|assistant|>
```python
amount = 3711
rate = 1.35
converted = amount * rate # 5009.85
print(f"{converted:.2f}")
```
Execution result: 5009.85
It converts to 5,009.85 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3,711 EUR to USD at 1 EUR = 1.35 USD."
},
{
"role": "assistant",
"content": "```python\namount = 3711\nrate = 1.35\nconverted = amount * rate # 5009.85\nprint(f\"{converted:.2f}\")\n```\nExecution result: 5009.85\n\nIt converts to 5,009.85 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5009.85", "printed": "5009.85", "notation": null} |
nlprog_det-setting-0059007 | Goods bought on December 3, 2028 carry a 36-month warranty. When does it expire?
Python version:
```python
from datetime import date
start = date(2028, 12, 3)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# st... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2031-12-03", "printed": "2031-12-03", "notation": null} |
nlprog_det-setting-0059008 | <|start|><|user|>
Goods bought on January 1, 2027 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 1, 1)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.i... | chat | [
{
"role": "user",
"content": "Goods bought on January 1, 2027 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 1, 1)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2030-01-01", "printed": "2030-01-01", "notation": null} |
nlprog_det-setting-0059009 | <|start|><|user|>
A shift runs from 7:21 AM to 1:04 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 21 # 441
end = 13 * 60 + 4 # 784
print(end - start)
```
stdout = 343
343 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:21 AM to 1:04 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 21 # 441\nend = 13 * 60 + 4 # 784\nprint(end - start)\n```\nstdout = 343\n\n343 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "343", "printed": "343", "notation": null} |
nlprog_det-setting-0059010 | <|start|><|user|>
Dara earns a 4% commission on $16,645 of sales. What is the commission?<|eot|>
<|assistant|>
Dara earns $665.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Dara earns a 4% commission on $16,645 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "Dara earns $665.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "665.80", "printed": "665.80", "notation": null} |
nlprog_det-setting-0059011 | The landlord deducts $85 and $60 from a $1,000 deposit. What is returned to the tenant?
Written as code:
```python
deposit = 1000
deductions = [85, 60]
refund = deposit - sum(deductions) # 855
print(refund)
```
The interpreter prints: 855
$855 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "855", "printed": "855", "notation": null} |
nlprog_det-setting-0059012 | To read 264 pages in 8 days, how many pages per day are needed?
We can compute it in Python.
```python
pages = 264
days = 8
per_day = pages // days # 33
print(per_day)
```
Python prints 33, as expected.
That is 33 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0059013 | <|start|><|user|>
A 29 lb package ships at $8 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 0.75
weight = 29
cost = base + per_pound * weight # 29.75
print(f"{cost:.2f}")
```
Out = 29.75
Shipping costs $29.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 29 lb package ships at $8 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 0.75\nweight = 29\ncost = base + per_pound * weight # 29.75\nprint(f\"{cost:.2f}\")\n```\nOut = 29.75\n\nShipping costs $29.7... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "29.75", "printed": "29.75", "notation": null} |
nlprog_det-setting-0059014 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "python_exec", "descript... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 348 | {"gold": "70.62", "printed": "70.62", "notation": null} |
nlprog_det-setting-0059015 | An attorney bills 8 hours at $250 per hour. What is the bill?
```python
hours = 8
rate = 250
bill = hours * rate # 2000
print(f"{bill:.2f}")
```
Printed: 2000.00
That comes to $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0059016 | <|start|><|user|>
At 45 miles per hour, how many minutes does a 225-mile trip take?<|eot|>
<|assistant|>
300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 225-mile trip take?"
},
{
"role": "assistant",
"content": "300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0059017 | A 5 × 4 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Here is the program.
import math
length = 5
width = 4
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 5
print(tiles)
Printed result: 5
5 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0059018 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
U... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0059019 | <|start|><|system|>
You have access to these functions:
{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "search_cases", "descripti... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 269 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0059020 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Equal monthly payments repay $1,200 plus 8% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 8% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 1200\n annual_rate =... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "41.33", "printed": "41.33", "notation": null} |
nlprog_det-setting-0059021 | <|start|><|user|>
To read 620 pages in 20 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 620
days = 20
per_day = pages // days # 31
print(per_day)
```
The printout reads: 31
31 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 620 pages in 20 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 620\ndays = 20\nper_day = pages // days # 31\nprint(per_day)\n```\nThe printout reads: 31\n\n31 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0059022 | <|start|><|user|>
At $22.44 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
The pay is $673.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $22.44 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $673.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "673.20", "printed": "673.20", "notation": null} |
nlprog_det-setting-0059023 | 38 of 40 members attended. What percent attended?
Let the code do the arithmetic:
present = 38
total = 40
percent = present / total * 100
print(round(percent, 1))
Out:
95.0
Attendance was 95.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0059024 | 8 copies of a 47-page packet are printed at $0.05 per page. What is the cost?
Python does the arithmetic:
```python
pages = 47
copies = 8
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 18.8
print(f"{cost:.2f}")
```
Output: 18.80
The job costs $18.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "18.80", "printed": "18.80", "notation": null} |
nlprog_det-setting-0059025 | 164 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
```python
total = 164
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The run gives 54 each, 2 left over, as expected.
The answer: 54 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "54 each, 2 left over", "printed": "54 each, 2 left over", "notation": null} |
nlprog_det-setting-0059026 | Shipping costs $10 plus $1.20 per pound. What does a 5-pound parcel cost to ship?
As a program:
```python
base = 10
per_pound = 1.2
weight = 5
cost = base + per_pound * weight # 16.0
print(f"{cost:.2f}")
```
The script prints: 16.00
The charge is $16.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0059027 | <|start|><|user|>
4 swims at 300 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 4
total = per_session * sessions
print(total)
```
The run gives 1200, as expected.
That burns 1200 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 swims at 300 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 4\ntotal = per_session * sessions\nprint(total)\n```\nThe run gives 1200, as expected.\n\nThat burns 1200 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0059029 | A 6-month warranty starts on July 23, 2028. On what date does it end?
A Python solution:
```python
from datetime import date
start = date(2028, 7, 23)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The run gives... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2029-01-23", "printed": "2029-01-23", "notation": null} |
nlprog_det-setting-0059030 | A recipe for 2 people uses 240 grams of oats. How many grams are needed for 4 people?
A Python solution:
```python
grams = 240
serves = 2
needed_for = 4
scaled = grams * needed_for // serves
print(scaled)
```
Executed, it shows: 480
480 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0059031 | <|start|><|user|>
At an exchange rate of 1.31 CAD per USD, how many CAD is 5,287 USD?<|eot|>
<|assistant|>
```python
amount = 5287
rate = 1.31
converted = amount * rate # 6925.97
print(f"{converted:.2f}")
```
It prints: 6925.97
It converts to 6,925.97 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.31 CAD per USD, how many CAD is 5,287 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 5287\nrate = 1.31\nconverted = amount * rate # 6925.97\nprint(f\"{converted:.2f}\")\n```\nIt prints: 6925.97\n\nIt converts to 6,925.97 CA... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6925.97", "printed": "6925.97", "notation": null} |
nlprog_det-setting-0059032 | A 260-page report must be reviewed in 13 days. How many pages a day is that, evenly?
Programmatically:
pages = 260
days = 13
per_day = pages // days
print(per_day)
(stdout: 20)
20 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0059033 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?
In Python:
```python
base = 15
rate = 4.2
used = 7
free = 2
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
Printed — 36.00
$36.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0059034 | A clerk's office charges $405 for each filing. Uma submits 19 filings. What is the total fee?
The filings cost $7,695 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "7695", "printed": "7695", "notation": null} |
nlprog_det-setting-0059035 | Straight-line depreciation: cost $24,000, salvage $3,000, 8 years. How much per year?
The Python version:
```python
cost = 24000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 2625.0
print(f"{per_year:.2f}")
```
The printout reads 2625.00.
Depreciation is $2,625.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0059036 | At $0.58 per mile, what is the reimbursement for 209 miles?
Code:
```python
miles = 209
rate = 0.58
reimbursement = miles * rate # 121.21999999999998
print(f"{reimbursement:.2f}")
```
# result: 121.22
The reimbursement is $121.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "121.22", "printed": "121.22", "notation": null} |
nlprog_det-setting-0059037 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
74 copies of a 6-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 6
copies = 74
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
When run, it prints: 53.28
The job co... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "74 copies of a 6-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 6\ncopies = 74\ncost_per_page = 0.12\ncost = pages ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "53.28", "printed": "53.28", "notation": null} |
nlprog_det-setting-0059038 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
In code:
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
The program prints 3.8, as expected.
Profit is 3... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0059039 | What is a 20% tip on a $69.49 bill?
We write it as a program:
```python
bill = 69.49
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 13.898
print(f"{tip:.2f}")
```
(stdout: 13.90)
The tip is $13.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "13.90", "printed": "13.90", "notation": null} |
nlprog_det-setting-0059040 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A trial runs from July 5, 2023 to July 27, 2023, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 7, 5) # datetime.date(2023, 7, 5)
last = date(2023, 7, 27) # dat... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A trial runs from July 5, 2023 to July 27, 2023, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0059041 | Goods bought on April 23, 2026 carry a 12-month warranty. When does it expire?
Python:
```python
from datetime import date
start = date(2026, 4, 23)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Result — 2027-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2027-04-23", "printed": "2027-04-23", "notation": null} |
nlprog_det-setting-0059042 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0059043 | <|start|><|user|>
A 6-month warranty starts on February 6, 2025. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on August 6, 2025.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on February 6, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on August 6, 2025."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2025-08-06", "printed": "2025-08-06", "notation": null} |
nlprog_det-setting-0059044 | Copies cost $10 plus $0.25 for each page beyond 10. How much for 56 pages?
The total is $21.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "21.50", "printed": "21.50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.