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-0055177 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
To read 816 pages in 16 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 816
days = 16
per_day = pages // days # 51
print(per_day)
```
Interpreter output — 51
That is 51 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "To read 816 pages in 16 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 816\ndays = 16\nper_day = pages // days # 51\nprint(per_day)\n```\nIn... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0055178 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 673 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 673
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run output — 3
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 673 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 673\ncoverage = 300\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRun output — 3\n\n3 ca... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055179 | A 4 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Let the code do the arithmetic:
```python
import math
length = 4
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 52
print(tiles)
```
Console:
52
It takes 52 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0055180 | <|start|><|user|>
Sofia and Nilufar share $2,376 in the ratio 3:5. How much does Sofia get?<|eot|>
<|assistant|>
```python
total = 2376
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 891
print(share_a)
```
Execution result: 891
Sofia gets $891.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sofia and Nilufar share $2,376 in the ratio 3:5. How much does Sofia get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2376\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 891\nprint(share_a)\n```\nExecution result: 891\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "891", "printed": "891", "notation": null} |
nlprog_det-setting-0055181 | 23 copies of a 14-page packet are printed at $0.05 per page. What is the cost?
Python:
```python
pages = 14
copies = 23
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 16.1
print(f"{cost:.2f}")
```
Executed, it shows 16.10.
The job costs $16.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "16.10", "printed": "16.10", "notation": null} |
nlprog_det-setting-0055182 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
```
# printed result: 2250
Break-even i... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 26\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0055183 | What commission does Nilufar make on $114,547 in sales at 4%?
The commission is $4,581.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "4581.88", "printed": "4581.88", "notation": null} |
nlprog_det-setting-0055185 | Pack A has 8 items for $13.62. Pack B has 18 items for $16.50. Which has the lower price per item?
We write it as a program:
pack_a = 13.62 / 8 # 1.7025
pack_b = 16.5 / 18 # 0.9166666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
This prints: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055186 | A 24-month warranty starts on January 17, 2026. On what date does it end?
As Python:
from datetime import date
start = date(2026, 1, 17)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
Output... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2028-01-17", "printed": "2028-01-17", "notation": null} |
nlprog_det-setting-0055187 | <|start|><|system|>
You have access to these functions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "calculator", "description": "Python... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "1060.90", "printed": "1060.90", "notation": null} |
nlprog_det-setting-0055188 | At $27.92 an hour, what does 32 hours of work pay?
We write it as a program:
```python
rate = 27.92
hours = 32
earnings = rate * hours # 893.44
print(f"{earnings:.2f}")
```
The code prints: 893.44
The pay is $893.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "893.44", "printed": "893.44", "notation": null} |
nlprog_det-setting-0055189 | A $12,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?
Python code:
```python
grant = 12000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 1666.6666666666667
print(f"{each:.2f}")
```
Execution prints 1666.67, as expected.
Each installmen... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "1666.67", "printed": "1666.67", "notation": null} |
nlprog_det-setting-0055190 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"P... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "1238.71", "printed": "1238.71", "notation": null} |
nlprog_det-setting-0055191 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
A few lines of Python do it:
```python
base = 18
rate = 5.1
used = 20
free = 3
bill = base + rate * max(0, used - free) # 104.69999999999999
print(f"{bill:.2f}")
```
Output:
104.70
$104.70 is ow... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "104.70", "printed": "104.70", "notation": null} |
nlprog_det-setting-0055192 | An attorney bills 6.5 hours at $180 per hour. What is the bill?
We write it as a program:
```python
hours = 6.5
rate = 180
bill = hours * rate # 1170.0
print(f"{bill:.2f}")
```
Program output: 1170.00
That comes to $1,170.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1170.00", "printed": "1170.00", "notation": null} |
nlprog_det-setting-0055193 | <|start|><|user|>
A hall has 21 rows of 16 seats, and 13 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 21
per_row = 16
empty = 13
seated = rows * per_row - empty # 323
print(seated)
```
(Run result: 323)
323 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 21 rows of 16 seats, and 13 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 21\nper_row = 16\nempty = 13\nseated = rows * per_row - empty # 323\nprint(seated)\n```\n(Run result: 323)\n\n323 people are... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "323", "printed": "323", "notation": null} |
nlprog_det-setting-0055194 | Bruna has 19 documents to file, and each filing costs $150. How much are the filing fees in total?
Program:
```python
fee = 150
filings = 19
total = fee * filings # 2850
print(total)
```
Execution result: 2850
$2,850 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2850", "printed": "2850", "notation": null} |
nlprog_det-setting-0055195 | A 6-month warranty starts on February 10, 2020. On what date does it end?
Set it up in Python:
```python
from datetime import date
start = date(2020, 2, 10)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Python ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2020-08-10", "printed": "2020-08-10", "notation": null} |
nlprog_det-setting-0055196 | From 2005 to 2030, how many years is that?
Python code:
```python
start_year = 2005
end_year = 2030
print(end_year - start_year)
```
Output:
25
25 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0055197 | What is a 25% tip on a $221.57 bill?
Program:
bill = 221.57
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 55.3925
print(f"{tip:.2f}")
Printed result: 55.39
Leave $55.39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "55.39", "printed": "55.39", "notation": null} |
nlprog_det-setting-0055198 | <|start|><|user|>
A 5 lb package ships at $12 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 1.5
weight = 5
cost = base + per_pound * weight # 19.5
print(f"{cost:.2f}")
```
# output: 19.50
Shipping costs $19.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5 lb package ships at $12 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 1.5\nweight = 5\ncost = base + per_pound * weight # 19.5\nprint(f\"{cost:.2f}\")\n```\n# output: 19.50\n\nShipping costs $19... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "19.50", "printed": "19.50", "notation": null} |
nlprog_det-setting-0055199 | <|start|><|user|>
What is the total rent on a 24-month lease at $3,250 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 24
total = monthly_rent * months # 78000
print(total)
```
# console output: 78000
The rent over the term is $78,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 24\ntotal = monthly_rent * months # 78000\nprint(total)\n```\n# console output: 78000\n\nThe rent over the term is $78,000.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0055200 | <|start|><|user|>
A storeroom has 321 desk lamps. The office uses 7 a day. How many are left after 10 days?<|eot|>
<|assistant|>
stock = 321
per_day = 7
days = 10
left = stock - per_day * days # 251
print(left)
# run result: 251
251 desk lamps are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 321 desk lamps. The office uses 7 a day. How many are left after 10 days?"
},
{
"role": "assistant",
"content": " stock = 321\n per_day = 7\n days = 10\n left = stock - per_day * days # 251\n print(left)\n# run result: 251\n\n251 desk... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0055201 | Parking is $3 per hour with a daily maximum of $15. What do 10 hours cost?
Code:
```python
rate = 3
hours = 10
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
The program prints: 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055202 | A storeroom has 745 keyboards. The office uses 26 a day. How many are left after 19 days?
Python code:
```python
stock = 745
per_day = 26
days = 19
left = stock - per_day * days # 251
print(left)
```
Output:
251
251 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0055204 | <|start|><|user|>
Kemal drove 616 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 616
rate = 0.62
reimbursement = miles * rate # 381.92
print(f"{reimbursement:.2f}")
```
That prints: 381.92
Kemal is owed $381.92.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kemal drove 616 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 616\nrate = 0.62\nreimbursement = miles * rate # 381.92\nprint(f\"{reimbursement:.2f}\")\n```\nThat pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "381.92", "printed": "381.92", "notation": null} |
nlprog_det-setting-0055206 | <|start|><|user|>
A 2 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
base = 8
per_pound = 1.5
weight = 2
cost = base + per_pound * weight # 11.0
print(f"{cost:.2f}")
When run, it prints: 11.00
The charge is $11.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 2 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": " base = 8\n per_pound = 1.5\n weight = 2\n cost = base + per_pound * weight # 11.0\n print(f\"{cost:.2f}\")\nWhen run, it prints: 11.00\n\nThe c... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "11.00", "printed": "11.00", "notation": null} |
nlprog_det-setting-0055207 | A board has 9 members. A majority is more than half. How many votes make a majority?
```python
members = 9
majority = members // 2 + 1
print(majority)
```
Result — 5
5 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055208 | How many 1-foot square tiles cover a 6 ft by 7 ft floor (round up)?
Code:
```python
import math
length = 6
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 42
print(tiles)
```
(Run result: 42)
42 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0055209 | A party has 28 days to respond to a motion served on February 24, 2018, with 3 days added because service was by mail. When is the response due?
Computation in Python:
```python
from datetime import date, timedelta
served = date(2018, 2, 24)
response_days = 28
mail_days = 3
due = served + timedelta(days=response_days ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2018-03-27", "printed": "2018-03-27", "notation": null} |
nlprog_det-setting-0055210 | <|start|><|user|>
How many 2-foot square tiles cover a 11 ft by 7 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 7
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 20
print(tiles)
```
Result:
20
20 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 11 ft by 7 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 7\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 20\nprint(tiles)\n```\nResult:\n20\n\n20 tiles ... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055211 | Olga's scores were 51, 89, 91 and 65. What is the average score?
In code:
```python
scores = [51, 89, 91, 65]
average = sum(scores) // len(scores) # 74
print(average)
```
# program output: 74
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0055212 | Copies cost $15 plus $0.10 for each page beyond 20. How much for 33 pages?
In Python:
pages = 33
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 16.3
print(f"{cost:.2f}")
The script prints 16.30.
The total is $16.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "16.30", "printed": "16.30", "notation": null} |
nlprog_det-setting-0055213 | A count moves from 800 to 960. By what percent did it change (use a minus sign for a drop)?
Computation in Python:
```python
old = 800
new = 960
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Run it and it prints: 20
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055214 | 4 books come back 3 days late, at $0.25 a day each. What is the fine?
Program:
```python
per_day = 0.25
days_late = 3
books = 4
fine = per_day * days_late * books # 3.0
print(f"{fine:.2f}")
```
Result:
3.00
$3.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0055215 | A $2,000 security deposit has deductions of $120. How much is refunded?
The Python version:
```python
deposit = 2000
deductions = [120]
refund = deposit - sum(deductions) # 1880
print(refund)
```
Python prints: 1880
The refund is $1,880. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0055216 | How many minutes pass from 9:50 AM to 11:24 AM on the same day?
We write it as a program:
```python
start = 9 * 60 + 50 # 590
end = 11 * 60 + 24 # 684
print(end - start)
```
Printed result — 94
94 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "94", "printed": "94", "notation": null} |
nlprog_det-setting-0055217 | <|start|><|system|>
You have access to these 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": ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"math_engine\", \"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 | [] | [] | 323 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0055218 | Attendance was 37 out of 40. Express it as a percent.
We can compute it in Python.
```python
present = 37
total = 40
percent = present / total * 100
print(round(percent, 1))
```
Shell output: 92.5
Attendance was 92.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0055221 | <|start|><|user|>
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 40000
costs = 36000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 10.0
print(round(margin, 1))
```
Executed, it shows 10.0.
Profit ... | chat | [
{
"role": "user",
"content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 40000\ncosts = 36000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 10.0\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0055222 | If a 2-year limitations period starts on October 6, 2024, when does it end?
As Python:
```python
from datetime import date
accrued = date(2024, 10, 6) # datetime.date(2024, 10, 6)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 10, 6)
print(expires.isoformat())
```
Result:
2026-1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-10-06", "printed": "2026-10-06", "notation": null} |
nlprog_det-setting-0055223 | <|start|><|user|>
If a 105-minute appointment begins at 1:15 PM, what time does it finish?<|eot|>
<|assistant|>
start = 13 * 60 + 15
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
It outputs: 3:00 PM
The appointment finishes a... | chat | [
{
"role": "user",
"content": "If a 105-minute appointment begins at 1:15 PM, what time does it finish?"
},
{
"role": "assistant",
"content": " start = 13 * 60 + 15\n end = start + 105\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 el... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3:00 PM", "printed": "3:00 PM", "notation": null} |
nlprog_det-setting-0055224 | Convert 70.7 km to meters.
Here is the program.
```python
km = 70.7
meters = km * 1000
print(round(meters))
```
This prints 70700, as expected.
That is 70,700 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "70700", "printed": "70700", "notation": null} |
nlprog_det-setting-0055225 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A kettle costs $180. It is 40% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 180
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 108.0
print(f"{sale_price:.2f}")
```
Run it and it prints 108.00.
The sale price is $... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A kettle costs $180. It is 40% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0055227 | <|start|><|user|>
2 books come back 11 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 11
books = 2
fine = per_day * days_late * books # 2.2
print(f"{fine:.2f}")
```
Output of the run: 2.20
The fine is $2.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 11 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 11\nbooks = 2\nfine = per_day * days_late * books # 2.2\nprint(f\"{fine:.2f}\")\n```\nOutput of the run: 2.20\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2.20", "printed": "2.20", "notation": null} |
nlprog_det-setting-0055228 | How many meters are in 64.1 kilometers?
A Python solution:
```python
km = 64.1
meters = km * 1000
print(round(meters))
```
Run result — 64100
64,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "64100", "printed": "64100", "notation": null} |
nlprog_det-setting-0055229 | 2 books come back 10 days late, at $0.20 a day each. What is the fine?
Python version:
```python
per_day = 0.2
days_late = 10
books = 2
fine = per_day * days_late * books # 4.0
print(f"{fine:.2f}")
```
Python prints 4.00.
$4.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4.00", "printed": "4.00", "notation": null} |
nlprog_det-setting-0055230 | Under a 30% contingency agreement, what fee is owed on a $150,000 award?
Python version:
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
Shell output — 45000.00
The fee is $45,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0055231 | <|start|><|user|>
What is -5 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
Output: 23
It equals 23 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -5 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nOutput: 23\n\nIt equals 23 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0055232 | How many of 87 votes make 60% (round up)?
In code:
```python
import math
voters = 87
needed = math.ceil(voters * 60 / 100) # 53
print(needed)
```
It prints 53, as expected.
53 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0055233 | Sales went from 1,200 to 1,380. What is the percent change?
A few lines of Python do it:
```python
old = 1200
new = 1380
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Run output — 15
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055234 | Monthly: $19. Annual: $198. What is saved per year by paying annually?
Python does the arithmetic:
```python
monthly = 19
yearly = 198
savings = monthly * 12 - yearly # 30
print(savings)
```
Running it prints 30, as expected.
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0055235 | Count 120 days forward from December 15, 2027. What date is that?
Coded up:
from datetime import date, timedelta
start = date(2027, 12, 15) # datetime.date(2027, 12, 15)
end = start + timedelta(days=120) # datetime.date(2028, 4, 13)
print(end.isoformat())
# printed result: 2028-04-13
It ends on Apri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "2028-04-13", "printed": "2028-04-13", "notation": null} |
nlprog_det-setting-0055236 | <|start|><|user|>
From a $10,000 retainer, 5 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 5
rate = 250
left = retainer - hours * rate # 8750
print(left)
```
The program outputs: 8750
$8,750 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 5 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 5\nrate = 250\nleft = retainer - hours * rate # 8750\nprint(left)\n```\nThe program outputs: 8750\n\n$8,750 of t... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8750", "printed": "8750", "notation": null} |
nlprog_det-setting-0055237 | How many units at $15 each (variable cost $10) cover $9,000 of fixed costs?
Python code:
```python
import math
fixed = 9000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
```
Executing it gives 1800, as expected.
Break-even is 1800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0055238 | Amir was born on October 3, 2001. How old is Amir on December 21, 2030?
The age is 29 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0055239 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A trial runs from July 24, 2019 to August 12, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 7, 24) # datetime.date(2019, 7, 24)
last = date(2019, 8, 12) # datetime.date(20... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A trial runs from July 24, 2019 to August 12, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055240 | Meals are $74 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights?
Let the code do the arithmetic:
```python
days = 8
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1572
print(total)
```
stdout:
1572
That comes to $1,572. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1572", "printed": "1572", "notation": null} |
nlprog_det-setting-0055241 | <|start|><|system|>
You have access to these functions:
{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A librar... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "2.10", "printed": "2.10", "notation": null} |
nlprog_det-setting-0055242 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 2 # 11250.0
print(f"{per_client:.2f}")
Result:... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 30000\n fee = award * 25 / 100 # 7500.0\n remaining = award - fee # 22500.0\n per_client = remain... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0055243 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 7 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 7
rate = 200
left = retainer - hours * rate # 8600
print(left)
```
(Result: 8600)
The remaining balance is $8,600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 7 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 7\nrate = 200\nleft = retainer - hours * rate # 8600\nprint(left)\n```\n(Re... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "8600", "printed": "8600", "notation": null} |
nlprog_det-setting-0055244 | <|start|><|user|>
Goods bought on December 18, 2028 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2028, 12, 18)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)... | chat | [
{
"role": "user",
"content": "Goods bought on December 18, 2028 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2028, 12, 18)\n months = 6\n years, month_index = divmod(start.month - 1 + months, 12)\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2029-06-18", "printed": "2029-06-18", "notation": null} |
nlprog_det-setting-0055245 | <|start|><|user|>
One can of paint covers 350 square feet. How many cans are needed for 1070 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1070
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
Run result — 4
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 350 square feet. How many cans are needed for 1070 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1070\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nRun result — 4\n\n4 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0055246 | Which is cheaper per unit: 10 for $5.77 (A) or 18 for $27.71 (B)?
Python version:
```python
pack_a = 5.77 / 10 # 0.577
pack_b = 27.71 / 18 # 1.5394444444444444
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Output — A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0055247 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Tobias was born on June 28, 1994. How old is Tobias on January 24, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1994, 6, 28) # datetime.date(1994, 6, 28)
on = date(2020, 1, 24) # datetime.date(2020, 1, 24)
age = on.year - born.... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Tobias was born on June 28, 1994. How old is Tobias on January 24, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1994, 6, 28) # datetime.date(1... | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0055248 | A claim accrued on March 19, 2015. The limitations period is 4 years. On what date does it expire?
Here's the code.
```python
from datetime import date
accrued = date(2015, 3, 19) # datetime.date(2015, 3, 19)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 3, 19)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2019-03-19", "printed": "2019-03-19", "notation": null} |
nlprog_det-setting-0055249 | <|start|><|user|>
An attorney bills 6.5 hours at $225 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 6.5
rate = 225
bill = hours * rate # 1462.5
print(f"{bill:.2f}")
The run gives: 1462.50
That comes to $1,462.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 6.5 hours at $225 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 6.5\n rate = 225\n bill = hours * rate # 1462.5\n print(f\"{bill:.2f}\")\nThe run gives: 1462.50\n\nThat comes to $1,462.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1462.50", "printed": "1462.50", "notation": null} |
nlprog_det-setting-0055250 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 190 copies of a 43-page handout?<|eot|>
<|assistant|>
```python
pages = 43
copies = 190
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 817.0
print(f"{cost:.2f}")
```
That prints: 817.00
The job costs $817.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 190 copies of a 43-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 43\ncopies = 190\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 817.0\nprint(f\"{cost:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "817.00", "printed": "817.00", "notation": null} |
nlprog_det-setting-0055251 | What does $2,000 grow to in 2 years at 4% annual compounding?
Computation in Python:
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 2163.2000000000003
print(f"{value:.2f}")
```
It prints 2163.20, as expected.
It is worth $2,163.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2163.20", "printed": "2163.20", "notation": null} |
nlprog_det-setting-0055253 | Scale 150 g of oats from 6 servings to 2 servings.
A few lines of Python do it:
```python
grams = 150
serves = 6
needed_for = 2
scaled = grams * needed_for // serves
print(scaled)
```
This prints 50.
50 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0055254 | Monthly: $29. Annual: $300. What is saved per year by paying annually?
In Python:
```python
monthly = 29
yearly = 300
savings = monthly * 12 - yearly # 48
print(savings)
```
# out: 48
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0055255 | Of a $2,000 budget, $1,200 has been spent. What percent is that?
Script:
```python
budget = 2000
spent = 1200
percent = spent / budget * 100 # 60.0
print(round(percent, 1))
```
The program outputs: 60.0
That is 60.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0055256 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather",... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 357 | {"gold": "168", "printed": "168", "notation": null} |
nlprog_det-setting-0055257 | 11 paper reams cost $7 apiece. With 8% tax added, what is the total?
The Python version:
```python
quantity = 11
unit_price = 7
subtotal = quantity * unit_price # 77
total = subtotal * (1 + 8 / 100) # 83.16000000000001
print(f"{total:.2f}")
```
Result — 83.16
The invoice total is $83.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "83.16", "printed": "83.16", "notation": null} |
nlprog_det-setting-0055258 | Parking is $3 per hour with a daily maximum of $20. What do 3 hours cost?
One way, in code:
```python
rate = 3
hours = 3
daily_max = 20
cost = min(rate * hours, daily_max) # 9
print(cost)
```
# printed result: 9
The charge is $9. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0055259 | After an initial $3,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?
We can compute it in Python.
```python
grant = 24000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 7000.0
print(f"{each:.2f}")
```
Executing it gives: 7000.00
Each installment is $7,00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0055260 | Each storage box holds 12 files. How many boxes are needed for 292 files?
Here is a short program for it.
```python
import math
files = 292
per_box = 12
boxes = math.ceil(files / per_box) # 25
print(boxes)
```
# printed: 25
25 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0055262 | <|start|><|user|>
If a 5-year limitations period starts on May 26, 2020, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2020, 5, 26) # datetime.date(2020, 5, 26)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 5, 26)
print(expires.isoform... | chat | [
{
"role": "user",
"content": "If a 5-year limitations period starts on May 26, 2020, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2020, 5, 26) # datetime.date(2020, 5, 26)\nyears = 5\nexpires = accrued.replace(year=accrued.year + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2025-05-26", "printed": "2025-05-26", "notation": null} |
nlprog_det-setting-0055263 | <|start|><|user|>
A 7 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 7
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 56
print(tiles)
```
The printout reads 56.
It takes 56 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 7 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 7\nwidth = 8\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 56\nprint(tiles)\n```\nThe printout r... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0055264 | <|start|><|user|>
A hall has 25 rows of 16 seats, and 7 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 25
per_row = 16
empty = 7
seated = rows * per_row - empty # 393
print(seated)
```
The program prints 393.
393 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 25 rows of 16 seats, and 7 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 25\nper_row = 16\nempty = 7\nseated = rows * per_row - empty # 393\nprint(seated)\n```\nThe program prints 393.\n\n393 people... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "393", "printed": "393", "notation": null} |
nlprog_det-setting-0055265 | How many units at $20 each (variable cost $10) cover $9,000 of fixed costs?
Translated to Python:
```python
import math
fixed = 9000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
The run gives 900.
900 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0055266 | A 780-page report must be reviewed in 13 days. How many pages a day is that, evenly?
The computation:
```python
pages = 780
days = 13
per_day = pages // days
print(per_day)
```
Running it prints: 60
That is 60 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0055267 | <|start|><|user|>
How many of 113 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 113
needed = math.ceil(voters * 67 / 100) # 76
print(needed)
```
# run result: 76
At least 76 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 113 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 113\nneeded = math.ceil(voters * 67 / 100) # 76\nprint(needed)\n```\n# run result: 76\n\nAt least 76 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0055268 | <|start|><|user|>
Prorate $900 of monthly rent for 22 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 660.0
print(f"{prorated:.2f}")
```
stdout = 660.00
The tenant owes $660.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 22 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 660.0\nprint(f\"{prorated:.2f}\")\n```\nstdout = 660.... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "660.00", "printed": "660.00", "notation": null} |
nlprog_det-setting-0055269 | A pack of 10 chairs sells for $50. What does each cost?
Code:
```python
total = 50
count = 10
per_item = total // count # 5
print(per_item)
```
(Result: 5)
The unit price is $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055270 | <|start|><|user|>
Count 30 days forward from September 19, 2026. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 9, 19) # datetime.date(2026, 9, 19)
end = start + timedelta(days=30) # datetime.date(2026, 10, 19)
print(end.isoformat())
```
(Result: 2026-10-19)
... | chat | [
{
"role": "user",
"content": "Count 30 days forward from September 19, 2026. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 9, 19) # datetime.date(2026, 9, 19)\nend = start + timedelta(days=30) # datetime.date(2026,... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2026-10-19", "printed": "2026-10-19", "notation": null} |
nlprog_det-setting-0055271 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Jamal earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 55
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 416.25
pay = regular + overtime #... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Jamal earns $18.50 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 = 18.5\nhours = 55\nregular = 40 * r... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "1156.25", "printed": "1156.25", "notation": null} |
nlprog_det-setting-0055272 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $5,000. What is owed after 3 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 3
cap = 5000
fine = min(per_day * days, cap)
print(fine)
```
(Result: 750)
$750 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 3 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 3\ncap = 5000\nfine = min(per_day * days, cap)\nprint(fine)\n```\n(Result: 750)\n\n$750 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0055273 | How many of 33 votes make 75% (round up)? At least 25 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0055274 | Monthly: $29. Annual: $324. What is saved per year by paying annually?
Here is a short program for it.
```python
monthly = 29
yearly = 324
savings = monthly * 12 - yearly # 24
print(savings)
```
The run gives 24, as expected.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0055275 | A client paid a $7,500 retainer. The firm has billed 8 hours at $275 per hour. How much of the retainer is left?
A short script:
```python
retainer = 7500
hours = 8
rate = 275
left = retainer - hours * rate # 5300
print(left)
```
Run result = 5300
The remaining balance is $5,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5300", "printed": "5300", "notation": null} |
nlprog_det-setting-0055276 | Counting only Monday through Friday, how many business days are there after February 2, 2018 through March 5, 2018?
One way, in code:
```python
from datetime import date, timedelta
start = date(2018, 2, 2)
end = date(2018, 3, 5)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0055277 | Convert -15 °C to Fahrenheit.
That is 5 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055278 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 42 days?
The program:
per_day = 100
days = 42
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
The run gives 1000.
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0055279 | Prorate $1,500 of monthly rent for 9 days of a 31-day month.
In Python:
```python
rent = 1500
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 435.48387096774195
print(f"{prorated:.2f}")
```
Shell output: 435.48
The prorated rent is $435.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "435.48", "printed": "435.48", "notation": null} |
nlprog_det-setting-0055280 | Copies cost $10 plus $0.50 for each page beyond 0. How much for 16 pages?
Code:
```python
pages = 16
base = 10
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 18.0
print(f"{cost:.2f}")
```
(Output: 18.00)
The copy costs $18.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0055281 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Expr... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "16 days and 10 hours", "printed": "16 days and 10 hours", "notation": null} |
nlprog_det-setting-0055283 | The statute was enacted in 1991. How many years had passed by 2017?
Here's the code.
```python
start_year = 1991
end_year = 2017
print(end_year - start_year)
```
# program output: 26
26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0055284 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_uni... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\... | nlprog_det | setting | original | null | deterministic | [] | [] | 402 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0055285 | The statute was enacted in 2024. How many years had passed by 2036?
Here is a short program for it.
```python
start_year = 2024
end_year = 2036
print(end_year - start_year)
```
(Out: 12)
That is 12 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "12", "printed": "12", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.