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-0053670 | A claim accrued on February 24, 2018. The limitations period is 6 years. On what date does it expire?
Code:
from datetime import date
accrued = date(2018, 2, 24) # datetime.date(2018, 2, 24)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 2, 24)
print(expires.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2024-02-24", "printed": "2024-02-24", "notation": null} |
nlprog_det-setting-0053672 | Cyrus drove 213 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
The Python version:
```python
miles = 213
rate = 0.65
reimbursement = miles * rate # 138.45000000000002
print(f"{reimbursement:.2f}")
```
This prints: 138.45
The reimbursement is $138.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "138.45", "printed": "138.45", "notation": null} |
nlprog_det-setting-0053673 | <|start|><|user|>
Convert 58.7 km to meters.<|eot|>
<|assistant|>
58,700 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 58.7 km to meters."
},
{
"role": "assistant",
"content": "58,700 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "58700", "printed": "58700", "notation": null} |
nlprog_det-setting-0053674 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A party has 14 days to respond to a motion served on May 4, 2026, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 5, 4) # datetime.date(2026, 5, ... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on May 4, 2026, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom... | nlprog_det | setting | original | null | deterministic | [] | [] | 191 | {"gold": "2026-05-21", "printed": "2026-05-21", "notation": null} |
nlprog_det-setting-0053675 | <|start|><|user|>
Express 338 hours in days and hours.<|eot|>
<|assistant|>
338 hours is 14 days and 2 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 338 hours in days and hours."
},
{
"role": "assistant",
"content": "338 hours is 14 days and 2 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "14 days and 2 hours", "printed": "14 days and 2 hours", "notation": null} |
nlprog_det-setting-0053676 | A measure needs at least 67% of 198 votes. How many votes is that, rounded up?
We write it as a program:
```python
import math
voters = 198
needed = math.ceil(voters * 67 / 100) # 133
print(needed)
```
Execution result — 133
133 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "133", "printed": "133", "notation": null} |
nlprog_det-setting-0053677 | <|start|><|system|>
Tools you may use:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute", "description": "Look... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "596", "printed": "596", "notation": null} |
nlprog_det-setting-0053678 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
3 claimants share a $525 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 525
parties = 3
share = settlement // parties # 175
print(share)
```
The printout reads 175.
Each party receives $175.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "3 claimants share a $525 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 525\nparties = 3\nshare = settlement // parties # 175\nprint(sha... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0053679 | The landlord deducts $60 from a $1,000 deposit. What is returned to the tenant?
The computation:
```python
deposit = 1000
deductions = [60]
refund = deposit - sum(deductions) # 940
print(refund)
```
On running, it outputs: 940
$940 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "940", "printed": "940", "notation": null} |
nlprog_det-setting-0053680 | At 40 miles per hour, how many minutes does a 170-mile trip take?
Python version:
```python
distance = 170
speed = 40
minutes = distance / speed * 60 # 255.0
print(round(minutes))
```
Python prints: 255
The trip takes 255 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0053681 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A customer buys 6 folders at $5 each, 5 pens at $17 each, 6 rulers at $12 each, 2 toner kits at $18 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(6, 5), (5, 17), (6, 12), (2, 18)]
total = sum(q * p for q, p... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A customer buys 6 folders at $5 each, 5 pens at $17 each, 6 rulers at $12 each, 2 toner kits at $18 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0053682 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 121 copies of a 25-page handout?<|eot|>
<|assistant|>
```python
pages = 25
copies = 121
cost_per_page = 0.1
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Run result: 302.50
Printing costs $302.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 121 copies of a 25-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 25\ncopies = 121\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nRun resul... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "302.50", "printed": "302.50", "notation": null} |
nlprog_det-setting-0053684 | <|start|><|user|>
A library charges $0.10 per book per day late. What is the fine for 2 books that are 22 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 22
books = 2
fine = per_day * days_late * books # 4.4
print(f"{fine:.2f}")
```
Printed:
4.40
The fine is $4.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 22 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 22\nbooks = 2\nfine = per_day * days_late * books # 4.4\nprint(f\"{fine:.2f}\")\n```\nPri... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4.40", "printed": "4.40", "notation": null} |
nlprog_det-setting-0053685 | A shift runs from 8:34 AM to 11:46 AM. How long is it in minutes?
```python
start = 8 * 60 + 34 # 514
end = 11 * 60 + 46 # 706
print(end - start)
```
When run, it prints 192, as expected.
192 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0053686 | What commission does Ines make on $32,031 in sales at 3%?
Python:
```python
sales = 32031
rate = 3 / 100 # 0.03
commission = sales * rate # 960.93
print(f"{commission:.2f}")
```
# result: 960.93
Ines earns $960.93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "960.93", "printed": "960.93", "notation": null} |
nlprog_det-setting-0053687 | Monthly: $12. Annual: $108. What is saved per year by paying annually?
Python version:
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
Python prints 36, as expected.
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0053688 | A storeroom has 637 batteries. The office uses 21 a day. How many are left after 10 days?
427 batteries are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "427", "printed": "427", "notation": null} |
nlprog_det-setting-0053689 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $5,000. How much after 56 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 56
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
The run gives 5000.
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $5,000. How much after 56 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 56\ncap = 5000\nfine = min(per_day * days, cap) # 5000\nprint(fine)\n```\nThe run gives 5000.\n\nThe fine is $5,000.... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0053690 | <|start|><|user|>
From a $7,500 retainer, 9 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 9
rate = 150
left = retainer - hours * rate # 6150
print(left)
```
The run gives: 6150
$6,150 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 9 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 9\nrate = 150\nleft = retainer - hours * rate # 6150\nprint(left)\n```\nThe run gives: 6150\n\n$6,150 of the retai... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0053691 | Attendance was 131 out of 200. Express it as a percent.
Set it up in Python:
```python
present = 131
total = 200
percent = present / total * 100 # 65.5
print(round(percent, 1))
```
(Execution result: 65.5)
65.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "65.5", "printed": "65.5", "notation": null} |
nlprog_det-setting-0053692 | A car travels 596 miles in 1 hours. What is its average speed in miles per hour?
Script:
```python
distance = 596
hours = 1
speed = distance / hours # 596.0
print(round(speed))
```
Output of the run: 596
It averages 596 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "596", "printed": "596", "notation": null} |
nlprog_det-setting-0053693 | A settlement of $1,200 is split equally among 5 parties. How much does each party receive?
Here's the code.
```python
settlement = 1200
parties = 5
share = settlement // parties # 240
print(share)
```
Output of the run: 240
Each share is $240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0053695 | <|start|><|user|>
A 4 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 4
cost = base + per_pound * weight # 14.0
print(f"{cost:.2f}")
```
Python prints 14.00.
Shipping costs $14.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 4\ncost = base + per_pound * weight # 14.0\nprint(f\"{cost:.2f}\")\n```\nPython prints 14.00.\n\nShipping costs ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "14.00", "printed": "14.00", "notation": null} |
nlprog_det-setting-0053696 | <|start|><|user|>
Convert 56 km to meters.<|eot|>
<|assistant|>
56,000 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 56 km to meters."
},
{
"role": "assistant",
"content": "56,000 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "56000", "printed": "56000", "notation": null} |
nlprog_det-setting-0053697 | A count moves from 2,000 to 2,500. By what percent did it change (use a minus sign for a drop)?
Let the code do the arithmetic:
```python
old = 2000
new = 2500
change = (new - old) / old * 100 # 25.0
print(round(change))
```
Running it prints: 25
It changed by 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0053698 | Prorate $1,800 of monthly rent for 21 days of a 31-day month.
We can compute it in Python.
```python
rent = 1800
days_in_month = 31
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 1219.3548387096773
print(f"{prorated:.2f}")
```
Out:
1219.35
The tenant owes $1,219.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "1219.35", "printed": "1219.35", "notation": null} |
nlprog_det-setting-0053699 | Find the mean of these test scores: 63, 65, 78 and 62.
A short script:
```python
scores = [63, 65, 78, 62]
average = sum(scores) // len(scores) # 67
print(average)
```
(Execution result: 67)
The mean is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0053700 | A 4-day trip pays $69 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?
Translated to Python:
```python
days = 4
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 696
print(total)
```
It outputs 696.
The allowance is $696. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "696", "printed": "696", "notation": null} |
nlprog_det-setting-0053701 | The rules require 2/3 of 51 members (round up) to be present. How many is that?
A Python solution:
```python
import math
members = 51
quorum = math.ceil(members * 2 / 3) # 34
print(quorum)
```
The run gives 34.
That is 34 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0053702 | 5 walks at 250 calories each burn how many calories in total? 1250 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0053703 | A hall has 5 rows of 15 seats, and 22 seats are empty. How many people are seated?
```python
rows = 5
per_row = 15
empty = 22
seated = rows * per_row - empty # 53
print(seated)
```
Out = 53
53 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0053704 | What day of the week is March 3, 2016?
March 3, 2016 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0053705 | What average speed covers 566 miles in 2 hours?
Python makes this quick:
```python
distance = 566
hours = 2
speed = distance / hours # 283.0
print(round(speed))
```
The program outputs 283.
It averages 283 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "283", "printed": "283", "notation": null} |
nlprog_det-setting-0053706 | A hall has 25 rows of 16 seats, and 11 seats are empty. How many people are seated?
Python does the arithmetic:
```python
rows = 25
per_row = 16
empty = 11
seated = rows * per_row - empty
print(seated)
```
Running it prints 389.
389 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "389", "printed": "389", "notation": null} |
nlprog_det-setting-0053707 | <|start|><|user|>
Filing fees are $125 per document. What do 7 filings cost?<|eot|>
<|assistant|>
```python
fee = 125
filings = 7
total = fee * filings # 875
print(total)
```
(Printed result: 875)
The total fee is $875.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $125 per document. What do 7 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 7\ntotal = fee * filings # 875\nprint(total)\n```\n(Printed result: 875)\n\nThe total fee is $875."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "875", "printed": "875", "notation": null} |
nlprog_det-setting-0053708 | <|start|><|user|>
A storeroom has 1713 notebooks. The office uses 35 a day. How many are left after 4 days?<|eot|>
<|assistant|>
```python
stock = 1713
per_day = 35
days = 4
left = stock - per_day * days # 1573
print(left)
```
Execution result: 1573
1573 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1713 notebooks. The office uses 35 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1713\nper_day = 35\ndays = 4\nleft = stock - per_day * days # 1573\nprint(left)\n```\nExecution result: 1573\n\n1573 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1573", "printed": "1573", "notation": null} |
nlprog_det-setting-0053710 | <|start|><|user|>
8 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $2,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $2,250."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0053711 | How long, in days, is it from March 11, 2018 until October 21, 2018?
Let's compute it with Python.
```python
from datetime import date
first = date(2018, 3, 11) # datetime.date(2018, 3, 11)
second = date(2018, 10, 21) # datetime.date(2018, 10, 21)
print((second - first).days)
```
What it prints: 224
It is 224 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "224", "printed": "224", "notation": null} |
nlprog_det-setting-0053712 | Starting with 1763 calendars and using 19 per day, how many remain after 11 days?
Set it up in Python:
```python
stock = 1763
per_day = 19
days = 11
left = stock - per_day * days # 1554
print(left)
```
The program outputs 1554.
1554 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1554", "printed": "1554", "notation": null} |
nlprog_det-setting-0053713 | <|start|><|user|>
At a 7% tax rate, what is the tax on $680.50?<|eot|>
<|assistant|>
```python
price = 680.5
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 47.635000000000005
print(f"{tax:.2f}")
```
Result:
47.64
The tax is $47.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $680.50?"
},
{
"role": "assistant",
"content": "```python\nprice = 680.5\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 47.635000000000005\nprint(f\"{tax:.2f}\")\n```\nResult:\n47.64\n\nThe tax is $47.64."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "47.64", "printed": "47.64", "notation": null} |
nlprog_det-setting-0053714 | Oskar was born on May 5, 2005. How old is Oskar on September 27, 2023?
Python:
from datetime import date
born = date(2005, 5, 5) # datetime.date(2005, 5, 5)
on = date(2023, 9, 27) # datetime.date(2023, 9, 27)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 18
print(ag... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0053715 | <|start|><|system|>
Tools you may use:
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "convert_units", "de... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 326 | {"gold": "38.05", "printed": "38.05", "notation": null} |
nlprog_det-setting-0053716 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $2,000, 6 years. How much per year?<|eot|>
<|assistant|>
cost = 45000
salvage = 2000
years = 6
per_year = (cost - salvage) / years # 7166.666666666667
print(f"{per_year:.2f}")
Running it prints 7166.67.
$7,166.67 a year.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $2,000, 6 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 45000\n salvage = 2000\n years = 6\n per_year = (cost - salvage) / years # 7166.666666666667\n print(f\"{per_year:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "7166.67", "printed": "7166.67", "notation": null} |
nlprog_det-setting-0053717 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
The paralegal logged 7 hours at a rate of $225. How much is billed?<|eot|>
<|assistant|>
```python
hours = 7
rate = 225
bill = hours * rate # 1575
print(f"{bill:.2f}")
```
Shell output — 1575.00
That comes to $1,575.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "The paralegal logged 7 hours at a rate of $225. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 225\nbill = hours * rate # 1575\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0053718 | <|start|><|user|>
Express 226 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 226
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executed, it shows: 9 days and 10 hours
That is 9 days and 10 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 226 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 226\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecuted, it shows: 9 days and 10 hours\n\nThat is 9 days and 10 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "9 days and 10 hours", "printed": "9 days and 10 hours", "notation": null} |
nlprog_det-setting-0053719 | A board has 17 members. A majority is more than half. How many votes make a majority?
Python version:
```python
members = 17
majority = members // 2 + 1 # 9
print(majority)
```
Executing it gives 9.
That is 9 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0053720 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0053721 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
With 30% off, what does a $90 bicycle helmet cost?<|eot|>
<|assistant|>
```python
price = 90
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 62.99999999999999
print(f"{sale_price:.2f}")
```
On running, it outputs: 63.00
It costs $63.00.<|eot|... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "With 30% off, what does a $90 bicycle helmet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 90\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 62.999999999999... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0053722 | <|start|><|user|>
Someone born January 2, 1996 turns how old by November 17, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1996, 1, 2) # datetime.date(1996, 1, 2)
on = date(2027, 11, 17) # datetime.date(2027, 11, 17)
age = on.year - born.year - ((on.month, on.... | chat | [
{
"role": "user",
"content": "Someone born January 2, 1996 turns how old by November 17, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1996, 1, 2) # datetime.date(1996, 1, 2)\non = date(2027, 11, 17) # datetime.date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0053723 | <|start|><|user|>
53 copies of a 42-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 42
copies = 53
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 267.12
print(f"{cost:.2f}")
```
Execution result: 267.12
Printing costs $267.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "53 copies of a 42-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 42\ncopies = 53\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 267.12\nprint(f\"{cost:.2f}\")\n```\nExecution re... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "267.12", "printed": "267.12", "notation": null} |
nlprog_det-setting-0053724 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
What commission does Noor make on $94,589 in sales at 6%?<|eot|>
<|assistant|>
```python
sales = 94589
rate = 6 / 100 # 0.06
commission = sales * rate # 5675.34
print(f"{commission:.2f}")
```
Run output: 5675.34
Noor earns $5,675.34.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "What commission does Noor make on $94,589 in sales at 6%?"
},
{
"role": "assistant",
"content": "```python\nsales = 94589\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 5675.34\nprint(f\"{c... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "5675.34", "printed": "5675.34", "notation": null} |
nlprog_det-setting-0053725 | <|start|><|user|>
Noor's scores were 82, 84 and 83. What is the average score?<|eot|>
<|assistant|>
scores = [82, 84, 83]
average = sum(scores) // len(scores) # 83
print(average)
The program outputs 83.
The mean is 83.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Noor's scores were 82, 84 and 83. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [82, 84, 83]\n average = sum(scores) // len(scores) # 83\n print(average)\nThe program outputs 83.\n\nThe mean is 83."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0053726 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Convert 38.6 km to meters.<|eot|>
<|assistant|>
```python
km = 38.6
meters = km * 1000 # 38600.0
print(round(meters))
```
The run gives: 38600
That is 38,600 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Convert 38.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 38.6\nmeters = km * 1000 # 38600.0\nprint(round(meters))\n```\nThe run gives: 38600\n\nThat is 38,600... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "38600", "printed": "38600", "notation": null} |
nlprog_det-setting-0053727 | <|start|><|user|>
How many minutes pass from 8:36 AM to 9:14 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 36 # 516
end = 9 * 60 + 14 # 554
print(end - start)
```
Run result: 38
38 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:36 AM to 9:14 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 36 # 516\nend = 9 * 60 + 14 # 554\nprint(end - start)\n```\nRun result: 38\n\n38 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0053728 | Ivan and Malik share $2,821 in the ratio 2:5. How much does Ivan get?
Code:
total = 2821
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 806
print(share_a)
Interpreter output — 806
Ivan's share is $806. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "806", "printed": "806", "notation": null} |
nlprog_det-setting-0053729 | <|start|><|user|>
At a 7% tax rate, what is the tax on $737.49?<|eot|>
<|assistant|>
$51.62 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $737.49?"
},
{
"role": "assistant",
"content": "$51.62 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "51.62", "printed": "51.62", "notation": null} |
nlprog_det-setting-0053730 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
The building opened in 2012. How many years had passed by 2025?<|eot|>
<|assistant|>
13 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "The building opened in 2012. How many years had passed by 2025?"
},
{
"role": "assistant",
"content": "13 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0053732 | <|start|><|user|>
Counting the first and last day, how many days are there from August 20, 2023 through August 29, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 8, 20)
last = date(2023, 8, 29)
days = (last - first).days + 1
print(days)
```
Printed: 10
10 calendar days.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from August 20, 2023 through August 29, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 8, 20)\nlast = date(2023, 8, 29)\ndays = (last - first).days + 1\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0053733 | <|start|><|user|>
Straight-line depreciation: cost $30,000, salvage $6,000, 5 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 4800.0
print(f"{per_year:.2f}")
```
On running, it outputs 4800.00.
$4,800.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $6,000, 5 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 4800.0\nprint(f\"{per_year:.2f}\")\n```\nOn runnin... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0053735 | Convert 31.8 km to meters.
One way, in code:
```python
km = 31.8
meters = km * 1000 # 31800.0
print(round(meters))
```
Executed, it shows 31800.
31,800 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "31800", "printed": "31800", "notation": null} |
nlprog_det-setting-0053736 | The landlord deducts $45 from a $1,000 deposit. What is returned to the tenant?
In code:
```python
deposit = 1000
deductions = [45]
refund = deposit - sum(deductions) # 955
print(refund)
```
# execution result: 955
$955 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0053737 | A 24-month warranty starts on July 16, 2020. On what date does it end?
As Python:
```python
from datetime import date
start = date(2020, 7, 16)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
What it prints: 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2022-07-16", "printed": "2022-07-16", "notation": null} |
nlprog_det-setting-0053738 | The paralegal logged 10.5 hours at a rate of $350. How much is billed?
Here's the code.
```python
hours = 10.5
rate = 350
bill = hours * rate # 3675.0
print(f"{bill:.2f}")
```
Running it prints 3675.00.
The bill is $3,675.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "3675.00", "printed": "3675.00", "notation": null} |
nlprog_det-setting-0053739 | With 10% off, what does a $250 chair cost?
It costs $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0053740 | The rules require 2/3 of 55 members (round up) to be present. How many is that?
Written as code:
```python
import math
members = 55
quorum = math.ceil(members * 2 / 3)
print(quorum)
```
Console output — 37
That is 37 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0053742 | At 50 miles per hour, how many minutes does a 75-mile trip take?
Computation in Python:
```python
distance = 75
speed = 50
minutes = distance / speed * 60 # 90.0
print(round(minutes))
```
Run output — 90
90 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0053744 | $10,000 is invested at 5% compounded yearly. What is it worth after 4 years?
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 12155.062500000002
print(f"{value:.2f}")
```
Result: 12155.06
The balance is $12,155.06. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12155.06", "printed": "12155.06", "notation": null} |
nlprog_det-setting-0053745 | <|start|><|user|>
The landlord deducts $150 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [150]
refund = deposit - sum(deductions) # 850
print(refund)
```
Result: 850
The refund is $850.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $150 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [150]\nrefund = deposit - sum(deductions) # 850\nprint(refund)\n```\nResult: 850\n\nThe refund is $850."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0053747 | <|start|><|user|>
A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 11 thousand gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.2
used = 11
free = 3
bill = base + rate * max(0, used - free) # 53.6
print(f"{bill:.2f}")
```
The program prints 53.60, as expec... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 11 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.2\nused = 11\nfree = 3\nbill = base + rate * max(0, used - free) # 53.6\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "53.60", "printed": "53.60", "notation": null} |
nlprog_det-setting-0053748 | <|start|><|user|>
Diego and Marek share $1,924 in the ratio 1:3. How much does Diego get?<|eot|>
<|assistant|>
```python
total = 1924
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 481
print(share_a)
```
Output:
481
Diego's share is $481.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Diego and Marek share $1,924 in the ratio 1:3. How much does Diego get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1924\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 481\nprint(share_a)\n```\nOutput:\n481\n\nDiego's sh... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "481", "printed": "481", "notation": null} |
nlprog_det-setting-0053749 | <|start|><|user|>
Each of Tariq's bike rides burns 350 calories. How many calories over 7 bike rides?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 7
total = per_session * sessions
print(total)
```
Output:
2450
That burns 2450 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Tariq's bike rides burns 350 calories. How many calories over 7 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions\nprint(total)\n```\nOutput:\n2450\n\nThat burns 2450 calories."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0053750 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A customer buys 5 cables at $4 each, 6 keyboards at $29 each, 6 labels at $17 each, 3 sticky pads at $9 each and pays with $350. How much change is due?<|eot|>
<|assistant|>
items = [(5, 4), (6, 29), (6, 17), (3, 9)]
total = sum(q * p for q, p in ite... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A customer buys 5 cables at $4 each, 6 keyboards at $29 each, 6 labels at $17 each, 3 sticky pads at $9 each and pays with $350. How much change is due?"
},
{
"role": "assistant",
"content": "... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0053751 | Count the days between December 4, 2028 and September 17, 2029.
It is 287 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "287", "printed": "287", "notation": null} |
nlprog_det-setting-0053752 | <|start|><|user|>
171 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 171
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Printed = 28 each, 3 left over
28 each, 3 left... | chat | [
{
"role": "user",
"content": "171 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 171\n groups = 6\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "28 each, 3 left over", "printed": "28 each, 3 left over", "notation": null} |
nlprog_det-setting-0053753 | Convert 1,015 USD to CAD at 1 USD = 0.74 CAD.
Script:
```python
amount = 1015
rate = 0.74
converted = amount * rate # 751.1
print(f"{converted:.2f}")
```
(Result: 751.10)
It converts to 751.10 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "751.10", "printed": "751.10", "notation": null} |
nlprog_det-setting-0053754 | <|start|><|user|>
How many minutes pass from 8:08 AM to 10:54 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 8 # 488
end = 10 * 60 + 54 # 654
print(end - start)
```
Run output: 166
166 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:08 AM to 10:54 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 8 # 488\nend = 10 * 60 + 54 # 654\nprint(end - start)\n```\nRun output: 166\n\n166 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "166", "printed": "166", "notation": null} |
nlprog_det-setting-0053755 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How many meter... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "78400", "printed": "78400", "notation": null} |
nlprog_det-setting-0053756 | Counting only Monday through Friday, how many business days are there after May 22, 2018 through May 27, 2018?
```python
from datetime import date, timedelta
start = date(2018, 5, 22)
end = date(2018, 5, 27)
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 | [] | [] | 147 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0053757 | A filing cabinet costs $300. It is 10% off. What is the sale price?
Python does the arithmetic:
price = 300
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 270.0
print(f"{sale_price:.2f}")
Executing it gives: 270.00
It costs $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0053758 | A customer buys 6 batteries at $24 each, 1 scissors at $9 each, 4 lanyards at $22 each and pays with $250. How much change is due?
Computing it:
```python
items = [(6, 24), (1, 9), (4, 22)]
total = sum(q * p for q, p in items)
paid = 250
change = paid - total
print(change)
```
(stdout: 9)
The change is $9. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0053760 | A pack of 4 binders sells for $212. What does each cost?
Python, step by step:
```python
total = 212
count = 4
per_item = total // count # 53
print(per_item)
```
Run output: 53
The unit price is $53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0053761 | <|start|><|user|>
At $0.58 per mile, what is the reimbursement for 196 miles?<|eot|>
<|assistant|>
Elena is owed $113.68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 196 miles?"
},
{
"role": "assistant",
"content": "Elena is owed $113.68."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "113.68", "printed": "113.68", "notation": null} |
nlprog_det-setting-0053762 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 13.8%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 13.8%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0053763 | <|start|><|user|>
A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
Each payment is $180.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "Each payment is $180.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0053764 | 82 files go into boxes of 40. How many boxes does that take?
In code:
import math
files = 82
per_box = 40
boxes = math.ceil(files / per_box) # 3
print(boxes)
This prints 3, as expected.
3 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0053765 | Counting only Monday through Friday, how many business days are there after November 24, 2019 through December 9, 2019?
One way, in code:
```python
from datetime import date, timedelta
start = date(2019, 11, 24)
end = date(2019, 12, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0053766 | <|start|><|system|>
Tools (call with JSON):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code."... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"run_python\", \"description\": \"Use ... | nlprog_det | setting | original | null | deterministic | [] | [] | 298 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0053767 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 420.0
print(f"{prorated:.2f}")
```
# console output: 420.00
The pr... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 14\nprorated = rent * days_occupied / days_in_month # 420.0\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "420.00", "printed": "420.00", "notation": null} |
nlprog_det-setting-0053768 | Signe and Mei share $2,424 in the ratio 1:3. How much does Signe get?
Translated to Python:
```python
total = 2424
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 606
print(share_a)
```
The interpreter prints: 606
Signe's share is $606. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "606", "printed": "606", "notation": null} |
nlprog_det-setting-0053769 | A car travels 93 miles in 1 hours. What is its average speed in miles per hour?
Python version:
```python
distance = 93
hours = 1
speed = distance / hours # 93.0
print(round(speed))
```
Program output: 93
The average speed is 93 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0053770 | A penalty of $50 a day accrues, capped at $1,000. What is owed after 16 days?
Written as code:
```python
per_day = 50
days = 16
cap = 1000
fine = min(per_day * days, cap) # 800
print(fine)
```
The printout reads 800.
$800 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0053771 | One can of paint covers 350 square feet. How many cans are needed for 1307 square feet of wall?
Python:
```python
import math
area = 1307
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
Run it and it prints: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0053772 | <|start|><|system|>
You have access to these functions:
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Convert 3 h 17 m... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "197", "printed": "197", "notation": null} |
nlprog_det-setting-0053773 | What commission does Elena make on $75,964 in sales at 6%?
Coded up:
```python
sales = 75964
rate = 6 / 100 # 0.06
commission = sales * rate # 4557.84
print(f"{commission:.2f}")
```
Running it prints 4557.84.
The commission is $4,557.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4557.84", "printed": "4557.84", "notation": null} |
nlprog_det-setting-0053774 | The rules require 1/3 of 26 members (round up) to be present. How many is that?
Programmatically:
```python
import math
members = 26
quorum = math.ceil(members * 1 / 3) # 9
print(quorum)
```
Output — 9
That is 9 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0053775 | <|start|><|user|>
An invoice lists 10 tape rolls at $7 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
The total with tax is $74.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An invoice lists 10 tape rolls at $7 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "The total with tax is $74.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "74.20", "printed": "74.20", "notation": null} |
nlprog_det-setting-0053777 | A recipe for 8 people uses 200 grams of oats. How many grams are needed for 4 people?
Translated to Python:
```python
grams = 200
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 100
print(scaled)
```
The run gives 100.
Use 100 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0053779 | An office budget of $12,000 has expenses of $3,972, $1,594, $1,666. How much of the budget is left?
Python makes this quick:
```python
budget = 12000
expenses = [3972, 1594, 1666]
left = budget - sum(expenses) # 4768
print(left)
```
(Execution result: 4768)
The remaining budget is $4,768. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4768", "printed": "4768", "notation": null} |
nlprog_det-setting-0053780 | <|start|><|user|>
How long, in days, is it from August 17, 2025 until March 19, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 8, 17) # datetime.date(2025, 8, 17)
second = date(2026, 3, 19) # datetime.date(2026, 3, 19)
print((second - first).days)
```
The run gives 214, as expected.... | chat | [
{
"role": "user",
"content": "How long, in days, is it from August 17, 2025 until March 19, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 8, 17) # datetime.date(2025, 8, 17)\nsecond = date(2026, 3, 19) # datetime.date(2026, 3, 19)\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0053781 | A lease runs for 24 months at $1,475 per month. How much rent is paid over the whole term?
```python
monthly_rent = 1475
months = 24
total = monthly_rent * months # 35400
print(total)
```
It prints 35400.
The rent over the term is $35,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "35400", "printed": "35400", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.