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-0063410 | A trial runs from February 26, 2022 to March 22, 2022, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2022, 2, 26) # datetime.date(2022, 2, 26)
last = date(2022, 3, 22) # datetime.date(2022, 3, 22)
days = (last - first).days + 1 # 25
print(days)
```
It prints 25... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0063411 | With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal.
Script:
```python
revenue = 16500
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Running it prints: 24.2
The margin is 24.2%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0063413 | <|start|><|user|>
How much sales tax is charged on a $732.09 purchase at 4%?<|eot|>
<|assistant|>
```python
price = 732.09
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 29.283600000000003
print(f"{tax:.2f}")
```
On running, it outputs: 29.28
The tax is $29.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $732.09 purchase at 4%?"
},
{
"role": "assistant",
"content": "```python\nprice = 732.09\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 29.283600000000003\nprint(f\"{tax:.2f}\")\n```\nOn running, it outputs: 29.28\n\nThe ta... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "29.28", "printed": "29.28", "notation": null} |
nlprog_det-setting-0063414 | <|start|><|user|>
Meals are $64 per day and lodging $110 per night. What is the allowance for 6 days and 5 nights?<|eot|>
<|assistant|>
```python
days = 6
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 934
print(total)
```
Output of the run: 934
That comes ... | chat | [
{
"role": "user",
"content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 6 days and 5 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 6\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "934", "printed": "934", "notation": null} |
nlprog_det-setting-0063415 | <|start|><|user|>
A shift runs from 8:38 AM to 12:01 PM. How long is it in minutes?<|eot|>
<|assistant|>
start = 8 * 60 + 38 # 518
end = 12 * 60 + 1 # 721
print(end - start)
(Execution result: 203)
203 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 8:38 AM to 12:01 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": " start = 8 * 60 + 38 # 518\n end = 12 * 60 + 1 # 721\n print(end - start)\n(Execution result: 203)\n\n203 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "203", "printed": "203", "notation": null} |
nlprog_det-setting-0063416 | At 1.5% a month (simple), what interest builds on $12,000 over 5 months?
As Python:
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 900.0
print(f"{interest:.2f}")
```
The run gives 900.00.
$900.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0063417 | <|start|><|system|>
Tools (call with JSON):
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parame... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python\", \"description\": \"Use for arit... | nlprog_det | setting | original | null | deterministic | [] | [] | 384 | {"gold": "5383.50", "printed": "5383.50", "notation": null} |
nlprog_det-setting-0063418 | What commission does Grace make on $107,553 in sales at 2%?
Script:
```python
sales = 107553
rate = 2 / 100 # 0.02
commission = sales * rate # 2151.06
print(f"{commission:.2f}")
```
Execution prints 2151.06.
The commission is $2,151.06. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2151.06", "printed": "2151.06", "notation": null} |
nlprog_det-setting-0063419 | A garage charges $4 an hour, never more than $18 a day. How much for 8 hours?
Here is a short program for it.
```python
rate = 4
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
# printed: 18
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0063420 | A 9-day trip pays $69 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?
Coded up:
```python
days = 9
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 2021
print(total)
```
Printed — 2021
The allowance is $2,021. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2021", "printed": "2021", "notation": null} |
nlprog_det-setting-0063421 | 11 envelopes cost $24 apiece. With 5% tax added, what is the total?
Let the code do the arithmetic:
```python
quantity = 11
unit_price = 24
subtotal = quantity * unit_price # 264
total = subtotal * (1 + 5 / 100) # 277.2
print(f"{total:.2f}")
```
Running this gives: 277.20
The invoice total is $277.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "277.20", "printed": "277.20", "notation": null} |
nlprog_det-setting-0063422 | <|start|><|user|>
Of a $10,000 budget, $1,000 has been spent. What percent is that?<|eot|>
<|assistant|>
10.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $1,000 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "10.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0063423 | A 22 lb package ships at $12 base plus $2.50/lb. What is the charge?
One way, in code:
```python
base = 12
per_pound = 2.5
weight = 22
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Printed — 67.00
The charge is $67.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "67.00", "printed": "67.00", "notation": null} |
nlprog_det-setting-0063425 | Walls total 952 sq ft and each can covers 350 sq ft. How many cans should be bought?
A few lines of Python do it:
```python
import math
area = 952
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Execution result — 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0063426 | The landlord deducts $85, $85 and $45 from a $800 deposit. What is returned to the tenant?
Written as code:
```python
deposit = 800
deductions = [85, 85, 45]
refund = deposit - sum(deductions) # 585
print(refund)
```
It prints: 585
The refund is $585. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "585", "printed": "585", "notation": null} |
nlprog_det-setting-0063427 | Straight-line depreciation: cost $18,000, salvage $2,000, 3 years. How much per year?
```python
cost = 18000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 5333.333333333333
print(f"{per_year:.2f}")
```
It outputs: 5333.33
$5,333.33 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "5333.33", "printed": "5333.33", "notation": null} |
nlprog_det-setting-0063429 | Scale 240 g of lentils from 2 servings to 12 servings.
1440 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0063431 | <|start|><|user|>
From a $7,500 retainer, 13 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 13
rate = 250
left = retainer - hours * rate # 4250
print(left)
```
Output:
4250
$4,250 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 13 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 13\nrate = 250\nleft = retainer - hours * rate # 4250\nprint(left)\n```\nOutput:\n4250\n\n$4,250 of the retainer ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4250", "printed": "4250", "notation": null} |
nlprog_det-setting-0063432 | A 3% increase is applied to $1,800 monthly rent. What is the new amount?
Written as code:
```python
rent = 1800
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1854.0
print(f"{new_rent:.2f}")
```
Output:
1854.00
The new rent is $1,854.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1854.00", "printed": "1854.00", "notation": null} |
nlprog_det-setting-0063433 | <|start|><|user|>
Shipping costs $5 plus $2.00 per pound. What does a 26-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 5
per_pound = 2.0
weight = 26
cost = base + per_pound * weight # 57.0
print(f"{cost:.2f}")
Printed result: 57.00
Shipping costs $57.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $2.00 per pound. What does a 26-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 5\n per_pound = 2.0\n weight = 26\n cost = base + per_pound * weight # 57.0\n print(f\"{cost:.2f}\")\nPrinted result: 57.... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "57.00", "printed": "57.00", "notation": null} |
nlprog_det-setting-0063434 | What is the total rent on a 36-month lease at $975 a month?
Python version:
```python
monthly_rent = 975
months = 36
total = monthly_rent * months # 35100
print(total)
```
(Printed: 35100)
In total, $35,100 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "35100", "printed": "35100", "notation": null} |
nlprog_det-setting-0063436 | Filing fees are $35 per document. What do 2 filings cost?
Translated to Python:
fee = 35
filings = 2
total = fee * filings # 70
print(total)
It prints: 70
The total fee is $70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0063437 | <|start|><|user|>
How much sales tax is charged on a $390.10 purchase at 9%?<|eot|>
<|assistant|>
```python
price = 390.1
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 35.109
print(f"{tax:.2f}")
```
(Out: 35.11)
The tax is $35.11.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $390.10 purchase at 9%?"
},
{
"role": "assistant",
"content": "```python\nprice = 390.1\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 35.109\nprint(f\"{tax:.2f}\")\n```\n(Out: 35.11)\n\nThe tax is $35.11."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "35.11", "printed": "35.11", "notation": null} |
nlprog_det-setting-0063438 | Vera earns a 10% commission on $73,370 of sales. What is the commission?
Coded up:
```python
sales = 73370
rate = 10 / 100 # 0.1
commission = sales * rate # 7337.0
print(f"{commission:.2f}")
```
(Printed result: 7337.00)
Vera earns $7,337.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "7337.00", "printed": "7337.00", "notation": null} |
nlprog_det-setting-0063439 | Hugo's scores were 65, 51, 91, 63, 91 and 71. What is the average score?
A short script:
```python
scores = [65, 51, 91, 63, 91, 71]
average = sum(scores) // len(scores) # 72
print(average)
```
The run gives 72.
The average score is 72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0063440 | A quorum is 2/3 of the 52 members, rounded up. How many members make a quorum?
That is 35 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0063441 | A measure needs at least 60% of 147 votes. How many votes is that, rounded up?
A short script:
```python
import math
voters = 147
needed = math.ceil(voters * 60 / 100) # 89
print(needed)
```
Output — 89
At least 89 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0063442 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "code_runner", "description": "A Pyth... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 | [] | [] | 326 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0063443 | A 250-mile drive at a steady 50 mph takes how many minutes?
Script:
```python
distance = 250
speed = 50
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
It outputs 300.
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0063444 | 4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
As Python:
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 4 # 14400.0
print(f"{per_client:.2f}")
Python prints: 14400.00
Each cli... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0063446 | <|start|><|user|>
How many days are there from November 6, 2019 to May 25, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 11, 6) # datetime.date(2019, 11, 6)
second = date(2020, 5, 25) # datetime.date(2020, 5, 25)
print((second - first).days)
```
Run it and it prints: 201
It is 201... | chat | [
{
"role": "user",
"content": "How many days are there from November 6, 2019 to May 25, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 11, 6) # datetime.date(2019, 11, 6)\nsecond = date(2020, 5, 25) # datetime.date(2020, 5, 25)\nprint((seco... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0063447 | <|start|><|user|>
Buying 2 markers at $21 each, 1 pens at $10 each, 3 cables at $8 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
$24 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 2 markers at $21 each, 1 pens at $10 each, 3 cables at $8 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "$24 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063448 | <|start|><|user|>
A 36-month warranty starts on June 19, 2020. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2020, 6, 19)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on June 19, 2020. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2020, 6, 19)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-06-19", "printed": "2023-06-19", "notation": null} |
nlprog_det-setting-0063449 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
rate = 22.4
hours = 44
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 134.39999999999998
pay = regular + overtime # 1030.4
print(f"{pay:.... | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": " rate = 22.4\n hours = 44\n regular = 40 * rate # 896.0\n overtime = (hours - 40) * rate * 1.5 # 134.39999999999998\... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1030.40", "printed": "1030.40", "notation": null} |
nlprog_det-setting-0063450 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
152 copies of a 11-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
Printing costs $167.20.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "152 copies of a 11-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "Printing costs $167.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "167.20", "printed": "167.20", "notation": null} |
nlprog_det-setting-0063451 | <|start|><|user|>
Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 14,000 gallons?<|eot|>
<|assistant|>
$60.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 14,000 gallons?"
},
{
"role": "assistant",
"content": "$60.00 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0063452 | Convert 5 h 46 min (the length of a meeting) to minutes.
Written as code:
```python
hours = 5
minutes = 46
total_minutes = hours * 60 + minutes # 346
print(total_minutes)
```
When run, it prints 346, as expected.
The meeting lasted 346 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "346", "printed": "346", "notation": null} |
nlprog_det-setting-0063453 | A 21-day notice period begins on September 7, 2024. On what date does it end?
A few lines of Python do it:
```python
from datetime import date, timedelta
start = date(2024, 9, 7) # datetime.date(2024, 9, 7)
end = start + timedelta(days=21) # datetime.date(2024, 9, 28)
print(end.isoformat())
```
The interpreter print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2024-09-28", "printed": "2024-09-28", "notation": null} |
nlprog_det-setting-0063454 | A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0063455 | A meal costs $222.58. How much is a 20% tip?
Programmatically:
```python
bill = 222.58
tip_rate = 20 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
That prints: 44.52
Leave $44.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "44.52", "printed": "44.52", "notation": null} |
nlprog_det-setting-0063456 | Fixed costs are $6,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
In Python:
import math
fixed = 6000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
It outputs: 1000
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0063457 | <|start|><|user|>
Notice was given on May 12, 2021. The notice period is 60 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 5, 12) # datetime.date(2021, 5, 12)
end = start + timedelta(days=60) # datetime.date(2021, 7, 11)
print(end.isoformat())
```
Th... | chat | [
{
"role": "user",
"content": "Notice was given on May 12, 2021. The notice period is 60 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 5, 12) # datetime.date(2021, 5, 12)\nend = start + timedelta(days=60) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2021-07-11", "printed": "2021-07-11", "notation": null} |
nlprog_det-setting-0063458 | <|start|><|user|>
36 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
present = 36
total = 50
percent = present / total * 100 # 72.0
print(round(percent, 1))
Executing it gives: 72.0
Attendance was 72.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "36 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": " present = 36\n total = 50\n percent = present / total * 100 # 72.0\n print(round(percent, 1))\nExecuting it gives: 72.0\n\nAttendance was 72.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "72.0", "printed": "72.0", "notation": null} |
nlprog_det-setting-0063459 | Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
As a program:
```python
revenue = 41000
costs = 36000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 12.195121951219512
print(round(margin, 1))
```
The run gives 12.2, as expected.
Profit is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "12.2", "printed": "12.2", "notation": null} |
nlprog_det-setting-0063460 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
What day of the week is January 13, 2007?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2007, 1, 13) # datetime.date(2007, 1, 13)
print(hearing.strftime("%A"))
```
Out:
Saturday
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "What day of the week is January 13, 2007?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2007, 1, 13) # datetime.date(2007, 1, 13)\nprint(hear... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0063461 | <|start|><|system|>
You can call tools. Available tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever t... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"py_exec\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 327 | {"gold": "211.20", "printed": "211.20", "notation": null} |
nlprog_det-setting-0063462 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Goods bought on November 10, 2018 carry a 24-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on November 10, 2020.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Goods bought on November 10, 2018 carry a 24-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on November 10, 2020."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "2020-11-10", "printed": "2020-11-10", "notation": null} |
nlprog_det-setting-0063463 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Divide 183 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
22 each, 7 left over.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Divide 183 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "22 each, 7 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "22 each, 7 left over", "printed": "22 each, 7 left over", "notation": null} |
nlprog_det-setting-0063464 | Parking is $4 per hour with a daily maximum of $18. What do 12 hours cost?
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0063465 | <|start|><|user|>
A deposition lasted 3 hours and 5 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 5
total_minutes = hours * 60 + minutes # 185
print(total_minutes)
```
(Console output: 185)
The deposition lasted 185 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A deposition lasted 3 hours and 5 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 5\ntotal_minutes = hours * 60 + minutes # 185\nprint(total_minutes)\n```\n(Console output: 185)\n\nThe deposition lasted 185 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "185", "printed": "185", "notation": null} |
nlprog_det-setting-0063466 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A 893-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 893
days = 19
per_day = pages // days # 47
print(per_day)
```
The interpreter prints: 47
47 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A 893-page report must be reviewed in 19 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 893\ndays = 19\nper_day = pages // days # 47\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0063467 | <|start|><|user|>
Starting with 1425 calendars and using 7 per day, how many remain after 13 days?<|eot|>
<|assistant|>
1334 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1425 calendars and using 7 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": "1334 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1334", "printed": "1334", "notation": null} |
nlprog_det-setting-0063468 | <|start|><|system|>
Tools (call with JSON):
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Meals are $69 per day and lodging $110... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "1501", "printed": "1501", "notation": null} |
nlprog_det-setting-0063469 | <|start|><|user|>
Convert 3,230 USD to EUR at 1 USD = 1.08 EUR.<|eot|>
<|assistant|>
```python
amount = 3230
rate = 1.08
converted = amount * rate # 3488.4
print(f"{converted:.2f}")
```
Running it prints 3488.40.
That is 3,488.40 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3,230 USD to EUR at 1 USD = 1.08 EUR."
},
{
"role": "assistant",
"content": "```python\namount = 3230\nrate = 1.08\nconverted = amount * rate # 3488.4\nprint(f\"{converted:.2f}\")\n```\nRunning it prints 3488.40.\n\nThat is 3,488.40 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3488.40", "printed": "3488.40", "notation": null} |
nlprog_det-setting-0063470 | How many days are there from June 7, 2025 to June 14, 2025?
Let the code do the arithmetic:
```python
from datetime import date
first = date(2025, 6, 7) # datetime.date(2025, 6, 7)
second = date(2025, 6, 14) # datetime.date(2025, 6, 14)
print((second - first).days)
```
# printed: 7
It is 7 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0063471 | A meal costs $55.54. How much is a 20% tip?
The Python version:
```python
bill = 55.54
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 11.108
print(f"{tip:.2f}")
```
When run, it prints: 11.11
The tip is $11.11. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "11.11", "printed": "11.11", "notation": null} |
nlprog_det-setting-0063472 | What does $10,000 grow to in 5 years at 5% annual compounding?
The Python version:
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 12762.815625000003
print(f"{value:.2f}")
```
When run, it prints 12762.82, as expected.
It is worth $12,762.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "12762.82", "printed": "12762.82", "notation": null} |
nlprog_det-setting-0063473 | <|start|><|system|>
You may call the tools below.
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Fixed costs a... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0063475 | What is a 15% tip on a $61.86 bill?
Computation in Python:
bill = 61.86
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 9.279
print(f"{tip:.2f}")
The program prints: 9.28
Leave $9.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "9.28", "printed": "9.28", "notation": null} |
nlprog_det-setting-0063476 | At a 9% tax rate, what is the tax on $865.65?
The Python version:
price = 865.65
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 77.90849999999999
print(f"{tax:.2f}")
The printout reads 77.91.
$77.91 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "77.91", "printed": "77.91", "notation": null} |
nlprog_det-setting-0063477 | Divide 87 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
The Python version:
```python
total = 87
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed result: 29 each, 0 left over
29 each, 0 left o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "29 each, 0 left over", "printed": "29 each, 0 left over", "notation": null} |
nlprog_det-setting-0063478 | <|start|><|user|>
Papers were served by mail on October 17, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 10, 17)
response_days = 28
mail_days = 3
due = served + timedelta(days=r... | chat | [
{
"role": "user",
"content": "Papers were served by mail on October 17, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 10, 17)\nrespons... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2024-11-17", "printed": "2024-11-17", "notation": null} |
nlprog_det-setting-0063479 | <|start|><|user|>
Starting from $25,000, the team spends $483, $1,772, $2,645. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [483, 1772, 2645]
left = budget - sum(expenses) # 20100
print(left)
```
Result — 20100
The remaining budget is $20,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $483, $1,772, $2,645. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [483, 1772, 2645]\nleft = budget - sum(expenses) # 20100\nprint(left)\n```\nResult — 20100\n\nThe remaining budge... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20100", "printed": "20100", "notation": null} |
nlprog_det-setting-0063480 | Which is cheaper per unit: 10 for $3.74 (A) or 24 for $29.53 (B)?
The computation:
```python
pack_a = 3.74 / 10 # 0.374
pack_b = 29.53 / 24 # 1.2304166666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Printed:
A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0063481 | Each of Kaito's runs burns 250 calories. How many calories over 3 runs?
A Python solution:
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
Interpreter output: 750
750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0063482 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 2 # 9000.0
print(f"{per_client:.2f}")
```
Run result — ... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0063483 | What commission does Kaito make on $113,747 in sales at 5%?
A Python solution:
```python
sales = 113747
rate = 5 / 100 # 0.05
commission = sales * rate # 5687.35
print(f"{commission:.2f}")
```
The script prints 5687.35.
The commission is $5,687.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5687.35", "printed": "5687.35", "notation": null} |
nlprog_det-setting-0063484 | Equal monthly payments repay $1,200 plus 5% simple yearly interest over 36 months. How large is a payment?
A Python solution:
```python
principal = 1200
annual_rate = 5 / 100
months = 36
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f}")
```
# console out... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "38.33", "printed": "38.33", "notation": null} |
nlprog_det-setting-0063485 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute", "des... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 363 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0063487 | Notice was given on March 19, 2024. The notice period is 14 days. When does it run out?
A Python solution:
from datetime import date, timedelta
start = date(2024, 3, 19) # datetime.date(2024, 3, 19)
end = start + timedelta(days=14) # datetime.date(2024, 4, 2)
print(end.isoformat())
Result — 2024-04-0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2024-04-02", "printed": "2024-04-02", "notation": null} |
nlprog_det-setting-0063488 | <|start|><|user|>
A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
Each payment is $330.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "Each payment is $330.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0063489 | <|start|><|user|>
A trial runs from September 20, 2026 to October 12, 2026, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
23 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from September 20, 2026 to October 12, 2026, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "23 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0063490 | The paralegal logged 2.5 hours at a rate of $150. How much is billed?
Here's the code.
```python
hours = 2.5
rate = 150
bill = hours * rate # 375.0
print(f"{bill:.2f}")
```
Run result = 375.00
The bill is $375.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0063491 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 817 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 817
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
The program outputs: 4
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 817 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 817\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nThe program outputs: 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0063492 | 97 copies of a 21-page packet are printed at $0.12 per page. What is the cost?
Let's compute it with Python.
```python
pages = 21
copies = 97
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 244.44
print(f"{cost:.2f}")
```
# result: 244.44
The job costs $244.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "244.44", "printed": "244.44", "notation": null} |
nlprog_det-setting-0063493 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 187... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "187.50", "printed": "187.50", "notation": null} |
nlprog_det-setting-0063495 | <|start|><|user|>
A 15 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.2
weight = 15
cost = base + per_pound * weight # 28.0
print(f"{cost:.2f}")
```
Execution result — 28.00
The charge is $28.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 15 lb package ships at $10 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.2\nweight = 15\ncost = base + per_pound * weight # 28.0\nprint(f\"{cost:.2f}\")\n```\nExecution result — 28.00\n\nThe cha... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0063496 | Revenue is $15,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
In Python:
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
On running, it outputs: 16.7
The margin is 16... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0063497 | <|start|><|user|>
After an initial $6,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
Python prints 6000.00.
Each installment is $... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 6000.0\nprint(f\"{e... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0063498 | Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?
As Python:
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 72.0
payment = (principal + interest) / months # 106.0
print(f"{p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0063500 | Printing costs 10 cents a page. What does it cost to print 164 copies of a 5-page handout?
Python code:
```python
pages = 5
copies = 164
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 82.0
print(f"{cost:.2f}")
```
stdout = 82.00
Printing costs $82.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "82.00", "printed": "82.00", "notation": null} |
nlprog_det-setting-0063501 | A storeroom has 1654 scissors. The office uses 16 a day. How many are left after 5 days?
The program:
```python
stock = 1654
per_day = 16
days = 5
left = stock - per_day * days
print(left)
```
It outputs: 1574
1574 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1574", "printed": "1574", "notation": null} |
nlprog_det-setting-0063502 | 4 hours of work at $300 an hour: what is the total charge?
Python version:
```python
hours = 4
rate = 300
bill = hours * rate # 1200
print(f"{bill:.2f}")
```
That prints: 1200.00
That comes to $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0063503 | What day of the week is February 10, 1997?
One way, in code:
```python
from datetime import date
hearing = date(1997, 2, 10) # datetime.date(1997, 2, 10)
print(hearing.strftime("%A"))
```
Python prints Monday.
February 10, 1997 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0063504 | How many whole days and leftover hours are in 312 hours?
312 hours is 13 days and 0 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "13 days and 0 hours", "printed": "13 days and 0 hours", "notation": null} |
nlprog_det-setting-0063505 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
What is the total rent on a 36-month lease at $1,640 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
It outputs: 59040
The rent over the term is $59,040.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0063506 | A meal costs $111.49. How much is a 18% tip?
Program:
```python
bill = 111.49
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 20.068199999999997
print(f"{tip:.2f}")
```
stdout:
20.07
The tip is $20.07. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.07", "printed": "20.07", "notation": null} |
nlprog_det-setting-0063507 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 40 days?
per_day = 100
days = 40
cap = 5000
fine = min(per_day * days, cap) # 4000
print(fine)
Run it and it prints 4000.
$4,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "4000", "printed": "4000", "notation": null} |
nlprog_det-setting-0063508 | A claim accrued on July 7, 2022. The limitations period is 5 years. On what date does it expire?
Computation in Python:
```python
from datetime import date
accrued = date(2022, 7, 7) # datetime.date(2022, 7, 7)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 7, 7)
print(expires.i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2027-07-07", "printed": "2027-07-07", "notation": null} |
nlprog_det-setting-0063509 | A trial runs from August 8, 2024 to August 15, 2024, counting both days. How many calendar days is that?
Translated to Python:
```python
from datetime import date
first = date(2024, 8, 8) # datetime.date(2024, 8, 8)
last = date(2024, 8, 15) # datetime.date(2024, 8, 15)
days = (last - first).days + 1 # 8
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0063510 | <|start|><|user|>
After an initial $2,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 2000
installments = 12
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
The program prints 2333.33.
Each installment is $2,3... | chat | [
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 2000\ninstallments = 12\neach = (grant - up_front) / installments\nprint(f\"{each:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2333.33", "printed": "2333.33", "notation": null} |
nlprog_det-setting-0063511 | <|start|><|user|>
Notice was given on July 7, 2021. The notice period is 30 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 7, 7) # datetime.date(2021, 7, 7)
end = start + timedelta(days=30) # datetime.date(2021, 8, 6)
print(end.isoformat())
```
Execu... | chat | [
{
"role": "user",
"content": "Notice was given on July 7, 2021. The notice period is 30 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 7, 7) # datetime.date(2021, 7, 7)\nend = start + timedelta(days=30) # d... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2021-08-06", "printed": "2021-08-06", "notation": null} |
nlprog_det-setting-0063513 | 12 of 25 members attended. What percent attended?
present = 12
total = 25
percent = present / total * 100 # 48.0
print(round(percent, 1))
# run result: 48.0
Attendance was 48.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "48.0", "printed": "48.0", "notation": null} |
nlprog_det-setting-0063514 | <|start|><|user|>
The meal allowance is $74 per day. What is it for 7 days?<|eot|>
<|assistant|>
That comes to $518.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $74 per day. What is it for 7 days?"
},
{
"role": "assistant",
"content": "That comes to $518."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "518", "printed": "518", "notation": null} |
nlprog_det-setting-0063515 | <|start|><|user|>
Walls total 646 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 646
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
The interpreter prints 2.
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 646 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 646\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe interpreter prints 2.\n\nBuy... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0063516 | A clerk's office charges $25 for each filing. Chen submits 8 filings. What is the total fee?
Script:
```python
fee = 25
filings = 8
total = fee * filings # 200
print(total)
```
The code prints 200.
The total fee is $200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0063517 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "search_cases", "des... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0063518 | <|start|><|user|>
A recipe for 6 people uses 200 grams of pasta. How many grams are needed for 3 people?<|eot|>
<|assistant|>
```python
grams = 200
serves = 6
needed_for = 3
scaled = grams * needed_for // serves # 100
print(scaled)
```
Result: 100
Use 100 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 200 grams of pasta. How many grams are needed for 3 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 6\nneeded_for = 3\nscaled = grams * needed_for // serves # 100\nprint(scaled)\n```\nResult: 100\n\nUse 100... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0063519 | A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 15 thousand gallons?
Here is the program.
```python
base = 12
rate = 3.5
used = 15
free = 0
bill = base + rate * max(0, used - free) # 64.5
print(f"{bill:.2f}")
```
That prints 64.50.
The bill is $64.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "64.50", "printed": "64.50", "notation": null} |
nlprog_det-setting-0063520 | <|start|><|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 19
free = 3
bill = base + rate * max(0, used - free) # 82.2
print(f"{bill:.2f}")
```
(Program output: 82.20)
The bill is $82.20.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 19\nfree = 3\nbill = base + rate * max(0, used - free) # 82.2\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "82.20", "printed": "82.20", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.