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-0083418 | <|start|><|user|>
At $0.65 per mile, what is the reimbursement for 176 miles?<|eot|>
<|assistant|>
Marek is owed $114.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.65 per mile, what is the reimbursement for 176 miles?"
},
{
"role": "assistant",
"content": "Marek is owed $114.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "114.40", "printed": "114.40", "notation": null} |
nlprog_det-setting-0083419 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A hearing lasted 5 hours and 45 minutes. How many minutes is that?<|eot|>
<|assistant|>
The hearing lasted 345 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A hearing lasted 5 hours and 45 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "The hearing lasted 345 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0083420 | <|start|><|user|>
A recipe for 6 people uses 200 grams of flour. How many grams are needed for 12 people?<|eot|>
<|assistant|>
grams = 200
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 400
print(scaled)
Executing it gives: 400
400 grams of flour are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 200 grams of flour. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": " grams = 200\n serves = 6\n needed_for = 12\n scaled = grams * needed_for // serves # 400\n print(scaled)\nExecuting it giv... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0083421 | A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)?
Translated to Python:
```python
old = 500
new = 450
change = (new - old) / old * 100
print(round(change))
```
(stdout: -10)
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0083422 | A pack of 10 staplers sells for $300. What does each cost?
We can compute it in Python.
```python
total = 300
count = 10
per_item = total // count # 30
print(per_item)
```
Execution prints 30.
Each one costs $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0083423 | Zainab's scores were 84, 55, 84, 67 and 75. What is the average score?
Let the code do the arithmetic:
```python
scores = [84, 55, 84, 67, 75]
average = sum(scores) // len(scores)
print(average)
```
The script prints 73, as expected.
The average score is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0083424 | Monthly rent is $1,800. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?
We write it as a program:
```python
rent = 1800
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 812.9032258064516
print(f"{prorated:.2f}")
```
It prints 812.90.
The prorat... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "812.90", "printed": "812.90", "notation": null} |
nlprog_det-setting-0083425 | How many meters are in 44.7 kilometers?
```python
km = 44.7
meters = km * 1000 # 44700.0
print(round(meters))
```
Out:
44700
44,700 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "44700", "printed": "44700", "notation": null} |
nlprog_det-setting-0083426 | <|start|><|user|>
A 36-month warranty starts on November 18, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 11, 18)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isof... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on November 18, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 11, 18)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2030-11-18", "printed": "2030-11-18", "notation": null} |
nlprog_det-setting-0083427 | <|start|><|user|>
Fuel for 240 miles at 36 mpg, with gas at $3.45/gallon: what is the cost?<|eot|>
<|assistant|>
Fuel costs $23.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fuel for 240 miles at 36 mpg, with gas at $3.45/gallon: what is the cost?"
},
{
"role": "assistant",
"content": "Fuel costs $23.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0083428 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "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\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "218", "printed": "218", "notation": null} |
nlprog_det-setting-0083430 | Rafael and Quinn share $3,460 in the ratio 1:3. How much does Rafael get?
Python does the arithmetic:
total = 3460
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 865
print(share_a)
Result:
865
Rafael's share is $865. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "865", "printed": "865", "notation": null} |
nlprog_det-setting-0083431 | Counting only Monday through Friday, how many business days are there after January 8, 2018 through January 27, 2018?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2018, 1, 8)
end = date(2018, 1, 27)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0083432 | How many units at $15 each (variable cost $7) cover $2,500 of fixed costs?
Here's the code.
```python
import math
fixed = 2500
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 313
print(units)
```
# result: 313
Break-even is 313 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0083433 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Convert 1 h 42 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
That is 102 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Convert 1 h 42 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "That is 102 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0083434 | 4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
The program:
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 4 # 4500.0
print(f"{per_client:.2f}")
```
# result: 4500.00
Each share is $4,50... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0083435 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "look... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 426 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0083436 | How many whole days and leftover hours are in 57 hours?
Python version:
```python
hours = 57
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output:
2 days and 9 hours
That is 2 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2 days and 9 hours", "printed": "2 days and 9 hours", "notation": null} |
nlprog_det-setting-0083437 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Notice was given on November 8, 2026. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
The period ends on March 8, 2027.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Notice was given on November 8, 2026. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "The period ends on March 8, 2027."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2027-03-08", "printed": "2027-03-08", "notation": null} |
nlprog_det-setting-0083438 | At a 9% tax rate, what is the tax on $516.51?
```python
price = 516.51
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 46.4859
print(f"{tax:.2f}")
```
(Console output: 46.49)
The tax is $46.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "46.49", "printed": "46.49", "notation": null} |
nlprog_det-setting-0083439 | How many days are there from October 24, 2022 to September 11, 2023?
We can compute it in Python.
```python
from datetime import date
first = date(2022, 10, 24) # datetime.date(2022, 10, 24)
second = date(2023, 9, 11) # datetime.date(2023, 9, 11)
print((second - first).days)
```
Out: 322
There are 322 days between ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "322", "printed": "322", "notation": null} |
nlprog_det-setting-0083440 | Fixed costs are $4,000. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?
Script:
```python
import math
fixed = 4000
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 800
print(units)
```
It prints 800.
Break-even is 800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0083441 | How many units at $25 each (variable cost $21) cover $4,000 of fixed costs?
The computation:
```python
import math
fixed = 4000
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Run it and it prints 1000.
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0083442 | <|start|><|user|>
A library charges $0.50 per book per day late. What is the fine for 4 books that are 15 days late?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 15
books = 4
fine = per_day * days_late * books # 30.0
print(f"{fine:.2f}")
```
Run result = 30.00
$30.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 15 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 15\nbooks = 4\nfine = per_day * days_late * books # 30.0\nprint(f\"{fine:.2f}\")\n```\nRu... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0083443 | A hall has 19 rows of 18 seats, and 24 seats are empty. How many people are seated?
318 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "318", "printed": "318", "notation": null} |
nlprog_det-setting-0083444 | How many minutes pass from 10:26 AM to 4:48 PM on the same day?
Here's the code.
```python
start = 10 * 60 + 26 # 626
end = 16 * 60 + 48 # 1008
print(end - start)
```
(Console output: 382)
It is 382 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "382", "printed": "382", "notation": null} |
nlprog_det-setting-0083445 | <|start|><|user|>
At $18.05 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 18.05
hours = 12
earnings = rate * hours # 216.60000000000002
print(f"{earnings:.2f}")
```
# output: 216.60
That earns $216.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $18.05 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.05\nhours = 12\nearnings = rate * hours # 216.60000000000002\nprint(f\"{earnings:.2f}\")\n```\n# output: 216.60\n\nThat earns $216.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "216.60", "printed": "216.60", "notation": null} |
nlprog_det-setting-0083446 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $0, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 4500.0
print(f"{per_year:.2f}")
```
# printed: 4500.00
Depreciation is $4,500.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $0, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 0\nyears = 10\nper_year = (cost - salvage) / years # 4500.0\nprint(f\"{per_year:.2f}\")\n```\n# printed: 450... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0083447 | A party has 30 days to respond to a motion served on June 25, 2020, with 3 days added because service was by mail. When is the response due?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
served = date(2020, 6, 25) # datetime.date(2020, 6, 25)
response_days = 30
mail_days = 3
due = ser... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2020-07-28", "printed": "2020-07-28", "notation": null} |
nlprog_det-setting-0083448 | <|start|><|system|>
You can call tools. Available tools:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "compute", "description": "A Python ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0083449 | If a 3-year limitations period starts on July 22, 2013, when does it end?
A few lines of Python do it:
```python
from datetime import date
accrued = date(2013, 7, 22)
years = 3
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Printed: 2016-07-22
The period expires on July 22, 2016. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2016-07-22", "printed": "2016-07-22", "notation": null} |
nlprog_det-setting-0083450 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
At 50 miles per hour, how many minutes does a 325-mile trip take?<|eot|>
<|assistant|>
```python
distance = 325
speed = 50
minutes = distance / speed * 60 # 390.0
print(round(minutes))
```
Result: 390
390 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 325-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 325\nspeed = 50\nminutes = distance / speed * 60 # 390.0\nprint(r... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0083451 | <|start|><|user|>
A 9 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 9
width = 3
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 7
print(tiles)
```
# printed: 7
It takes 7 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 9 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 9\nwidth = 3\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 7\nprint(tiles)\n```\n# printed: 7\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0083452 | <|start|><|user|>
Papers were served by mail on June 28, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 6, 28)
response_days = 14
mail_days = 3
due = served + timedelta(days=respo... | chat | [
{
"role": "user",
"content": "Papers were served by mail on June 28, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 6, 28)\nresponse_da... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2025-07-15", "printed": "2025-07-15", "notation": null} |
nlprog_det-setting-0083453 | <|start|><|system|>
You can call tools. Available tools:
{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "search_cases", "descr... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 382 | {"gold": "-815", "printed": "-815", "notation": null} |
nlprog_det-setting-0083454 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 337 miles?<|eot|>
<|assistant|>
```python
miles = 337
rate = 0.67
reimbursement = miles * rate # 225.79000000000002
print(f"{reimbursement:.2f}")
```
The code prints 225.79.
The reimbursement is $225.79.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 337 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 337\nrate = 0.67\nreimbursement = miles * rate # 225.79000000000002\nprint(f\"{reimbursement:.2f}\")\n```\nThe code prints 225.79.\n\nThe reimburse... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "225.79", "printed": "225.79", "notation": null} |
nlprog_det-setting-0083455 | <|start|><|user|>
A 450-page report must be reviewed in 10 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 450
days = 10
per_day = pages // days # 45
print(per_day)
```
It outputs: 45
That is 45 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 450-page report must be reviewed in 10 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 450\ndays = 10\nper_day = pages // days # 45\nprint(per_day)\n```\nIt outputs: 45\n\nThat is 45 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0083456 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
$4,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "$4,000.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0083457 | <|start|><|user|>
Malik earns a 2% commission on $93,663 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 93663
rate = 2 / 100 # 0.02
commission = sales * rate # 1873.26
print(f"{commission:.2f}")
```
Running it prints: 1873.26
The commission is $1,873.26.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Malik earns a 2% commission on $93,663 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 93663\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1873.26\nprint(f\"{commission:.2f}\")\n```\nRunning it prints: 1873.26\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1873.26", "printed": "1873.26", "notation": null} |
nlprog_det-setting-0083458 | <|start|><|system|>
Functions:
{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "convert_units", "description": "Convert a quantit... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 400 | {"gold": "1610", "printed": "1610", "notation": null} |
nlprog_det-setting-0083459 | A pack of 6 paper reams sells for $222. What does each cost?
A Python solution:
```python
total = 222
count = 6
per_item = total // count # 37
print(per_item)
```
# stdout: 37
Each one costs $37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0083460 | A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 22 thousand gallons?
Program:
```python
base = 15
rate = 3.5
used = 22
free = 2
bill = base + rate * max(0, used - free) # 85.0
print(f"{bill:.2f}")
```
The code prints 85.00.
The bill is $85.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "85.00", "printed": "85.00", "notation": null} |
nlprog_det-setting-0083461 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Papers were served by mail on August 19, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2027, 8, 19) # datetime.date(2027, 8, ... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Papers were served by mail on August 19, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom ... | nlprog_det | setting | original | null | deterministic | [] | [] | 193 | {"gold": "2027-09-21", "printed": "2027-09-21", "notation": null} |
nlprog_det-setting-0083463 | A trial runs from February 22, 2025 to March 18, 2025, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2025, 2, 22) # datetime.date(2025, 2, 22)
last = date(2025, 3, 18) # datetime.date(2025, 3, 18)
days = (last - first).days + 1 # 25
print(days)
```
Result: 25
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0083464 | <|start|><|user|>
At a 7% tax rate, what is the tax on $355.21?<|eot|>
<|assistant|>
```python
price = 355.21
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 24.864700000000003
print(f"{tax:.2f}")
```
Console:
24.86
$24.86 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $355.21?"
},
{
"role": "assistant",
"content": "```python\nprice = 355.21\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 24.864700000000003\nprint(f\"{tax:.2f}\")\n```\nConsole:\n24.86\n\n$24.86 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "24.86", "printed": "24.86", "notation": null} |
nlprog_det-setting-0083466 | After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Written as code:
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 3 # 15000.0
print(f"{per_client:.2f}")
```
(Execution resul... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0083467 | <|start|><|user|>
Monthly: $9. Annual: $90. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
Console output — 18
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $9. Annual: $90. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 9\nyearly = 90\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nConsole output — 18\n\nThe annual plan saves $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0083468 | Viktor earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?
The computation:
```python
rate = 16.0
hours = 46
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 144.0
pay = regular + overtime # 784.0
print(f"{pay:.2f}")
```
The run gives 784.00.
The weekly... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0083469 | What average speed covers 236 miles in 2 hours?
Here is a short program for it.
```python
distance = 236
hours = 2
speed = distance / hours # 118.0
print(round(speed))
```
Python prints 118.
It averages 118 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "118", "printed": "118", "notation": null} |
nlprog_det-setting-0083470 | An attorney bills 4 hours at $150 per hour. What is the bill?
Code:
```python
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
```
The printout reads: 600.00
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0083471 | <|start|><|user|>
Shipping costs $12 plus $1.50 per pound. What does a 22-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 1.5
weight = 22
cost = base + per_pound * weight # 45.0
print(f"{cost:.2f}")
```
# printed result: 45.00
The charge is $45.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $1.50 per pound. What does a 22-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 1.5\nweight = 22\ncost = base + per_pound * weight # 45.0\nprint(f\"{cost:.2f}\")\n```\n# printed result: 45.... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0083472 | <|start|><|system|>
Functions:
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "convert_units", "description": "Conve... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0083473 | <|start|><|system|>
You have access to these functions:
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
An unpa... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0083474 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A car travels 80 miles in 5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
The average speed is 16 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A car travels 80 miles in 5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "The average speed is 16 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0083475 | The bridge was finished in 2012. How many years had passed by 2020?
As a program:
```python
start_year = 2012
end_year = 2020
print(end_year - start_year)
```
The program outputs: 8
8 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0083476 | 6 swims at 250 calories each burn how many calories in total?
Programmatically:
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
The interpreter prints: 1500
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0083477 | Split $1,425 between Joelle and Carmen in the ratio 1 to 2. What is Joelle's share?
Coded up:
```python
total = 1425
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 475
print(share_a)
```
Run output — 475
Joelle's share is $475. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "475", "printed": "475", "notation": null} |
nlprog_det-setting-0083478 | Which is cheaper per unit: 8 for $14.71 (A) or 15 for $12.94 (B)?
A short script:
```python
pack_a = 14.71 / 8 # 1.83875
pack_b = 12.94 / 15 # 0.8626666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# result: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0083479 | 37 of 40 members attended. What percent attended?
Python:
```python
present = 37
total = 40
percent = present / total * 100 # 92.5
print(round(percent, 1))
```
Result:
92.5
92.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0083480 | At 45 miles per hour, how many minutes does a 195-mile trip take?
Translated to Python:
```python
distance = 195
speed = 45
minutes = distance / speed * 60 # 260.0
print(round(minutes))
```
Run it and it prints 260.
260 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "260", "printed": "260", "notation": null} |
nlprog_det-setting-0083481 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "15 days and 10 hours", "printed": "15 days and 10 hours", "notation": null} |
nlprog_det-setting-0083482 | <|start|><|user|>
If a 90-minute hearing begins at 3:45 PM, what time does it finish?<|eot|>
<|assistant|>
The hearing finishes at 5:15 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 90-minute hearing begins at 3:45 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "The hearing finishes at 5:15 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5:15 PM", "printed": "5:15 PM", "notation": null} |
nlprog_det-setting-0083483 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute", "descript... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 378 | {"gold": "107", "printed": "107", "notation": null} |
nlprog_det-setting-0083484 | <|start|><|user|>
A car travels 324 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 324
hours = 1.5
speed = distance / hours # 216.0
print(round(speed))
```
When run, it prints: 216
It averages 216 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 324 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 324\nhours = 1.5\nspeed = distance / hours # 216.0\nprint(round(speed))\n```\nWhen run, it prints: 216\n\nIt averages 216... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "216", "printed": "216", "notation": null} |
nlprog_det-setting-0083485 | <|start|><|user|>
A measure needs at least 60% of 152 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 152
needed = math.ceil(voters * 60 / 100) # 92
print(needed)
```
Executing it gives 92.
At least 92 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 152 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 152\nneeded = math.ceil(voters * 60 / 100) # 92\nprint(needed)\n```\nExecuting it gives 92.\n\nAt least 92 votes."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0083486 | <|start|><|user|>
Filing fees are $75 per document. What do 5 filings cost?<|eot|>
<|assistant|>
The filings cost $375 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $75 per document. What do 5 filings cost?"
},
{
"role": "assistant",
"content": "The filings cost $375 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0083487 | A count moves from 800 to 1,200. By what percent did it change (use a minus sign for a drop)?
We can compute it in Python.
```python
old = 800
new = 1200
change = (new - old) / old * 100 # 50.0
print(round(change))
```
That prints: 50
It changed by 50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0083488 | A client paid a $5,000 retainer. The firm has billed 3 hours at $150 per hour. How much of the retainer is left?
A few lines of Python do it:
```python
retainer = 5000
hours = 3
rate = 150
left = retainer - hours * rate # 4550
print(left)
```
Execution result: 4550
$4,550 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4550", "printed": "4550", "notation": null} |
nlprog_det-setting-0083489 | <|start|><|user|>
How many whole days and leftover hours are in 236 hours?<|eot|>
<|assistant|>
```python
hours = 236
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output = 9 days and 20 hours
236 hours is 9 days and 20 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 236 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 236\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOutput = 9 days and 20 hours\n\n236 hours is 9 days and 20 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "9 days and 20 hours", "printed": "9 days and 20 hours", "notation": null} |
nlprog_det-setting-0083491 | A 4% increase is applied to $1,100 monthly rent. What is the new amount?
Python makes this quick:
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
(Output: 1144.00)
The new rent is $1,144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0083492 | With 18 rows of 19 chairs and 3 empty chairs, how many chairs are taken?
Code:
```python
rows = 18
per_row = 19
empty = 3
seated = rows * per_row - empty # 339
print(seated)
```
Running this gives: 339
339 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "339", "printed": "339", "notation": null} |
nlprog_det-setting-0083493 | <|start|><|user|>
Rent of $1,250 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
```
The printout reads: 1325.00
It rises to $1,325.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1325.0\nprint(f\"{new_rent:.2f}\")\n```\nThe printout reads: 1325.00\n\nIt rises to $1,325... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0083494 | A claim accrued on April 10, 2017. The limitations period is 3 years. On what date does it expire?
Python version:
```python
from datetime import date
accrued = date(2017, 4, 10) # datetime.date(2017, 4, 10)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 4, 10)
print(expires.iso... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2020-04-10", "printed": "2020-04-10", "notation": null} |
nlprog_det-setting-0083495 | A claim accrued on April 17, 2021. The limitations period is 4 years. On what date does it expire?
The computation:
```python
from datetime import date
accrued = date(2021, 4, 17) # datetime.date(2021, 4, 17)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 4, 17)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2025-04-17", "printed": "2025-04-17", "notation": null} |
nlprog_det-setting-0083496 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
3 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 3
share = settlement // parties # 28000
print(share)
```
Console output: 28000
Each share is $28,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "3 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 3\nshare = settlement // parties # 28000\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0083497 | Each of Tobias's swims burns 400 calories. How many calories over 3 swims?
Program:
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Out:
1200
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0083498 | Monthly: $9. Annual: $90. What is saved per year by paying annually?
Let the code do the arithmetic:
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
stdout — 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0083499 | A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)?
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0083500 | A shift runs from 7:23 AM to 11:22 AM. How long is it in minutes?
Python:
```python
start = 7 * 60 + 23 # 443
end = 11 * 60 + 22 # 682
print(end - start)
```
stdout: 239
239 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "239", "printed": "239", "notation": null} |
nlprog_det-setting-0083501 | <|start|><|user|>
A water bill is $15 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 5 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.75
used = 5
free = 0
bill = base + rate * max(0, used - free) # 38.75
print(f"{bill:.2f}")
```
stdout:
38.75
The bill is $38.75.... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 5 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.75\nused = 5\nfree = 0\nbill = base + rate * max(0, used - free) # 38.75\... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "38.75", "printed": "38.75", "notation": null} |
nlprog_det-setting-0083502 | 4 walks at 150 calories each burn how many calories in total?
The computation:
```python
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
```
It prints 600.
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0083503 | <|start|><|user|>
1 books come back 24 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 24
books = 1
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Output of the run: 6.00
$6.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 24 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 24\nbooks = 1\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nOutput of the run: 6.00\n\n$6.00 is o... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0083504 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0083505 | The paralegal logged 8 hours at a rate of $180. How much is billed?
Here is the program.
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
(Printed result: 1440.00)
The bill is $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0083506 | If a 5-year limitations period starts on December 14, 2023, when does it end?
One way, in code:
from datetime import date
accrued = date(2023, 12, 14) # datetime.date(2023, 12, 14)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 12, 14)
print(expires.isoformat... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2028-12-14", "printed": "2028-12-14", "notation": null} |
nlprog_det-setting-0083507 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Someone born February 23, 1958 turns how old by June 22, 2021? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1958, 2, 23) # datetime.date(1958, 2, 23)
on = date(2021, 6, 22) # datetime.date(2021, 6, 2... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Someone born February 23, 1958 turns how old by June 22, 2021? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1958, 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0083508 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 33 copies of a 44-page handout?<|eot|>
<|assistant|>
```python
pages = 44
copies = 33
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 145.20000000000002
print(f"{cost:.2f}")
```
The printout reads: 145.20
Printing costs $145.20.<... | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 33 copies of a 44-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 44\ncopies = 33\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 145.20000000000002\nprint(f\"{cost:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "145.20", "printed": "145.20", "notation": null} |
nlprog_det-setting-0083509 | A customer buys 5 folders at $13 each, 2 toner kits at $21 each and pays with $150. How much change is due?
We write it as a program:
```python
items = [(5, 13), (2, 21)]
total = sum(q * p for q, p in items) # 107
paid = 150
change = paid - total # 43
print(change)
```
The printout reads: 43
$43 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0083510 | Convert 30 °C to Fahrenheit.
Python makes this quick:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
The printout reads 86.
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0083511 | What does $5,000 grow to in 5 years at 2% annual compounding?
Computation in Python:
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 5520.404016
print(f"{value:.2f}")
```
This prints 5520.40.
It is worth $5,520.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5520.40", "printed": "5520.40", "notation": null} |
nlprog_det-setting-0083512 | <|start|><|user|>
40 copies of a 26-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 26
copies = 40
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 104.0
print(f"{cost:.2f}")
```
It outputs 104.00.
Printing costs $104.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "40 copies of a 26-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 26\ncopies = 40\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 104.0\nprint(f\"{cost:.2f}\")\n```\nIt outputs 104... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "104.00", "printed": "104.00", "notation": null} |
nlprog_det-setting-0083513 | 79 of 80 members attended. What percent attended?
Computation in Python:
```python
present = 79
total = 80
percent = present / total * 100 # 98.75
print(round(percent, 1))
```
Printed:
98.8
98.8% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "98.8", "printed": "98.8", "notation": null} |
nlprog_det-setting-0083514 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after October 13, 2019 up to and including October 23, 2019?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2019, 10, 13)
end = date(2019, 10, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (star... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after October 13, 2019 up to and including October 23, 2019?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2019, 10, 13)\n end = date(2019, 10, 23)\n count = 0\n f... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0083516 | Goods bought on July 27, 2021 carry a 36-month warranty. When does it expire?
```python
from datetime import date
start = date(2021, 7, 27)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run result = 2024-07-27... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2024-07-27", "printed": "2024-07-27", "notation": null} |
nlprog_det-setting-0083517 | 42 copies of a 52-page packet are printed at $0.15 per page. What is the cost?
```python
pages = 52
copies = 42
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 327.59999999999997
print(f"{cost:.2f}")
```
Printed: 327.60
The job costs $327.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "327.60", "printed": "327.60", "notation": null} |
nlprog_det-setting-0083518 | If a 75-minute shift begins at 11:15 AM, what time does it finish?
Python, step by step:
```python
start = 11 * 60 + 15
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints 12:30 PM.
The shift finishes at 12:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0083519 | 2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")
```
It prints 36000.00.
Each client gets $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0083520 | <|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 | [] | [] | 399 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0083521 | A storeroom has 1218 envelopes. The office uses 28 a day. How many are left after 16 days?
```python
stock = 1218
per_day = 28
days = 16
left = stock - per_day * days # 770
print(left)
```
Interpreter output — 770
770 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "770", "printed": "770", "notation": null} |
nlprog_det-setting-0083522 | Prorate $1,200 of monthly rent for 12 days of a 30-day month.
In Python:
rent = 1200
days_in_month = 30
days_occupied = 12
prorated = rent * days_occupied / days_in_month # 480.0
print(f"{prorated:.2f}")
# out: 480.00
The tenant owes $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "480.00", "printed": "480.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.