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-0075384 | What is the total rent on a 12-month lease at $1,200 a month?
Python, step by step:
```python
monthly_rent = 1200
months = 12
total = monthly_rent * months # 14400
print(total)
```
Run result = 14400
The rent over the term is $14,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "14400", "printed": "14400", "notation": null} |
nlprog_det-setting-0075385 | A 34 lb package ships at $5 base plus $0.75/lb. What is the charge?
Here is a short program for it.
```python
base = 5
per_pound = 0.75
weight = 34
cost = base + per_pound * weight # 30.5
print(f"{cost:.2f}")
```
# out: 30.50
The charge is $30.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "30.50", "printed": "30.50", "notation": null} |
nlprog_det-setting-0075386 | Someone born November 13, 2007 turns how old by September 24, 2027? Give the age in whole years.
Script:
```python
from datetime import date
born = date(2007, 11, 13) # datetime.date(2007, 11, 13)
on = date(2027, 9, 24) # datetime.date(2027, 9, 24)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0075387 | <|start|><|user|>
How many meters are in 46.1 kilometers?<|eot|>
<|assistant|>
km = 46.1
meters = km * 1000 # 46100.0
print(round(meters))
Out:
46100
That is 46,100 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 46.1 kilometers?"
},
{
"role": "assistant",
"content": " km = 46.1\n meters = km * 1000 # 46100.0\n print(round(meters))\nOut:\n46100\n\nThat is 46,100 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "46100", "printed": "46100", "notation": null} |
nlprog_det-setting-0075388 | <|start|><|user|>
How much sales tax is charged on a $421.83 purchase at 8%?<|eot|>
<|assistant|>
```python
price = 421.83
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 33.7464
print(f"{tax:.2f}")
```
(Run result: 33.75)
$33.75 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $421.83 purchase at 8%?"
},
{
"role": "assistant",
"content": "```python\nprice = 421.83\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 33.7464\nprint(f\"{tax:.2f}\")\n```\n(Run result: 33.75)\n\n$33.75 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "33.75", "printed": "33.75", "notation": null} |
nlprog_det-setting-0075389 | <|start|><|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
It prints 50.
It equals 50 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nIt prints 50.\n\nIt equals 50 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0075390 | Meals are $64 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights?
The program:
```python
days = 8
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1492
print(total)
```
This prints 1492.
That comes to $1,492. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1492", "printed": "1492", "notation": null} |
nlprog_det-setting-0075391 | <|start|><|user|>
A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 390
speed = 65
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
# result: 360
360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 390-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 390\nspeed = 65\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\n# result: 360\n\n360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0075392 | Printing costs 12 cents a page. What does it cost to print 193 copies of a 59-page handout?
As Python:
```python
pages = 59
copies = 193
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 1366.44
print(f"{cost:.2f}")
```
The program prints: 1366.44
The job costs $1,366.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1366.44", "printed": "1366.44", "notation": null} |
nlprog_det-setting-0075393 | 6 claimants share a $2,640 settlement equally. What is each share?
Here is a short program for it.
```python
settlement = 2640
parties = 6
share = settlement // parties # 440
print(share)
```
It prints: 440
Each party receives $440. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "440", "printed": "440", "notation": null} |
nlprog_det-setting-0075394 | <|start|><|user|>
Printing costs 8 cents a page. What does it cost to print 67 copies of a 23-page handout?<|eot|>
<|assistant|>
pages = 23
copies = 67
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 123.28
print(f"{cost:.2f}")
Executing it gives 123.28.
Printing costs $123.28.<|eot|>... | chat | [
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 67 copies of a 23-page handout?"
},
{
"role": "assistant",
"content": " pages = 23\n copies = 67\n cost_per_page = 0.08\n cost = pages * copies * cost_per_page # 123.28\n print(f\"{cost:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "123.28", "printed": "123.28", "notation": null} |
nlprog_det-setting-0075395 | Monthly: $29. Annual: $318. What is saved per year by paying annually?
```python
monthly = 29
yearly = 318
savings = monthly * 12 - yearly # 30
print(savings)
```
(Printed: 30)
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075396 | <|start|><|system|>
Tools (call with JSON):
{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Of a $5,000 budget, $1,6... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "32.0", "printed": "32.0", "notation": null} |
nlprog_det-setting-0075397 | Each storage box holds 25 files. How many boxes are needed for 547 files?
It takes 22 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0075398 | <|start|><|user|>
A $150 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 57.5
print(f"{each:.2f}")
```
Execution prints 57.50, as expected.
The share i... | chat | [
{
"role": "user",
"content": "A $150 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 15 / 100 # 0.15\npeople = 3\neach = bill * (1 + tip_rate) / people # 57.5\nprint(f\"{each:... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0075400 | <|start|><|user|>
What percentage of $5,000 is $3,500?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 3500
percent = spent / budget * 100 # 70.0
print(round(percent, 1))
```
Shell output: 70.0
70.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $3,500?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 3500\npercent = spent / budget * 100 # 70.0\nprint(round(percent, 1))\n```\nShell output: 70.0\n\n70.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0075401 | What commission does Vera make on $107,324 in sales at 8%?
Translated to Python:
```python
sales = 107324
rate = 8 / 100 # 0.08
commission = sales * rate # 8585.92
print(f"{commission:.2f}")
```
The code prints: 8585.92
Vera earns $8,585.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "8585.92", "printed": "8585.92", "notation": null} |
nlprog_det-setting-0075402 | How many units at $25 each (variable cost $17) cover $6,000 of fixed costs?
Python version:
```python
import math
fixed = 6000
price = 25
variable = 17
units = math.ceil(fixed / (price - variable)) # 750
print(units)
```
Running this gives: 750
750 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0075403 | <|start|><|user|>
Someone born November 5, 1961 turns how old by October 18, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1961, 11, 5) # datetime.date(1961, 11, 5)
on = date(2027, 10, 18) # datetime.date(2027, 10, 18)
age = on.year - born.year - ((on.month, o... | chat | [
{
"role": "user",
"content": "Someone born November 5, 1961 turns how old by October 18, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1961, 11, 5) # datetime.date(1961, 11, 5)\non = date(2027, 10, 18) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0075404 | <|start|><|user|>
4 walks at 150 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
```
Result — 600
600 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 walks at 150 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 4\ntotal = per_session * sessions # 600\nprint(total)\n```\nResult — 600\n\n600 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0075405 | 4 bike rides at 350 calories each burn how many calories in total?
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
Executed, it shows 1400.
That burns 1400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0075406 | How many units at $40 each (variable cost $32) cover $2,500 of fixed costs?
The program:
import math
fixed = 2500
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 313
print(units)
stdout — 313
Break-even is 313 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0075407 | A $2,500 security deposit has deductions of $150. How much is refunded?
Coded up:
deposit = 2500
deductions = [150]
refund = deposit - sum(deductions) # 2350
print(refund)
Printed result — 2350
$2,350 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "2350", "printed": "2350", "notation": null} |
nlprog_det-setting-0075408 | <|start|><|user|>
How many whole days and leftover hours are in 323 hours?<|eot|>
<|assistant|>
That is 13 days and 11 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 323 hours?"
},
{
"role": "assistant",
"content": "That is 13 days and 11 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "13 days and 11 hours", "printed": "13 days and 11 hours", "notation": null} |
nlprog_det-setting-0075409 | <|start|><|user|>
How many minutes pass from 11:44 AM to 5:51 PM on the same day?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 44 # 704
end = 17 * 60 + 51 # 1071
print(end - start)
```
Output: 367
It is 367 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 11:44 AM to 5:51 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 44 # 704\nend = 17 * 60 + 51 # 1071\nprint(end - start)\n```\nOutput: 367\n\nIt is 367 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "367", "printed": "367", "notation": null} |
nlprog_det-setting-0075410 | Meals are $59 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?
Here is the program.
```python
days = 8
meal_rate = 59
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1242
print(total)
```
Printed result — 1242
That comes to $1,242. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1242", "printed": "1242", "notation": null} |
nlprog_det-setting-0075411 | A recipe for 6 people uses 200 grams of lentils. How many grams are needed for 12 people?
Written as code:
```python
grams = 200
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 400
print(scaled)
```
Printed:
400
400 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0075412 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 17 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 17
books = 4
fine = per_day * days_late * books # 17.0
print(f"{fine:.2f}")
```
Running this gives 17.00.
$17.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 17 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 17\nbooks = 4\nfine = per_day * days_late * books # 17.0\nprint(f\"{fine:.2f}\")\n```\nR... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0075413 | How much sales tax is charged on a $222.61 purchase at 6%?
We can compute it in Python.
price = 222.61
tax_rate = 6 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
Running this gives 13.36.
The tax is $13.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "13.36", "printed": "13.36", "notation": null} |
nlprog_det-setting-0075414 | With 15% off, what does a $300 filing cabinet cost?
Here is a short program for it.
price = 300
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 255.0
print(f"{sale_price:.2f}")
(Printed: 255.00)
The sale price is $255.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "255.00", "printed": "255.00", "notation": null} |
nlprog_det-setting-0075415 | How many 1-foot square tiles cover a 13 ft by 15 ft floor (round up)?
```python
import math
length = 13
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 195
print(tiles)
```
The printout reads 195.
It takes 195 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0075416 | <|start|><|user|>
A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 9
yearly = 96
savings = monthly * 12 - yearly # 12
print(savings)
```
Run result: 12
$12 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 9\nyearly = 96\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nRun result: 12\n\n$12 is sa... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0075417 | Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?
Python:
```python
cost = 18000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 5333.333333333333
print(f"{per_year:.2f}")
```
Shell output: 5333.33
Depreciation is $5,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "5333.33", "printed": "5333.33", "notation": null} |
nlprog_det-setting-0075418 | At 1% a month (simple), what interest builds on $4,000 over 5 months?
One way, in code:
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 200.0
print(f"{interest:.2f}")
```
Interpreter output — 200.00
The interest is $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0075419 | At an exchange rate of 0.74 CAD per USD, how many CAD is 5,060 USD?
In code:
```python
amount = 5060
rate = 0.74
converted = amount * rate # 3744.4
print(f"{converted:.2f}")
```
(Console output: 3744.40)
That is 3,744.40 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3744.40", "printed": "3744.40", "notation": null} |
nlprog_det-setting-0075420 | Fines run at $250 per day up to a maximum of $2,500. How much after 48 days?
Code:
```python
per_day = 250
days = 48
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Python prints 2500.
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0075421 | <|start|><|user|>
How many of 134 votes make 60% (round up)?<|eot|>
<|assistant|>
At least 81 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 134 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "At least 81 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0075422 | <|start|><|system|>
Tool definitions:
{"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_unit", "to_unit"]}}
{"name": "fetc... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 428 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0075423 | A garage charges $3 an hour, never more than $24 a day. How much for 1 hours?
Python code:
```python
rate = 3
hours = 1
daily_max = 24
cost = min(rate * hours, daily_max)
print(cost)
```
Output: 3
The charge is $3. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0075424 | With 17 rows of 21 chairs and 20 empty chairs, how many chairs are taken?
Script:
```python
rows = 17
per_row = 21
empty = 20
seated = rows * per_row - empty
print(seated)
```
Program output: 337
337 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "337", "printed": "337", "notation": null} |
nlprog_det-setting-0075425 | <|start|><|user|>
What percentage of $4,000 is $2,200?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 2200
percent = spent / budget * 100 # 55.00000000000001
print(round(percent, 1))
```
Run it and it prints 55.0.
55.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $2,200?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 2200\npercent = spent / budget * 100 # 55.00000000000001\nprint(round(percent, 1))\n```\nRun it and it prints 55.0.\n\n55.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0075426 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
24 headsets cost $3 apiece. With 6% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 24
unit_price = 3
subtotal = quantity * unit_price # 72
total = subtotal * (1 + 6 / 100) # 76.32000000000001
print(f"{total:.2f}")
```
The print... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "24 headsets cost $3 apiece. With 6% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 24\nunit_price = 3\nsubtotal = quantity * unit_price # 72\nt... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "76.32", "printed": "76.32", "notation": null} |
nlprog_det-setting-0075427 | <|start|><|user|>
A 560-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 560
days = 20
per_day = pages // days # 28
print(per_day)
```
Execution result — 28
That is 28 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 560-page report must be reviewed in 20 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 560\ndays = 20\nper_day = pages // days # 28\nprint(per_day)\n```\nExecution result — 28\n\nThat is 28 pages per day."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0075428 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Monthly: $29. Annual: $330. What is saved per year by paying annually?<|eot|>
<|assistant|>
monthly = 29
yearly = 330
savings = monthly * 12 - yearly # 18
print(savings)
Console:
18
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Monthly: $29. Annual: $330. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": " monthly = 29\n yearly = 330\n savings = monthly * 12 - yearly # 18\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075429 | A 6-month warranty starts on February 3, 2027. On what date does it end?
The computation:
```python
from datetime import date
start = date(2027, 2, 3)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Program outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2027-08-03", "printed": "2027-08-03", "notation": null} |
nlprog_det-setting-0075431 | An office budget of $12,000 has expenses of $3,343, $1,929, $2,465. How much of the budget is left?
As a program:
budget = 12000
expenses = [3343, 1929, 2465]
left = budget - sum(expenses) # 4263
print(left)
Python prints 4263, as expected.
$4,263 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4263", "printed": "4263", "notation": null} |
nlprog_det-setting-0075432 | Counting the first and last day, how many days are there from April 12, 2023 through April 28, 2023?
One way, in code:
```python
from datetime import date
first = date(2023, 4, 12) # datetime.date(2023, 4, 12)
last = date(2023, 4, 28) # datetime.date(2023, 4, 28)
days = (last - first).days + 1 # 17
print(days)
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0075433 | After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
We can compute it in Python.
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 3 # 16800.0
print(f"{per_client:.2f}")
```
Out:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0075434 | <|start|><|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
That is 68 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "That is 68 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0075435 | Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Written as code:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Printed: 38.5
Profit is 38.5% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0075436 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
After an initial $6... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0075438 | How many units at $40 each (variable cost $30) cover $6,000 of fixed costs?
As a program:
```python
import math
fixed = 6000
price = 40
variable = 30
units = math.ceil(fixed / (price - variable)) # 600
print(units)
```
It outputs 600.
600 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0075439 | Fines run at $250 per day up to a maximum of $5,000. How much after 24 days?
A short script:
```python
per_day = 250
days = 24
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
Python prints: 5000
The fine is $5,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0075440 | With 20% off, what does a $120 printer cost?
A Python solution:
```python
price = 120
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 96.0
print(f"{sale_price:.2f}")
```
Python prints 96.00, as expected.
It costs $96.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "96.00", "printed": "96.00", "notation": null} |
nlprog_det-setting-0075441 | <|start|><|user|>
Attendance was 40 out of 50. Express it as a percent.<|eot|>
<|assistant|>
present = 40
total = 50
percent = present / total * 100 # 80.0
print(round(percent, 1))
# output: 80.0
80.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 40 out of 50. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 40\n total = 50\n percent = present / total * 100 # 80.0\n print(round(percent, 1))\n# output: 80.0\n\n80.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0075442 | How many days are there from June 25, 2021 to February 1, 2022?
We write it as a program:
```python
from datetime import date
first = date(2021, 6, 25) # datetime.date(2021, 6, 25)
second = date(2022, 2, 1) # datetime.date(2022, 2, 1)
print((second - first).days)
```
The run gives 221.
It is 221 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "221", "printed": "221", "notation": null} |
nlprog_det-setting-0075443 | A shift starts at 12:15 PM and lasts 135 minutes. When does it end?
A short script:
```python
start = 12 * 60 + 15
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output:
2:30 PM
The shift finishes at 2:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2:30 PM", "printed": "2:30 PM", "notation": null} |
nlprog_det-setting-0075444 | A claim accrued on May 26, 2023. The limitations period is 2 years. On what date does it expire?
It runs out on May 26, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2025-05-26", "printed": "2025-05-26", "notation": null} |
nlprog_det-setting-0075445 | How many units at $30 each (variable cost $22) cover $9,000 of fixed costs?
Break-even is 1125 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0075446 | <|start|><|user|>
What day of the week is November 5, 1991?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1991, 11, 5) # datetime.date(1991, 11, 5)
print(hearing.strftime("%A"))
```
# console output: Tuesday
November 5, 1991 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is November 5, 1991?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1991, 11, 5) # datetime.date(1991, 11, 5)\nprint(hearing.strftime(\"%A\"))\n```\n# console output: Tuesday\n\nNovember 5, 1991 is a... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0075447 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after June 17, 2028 up to and including July 20, 2028?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2028, 6, 17)
end = date(2028, 7, 20)
count = 0
for k in range(1, (end - start).days + 1):
if (start + time... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 17, 2028 up to and including July 20, 2028?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2028, 6, 17)\n end = date(2028, 7, 20)\n count = 0\n for k in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075448 | <|start|><|user|>
A $120 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
Each person pays $70.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $120 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "Each person pays $70.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0075449 | <|start|><|user|>
Split $2,403 between Arjun and Yusuf in the ratio 1 to 2. What is Arjun's share?<|eot|>
<|assistant|>
total = 2403
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 801
print(share_a)
It outputs 801.
Arjun's share is $801.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,403 between Arjun and Yusuf in the ratio 1 to 2. What is Arjun's share?"
},
{
"role": "assistant",
"content": " total = 2403\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (parts_a + parts_b) # 801\n print(share_a)\nIt outputs 80... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "801", "printed": "801", "notation": null} |
nlprog_det-setting-0075451 | How many weekdays (Monday to Friday) fall after February 17, 2019 up to and including March 20, 2019?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
start = date(2019, 2, 17)
end = date(2019, 3, 20)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075452 | The bridge was finished in 1997. How many years had passed by 2035?
```python
start_year = 1997
end_year = 2035
print(end_year - start_year)
```
Out: 38
38 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0075453 | At an exchange rate of 1.31 USD per GBP, how many USD is 5,387 GBP?
Translated to Python:
```python
amount = 5387
rate = 1.31
converted = amount * rate # 7056.97
print(f"{converted:.2f}")
```
Printed = 7056.97
That is 7,056.97 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "7056.97", "printed": "7056.97", "notation": null} |
nlprog_det-setting-0075454 | A recipe for 6 people uses 150 grams of pasta. How many grams are needed for 8 people?
Python makes this quick:
```python
grams = 150
serves = 6
needed_for = 8
scaled = grams * needed_for // serves # 200
print(scaled)
```
Printed:
200
Use 200 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0075455 | Which is cheaper per unit: 6 for $4.98 (A) or 20 for $26.92 (B)?
```python
pack_a = 4.98 / 6 # 0.8300000000000001
pack_b = 26.92 / 20 # 1.346
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The printout reads A.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0075456 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Monthly: $25. Annual: $282. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
```
When run, it prints: 18
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Monthly: $25. Annual: $282. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 282\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075457 | Find the mean of these test scores: 88, 95, 57, 59 and 71.
Python does the arithmetic:
```python
scores = [88, 95, 57, 59, 71]
average = sum(scores) // len(scores) # 74
print(average)
```
Executed, it shows 74.
The mean is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0075458 | A count moves from 400 to 420. By what percent did it change (use a minus sign for a drop)?
Python code:
```python
old = 400
new = 420
change = (new - old) / old * 100 # 5.0
print(round(change))
```
(Execution result: 5)
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0075459 | A trial runs from September 8, 2025 to September 12, 2025, counting both days. How many calendar days is that?
A Python solution:
```python
from datetime import date
first = date(2025, 9, 8) # datetime.date(2025, 9, 8)
last = date(2025, 9, 12) # datetime.date(2025, 9, 12)
days = (last - first).days + 1 # 5
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0075460 | The landlord deducts $45 from a $1,500 deposit. What is returned to the tenant?
Code:
```python
deposit = 1500
deductions = [45]
refund = deposit - sum(deductions) # 1455
print(refund)
```
Output of the run: 1455
The refund is $1,455. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1455", "printed": "1455", "notation": null} |
nlprog_det-setting-0075461 | With 40% off, what does a $60 jacket cost?
Let the code do the arithmetic:
```python
price = 60
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 36.0
print(f"{sale_price:.2f}")
```
Result = 36.00
The sale price is $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0075462 | If a 40-minute seminar begins at 9:40 AM, what time does it finish?
```python
start = 9 * 60 + 40
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Console output: 10:20 AM
It ends at 10:20 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "10:20 AM", "printed": "10:20 AM", "notation": null} |
nlprog_det-setting-0075463 | A garage charges $4 an hour, never more than $15 a day. How much for 3 hours? The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0075464 | How many days are there from March 16, 2028 to December 12, 2028?
Python code:
```python
from datetime import date
first = date(2028, 3, 16) # datetime.date(2028, 3, 16)
second = date(2028, 12, 12) # datetime.date(2028, 12, 12)
print((second - first).days)
```
# stdout: 271
It is 271 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "271", "printed": "271", "notation": null} |
nlprog_det-setting-0075465 | An invoice lists 40 flash drives at $12 each, plus 10% sales tax. What is the invoice total?
quantity = 40
unit_price = 12
subtotal = quantity * unit_price # 480
total = subtotal * (1 + 10 / 100) # 528.0
print(f"{total:.2f}")
Run result — 528.00
The total with tax is $528.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "528.00", "printed": "528.00", "notation": null} |
nlprog_det-setting-0075467 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A claim accrued on November 20, 2018. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2018, 11, 20) # datetime.date(2018, 11, 20)
years = 4
expires = accrued.replace(year=a... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A claim accrued on November 20, 2018. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2022-11-20", "printed": "2022-11-20", "notation": null} |
nlprog_det-setting-0075468 | A pack of 6 markers sells for $294. What does each cost?
The program:
```python
total = 294
count = 6
per_item = total // count # 49
print(per_item)
```
Run output: 49
Each one costs $49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0075469 | Convert -10 °C to Fahrenheit.
Python version:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
The printout reads 14.
It equals 14 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0075470 | <|start|><|user|>
A measure needs at least 75% of 246 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 246
needed = math.ceil(voters * 75 / 100) # 185
print(needed)
```
Shell output: 185
185 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 75% of 246 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 246\nneeded = math.ceil(voters * 75 / 100) # 185\nprint(needed)\n```\nShell output: 185\n\n185 votes are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "185", "printed": "185", "notation": null} |
nlprog_det-setting-0075471 | With 16 rows of 21 chairs and 25 empty chairs, how many chairs are taken?
The Python version:
```python
rows = 16
per_row = 21
empty = 25
seated = rows * per_row - empty # 311
print(seated)
```
The code prints: 311
311 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "311", "printed": "311", "notation": null} |
nlprog_det-setting-0075472 | Meals are $59 per day and lodging $110 per night. What is the allowance for 6 days and 5 nights?
Here is the program.
```python
days = 6
meal_rate = 59
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 904
print(total)
```
Printed:
904
That comes to $904. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "904", "printed": "904", "notation": null} |
nlprog_det-setting-0075473 | 3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
The Python version:
bill = 180
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 72.0
print(f"{each:.2f}")
Run it and it prints: 72.00
Each person pays $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0075474 | The landlord deducts $45, $75 and $150 from a $800 deposit. What is returned to the tenant?
A few lines of Python do it:
deposit = 800
deductions = [45, 75, 150]
refund = deposit - sum(deductions) # 530
print(refund)
On running, it outputs: 530
$530 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "530", "printed": "530", "notation": null} |
nlprog_det-setting-0075475 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 9 days?
The fine is $2,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0075476 | Each of Viktor's bike rides burns 200 calories. How many calories over 7 bike rides?
Let's compute it with Python.
```python
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
```
# console output: 1400
That burns 1400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0075477 | If a 75-minute shift begins at 11:20 AM, what time does it finish?
Programmatically:
```python
start = 11 * 60 + 20
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
stdout: 12:35 PM
It ends at 12:35 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "12:35 PM", "printed": "12:35 PM", "notation": null} |
nlprog_det-setting-0075478 | Sales went from 2,000 to 2,100. What is the percent change?
Computation in Python:
```python
old = 2000
new = 2100
change = (new - old) / old * 100 # 5.0
print(round(change))
```
It prints 5, as expected.
It changed by 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0075479 | <|start|><|user|>
At $0.58 per mile, what is the reimbursement for 464 miles?<|eot|>
<|assistant|>
Wen is owed $269.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 464 miles?"
},
{
"role": "assistant",
"content": "Wen is owed $269.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "269.12", "printed": "269.12", "notation": null} |
nlprog_det-setting-0075480 | At 1.5% a month (simple), what interest builds on $7,500 over 4 months? The interest is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0075481 | Express 90 hours in days and hours. 90 hours is 3 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "3 days and 18 hours", "printed": "3 days and 18 hours", "notation": null} |
nlprog_det-setting-0075482 | After an initial $6,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?
The computation:
```python
grant = 30000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
Output of the run — 6000.00
$6,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0075483 | <|start|><|user|>
3 friends split a $120 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 120
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 47.199999999999996
print(f"{each:.2f}")
The script prints 47.20.
The share is $47.20 each.<|eo... | chat | [
{
"role": "user",
"content": "3 friends split a $120 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 120\n tip_rate = 18 / 100 # 0.18\n people = 3\n each = bill * (1 + tip_rate) / people # 47.199999999999996\n print(f\"{each:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "47.20", "printed": "47.20", "notation": null} |
nlprog_det-setting-0075484 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after July 25, 2024 through August 17, 2024?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 7, 25)
end = date(2024, 8, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after July 25, 2024 through August 17, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 7, 25)\nend = date(2024, 8, 17)\ncount = 0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0075485 | <|start|><|user|>
A $9,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 900.0
payment... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "412.50", "printed": "412.50", "notation": null} |
nlprog_det-setting-0075486 | <|start|><|user|>
A hall has 6 rows of 9 seats, and 24 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 6
per_row = 9
empty = 24
seated = rows * per_row - empty # 30
print(seated)
```
Run output — 30
30 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 6 rows of 9 seats, and 24 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 6\nper_row = 9\nempty = 24\nseated = rows * per_row - empty # 30\nprint(seated)\n```\nRun output — 30\n\n30 seats are taken."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075487 | A library charges $0.15 per book per day late. What is the fine for 2 books that are 10 days late?
A Python solution:
```python
per_day = 0.15
days_late = 10
books = 2
fine = per_day * days_late * books # 3.0
print(f"{fine:.2f}")
```
# printed result: 3.00
$3.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0075489 | A hall has 18 rows of 16 seats, and 4 seats are empty. How many people are seated?
rows = 18
per_row = 16
empty = 4
seated = rows * per_row - empty # 284
print(seated)
Result — 284
284 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "284", "printed": "284", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.