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-0076565 | At $0.67 per mile, what is the reimbursement for 31 miles?
miles = 31
rate = 0.67
reimbursement = miles * rate # 20.77
print(f"{reimbursement:.2f}")
Executing it gives: 20.77
Hugo is owed $20.77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "20.77", "printed": "20.77", "notation": null} |
nlprog_det-setting-0076566 | How many of 34 members form a majority (more than half)?
Here is the program.
```python
members = 34
majority = members // 2 + 1 # 18
print(majority)
```
# out: 18
That is 18 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0076567 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
From a $5,000 retainer, 8 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
The remaining balance is $2,800.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "From a $5,000 retainer, 8 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "The remaining balance is $2,800."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0076568 | <|start|><|user|>
A 8% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 1250
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1350.0
print(f"{new_rent:.2f}")
The program prints: 1350.00
The new rent is $1,350.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 8% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 1250\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1350.0\n print(f\"{new_rent:.2f}\")\nThe program prints: 1350.... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1350.00", "printed": "1350.00", "notation": null} |
nlprog_det-setting-0076569 | <|start|><|user|>
With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 24000
costs = 20000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Running it prints 16.7.
The margin is 16.7%.<|eot|>
... | chat | [
{
"role": "user",
"content": "With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin, 1)... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0076570 | A 6% increase is applied to $1,500 monthly rent. What is the new amount?
Python:
```python
rent = 1500
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1590.0
print(f"{new_rent:.2f}")
```
Printed = 1590.00
It rises to $1,590.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1590.00", "printed": "1590.00", "notation": null} |
nlprog_det-setting-0076571 | At $0.62 per mile, what is the reimbursement for 359 miles?
One way, in code:
miles = 359
rate = 0.62
reimbursement = miles * rate # 222.58
print(f"{reimbursement:.2f}")
Execution result — 222.58
The reimbursement is $222.58. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "222.58", "printed": "222.58", "notation": null} |
nlprog_det-setting-0076572 | If a 40-minute meeting begins at 9:45 AM, what time does it finish?
```python
start = 9 * 60 + 45
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Executed, it shows: 10:25 AM
The meeting finishes at 10:25 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "10:25 AM", "printed": "10:25 AM", "notation": null} |
nlprog_det-setting-0076573 | Yara earns a 10% commission on $62,190 of sales. What is the commission?
Python version:
```python
sales = 62190
rate = 10 / 100 # 0.1
commission = sales * rate # 6219.0
print(f"{commission:.2f}")
```
Run result: 6219.00
Yara earns $6,219.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6219.00", "printed": "6219.00", "notation": null} |
nlprog_det-setting-0076575 | How much sales tax is charged on a $827.75 purchase at 5%?
As a program:
```python
price = 827.75
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 41.3875
print(f"{tax:.2f}")
```
The program prints 41.39, as expected.
The tax is $41.39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "41.39", "printed": "41.39", "notation": null} |
nlprog_det-setting-0076576 | At $18.89 an hour, what does 38 hours of work pay?
Translated to Python:
```python
rate = 18.89
hours = 38
earnings = rate * hours # 717.82
print(f"{earnings:.2f}")
```
The run gives 717.82, as expected.
That earns $717.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "717.82", "printed": "717.82", "notation": null} |
nlprog_det-setting-0076577 | 109 copies of a 6-page packet are printed at $0.08 per page. What is the cost?
The Python version:
```python
pages = 6
copies = 109
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 52.32
print(f"{cost:.2f}")
```
Run result — 52.32
Printing costs $52.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "52.32", "printed": "52.32", "notation": null} |
nlprog_det-setting-0076578 | <|start|><|user|>
Find the mean of these test scores: 90, 74, 66 and 66.<|eot|>
<|assistant|>
```python
scores = [90, 74, 66, 66]
average = sum(scores) // len(scores) # 74
print(average)
```
Shell output — 74
The average score is 74.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 90, 74, 66 and 66."
},
{
"role": "assistant",
"content": "```python\nscores = [90, 74, 66, 66]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\nShell output — 74\n\nThe average score is 74."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0076579 | Xavier has 13 documents to file, and each filing costs $45. How much are the filing fees in total?
A short script:
```python
fee = 45
filings = 13
total = fee * filings # 585
print(total)
```
Running this gives: 585
The filings cost $585 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "585", "printed": "585", "notation": null} |
nlprog_det-setting-0076580 | How much sales tax is charged on a $199.13 purchase at 5%? The tax is $9.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "9.96", "printed": "9.96", "notation": null} |
nlprog_det-setting-0076581 | <|start|><|user|>
Water costs $12 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 3.5
used = 3
free = 2
bill = base + rate * max(0, used - free) # 15.5
print(f"{bill:.2f}")
```
When run, it prints 15.50, as expected.
$15.50 is owed.... | chat | [
{
"role": "user",
"content": "Water costs $12 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 3.5\nused = 3\nfree = 2\nbill = base + rate * max(0, used - free) # 15.5\nprint(f\"{bill:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "15.50", "printed": "15.50", "notation": null} |
nlprog_det-setting-0076582 | A board has 55 members. A majority is more than half. How many votes make a majority?
Script:
```python
members = 55
majority = members // 2 + 1
print(majority)
```
When run, it prints: 28
That is 28 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0076583 | If a 4-year limitations period starts on March 2, 2022, when does it end?
The period expires on March 2, 2026. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2026-03-02", "printed": "2026-03-02", "notation": null} |
nlprog_det-setting-0076584 | <|start|><|user|>
1 books come back 24 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 24
books = 1
fine = per_day * days_late * books # 12.0
print(f"{fine:.2f}")
```
(Result: 12.00)
$12.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 24 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 24\nbooks = 1\nfine = per_day * days_late * books # 12.0\nprint(f\"{fine:.2f}\")\n```\n(Result: 12.00)\n\n$12.00 is o... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0076585 | <|start|><|user|>
Wen buys 5 boxes of 10 water bottles each and gives away 8 water bottles. How many water bottles are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 10
given_away = 8
left = boxes * per_box - given_away # 42
print(left)
```
Interpreter output — 42
42 water bottles are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wen buys 5 boxes of 10 water bottles each and gives away 8 water bottles. How many water bottles are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 10\ngiven_away = 8\nleft = boxes * per_box - given_away # 42\nprint(left)\n```\nInterpr... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0076586 | <|start|><|user|>
A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 5-page copy cost?<|eot|>
<|assistant|>
```python
pages = 5
base = 10
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 10.0
print(f"{cost:.2f}")
```
(stdout: 10.00)
The copy c... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 5-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 5\nbase = 10\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0076587 | <|start|><|user|>
A $48,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 6000
installments = 4
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
The code prints 10500.00.
$10,500.00 per installmen... | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments\nprint(f\"{each:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0076588 | How many weekdays (Monday to Friday) fall after September 16, 2021 up to and including October 19, 2021?
A short script:
from datetime import date, timedelta
start = date(2021, 9, 16)
end = date(2021, 10, 19)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0076589 | An attorney bills 2.5 hours at $300 per hour. What is the bill?
Program:
hours = 2.5
rate = 300
bill = hours * rate # 750.0
print(f"{bill:.2f}")
The printout reads 750.00.
The bill is $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0076590 | Papers were served by mail on September 6, 2020. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
Python code:
from datetime import date, timedelta
served = date(2020, 9, 6) # datetime.date(2020, 9, 6)
response_days = 30
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2020-10-09", "printed": "2020-10-09", "notation": null} |
nlprog_det-setting-0076591 | <|start|><|user|>
A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?<|eot|>
<|assistant|>
base = 15
rate = 4.2
used = 9
free = 0
bill = base + rate * max(0, used - free) # 52.800000000000004
print(f"{bill:.2f}")
# program ou... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 15\n rate = 4.2\n used = 9\n free = 0\n bill = base + rate * max(0, used - free) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "52.80", "printed": "52.80", "notation": null} |
nlprog_det-setting-0076592 | A hall has 28 rows of 20 seats, and 39 seats are empty. How many people are seated?
The computation:
```python
rows = 28
per_row = 20
empty = 39
seated = rows * per_row - empty # 521
print(seated)
```
# program output: 521
521 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "521", "printed": "521", "notation": null} |
nlprog_det-setting-0076593 | A meal costs $75.37. How much is a 20% tip?
Program:
```python
bill = 75.37
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 15.074000000000002
print(f"{tip:.2f}")
```
Program output — 15.07
The tip is $15.07. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "15.07", "printed": "15.07", "notation": null} |
nlprog_det-setting-0076594 | <|start|><|user|>
6 claimants share a $960 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 960
parties = 6
share = settlement // parties # 160
print(share)
```
What it prints — 160
Each party receives $160.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $960 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 960\nparties = 6\nshare = settlement // parties # 160\nprint(share)\n```\nWhat it prints — 160\n\nEach party receives $160."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0076595 | <|start|><|user|>
A count moves from 1,200 to 1,380. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 1200
new = 1380
change = (new - old) / old * 100 # 15.0
print(round(change))
```
The run gives 15, as expected.
The change is 15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 1,200 to 1,380. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 1200\nnew = 1380\nchange = (new - old) / old * 100 # 15.0\nprint(round(change))\n```\nThe run gives 15, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0076596 | <|start|><|user|>
An invoice lists 23 lanyards at $8 each, plus 10% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 23
unit_price = 8
subtotal = quantity * unit_price # 184
total = subtotal * (1 + 10 / 100) # 202.4
print(f"{total:.2f}")
```
That prints 202.40.
The total with tax is $2... | chat | [
{
"role": "user",
"content": "An invoice lists 23 lanyards at $8 each, plus 10% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 23\nunit_price = 8\nsubtotal = quantity * unit_price # 184\ntotal = subtotal * (1 + 10 / 100) # 202.4\nprint(f\"{to... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "202.40", "printed": "202.40", "notation": null} |
nlprog_det-setting-0076597 | Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons?
Written as code:
```python
base = 15
rate = 5.1
used = 25
free = 3
bill = base + rate * max(0, used - free) # 127.19999999999999
print(f"{bill:.2f}")
```
stdout — 127.20
The bill is $127.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "127.20", "printed": "127.20", "notation": null} |
nlprog_det-setting-0076598 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "50.40", "printed": "50.40", "notation": null} |
nlprog_det-setting-0076599 | <|start|><|user|>
Scale 200 g of flour from 8 servings to 10 servings.<|eot|>
<|assistant|>
```python
grams = 200
serves = 8
needed_for = 10
scaled = grams * needed_for // serves
print(scaled)
```
The program outputs: 250
250 grams of flour are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 200 g of flour from 8 servings to 10 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 8\nneeded_for = 10\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nThe program outputs: 250\n\n250 grams of flour are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0076600 | <|start|><|user|>
A garage charges $4 an hour, never more than $18 a day. How much for 6 hours?<|eot|>
<|assistant|>
```python
rate = 4
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Executed, it shows 18.
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $18 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nExecuted, it shows 18.\n\nParking costs ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0076601 | Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?
Computing it:
```python
cost = 18000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
The program prints 2400.00, as expected.
$2,40... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0076602 | A 26 lb package ships at $8 base plus $0.75/lb. What is the charge?
The charge is $27.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "27.50", "printed": "27.50", "notation": null} |
nlprog_det-setting-0076603 | How many weekdays (Monday to Friday) fall after June 27, 2024 up to and including July 21, 2024?
The computation:
```python
from datetime import date, timedelta
start = date(2024, 6, 27)
end = date(2024, 7, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0076604 | How many whole days and leftover hours are in 321 hours?
A few lines of Python do it:
```python
hours = 321
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executed, it shows 13 days and 9 hours.
321 hours is 13 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "13 days and 9 hours", "printed": "13 days and 9 hours", "notation": null} |
nlprog_det-setting-0076605 | Starting with 1086 toner kits and using 40 per day, how many remain after 8 days?
766 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "766", "printed": "766", "notation": null} |
nlprog_det-setting-0076606 | Which is cheaper per unit: 10 for $6.02 (A) or 18 for $9.65 (B)?
Python:
```python
pack_a = 6.02 / 10 # 0.602
pack_b = 9.65 / 18 # 0.5361111111111111
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
When run, it prints B.
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0076607 | An office budget of $8,000 has expenses of $890, $1,386, $2,968. How much of the budget is left?
As Python:
```python
budget = 8000
expenses = [890, 1386, 2968]
left = budget - sum(expenses) # 2756
print(left)
```
stdout:
2756
The remaining budget is $2,756. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2756", "printed": "2756", "notation": null} |
nlprog_det-setting-0076608 | <|start|><|user|>
Meals are $69 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|>
<|assistant|>
days = 4
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 801
print(total)
Run output — 801
That co... | chat | [
{
"role": "user",
"content": "Meals are $69 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?"
},
{
"role": "assistant",
"content": " days = 4\n meal_rate = 69\n lodging_rate = 175\n nights = days - 1 # 3\n total = days * meal_rate + nights * lodg... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "801", "printed": "801", "notation": null} |
nlprog_det-setting-0076609 | Starting with 423 binders and using 32 per day, how many remain after 13 days?
Program:
stock = 423
per_day = 32
days = 13
left = stock - per_day * days # 7
print(left)
Result — 7
7 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0076610 | How many whole days and leftover hours are in 270 hours?
Python:
```python
hours = 270
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executing it gives 11 days and 6 hours, as expected.
That is 11 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "11 days and 6 hours", "printed": "11 days and 6 hours", "notation": null} |
nlprog_det-setting-0076611 | <|start|><|system|>
You may call the tools below.
{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
How many meters a... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 191 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0076612 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Walls total 413 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
import math
area = 413
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
The program outputs: 2
2 cans are neede... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Walls total 413 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": " import math\n area = 413\n coverage = 400\n cans = m... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0076614 | <|start|><|user|>
What commission does Tariq make on $45,068 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 45068
rate = 5 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
The script prints: 2253.40
The commission is $2,253.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Tariq make on $45,068 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 45068\nrate = 5 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nThe script prints: 2253.40\n\nThe commission is $2,253.40."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2253.40", "printed": "2253.40", "notation": null} |
nlprog_det-setting-0076615 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?
Let the code do the arithmetic:
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
Run it and it prints: 480.00
Th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0076616 | <|start|><|user|>
Rent of $2,200 goes up 8%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 2376.0
print(f"{new_rent:.2f}")
```
Running it prints: 2376.00
The new rent is $2,376.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $2,200 goes up 8%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 2376.0\nprint(f\"{new_rent:.2f}\")\n```\nRunning it prints: 2376.00\n\nThe new rent is $2,... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2376.00", "printed": "2376.00", "notation": null} |
nlprog_det-setting-0076617 | An office budget of $25,000 has expenses of $2,982, $708, $864. How much of the budget is left?
Here is the program.
```python
budget = 25000
expenses = [2982, 708, 864]
left = budget - sum(expenses) # 20446
print(left)
```
stdout:
20446
$20,446 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "20446", "printed": "20446", "notation": null} |
nlprog_det-setting-0076620 | <|start|><|user|>
A recipe for 4 people uses 450 grams of lentils. How many grams are needed for 10 people?<|eot|>
<|assistant|>
1125 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 450 grams of lentils. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "1125 grams of lentils are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0076621 | A claim accrued on February 21, 2021. The limitations period is 4 years. On what date does it expire?
We write it as a program:
```python
from datetime import date
accrued = date(2021, 2, 21) # datetime.date(2021, 2, 21)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 2, 21)
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2025-02-21", "printed": "2025-02-21", "notation": null} |
nlprog_det-setting-0076622 | <|start|><|user|>
The rules require 3/5 of 48 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 48
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
The printout reads 29.
29 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 48 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 48\nquorum = math.ceil(members * 3 / 5)\nprint(quorum)\n```\nThe printout reads 29.\n\n29 members are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0076623 | <|start|><|user|>
Fines run at $250 per day up to a maximum of $5,000. How much after 32 days?<|eot|>
<|assistant|>
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $5,000. How much after 32 days?"
},
{
"role": "assistant",
"content": "The fine is $5,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0076624 | <|start|><|user|>
A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 36
total = monthly_rent * months # 117000
print(total)
```
The run gives 117000, as expected.
In total, $117,000 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 36\ntotal = monthly_rent * months # 117000\nprint(total)\n```\nThe run gives 117000, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0076625 | <|start|><|user|>
To read 98 pages in 7 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 98
days = 7
per_day = pages // days # 14
print(per_day)
Program output: 14
14 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 98 pages in 7 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 98\n days = 7\n per_day = pages // days # 14\n print(per_day)\nProgram output: 14\n\n14 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0076627 | An invoice lists 36 rulers at $24 each, plus 6% sales tax. What is the invoice total?
Python:
```python
quantity = 36
unit_price = 24
subtotal = quantity * unit_price
total = subtotal * (1 + 6 / 100)
print(f"{total:.2f}")
```
On running, it outputs 915.84.
The invoice total is $915.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "915.84", "printed": "915.84", "notation": null} |
nlprog_det-setting-0076628 | <|start|><|user|>
Someone works 32 hours at $16.51 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 16.51
hours = 32
earnings = rate * hours # 528.32
print(f"{earnings:.2f}")
```
Output: 528.32
That earns $528.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 32 hours at $16.51 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.51\nhours = 32\nearnings = rate * hours # 528.32\nprint(f\"{earnings:.2f}\")\n```\nOutput: 528.32\n\nThat earns $528.32."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "528.32", "printed": "528.32", "notation": null} |
nlprog_det-setting-0076629 | <|start|><|user|>
Scale 450 g of pasta from 8 servings to 12 servings.<|eot|>
<|assistant|>
```python
grams = 450
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 675
print(scaled)
```
Result = 675
675 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of pasta from 8 servings to 12 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 675\nprint(scaled)\n```\nResult = 675\n\n675 grams of pasta are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0076631 | <|start|><|user|>
The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [85]
refund = deposit - sum(deductions) # 915
print(refund)
```
Result = 915
The refund is $915.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [85]\nrefund = deposit - sum(deductions) # 915\nprint(refund)\n```\nResult = 915\n\nThe refund is $915."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "915", "printed": "915", "notation": null} |
nlprog_det-setting-0076632 | Fiona's scores were 54, 61, 51 and 94. What is the average score?
We write it as a program:
```python
scores = [54, 61, 51, 94]
average = sum(scores) // len(scores) # 65
print(average)
```
Run result — 65
The average score is 65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0076633 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
10.5 hours of work at $300 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 10.5
rate = 300
bill = hours * rate # 3150.0
print(f"{bill:.2f}")
```
The program prints 3150.00, as expected.
That comes to $3,150.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "10.5 hours of work at $300 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 10.5\nrate = 300\nbill = hours * rate # 3150.0\nprint(f\"{bill:.2f}\")\n```\nThe prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0076634 | How many of 259 votes make 60% (round up)?
Computing it:
```python
import math
voters = 259
needed = math.ceil(voters * 60 / 100) # 156
print(needed)
```
Run output — 156
156 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0076636 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
At a 9% tax rate, what is the tax on $232.87?<|eot|>
<|assistant|>
```python
price = 232.87
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 20.9583
print(f"{tax:.2f}")
```
Python prints 20.96, as expected.
$20.96 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $232.87?"
},
{
"role": "assistant",
"content": "```python\nprice = 232.87\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 20.9583\nprint(f\"{tax... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "20.96", "printed": "20.96", "notation": null} |
nlprog_det-setting-0076637 | The paralegal logged 7 hours at a rate of $300. How much is billed?
The program:
```python
hours = 7
rate = 300
bill = hours * rate
print(f"{bill:.2f}")
```
It prints 2100.00.
The bill is $2,100.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2100.00", "printed": "2100.00", "notation": null} |
nlprog_det-setting-0076638 | At $18.43 an hour, what does 40 hours of work pay?
We can compute it in Python.
```python
rate = 18.43
hours = 40
earnings = rate * hours # 737.2
print(f"{earnings:.2f}")
```
Run result: 737.20
That earns $737.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "737.20", "printed": "737.20", "notation": null} |
nlprog_det-setting-0076639 | <|start|><|user|>
How many whole days and leftover hours are in 168 hours?<|eot|>
<|assistant|>
```python
hours = 168
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out — 7 days and 0 hours
That is 7 days and 0 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 168 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 168\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut — 7 days and 0 hours\n\nThat is 7 days and 0 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "7 days and 0 hours", "printed": "7 days and 0 hours", "notation": null} |
nlprog_det-setting-0076640 | <|start|><|user|>
An invoice lists 13 binders at $24 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 13
unit_price = 24
subtotal = quantity * unit_price # 312
total = subtotal * (1 + 8 / 100) # 336.96000000000004
print(f"{total:.2f}")
Interpreter output: 336.96
... | chat | [
{
"role": "user",
"content": "An invoice lists 13 binders at $24 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 13\n unit_price = 24\n subtotal = quantity * unit_price # 312\n total = subtotal * (1 + 8 / 100) # 336.96000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "336.96", "printed": "336.96", "notation": null} |
nlprog_det-setting-0076641 | <|start|><|user|>
The landlord deducts $60, $150 and $45 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [60, 150, 45]
refund = deposit - sum(deductions)
print(refund)
```
Executed, it shows: 545
$545 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $60, $150 and $45 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [60, 150, 45]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nExecuted, it shows: 545\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "545", "printed": "545", "notation": null} |
nlprog_det-setting-0076642 | After an initial $0, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?
The Python version:
```python
grant = 30000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 7500.0
print(f"{each:.2f}")
```
Run it and it prints: 7500.00
$7,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0076643 | The statute was enacted in 2003. How many years had passed by 2025?
We write it as a program:
start_year = 2003
end_year = 2025
print(end_year - start_year)
What it prints: 22
22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0076644 | A trial runs from February 12, 2020 to March 2, 2020, counting both days. How many calendar days is that?
Set it up in Python:
```python
from datetime import date
first = date(2020, 2, 12) # datetime.date(2020, 2, 12)
last = date(2020, 3, 2) # datetime.date(2020, 3, 2)
days = (last - first).days + 1 # 20
print(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0076645 | After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?
Python code:
```python
grant = 60000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 5000.0
print(f"{each:.2f}")
```
Python prints: 5000.00
$5,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0076646 | A count moves from 200 to 160. By what percent did it change (use a minus sign for a drop)?
The change is -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0076647 | After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?
Here's the code.
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Run result = 3000.00
$3,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0076648 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Attendance was 25 out of 25. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 25
total = 25
percent = present / total * 100 # 100.0
print(round(percent, 1))
```
Console output: 100.0
100.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Attendance was 25 out of 25. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 25\ntotal = 25\npercent = present / total * 100 # 100.0\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0076649 | <|start|><|user|>
A $180 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
Each person pays $36.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $180 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "Each person pays $36.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0076650 | <|start|><|user|>
Split $2,610 between Idris and Lucia in the ratio 2 to 3. What is Idris's share?<|eot|>
<|assistant|>
```python
total = 2610
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1044
print(share_a)
```
Execution result: 1044
Idris's share is $1,044.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,610 between Idris and Lucia in the ratio 2 to 3. What is Idris's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2610\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 1044\nprint(share_a)\n```\nExecution result... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1044", "printed": "1044", "notation": null} |
nlprog_det-setting-0076651 | <|start|><|user|>
Split $1,615 between Lena and Marek in the ratio 2 to 3. What is Lena's share?<|eot|>
<|assistant|>
```python
total = 1615
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
When run, it prints 646, as expected.
Lena's share is $646.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,615 between Lena and Marek in the ratio 2 to 3. What is Lena's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1615\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nWhen run, it prints 646, a... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "646", "printed": "646", "notation": null} |
nlprog_det-setting-0076652 | <|start|><|user|>
Convert 3 h 19 min (the length of a training session) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 19
total_minutes = hours * 60 + minutes # 199
print(total_minutes)
```
The printout reads 199.
That is 199 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 19 min (the length of a training session) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 19\ntotal_minutes = hours * 60 + minutes # 199\nprint(total_minutes)\n```\nThe printout reads 199.\n\nThat is 199 minutes."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "199", "printed": "199", "notation": null} |
nlprog_det-setting-0076653 | Counting only Monday through Friday, how many business days are there after May 13, 2024 through June 8, 2024?
Computation in Python:
from datetime import date, timedelta
start = date(2024, 5, 13)
end = date(2024, 6, 8)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0076654 | Olga has 13 documents to file, and each filing costs $25. How much are the filing fees in total?
$325 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "325", "printed": "325", "notation": null} |
nlprog_det-setting-0076655 | Attendance was 12 out of 25. Express it as a percent.
Attendance was 48.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "48.0", "printed": "48.0", "notation": null} |
nlprog_det-setting-0076656 | <|start|><|system|>
You may call the tools below.
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
At $20.43 an hour, wh... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "776.34", "printed": "776.34", "notation": null} |
nlprog_det-setting-0076657 | How many days are there from March 5, 2018 to August 12, 2018?
Let's compute it with Python.
```python
from datetime import date
first = date(2018, 3, 5) # datetime.date(2018, 3, 5)
second = date(2018, 8, 12) # datetime.date(2018, 8, 12)
print((second - first).days)
```
It outputs 160.
There are 160 days between th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0076658 | An attorney bills 1.5 hours at $410 per hour. What is the bill?
One way, in code:
```python
hours = 1.5
rate = 410
bill = hours * rate
print(f"{bill:.2f}")
```
Result — 615.00
The bill is $615.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "615.00", "printed": "615.00", "notation": null} |
nlprog_det-setting-0076659 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 20
variable = 15
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
```
Running this gives 1800.
1800 units... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 20\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0076660 | <|start|><|system|>
Functions:
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A quorum is 1/3 of the 34 members, rounde... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0076661 | Under a 25% contingency agreement, what fee is owed on a $12,000 award?
Computation in Python:
```python
recovery = 12000
rate = 25 / 100 # 0.25
fee = recovery * rate # 3000.0
print(f"{fee:.2f}")
```
Printed result — 3000.00
The lawyer's fee comes to $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0076662 | <|start|><|user|>
What is a 15% tip on a $232.90 bill?<|eot|>
<|assistant|>
Leave $34.94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $232.90 bill?"
},
{
"role": "assistant",
"content": "Leave $34.94."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "34.94", "printed": "34.94", "notation": null} |
nlprog_det-setting-0076663 | Straight-line depreciation: cost $24,000, salvage $3,000, 10 years. How much per year?
The computation:
```python
cost = 24000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 2100.0
print(f"{per_year:.2f}")
```
(Out: 2100.00)
$2,100.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2100.00", "printed": "2100.00", "notation": null} |
nlprog_det-setting-0076664 | Split $2,463 between Emeka and Nadia in the ratio 1 to 2. What is Emeka's share?
Let the code do the arithmetic:
```python
total = 2463
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 821
print(share_a)
```
stdout = 821
Emeka's share is $821. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "821", "printed": "821", "notation": null} |
nlprog_det-setting-0076665 | Counting the first and last day, how many days are there from February 11, 2020 through February 25, 2020?
We write it as a program:
```python
from datetime import date
first = date(2020, 2, 11) # datetime.date(2020, 2, 11)
last = date(2020, 2, 25) # datetime.date(2020, 2, 25)
days = (last - first).days + 1 # 15
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0076666 | <|start|><|user|>
3 boxes hold 12 markers each. After 1 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 3
per_box = 12
given_away = 1
left = boxes * per_box - given_away
print(left)
```
When run, it prints 35, as expected.
35 markers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 12 markers each. After 1 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 3\nper_box = 12\ngiven_away = 1\nleft = boxes * per_box - given_away\nprint(left)\n```\nWhen run, it prints 35, as expected.\n\n35 mark... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0076667 | Flooring at $12/sq ft for a 16 ft × 15 ft room costs how much?
The flooring costs $2,880. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2880", "printed": "2880", "notation": null} |
nlprog_det-setting-0076668 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fe... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "6200", "printed": "6200", "notation": null} |
nlprog_det-setting-0076669 | <|start|><|user|>
Of a $4,000 budget, $3,800 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 3800
percent = spent / budget * 100
print(round(percent, 1))
```
The script prints 95.0.
That is 95.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $4,000 budget, $3,800 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 3800\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nThe script prints 95.0.\n\nThat is 95.0% of the budget."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0076670 | <|start|><|user|>
The landlord deducts $200 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [200]
refund = deposit - sum(deductions) # 600
print(refund)
```
Shell output: 600
$600 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $200 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [200]\nrefund = deposit - sum(deductions) # 600\nprint(refund)\n```\nShell output: 600\n\n$600 is returned."... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0076671 | What is a 20% tip on a $104.78 bill?
As Python:
```python
bill = 104.78
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 20.956000000000003
print(f"{tip:.2f}")
```
Python prints 20.96.
Leave $20.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "20.96", "printed": "20.96", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.