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-0048184 | With 19 rows of 11 chairs and 4 empty chairs, how many chairs are taken?
Translated to Python:
```python
rows = 19
per_row = 11
empty = 4
seated = rows * per_row - empty # 205
print(seated)
```
# output: 205
205 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "205", "printed": "205", "notation": null} |
nlprog_det-setting-0048185 | After an initial $2,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?
Here is the program.
```python
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 3833.3333333333335
print(f"{each:.2f}")
```
Python prints 3833.33.
Each installment is $3,8... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0048186 | <|start|><|system|>
Functions:
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\"name\... | nlprog_det | setting | original | null | deterministic | [] | [] | 355 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0048189 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Find the mean of these test scores: 86, 51, 72, 78, 93 and 70.<|eot|>
<|assistant|>
```python
scores = [86, 51, 72, 78, 93, 70]
average = sum(scores) // len(scores) # 75
print(average)
```
Result:
75
The average score is 75.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Find the mean of these test scores: 86, 51, 72, 78, 93 and 70."
},
{
"role": "assistant",
"content": "```python\nscores = [86, 51, 72, 78, 93, 70]\naverage = sum(scores) /... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0048190 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Parking is $3 per hour with a daily maximum of $20. What do 12 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 12
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Console output: 20
The charge is $20.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $20. What do 12 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 12\ndaily_max = 20\ncost = min(rate * hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0048191 | <|start|><|user|>
A desk lamp costs $120. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 120
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 84.0
print(f"{sale_price:.2f}")
```
(Run result: 84.00)
The sale price is $84.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A desk lamp costs $120. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 84.0\nprint(f\"{sale_price:.2f}\")\n```\n(Run result: 84.00)\n\nThe sale ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0048192 | At $0.62 per mile, what is the reimbursement for 30 miles?
A Python solution:
```python
miles = 30
rate = 0.62
reimbursement = miles * rate # 18.6
print(f"{reimbursement:.2f}")
```
That prints 18.60.
Vera is owed $18.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "18.60", "printed": "18.60", "notation": null} |
nlprog_det-setting-0048194 | Someone born June 19, 2001 turns how old by September 19, 2024? Give the age in whole years.
Omar is 23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0048195 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
What does $5,000 grow to ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "5408.00", "printed": "5408.00", "notation": null} |
nlprog_det-setting-0048196 | How many units at $15 each (variable cost $11) cover $4,000 of fixed costs?
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0048197 | Monthly rent is $1,200. A tenant moves in with 16 days left in a 31-day month. What is the prorated rent?
```python
rent = 1200
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 619.3548387096774
print(f"{prorated:.2f}")
```
# console output: 619.35
The prorated rent is $619.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "619.35", "printed": "619.35", "notation": null} |
nlprog_det-setting-0048198 | <|start|><|user|>
A chair costs $75. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
It costs $67.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A chair costs $75. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": "It costs $67.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0048200 | Fixed costs are $6,000. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even?
750 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0048201 | <|start|><|user|>
The paralegal logged 4 hours at a rate of $150. How much is billed?<|eot|>
<|assistant|>
```python
hours = 4
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
It prints: 600.00
That comes to $600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 4 hours at a rate of $150. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nIt prints: 600.00\n\nThat comes to $600.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0048202 | <|start|><|user|>
An attorney bills 10.5 hours at $250 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 10.5
rate = 250
bill = hours * rate # 2625.0
print(f"{bill:.2f}")
The program prints 2625.00, as expected.
That comes to $2,625.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 10.5 hours at $250 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 10.5\n rate = 250\n bill = hours * rate # 2625.0\n print(f\"{bill:.2f}\")\nThe program prints 2625.00, as expected.\n\nThat comes to $2,625.... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0048203 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A customer buys 1 cables at $4 each, 5 desk lamps at $23 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
$31 comes back.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A customer buys 1 cables at $4 each, 5 desk lamps at $23 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": "$31 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0048204 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Which is cheaper per unit: 10 for $14.62 (A) or 15 for $15.25 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.62 / 10 # 1.462
pack_b = 15.25 / 15 # 1.0166666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Result: B)
B has... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $14.62 (A) or 15 for $15.25 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.62 / 10 # 1.462\npack_b = 15.25 / 15 # 1.0166666666666666\... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048205 | A claim accrued on January 19, 2021. The limitations period is 6 years. On what date does it expire?
```python
from datetime import date
accrued = date(2021, 1, 19) # datetime.date(2021, 1, 19)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 1, 19)
print(expires.isoformat())
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2027-01-19", "printed": "2027-01-19", "notation": null} |
nlprog_det-setting-0048206 | Monthly: $9. Annual: $84. What is saved per year by paying annually?
Code:
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
When run, it prints 24.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0048207 | A $120 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
The program:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 28.8
print(f"{each:.2f}")
```
# stdout: 28.80
The share is $28.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0048208 | <|start|><|user|>
An invoice lists 17 labels at $5 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 17
unit_price = 5
subtotal = quantity * unit_price # 85
total = subtotal * (1 + 6 / 100) # 90.10000000000001
print(f"{total:.2f}")
```
Executing it gives 90.10.
The total w... | chat | [
{
"role": "user",
"content": "An invoice lists 17 labels at $5 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 17\nunit_price = 5\nsubtotal = quantity * unit_price # 85\ntotal = subtotal * (1 + 6 / 100) # 90.10000000000001\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "90.10", "printed": "90.10", "notation": null} |
nlprog_det-setting-0048209 | A seminar starts at 11:00 AM and lasts 50 minutes. When does it end?
Set it up in Python:
```python
start = 11 * 60 + 0
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution result — 11:50 AM
The seminar finishes at 11:50 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "11:50 AM", "printed": "11:50 AM", "notation": null} |
nlprog_det-setting-0048210 | A 120-day notice period begins on November 4, 2020. On what date does it end?
Set it up in Python:
from datetime import date, timedelta
start = date(2020, 11, 4) # datetime.date(2020, 11, 4)
end = start + timedelta(days=120) # datetime.date(2021, 3, 4)
print(end.isoformat())
(Output: 2021-03-04)
Tha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2021-03-04", "printed": "2021-03-04", "notation": null} |
nlprog_det-setting-0048211 | <|start|><|user|>
A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 21 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 5.1
used = 21
free = 2
bill = base + rate * max(0, used - free) # 111.89999999999999
print(f"{bill:.2f}")
```
# execution result: ... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 21 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 5.1\nused = 21\nfree = 2\nbill = base + rate * max(0, used - free) # 111.8... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "111.90", "printed": "111.90", "notation": null} |
nlprog_det-setting-0048213 | <|start|><|user|>
Someone born October 7, 2000 turns how old by March 18, 2023? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2000, 10, 7) # datetime.date(2000, 10, 7)
on = date(2023, 3, 18) # datetime.date(2023, 3, 18)
age = on.year - born.year - ((on.month, on.day... | chat | [
{
"role": "user",
"content": "Someone born October 7, 2000 turns how old by March 18, 2023? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2000, 10, 7) # datetime.date(2000, 10, 7)\non = date(2023, 3, 18) # datetime.date(20... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0048214 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 19 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1140.0
print(f"{prorated:.2f}")
```
Executed, it shows 1140.00.
... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 19 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 19\nprorated = rent * days_occupied / days_in_month # 1140.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "1140.00", "printed": "1140.00", "notation": null} |
nlprog_det-setting-0048215 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "math_engine", "descripti... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0048216 | A 5 lb package ships at $10 base plus $2.50/lb. What is the charge?
Python:
```python
base = 10
per_pound = 2.5
weight = 5
cost = base + per_pound * weight # 22.5
print(f"{cost:.2f}")
```
The code prints: 22.50
The charge is $22.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "22.50", "printed": "22.50", "notation": null} |
nlprog_det-setting-0048218 | <|start|><|user|>
How many meters are in 45.9 kilometers?<|eot|>
<|assistant|>
```python
km = 45.9
meters = km * 1000 # 45900.0
print(round(meters))
```
Output of the run — 45900
45,900 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 45.9 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 45.9\nmeters = km * 1000 # 45900.0\nprint(round(meters))\n```\nOutput of the run — 45900\n\n45,900 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "45900", "printed": "45900", "notation": null} |
nlprog_det-setting-0048220 | A count moves from 2,500 to 3,000. By what percent did it change (use a minus sign for a drop)?
Translated to Python:
```python
old = 2500
new = 3000
change = (new - old) / old * 100 # 20.0
print(round(change))
```
stdout — 20
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0048221 | <|start|><|user|>
A storeroom has 1193 lanyards. The office uses 10 a day. How many are left after 17 days?<|eot|>
<|assistant|>
```python
stock = 1193
per_day = 10
days = 17
left = stock - per_day * days # 1023
print(left)
```
# output: 1023
1023 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1193 lanyards. The office uses 10 a day. How many are left after 17 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1193\nper_day = 10\ndays = 17\nleft = stock - per_day * days # 1023\nprint(left)\n```\n# output: 1023\n\n1023 remain.... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1023", "printed": "1023", "notation": null} |
nlprog_det-setting-0048222 | <|start|><|user|>
A $60,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 4750.0
print(f"{each:.2f}")
```
The run gives: 4750.00
Each installment... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 12\neach = (grant - up_front) / installments # 4750.0\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "4750.00", "printed": "4750.00", "notation": null} |
nlprog_det-setting-0048223 | At an exchange rate of 1.27 USD per CHF, how many USD is 1,481 CHF?
Set it up in Python:
```python
amount = 1481
rate = 1.27
converted = amount * rate # 1880.8700000000001
print(f"{converted:.2f}")
```
The code prints 1880.87.
That is 1,880.87 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1880.87", "printed": "1880.87", "notation": null} |
nlprog_det-setting-0048224 | On which weekday does December 5, 2015 fall?
We can compute it in Python.
```python
from datetime import date
hearing = date(2015, 12, 5) # datetime.date(2015, 12, 5)
print(hearing.strftime("%A"))
```
Executed, it shows Saturday.
December 5, 2015 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0048225 | <|start|><|user|>
Count 45 days forward from January 16, 2026. What date is that?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2026, 1, 16) # datetime.date(2026, 1, 16)
end = start + timedelta(days=45) # datetime.date(2026, 3, 2)
print(end.isoformat())
The script prints 2026-... | chat | [
{
"role": "user",
"content": "Count 45 days forward from January 16, 2026. What date is that?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2026, 1, 16) # datetime.date(2026, 1, 16)\n end = start + timedelta(days=45) # datetime.date(2026, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2026-03-02", "printed": "2026-03-02", "notation": null} |
nlprog_det-setting-0048226 | <|start|><|user|>
73 copies of a 27-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
The job costs $295.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "73 copies of a 27-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": "The job costs $295.65."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "295.65", "printed": "295.65", "notation": null} |
nlprog_det-setting-0048227 | A $1,500 security deposit has deductions of $60. How much is refunded?
Let the code do the arithmetic:
```python
deposit = 1500
deductions = [60]
refund = deposit - sum(deductions) # 1440
print(refund)
```
(Console output: 1440)
$1,440 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0048229 | At $29.01 an hour, what does 24 hours of work pay?
Let's compute it with Python.
```python
rate = 29.01
hours = 24
earnings = rate * hours
print(f"{earnings:.2f}")
```
stdout = 696.24
That earns $696.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "696.24", "printed": "696.24", "notation": null} |
nlprog_det-setting-0048230 | A claim accrued on February 4, 2018. The limitations period is 2 years. On what date does it expire?
We write it as a program:
```python
from datetime import date
accrued = date(2018, 2, 4) # datetime.date(2018, 2, 4)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 2, 4)
print(ex... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2020-02-04", "printed": "2020-02-04", "notation": null} |
nlprog_det-setting-0048231 | Papers were served by mail on November 9, 2025. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Python does the arithmetic:
```python
from datetime import date, timedelta
served = date(2025, 11, 9) # datetime.date(2025, 11, 9)
response_days = 21
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2025-12-03", "printed": "2025-12-03", "notation": null} |
nlprog_det-setting-0048232 | A trial runs from September 16, 2021 to September 23, 2021, counting both days. How many calendar days is that?
Let's compute it with Python.
```python
from datetime import date
first = date(2021, 9, 16)
last = date(2021, 9, 23)
days = (last - first).days + 1
print(days)
```
# console output: 8
8 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0048233 | Fines run at $100 per day up to a maximum of $5,000. How much after 35 days?
Computation in Python:
```python
per_day = 100
days = 35
cap = 5000
fine = min(per_day * days, cap) # 3500
print(fine)
```
Run result = 3500
$3,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0048234 | A party has 30 days to respond to a motion served on November 20, 2028, with 3 days added because service was by mail. When is the response due?
The response is due on December 23, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "2028-12-23", "printed": "2028-12-23", "notation": null} |
nlprog_det-setting-0048235 | <|start|><|user|>
Counting the first and last day, how many days are there from August 28, 2027 through September 2, 2027?<|eot|>
<|assistant|>
from datetime import date
first = date(2027, 8, 28) # datetime.date(2027, 8, 28)
last = date(2027, 9, 2) # datetime.date(2027, 9, 2)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from August 28, 2027 through September 2, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2027, 8, 28) # datetime.date(2027, 8, 28)\n last = date(2027, 9, 2) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0048236 | <|start|><|user|>
Which is cheaper per unit: 10 for $13.64 (A) or 20 for $14.99 (B)?<|eot|>
<|assistant|>
```python
pack_a = 13.64 / 10 # 1.364
pack_b = 14.99 / 20 # 0.7495
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Printed — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $13.64 (A) or 20 for $14.99 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.64 / 10 # 1.364\npack_b = 14.99 / 20 # 0.7495\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nPrinted — B\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048237 | Copies cost $5 plus $0.25 for each page beyond 10. How much for 65 pages?
The copy costs $18.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "18.75", "printed": "18.75", "notation": null} |
nlprog_det-setting-0048238 | <|start|><|system|>
Functions:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A penalty of $100 a day accrues, capped at... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0048239 | <|start|><|user|>
Maren earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 55
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
It outputs 1000.00.
The weekly pay is $... | chat | [
{
"role": "user",
"content": "Maren earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 55\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0048240 | <|start|><|user|>
A shift starts at 8:40 AM and lasts 40 minutes. When does it end?<|eot|>
<|assistant|>
It ends at 9:20 AM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift starts at 8:40 AM and lasts 40 minutes. When does it end?"
},
{
"role": "assistant",
"content": "It ends at 9:20 AM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "9:20 AM", "printed": "9:20 AM", "notation": null} |
nlprog_det-setting-0048241 | <|start|><|user|>
Jonas lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 600.0
print(f"{interest:.2f}")
```
Out: 600.00
The interest is $600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jonas lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 6 / 100 # 0.06\nyears = 2\ninterest = principal * rate * years # 600.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0048242 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 0
years = 3
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
Printed — 4000.00
$4,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 0\nyears = 3\nper_year = (cost - salvage) / years # 4000.0\nprint(f\"{per_year:.2f}\")\n```\nPrinted — 4000.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0048244 | What does $2,000 grow to in 4 years at 2% annual compounding?
Here is a short program for it.
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 4
value = principal * (1 + rate) ** years # 2164.86432
print(f"{value:.2f}")
```
It outputs: 2164.86
It is worth $2,164.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2164.86", "printed": "2164.86", "notation": null} |
nlprog_det-setting-0048245 | <|start|><|user|>
With 10% off, what does a $60 kettle cost?<|eot|>
<|assistant|>
```python
price = 60
discount = 10 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
This prints 54.00, as expected.
The sale price is $54.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $60 kettle cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 60\ndiscount = 10 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nThis prints 54.00, as expected.\n\nThe sale price is $54.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0048246 | A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?
Script:
```python
base = 12
rate = 3.5
used = 12
free = 0
bill = base + rate * max(0, used - free) # 54.0
print(f"{bill:.2f}")
```
Running this gives 54.00.
The bill is $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0048247 | Someone works 40 hours at $31.47 per hour. What are the earnings?
Python code:
```python
rate = 31.47
hours = 40
earnings = rate * hours # 1258.8
print(f"{earnings:.2f}")
```
It outputs: 1258.80
That earns $1,258.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1258.80", "printed": "1258.80", "notation": null} |
nlprog_det-setting-0048249 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
On which weekday does November 5, 2002 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2002, 11, 5) # datetime.date(2002, 11, 5)
print(hearing.strftime("%A"))
```
That prints Tuesday.
November 5, 2002 is a Tuesday.<|eot... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "On which weekday does November 5, 2002 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2002, 11, 5) # datetime.date(2002, 11, 5)\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0048250 | The paralegal logged 1.5 hours at a rate of $225. How much is billed?
```python
hours = 1.5
rate = 225
bill = hours * rate # 337.5
print(f"{bill:.2f}")
```
The interpreter prints 337.50.
That comes to $337.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0048251 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A 36-month warranty starts on August 23, 2023. On what date does it end?<|eot|>
<|assistant|>
from datetime import date
start = date(2023, 8, 23)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + y... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A 36-month warranty starts on August 23, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2023, 8, 23)\n months = 36\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2026-08-23", "printed": "2026-08-23", "notation": null} |
nlprog_det-setting-0048252 | <|start|><|user|>
A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 64-page copy cost?<|eot|>
<|assistant|>
```python
pages = 64
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 26.0
print(f"{cost:.2f}")
```
Result = 26.00
The tota... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 64-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 64\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "26.00", "printed": "26.00", "notation": null} |
nlprog_det-setting-0048253 | Monthly rent is $900. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?
Program:
```python
rent = 900
days_in_month = 30
days_occupied = 5
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The program outputs 150.00.
The tenant owes $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0048254 | What simple interest does $2,500 earn at 3% a year over 6 years?
Python code:
```python
principal = 2500
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 450.0
print(f"{interest:.2f}")
```
# result: 450.00
It earns $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0048256 | Farah lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned?
The Python version:
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 3
interest = principal * rate * years # 600.0
print(f"{interest:.2f}")
```
Execution result: 600.00
It earns $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0048257 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A 6% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1908.0
print(f"{new_rent:.2f}")
```
The run gives 1908.00, as expected.
The new... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A 6% increase is applied to $1,800 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increa... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1908.00", "printed": "1908.00", "notation": null} |
nlprog_det-setting-0048258 | Which is cheaper per unit: 6 for $14.30 (A) or 24 for $27.57 (B)?
Code:
pack_a = 14.3 / 6 # 2.3833333333333333
pack_b = 27.57 / 24 # 1.14875
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Execution prints B, as expected.
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048259 | Notice was given on April 14, 2018. The notice period is 120 days. When does it run out?
A short script:
```python
from datetime import date, timedelta
start = date(2018, 4, 14) # datetime.date(2018, 4, 14)
end = start + timedelta(days=120) # datetime.date(2018, 8, 12)
print(end.isoformat())
```
When run, it prints ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2018-08-12", "printed": "2018-08-12", "notation": null} |
nlprog_det-setting-0048260 | Convert 1,147 EUR to USD at 1 EUR = 0.74 USD.
```python
amount = 1147
rate = 0.74
converted = amount * rate # 848.78
print(f"{converted:.2f}")
```
Executing it gives: 848.78
That is 848.78 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "848.78", "printed": "848.78", "notation": null} |
nlprog_det-setting-0048261 | Convert 3,412 GBP to USD at 1 GBP = 1.12 USD.
Script:
amount = 3412
rate = 1.12
converted = amount * rate # 3821.4400000000005
print(f"{converted:.2f}")
On running, it outputs 3821.44.
It converts to 3,821.44 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3821.44", "printed": "3821.44", "notation": null} |
nlprog_det-setting-0048262 | <|start|><|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}")
```
Console output: 1575.00
That comes to $1,575.00.<|eot|>
<|end|> | chat | [
{
"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}\")\n```\nConsole output: 1575.00\n\nThat comes to $1,575.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0048263 | <|start|><|user|>
A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
This prints 48.
The annual plan saves $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 12\n yearly = 96\n savings = monthly * 12 - yearly # 48\n print(savings)\nThis prints 48.\n\nThe an... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0048264 | <|start|><|system|>
Functions:
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
How many meters are in 57.7 kilomete... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "57700", "printed": "57700", "notation": null} |
nlprog_det-setting-0048265 | <|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": "searc... | 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 | [] | [] | 299 | {"gold": "8804.51", "printed": "8804.51", "notation": null} |
nlprog_det-setting-0048266 | <|start|><|system|>
Tool definitions:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "define_word", "de... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0048268 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 9
rate = 275
left = retainer - hours * rate # 25
print(left)
```
Running it prints 25.
The remaining balance is $25.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 9\nrate = 275\nleft = retainer - hours * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0048269 | Each of Ulla's swims burns 400 calories. How many calories over 7 swims?
Here's the code.
```python
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
```
Execution result: 2800
That burns 2800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0048270 | <|start|><|user|>
Of a $5,000 budget, $300 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 300
percent = spent / budget * 100 # 6.0
print(round(percent, 1))
```
Out — 6.0
That is 6.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $300 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 300\npercent = spent / budget * 100 # 6.0\nprint(round(percent, 1))\n```\nOut — 6.0\n\nThat is 6.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "6.0", "printed": "6.0", "notation": null} |
nlprog_det-setting-0048271 | After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
A Python solution:
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 3 # 24000.0
print(f"{per_client:.2f}")
Executio... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0048272 | Convert 4 h 16 min (the length of a hearing) to minutes.
Code:
```python
hours = 4
minutes = 16
total_minutes = hours * 60 + minutes # 256
print(total_minutes)
```
Running it prints 256, as expected.
The hearing lasted 256 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "256", "printed": "256", "notation": null} |
nlprog_det-setting-0048273 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing", "description": "Fetch ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "96.60", "printed": "96.60", "notation": null} |
nlprog_det-setting-0048274 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $2,500. How much after 25 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 25
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Out = 2500
The fine is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $2,500. How much after 25 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 25\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nOut = 2500\n\nThe fine is $2,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0048275 | Notice was given on June 1, 2018. The notice period is 90 days. When does it run out?
Code:
```python
from datetime import date, timedelta
start = date(2018, 6, 1)
end = start + timedelta(days=90)
print(end.isoformat())
```
Run output — 2018-08-30
It ends on August 30, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2018-08-30", "printed": "2018-08-30", "notation": null} |
nlprog_det-setting-0048276 | Equal monthly payments repay $9,000 plus 10% simple yearly interest over 36 months. How large is a payment?
The monthly payment is $325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "325.00", "printed": "325.00", "notation": null} |
nlprog_det-setting-0048277 | How many days are there from December 12, 2020 to May 25, 2021?
The program:
```python
from datetime import date
first = date(2020, 12, 12) # datetime.date(2020, 12, 12)
second = date(2021, 5, 25) # datetime.date(2021, 5, 25)
print((second - first).days)
```
What it prints — 164
There are 164 days between the two d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0048278 | A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons?
Translated to Python:
base = 15
rate = 5.1
used = 25
free = 3
bill = base + rate * max(0, used - free) # 127.19999999999999
print(f"{bill:.2f}")
# out: 127.20
$127.20 is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "127.20", "printed": "127.20", "notation": null} |
nlprog_det-setting-0048279 | Parking is $5 per hour with a daily maximum of $20. What do 1 hours cost?
```python
rate = 5
hours = 1
daily_max = 20
cost = min(rate * hours, daily_max) # 5
print(cost)
```
Out — 5
Parking costs $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0048280 | <|start|><|user|>
Count the days between October 24, 2023 and November 24, 2023.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 10, 24) # datetime.date(2023, 10, 24)
second = date(2023, 11, 24) # datetime.date(2023, 11, 24)
print((second - first).days)
```
It outputs: 31
There are 31 day... | chat | [
{
"role": "user",
"content": "Count the days between October 24, 2023 and November 24, 2023."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 10, 24) # datetime.date(2023, 10, 24)\nsecond = date(2023, 11, 24) # datetime.date(2023, 11, 24)\nprint((... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0048281 | <|start|><|user|>
A 5% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
# stdout: 1890.00
It rises to $1,890.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5% increase is applied to $1,800 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 5 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\n# stdout: 1890.00\n\nIt rises to $1,890.00.... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0048282 | <|start|><|user|>
At an exchange rate of 1.08 USD per GBP, how many USD is 7,312 GBP?<|eot|>
<|assistant|>
```python
amount = 7312
rate = 1.08
converted = amount * rate # 7896.960000000001
print(f"{converted:.2f}")
```
Printed result — 7896.96
It converts to 7,896.96 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.08 USD per GBP, how many USD is 7,312 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 7312\nrate = 1.08\nconverted = amount * rate # 7896.960000000001\nprint(f\"{converted:.2f}\")\n```\nPrinted result — 7896.96\n\nIt convert... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "7896.96", "printed": "7896.96", "notation": null} |
nlprog_det-setting-0048283 | 2 claimants share a $7,350 settlement equally. What is each share?
Each share is $3,675. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "3675", "printed": "3675", "notation": null} |
nlprog_det-setting-0048284 | Diego and Noor share $6,237 in the ratio 3:4. How much does Diego get?
Python code:
total = 6237
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2673
print(share_a)
# run result: 2673
Diego's share is $2,673. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2673", "printed": "2673", "notation": null} |
nlprog_det-setting-0048285 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 12 months. How large is a payment?
Python, step by step:
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 96.0
payment = (principal + interest) / months # 108.0
print(f"{paym... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0048286 | <|start|><|system|>
Tools you may use:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "lookup_statute", "description": "Look up the text o... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 405 | {"gold": "83.00", "printed": "83.00", "notation": null} |
nlprog_det-setting-0048288 | A storeroom has 850 chairs. The office uses 30 a day. How many are left after 16 days?
Script:
```python
stock = 850
per_day = 30
days = 16
left = stock - per_day * days # 370
print(left)
```
The printout reads 370.
370 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "370", "printed": "370", "notation": null} |
nlprog_det-setting-0048289 | Goran was born on January 23, 1991. How old is Goran on September 13, 2021?
Translated to Python:
```python
from datetime import date
born = date(1991, 1, 23) # datetime.date(1991, 1, 23)
on = date(2021, 9, 13) # datetime.date(2021, 9, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0048290 | <|start|><|user|>
Jamal earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 41
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 37.5
pay = regular + overtime # 1037.5
print(f"{pay:.2f}")
```
Running this... | chat | [
{
"role": "user",
"content": "Jamal earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 37.5\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1037.50", "printed": "1037.50", "notation": null} |
nlprog_det-setting-0048291 | A claim accrued on September 19, 2014. The limitations period is 3 years. On what date does it expire?
The period expires on September 19, 2017. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2017-09-19", "printed": "2017-09-19", "notation": null} |
nlprog_det-setting-0048292 | 5 claimants share a $525 settlement equally. What is each share?
Computation in Python:
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
Running it prints 105.
Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0048293 | At a 7% tax rate, what is the tax on $107.96? The tax is $7.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "7.56", "printed": "7.56", "notation": null} |
nlprog_det-setting-0048294 | <|start|><|user|>
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 55-page copy cost?<|eot|>
<|assistant|>
```python
pages = 55
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 18.5
print(f"{cost:.2f}")
```
Output — 18.50
The copy ... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 55-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 55\nbase = 15\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "18.50", "printed": "18.50", "notation": null} |
nlprog_det-setting-0048295 | Diego earns a 4% commission on $10,164 of sales. What is the commission? The commission is $406.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "406.56", "printed": "406.56", "notation": null} |
nlprog_det-setting-0048296 | Divide 284 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
A short script:
```python
total = 284
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The interpreter prints: 35 each, 4 left over
35 each, 4 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "35 each, 4 left over", "printed": "35 each, 4 left over", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.