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-0077850 | Counting only Monday through Friday, how many business days are there after July 24, 2027 through August 6, 2027?
10 weekdays. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0077851 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 50
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 50\nregular =... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0077852 | <|start|><|system|>
You can call tools. Available tools:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "run_python", "description": "Pytho... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\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 | [] | [] | 420 | {"gold": "10800.00", "printed": "10800.00", "notation": null} |
nlprog_det-setting-0077853 | <|start|><|system|>
Tools (call with JSON):
{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Cyrus was born on September 25, 1997. How... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 247 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0077854 | <|start|><|user|>
Convert 5 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
Execution prints: 41
It equals 41 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nExecution prints: 41\n\nIt equals 41 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0077855 | How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?
Here's the code.
```python
import math
fixed = 9000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
Printed = 900
Break-even is 900 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0077856 | An office budget of $25,000 has expenses of $1,456, $1,258. How much of the budget is left?
The Python version:
```python
budget = 25000
expenses = [1456, 1258]
left = budget - sum(expenses)
print(left)
```
Execution prints 22286, as expected.
The remaining budget is $22,286. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "22286", "printed": "22286", "notation": null} |
nlprog_det-setting-0077857 | 3 runs at 400 calories each burn how many calories in total?
Programmatically:
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Execution prints 1200, as expected.
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0077858 | What is the total rent on a 18-month lease at $2,100 a month?
Written as code:
monthly_rent = 2100
months = 18
total = monthly_rent * months # 37800
print(total)
Printed:
37800
In total, $37,800 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0077859 | <|start|><|user|>
An invoice lists 39 tape rolls at $24 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 39
unit_price = 24
subtotal = quantity * unit_price # 936
total = subtotal * (1 + 5 / 100) # 982.8000000000001
print(f"{total:.2f}")
Out — 982.80
The invoice... | chat | [
{
"role": "user",
"content": "An invoice lists 39 tape rolls at $24 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 39\n unit_price = 24\n subtotal = quantity * unit_price # 936\n total = subtotal * (1 + 5 / 100) # 982.80000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "982.80", "printed": "982.80", "notation": null} |
nlprog_det-setting-0077860 | <|start|><|user|>
How many 2-foot square tiles cover a 11 ft by 10 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 28
print(tiles)
```
It outputs: 28
28 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 11 ft by 10 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 28\nprint(tiles)\n```\nIt outputs: 28\n\n28 t... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0077861 | A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)?
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0077862 | A trial runs from May 14, 2026 to May 20, 2026, counting both days. How many calendar days is that?
Python version:
```python
from datetime import date
first = date(2026, 5, 14) # datetime.date(2026, 5, 14)
last = date(2026, 5, 20) # datetime.date(2026, 5, 20)
days = (last - first).days + 1 # 7
print(days)
```
(Pro... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0077863 | A meal costs $88.64. How much is a 18% tip?
Python, step by step:
bill = 88.64
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 15.9552
print(f"{tip:.2f}")
Python prints 15.96, as expected.
The tip is $15.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15.96", "printed": "15.96", "notation": null} |
nlprog_det-setting-0077865 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
If a 4-year limitations per... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "2026-12-09", "printed": "2026-12-09", "notation": null} |
nlprog_det-setting-0077866 | What percentage of $2,000 is $800?
A Python solution:
```python
budget = 2000
spent = 800
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
```
Printed result — 40.0
That is 40.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0077868 | How many units at $40 each (variable cost $35) cover $9,000 of fixed costs?
In code:
```python
import math
fixed = 9000
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
```
(Console output: 1800)
Break-even is 1800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0077869 | A $6,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
In code:
```python
principal = 6000
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 600.0
payment = (principal + interest) / ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "550.00", "printed": "550.00", "notation": null} |
nlprog_det-setting-0077870 | What average speed covers 430 miles in 2 hours?
The computation:
```python
distance = 430
hours = 2
speed = distance / hours
print(round(speed))
```
The printout reads 215.
It averages 215 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "215", "printed": "215", "notation": null} |
nlprog_det-setting-0077871 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $18. What do 10 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Run result: 18
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $18. What do 10 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 10\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nRun result: 18\n\nParking costs $18."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0077872 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A car travels 468 ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0077873 | 3 friends split a $150 bill plus a 15% tip evenly. How much does each pay?
Program:
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 57.5
print(f"{each:.2f}")
```
The script prints 57.50.
The share is $57.50 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0077874 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $15. What do 2 hours cost?<|eot|>
<|assistant|>
Parking costs $4.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $15. What do 2 hours cost?"
},
{
"role": "assistant",
"content": "Parking costs $4."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0077875 | The paralegal logged 7 hours at a rate of $180. How much is billed?
Here is a short program for it.
```python
hours = 7
rate = 180
bill = hours * rate
print(f"{bill:.2f}")
```
# printed: 1260.00
That comes to $1,260.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1260.00", "printed": "1260.00", "notation": null} |
nlprog_det-setting-0077876 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Water costs $20 a... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "91.25", "printed": "91.25", "notation": null} |
nlprog_det-setting-0077877 | <|start|><|user|>
Each of Lucia's bike rides burns 150 calories. How many calories over 6 bike rides?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 6
total = per_session * sessions # 900
print(total)
```
# printed result: 900
900 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Lucia's bike rides burns 150 calories. How many calories over 6 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 6\ntotal = per_session * sessions # 900\nprint(total)\n```\n# printed result: 900\n\n900 calories in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0077878 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "eval_python", "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|>
The meal... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"eval_python\", \"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 | [] | [] | 209 | {"gold": "621", "printed": "621", "notation": null} |
nlprog_det-setting-0077879 | Fines run at $100 per day up to a maximum of $1,000. How much after 44 days?
Here's the code.
```python
per_day = 100
days = 44
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Output of the run — 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077880 | Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Set it up in Python:
cost = 24000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 2625.0
print(f"{per_year:.2f}")
Execution prints: 2625.00
Depreci... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0077881 | A 90-day notice period begins on November 3, 2019. On what date does it end?
Python code:
```python
from datetime import date, timedelta
start = date(2019, 11, 3) # datetime.date(2019, 11, 3)
end = start + timedelta(days=90) # datetime.date(2020, 2, 1)
print(end.isoformat())
```
(Run result: 2020-02-01)
It ends on ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2020-02-01", "printed": "2020-02-01", "notation": null} |
nlprog_det-setting-0077882 | <|start|><|user|>
Of a $10,000 budget, $2,000 has been spent. What percent is that?<|eot|>
<|assistant|>
budget = 10000
spent = 2000
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
Result = 20.0
20.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $2,000 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": " budget = 10000\n spent = 2000\n percent = spent / budget * 100 # 20.0\n print(round(percent, 1))\nResult = 20.0\n\n20.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0077883 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A 120-page report must be reviewed in 12 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 120
days = 12
per_day = pages // days # 10
print(per_day)
```
The program outputs: 10
10 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A 120-page report must be reviewed in 12 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 120\ndays = 12\nper_day = pages //... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0077884 | <|start|><|user|>
What is a 15% tip on a $28.30 bill?<|eot|>
<|assistant|>
```python
bill = 28.3
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 4.245
print(f"{tip:.2f}")
```
Out:
4.25
Leave $4.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $28.30 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 28.3\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 4.245\nprint(f\"{tip:.2f}\")\n```\nOut:\n4.25\n\nLeave $4.25."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "4.25", "printed": "4.25", "notation": null} |
nlprog_det-setting-0077885 | What simple interest does $5,000 earn at 5% a year over 2 years?
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 500.0
print(f"{interest:.2f}")
```
stdout — 500.00
The interest is $500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0077886 | <|start|><|user|>
Rent of $900 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 900
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 945.0
print(f"{new_rent:.2f}")
```
(Printed result: 945.00)
The new rent is $945.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $900 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 945.0\nprint(f\"{new_rent:.2f}\")\n```\n(Printed result: 945.00)\n\nThe new rent is $945.00."... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "945.00", "printed": "945.00", "notation": null} |
nlprog_det-setting-0077887 | What is a 22% tip on a $73.39 bill?
As Python:
bill = 73.39
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 16.1458
print(f"{tip:.2f}")
(Output: 16.15)
The tip is $16.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "16.15", "printed": "16.15", "notation": null} |
nlprog_det-setting-0077888 | <|start|><|user|>
A hall has 24 rows of 16 seats, and 9 seats are empty. How many people are seated?<|eot|>
<|assistant|>
375 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 24 rows of 16 seats, and 9 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "375 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0077889 | The rules require 1/3 of 32 members (round up) to be present. How many is that?
Computation in Python:
```python
import math
members = 32
quorum = math.ceil(members * 1 / 3) # 11
print(quorum)
```
It outputs 11.
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0077890 | After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?
```python
grant = 24000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 1833.3333333333333
print(f"{each:.2f}")
```
Run result = 1833.33
Each installment is $1,833.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1833.33", "printed": "1833.33", "notation": null} |
nlprog_det-setting-0077891 | At $20.18 an hour, what does 24 hours of work pay?
A Python solution:
```python
rate = 20.18
hours = 24
earnings = rate * hours # 484.32
print(f"{earnings:.2f}")
```
Running this gives: 484.32
That earns $484.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "484.32", "printed": "484.32", "notation": null} |
nlprog_det-setting-0077892 | Arjun lends $8,000 at 3% simple interest per year for 3 years. How much interest is earned?
Code:
```python
principal = 8000
rate = 3 / 100
years = 3
interest = principal * rate * years
print(f"{interest:.2f}")
```
Interpreter output — 720.00
It earns $720.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0077893 | Someone works 40 hours at $15.23 per hour. What are the earnings?
The Python version:
```python
rate = 15.23
hours = 40
earnings = rate * hours
print(f"{earnings:.2f}")
```
When run, it prints: 609.20
That earns $609.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "609.20", "printed": "609.20", "notation": null} |
nlprog_det-setting-0077894 | <|start|><|user|>
Each storage box holds 25 files. How many boxes are needed for 705 files?<|eot|>
<|assistant|>
```python
import math
files = 705
per_box = 25
boxes = math.ceil(files / per_box) # 29
print(boxes)
```
Printed = 29
It takes 29 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 705 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 705\nper_box = 25\nboxes = math.ceil(files / per_box) # 29\nprint(boxes)\n```\nPrinted = 29\n\nIt takes 29 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0077895 | <|start|><|system|>
You can call tools. Available tools:
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "eval_python", "descrip... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 378 | {"gold": "2028-01-10", "printed": "2028-01-10", "notation": null} |
nlprog_det-setting-0077896 | <|start|><|user|>
Goods bought on May 18, 2022 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2022, 5, 18)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.iso... | chat | [
{
"role": "user",
"content": "Goods bought on May 18, 2022 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2022, 5, 18)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(st... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2023-05-18", "printed": "2023-05-18", "notation": null} |
nlprog_det-setting-0077897 | A library charges $0.25 per book per day late. What is the fine for 4 books that are 5 days late?
```python
per_day = 0.25
days_late = 5
books = 4
fine = per_day * days_late * books # 5.0
print(f"{fine:.2f}")
```
The script prints: 5.00
$5.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0077899 | A 12-month warranty starts on April 19, 2024. On what date does it end?
One way, in code:
```python
from datetime import date
start = date(2024, 4, 19)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# out: 2025... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2025-04-19", "printed": "2025-04-19", "notation": null} |
nlprog_det-setting-0077900 | <|start|><|user|>
Counting the first and last day, how many days are there from May 7, 2018 through May 14, 2018?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 5, 7) # datetime.date(2018, 5, 7)
last = date(2018, 5, 14) # datetime.date(2018, 5, 14)
days = (last - first).days + 1 # 8
prin... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from May 7, 2018 through May 14, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 5, 7) # datetime.date(2018, 5, 7)\nlast = date(2018, 5, 14) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0077901 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
At $24.28 an hour, what does 24 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 24.28
hours = 24
earnings = rate * hours # 582.72
print(f"{earnings:.2f}")
```
Run result: 582.72
The pay is $582.72.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "At $24.28 an hour, what does 24 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.28\nhours = 24\nearnings = rate * hours # 582.72\nprint(f\"{ear... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "582.72", "printed": "582.72", "notation": null} |
nlprog_det-setting-0077903 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
import math
fixed = 1200
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 300
print(units)
# out: 300
Break-even is 3... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": " import math\n fixed = 1200\n price = 30\n variable = 26\n units = math.ceil(fixed / (price - vari... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0077904 | How many of 263 votes make 75% (round up)? At least 198 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "198", "printed": "198", "notation": null} |
nlprog_det-setting-0077905 | A customer buys 3 file boxes at $16 each, 4 binders at $3 each, 6 cables at $4 each and pays with $100. How much change is due?
Here is the program.
```python
items = [(3, 16), (4, 3), (6, 4)]
total = sum(q * p for q, p in items) # 84
paid = 100
change = paid - total # 16
print(change)
```
It outputs 16.
$16 comes ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0077906 | How long, in days, is it from June 20, 2027 until December 19, 2027?
There are 182 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "182", "printed": "182", "notation": null} |
nlprog_det-setting-0077907 | Notice was given on October 14, 2026. The notice period is 21 days. When does it run out?
Python code:
from datetime import date, timedelta
start = date(2026, 10, 14)
end = start + timedelta(days=21)
print(end.isoformat())
When run, it prints 2026-11-04, as expected.
The period ends on November 4, 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2026-11-04", "printed": "2026-11-04", "notation": null} |
nlprog_det-setting-0077908 | <|start|><|user|>
Someone works 40 hours at $27.96 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 27.96
hours = 40
earnings = rate * hours # 1118.4
print(f"{earnings:.2f}")
```
Running this gives 1118.40.
The pay is $1,118.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 40 hours at $27.96 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 27.96\nhours = 40\nearnings = rate * hours # 1118.4\nprint(f\"{earnings:.2f}\")\n```\nRunning this gives 1118.40.\n\nThe pay is $1,118.40."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1118.40", "printed": "1118.40", "notation": null} |
nlprog_det-setting-0077909 | <|start|><|system|>
Functions:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Express 215 hours in days and hours.<|eot|>
<|ass... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "8 days and 23 hours", "printed": "8 days and 23 hours", "notation": null} |
nlprog_det-setting-0077910 | Express 200 hours in days and hours.
The Python version:
```python
hours = 200
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run output — 8 days and 8 hours
That is 8 days and 8 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "8 days and 8 hours", "printed": "8 days and 8 hours", "notation": null} |
nlprog_det-setting-0077911 | <|start|><|user|>
A claim accrued on January 28, 2021. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2021, 1, 28) # datetime.date(2021, 1, 28)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, ... | chat | [
{
"role": "user",
"content": "A claim accrued on January 28, 2021. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2021, 1, 28) # datetime.date(2021, 1, 28)\nyears = 5\nexpires = accrued.... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2026-01-28", "printed": "2026-01-28", "notation": null} |
nlprog_det-setting-0077913 | Scale 100 g of pasta from 8 servings to 2 servings.
In code:
grams = 100
serves = 8
needed_for = 2
scaled = grams * needed_for // serves # 25
print(scaled)
Executing it gives: 25
Use 25 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0077914 | <|start|><|system|>
You have access to these functions:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "des... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 358 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0077915 | What average speed covers 216 miles in 1.5 hours?
Python does the arithmetic:
```python
distance = 216
hours = 1.5
speed = distance / hours # 144.0
print(round(speed))
```
# run result: 144
It averages 144 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0077916 | <|start|><|user|>
A 12-month warranty starts on September 27, 2023. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on September 27, 2024.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 12-month warranty starts on September 27, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on September 27, 2024."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2024-09-27", "printed": "2024-09-27", "notation": null} |
nlprog_det-setting-0077917 | <|start|><|user|>
What simple interest does $20,000 earn at 4% a year over 4 years?<|eot|>
<|assistant|>
It earns $3,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $20,000 earn at 4% a year over 4 years?"
},
{
"role": "assistant",
"content": "It earns $3,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0077918 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Parking is $5 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|>
<|assistant|>
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $18. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "The charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0077919 | Paula has 14 documents to file, and each filing costs $45. How much are the filing fees in total?
Let the code do the arithmetic:
fee = 45
filings = 14
total = fee * filings # 630
print(total)
The run gives: 630
The filings cost $630 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "630", "printed": "630", "notation": null} |
nlprog_det-setting-0077920 | What is the total rent on a 36-month lease at $1,640 a month?
Python version:
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
Run result — 59040
In total, $59,040 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0077921 | Pilar earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?
Coded up:
```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, as expected.
The w... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0077922 | Straight-line depreciation: cost $18,000, salvage $6,000, 3 years. How much per year?
```python
cost = 18000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
(Result: 4000.00)
$4,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0077923 | Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?
The Python version:
```python
cost = 18000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 3750.0
print(f"{per_year:.2f}")
```
# execution result: 3750.00
Depreciation... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "3750.00", "printed": "3750.00", "notation": null} |
nlprog_det-setting-0077924 | <|start|><|user|>
A 9-day trip pays $79 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 2111
print(total)
```
Executing it gives 2111... | chat | [
{
"role": "user",
"content": "A 9-day trip pays $79 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2111", "printed": "2111", "notation": null} |
nlprog_det-setting-0077925 | <|start|><|user|>
Starting with 1413 lanyards and using 20 per day, how many remain after 13 days?<|eot|>
<|assistant|>
```python
stock = 1413
per_day = 20
days = 13
left = stock - per_day * days
print(left)
```
When run, it prints 1153, as expected.
1153 lanyards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1413 lanyards and using 20 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1413\nper_day = 20\ndays = 13\nleft = stock - per_day * days\nprint(left)\n```\nWhen run, it prints 1153, as expected.\n\n1153 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1153", "printed": "1153", "notation": null} |
nlprog_det-setting-0077926 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "busine... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0077927 | A count moves from 200 to 190. By what percent did it change (use a minus sign for a drop)?
One way, in code:
old = 200
new = 190
change = (new - old) / old * 100 # -5.0
print(round(change))
Console output — -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0077928 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "fetch_filing", "description": "Fetch an... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "243.96", "printed": "243.96", "notation": null} |
nlprog_det-setting-0077929 | <|start|><|user|>
A car travels 302 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 302
hours = 2
speed = distance / hours # 151.0
print(round(speed))
```
# stdout: 151
It averages 151 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 302 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 302\nhours = 2\nspeed = distance / hours # 151.0\nprint(round(speed))\n```\n# stdout: 151\n\nIt averages 151 miles per hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "151", "printed": "151", "notation": null} |
nlprog_det-setting-0077930 | <|start|><|system|>
Functions:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Find the mean of these test scores: 98, 63, ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0077931 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after October 22, 2022 through November 2, 2022?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2022, 10, 22)
end = date(2022, 11, 2)
count = 0
for k in range(1, (end - start).days + 1):
... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 22, 2022 through November 2, 2022?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2022, 10, 22)\n end = date(2022, 11, 2)\n c... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0077932 | How many whole days and leftover hours are in 324 hours?
One way, in code:
hours = 324
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
# result: 13 days and 12 hours
That is 13 days and 12 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "13 days and 12 hours", "printed": "13 days and 12 hours", "notation": null} |
nlprog_det-setting-0077933 | A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?
Set it up in Python:
```python
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
```
# run result: 19500
The rent over the term is $19,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0077934 | Fixed costs are $2,500. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?
Computing it:
```python
import math
fixed = 2500
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
Printed — 500
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0077935 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calculator"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 414 | {"gold": "22.48", "printed": "22.48", "notation": null} |
nlprog_det-setting-0077936 | Counting the first and last day, how many days are there from February 27, 2019 through March 24, 2019?
We can compute it in Python.
```python
from datetime import date
first = date(2019, 2, 27) # datetime.date(2019, 2, 27)
last = date(2019, 3, 24) # datetime.date(2019, 3, 24)
days = (last - first).days + 1 # 26
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0077937 | 4 badges cost $8 apiece. With 5% tax added, what is the total?
Python makes this quick:
quantity = 4
unit_price = 8
subtotal = quantity * unit_price # 32
total = subtotal * (1 + 5 / 100) # 33.6
print(f"{total:.2f}")
# console output: 33.60
The total with tax is $33.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "33.60", "printed": "33.60", "notation": null} |
nlprog_det-setting-0077938 | <|start|><|user|>
A 9 lb package ships at $8 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.2
weight = 9
cost = base + per_pound * weight # 18.799999999999997
print(f"{cost:.2f}")
```
The interpreter prints: 18.80
Shipping costs $18.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 9 lb package ships at $8 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.2\nweight = 9\ncost = base + per_pound * weight # 18.799999999999997\nprint(f\"{cost:.2f}\")\n```\nThe interpreter prints: 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "18.80", "printed": "18.80", "notation": null} |
nlprog_det-setting-0077939 | 32 lanyards cost $9 apiece. With 10% tax added, what is the total?
Python does the arithmetic:
```python
quantity = 32
unit_price = 9
subtotal = quantity * unit_price # 288
total = subtotal * (1 + 10 / 100) # 316.8
print(f"{total:.2f}")
```
Output: 316.80
The total with tax is $316.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "316.80", "printed": "316.80", "notation": null} |
nlprog_det-setting-0077940 | One can of paint covers 400 square feet. How many cans are needed for 1297 square feet of wall?
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0077941 | <|start|><|user|>
A seminar starts at 9:45 AM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 45
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output — 11:00 AM
The seminar finishes at 11:00 AM.<|eo... | chat | [
{
"role": "user",
"content": "A seminar starts at 9:45 AM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 45\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11:00 AM", "printed": "11:00 AM", "notation": null} |
nlprog_det-setting-0077942 | <|start|><|user|>
5 walks at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 5
total = per_session * sessions # 2000
print(total)
```
(Printed result: 2000)
2000 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 walks at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 5\ntotal = per_session * sessions # 2000\nprint(total)\n```\n(Printed result: 2000)\n\n2000 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0077943 | A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 105-page copy cost?
Python version:
pages = 105
base = 5
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 57.5
print(f"{cost:.2f}")
Program output — 57.50
The total is $5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0077944 | An office budget of $8,000 has expenses of $3,754, $2,005. How much of the budget is left?
One way, in code:
```python
budget = 8000
expenses = [3754, 2005]
left = budget - sum(expenses) # 2241
print(left)
```
stdout = 2241
The remaining budget is $2,241. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2241", "printed": "2241", "notation": null} |
nlprog_det-setting-0077945 | A 120-day notice period begins on December 25, 2027. On what date does it end?
Set it up in Python:
from datetime import date, timedelta
start = date(2027, 12, 25) # datetime.date(2027, 12, 25)
end = start + timedelta(days=120) # datetime.date(2028, 4, 23)
print(end.isoformat())
# program output: 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2028-04-23", "printed": "2028-04-23", "notation": null} |
nlprog_det-setting-0077946 | After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?
Set it up in Python:
```python
grant = 60000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 19333.333333333332
print(f"{each:.2f}")
```
(Out: 19333.33)
Each installment is $19,333.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "19333.33", "printed": "19333.33", "notation": null} |
nlprog_det-setting-0077947 | What commission does Wen make on $61,338 in sales at 5%?
We write it as a program:
```python
sales = 61338
rate = 5 / 100 # 0.05
commission = sales * rate # 3066.9
print(f"{commission:.2f}")
```
What it prints: 3066.90
The commission is $3,066.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3066.90", "printed": "3066.90", "notation": null} |
nlprog_det-setting-0077949 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Wha... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0077950 | Sales went from 500 to 450. What is the percent change?
Computation in Python:
```python
old = 500
new = 450
change = (new - old) / old * 100 # -10.0
print(round(change))
```
The run gives: -10
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0077951 | <|start|><|user|>
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 8
per_year = (cost - salvage) / years # 750.0
print(f"{per_year:.2f}")
```
(Output: 750.00)
Deprec... | chat | [
{
"role": "user",
"content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 8\nper_year = (cost - salvage) / years # 7... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0077952 | <|start|><|user|>
$5,000 is invested at 3% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 5627.54405
print(f"{value:.2f}")
```
Run output — 5627.54
The balance is $5,627.54.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 3% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = principal * (1 + rate) ** years # 5627.54405\nprint(f\"{value:.2f}\")\n```\nRu... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5627.54", "printed": "5627.54", "notation": null} |
nlprog_det-setting-0077953 | <|start|><|user|>
How many meters are in 92.6 kilometers?<|eot|>
<|assistant|>
```python
km = 92.6
meters = km * 1000
print(round(meters))
```
Run it and it prints: 92600
92,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 92.6 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 92.6\nmeters = km * 1000\nprint(round(meters))\n```\nRun it and it prints: 92600\n\n92,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "92600", "printed": "92600", "notation": null} |
nlprog_det-setting-0077954 | <|start|><|user|>
The building opened in 2015. How many years had passed by 2045?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2045
print(end_year - start_year)
```
Printed:
30
That is 30 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2015. How many years had passed by 2045?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2045\nprint(end_year - start_year)\n```\nPrinted:\n30\n\nThat is 30 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0077955 | Monthly rent is $1,800. A tenant moves in with 15 days left in a 31-day month. What is the prorated rent?
Program:
```python
rent = 1800
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 870.9677419354839
print(f"{prorated:.2f}")
```
Run output — 870.97
The prorated rent is $870... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "870.97", "printed": "870.97", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.