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-0062983 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
Out:
68
That is 68 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32 # 68.0\nprint(round(fahrenheit))\n```\nOut:\n68\n\nThat is 68 °F."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0062984 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"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"]}}
{"name":... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0062985 | Diego lends $20,000 at 6% simple interest per year for 6 years. How much interest is earned?
The interest is $7,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0062986 | <|start|><|user|>
A hearing is set for September 3, 2007. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2007, 9, 3) # datetime.date(2007, 9, 3)
print(hearing.strftime("%A"))
```
Output: Monday
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 3, 2007. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2007, 9, 3) # datetime.date(2007, 9, 3)\nprint(hearing.strftime(\"%A\"))\n```\nOutput: Monday\n\nIt is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0062987 | Count 21 days forward from August 22, 2021. What date is that? It ends on September 12, 2021. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "2021-09-12", "printed": "2021-09-12", "notation": null} |
nlprog_det-setting-0062988 | How many units at $30 each (variable cost $24) cover $6,000 of fixed costs? 1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0062989 | <|start|><|user|>
Meals are $64 per day and lodging $140 per night. What is the allowance for 9 days and 8 nights?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1696
print(total)
```
Run result: 1696
That comes to $1... | chat | [
{
"role": "user",
"content": "Meals are $64 per day and lodging $140 per night. What is the allowance for 9 days and 8 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 64\nlodging_rate = 140\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1696", "printed": "1696", "notation": null} |
nlprog_det-setting-0062990 | <|start|><|user|>
Buying 6 labels at $14 each, 6 paper reams at $9 each, 2 rulers at $11 each, 4 desk lamps at $7 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(6, 14), (6, 9), (2, 11), (4, 7)]
total = sum(q * p for q, p in items) # 188
paid = 200
change = paid - total ... | chat | [
{
"role": "user",
"content": "Buying 6 labels at $14 each, 6 paper reams at $9 each, 2 rulers at $11 each, 4 desk lamps at $7 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(6, 14), (6, 9), (2, 11), (4, 7)]\ntotal = sum(q * p for... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0062991 | Monthly: $25. Annual: $282. What is saved per year by paying annually?
Python:
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
# program output: 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062992 | One can of paint covers 250 square feet. How many cans are needed for 469 square feet of wall?
Python does the arithmetic:
```python
import math
area = 469
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
The printout reads 2.
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0062993 | A $210 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
The computation:
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 123.89999999999999
print(f"{each:.2f}")
```
The script prints: 123.90
Each person pays $123.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "123.90", "printed": "123.90", "notation": null} |
nlprog_det-setting-0062994 | <|start|><|user|>
Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 2000
years = 6
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
(Out: 1666.67)
$1,666.67 a year.... | chat | [
{
"role": "user",
"content": "Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 2000\nyears = 6\nper_year = (cost - salvage) / years\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1666.67", "printed": "1666.67", "notation": null} |
nlprog_det-setting-0062995 | 70 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
The program:
```python
total = 70
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The printout reads 11 each, 4 left over.
The answer: 11 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "11 each, 4 left over", "printed": "11 each, 4 left over", "notation": null} |
nlprog_det-setting-0062996 | <|start|><|user|>
How long, in days, is it from September 3, 2024 until April 11, 2025?<|eot|>
<|assistant|>
from datetime import date
first = date(2024, 9, 3) # datetime.date(2024, 9, 3)
second = date(2025, 4, 11) # datetime.date(2025, 4, 11)
print((second - first).days)
# result: 220
There are 220 ... | chat | [
{
"role": "user",
"content": "How long, in days, is it from September 3, 2024 until April 11, 2025?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2024, 9, 3) # datetime.date(2024, 9, 3)\n second = date(2025, 4, 11) # datetime.date(2025, 4, 11)\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0062997 | <|start|><|user|>
With 16 rows of 15 chairs and 4 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
236 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 16 rows of 15 chairs and 4 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "236 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "236", "printed": "236", "notation": null} |
nlprog_det-setting-0062998 | From a $7,500 retainer, 14 hours at $150/hour have been drawn. What remains?
```python
retainer = 7500
hours = 14
rate = 150
left = retainer - hours * rate # 5400
print(left)
```
It outputs: 5400
$5,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "5400", "printed": "5400", "notation": null} |
nlprog_det-setting-0062999 | A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?
The computation:
```python
retainer = 7500
hours = 11
rate = 250
left = retainer - hours * rate # 4750
print(left)
```
The interpreter prints 4750.
The remaining balance is $4,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0063000 | On which weekday does November 21, 2017 fall?
A Python solution:
```python
from datetime import date
hearing = date(2017, 11, 21) # datetime.date(2017, 11, 21)
print(hearing.strftime("%A"))
```
Executed, it shows Tuesday.
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0063001 | <|start|><|user|>
A customer buys 5 rulers at $3 each, 5 sticky pads at $12 each, 2 staplers at $20 each, 5 clipboards at $22 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
items = [(5, 3), (5, 12), (2, 20), (5, 22)]
total = sum(q * p for q, p in items) # 225
paid = 250
change = ... | chat | [
{
"role": "user",
"content": "A customer buys 5 rulers at $3 each, 5 sticky pads at $12 each, 2 staplers at $20 each, 5 clipboards at $22 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": " items = [(5, 3), (5, 12), (2, 20), (5, 22)]\n total = sum(q * p... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0063002 | <|start|><|system|>
Tools (call with JSON):
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A lawyer's fee is 35% of... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0063003 | <|start|><|user|>
A clerk's office charges $125 for each filing. Dara submits 15 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 125
filings = 15
total = fee * filings # 1875
print(total)
```
The script prints: 1875
The total fee is $1,875.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $125 for each filing. Dara submits 15 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 15\ntotal = fee * filings # 1875\nprint(total)\n```\nThe script prints: 1875\n\nThe total fee is $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1875", "printed": "1875", "notation": null} |
nlprog_det-setting-0063004 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
At $0.62 per mile, what is the reimbursement for 225 miles?<|eot|>
<|assistant|>
```python
miles = 225
rate = 0.62
reimbursement = miles * rate # 139.5
print(f"{reimbursement:.2f}")
```
Out:
139.50
The reimbursement is $139.50.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 225 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 225\nrate = 0.62\nreimbursement = miles * rate # 139.5\nprint(f\"{reimbursem... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "139.50", "printed": "139.50", "notation": null} |
nlprog_det-setting-0063006 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A client paid a $10,000 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 9
rate = 150
left = retainer - hours * rate # 8650
print(left)
```
stdout = 8650
The remaining balan... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 9\nrate = 150\nl... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8650", "printed": "8650", "notation": null} |
nlprog_det-setting-0063007 | <|start|><|user|>
Each storage box holds 40 files. How many boxes are needed for 512 files?<|eot|>
<|assistant|>
```python
import math
files = 512
per_box = 40
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
The interpreter prints 13.
13 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 40 files. How many boxes are needed for 512 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 512\nper_box = 40\nboxes = math.ceil(files / per_box) # 13\nprint(boxes)\n```\nThe interpreter prints 13.\n\n13 boxes ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0063008 | The statute was enacted in 1993. How many years had passed by 2007?
As Python:
```python
start_year = 1993
end_year = 2007
print(end_year - start_year)
```
The printout reads: 14
That is 14 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0063009 | <|start|><|user|>
At $28.60 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
The pay is $858.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $28.60 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $858.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "858.00", "printed": "858.00", "notation": null} |
nlprog_det-setting-0063010 | If a 150-minute hearing begins at 12:45 PM, what time does it finish?
One way, in code:
```python
start = 12 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The interpreter prints 3:15 PM.
It ends at 3:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "3:15 PM", "printed": "3:15 PM", "notation": null} |
nlprog_det-setting-0063011 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
Python version:
```python
rate = 25.0
hours = 44
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime # 1150.0
print(f"{pay:.2f}")
```
It prints: 1150.00
The weekly pay is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0063012 | Prorate $2,400 of monthly rent for 8 days of a 31-day month.
Set it up in Python:
```python
rent = 2400
days_in_month = 31
days_occupied = 8
prorated = rent * days_occupied / days_in_month # 619.3548387096774
print(f"{prorated:.2f}")
```
(Printed result: 619.35)
The tenant owes $619.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "619.35", "printed": "619.35", "notation": null} |
nlprog_det-setting-0063013 | <|start|><|user|>
How many whole days and leftover hours are in 380 hours?<|eot|>
<|assistant|>
380 hours is 15 days and 20 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 380 hours?"
},
{
"role": "assistant",
"content": "380 hours is 15 days and 20 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "15 days and 20 hours", "printed": "15 days and 20 hours", "notation": null} |
nlprog_det-setting-0063014 | After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?
As Python:
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
This prints: 3000.00
Each installment is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0063015 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 778 files?<|eot|>
<|assistant|>
```python
import math
files = 778
per_box = 12
boxes = math.ceil(files / per_box) # 65
print(boxes)
```
It outputs: 65
It takes 65 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 778 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 778\nper_box = 12\nboxes = math.ceil(files / per_box) # 65\nprint(boxes)\n```\nIt outputs: 65\n\nIt takes 65 boxes."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0063016 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 17 copies of a 7-page handout?<|eot|>
<|assistant|>
```python
pages = 7
copies = 17
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 5.95
print(f"{cost:.2f}")
```
Running it prints 5.95, as expected.
The job costs $5.95.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 17 copies of a 7-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 7\ncopies = 17\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 5.95\nprint(f\"{cost:.2f}\")\n```\nRunni... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "5.95", "printed": "5.95", "notation": null} |
nlprog_det-setting-0063017 | An invoice lists 33 hard drives at $8 each, plus 5% sales tax. What is the invoice total?
As a program:
```python
quantity = 33
unit_price = 8
subtotal = quantity * unit_price # 264
total = subtotal * (1 + 5 / 100) # 277.2
print(f"{total:.2f}")
```
The program prints 277.20.
The total with tax is $277.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "277.20", "printed": "277.20", "notation": null} |
nlprog_det-setting-0063018 | How many meters are in 50.5 kilometers?
Python code:
```python
km = 50.5
meters = km * 1000 # 50500.0
print(round(meters))
```
Output of the run: 50500
50,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "50500", "printed": "50500", "notation": null} |
nlprog_det-setting-0063019 | <|start|><|user|>
A $2,000 security deposit has deductions of $85. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [85]
refund = deposit - sum(deductions) # 1915
print(refund)
```
The script prints 1915.
The refund is $1,915.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $85. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [85]\nrefund = deposit - sum(deductions) # 1915\nprint(refund)\n```\nThe script prints 1915.\n\nThe refund is $1,91... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1915", "printed": "1915", "notation": null} |
nlprog_det-setting-0063020 | <|start|><|user|>
A hearing is set for February 20, 2021. What day of the week is that?<|eot|>
<|assistant|>
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for February 20, 2021. What day of the week is that?"
},
{
"role": "assistant",
"content": "It is a Saturday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0063021 | <|start|><|user|>
What day of the week is March 27, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2023, 3, 27)
print(hearing.strftime("%A"))
```
Run it and it prints: Monday
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is March 27, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2023, 3, 27)\nprint(hearing.strftime(\"%A\"))\n```\nRun it and it prints: Monday\n\nIt is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0063022 | Monthly: $25. Annual: $282. What is saved per year by paying annually?
Let's compute it with Python.
```python
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
```
Output:
18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0063023 | Rent of $1,800 goes up 5%. What is the new rent?
Python code:
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
The script prints 1890.00.
It rises to $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0063024 | 148 of 200 members attended. What percent attended?
In code:
```python
present = 148
total = 200
percent = present / total * 100 # 74.0
print(round(percent, 1))
```
The interpreter prints: 74.0
74.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "74.0", "printed": "74.0", "notation": null} |
nlprog_det-setting-0063025 | A recipe for 8 people uses 450 grams of sugar. How many grams are needed for 12 people?
Python code:
```python
grams = 450
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 675
print(scaled)
```
Execution prints 675, as expected.
675 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0063026 | <|start|><|system|>
Tools you may use:
{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Equipment costs $45,000, h... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "6500.00", "printed": "6500.00", "notation": null} |
nlprog_det-setting-0063027 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $24. What do 3 hours cost?<|eot|>
<|assistant|>
The charge is $9.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $24. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "The charge is $9."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0063028 | How many of 64 votes make 75% (round up)?
Let's compute it with Python.
```python
import math
voters = 64
needed = math.ceil(voters * 75 / 100) # 48
print(needed)
```
Run result = 48
At least 48 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0063029 | A library charges $0.20 per book per day late. What is the fine for 1 books that are 17 days late?
Translated to Python:
```python
per_day = 0.2
days_late = 17
books = 1
fine = per_day * days_late * books # 3.4000000000000004
print(f"{fine:.2f}")
```
It prints: 3.40
$3.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3.40", "printed": "3.40", "notation": null} |
nlprog_det-setting-0063030 | With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal.
A short script:
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
stdout: 20.0
Profit is 20.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0063031 | What simple interest does $12,000 earn at 6% a year over 5 years?
As a program:
principal = 12000
rate = 6 / 100 # 0.06
years = 5
interest = principal * rate * years # 3600.0
print(f"{interest:.2f}")
# output: 3600.00
The interest is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0063032 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $15. What do 5 hours cost?<|eot|>
<|assistant|>
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $15. What do 5 hours cost?"
},
{
"role": "assistant",
"content": "Parking costs $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0063033 | <|start|><|user|>
Prorate $2,400 of monthly rent for 19 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
Execution result: 1520.00
The tenant owes $1,520.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 19 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 19\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nExecution result: 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1520.00", "printed": "1520.00", "notation": null} |
nlprog_det-setting-0063034 | 34 of 40 members attended. What percent attended?
In code:
```python
present = 34
total = 40
percent = present / total * 100 # 85.0
print(round(percent, 1))
```
Running this gives: 85.0
85.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0063035 | <|start|><|user|>
Walls total 1376 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1376
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
(Printed: 4)
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1376 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1376\ncoverage = 400\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\n(Printed: 4)\n\nBuy 4 cans."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0063037 | An invoice lists 25 mugs at $6 each, plus 7% sales tax. What is the invoice total?
Let the code do the arithmetic:
```python
quantity = 25
unit_price = 6
subtotal = quantity * unit_price
total = subtotal * (1 + 7 / 100)
print(f"{total:.2f}")
```
(Printed: 160.50)
The total with tax is $160.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "160.50", "printed": "160.50", "notation": null} |
nlprog_det-setting-0063038 | <|start|><|user|>
A 918-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 918
days = 18
per_day = pages // days # 51
print(per_day)
```
The interpreter prints: 51
That is 51 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 918-page report must be reviewed in 18 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 918\ndays = 18\nper_day = pages // days # 51\nprint(per_day)\n```\nThe interpreter prints: 51\n\nThat is 51 pages per day.... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0063039 | <|start|><|user|>
An office budget of $12,000 has expenses of $3,566, $1,198, $1,073, $3,959. How much of the budget is left?<|eot|>
<|assistant|>
budget = 12000
expenses = [3566, 1198, 1073, 3959]
left = budget - sum(expenses) # 2204
print(left)
Run it and it prints 2204.
$2,204 is left.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "An office budget of $12,000 has expenses of $3,566, $1,198, $1,073, $3,959. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 12000\n expenses = [3566, 1198, 1073, 3959]\n left = budget - sum(expenses) # 2204\n print(left)... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2204", "printed": "2204", "notation": null} |
nlprog_det-setting-0063040 | At 60 miles per hour, how many minutes does a 380-mile trip take?
Here is the program.
```python
distance = 380
speed = 60
minutes = distance / speed * 60 # 380.0
print(round(minutes))
```
It prints 380.
380 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "380", "printed": "380", "notation": null} |
nlprog_det-setting-0063041 | <|start|><|user|>
What is the total rent on a 18-month lease at $975 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
```
Run result: 17550
The rent over the term is $17,550.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $975 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 18\ntotal = monthly_rent * months # 17550\nprint(total)\n```\nRun result: 17550\n\nThe rent over the term is $17,550."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0063042 | What average speed covers 64 miles in 4 hours?
As a program:
distance = 64
hours = 4
speed = distance / hours # 16.0
print(round(speed))
Printed = 16
It averages 16 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0063043 | Convert 0 °C to Fahrenheit.
We can compute it in Python.
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
The program prints 32, as expected.
That is 32 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0063044 | The paralegal logged 2 hours at a rate of $300. How much is billed?
Python version:
```python
hours = 2
rate = 300
bill = hours * rate # 600
print(f"{bill:.2f}")
```
Out: 600.00
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0063045 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 14
free = 0
bill = base + rate * max(0, used - free) # 73.80000000000001
print(f"{bill:.2f}")
```
Output — 73... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 14\nfree = 0\nbill = ba... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "73.80", "printed": "73.80", "notation": null} |
nlprog_det-setting-0063046 | At 30 miles per hour, how many minutes does a 110-mile trip take?
We write it as a program:
```python
distance = 110
speed = 30
minutes = distance / speed * 60 # 220.0
print(round(minutes))
```
Run result: 220
220 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0063047 | <|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": "code_runner", "descrip... | 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 | [] | [] | 314 | {"gold": "190.92", "printed": "190.92", "notation": null} |
nlprog_det-setting-0063048 | How many units at $15 each (variable cost $9) cover $1,200 of fixed costs?
Here is a short program for it.
```python
import math
fixed = 1200
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
Run result: 200
Break-even is 200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0063049 | A count moves from 1,000 to 950. By what percent did it change (use a minus sign for a drop)?
Programmatically:
```python
old = 1000
new = 950
change = (new - old) / old * 100 # -5.0
print(round(change))
```
# result: -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0063050 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A library charges $0.10 per book per day late. What is the fine for 2 books that are 13 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 13
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Executing it gives 2.60, as expe... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 13 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 13\nbooks = 2\nfine... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2.60", "printed": "2.60", "notation": null} |
nlprog_det-setting-0063052 | Parking is $4 per hour with a daily maximum of $20. What do 9 hours cost?
As a program:
```python
rate = 4
hours = 9
daily_max = 20
cost = min(rate * hours, daily_max)
print(cost)
```
Result — 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0063053 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
After a 25% fee is taken from a $96,00... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0063054 | 5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?
Python makes this quick:
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 5
each = bill * (1 + tip_rate) / people # 41.39999999999999
print(f"{each:.2f}")
```
That prints 41.40.
The share is $41.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "41.40", "printed": "41.40", "notation": null} |
nlprog_det-setting-0063055 | A party has 28 days to respond to a motion served on January 21, 2025, with 3 days added because service was by mail. When is the response due?
Python, step by step:
```python
from datetime import date, timedelta
served = date(2025, 1, 21)
response_days = 28
mail_days = 3
due = served + timedelta(days=response_days + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2025-02-21", "printed": "2025-02-21", "notation": null} |
nlprog_det-setting-0063056 | With 10 rows of 24 chairs and 28 empty chairs, how many chairs are taken?
Python, step by step:
```python
rows = 10
per_row = 24
empty = 28
seated = rows * per_row - empty # 212
print(seated)
```
Shell output — 212
212 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "212", "printed": "212", "notation": null} |
nlprog_det-setting-0063057 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A $1,000 security deposit has deductions of $120. How much is refunded?<|eot|>
<|assistant|>
$880 is returned.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A $1,000 security deposit has deductions of $120. How much is refunded?"
},
{
"role": "assistant",
"content": "$880 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "880", "printed": "880", "notation": null} |
nlprog_det-setting-0063058 | Find the mean of these test scores: 91, 57, 78, 88, 69 and 55.
Python makes this quick:
```python
scores = [91, 57, 78, 88, 69, 55]
average = sum(scores) // len(scores) # 73
print(average)
```
Console:
73
The mean is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0063059 | 41 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
Coded up:
```python
total = 41
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Execution prints 6 each, 5 left over, as expected.
6 each, 5 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "6 each, 5 left over", "printed": "6 each, 5 left over", "notation": null} |
nlprog_det-setting-0063060 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Idris drove 634 m... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "443.80", "printed": "443.80", "notation": null} |
nlprog_det-setting-0063061 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?
Written as code:
```python
rate = 18.5
hours = 47
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 194.25
pay = regular + overtime # 934.25
print(f"{pay:.2f}")
```
The program prints 934.25.
The weekl... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "934.25", "printed": "934.25", "notation": null} |
nlprog_det-setting-0063062 | <|start|><|user|>
A hearing is set for July 24, 2011. What day of the week is that?<|eot|>
<|assistant|>
from datetime import date
hearing = date(2011, 7, 24) # datetime.date(2011, 7, 24)
print(hearing.strftime("%A"))
# stdout: Sunday
July 24, 2011 is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for July 24, 2011. What day of the week is that?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(2011, 7, 24) # datetime.date(2011, 7, 24)\n print(hearing.strftime(\"%A\"))\n# stdout: Sunday\n\nJuly 24, 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0063063 | <|start|><|user|>
3 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 3
share = settlement // parties # 400
print(share)
```
The run gives: 400
Each share is $400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 3\nshare = settlement // parties # 400\nprint(share)\n```\nThe run gives: 400\n\nEach share is $400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0063064 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Eamon drove 478 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 478
rate = 0.58
reimbursement = miles * rate # 277.24
print(f"{reimbursement:.2f}")
```
Running it prints... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Eamon drove 478 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 478\nrate = 0.58\nrei... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "277.24", "printed": "277.24", "notation": null} |
nlprog_det-setting-0063065 | <|start|><|user|>
9 boxes hold 8 tape rolls each. After 6 are handed out, how many are left?<|eot|>
<|assistant|>
66 tape rolls are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "9 boxes hold 8 tape rolls each. After 6 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "66 tape rolls are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0063066 | A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 27-page copy cost?
Python makes this quick:
```python
pages = 27
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 16.75
print(f"{cost:.2f}")
```
Printed: 16.75
The total is $16.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "16.75", "printed": "16.75", "notation": null} |
nlprog_det-setting-0063067 | 4 books come back 5 days late, at $0.50 a day each. What is the fine?
Coded up:
per_day = 0.5
days_late = 5
books = 4
fine = per_day * days_late * books # 10.0
print(f"{fine:.2f}")
# printed result: 10.00
The fine is $10.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0063068 | A deposition lasted 5 hours and 7 minutes. How many minutes is that?
Here's the code.
```python
hours = 5
minutes = 7
total_minutes = hours * 60 + minutes # 307
print(total_minutes)
```
(stdout: 307)
That is 307 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "307", "printed": "307", "notation": null} |
nlprog_det-setting-0063069 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
How long, in days, is it from June 5, 2024 until July 12, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 6, 5) # datetime.date(2024, 6, 5)
second = date(2024, 7, 12) # datetime.date(2024, 7, 12)
print((second - first).days)
```
(Consol... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "How long, in days, is it from June 5, 2024 until July 12, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 6, 5) # datetime.date(2024, 6, 5)\nsecond = d... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0063070 | <|start|><|user|>
An office budget of $5,000 has expenses of $1,515, $527, $1,108. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [1515, 527, 1108]
left = budget - sum(expenses) # 1850
print(left)
```
Executing it gives: 1850
$1,850 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $1,515, $527, $1,108. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [1515, 527, 1108]\nleft = budget - sum(expenses) # 1850\nprint(left)\n```\nExecuting it give... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1850", "printed": "1850", "notation": null} |
nlprog_det-setting-0063071 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Tobias ha... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "6300", "printed": "6300", "notation": null} |
nlprog_det-setting-0063072 | With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal.
Python:
```python
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
It outputs 16.7.
Profit is 16.7% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0063074 | A meal costs $52.76. How much is a 20% tip? The tip is $10.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "10.55", "printed": "10.55", "notation": null} |
nlprog_det-setting-0063075 | With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.
A few lines of Python do it:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
(stdout: 38.5)
Profit is 38.5% of re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0063076 | A hall has 16 rows of 14 seats, and 32 seats are empty. How many people are seated?
A short script:
```python
rows = 16
per_row = 14
empty = 32
seated = rows * per_row - empty # 192
print(seated)
```
Executing it gives 192.
192 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0063077 | How much sales tax is charged on a $813.69 purchase at 8%?
Computation in Python:
```python
price = 813.69
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 65.0952
print(f"{tax:.2f}")
```
Shell output — 65.10
The tax is $65.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "65.10", "printed": "65.10", "notation": null} |
nlprog_det-setting-0063078 | 3 claimants share a $960 settlement equally. What is each share?
The computation:
```python
settlement = 960
parties = 3
share = settlement // parties # 320
print(share)
```
It prints 320.
Each share is $320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0063079 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
Let's compute it with Python.
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
Run result — 3.8
The margin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0063080 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Python, step by step:
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
Execution prints 20.0, as expected.
The margin is 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0063081 | Buying 6 folders at $25 each, 6 notebooks at $28 each, 1 batteries at $8 each, 4 pens at $27 each, someone hands over $450. What change comes back?
Set it up in Python:
items = [(6, 25), (6, 28), (1, 8), (4, 27)]
total = sum(q * p for q, p in items) # 434
paid = 450
change = paid - total # 16
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0063082 | How many minutes pass from 7:47 AM to 8:22 AM on the same day?
Computation in Python:
```python
start = 7 * 60 + 47 # 467
end = 8 * 60 + 22 # 502
print(end - start)
```
Python prints 35.
35 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0063083 | <|start|><|user|>
Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 23,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.75
used = 23
free = 2
bill = base + rate * max(0, used - free) # 114.75
print(f"{bill:.2f}")
```
Output: 114.75
$114.75 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 23,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.75\nused = 23\nfree = 2\nbill = base + rate * max(0, used - free) # 114.75\nprint(f\"{bill:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "114.75", "printed": "114.75", "notation": null} |
nlprog_det-setting-0063084 | <|start|><|user|>
12 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 12
total = 20
percent = present / total * 100 # 60.0
print(round(percent, 1))
```
# execution result: 60.0
Attendance was 60.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 12\ntotal = 20\npercent = present / total * 100 # 60.0\nprint(round(percent, 1))\n```\n# execution result: 60.0\n\nAttendance was 60.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0063085 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
In total, $59,040 is paid.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "In total, $59,040 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0063086 | Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?
$2,666.67 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2666.67", "printed": "2666.67", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.