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-0081927 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_cl... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\nawar... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0081928 | Starting with 1886 cables and using 19 per day, how many remain after 15 days? 1601 cables are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "1601", "printed": "1601", "notation": null} |
nlprog_det-setting-0081930 | Fixed costs are $2,500. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
Let the code do the arithmetic:
```python
import math
fixed = 2500
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 417
print(units)
```
Output: 417
Break-even is 417 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0081931 | Bilal buys 6 boxes of 8 envelopes each and gives away 6 envelopes. How many envelopes are left?
Programmatically:
```python
boxes = 6
per_box = 8
given_away = 6
left = boxes * per_box - given_away # 42
print(left)
```
Running it prints 42, as expected.
That leaves 42 envelopes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0081932 | Each of Cyrus's bike rides burns 250 calories. How many calories over 6 bike rides?
Set it up in Python:
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
Python prints 1500.
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0081933 | <|start|><|user|>
Each of Wanjiru's walks burns 400 calories. How many calories over 3 walks?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Execution result: 1200
That burns 1200 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Wanjiru's walks burns 400 calories. How many calories over 3 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions # 1200\nprint(total)\n```\nExecution result: 1200\n\nThat burns 1200 calori... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0081934 | Fiona drove 589 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Fiona is owed $341.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "341.62", "printed": "341.62", "notation": null} |
nlprog_det-setting-0081935 | Meals are $79 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?
That comes to $1,393. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1393", "printed": "1393", "notation": null} |
nlprog_det-setting-0081936 | With 9 rows of 23 chairs and 0 empty chairs, how many chairs are taken? 207 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "207", "printed": "207", "notation": null} |
nlprog_det-setting-0081937 | Oskar earns a 6% commission on $48,555 of sales. What is the commission?
A short script:
sales = 48555
rate = 6 / 100 # 0.06
commission = sales * rate # 2913.2999999999997
print(f"{commission:.2f}")
# printed: 2913.30
The commission is $2,913.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2913.30", "printed": "2913.30", "notation": null} |
nlprog_det-setting-0081938 | Wanjiru and Maren share $4,732 in the ratio 2:5. How much does Wanjiru get?
A short script:
```python
total = 4732
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1352
print(share_a)
```
Running this gives: 1352
Wanjiru's share is $1,352. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1352", "printed": "1352", "notation": null} |
nlprog_det-setting-0081939 | <|start|><|user|>
A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 4.75
used = 18
free = 2
bill = base + rate * max(0, used - free) # 94.0
print(f"{bill:.2f}")
```
Program output: 94.00
The bill i... | chat | [
{
"role": "user",
"content": "A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 4.75\nused = 18\nfree = 2\nbill = base + rate * max(0, used - free) # 94.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "94.00", "printed": "94.00", "notation": null} |
nlprog_det-setting-0081940 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 798 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 798
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
# program output: 4
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 798 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 798\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\n# program output: 4\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0081941 | If a 2-year limitations period starts on June 21, 2016, when does it end?
Translated to Python:
```python
from datetime import date
accrued = date(2016, 6, 21) # datetime.date(2016, 6, 21)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 6, 21)
print(expires.isoformat())
```
# pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2018-06-21", "printed": "2018-06-21", "notation": null} |
nlprog_det-setting-0081942 | <|start|><|user|>
A recipe for 8 people uses 240 grams of pasta. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 240
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 360
print(scaled)
```
Output of the run: 360
360 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 8 people uses 240 grams of pasta. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 360\nprint(scaled)\n```\nOutput of the run: 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0081943 | <|start|><|user|>
A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 17 thousand gallons?<|eot|>
<|assistant|>
base = 12
rate = 4.75
used = 17
free = 3
bill = base + rate * max(0, used - free) # 78.5
print(f"{bill:.2f}")
The interpreter prints ... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 17 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 12\n rate = 4.75\n used = 17\n free = 3\n bill = base + rate * max(0, used - free... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "78.50", "printed": "78.50", "notation": null} |
nlprog_det-setting-0081944 | <|start|><|user|>
How much sales tax is charged on a $474.06 purchase at 4%?<|eot|>
<|assistant|>
$18.96 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $474.06 purchase at 4%?"
},
{
"role": "assistant",
"content": "$18.96 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "18.96", "printed": "18.96", "notation": null} |
nlprog_det-setting-0081945 | Straight-line depreciation: cost $45,000, salvage $2,000, 10 years. How much per year?
Set it up in Python:
cost = 45000
salvage = 2000
years = 10
per_year = (cost - salvage) / years # 4300.0
print(f"{per_year:.2f}")
It outputs 4300.00.
$4,300.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4300.00", "printed": "4300.00", "notation": null} |
nlprog_det-setting-0081946 | <|start|><|user|>
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 600.0
payment = (principal + interest) / months # 27... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "275.00", "printed": "275.00", "notation": null} |
nlprog_det-setting-0081947 | A party has 28 days to respond to a motion served on February 24, 2018, with 3 days added because service was by mail. When is the response due?
Python does the arithmetic:
from datetime import date, timedelta
served = date(2018, 2, 24) # datetime.date(2018, 2, 24)
response_days = 28
mail_days = 3
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "2018-03-27", "printed": "2018-03-27", "notation": null} |
nlprog_det-setting-0081948 | 7 boxes hold 24 clipboards each. After 19 are handed out, how many are left? 149 clipboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0081949 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "run_python", "description": "Runs a short Python snippet an... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"run_p... | nlprog_det | setting | original | null | deterministic | [] | [] | 329 | {"gold": "952.00", "printed": "952.00", "notation": null} |
nlprog_det-setting-0081950 | <|start|><|user|>
With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 41000
costs = 36000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 12.195121951219512
print(round(margin, 1))
```
Executed, it shows: 12.... | chat | [
{
"role": "user",
"content": "With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 41000\ncosts = 36000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 12.195121951... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "12.2", "printed": "12.2", "notation": null} |
nlprog_det-setting-0081951 | <|start|><|system|>
Functions:
{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Each of Mei's walks burns 150 calories. How ma... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
},
... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0081952 | At an exchange rate of 1.08 CAD per USD, how many CAD is 4,314 USD? It converts to 4,659.12 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "4659.12", "printed": "4659.12", "notation": null} |
nlprog_det-setting-0081953 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
What is a 18% tip on a $101.58 bill?<|eot|>
<|assistant|>
bill = 101.58
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 18.284399999999998
print(f"{tip:.2f}")
Run it and it prints: 18.28
Leave $18.28.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is a 18% tip on a $101.58 bill?"
},
{
"role": "assistant",
"content": " bill = 101.58\n tip_rate = 18 / 100 # 0.18\n tip = bill * tip_rate # 18.284399999999998\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "18.28", "printed": "18.28", "notation": null} |
nlprog_det-setting-0081954 | A pack of 24 pens sells for $936. What does each cost?
Written as code:
```python
total = 936
count = 24
per_item = total // count # 39
print(per_item)
```
It prints 39, as expected.
Each one costs $39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0081955 | <|start|><|user|>
At 2% a month (simple), what interest builds on $12,000 over 5 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 1200.0
print(f"{interest:.2f}")
```
The script prints: 1200.00
$1,200.00 accrues.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $12,000 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 5\ninterest = balance * monthly_rate * months # 1200.0\nprint(f\"{interest:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0081956 | Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?
Code:
```python
days = 4
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 716
print(total)
```
This prints: 716
The allowance is $716. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "716", "printed": "716", "notation": null} |
nlprog_det-setting-0081957 | Divide 110 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
total = 110
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Running it prints: 22 each, 0 left over
The answer: 22 each, 0 left ov... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "22 each, 0 left over", "printed": "22 each, 0 left over", "notation": null} |
nlprog_det-setting-0081958 | With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.
Script:
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
The run gives 11.1.
Profit is 11.1% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0081959 | <|start|><|user|>
Monthly: $9. Annual: $84. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
# program output: 24
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $9. Annual: $84. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 9\nyearly = 84\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n# program output: 24\n\nThe annual plan saves $24."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0081960 | With 30% off, what does a $80 kettle cost?
```python
price = 80
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 56.0
print(f"{sale_price:.2f}")
```
The interpreter prints 56.00.
The sale price is $56.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0081961 | Equal monthly payments repay $9,000 plus 5% simple yearly interest over 12 months. How large is a payment?
As Python:
```python
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 450.0
payment = (principal + interest) / months # 787.5
print(f"{payment:.2f}")... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "787.50", "printed": "787.50", "notation": null} |
nlprog_det-setting-0081962 | What is the total rent on a 36-month lease at $2,875 a month?
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
```
Shell output: 103500
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0081963 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A recipe for 6 people uses 450 grams of flour. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 450
serves = 6
needed_for = 12
scaled = grams * needed_for // serves
print(scaled)
```
Output of the run — 900
900 grams of fl... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A recipe for 6 people uses 450 grams of flour. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 6\nneeded_for = 12\nscaled =... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0081964 | <|start|><|user|>
Starting from $5,000, the team spends $3,226, $893. What remains?<|eot|>
<|assistant|>
budget = 5000
expenses = [3226, 893]
left = budget - sum(expenses) # 881
print(left)
Execution result — 881
The remaining budget is $881.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $3,226, $893. What remains?"
},
{
"role": "assistant",
"content": " budget = 5000\n expenses = [3226, 893]\n left = budget - sum(expenses) # 881\n print(left)\nExecution result — 881\n\nThe remaining budget is $881.... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "881", "printed": "881", "notation": null} |
nlprog_det-setting-0081965 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?
```python
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}")
```
stdout = 360.00
$360.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0081966 | <|start|><|user|>
Leon and Grace share $3,328 in the ratio 3:5. How much does Leon get?<|eot|>
<|assistant|>
```python
total = 3328
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1248
print(share_a)
```
This prints 1248.
Leon gets $1,248.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Leon and Grace share $3,328 in the ratio 3:5. How much does Leon get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 3328\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1248\nprint(share_a)\n```\nThis prints 1248.\n\nLeon g... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1248", "printed": "1248", "notation": null} |
nlprog_det-setting-0081967 | <|start|><|user|>
A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
The annual plan saves $30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "The annual plan saves $30."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0081969 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $7,500 over 6 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 900.0
print(f"{interest:.2f}")
```
Out = 90... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $7,500 over 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ni... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0081970 | Prorate $1,500 of monthly rent for 9 days of a 31-day month.
Code:
rent = 1500
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 435.48387096774195
print(f"{prorated:.2f}")
(Output: 435.48)
The prorated rent is $435.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "435.48", "printed": "435.48", "notation": null} |
nlprog_det-setting-0081971 | <|start|><|user|>
A 10-day notice period begins on February 24, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 2, 24)
end = start + timedelta(days=10)
print(end.isoformat())
```
The script prints: 2019-03-06
It ends on March 6, 2019.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "A 10-day notice period begins on February 24, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 2, 24)\nend = start + timedelta(days=10)\nprint(end.isoformat())\n```\nThe script... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2019-03-06", "printed": "2019-03-06", "notation": null} |
nlprog_det-setting-0081972 | A 260-mile drive at a steady 65 mph takes how many minutes?
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0081973 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Hugo lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 320.0
print(f"{interest:.2f}")
```
Result — 320.... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Hugo lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 8 / 100 # 0.08\nyears = 4\... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0081974 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "fetch_filing", "desc... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 285 | {"gold": "94", "printed": "94", "notation": null} |
nlprog_det-setting-0081975 | <|start|><|user|>
Filing fees are $125 per document. What do 18 filings cost?<|eot|>
<|assistant|>
```python
fee = 125
filings = 18
total = fee * filings # 2250
print(total)
```
(Run result: 2250)
$2,250 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $125 per document. What do 18 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 18\ntotal = fee * filings # 2250\nprint(total)\n```\n(Run result: 2250)\n\n$2,250 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0081976 | If a 4-year limitations period starts on June 8, 2016, when does it end?
Python version:
```python
from datetime import date
accrued = date(2016, 6, 8) # datetime.date(2016, 6, 8)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 6, 8)
print(expires.isoformat())
```
Out: 2020-06-08... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2020-06-08", "printed": "2020-06-08", "notation": null} |
nlprog_det-setting-0081977 | What commission does Paula make on $28,250 in sales at 5%?
Python does the arithmetic:
```python
sales = 28250
rate = 5 / 100 # 0.05
commission = sales * rate # 1412.5
print(f"{commission:.2f}")
```
The program outputs 1412.50.
The commission is $1,412.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1412.50", "printed": "1412.50", "notation": null} |
nlprog_det-setting-0081978 | What commission does Yusuf make on $68,208 in sales at 4%?
Python code:
```python
sales = 68208
rate = 4 / 100 # 0.04
commission = sales * rate # 2728.32
print(f"{commission:.2f}")
```
Program output — 2728.32
Yusuf earns $2,728.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2728.32", "printed": "2728.32", "notation": null} |
nlprog_det-setting-0081979 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "calc", "desc... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "2550", "printed": "2550", "notation": null} |
nlprog_det-setting-0081980 | <|start|><|user|>
Under a 33% contingency agreement, what fee is owed on a $40,000 award?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 33 / 100 # 0.33
fee = recovery * rate # 13200.0
print(f"{fee:.2f}")
```
The interpreter prints: 13200.00
The fee is $13,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $40,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 13200.0\nprint(f\"{fee:.2f}\")\n```\nThe interpreter prints: 13200.00\n\nThe... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0081981 | A $9,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
We can compute it in Python.
principal = 9000
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 1620.0
payme... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "295.00", "printed": "295.00", "notation": null} |
nlprog_det-setting-0081982 | Convert 5 h 51 min (the length of a workshop) to minutes.
A few lines of Python do it:
```python
hours = 5
minutes = 51
total_minutes = hours * 60 + minutes # 351
print(total_minutes)
```
This prints: 351
That is 351 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "351", "printed": "351", "notation": null} |
nlprog_det-setting-0081983 | What is a 18% tip on a $15.05 bill?
The computation:
```python
bill = 15.05
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 2.709
print(f"{tip:.2f}")
```
Execution prints 2.71.
The tip is $2.71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2.71", "printed": "2.71", "notation": null} |
nlprog_det-setting-0081984 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "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"]}}]<|e... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "278", "printed": "278", "notation": null} |
nlprog_det-setting-0081985 | Lucia buys 3 boxes of 24 labels each and gives away 13 labels. How many labels are left?
One way, in code:
```python
boxes = 3
per_box = 24
given_away = 13
left = boxes * per_box - given_away # 59
print(left)
```
Out:
59
That leaves 59 labels. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0081986 | A deposition lasted 2 hours and 6 minutes. How many minutes is that?
```python
hours = 2
minutes = 6
total_minutes = hours * 60 + minutes # 126
print(total_minutes)
```
(Program output: 126)
That is 126 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0081988 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A storeroom has 742 binders. The office uses 31 a day. How many are left after 7 days?<|eot|>
<|assistant|>
```python
stock = 742
per_day = 31
days = 7
left = stock - per_day * days # 525
print(left)
```
Printed result: 525
525 remain.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A storeroom has 742 binders. The office uses 31 a day. How many are left after 7 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 742\nper_day = 31\ndays = 7\nleft = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "525", "printed": "525", "notation": null} |
nlprog_det-setting-0081989 | <|start|><|system|>
Tools you may use:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "python", "description": "Executes a Py... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "442", "printed": "442", "notation": null} |
nlprog_det-setting-0081990 | <|start|><|user|>
Ulla lends $12,000 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 12000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
Python prints 2880.00.
The interest is $2,880.00.<|e... | chat | [
{
"role": "user",
"content": "Ulla lends $12,000 at 4% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 12000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 2880.0\nprint(f\"{interest:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0081991 | Equal monthly payments repay $9,000 plus 10% simple yearly interest over 36 months. How large is a payment?
```python
principal = 9000
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 2700.0
payment = (principal + interest) / months # 325.0
print(f"{payment:.2f}")
```
# ru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "325.00", "printed": "325.00", "notation": null} |
nlprog_det-setting-0081992 | Copies cost $15 plus $0.50 for each page beyond 0. How much for 71 pages?
Coded up:
```python
pages = 71
base = 15
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
Output of the run — 50.50
The copy costs $50.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "50.50", "printed": "50.50", "notation": null} |
nlprog_det-setting-0081993 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 5,000 gallons?
The Python version:
base = 12
rate = 4.2
used = 5
free = 3
bill = base + rate * max(0, used - free) # 20.4
print(f"{bill:.2f}")
Output: 20.40
$20.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "20.40", "printed": "20.40", "notation": null} |
nlprog_det-setting-0081994 | Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Translated to Python:
```python
cost = 45000
salvage = 6000
years = 4
per_year = (cost - salvage) / years # 9750.0
print(f"{per_year:.2f}")
```
The program outputs: 9750.00
$9,750.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "9750.00", "printed": "9750.00", "notation": null} |
nlprog_det-setting-0081995 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A garage charges $3 an hour, never more than $24 a day. How much for 7 hours?<|eot|>
<|assistant|>
rate = 3
hours = 7
daily_max = 24
cost = min(rate * hours, daily_max)
print(cost)
The interpreter prints: 21
Parking costs $... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $24 a day. How much for 7 hours?"
},
{
"role": "assistant",
"content": " rate = 3\n hours = 7\n daily_max = 24\n cost = m... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0081996 | <|start|><|user|>
How much sales tax is charged on a $60.03 purchase at 6%?<|eot|>
<|assistant|>
$3.60 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $60.03 purchase at 6%?"
},
{
"role": "assistant",
"content": "$3.60 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "3.60", "printed": "3.60", "notation": null} |
nlprog_det-setting-0081997 | Counting the first and last day, how many days are there from May 9, 2020 through May 17, 2020?
Let the code do the arithmetic:
from datetime import date
first = date(2020, 5, 9) # datetime.date(2020, 5, 9)
last = date(2020, 5, 17) # datetime.date(2020, 5, 17)
days = (last - first).days + 1 # 9
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0081998 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Ivan buys 12 boxes of 10 hard drives each and gives away 1 hard drives. How many hard drives are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 10
given_away = 1
left = boxes * per_box - given_away # 119
print(left)
```
Result = 119
That l... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Ivan buys 12 boxes of 10 hard drives each and gives away 1 hard drives. How many hard drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 10\ngiven_a... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0082001 | <|start|><|user|>
A $1,500 security deposit has deductions of $200. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [200]
refund = deposit - sum(deductions) # 1300
print(refund)
```
The printout reads: 1300
The refund is $1,300.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $200. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [200]\nrefund = deposit - sum(deductions) # 1300\nprint(refund)\n```\nThe printout reads: 1300\n\nThe refund is $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0082002 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Diego has 11 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 35
filings = 11
total = fee * filings # 385
print(total)
```
Executed, it shows: 385
The filings cost $385 in all.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Diego has 11 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 11\ntotal = fee * filings ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "385", "printed": "385", "notation": null} |
nlprog_det-setting-0082003 | From a $5,000 retainer, 12 hours at $200/hour have been drawn. What remains?
As a program:
```python
retainer = 5000
hours = 12
rate = 200
left = retainer - hours * rate # 2600
print(left)
```
(stdout: 2600)
$2,600 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2600", "printed": "2600", "notation": null} |
nlprog_det-setting-0082004 | <|start|><|user|>
How many minutes pass from 7:09 AM to 9:03 AM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 9 # 429
end = 9 * 60 + 3 # 543
print(end - start)
```
Python prints 114.
It is 114 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:09 AM to 9:03 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 9 # 429\nend = 9 * 60 + 3 # 543\nprint(end - start)\n```\nPython prints 114.\n\nIt is 114 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0082005 | Copies cost $15 plus $0.25 for each page beyond 0. How much for 12 pages?
Python:
```python
pages = 12
base = 15
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 18.0
print(f"{cost:.2f}")
```
Interpreter output — 18.00
The total is $18.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0082006 | <|start|><|user|>
A hall has 22 rows of 19 seats, and 23 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 22
per_row = 19
empty = 23
seated = rows * per_row - empty # 395
print(seated)
The printout reads 395.
395 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 22 rows of 19 seats, and 23 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 22\n per_row = 19\n empty = 23\n seated = rows * per_row - empty # 395\n print(seated)\nThe printout reads 395.\n\n395 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "395", "printed": "395", "notation": null} |
nlprog_det-setting-0082007 | What simple interest does $8,000 earn at 2% a year over 3 years?
Computing it:
```python
principal = 8000
rate = 2 / 100 # 0.02
years = 3
interest = principal * rate * years # 480.0
print(f"{interest:.2f}")
```
It outputs 480.00.
It earns $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0082009 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
An invoice lists 4 scissors at $6 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 4
unit_price = 6
subtotal = quantity * unit_price # 24
total = subtotal * (1 + 6 / 100) # 25.44
print(f"{total:.2f}... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "An invoice lists 4 scissors at $6 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 4\nunit_price = 6\nsubtotal = qu... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "25.44", "printed": "25.44", "notation": null} |
nlprog_det-setting-0082010 | Of a $10,000 budget, $100 has been spent. What percent is that?
```python
budget = 10000
spent = 100
percent = spent / budget * 100
print(round(percent, 1))
```
The program prints: 1.0
That is 1.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1.0", "printed": "1.0", "notation": null} |
nlprog_det-setting-0082011 | A recipe for 4 people uses 240 grams of sugar. How many grams are needed for 6 people?
The program:
grams = 240
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 360
print(scaled)
Execution prints 360, as expected.
Use 360 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0082012 | <|start|><|user|>
Counting the first and last day, how many days are there from March 11, 2019 through March 30, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 3, 11) # datetime.date(2019, 3, 11)
last = date(2019, 3, 30) # datetime.date(2019, 3, 30)
days = (last - first).days + 1 #... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from March 11, 2019 through March 30, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 3, 11) # datetime.date(2019, 3, 11)\nlast = date(2019, 3, 30) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0082013 | At $0.65 per mile, what is the reimbursement for 260 miles?
Let's compute it with Python.
```python
miles = 260
rate = 0.65
reimbursement = miles * rate # 169.0
print(f"{reimbursement:.2f}")
```
When run, it prints 169.00.
The reimbursement is $169.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "169.00", "printed": "169.00", "notation": null} |
nlprog_det-setting-0082014 | 388 files go into boxes of 15. How many boxes does that take?
We can compute it in Python.
```python
import math
files = 388
per_box = 15
boxes = math.ceil(files / per_box) # 26
print(boxes)
```
Result — 26
It takes 26 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0082015 | The paralegal logged 1.5 hours at a rate of $350. How much is billed?
Here is the program.
```python
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
```
It outputs 525.00.
That comes to $525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0082016 | <|start|><|user|>
What average speed covers 408 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 408
hours = 2
speed = distance / hours # 204.0
print(round(speed))
```
(Result: 204)
The average speed is 204 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 408 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 408\nhours = 2\nspeed = distance / hours # 204.0\nprint(round(speed))\n```\n(Result: 204)\n\nThe average speed is 204 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "204", "printed": "204", "notation": null} |
nlprog_det-setting-0082017 | Copies cost $10 plus $0.50 for each page beyond 20. How much for 107 pages?
In code:
```python
pages = 107
base = 10
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 53.5
print(f"{cost:.2f}")
```
Out — 53.50
The copy costs $53.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "53.50", "printed": "53.50", "notation": null} |
nlprog_det-setting-0082018 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
The landlord deducts $200, $60 and $120 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [200, 60, 120]
refund = deposit - sum(deductions) # 620
print(refund)
```
When run, it prints: 620
The ref... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "The landlord deducts $200, $60 and $120 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [200, 60, 120]\nrefund... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "620", "printed": "620", "notation": null} |
nlprog_det-setting-0082019 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 255 | {"gold": "38.33", "printed": "38.33", "notation": null} |
nlprog_det-setting-0082020 | <|start|><|user|>
With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 20.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 20.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0082022 | An invoice lists 35 cables at $5 each, plus 6% sales tax. What is the invoice total?
Python makes this quick:
quantity = 35
unit_price = 5
subtotal = quantity * unit_price # 175
total = subtotal * (1 + 6 / 100) # 185.5
print(f"{total:.2f}")
Output: 185.50
The total with tax is $185.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "185.50", "printed": "185.50", "notation": null} |
nlprog_det-setting-0082023 | If a 3-year limitations period starts on November 3, 2023, when does it end?
As Python:
```python
from datetime import date
accrued = date(2023, 11, 3) # datetime.date(2023, 11, 3)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 11, 3)
print(expires.isoformat())
```
Interpreter o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-11-03", "printed": "2026-11-03", "notation": null} |
nlprog_det-setting-0082024 | With 14 rows of 13 chairs and 22 empty chairs, how many chairs are taken?
Python does the arithmetic:
rows = 14
per_row = 13
empty = 22
seated = rows * per_row - empty
print(seated)
Python prints 160, as expected.
160 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0082025 | <|start|><|user|>
A 130-page report must be reviewed in 13 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 130
days = 13
per_day = pages // days # 10
print(per_day)
```
The run gives: 10
10 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 130-page report must be reviewed in 13 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 130\ndays = 13\nper_day = pages // days # 10\nprint(per_day)\n```\nThe run gives: 10\n\n10 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0082026 | Split $1,665 between Emeka and Rania in the ratio 2 to 3. What is Emeka's share?
The program:
```python
total = 1665
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 666
print(share_a)
```
Running it prints 666, as expected.
Emeka's share is $666. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "666", "printed": "666", "notation": null} |
nlprog_det-setting-0082027 | Convert 7,732 CHF to USD at 1 CHF = 1.35 USD.
A Python solution:
amount = 7732
rate = 1.35
converted = amount * rate # 10438.2
print(f"{converted:.2f}")
Executed, it shows 10438.20.
That is 10,438.20 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10438.20", "printed": "10438.20", "notation": null} |
nlprog_det-setting-0082028 | 44 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
In code:
```python
total = 44
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Running it prints 4 each, 8 left over.
4 each, 8 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4 each, 8 left over", "printed": "4 each, 8 left over", "notation": null} |
nlprog_det-setting-0082029 | 2 books come back 21 days late, at $0.15 a day each. What is the fine?
```python
per_day = 0.15
days_late = 21
books = 2
fine = per_day * days_late * books # 6.3
print(f"{fine:.2f}")
```
This prints 6.30.
The fine is $6.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "6.30", "printed": "6.30", "notation": null} |
nlprog_det-setting-0082031 | A $240 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
As a program:
```python
bill = 240
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 94.39999999999999
print(f"{each:.2f}")
```
Run result — 94.40
The share is $94.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "94.40", "printed": "94.40", "notation": null} |
nlprog_det-setting-0082032 | <|start|><|system|>
You have access to these functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "python_exec", "description": "Evalua... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "39.21", "printed": "39.21", "notation": null} |
nlprog_det-setting-0082033 | After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?
Set it up in Python:
```python
grant = 60000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 4750.0
print(f"{each:.2f}")
```
Out = 4750.00
Each installment is $4,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "4750.00", "printed": "4750.00", "notation": null} |
nlprog_det-setting-0082034 | 17 water bottles cost $7 apiece. With 8% tax added, what is the total?
The program:
```python
quantity = 17
unit_price = 7
subtotal = quantity * unit_price # 119
total = subtotal * (1 + 8 / 100) # 128.52
print(f"{total:.2f}")
```
# output: 128.52
The total with tax is $128.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "128.52", "printed": "128.52", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.