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-0082987 | A recipe for 4 people uses 450 grams of rice. How many grams are needed for 8 people?
```python
grams = 450
serves = 4
needed_for = 8
scaled = grams * needed_for // serves # 900
print(scaled)
```
# output: 900
Use 900 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0082988 | <|start|><|user|>
8 claimants share a $4,496 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 4496
parties = 8
share = settlement // parties # 562
print(share)
```
This prints 562, as expected.
Each party receives $562.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 claimants share a $4,496 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 4496\nparties = 8\nshare = settlement // parties # 562\nprint(share)\n```\nThis prints 562, as expected.\n\nEach party receives $562."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "562", "printed": "562", "notation": null} |
nlprog_det-setting-0082989 | Convert 42.6 km to meters.
A short script:
```python
km = 42.6
meters = km * 1000 # 42600.0
print(round(meters))
```
That prints 42600.
That is 42,600 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "42600", "printed": "42600", "notation": null} |
nlprog_det-setting-0082990 | A quorum is 3/5 of the 51 members, rounded up. How many members make a quorum? That is 31 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0082991 | What does $2,000 grow to in 5 years at 2% annual compounding?
Here is a short program for it.
```python
principal = 2000
rate = 2 / 100
years = 5
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
(Execution result: 2208.16)
The balance is $2,208.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2208.16", "printed": "2208.16", "notation": null} |
nlprog_det-setting-0082992 | A meal costs $197.79. How much is a 18% tip?
One way, in code:
```python
bill = 197.79
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 35.602199999999996
print(f"{tip:.2f}")
```
Executing it gives 35.60, as expected.
Leave $35.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "35.60", "printed": "35.60", "notation": null} |
nlprog_det-setting-0082993 | A customer buys 1 folders at $28 each, 5 pens at $12 each, 3 tape rolls at $10 each and pays with $150. How much change is due?
```python
items = [(1, 28), (5, 12), (3, 10)]
total = sum(q * p for q, p in items) # 118
paid = 150
change = paid - total # 32
print(change)
```
Run it and it prints 32.
The change is $32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0082994 | From 2018 to 2034, how many years is that?
Set it up in Python:
```python
start_year = 2018
end_year = 2034
print(end_year - start_year)
```
Run output: 16
That is 16 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0082995 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Monthly: $29. Annual: $336. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 336
savings = monthly * 12 - yearly # 12
print(savings)
```
It prints 12.
$12 is saved.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Monthly: $29. Annual: $336. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 336\nsavings = monthly * 12 - y... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0082996 | A client paid a $5,000 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?
The computation:
```python
retainer = 5000
hours = 14
rate = 150
left = retainer - hours * rate # 2900
print(left)
```
Run it and it prints: 2900
The remaining balance is $2,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2900", "printed": "2900", "notation": null} |
nlprog_det-setting-0082997 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 168 copies of a 49-page handout?<|eot|>
<|assistant|>
```python
pages = 49
copies = 168
cost_per_page = 0.05
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Run it and it prints 411.60.
Printing costs $411.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 168 copies of a 49-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 49\ncopies = 168\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nRun it an... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "411.60", "printed": "411.60", "notation": null} |
nlprog_det-setting-0082998 | <|start|><|system|>
You have access to these functions:
{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
4 swims at 200... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0082999 | <|start|><|user|>
Copies cost $10 plus $0.50 for each page beyond 10. How much for 93 pages?<|eot|>
<|assistant|>
```python
pages = 93
base = 10
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 51.5
print(f"{cost:.2f}")
```
Program output: 51.50
The total is $51.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.50 for each page beyond 10. How much for 93 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 93\nbase = 10\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 51.5\nprint(f\"{cost:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "51.50", "printed": "51.50", "notation": null} |
nlprog_det-setting-0083000 | Papers were served by mail on April 26, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
As Python:
```python
from datetime import date, timedelta
served = date(2018, 4, 26) # datetime.date(2018, 4, 26)
response_days = 28
mail_days = 3
due = served + timedelta(days=r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2018-05-27", "printed": "2018-05-27", "notation": null} |
nlprog_det-setting-0083001 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "sandbox_python", "description": "Run Python code in a sandbox; the resul... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"sandbox_python\",... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "442", "printed": "442", "notation": null} |
nlprog_det-setting-0083002 | Convert -5 °C to Fahrenheit.
In Python:
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
(Printed: 23)
That is 23 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0083003 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Count 10 days forward from October 5, 2027. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 10, 5) # datetime.date(2027, 10, 5)
end = start + timedelta(days=10) # datetime.date(2027, 10, 15)
print(en... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Count 10 days forward from October 5, 2027. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 10, 5) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2027-10-15", "printed": "2027-10-15", "notation": null} |
nlprog_det-setting-0083004 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
With $8,00... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0083005 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $1,000. How much after 58 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 58
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Output of the run: 1000
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $1,000. How much after 58 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 58\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nOutput of the run: 1000\n\n$1,000 is owed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0083006 | <|start|><|user|>
How many meters are in 5.7 kilometers?<|eot|>
<|assistant|>
```python
km = 5.7
meters = km * 1000 # 5700.0
print(round(meters))
```
Execution prints: 5700
That is 5,700 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 5.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 5.7\nmeters = km * 1000 # 5700.0\nprint(round(meters))\n```\nExecution prints: 5700\n\nThat is 5,700 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "5700", "printed": "5700", "notation": null} |
nlprog_det-setting-0083007 | <|start|><|system|>
You have access to these functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "math_engine", "description": "Run... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 298 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0083008 | Sami was born on May 28, 1968. How old is Sami on November 12, 2028?
Computation in Python:
```python
from datetime import date
born = date(1968, 5, 28) # datetime.date(1968, 5, 28)
on = date(2028, 11, 12) # datetime.date(2028, 11, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 60
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0083009 | Fines run at $100 per day up to a maximum of $1,000. How much after 56 days? $1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0083010 | If a 6-year limitations period starts on November 1, 2024, when does it end?
A short script:
```python
from datetime import date
accrued = date(2024, 11, 1) # datetime.date(2024, 11, 1)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2030, 11, 1)
print(expires.isoformat())
```
# consol... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2030-11-01", "printed": "2030-11-01", "notation": null} |
nlprog_det-setting-0083011 | <|start|><|user|>
Monthly: $19. Annual: $180. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 180
savings = monthly * 12 - yearly # 48
print(savings)
```
The script prints 48, as expected.
The annual plan saves $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $19. Annual: $180. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 180\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nThe script prints 48, as expected.\n\nThe annual plan sav... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0083012 | Scale 200 g of sugar from 6 servings to 3 servings.
A Python solution:
grams = 200
serves = 6
needed_for = 3
scaled = grams * needed_for // serves # 100
print(scaled)
It prints: 100
Use 100 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0083013 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Split $1,528 between Malik and Viktor in the ratio 3 to 5. What is Malik's share?<|eot|>
<|assistant|>
total = 1528
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 573
print(share_a)
The printout reads: 5... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Split $1,528 between Malik and Viktor in the ratio 3 to 5. What is Malik's share?"
},
{
"role": "assistant",
"content": " total = 1528\n parts_a = 3\n parts_b = 5\n share_a =... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "573", "printed": "573", "notation": null} |
nlprog_det-setting-0083014 | Shipping costs $10 plus $0.75 per pound. What does a 23-pound parcel cost to ship?
Shipping costs $27.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "27.25", "printed": "27.25", "notation": null} |
nlprog_det-setting-0083015 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A customer buys 3 toner kits at $2 each, 5 labels at $17 each, 6 calendars at $12 each, 6 markers at $27 each and pays with $350. How much change is due?<|eot|>
<|assistant|>
$25 comes back.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A customer buys 3 toner kits at $2 each, 5 labels at $17 each, 6 calendars at $12 each, 6 markers at $27 each and pays with $350. How much change is due?"
},
{
"role": "assistant",
"content": "$25... | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0083016 | A count moves from 2,500 to 2,625. By what percent did it change (use a minus sign for a drop)?
Python:
```python
old = 2500
new = 2625
change = (new - old) / old * 100 # 5.0
print(round(change))
```
Run result: 5
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0083017 | 143 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
Python:
```python
total = 143
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Execution result: 15 each, 8 left over)
The answer: 15 each, 8 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "15 each, 8 left over", "printed": "15 each, 8 left over", "notation": null} |
nlprog_det-setting-0083019 | At 40 miles per hour, how many minutes does a 150-mile trip take?
```python
distance = 150
speed = 40
minutes = distance / speed * 60 # 225.0
print(round(minutes))
```
This prints: 225
The trip takes 225 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0083020 | <|start|><|user|>
Each of Eamon's bike rides burns 150 calories. How many calories over 5 bike rides?<|eot|>
<|assistant|>
750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Eamon's bike rides burns 150 calories. How many calories over 5 bike rides?"
},
{
"role": "assistant",
"content": "750 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0083021 | <|start|><|user|>
The firm was founded in 1995. How many years had passed by 2027?<|eot|>
<|assistant|>
That is 32 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 1995. How many years had passed by 2027?"
},
{
"role": "assistant",
"content": "That is 32 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0083022 | 3 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 3 # 7000.0
print(f"{per_client:.2f}")
```
(Program output: 7000.00)
Each share is $7,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0083023 | Of a $2,000 budget, $1,000 has been spent. What percent is that?
Python code:
```python
budget = 2000
spent = 1000
percent = spent / budget * 100
print(round(percent, 1))
```
# printed result: 50.0
50.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0083024 | From 2018 to 2025, how many years is that?
Python:
```python
start_year = 2018
end_year = 2025
print(end_year - start_year)
```
What it prints: 7
That is 7 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0083025 | One can of paint covers 350 square feet. How many cans are needed for 406 square feet of wall?
Program:
```python
import math
area = 406
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
```
Running it prints 2, as expected.
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0083026 | <|start|><|user|>
A lawyer's fee is 30% of a $60,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
It prints: 18000.00
The lawyer's fee comes to $18,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 30% of a $60,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 18000.0\nprint(f\"{fee:.2f}\")\n```\nIt prints: 18000.00\n\nThe lawyer's fee comes... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0083027 | A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 6-page copy cost?
Python:
```python
pages = 6
base = 10
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 10.0
print(f"{cost:.2f}")
```
Out — 10.00
The copy costs $10.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0083028 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A appointment starts at 12:40 PM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
The appointment finishes at 1:55 PM.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A appointment starts at 12:40 PM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "The appointment finishes at 1:55 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "1:55 PM", "printed": "1:55 PM", "notation": null} |
nlprog_det-setting-0083029 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Someone born April 10, 1995 turns how old by March 6, 2024? Give the age in whole years.<|eot|>
<|assistant|>
Jonas is 28.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Someone born April 10, 1995 turns how old by March 6, 2024? Give the age in whole years."
},
{
"role": "assistant",
"content": "Jonas is 28."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0083030 | Meals are $59 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights?
In code:
```python
days = 6
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1229
print(total)
```
Running it prints: 1229
The allowance is $1,229. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1229", "printed": "1229", "notation": null} |
nlprog_det-setting-0083031 | A 9-day trip pays $79 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?
Python makes this quick:
```python
days = 9
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 2111
print(total)
```
Run output — 2111
The allowance is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2111", "printed": "2111", "notation": null} |
nlprog_det-setting-0083032 | The firm was founded in 2018. How many years had passed by 2040?
Coded up:
```python
start_year = 2018
end_year = 2040
print(end_year - start_year)
```
The interpreter prints 22.
That is 22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0083033 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Equipment costs $45,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 0
years = 4
per_year = (cost - salvage) / years # 11250.0
print(f"... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Equipment costs $45,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0083034 | Parking is $2 per hour with a daily maximum of $20. What do 7 hours cost?
Python code:
```python
rate = 2
hours = 7
daily_max = 20
cost = min(rate * hours, daily_max) # 14
print(cost)
```
Execution result — 14
The charge is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0083035 | A 6-day trip pays $59 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?
The allowance is $1,229. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "1229", "printed": "1229", "notation": null} |
nlprog_det-setting-0083036 | <|start|><|system|>
Tool definitions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"code_runner\", \"description\": \"Executes... | nlprog_det | setting | original | null | deterministic | [] | [] | 278 | {"gold": "18.32", "printed": "18.32", "notation": null} |
nlprog_det-setting-0083037 | A $3,600 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
One way, in code:
```python
principal = 3600
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 432.0
payment = (principal + inte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "168.00", "printed": "168.00", "notation": null} |
nlprog_det-setting-0083038 | At 40 miles per hour, how many minutes does a 120-mile trip take?
A Python solution:
```python
distance = 120
speed = 40
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
It prints: 180
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0083039 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $2,393, $1,403. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [2393, 1403]
left = budget - sum(expenses) # 16204
print(left)
```
Python prints: 16204
$16,204 is left.<|eot|... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $2,393, $1,403. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [2393, 1403]\nleft = budge... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "16204", "printed": "16204", "notation": null} |
nlprog_det-setting-0083040 | A $48,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?
Python does the arithmetic:
```python
grant = 48000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 7500.0
print(f"{each:.2f}")
```
The code prints 7500.00.
$7,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0083041 | Filing fees are $350 per document. What do 15 filings cost?
Here is a short program for it.
```python
fee = 350
filings = 15
total = fee * filings # 5250
print(total)
```
(Console output: 5250)
$5,250 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "5250", "printed": "5250", "notation": null} |
nlprog_det-setting-0083043 | <|start|><|user|>
With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 10500
costs = 8000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 23.809523809523807
print(round(margin, 1))
```
This prints: 23.8
The ma... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 10500\ncosts = 8000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 23.80952380952... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "23.8", "printed": "23.8", "notation": null} |
nlprog_det-setting-0083044 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "1368", "printed": "1368", "notation": null} |
nlprog_det-setting-0083045 | <|start|><|user|>
Which is cheaper per unit: 8 for $10.19 (A) or 20 for $13.30 (B)?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $10.19 (A) or 20 for $13.30 (B)?"
},
{
"role": "assistant",
"content": "B has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0083046 | Parking is $3 per hour with a daily maximum of $24. What do 10 hours cost?
```python
rate = 3
hours = 10
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Interpreter output — 24
Parking costs $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0083047 | <|start|><|user|>
How many minutes pass from 9:18 AM to 10:31 AM on the same day?<|eot|>
<|assistant|>
73 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 9:18 AM to 10:31 AM on the same day?"
},
{
"role": "assistant",
"content": "73 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0083048 | A $9,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Script:
```python
principal = 9000
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 1620.0
payment = (principal + interest) / m... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "295.00", "printed": "295.00", "notation": null} |
nlprog_det-setting-0083049 | <|start|><|user|>
A shift starts at 11:00 AM and lasts 90 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 0
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Run result: 12:30 PM
It ends at 12:30 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift starts at 11:00 AM and lasts 90 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 0\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0083050 | Counting only Monday through Friday, how many business days are there after April 4, 2025 through April 22, 2025?
Code:
```python
from datetime import date, timedelta
start = date(2025, 4, 4)
end = date(2025, 4, 22)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0083051 | A quorum is 3/5 of the 26 members, rounded up. How many members make a quorum?
```python
import math
members = 26
quorum = math.ceil(members * 3 / 5) # 16
print(quorum)
```
(stdout: 16)
16 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0083052 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Attendance was 53 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 53
total = 100
percent = present / total * 100 # 53.0
print(round(percent, 1))
```
Run output: 53.0
Attendance was 53.0%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Attendance was 53 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 53\ntotal = 100\npercent = present / total * 100 # 53.0\nprint(round... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "53.0", "printed": "53.0", "notation": null} |
nlprog_det-setting-0083053 | 4 claimants share a $7,348 settlement equally. What is each share?
In Python:
```python
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
```
stdout — 1837
Each party receives $1,837. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0083054 | <|start|><|user|>
44 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
Attendance was 55.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "44 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "Attendance was 55.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0083056 | <|start|><|user|>
A party has 30 days to respond to a motion served on June 5, 2018, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2018, 6, 5) # datetime.date(2018, 6, 5)
response_days = 30
mail_days = 3
due = ... | chat | [
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on June 5, 2018, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2018, 6, 5) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2018-07-08", "printed": "2018-07-08", "notation": null} |
nlprog_det-setting-0083059 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "141", "printed": "141", "notation": null} |
nlprog_det-setting-0083060 | Copies cost $15 plus $0.50 for each page beyond 10. How much for 82 pages?
As a program:
pages = 82
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 51.0
print(f"{cost:.2f}")
# printed: 51.00
The copy costs $51.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "51.00", "printed": "51.00", "notation": null} |
nlprog_det-setting-0083061 | Convert 7,381 EUR to USD at 1 EUR = 1.12 USD.
Here is the program.
```python
amount = 7381
rate = 1.12
converted = amount * rate # 8266.720000000001
print(f"{converted:.2f}")
```
Run it and it prints: 8266.72
That is 8,266.72 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "8266.72", "printed": "8266.72", "notation": null} |
nlprog_det-setting-0083062 | Walls total 1007 sq ft and each can covers 350 sq ft. How many cans should be bought?
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0083064 | 12 hours of work at $225 an hour: what is the total charge?
Written as code:
```python
hours = 12
rate = 225
bill = hours * rate # 2700
print(f"{bill:.2f}")
```
Run result: 2700.00
That comes to $2,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0083065 | Goods bought on May 16, 2018 carry a 24-month warranty. When does it expire?
Here is the program.
```python
from datetime import date
start = date(2018, 5, 16)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Res... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2020-05-16", "printed": "2020-05-16", "notation": null} |
nlprog_det-setting-0083066 | From 2009 to 2029, how many years is that?
Here is a short program for it.
```python
start_year = 2009
end_year = 2029
print(end_year - start_year)
```
# result: 20
20 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0083067 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
At 1.5% a month (simple), what interest builds on $1,000 over 3 months?<|eot|>
<|assistant|>
balance = 1000
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 45.0
print(f"{interest:.2f}")
The printout... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $1,000 over 3 months?"
},
{
"role": "assistant",
"content": " balance = 1000\n monthly_rate = 1.5 / 100 # 0.015\n months = 3\n inter... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0083069 | A hearing is set for April 3, 2017. What day of the week is that?
The computation:
```python
from datetime import date
hearing = date(2017, 4, 3) # datetime.date(2017, 4, 3)
print(hearing.strftime("%A"))
```
This prints: Monday
April 3, 2017 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0083070 | Express 115 hours in days and hours.
In Python:
hours = 115
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Shell output: 4 days and 19 hours
115 hours is 4 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "4 days and 19 hours", "printed": "4 days and 19 hours", "notation": null} |
nlprog_det-setting-0083072 | <|start|><|user|>
A party has 28 days to respond to a motion served on March 13, 2026, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 3, 13) # datetime.date(2026, 3, 13)
response_days = 28
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on March 13, 2026, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2026, 3, 13) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2026-04-13", "printed": "2026-04-13", "notation": null} |
nlprog_det-setting-0083074 | 2 claimants share a $4,500 settlement equally. What is each share?
Programmatically:
```python
settlement = 4500
parties = 2
share = settlement // parties # 2250
print(share)
```
Printed result: 2250
Each share is $2,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0083076 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A claim accrued on August 12, 2024. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2024, 8, 12) # datetime.date(2024, 8, 12)
years = 6
expires = accrued.replace(year... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A claim accrued on August 12, 2024. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2024, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2030-08-12", "printed": "2030-08-12", "notation": null} |
nlprog_det-setting-0083077 | How much sales tax is charged on a $408.19 purchase at 7%?
A few lines of Python do it:
```python
price = 408.19
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 28.573300000000003
print(f"{tax:.2f}")
```
Run it and it prints 28.57.
The tax is $28.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "28.57", "printed": "28.57", "notation": null} |
nlprog_det-setting-0083078 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $1,000. How much after 22 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 22
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Console output: 1000)
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $1,000. How much after 22 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 22\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Console output: 1000)\n\n$1,000 is owed."... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0083079 | 2 books come back 11 days late, at $0.10 a day each. What is the fine?
A few lines of Python do it:
```python
per_day = 0.1
days_late = 11
books = 2
fine = per_day * days_late * books # 2.2
print(f"{fine:.2f}")
```
Running it prints 2.20.
The fine is $2.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2.20", "printed": "2.20", "notation": null} |
nlprog_det-setting-0083080 | Goods bought on March 9, 2020 carry a 6-month warranty. When does it expire?
Python, step by step:
```python
from datetime import date
start = date(2020, 3, 9)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# ex... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2020-09-09", "printed": "2020-09-09", "notation": null} |
nlprog_det-setting-0083081 | Convert 5 h 13 min (the length of a workshop) to minutes.
```python
hours = 5
minutes = 13
total_minutes = hours * 60 + minutes # 313
print(total_minutes)
```
Output — 313
The workshop lasted 313 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0083082 | <|start|><|user|>
A storeroom has 730 pens. The office uses 34 a day. How many are left after 15 days?<|eot|>
<|assistant|>
```python
stock = 730
per_day = 34
days = 15
left = stock - per_day * days # 220
print(left)
```
Console output — 220
220 pens are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 730 pens. The office uses 34 a day. How many are left after 15 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 730\nper_day = 34\ndays = 15\nleft = stock - per_day * days # 220\nprint(left)\n```\nConsole output — 220\n\n220 pens are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0083083 | A bicycle helmet costs $250. It is 10% off. What is the sale price?
Let's compute it with Python.
```python
price = 250
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
Console:
225.00
It costs $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0083084 | The bridge was finished in 2005. How many years had passed by 2018?
Python version:
```python
start_year = 2005
end_year = 2018
print(end_year - start_year)
```
Run it and it prints 13.
That is 13 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0083085 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "description": "Searc... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0083086 | Find the mean of these test scores: 93, 73, 72 and 70.
```python
scores = [93, 73, 72, 70]
average = sum(scores) // len(scores) # 77
print(average)
```
The printout reads 77.
The average score is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0083087 | <|start|><|user|>
A count moves from 800 to 840. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 800
new = 840
change = (new - old) / old * 100 # 5.0
print(round(change))
```
# output: 5
The change is 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 840. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 800\nnew = 840\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\n# output: 5\n\nThe change is 5%."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0083088 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 319.35483870967744
print(f"{prorated:.2f}")
```
It prints 319.35, a... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 11\nprorated = rent * days_occupied / days_in_month # 319.35483... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "319.35", "printed": "319.35", "notation": null} |
nlprog_det-setting-0083089 | <|start|><|user|>
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
Printed result — 4800.00
The fee is $4,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 4800.0\nprint(f\"{fee:.2f}\")\n```\nPrinted result — 4800.00\n\nThe fee is $4,800.... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0083090 | Shipping costs $8 plus $0.75 per pound. What does a 35-pound parcel cost to ship?
Let the code do the arithmetic:
```python
base = 8
per_pound = 0.75
weight = 35
cost = base + per_pound * weight # 34.25
print(f"{cost:.2f}")
```
Running it prints: 34.25
Shipping costs $34.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "34.25", "printed": "34.25", "notation": null} |
nlprog_det-setting-0083091 | <|start|><|system|>
You can call tools. Available tools:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "define_word", "description": "Retu... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0083092 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A $120 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
The share is $46.00 each.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A $120 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "The share is $46.00 each."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "46.00", "printed": "46.00", "notation": null} |
nlprog_det-setting-0083093 | <|start|><|user|>
A pack of 24 labels sells for $1224. What does each cost?<|eot|>
<|assistant|>
```python
total = 1224
count = 24
per_item = total // count # 51
print(per_item)
```
The program prints 51, as expected.
The unit price is $51.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 labels sells for $1224. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1224\ncount = 24\nper_item = total // count # 51\nprint(per_item)\n```\nThe program prints 51, as expected.\n\nThe unit price is $51."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0083094 | Convert 3,269 GBP to USD at 1 GBP = 1.31 USD.
As Python:
```python
amount = 3269
rate = 1.31
converted = amount * rate # 4282.39
print(f"{converted:.2f}")
```
Executing it gives 4282.39, as expected.
That is 4,282.39 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4282.39", "printed": "4282.39", "notation": null} |
nlprog_det-setting-0083095 | How many units at $30 each (variable cost $24) cover $1,200 of fixed costs?
Here is the program.
import math
fixed = 1200
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 200
print(units)
On running, it outputs 200.
200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0083096 | A meeting starts at 8:45 AM and lasts 105 minutes. When does it end?
We can compute it in Python.
```python
start = 8 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Output: 10:30 AM)
It ends at 10:30 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "10:30 AM", "printed": "10:30 AM", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.