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-0058081 | An invoice lists 10 calendars at $12 each, plus 5% sales tax. What is the invoice total?
The invoice total is $126.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0058082 | <|start|><|user|>
From 2015 to 2041, how many years is that?<|eot|>
<|assistant|>
That is 26 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2015 to 2041, how many years is that?"
},
{
"role": "assistant",
"content": "That is 26 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0058084 | Tomas was born on January 15, 1975. How old is Tomas on October 18, 2021?
Let's compute it with Python.
```python
from datetime import date
born = date(1975, 1, 15) # datetime.date(1975, 1, 15)
on = date(2021, 10, 18) # datetime.date(2021, 10, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0058085 | Rent of $1,500 goes up 4%. What is the new rent?
In Python:
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
Execution result: 1560.00
The new rent is $1,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0058086 | <|start|><|user|>
Convert 40.3 km to meters.<|eot|>
<|assistant|>
```python
km = 40.3
meters = km * 1000 # 40300.0
print(round(meters))
```
Run output — 40300
40,300 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 40.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 40.3\nmeters = km * 1000 # 40300.0\nprint(round(meters))\n```\nRun output — 40300\n\n40,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "40300", "printed": "40300", "notation": null} |
nlprog_det-setting-0058087 | The landlord deducts $85 and $45 from a $2,500 deposit. What is returned to the tenant?
Script:
```python
deposit = 2500
deductions = [85, 45]
refund = deposit - sum(deductions) # 2370
print(refund)
```
Output: 2370
The refund is $2,370. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2370", "printed": "2370", "notation": null} |
nlprog_det-setting-0058088 | What percentage of $8,000 is $7,400?
In Python:
budget = 8000
spent = 7400
percent = spent / budget * 100 # 92.5
print(round(percent, 1))
Result = 92.5
That is 92.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0058090 | How many units at $30 each (variable cost $25) cover $2,500 of fixed costs?
Python code:
```python
import math
fixed = 2500
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
When run, it prints 500, as expected.
500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0058091 | At an exchange rate of 0.92 EUR per USD, how many EUR is 664 USD?
That is 610.88 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "610.88", "printed": "610.88", "notation": null} |
nlprog_det-setting-0058093 | Mei was born on December 20, 1968. How old is Mei on August 20, 2025?
In code:
```python
from datetime import date
born = date(1968, 12, 20) # datetime.date(1968, 12, 20)
on = date(2025, 8, 20) # datetime.date(2025, 8, 20)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 56
print(age)
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0058094 | <|start|><|user|>
The rules require 3/5 of 27 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 27
quorum = math.ceil(members * 3 / 5) # 17
print(quorum)
The program prints 17.
17 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 27 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 27\n quorum = math.ceil(members * 3 / 5) # 17\n print(quorum)\nThe program prints 17.\n\n17 members are neede... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0058095 | How many whole days and leftover hours are in 390 hours?
Code:
hours = 390
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
The script prints 16 days and 6 hours.
That is 16 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "16 days and 6 hours", "printed": "16 days and 6 hours", "notation": null} |
nlprog_det-setting-0058096 | A claim accrued on July 9, 2015. The limitations period is 4 years. On what date does it expire?
Python code:
```python
from datetime import date
accrued = date(2015, 7, 9) # datetime.date(2015, 7, 9)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 7, 9)
print(expires.isoformat()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2019-07-09", "printed": "2019-07-09", "notation": null} |
nlprog_det-setting-0058097 | <|start|><|user|>
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 50-page copy cost?<|eot|>
<|assistant|>
```python
pages = 50
base = 5
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 25.0
print(f"{cost:.2f}")
```
The run gives 25.00, as exp... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 50-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 50\nbase = 5\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0058098 | 4 claimants share a $7,348 settlement equally. What is each share?
Coded up:
```python
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
```
(Printed result: 1837)
Each party receives $1,837. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0058100 | <|start|><|user|>
What average speed covers 58 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 58
hours = 2
speed = distance / hours # 29.0
print(round(speed))
```
stdout = 29
The average speed is 29 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 58 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 58\nhours = 2\nspeed = distance / hours # 29.0\nprint(round(speed))\n```\nstdout = 29\n\nThe average speed is 29 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0058102 | Goods bought on November 16, 2026 carry a 6-month warranty. When does it expire?
In Python:
from datetime import date
start = date(2026, 11, 16)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2027-05-16", "printed": "2027-05-16", "notation": null} |
nlprog_det-setting-0058103 | <|start|><|user|>
Reza drove 445 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 445
rate = 0.62
reimbursement = miles * rate # 275.9
print(f"{reimbursement:.2f}")
```
The printout reads: 275.90
Reza is owed $275.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Reza drove 445 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 445\nrate = 0.62\nreimbursement = miles * rate # 275.9\nprint(f\"{reimbursement:.2f}\")\n```\nThe print... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "275.90", "printed": "275.90", "notation": null} |
nlprog_det-setting-0058104 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
$6,500 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "$6,500 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "6500", "printed": "6500", "notation": null} |
nlprog_det-setting-0058105 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "description": "Translate ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0058106 | 3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Here is the program.
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 3 # 15000.0
print(f"{per_client:.2f}")
```
(Output: 15000.00)
Each clie... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0058107 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Convert 40 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
Out — 104
That is 104 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Convert 40 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nOut — 104\n\nThat is 104 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0058109 | <|start|><|system|>
Tool definitions:
{"name": "code_runner", "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"]}}<|eot|>
<|user|>
Counting on... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"code_runner\", \"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\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0058110 | <|start|><|user|>
What is 35 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
Run result = 95
It equals 95 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 35 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 35\nfahrenheit = celsius * 9 / 5 + 32 # 95.0\nprint(round(fahrenheit))\n```\nRun result = 95\n\nIt equals 95 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0058111 | A meal costs $62.77. How much is a 20% tip?
```python
bill = 62.77
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 12.554000000000002
print(f"{tip:.2f}")
```
Run output — 12.55
The tip is $12.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "12.55", "printed": "12.55", "notation": null} |
nlprog_det-setting-0058112 | Monthly: $19. Annual: $180. What is saved per year by paying annually?
Translated to Python:
```python
monthly = 19
yearly = 180
savings = monthly * 12 - yearly # 48
print(savings)
```
Console output — 48
$48 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0058113 | A lawyer's fee is 33% of a $40,000 recovery. How large is the fee?
```python
recovery = 40000
rate = 33 / 100 # 0.33
fee = recovery * rate # 13200.0
print(f"{fee:.2f}")
```
# run result: 13200.00
The fee is $13,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0058114 | <|start|><|user|>
Find the mean of these test scores: 66, 71, 84, 91, 71, 75 and 60.<|eot|>
<|assistant|>
```python
scores = [66, 71, 84, 91, 71, 75, 60]
average = sum(scores) // len(scores) # 74
print(average)
```
On running, it outputs: 74
The average score is 74.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 66, 71, 84, 91, 71, 75 and 60."
},
{
"role": "assistant",
"content": "```python\nscores = [66, 71, 84, 91, 71, 75, 60]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\nOn running, it outputs: 74\n\nThe average sco... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0058115 | $5,000 is invested at 4% compounded yearly. What is it worth after 2 years?
Computing it:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 5408.000000000001
print(f"{value:.2f}")
```
Python prints: 5408.00
It is worth $5,408.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "5408.00", "printed": "5408.00", "notation": null} |
nlprog_det-setting-0058116 | Convert 1,961 CHF to USD at 1 CHF = 0.74 USD.
As Python:
amount = 1961
rate = 0.74
converted = amount * rate # 1451.1399999999999
print(f"{converted:.2f}")
# run result: 1451.14
That is 1,451.14 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1451.14", "printed": "1451.14", "notation": null} |
nlprog_det-setting-0058117 | <|start|><|user|>
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 22500
costs = 20000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
Output of the run: 1... | chat | [
{
"role": "user",
"content": "Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.11111... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0058118 | Under a 35% contingency agreement, what fee is owed on a $12,000 award?
Python version:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
Printed result — 4200.00
The fee is $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0058119 | How many whole days and leftover hours are in 230 hours?
Set it up in Python:
```python
hours = 230
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
This prints 9 days and 14 hours, as expected.
That is 9 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "9 days and 14 hours", "printed": "9 days and 14 hours", "notation": null} |
nlprog_det-setting-0058120 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after August 7, 2025 through September 9, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 8, 7)
end = date(2025, 9, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start +... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after August 7, 2025 through September 9, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 8, 7)\nend = date(2025, 9, 9)\ncount = 0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0058121 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "search_cases"... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 400 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0058122 | A customer buys 5 cables at $20 each, 4 envelopes at $16 each and pays with $200. How much change is due?
```python
items = [(5, 20), (4, 16)]
total = sum(q * p for q, p in items)
paid = 200
change = paid - total
print(change)
```
(Execution result: 36)
The change is $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0058123 | Starting from $20,000, the team spends $391, $487, $3,975, $828. What remains?
Coded up:
```python
budget = 20000
expenses = [391, 487, 3975, 828]
left = budget - sum(expenses) # 14319
print(left)
```
Execution result: 14319
$14,319 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "14319", "printed": "14319", "notation": null} |
nlprog_det-setting-0058124 | A meal costs $94.45. How much is a 25% tip?
The tip is $23.61. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "23.61", "printed": "23.61", "notation": null} |
nlprog_det-setting-0058125 | A 11 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Let's compute it with Python.
import math
length = 11
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
Result:
36
36 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0058126 | At $0.58 per mile, what is the reimbursement for 270 miles?
Let the code do the arithmetic:
miles = 270
rate = 0.58
reimbursement = miles * rate # 156.6
print(f"{reimbursement:.2f}")
Console output — 156.60
Zoe is owed $156.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "156.60", "printed": "156.60", "notation": null} |
nlprog_det-setting-0058127 | How long, in days, is it from February 9, 2024 until March 19, 2024?
Here is a short program for it.
```python
from datetime import date
first = date(2024, 2, 9) # datetime.date(2024, 2, 9)
second = date(2024, 3, 19) # datetime.date(2024, 3, 19)
print((second - first).days)
```
Printed: 39
It is 39 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0058128 | A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?
The rent over the term is $25,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0058129 | <|start|><|system|>
You have access to these functions:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 393 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0058130 | Rosa's scores were 89, 99, 92, 81, 56 and 93. What is the average score?
A short script:
```python
scores = [89, 99, 92, 81, 56, 93]
average = sum(scores) // len(scores) # 85
print(average)
```
Run output — 85
The mean is 85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0058131 | Someone born December 15, 1974 turns how old by October 14, 2024? Give the age in whole years.
In code:
```python
from datetime import date
born = date(1974, 12, 15)
on = date(2024, 10, 14)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
The program prints: 49
The age is 49 ye... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0058132 | A backpack costs $90. It is 10% off. What is the sale price?
Here is the program.
```python
price = 90
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 81.0
print(f"{sale_price:.2f}")
```
Executed, it shows: 81.00
It costs $81.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0058133 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 4 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 4
cap = 2500
fine = min(per_day * days, cap) # 100
print(fine)
```
That prints 100.
$100 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 4 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 4\ncap = 2500\nfine = min(per_day * days, cap) # 100\nprint(fine)\n```\nThat prints 100.\n\n$100 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0058134 | How many units at $25 each (variable cost $20) cover $9,000 of fixed costs?
As Python:
import math
fixed = 9000
price = 25
variable = 20
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
Execution result — 1800
Break-even is 1800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0058135 | A deposition lasted 3 hours and 39 minutes. How many minutes is that?
In Python:
```python
hours = 3
minutes = 39
total_minutes = hours * 60 + minutes # 219
print(total_minutes)
```
That prints 219.
The deposition lasted 219 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "219", "printed": "219", "notation": null} |
nlprog_det-setting-0058136 | Each of Jae's bike rides burns 350 calories. How many calories over 4 bike rides?
1400 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0058137 | How long, in days, is it from June 19, 2028 until July 12, 2029?
Python, step by step:
```python
from datetime import date
first = date(2028, 6, 19) # datetime.date(2028, 6, 19)
second = date(2029, 7, 12) # datetime.date(2029, 7, 12)
print((second - first).days)
```
Program output: 388
It is 388 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "388", "printed": "388", "notation": null} |
nlprog_det-setting-0058139 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Monthly: $12. Annual: $126. What is saved per year by paying annually?<|eot|>
<|assistant|>
$18 is saved.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Monthly: $12. Annual: $126. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "$18 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0058140 | Convert 60.3 km to meters.
Here is the program.
km = 60.3
meters = km * 1000 # 60300.0
print(round(meters))
The run gives 60300.
That is 60,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "60300", "printed": "60300", "notation": null} |
nlprog_det-setting-0058141 | Walls total 952 sq ft and each can covers 400 sq ft. How many cans should be bought?
```python
import math
area = 952
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
This prints 3, as expected.
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0058142 | <|start|><|user|>
6 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 6
share = settlement // parties
print(share)
```
This prints 14000.
Each share is $14,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 6\nshare = settlement // parties\nprint(share)\n```\nThis prints 14000.\n\nEach share is $14,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "14000", "printed": "14000", "notation": null} |
nlprog_det-setting-0058143 | Copies cost $10 plus $0.25 for each page beyond 10. How much for 98 pages?
Python version:
pages = 98
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 32.0
print(f"{cost:.2f}")
(Execution result: 32.00)
The total is $32.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0058144 | <|start|><|user|>
Shipping costs $5 plus $1.20 per pound. What does a 8-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $14.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $1.20 per pound. What does a 8-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $14.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "14.60", "printed": "14.60", "notation": null} |
nlprog_det-setting-0058145 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 2 # 11250.0
print(f"{per_client:.2f}")
```
Running it pr... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_client = remaining /... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0058146 | <|start|><|user|>
At $17.83 an hour, what does 36 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 17.83
hours = 36
earnings = rate * hours # 641.8799999999999
print(f"{earnings:.2f}")
```
The interpreter prints: 641.88
That earns $641.88.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $17.83 an hour, what does 36 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 17.83\nhours = 36\nearnings = rate * hours # 641.8799999999999\nprint(f\"{earnings:.2f}\")\n```\nThe interpreter prints: 641.88\n\nThat earns $641.88."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "641.88", "printed": "641.88", "notation": null} |
nlprog_det-setting-0058147 | <|start|><|user|>
To read 836 pages in 19 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 836
days = 19
per_day = pages // days # 44
print(per_day)
```
Running this gives: 44
44 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 836 pages in 19 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 836\ndays = 19\nper_day = pages // days # 44\nprint(per_day)\n```\nRunning this gives: 44\n\n44 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0058148 | <|start|><|user|>
What average speed covers 482 miles in 0.5 hours?<|eot|>
<|assistant|>
```python
distance = 482
hours = 0.5
speed = distance / hours # 964.0
print(round(speed))
```
Console output — 964
It averages 964 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 482 miles in 0.5 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 482\nhours = 0.5\nspeed = distance / hours # 964.0\nprint(round(speed))\n```\nConsole output — 964\n\nIt averages 964 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "964", "printed": "964", "notation": null} |
nlprog_det-setting-0058150 | <|start|><|user|>
A hall has 30 rows of 13 seats, and 5 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 30
per_row = 13
empty = 5
seated = rows * per_row - empty # 385
print(seated)
```
(Out: 385)
385 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 30 rows of 13 seats, and 5 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 30\nper_row = 13\nempty = 5\nseated = rows * per_row - empty # 385\nprint(seated)\n```\n(Out: 385)\n\n385 seats are taken."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "385", "printed": "385", "notation": null} |
nlprog_det-setting-0058151 | After an initial $3,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?
Here is the program.
grant = 24000
up_front = 3000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
Printed result — 7000.00
Each installment is $7,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0058152 | A settlement of $84,000 is split equally among 3 parties. How much does each party receive?
Computation in Python:
```python
settlement = 84000
parties = 3
share = settlement // parties # 28000
print(share)
```
(stdout: 28000)
Each party receives $28,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0058153 | <|start|><|system|>
Tools you may use:
{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Printing costs 5 cents a page. W... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "127.50", "printed": "127.50", "notation": null} |
nlprog_det-setting-0058154 | A 260-mile drive at a steady 65 mph takes how many minutes?
Program:
distance = 260
speed = 65
minutes = distance / speed * 60 # 240.0
print(round(minutes))
Execution prints 240, as expected.
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0058155 | <|start|><|user|>
What is the total rent on a 6-month lease at $1,200 a month?<|eot|>
<|assistant|>
The rent over the term is $7,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $1,200 a month?"
},
{
"role": "assistant",
"content": "The rent over the term is $7,200."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0058156 | <|start|><|user|>
With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 6000
costs = 4000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
It outputs: 33.3
Profit is ... | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 6000\ncosts = 4000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 33.3333333333333... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0058157 | An office budget of $12,000 has expenses of $463, $3,009, $3,509, $3,155. How much of the budget is left?
Let's compute it with Python.
budget = 12000
expenses = [463, 3009, 3509, 3155]
left = budget - sum(expenses) # 1864
print(left)
It prints 1864, as expected.
The remaining budget is $1,864. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1864", "printed": "1864", "notation": null} |
nlprog_det-setting-0058158 | Elena has 17 documents to file, and each filing costs $150. How much are the filing fees in total?
```python
fee = 150
filings = 17
total = fee * filings # 2550
print(total)
```
Printed result — 2550
The total fee is $2,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "2550", "printed": "2550", "notation": null} |
nlprog_det-setting-0058159 | <|start|><|user|>
An office budget of $20,000 has expenses of $3,868, $3,242. How much of the budget is left?<|eot|>
<|assistant|>
$12,890 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,868, $3,242. How much of the budget is left?"
},
{
"role": "assistant",
"content": "$12,890 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "12890", "printed": "12890", "notation": null} |
nlprog_det-setting-0058160 | <|start|><|user|>
Shipping costs $5 plus $2.00 per pound. What does a 16-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 2.0
weight = 16
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
stdout = 37.00
Shipping costs $37.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $2.00 per pound. What does a 16-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 2.0\nweight = 16\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nstdout = 37.00\n\nShipping cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "37.00", "printed": "37.00", "notation": null} |
nlprog_det-setting-0058161 | Each of Kofi's bike rides burns 300 calories. How many calories over 7 bike rides?
Let's compute it with Python.
```python
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
```
Output:
2100
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0058162 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
An attorney bills 12 hours at $300 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 12
rate = 300
bill = hours * rate # 3600
print(f"{bill:.2f}")
```
# printed: 3600.00
The bill is $3,600.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "An attorney bills 12 hours at $300 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 300\nbill = hours * rate # 3600\nprint(f\"{bill:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0058163 | <|start|><|user|>
A filing cabinet costs $300. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
price = 300
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 210.0
print(f"{sale_price:.2f}")
Shell output — 210.00
The sale price is $210.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A filing cabinet costs $300. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 300\n discount = 30 / 100 # 0.3\n sale_price = price * (1 - discount) # 210.0\n print(f\"{sale_price:.2f}\")\nShell output — 210.00\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0058164 | Tariq lends $20,000 at 3% simple interest per year for 3 years. How much interest is earned?
```python
principal = 20000
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 1800.0
print(f"{interest:.2f}")
```
(Out: 1800.00)
The interest is $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0058165 | A $6,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Python:
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 1440.0
payment = (principal + interest) / m... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "206.67", "printed": "206.67", "notation": null} |
nlprog_det-setting-0058166 | One can of paint covers 350 square feet. How many cans are needed for 286 square feet of wall?
Let the code do the arithmetic:
```python
import math
area = 286
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
stdout — 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0058167 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Prorate $900 of monthly rent for 6 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 180.0
print(f"{prorated:.2f}")
```
Running it prints 180.00.
The ... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Prorate $900 of monthly rent for 6 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupi... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0058168 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Find the mean of these test scores: 97, 56, 100, 98 and 89.<|eot|>
<|assistant|>
```python
scores = [97, 56, 100, 98, 89]
average = sum(scores) // len(scores) # 88
print(average)
```
stdout: 88
The mean is 88.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Find the mean of these test scores: 97, 56, 100, 98 and 89."
},
{
"role": "assistant",
"content": "```python\nscores = [97, 56, 100, 98, 89]\naverage = sum(scores) // len(scor... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "88", "printed": "88", "notation": null} |
nlprog_det-setting-0058169 | A desk lamp costs $180. It is 15% off. What is the sale price?
One way, in code:
```python
price = 180
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 153.0
print(f"{sale_price:.2f}")
```
Printed: 153.00
The sale price is $153.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "153.00", "printed": "153.00", "notation": null} |
nlprog_det-setting-0058170 | At a 7% tax rate, what is the tax on $77.60?
Translated to Python:
```python
price = 77.6
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 5.432
print(f"{tax:.2f}")
```
Executing it gives 5.43.
The tax is $5.43. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "5.43", "printed": "5.43", "notation": null} |
nlprog_det-setting-0058171 | Counting the first and last day, how many days are there from May 4, 2022 through May 12, 2022?
Coded up:
```python
from datetime import date
first = date(2022, 5, 4) # datetime.date(2022, 5, 4)
last = date(2022, 5, 12) # datetime.date(2022, 5, 12)
days = (last - first).days + 1 # 9
print(days)
```
Run result = 9
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0058172 | A 175-page report must be reviewed in 7 days. How many pages a day is that, evenly?
Computing it:
```python
pages = 175
days = 7
per_day = pages // days # 25
print(per_day)
```
The printout reads 25.
25 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0058173 | An office budget of $12,000 has expenses of $1,060, $1,272. How much of the budget is left?
Python, step by step:
```python
budget = 12000
expenses = [1060, 1272]
left = budget - sum(expenses)
print(left)
```
When run, it prints 9668.
$9,668 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "9668", "printed": "9668", "notation": null} |
nlprog_det-setting-0058174 | <|start|><|user|>
A hearing is set for November 12, 2001. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2001, 11, 12) # datetime.date(2001, 11, 12)
print(hearing.strftime("%A"))
```
# result: Monday
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for November 12, 2001. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2001, 11, 12) # datetime.date(2001, 11, 12)\nprint(hearing.strftime(\"%A\"))\n```\n# result: Monday\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0058175 | Convert 3,206 GBP to USD at 1 GBP = 1.27 USD.
The program:
```python
amount = 3206
rate = 1.27
converted = amount * rate # 4071.62
print(f"{converted:.2f}")
```
Printed result: 4071.62
It converts to 4,071.62 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4071.62", "printed": "4071.62", "notation": null} |
nlprog_det-setting-0058176 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $18. What do 7 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 7
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
(Output: 18)
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $18. What do 7 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\n(Output: 18)\n\nThe charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0058177 | Counting the first and last day, how many days are there from June 25, 2024 through July 5, 2024?
Here is a short program for it.
```python
from datetime import date
first = date(2024, 6, 25) # datetime.date(2024, 6, 25)
last = date(2024, 7, 5) # datetime.date(2024, 7, 5)
days = (last - first).days + 1 # 11
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0058178 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0058179 | Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?
As Python:
```python
import math
fixed = 9000
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 1125
print(units)
```
The code prints 1125.
Break-even is 1125 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0058180 | A trial runs from October 9, 2024 to October 12, 2024, counting both days. How many calendar days is that?
Python, step by step:
```python
from datetime import date
first = date(2024, 10, 9) # datetime.date(2024, 10, 9)
last = date(2024, 10, 12) # datetime.date(2024, 10, 12)
days = (last - first).days + 1 # 4
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0058181 | A 345-mile drive at a steady 60 mph takes how many minutes?
Script:
```python
distance = 345
speed = 60
minutes = distance / speed * 60 # 345.0
print(round(minutes))
```
This prints: 345
345 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0058182 | Monthly rent is $1,500. A tenant moves in with 15 days left in a 31-day month. What is the prorated rent?
The Python version:
```python
rent = 1500
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 725.8064516129032
print(f"{prorated:.2f}")
```
Output = 725.81
The tenant owes $7... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "725.81", "printed": "725.81", "notation": null} |
nlprog_det-setting-0058184 | <|start|><|user|>
Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1322
print(total)
```
That prints: 1322
The allowance i... | chat | [
{
"role": "user",
"content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1322", "printed": "1322", "notation": null} |
nlprog_det-setting-0058185 | A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?
Coded up:
days = 4
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 656
print(total)
# run result: 656
The allowance is $656. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "656", "printed": "656", "notation": null} |
nlprog_det-setting-0058186 | How many weekdays (Monday to Friday) fall after August 28, 2019 up to and including September 23, 2019?
Set it up in Python:
from datetime import date, timedelta
start = date(2019, 8, 28)
end = date(2019, 9, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0058187 | Rent of $1,100 goes up 4%. What is the new rent?
The Python version:
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
Executing it gives 1144.00.
The new rent is $1,144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0058189 | 2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Computing it:
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 2 # 21600.0
print(f"{per_client:.2f}")
```
Program output: 21600.00
Each clien... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "21600.00", "printed": "21600.00", "notation": null} |
nlprog_det-setting-0058190 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?
Programmatically:
```python
rate = 25.0
hours = 49
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 337.5
pay = regular + overtime # 1337.5
print(f"{pay:.2f}")
```
Console output: 1337.50
Viktor earn... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1337.50", "printed": "1337.50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.