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-0047011 | <|start|><|user|>
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?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
Running it prints 2400.... | chat | [
{
"role": "user",
"content": "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?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0047012 | <|start|><|user|>
An office budget of $5,000 has expenses of $3,548, $3,362, $731. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [3548, 3362, 731]
left = budget - sum(expenses) # -2641
print(left)
```
# console output: -2641
The remaining budget is -$2,641.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $3,548, $3,362, $731. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [3548, 3362, 731]\nleft = budget - sum(expenses) # -2641\nprint(left)\n```\n# console output... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "-2641", "printed": "-2641", "notation": null} |
nlprog_det-setting-0047013 | What day of the week is October 1, 2004?
Program:
```python
from datetime import date
hearing = date(2004, 10, 1) # datetime.date(2004, 10, 1)
print(hearing.strftime("%A"))
```
Running this gives: Friday
October 1, 2004 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0047014 | A meal costs $106.44. How much is a 20% tip?
Leave $21.29. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "21.29", "printed": "21.29", "notation": null} |
nlprog_det-setting-0047015 | A $120 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
Python version:
```python
bill = 120
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 23.0
print(f"{each:.2f}")
```
It prints: 23.00
Each person pays $23.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0047016 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Bilal earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 41
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 24.0
pay = regular + o... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Bilal earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 41\nregu... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "664.00", "printed": "664.00", "notation": null} |
nlprog_det-setting-0047017 | Pack A has 10 items for $12.34. Pack B has 24 items for $18.59. Which has the lower price per item?
In Python:
```python
pack_a = 12.34 / 10 # 1.234
pack_b = 18.59 / 24 # 0.7745833333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Executed, it shows: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047018 | An invoice lists 20 toner kits at $24 each, plus 10% sales tax. What is the invoice total?
Set it up in Python:
```python
quantity = 20
unit_price = 24
subtotal = quantity * unit_price # 480
total = subtotal * (1 + 10 / 100) # 528.0
print(f"{total:.2f}")
```
When run, it prints 528.00, as expected.
The invoice tota... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "528.00", "printed": "528.00", "notation": null} |
nlprog_det-setting-0047019 | <|start|><|user|>
Convert 5 h 10 min (the length of a hearing) to minutes.<|eot|>
<|assistant|>
The hearing lasted 310 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 10 min (the length of a hearing) to minutes."
},
{
"role": "assistant",
"content": "The hearing lasted 310 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "310", "printed": "310", "notation": null} |
nlprog_det-setting-0047020 | <|start|><|user|>
Someone works 12 hours at $24.51 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 24.51
hours = 12
earnings = rate * hours # 294.12
print(f"{earnings:.2f}")
```
The interpreter prints: 294.12
The pay is $294.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 12 hours at $24.51 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.51\nhours = 12\nearnings = rate * hours # 294.12\nprint(f\"{earnings:.2f}\")\n```\nThe interpreter prints: 294.12\n\nThe pay is $294.12."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "294.12", "printed": "294.12", "notation": null} |
nlprog_det-setting-0047021 | At $16.22 an hour, what does 36 hours of work pay?
Code:
```python
rate = 16.22
hours = 36
earnings = rate * hours # 583.92
print(f"{earnings:.2f}")
```
The run gives 583.92, as expected.
That earns $583.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "583.92", "printed": "583.92", "notation": null} |
nlprog_det-setting-0047022 | <|start|><|user|>
6 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 6
share = settlement // parties # 3000
print(share)
```
This prints 3000, as expected.
Each party receives $3,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 6\nshare = settlement // parties # 3000\nprint(share)\n```\nThis prints 3000, as expected.\n\nEach party receives $3,... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0047023 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A settlement of $524 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
Each party receives $131.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A settlement of $524 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "Each party receives $131."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0047024 | What is a 18% tip on a $36.39 bill?
As Python:
```python
bill = 36.39
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 6.5502
print(f"{tip:.2f}")
```
It prints 6.55, as expected.
The tip is $6.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6.55", "printed": "6.55", "notation": null} |
nlprog_det-setting-0047025 | How many weekdays (Monday to Friday) fall after January 4, 2019 up to and including February 6, 2019?
In Python:
```python
from datetime import date, timedelta
start = date(2019, 1, 4)
end = date(2019, 2, 6)
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": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0047026 | <|start|><|user|>
How many days are there from December 27, 2023 to December 16, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 12, 27) # datetime.date(2023, 12, 27)
second = date(2024, 12, 16) # datetime.date(2024, 12, 16)
print((second - first).days)
```
Output:
355
There are 355... | chat | [
{
"role": "user",
"content": "How many days are there from December 27, 2023 to December 16, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 12, 27) # datetime.date(2023, 12, 27)\nsecond = date(2024, 12, 16) # datetime.date(2024, 12, 16)\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "355", "printed": "355", "notation": null} |
nlprog_det-setting-0047027 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A car travels 412 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
It averages 206 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A car travels 412 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "It averages 206 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "206", "printed": "206", "notation": null} |
nlprog_det-setting-0047028 | <|start|><|user|>
A recipe for 2 people uses 450 grams of flour. How many grams are needed for 8 people?<|eot|>
<|assistant|>
grams = 450
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 1800
print(scaled)
(Run result: 1800)
1800 grams of flour are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 450 grams of flour. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": " grams = 450\n serves = 2\n needed_for = 8\n scaled = grams * needed_for // serves # 1800\n print(scaled)\n(Run result: 1800... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0047029 | One can of paint covers 300 square feet. How many cans are needed for 1113 square feet of wall?
Code:
```python
import math
area = 1113
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
(Console output: 4)
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0047030 | How many meters are in 67 kilometers?
A few lines of Python do it:
```python
km = 67
meters = km * 1000 # 67000
print(round(meters))
```
Execution result: 67000
That is 67,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "67000", "printed": "67000", "notation": null} |
nlprog_det-setting-0047031 | A 200-mile drive at a steady 50 mph takes how many minutes?
Computation in Python:
```python
distance = 200
speed = 50
minutes = distance / speed * 60
print(round(minutes))
```
Printed result — 240
The trip takes 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0047032 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A hall has 5 rows of 17 seats, and 17 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 5
per_row = 17
empty = 17
seated = rows * per_row - empty # 68
print(seated)
```
It prints 68, as expected.
68 seats are taken.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A hall has 5 rows of 17 seats, and 17 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 5\nper_row = 17\nempty = 17\nseated = rows * per_row ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0047033 | Walls total 574 sq ft and each can covers 400 sq ft. How many cans should be bought?
In Python:
import math
area = 574
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
Run result — 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0047034 | With 20% off, what does a $75 kettle cost?
Programmatically:
```python
price = 75
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 60.0
print(f"{sale_price:.2f}")
```
Shell output — 60.00
It costs $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0047036 | A printer costs $300. It is 20% off. What is the sale price?
Python code:
price = 300
discount = 20 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
The program prints 240.00, as expected.
The sale price is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0047037 | How many minutes pass from 9:26 AM to 11:33 AM on the same day?
127 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0047038 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $2,500. What is owed after 54 days?<|eot|>
<|assistant|>
The fine is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 54 days?"
},
{
"role": "assistant",
"content": "The fine is $2,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0047039 | A training session lasted 5 hours and 28 minutes. How many minutes is that?
Python version:
```python
hours = 5
minutes = 28
total_minutes = hours * 60 + minutes # 328
print(total_minutes)
```
# console output: 328
The training session lasted 328 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "328", "printed": "328", "notation": null} |
nlprog_det-setting-0047040 | <|start|><|system|>
Available functions (JSON Schema):
{"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": "calculator", "descriptio... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "103", "printed": "103", "notation": null} |
nlprog_det-setting-0047041 | How many meters are in 41.9 kilometers?
Here is the program.
```python
km = 41.9
meters = km * 1000 # 41900.0
print(round(meters))
```
The script prints: 41900
That is 41,900 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "41900", "printed": "41900", "notation": null} |
nlprog_det-setting-0047042 | <|start|><|user|>
Someone works 16 hours at $32.00 per hour. What are the earnings?<|eot|>
<|assistant|>
That earns $512.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 16 hours at $32.00 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "That earns $512.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "512.00", "printed": "512.00", "notation": null} |
nlprog_det-setting-0047043 | <|start|><|user|>
Split $5,056 between Yoko and Nikhil in the ratio 3 to 5. What is Yoko's share?<|eot|>
<|assistant|>
```python
total = 5056
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1896
print(share_a)
```
Out — 1896
Yoko's share is $1,896.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,056 between Yoko and Nikhil in the ratio 3 to 5. What is Yoko's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5056\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1896\nprint(share_a)\n```\nOut — 1896\n\nYok... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1896", "printed": "1896", "notation": null} |
nlprog_det-setting-0047044 | A 90-mile drive at a steady 45 mph takes how many minutes?
Here's the code.
```python
distance = 90
speed = 45
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
# program output: 120
120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0047045 | <|start|><|user|>
Which is cheaper per unit: 6 for $14.41 (A) or 30 for $7.53 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.41 / 6 # 2.401666666666667
pack_b = 7.53 / 30 # 0.251
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# result: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $14.41 (A) or 30 for $7.53 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.41 / 6 # 2.401666666666667\npack_b = 7.53 / 30 # 0.251\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\n# resu... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047046 | <|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": "lookup_sta... | 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 | [] | [] | 379 | {"gold": "384", "printed": "384", "notation": null} |
nlprog_det-setting-0047047 | Starting with 1680 binders and using 33 per day, how many remain after 9 days?
```python
stock = 1680
per_day = 33
days = 9
left = stock - per_day * days # 1383
print(left)
```
(Output: 1383)
1383 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1383", "printed": "1383", "notation": null} |
nlprog_det-setting-0047048 | <|start|><|user|>
A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 22 thousand gallons?<|eot|>
<|assistant|>
base = 20
rate = 4.75
used = 22
free = 0
bill = base + rate * max(0, used - free) # 124.5
print(f"{bill:.2f}")
What it prints — 124.5... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 22 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 4.75\n used = 22\n free = 0\n bill = base + rate * max(0, used - free... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "124.50", "printed": "124.50", "notation": null} |
nlprog_det-setting-0047049 | A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term?
A short script:
monthly_rent = 2100
months = 36
total = monthly_rent * months # 75600
print(total)
This prints 75600, as expected.
In total, $75,600 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "75600", "printed": "75600", "notation": null} |
nlprog_det-setting-0047050 | <|start|><|user|>
A lawyer's fee is 35% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 35 / 100 # 0.35
fee = recovery * rate # 14000.0
print(f"{fee:.2f}")
```
Result = 14000.00
The lawyer's fee comes to $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 35% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 14000.0\nprint(f\"{fee:.2f}\")\n```\nResult = 14000.00\n\nThe lawyer's fee comes ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0047051 | Papers were served by mail on January 11, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
We write it as a program:
```python
from datetime import date, timedelta
served = date(2022, 1, 11) # datetime.date(2022, 1, 11)
response_days = 14
mail_days = 3
due = served +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2022-01-28", "printed": "2022-01-28", "notation": null} |
nlprog_det-setting-0047052 | <|start|><|user|>
Goran lends $1,000 at 2% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 5
interest = principal * rate * years # 100.0
print(f"{interest:.2f}")
```
The program outputs: 100.00
It earns $100.00.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Goran lends $1,000 at 2% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 5\ninterest = principal * rate * years # 100.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0047053 | How many of 59 votes make 60% (round up)?
Here's the code.
```python
import math
voters = 59
needed = math.ceil(voters * 60 / 100) # 36
print(needed)
```
That prints: 36
At least 36 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0047054 | If a 105-minute class begins at 11:45 AM, what time does it finish?
Program:
```python
start = 11 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution result — 1:30 PM
The class finishes at 1:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1:30 PM", "printed": "1:30 PM", "notation": null} |
nlprog_det-setting-0047055 | With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.
Here is the program.
```python
revenue = 15000
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Printed = 16.7
The margin is 16.7%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0047056 | What average speed covers 552 miles in 0.5 hours?
Here is a short program for it.
distance = 552
hours = 0.5
speed = distance / hours # 1104.0
print(round(speed))
stdout:
1104
It averages 1104 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "1104", "printed": "1104", "notation": null} |
nlprog_det-setting-0047057 | <|start|><|system|>
You can call tools. Available tools:
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
90 copies of a 60... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0047058 | <|start|><|user|>
A storeroom has 859 keyboards. The office uses 32 a day. How many are left after 8 days?<|eot|>
<|assistant|>
```python
stock = 859
per_day = 32
days = 8
left = stock - per_day * days # 603
print(left)
```
Printed result — 603
603 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 859 keyboards. The office uses 32 a day. How many are left after 8 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 859\nper_day = 32\ndays = 8\nleft = stock - per_day * days # 603\nprint(left)\n```\nPrinted result — 603\n\n603 remain... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "603", "printed": "603", "notation": null} |
nlprog_det-setting-0047059 | A $1,000 security deposit has deductions of $150, $85 and $85. How much is refunded?
Python:
```python
deposit = 1000
deductions = [150, 85, 85]
refund = deposit - sum(deductions)
print(refund)
```
Execution prints 680.
The refund is $680. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "680", "printed": "680", "notation": null} |
nlprog_det-setting-0047060 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0047061 | <|start|><|user|>
What is the total rent on a 6-month lease at $1,200 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1200
months = 6
total = monthly_rent * months # 7200
print(total)
```
Run it and it prints 7200.
In total, $7,200 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $1,200 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1200\nmonths = 6\ntotal = monthly_rent * months # 7200\nprint(total)\n```\nRun it and it prints 7200.\n\nIn total, $7,200 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0047062 | <|start|><|user|>
A 3% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1133.0
print(f"{new_rent:.2f}")
```
stdout: 1133.00
It rises to $1,133.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 3% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1133.0\nprint(f\"{new_rent:.2f}\")\n```\nstdout: 1133.00\n\nIt ris... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1133.00", "printed": "1133.00", "notation": null} |
nlprog_det-setting-0047064 | 32 markers cost $8 apiece. With 10% tax added, what is the total?
```python
quantity = 32
unit_price = 8
subtotal = quantity * unit_price # 256
total = subtotal * (1 + 10 / 100) # 281.6
print(f"{total:.2f}")
```
This prints: 281.60
The invoice total is $281.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "281.60", "printed": "281.60", "notation": null} |
nlprog_det-setting-0047065 | What is the total rent on a 18-month lease at $975 a month?
```python
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
```
Printed — 17550
In total, $17,550 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0047066 | Shipping costs $8 plus $2.00 per pound. What does a 36-pound parcel cost to ship?
Here's the code.
```python
base = 8
per_pound = 2.0
weight = 36
cost = base + per_pound * weight # 80.0
print(f"{cost:.2f}")
```
On running, it outputs 80.00.
The charge is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0047067 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Attendance was 102 out of 200. Express it as a percent.<|eot|>
<|assistant|>
present = 102
total = 200
percent = present / total * 100 # 51.0
print(round(percent, 1))
The printout reads 51.0.
51.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Attendance was 102 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 102\n total = 200\n percent = present / total * 100 # 51.0\n print(ro... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "51.0", "printed": "51.0", "notation": null} |
nlprog_det-setting-0047068 | A measure needs at least 60% of 196 votes. How many votes is that, rounded up?
In code:
```python
import math
voters = 196
needed = math.ceil(voters * 60 / 100) # 118
print(needed)
```
Running this gives: 118
118 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "118", "printed": "118", "notation": null} |
nlprog_det-setting-0047070 | After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
In code:
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 4 # 13500.0
print(f"{per_client:.2f}")
```
Interpreter output: 1350... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0047071 | <|start|><|user|>
Express 305 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 305
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executed, it shows 12 days and 17 hours.
That is 12 days and 17 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 305 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 305\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecuted, it shows 12 days and 17 hours.\n\nThat is 12 days and 17 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "12 days and 17 hours", "printed": "12 days and 17 hours", "notation": null} |
nlprog_det-setting-0047072 | How much sales tax is charged on a $517.06 purchase at 9%?
Translated to Python:
```python
price = 517.06
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 46.535399999999996
print(f"{tax:.2f}")
```
Output:
46.54
$46.54 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "46.54", "printed": "46.54", "notation": null} |
nlprog_det-setting-0047073 | The rules require 3/5 of 46 members (round up) to be present. How many is that?
That is 28 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0047074 | A storeroom has 1507 flash drives. The office uses 28 a day. How many are left after 6 days?
The computation:
```python
stock = 1507
per_day = 28
days = 6
left = stock - per_day * days # 1339
print(left)
```
Out:
1339
1339 flash drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1339", "printed": "1339", "notation": null} |
nlprog_det-setting-0047075 | At 65 miles per hour, how many minutes does a 260-mile trip take?
A Python solution:
```python
distance = 260
speed = 65
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
The script prints 240, as expected.
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0047076 | 12 hours of work at $410 an hour: what is the total charge?
In code:
```python
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
```
Execution result: 4920.00
The bill is $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0047077 | <|start|><|user|>
A car travels 308 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
distance = 308
hours = 2
speed = distance / hours # 154.0
print(round(speed))
(stdout: 154)
The average speed is 154 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 308 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": " distance = 308\n hours = 2\n speed = distance / hours # 154.0\n print(round(speed))\n(stdout: 154)\n\nThe average speed is 154 mph."... | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0047078 | The landlord deducts $45, $85 and $45 from a $1,000 deposit. What is returned to the tenant?
```python
deposit = 1000
deductions = [45, 85, 45]
refund = deposit - sum(deductions)
print(refund)
```
Run it and it prints: 825
The refund is $825. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "825", "printed": "825", "notation": null} |
nlprog_det-setting-0047079 | A claim accrued on February 28, 2023. The limitations period is 4 years. On what date does it expire?
The period expires on February 28, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2027-02-28", "printed": "2027-02-28", "notation": null} |
nlprog_det-setting-0047080 | <|start|><|user|>
A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 3.5
used = 3
free = 0
bill = base + rate * max(0, used - free) # 25.5
print(f"{bill:.2f}")
```
Result — 25.50
$25.50 is owed.<|eot... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 3.5\nused = 3\nfree = 0\nbill = base + rate * max(0, used - free) # 25.5\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "25.50", "printed": "25.50", "notation": null} |
nlprog_det-setting-0047081 | <|start|><|user|>
A 3% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 3 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
When run, it prints: 2266.00
It rises to $2,266.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 3% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 3 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nWhen run, it prints: 2266.00\n\nIt rises to... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0047082 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Starting from $20,000, the team spends $3,997, $956, $1,598, $1,177. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3997, 956, 1598, 1177]
left = budget - sum(expenses) # 12272
print(left)
```
Executing it gives: 12272
$12,272 is l... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Starting from $20,000, the team spends $3,997, $956, $1,598, $1,177. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3997, 956, 1598, 1177]\nleft = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "12272", "printed": "12272", "notation": null} |
nlprog_det-setting-0047083 | <|start|><|user|>
2 claimants share a $15,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 2
share = settlement // parties # 7500
print(share)
```
That prints 7500.
Each share is $7,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 claimants share a $15,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 2\nshare = settlement // parties # 7500\nprint(share)\n```\nThat prints 7500.\n\nEach share is $7,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0047084 | Olga's scores were 57, 84, 99 and 96. What is the average score?
Python, step by step:
scores = [57, 84, 99, 96]
average = sum(scores) // len(scores) # 84
print(average)
What it prints: 84
The average score is 84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0047085 | <|start|><|user|>
Find the mean of these test scores: 91, 53, 70, 83, 68, 91 and 69.<|eot|>
<|assistant|>
```python
scores = [91, 53, 70, 83, 68, 91, 69]
average = sum(scores) // len(scores)
print(average)
```
# console output: 75
The mean is 75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 91, 53, 70, 83, 68, 91 and 69."
},
{
"role": "assistant",
"content": "```python\nscores = [91, 53, 70, 83, 68, 91, 69]\naverage = sum(scores) // len(scores)\nprint(average)\n```\n# console output: 75\n\nThe mean is 75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0047086 | <|start|><|user|>
How many whole days and leftover hours are in 357 hours?<|eot|>
<|assistant|>
```python
hours = 357
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Running it prints 14 days and 21 hours, as expected.
357 hours is 14 days and 21 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 357 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 357\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRunning it prints 14 days and 21 hours, as expected.\n\n357 hours i... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "14 days and 21 hours", "printed": "14 days and 21 hours", "notation": null} |
nlprog_det-setting-0047087 | <|start|><|user|>
A 6 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 6
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 90
print(tiles)
```
The script prints: 90
It takes 90 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 6\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 90\nprint(tiles)\n```\nThe script p... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0047088 | <|start|><|user|>
The rules require 2/3 of 32 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
22 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 32 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "22 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0047089 | <|start|><|user|>
On which weekday does January 16, 1990 fall?<|eot|>
<|assistant|>
from datetime import date
hearing = date(1990, 1, 16) # datetime.date(1990, 1, 16)
print(hearing.strftime("%A"))
The run gives: Tuesday
January 16, 1990 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does January 16, 1990 fall?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(1990, 1, 16) # datetime.date(1990, 1, 16)\n print(hearing.strftime(\"%A\"))\nThe run gives: Tuesday\n\nJanuary 16, 1990 is a Tue... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0047090 | A board has 52 members. A majority is more than half. How many votes make a majority?
```python
members = 52
majority = members // 2 + 1 # 27
print(majority)
```
On running, it outputs 27.
That is 27 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0047091 | A car travels 216 miles in 2 hours. What is its average speed in miles per hour?
```python
distance = 216
hours = 2
speed = distance / hours
print(round(speed))
```
That prints: 108
The average speed is 108 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0047092 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons?
A few lines of Python do it:
```python
base = 15
rate = 4.75
used = 3
free = 2
bill = base + rate * max(0, used - free) # 19.75
print(f"{bill:.2f}")
```
(Printed result: 19.75)
$19.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "19.75", "printed": "19.75", "notation": null} |
nlprog_det-setting-0047093 | <|start|><|system|>
Tool definitions:
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
3 clients win $72,000. Th... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0047094 | From 2024 to 2036, how many years is that?
In code:
```python
start_year = 2024
end_year = 2036
print(end_year - start_year)
```
The run gives: 12
12 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0047095 | Someone born December 22, 1984 turns how old by February 26, 2021? Give the age in whole years.
One way, in code:
```python
from datetime import date
born = date(1984, 12, 22) # datetime.date(1984, 12, 22)
on = date(2021, 2, 26) # datetime.date(2021, 2, 26)
age = on.year - born.year - ((on.month, on.day) < (born.mon... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0047096 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Rent of $1,800 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
It rises to $1,890.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Rent of $1,800 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "It rises to $1,890.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0047097 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
```python
rate = 18.5
hours = 42
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 55.5
pay = regular + overtime # 795.5
print(f"{pay:.2f}")
```
Printed: 795.50
The weekly pay is $795.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "795.50", "printed": "795.50", "notation": null} |
nlprog_det-setting-0047098 | <|start|><|user|>
An office budget of $5,000 has expenses of $3,142, $2,145, $3,533. How much of the budget is left?<|eot|>
<|assistant|>
The remaining budget is -$3,820.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $3,142, $2,145, $3,533. How much of the budget is left?"
},
{
"role": "assistant",
"content": "The remaining budget is -$3,820."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "-3820", "printed": "-3820", "notation": null} |
nlprog_det-setting-0047099 | How long, in days, is it from April 3, 2022 until March 21, 2023?
As Python:
```python
from datetime import date
first = date(2022, 4, 3) # datetime.date(2022, 4, 3)
second = date(2023, 3, 21) # datetime.date(2023, 3, 21)
print((second - first).days)
```
# stdout: 352
There are 352 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "352", "printed": "352", "notation": null} |
nlprog_det-setting-0047100 | Monthly: $19. Annual: $210. What is saved per year by paying annually?
Python version:
```python
monthly = 19
yearly = 210
savings = monthly * 12 - yearly # 18
print(savings)
```
Printed result: 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0047101 | How many units at $25 each (variable cost $20) cover $6,000 of fixed costs?
We can compute it in Python.
```python
import math
fixed = 6000
price = 25
variable = 20
units = math.ceil(fixed / (price - variable)) # 1200
print(units)
```
The run gives: 1200
Break-even is 1200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0047102 | How many whole days and leftover hours are in 345 hours?
Python, step by step:
hours = 345
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Execution prints 14 days and 9 hours, as expected.
345 hours is 14 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "14 days and 9 hours", "printed": "14 days and 9 hours", "notation": null} |
nlprog_det-setting-0047103 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Express 265 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 265
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
stdout = 11 days and 1 hours
265 hours is 11 days and 1 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Express 265 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 265\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "11 days and 1 hours", "printed": "11 days and 1 hours", "notation": null} |
nlprog_det-setting-0047104 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 10
rate = 250
left = retainer - hours * rate # 0
print(left)
```
Shell output — 0
The re... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 10\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0047105 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Prorate $1,200 of monthly rent for 21 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 812.9032258064516
print(f"{prorated:.2f}")
```
The interpreter pr... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Prorate $1,200 of monthly rent for 21 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 21\nprorated = rent * days_occup... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "812.90", "printed": "812.90", "notation": null} |
nlprog_det-setting-0047106 | A 110-mile drive at a steady 30 mph takes how many minutes?
Program:
```python
distance = 110
speed = 30
minutes = distance / speed * 60
print(round(minutes))
```
Output:
220
220 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0047107 | <|start|><|user|>
With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
The interpreter prints: 38... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 13000\ncosts = 8000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 38.46153846153... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0047108 | Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?
Let the code do the arithmetic:
```python
days = 3
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 587
print(total)
```
(stdout: 587)
That comes to $587. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "587", "printed": "587", "notation": null} |
nlprog_det-setting-0047109 | Fixed costs are $4,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?
Python:
```python
import math
fixed = 4000
price = 15
variable = 11
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
The script prints: 1000
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0047110 | 124 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
We can compute it in Python.
```python
total = 124
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Console output: 13 each, 7 left over)
13 each, 7 left ov... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "13 each, 7 left over", "printed": "13 each, 7 left over", "notation": null} |
nlprog_det-setting-0047111 | What is -5 degrees Celsius in Fahrenheit?
Let's compute it with Python.
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
The code prints: 23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0047112 | Of a $2,000 budget, $100 has been spent. What percent is that?
As Python:
```python
budget = 2000
spent = 100
percent = spent / budget * 100 # 5.0
print(round(percent, 1))
```
The code prints: 5.0
That is 5.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0047113 | Copies cost $15 plus $0.25 for each page beyond 10. How much for 102 pages?
Computing it:
```python
pages = 102
base = 15
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 38.0
print(f"{cost:.2f}")
```
stdout — 38.00
The total is $38.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "38.00", "printed": "38.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.