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-0075173 | <|start|><|user|>
From 2005 to 2026, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2005
end_year = 2026
print(end_year - start_year)
```
Run result: 21
That is 21 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2005 to 2026, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2005\nend_year = 2026\nprint(end_year - start_year)\n```\nRun result: 21\n\nThat is 21 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0075174 | <|start|><|user|>
259 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 259
per_box = 40
boxes = math.ceil(files / per_box) # 7
print(boxes)
```
Out: 7
7 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "259 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 259\nper_box = 40\nboxes = math.ceil(files / per_box) # 7\nprint(boxes)\n```\nOut: 7\n\n7 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0075175 | Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?
Program:
```python
cost = 18000
salvage = 3000
years = 5
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Result:
3000.00
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0075176 | Fixed costs are $1,200. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?
Set it up in Python:
```python
import math
fixed = 1200
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
stdout — 120
120 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0075177 | <|start|><|user|>
A bicycle helmet costs $90. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 90
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 62.99999999999999
print(f"{sale_price:.2f}")
```
It outputs: 63.00
The sale price is $63.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A bicycle helmet costs $90. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 90\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 62.99999999999999\nprint(f\"{sale_price:.2f}\")\n```\nIt outputs: 63.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0075178 | 28 tape rolls cost $9 apiece. With 5% tax added, what is the total?
A short script:
```python
quantity = 28
unit_price = 9
subtotal = quantity * unit_price # 252
total = subtotal * (1 + 5 / 100) # 264.6
print(f"{total:.2f}")
```
The script prints 264.60.
The total with tax is $264.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "264.60", "printed": "264.60", "notation": null} |
nlprog_det-setting-0075179 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
111 copies of a 60-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
Printing costs $333.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "111 copies of a 60-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "Printing costs $333.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "333.00", "printed": "333.00", "notation": null} |
nlprog_det-setting-0075180 | Shipping costs $10 plus $0.75 per pound. What does a 2-pound parcel cost to ship?
Written as code:
```python
base = 10
per_pound = 0.75
weight = 2
cost = base + per_pound * weight # 11.5
print(f"{cost:.2f}")
```
It outputs: 11.50
The charge is $11.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "11.50", "printed": "11.50", "notation": null} |
nlprog_det-setting-0075181 | <|start|><|user|>
The rules require 1/3 of 46 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 46
quorum = math.ceil(members * 1 / 3)
print(quorum)
Run it and it prints: 16
16 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 1/3 of 46 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 46\n quorum = math.ceil(members * 1 / 3)\n print(quorum)\nRun it and it prints: 16\n\n16 members are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0075182 | A 4% increase is applied to $1,800 monthly rent. What is the new amount?
Python, step by step:
```python
rent = 1800
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1872.0
print(f"{new_rent:.2f}")
```
On running, it outputs 1872.00.
It rises to $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0075183 | Express 291 hours in days and hours.
In code:
```python
hours = 291
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
That prints: 12 days and 3 hours
That is 12 days and 3 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "12 days and 3 hours", "printed": "12 days and 3 hours", "notation": null} |
nlprog_det-setting-0075184 | <|start|><|user|>
The bridge was finished in 2010. How many years had passed by 2023?<|eot|>
<|assistant|>
```python
start_year = 2010
end_year = 2023
print(end_year - start_year)
```
(Console output: 13)
13 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The bridge was finished in 2010. How many years had passed by 2023?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2010\nend_year = 2023\nprint(end_year - start_year)\n```\n(Console output: 13)\n\n13 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0075185 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Kemal earns a 6% commission on $78,992 of sales. What is the commission?<|eot|>
<|assistant|>
The commission is $4,739.52.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Kemal earns a 6% commission on $78,992 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "The commission is $4,739.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "4739.52", "printed": "4739.52", "notation": null} |
nlprog_det-setting-0075186 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A shift runs from 8:07 AM to 1:52 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 7 # 487
end = 13 * 60 + 52 # 832
print(end - start)
```
Execution result — 345
It is 345 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A shift runs from 8:07 AM to 1:52 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 7 # 487\nend = 13 * 60 + 52 # 832\nprint(end - sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0075187 | <|start|><|user|>
Papers were served by mail on September 28, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2025, 9, 28) # datetime.date(2025, 9, 28)
response_days = 28
mail_day... | chat | [
{
"role": "user",
"content": "Papers were served by mail on September 28, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2025, 9, 28) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "2025-10-29", "printed": "2025-10-29", "notation": null} |
nlprog_det-setting-0075188 | <|start|><|user|>
From a $10,000 retainer, 11 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 11
rate = 200
left = retainer - hours * rate # 7800
print(left)
```
Execution prints 7800, as expected.
The remaining balance is $7,800.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 11 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 11\nrate = 200\nleft = retainer - hours * rate # 7800\nprint(left)\n```\nExecution prints 7800, as expected.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "7800", "printed": "7800", "notation": null} |
nlprog_det-setting-0075190 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A claim accrued on May 3, 2024. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 5, 3) # datetime.date(2024, 5, 3)
years = 5
expires = accrued.replace(ye... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A claim accrued on May 3, 2024. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued ... | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2029-05-03", "printed": "2029-05-03", "notation": null} |
nlprog_det-setting-0075191 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after June 19, 2026 up to and including July 28, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 6, 19)
end = date(2026, 7, 28)
count = 0
for k in ran... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 19, 2026 up to and including July 28, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0075192 | <|start|><|user|>
How many whole days and leftover hours are in 166 hours?<|eot|>
<|assistant|>
That is 6 days and 22 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 166 hours?"
},
{
"role": "assistant",
"content": "That is 6 days and 22 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "6 days and 22 hours", "printed": "6 days and 22 hours", "notation": null} |
nlprog_det-setting-0075193 | 2 books come back 27 days late, at $0.50 a day each. What is the fine?
We write it as a program:
```python
per_day = 0.5
days_late = 27
books = 2
fine = per_day * days_late * books # 27.0
print(f"{fine:.2f}")
```
Program output — 27.00
The fine is $27.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0075194 | A claim accrued on March 4, 2017. The limitations period is 5 years. On what date does it expire?
Here's the code.
```python
from datetime import date
accrued = date(2017, 3, 4) # datetime.date(2017, 3, 4)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 3, 4)
print(expires.isofor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2022-03-04", "printed": "2022-03-04", "notation": null} |
nlprog_det-setting-0075195 | <|start|><|user|>
117 copies of a 13-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 13
copies = 117
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 152.1
print(f"{cost:.2f}")
```
Python prints 152.10, as expected.
Printing costs $152.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "117 copies of a 13-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 13\ncopies = 117\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 152.1\nprint(f\"{cost:.2f}\")\n```\nPython print... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "152.10", "printed": "152.10", "notation": null} |
nlprog_det-setting-0075196 | Fines run at $250 per day up to a maximum of $5,000. How much after 33 days?
The Python version:
```python
per_day = 250
days = 33
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
Program output: 5000
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0075197 | <|start|><|user|>
4 books come back 10 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.2
days_late = 10
books = 4
fine = per_day * days_late * books # 8.0
print(f"{fine:.2f}")
Running it prints 8.00, as expected.
$8.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 books come back 10 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.2\n days_late = 10\n books = 4\n fine = per_day * days_late * books # 8.0\n print(f\"{fine:.2f}\")\nRunning it prints 8.00, as ... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "8.00", "printed": "8.00", "notation": null} |
nlprog_det-setting-0075198 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 19 thousand gallons?
Written as code:
base = 12
rate = 4.2
used = 19
free = 0
bill = base + rate * max(0, used - free) # 91.8
print(f"{bill:.2f}")
That prints 91.80.
The bill is $91.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "91.80", "printed": "91.80", "notation": null} |
nlprog_det-setting-0075200 | Each storage box holds 24 files. How many boxes are needed for 370 files?
We write it as a program:
import math
files = 370
per_box = 24
boxes = math.ceil(files / per_box) # 16
print(boxes)
Running it prints 16.
16 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0075201 | <|start|><|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 3,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 3
free = 0
bill = base + rate * max(0, used - free) # 27.6
print(f"{bill:.2f}")
```
The program outputs 27.60.
The bill is $27.60.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 3,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 3\nfree = 0\nbill = base + rate * max(0, used - free) # 27.6\nprint(f\"{bill:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "27.60", "printed": "27.60", "notation": null} |
nlprog_det-setting-0075202 | A $60,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?
$14,250.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "14250.00", "printed": "14250.00", "notation": null} |
nlprog_det-setting-0075203 | A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?
As a program:
```python
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
```
Execution prints 19500.
In total, $19,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0075204 | <|start|><|user|>
How many 2-foot square tiles cover a 12 ft by 8 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 12
width = 8
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 24
print(tiles)
```
# printed result: 24
It takes 24 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 12 ft by 8 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 12\nwidth = 8\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 24\nprint(tiles)\n```\n# printed result: 24\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075205 | A class starts at 12:10 PM and lasts 40 minutes. When does it end?
Python code:
```python
start = 12 * 60 + 10
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Console output: 12:50 PM)
It ends at 12:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "12:50 PM", "printed": "12:50 PM", "notation": null} |
nlprog_det-setting-0075206 | 95 copies of a 58-page packet are printed at $0.08 per page. What is the cost?
Coded up:
```python
pages = 58
copies = 95
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 440.8
print(f"{cost:.2f}")
```
Out = 440.80
Printing costs $440.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "440.80", "printed": "440.80", "notation": null} |
nlprog_det-setting-0075207 | A client paid a $10,000 retainer. The firm has billed 7 hours at $250 per hour. How much of the retainer is left?
```python
retainer = 10000
hours = 7
rate = 250
left = retainer - hours * rate # 8250
print(left)
```
Out: 8250
$8,250 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8250", "printed": "8250", "notation": null} |
nlprog_det-setting-0075208 | How many days are there from July 18, 2019 to August 9, 2020?
Here's the code.
from datetime import date
first = date(2019, 7, 18) # datetime.date(2019, 7, 18)
second = date(2020, 8, 9) # datetime.date(2020, 8, 9)
print((second - first).days)
(Out: 388)
It is 388 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "388", "printed": "388", "notation": null} |
nlprog_det-setting-0075209 | A clerk's office charges $150 for each filing. Femi submits 7 filings. What is the total fee?
Python version:
fee = 150
filings = 7
total = fee * filings # 1050
print(total)
Executed, it shows 1050.
The total fee is $1,050. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0075210 | 31 mugs cost $15 apiece. With 8% tax added, what is the total?
Programmatically:
quantity = 31
unit_price = 15
subtotal = quantity * unit_price # 465
total = subtotal * (1 + 8 / 100) # 502.20000000000005
print(f"{total:.2f}")
Executing it gives: 502.20
The invoice total is $502.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "502.20", "printed": "502.20", "notation": null} |
nlprog_det-setting-0075211 | How many of 249 votes make 67% (round up)?
One way, in code:
```python
import math
voters = 249
needed = math.ceil(voters * 67 / 100) # 167
print(needed)
```
Printed:
167
167 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "167", "printed": "167", "notation": null} |
nlprog_det-setting-0075212 | How long, in days, is it from July 16, 2020 until November 19, 2020?
The computation:
```python
from datetime import date
first = date(2020, 7, 16) # datetime.date(2020, 7, 16)
second = date(2020, 11, 19) # datetime.date(2020, 11, 19)
print((second - first).days)
```
(Result: 126)
It is 126 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0075213 | A 6-month warranty starts on January 4, 2027. On what date does it end?
Python code:
```python
from datetime import date
start = date(2027, 1, 4)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# execution result... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2027-07-04", "printed": "2027-07-04", "notation": null} |
nlprog_det-setting-0075214 | How much sales tax is charged on a $246.11 purchase at 5%?
We write it as a program:
price = 246.11
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 12.305500000000002
print(f"{tax:.2f}")
It prints 12.31, as expected.
The tax is $12.31. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "12.31", "printed": "12.31", "notation": null} |
nlprog_det-setting-0075215 | How many of 57 votes make 60% (round up)?
In Python:
```python
import math
voters = 57
needed = math.ceil(voters * 60 / 100) # 35
print(needed)
```
The printout reads 35.
35 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0075217 | <|start|><|user|>
Starting from $5,000, the team spends $1,695, $947, $2,064. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [1695, 947, 2064]
left = budget - sum(expenses) # 294
print(left)
```
The program prints: 294
The remaining budget is $294.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $1,695, $947, $2,064. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [1695, 947, 2064]\nleft = budget - sum(expenses) # 294\nprint(left)\n```\nThe program prints: 294\n\nThe remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "294", "printed": "294", "notation": null} |
nlprog_det-setting-0075218 | A 45-day notice period begins on January 12, 2020. On what date does it end?
In Python:
```python
from datetime import date, timedelta
start = date(2020, 1, 12) # datetime.date(2020, 1, 12)
end = start + timedelta(days=45) # datetime.date(2020, 2, 26)
print(end.isoformat())
```
Running this gives: 2020-02-26
That d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2020-02-26", "printed": "2020-02-26", "notation": null} |
nlprog_det-setting-0075219 | Count the days between December 22, 2020 and March 17, 2021.
Programmatically:
```python
from datetime import date
first = date(2020, 12, 22) # datetime.date(2020, 12, 22)
second = date(2021, 3, 17) # datetime.date(2021, 3, 17)
print((second - first).days)
```
The program outputs 85.
It is 85 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0075220 | A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?
Set it up in Python:
```python
monthly_rent = 1475
months = 36
total = monthly_rent * months
print(total)
```
Python prints 53100, as expected.
The rent over the term is $53,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "53100", "printed": "53100", "notation": null} |
nlprog_det-setting-0075221 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A car travels 369 miles i... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "738", "printed": "738", "notation": null} |
nlprog_det-setting-0075222 | <|start|><|user|>
Flooring at $4/sq ft for a 10 ft × 6 ft room costs how much?<|eot|>
<|assistant|>
It costs $240.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $4/sq ft for a 10 ft × 6 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $240."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0075223 | With 28 rows of 17 chairs and 32 empty chairs, how many chairs are taken?
Computation in Python:
```python
rows = 28
per_row = 17
empty = 32
seated = rows * per_row - empty # 444
print(seated)
```
The program outputs 444.
444 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0075224 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
19 cables cost $5 apiece. W... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sn... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "101.65", "printed": "101.65", "notation": null} |
nlprog_det-setting-0075225 | <|start|><|user|>
Filing fees are $125 per document. What do 11 filings cost?<|eot|>
<|assistant|>
```python
fee = 125
filings = 11
total = fee * filings # 1375
print(total)
```
Execution result — 1375
The total fee is $1,375.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $125 per document. What do 11 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 11\ntotal = fee * filings # 1375\nprint(total)\n```\nExecution result — 1375\n\nThe total fee is $1,375."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1375", "printed": "1375", "notation": null} |
nlprog_det-setting-0075226 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A claim accrued on September 10, 2016. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
It runs out on September 10, 2020.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A claim accrued on September 10, 2016. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "It runs out on September 10, 2020."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "2020-09-10", "printed": "2020-09-10", "notation": null} |
nlprog_det-setting-0075227 | <|start|><|user|>
Convert 1 h 42 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
That is 102 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1 h 42 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": "That is 102 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0075228 | The statute was enacted in 2014. How many years had passed by 2040?
Code:
```python
start_year = 2014
end_year = 2040
print(end_year - start_year)
```
It prints: 26
That is 26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0075229 | How many minutes pass from 9:52 AM to 2:56 PM on the same day?
A Python solution:
start = 9 * 60 + 52 # 592
end = 14 * 60 + 56 # 896
print(end - start)
Executed, it shows 304.
It is 304 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "304", "printed": "304", "notation": null} |
nlprog_det-setting-0075230 | Walls total 1076 sq ft and each can covers 400 sq ft. How many cans should be bought?
Translated to Python:
```python
import math
area = 1076
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
That prints 3.
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0075231 | With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.
Python, step by step:
```python
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026
print(round(margin, 1))
```
The code prints 2.7.
The margin is 2.7... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0075232 | Papers were served by mail on February 27, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
A Python solution:
```python
from datetime import date, timedelta
served = date(2019, 2, 27) # datetime.date(2019, 2, 27)
response_days = 14
mail_days = 3
due = served + timed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2019-03-16", "printed": "2019-03-16", "notation": null} |
nlprog_det-setting-0075233 | The rules require 1/3 of 26 members (round up) to be present. How many is that?
As Python:
```python
import math
members = 26
quorum = math.ceil(members * 1 / 3) # 9
print(quorum)
```
It prints 9, as expected.
9 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0075234 | <|start|><|user|>
A board has 20 members. A majority is more than half. How many votes make a majority?<|eot|>
<|assistant|>
```python
members = 20
majority = members // 2 + 1 # 11
print(majority)
```
Execution prints: 11
11 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A board has 20 members. A majority is more than half. How many votes make a majority?"
},
{
"role": "assistant",
"content": "```python\nmembers = 20\nmajority = members // 2 + 1 # 11\nprint(majority)\n```\nExecution prints: 11\n\n11 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0075235 | <|start|><|user|>
A hall has 19 rows of 16 seats, and 2 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 19
per_row = 16
empty = 2
seated = rows * per_row - empty # 302
print(seated)
```
Program output — 302
302 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 19 rows of 16 seats, and 2 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 19\nper_row = 16\nempty = 2\nseated = rows * per_row - empty # 302\nprint(seated)\n```\nProgram output — 302\n\n302 people ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "302", "printed": "302", "notation": null} |
nlprog_det-setting-0075236 | A clerk's office charges $45 for each filing. Beatriz submits 15 filings. What is the total fee?
fee = 45
filings = 15
total = fee * filings # 675
print(total)
The run gives 675.
$675 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0075237 | 6.5 hours of work at $225 an hour: what is the total charge?
The Python version:
```python
hours = 6.5
rate = 225
bill = hours * rate # 1462.5
print(f"{bill:.2f}")
```
Execution result: 1462.50
That comes to $1,462.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1462.50", "printed": "1462.50", "notation": null} |
nlprog_det-setting-0075239 | A hall has 6 rows of 18 seats, and 34 seats are empty. How many people are seated?
A Python solution:
```python
rows = 6
per_row = 18
empty = 34
seated = rows * per_row - empty # 74
print(seated)
```
The program prints 74, as expected.
74 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0075240 | <|start|><|user|>
A hall has 13 rows of 22 seats, and 32 seats are empty. How many people are seated?<|eot|>
<|assistant|>
254 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 13 rows of 22 seats, and 32 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "254 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "254", "printed": "254", "notation": null} |
nlprog_det-setting-0075241 | Equal monthly payments repay $1,200 plus 5% simple yearly interest over 12 months. How large is a payment?
As Python:
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 60.0
payment = (principal + interest) / months # 105.0
print(f"{payment:.2f}")
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0075242 | Under a 40% contingency agreement, what fee is owed on a $90,000 award?
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
Executed, it shows: 36000.00
The fee is $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0075243 | A clerk's office charges $45 for each filing. Jae submits 18 filings. What is the total fee?
Programmatically:
```python
fee = 45
filings = 18
total = fee * filings # 810
print(total)
```
On running, it outputs: 810
The filings cost $810 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "810", "printed": "810", "notation": null} |
nlprog_det-setting-0075244 | <|start|><|user|>
A 5 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 5
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 45
print(tiles)
```
Execution prints 45, as expected.
45 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 5\nwidth = 9\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 45\nprint(tiles)\n```\nExecution prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0075245 | A trial runs from June 16, 2023 to July 11, 2023, counting both days. How many calendar days is that?
We write it as a program:
```python
from datetime import date
first = date(2023, 6, 16) # datetime.date(2023, 6, 16)
last = date(2023, 7, 11) # datetime.date(2023, 7, 11)
days = (last - first).days + 1 # 26
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0075246 | Parking is $5 per hour with a daily maximum of $18. What do 3 hours cost?
Python, step by step:
rate = 5
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 15
print(cost)
# console output: 15
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0075247 | <|start|><|user|>
Nilufar earns a 5% commission on $15,923 of sales. What is the commission?<|eot|>
<|assistant|>
sales = 15923
rate = 5 / 100 # 0.05
commission = sales * rate # 796.1500000000001
print(f"{commission:.2f}")
Printed result — 796.15
The commission is $796.15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Nilufar earns a 5% commission on $15,923 of sales. What is the commission?"
},
{
"role": "assistant",
"content": " sales = 15923\n rate = 5 / 100 # 0.05\n commission = sales * rate # 796.1500000000001\n print(f\"{commission:.2f}\")\nPrinted result — 79... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "796.15", "printed": "796.15", "notation": null} |
nlprog_det-setting-0075248 | With 40% off, what does a $45 bicycle helmet cost?
Here's the code.
```python
price = 45
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 27.0
print(f"{sale_price:.2f}")
```
Executing it gives 27.00, as expected.
It costs $27.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0075249 | Someone works 20 hours at $16.00 per hour. What are the earnings?
As a program:
```python
rate = 16.0
hours = 20
earnings = rate * hours # 320.0
print(f"{earnings:.2f}")
```
Out — 320.00
That earns $320.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0075250 | 2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Each client gets $10,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0075251 | <|start|><|user|>
How many days are there from February 19, 2024 to August 31, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 2, 19) # datetime.date(2024, 2, 19)
second = date(2024, 8, 31) # datetime.date(2024, 8, 31)
print((second - first).days)
```
The run gives 194.
It is 194 da... | chat | [
{
"role": "user",
"content": "How many days are there from February 19, 2024 to August 31, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 2, 19) # datetime.date(2024, 2, 19)\nsecond = date(2024, 8, 31) # datetime.date(2024, 8, 31)\nprint((... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "194", "printed": "194", "notation": null} |
nlprog_det-setting-0075252 | Scale 200 g of sugar from 4 servings to 3 servings.
150 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0075253 | At $25.51 an hour, what does 38 hours of work pay?
Programmatically:
```python
rate = 25.51
hours = 38
earnings = rate * hours # 969.3800000000001
print(f"{earnings:.2f}")
```
Executed, it shows: 969.38
That earns $969.38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "969.38", "printed": "969.38", "notation": null} |
nlprog_det-setting-0075254 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": ... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 296 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0075255 | What is the total rent on a 12-month lease at $2,100 a month?
Translated to Python:
monthly_rent = 2100
months = 12
total = monthly_rent * months # 25200
print(total)
It prints 25200.
The rent over the term is $25,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0075256 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Yara earns a 6% commission on $113,141 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 113141
rate = 6 / 100 # 0.06
commission = sales * rate # 6788.46
print(f"{commission:.2f}")
```
stdout — 6788.46
Yara earns $6,788.4... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Yara earns a 6% commission on $113,141 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 113141\nrate = 6 / 100 # 0.06\ncommission = sales... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6788.46", "printed": "6788.46", "notation": null} |
nlprog_det-setting-0075257 | On which weekday does July 25, 1996 fall?
Code:
from datetime import date
hearing = date(1996, 7, 25) # datetime.date(1996, 7, 25)
print(hearing.strftime("%A"))
Run output — Thursday
It is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0075258 | If a 6-year limitations period starts on December 2, 2014, when does it end?
Programmatically:
from datetime import date
accrued = date(2014, 12, 2) # datetime.date(2014, 12, 2)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 12, 2)
print(expires.isoformat())
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2020-12-02", "printed": "2020-12-02", "notation": null} |
nlprog_det-setting-0075259 | <|start|><|user|>
Which is cheaper per unit: 12 for $14.01 (A) or 24 for $11.84 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.01 / 12 # 1.1675
pack_b = 11.84 / 24 # 0.49333333333333335
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Interpreter output: B
Pack B is cheaper per item.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $14.01 (A) or 24 for $11.84 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.01 / 12 # 1.1675\npack_b = 11.84 / 24 # 0.49333333333333335\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0075260 | Under a 40% contingency agreement, what fee is owed on a $12,000 award?
In code:
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
Output: 4800.00
The fee is $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0075261 | <|start|><|system|>
Tools (call with JSON):
[{"name": "run_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|>
Meals are $74 per day an... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0075263 | <|start|><|user|>
A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
That prints 24.
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 9\nyearly = 84\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThat prints 24.\n\nThe annu... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075265 | What is the total rent on a 12-month lease at $850 a month?
Python code:
```python
monthly_rent = 850
months = 12
total = monthly_rent * months # 10200
print(total)
```
That prints 10200.
In total, $10,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0075266 | <|start|><|user|>
A 270-page report must be reviewed in 10 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
27 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 270-page report must be reviewed in 10 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "27 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0075267 | At $0.65 per mile, what is the reimbursement for 473 miles?
Python version:
```python
miles = 473
rate = 0.65
reimbursement = miles * rate # 307.45
print(f"{reimbursement:.2f}")
```
This prints 307.45.
The reimbursement is $307.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "307.45", "printed": "307.45", "notation": null} |
nlprog_det-setting-0075268 | 4 hours of work at $150 an hour: what is the total charge?
Python, step by step:
```python
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
```
stdout = 600.00
That comes to $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0075269 | A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
Execution prints 36000.00, as expected.
The fee is $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0075270 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
If a 6-year limitations period starts on May 22, 2023, when does it end?<|eot|>
<|assistant|>
The period expires on May 22, 2029.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "If a 6-year limitations period starts on May 22, 2023, when does it end?"
},
{
"role": "assistant",
"content": "The period expires on May 22, 2029."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2029-05-22", "printed": "2029-05-22", "notation": null} |
nlprog_det-setting-0075271 | A customer buys 4 flash drives at $2 each, 3 file boxes at $23 each, 5 binders at $15 each, 5 keyboards at $7 each and pays with $200. How much change is due?
A few lines of Python do it:
```python
items = [(4, 2), (3, 23), (5, 15), (5, 7)]
total = sum(q * p for q, p in items) # 187
paid = 200
change = paid - total ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0075272 | How many units at $30 each (variable cost $20) cover $1,200 of fixed costs?
Python version:
```python
import math
fixed = 1200
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
# printed result: 120
120 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0075273 | A 10-day notice period begins on January 9, 2025. On what date does it end?
The program:
```python
from datetime import date, timedelta
start = date(2025, 1, 9) # datetime.date(2025, 1, 9)
end = start + timedelta(days=10) # datetime.date(2025, 1, 19)
print(end.isoformat())
```
Run it and it prints: 2025-01-19
That ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2025-01-19", "printed": "2025-01-19", "notation": null} |
nlprog_det-setting-0075274 | How many 1-foot square tiles cover a 20 ft by 10 ft floor (round up)?
Python makes this quick:
```python
import math
length = 20
width = 10
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 200
print(tiles)
```
Run output — 200
It takes 200 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0075275 | What is a 20% tip on a $79.68 bill?
```python
bill = 79.68
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 15.936000000000002
print(f"{tip:.2f}")
```
The script prints 15.94.
The tip is $15.94. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "15.94", "printed": "15.94", "notation": null} |
nlprog_det-setting-0075276 | <|start|><|user|>
Ines buys 12 boxes of 8 headsets each and gives away 6 headsets. How many headsets are left?<|eot|>
<|assistant|>
boxes = 12
per_box = 8
given_away = 6
left = boxes * per_box - given_away
print(left)
The printout reads 90.
90 headsets are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ines buys 12 boxes of 8 headsets each and gives away 6 headsets. How many headsets are left?"
},
{
"role": "assistant",
"content": " boxes = 12\n per_box = 8\n given_away = 6\n left = boxes * per_box - given_away\n print(left)\nThe printout reads 90.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0075277 | <|start|><|user|>
The rules require 1/3 of 35 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 35
quorum = math.ceil(members * 1 / 3) # 12
print(quorum)
```
Output: 12
That is 12 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 1/3 of 35 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 35\nquorum = math.ceil(members * 1 / 3) # 12\nprint(quorum)\n```\nOutput: 12\n\nThat is 12 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0075278 | <|start|><|user|>
Convert 85.9 km to meters.<|eot|>
<|assistant|>
```python
km = 85.9
meters = km * 1000 # 85900.0
print(round(meters))
```
It outputs: 85900
That is 85,900 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 85.9 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 85.9\nmeters = km * 1000 # 85900.0\nprint(round(meters))\n```\nIt outputs: 85900\n\nThat is 85,900 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "85900", "printed": "85900", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.