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-0048406 | The meal allowance is $59 per day. What is it for 3 days?
As Python:
```python
days = 3
meal_rate = 59
total = days * meal_rate # 177
print(total)
```
Python prints 177.
That comes to $177. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "177", "printed": "177", "notation": null} |
nlprog_det-setting-0048407 | Copies cost $10 plus $0.50 for each page beyond 10. How much for 58 pages?
pages = 58
base = 10
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 34.0
print(f"{cost:.2f}")
Console:
34.00
The copy costs $34.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "34.00", "printed": "34.00", "notation": null} |
nlprog_det-setting-0048408 | Under a 40% contingency agreement, what fee is owed on a $25,000 award?
Python:
```python
recovery = 25000
rate = 40 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
Python prints: 10000.00
The fee is $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0048410 | <|start|><|user|>
Jae and Bruna share $4,315 in the ratio 2:3. How much does Jae get?<|eot|>
<|assistant|>
Jae gets $1,726.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jae and Bruna share $4,315 in the ratio 2:3. How much does Jae get?"
},
{
"role": "assistant",
"content": "Jae gets $1,726."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1726", "printed": "1726", "notation": null} |
nlprog_det-setting-0048411 | <|start|><|user|>
A clerk's office charges $25 for each filing. Lena submits 3 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 25
filings = 3
total = fee * filings # 75
print(total)
```
# program output: 75
The total fee is $75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Lena submits 3 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 25\nfilings = 3\ntotal = fee * filings # 75\nprint(total)\n```\n# program output: 75\n\nThe total fee is $75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0048412 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Olga lends ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0048413 | Scale 240 g of sugar from 4 servings to 10 servings.
The program:
```python
grams = 240
serves = 4
needed_for = 10
scaled = grams * needed_for // serves # 600
print(scaled)
```
Printed: 600
600 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0048414 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A trial runs from February 24, 2028 to February 29, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 2, 24) # datetime.date(2028, 2, 24)
last = date(2028, 2, 29) # datetime.d... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A trial runs from February 24, 2028 to February 29, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0048415 | <|start|><|system|>
Tools (call with JSON):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "compute", "description": "Run Pyt... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 337 | {"gold": "5625.00", "printed": "5625.00", "notation": null} |
nlprog_det-setting-0048416 | A 36-month warranty starts on August 5, 2022. On what date does it end? It expires on August 5, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "2025-08-05", "printed": "2025-08-05", "notation": null} |
nlprog_det-setting-0048417 | <|start|><|system|>
Tools you may use:
{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "fetch_filing", "description": "Fetch... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 371 | {"gold": "23 each, 3 left over", "printed": "23 each, 3 left over", "notation": null} |
nlprog_det-setting-0048418 | <|start|><|user|>
A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 850
months = 18
total = monthly_rent * months # 15300
print(total)
The run gives 15300, as expected.
The rent over the term is $15,300.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 850\n months = 18\n total = monthly_rent * months # 15300\n print(total)\nThe run gives 15300, as expected.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "15300", "printed": "15300", "notation": null} |
nlprog_det-setting-0048419 | 7 hours of work at $225 an hour: what is the total charge?
Python, step by step:
hours = 7
rate = 225
bill = hours * rate # 1575
print(f"{bill:.2f}")
Python prints 1575.00, as expected.
The bill is $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0048420 | <|start|><|user|>
A garage charges $3 an hour, never more than $18 a day. How much for 8 hours?<|eot|>
<|assistant|>
```python
rate = 3
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Printed — 18
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $18 a day. How much for 8 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 8\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nPrinted — 18\n\nParking costs $18."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0048421 | Each of Zainab's walks burns 250 calories. How many calories over 4 walks?
Python code:
```python
per_session = 250
sessions = 4
total = per_session * sessions # 1000
print(total)
```
Console output — 1000
That burns 1000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0048422 | A 2 lb package ships at $8 base plus $1.20/lb. What is the charge?
The computation:
base = 8
per_pound = 1.2
weight = 2
cost = base + per_pound * weight # 10.4
print(f"{cost:.2f}")
On running, it outputs: 10.40
The charge is $10.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10.40", "printed": "10.40", "notation": null} |
nlprog_det-setting-0048424 | Equal monthly payments repay $2,400 plus 10% simple yearly interest over 12 months. How large is a payment?
One way, in code:
```python
principal = 2400
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 240.0
payment = (principal + interest) / months # 220.0
print(f"{paymen... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "220.00", "printed": "220.00", "notation": null} |
nlprog_det-setting-0048425 | How many meters are in 9.1 kilometers?
In Python:
```python
km = 9.1
meters = km * 1000 # 9100.0
print(round(meters))
```
Run output: 9100
That is 9,100 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "9100", "printed": "9100", "notation": null} |
nlprog_det-setting-0048426 | <|start|><|system|>
You may call the tools below.
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
With 13 rows of 24 c... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "289", "printed": "289", "notation": null} |
nlprog_det-setting-0048427 | <|start|><|user|>
What is a 20% tip on a $84.49 bill?<|eot|>
<|assistant|>
bill = 84.49
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 16.898
print(f"{tip:.2f}")
Shell output: 16.90
The tip is $16.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 20% tip on a $84.49 bill?"
},
{
"role": "assistant",
"content": " bill = 84.49\n tip_rate = 20 / 100 # 0.2\n tip = bill * tip_rate # 16.898\n print(f\"{tip:.2f}\")\nShell output: 16.90\n\nThe tip is $16.90."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "16.90", "printed": "16.90", "notation": null} |
nlprog_det-setting-0048428 | On which weekday does January 10, 2002 fall?
One way, in code:
```python
from datetime import date
hearing = date(2002, 1, 10)
print(hearing.strftime("%A"))
```
When run, it prints Thursday.
January 10, 2002 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0048429 | Uma has 12 documents to file, and each filing costs $90. How much are the filing fees in total?
$1,080 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1080", "printed": "1080", "notation": null} |
nlprog_det-setting-0048430 | <|start|><|user|>
The meal allowance is $64 per day. What is it for 5 days?<|eot|>
<|assistant|>
days = 5
meal_rate = 64
total = days * meal_rate # 320
print(total)
Run it and it prints 320.
That comes to $320.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $64 per day. What is it for 5 days?"
},
{
"role": "assistant",
"content": " days = 5\n meal_rate = 64\n total = days * meal_rate # 320\n print(total)\nRun it and it prints 320.\n\nThat comes to $320."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0048431 | <|start|><|user|>
A claim accrued on September 20, 2012. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 9, 20) # datetime.date(2012, 9, 20)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016... | chat | [
{
"role": "user",
"content": "A claim accrued on September 20, 2012. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2012, 9, 20) # datetime.date(2012, 9, 20)\nyears = 4\nexpires = accrue... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2016-09-20", "printed": "2016-09-20", "notation": null} |
nlprog_det-setting-0048432 | Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment?
We write it as a program:
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 1440.0
payment = (principal + interest) / months # 435.0
print(f... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "435.00", "printed": "435.00", "notation": null} |
nlprog_det-setting-0048433 | A meeting starts at 12:40 PM and lasts 105 minutes. When does it end?
The program:
```python
start = 12 * 60 + 40
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Program output: 2:25 PM)
The meeting finishes at 2:25 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2:25 PM", "printed": "2:25 PM", "notation": null} |
nlprog_det-setting-0048434 | How many days are there from December 27, 2028 to February 18, 2029?
Python code:
```python
from datetime import date
first = date(2028, 12, 27) # datetime.date(2028, 12, 27)
second = date(2029, 2, 18) # datetime.date(2029, 2, 18)
print((second - first).days)
```
It prints: 53
It is 53 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0048435 | Filing fees are $405 per document. What do 8 filings cost?
Computation in Python:
```python
fee = 405
filings = 8
total = fee * filings # 3240
print(total)
```
This prints 3240, as expected.
The total fee is $3,240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3240", "printed": "3240", "notation": null} |
nlprog_det-setting-0048436 | What is a 10% tip on a $154.79 bill?
Coded up:
```python
bill = 154.79
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 15.479
print(f"{tip:.2f}")
```
Printed = 15.48
Leave $15.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "15.48", "printed": "15.48", "notation": null} |
nlprog_det-setting-0048437 | 3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Python:
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 3 # 9600.0
print(f"{per_client:.2f}")
```
Executed, it shows 9600.00.
Each share is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0048438 | <|start|><|user|>
What simple interest does $20,000 earn at 5% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 20000
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 2000.0
print(f"{interest:.2f}")
```
stdout:
2000.00
It earns $2,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $20,000 earn at 5% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 20000\nrate = 5 / 100 # 0.05\nyears = 2\ninterest = principal * rate * years # 2000.0\nprint(f\"{interest:.2f}\")\n```\nstdout:\n2000.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0048439 | What is a 22% tip on a $228.22 bill?
Computing it:
```python
bill = 228.22
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 50.2084
print(f"{tip:.2f}")
```
This prints 50.21.
Leave $50.21. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "50.21", "printed": "50.21", "notation": null} |
nlprog_det-setting-0048440 | Pack A has 12 items for $8.78. Pack B has 24 items for $30.06. Which has the lower price per item?
Coded up:
```python
pack_a = 8.78 / 12
pack_b = 30.06 / 24
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
The run gives: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0048441 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after January 26, 2023 up to and including February 1, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 1, 26)
end = date(2023, 2, 1)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(day... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after January 26, 2023 up to and including February 1, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 26)\nend = date(2023, 2, 1)\ncount = 0\nfor k in rang... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0048442 | Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Python code:
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
On running, it outputs: 16.7
The marg... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0048443 | <|start|><|system|>
You may call the tools below.
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
At an exchange rate of 0.9... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "7147.48", "printed": "7147.48", "notation": null} |
nlprog_det-setting-0048444 | A $12,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?
Let's compute it with Python.
```python
grant = 12000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Printed = 3000.00
$3,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0048445 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
From 2002 to 2031, how many years is that?<|eot|>
<|assistant|>
That is 29 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "From 2002 to 2031, how many years is that?"
},
{
"role": "assistant",
"content": "That is 29 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0048446 | A measure needs at least 67% of 36 votes. How many votes is that, rounded up?
Let the code do the arithmetic:
```python
import math
voters = 36
needed = math.ceil(voters * 67 / 100) # 25
print(needed)
```
The printout reads 25.
At least 25 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0048447 | How many weekdays (Monday to Friday) fall after December 10, 2018 up to and including January 13, 2019?
Python code:
```python
from datetime import date, timedelta
start = date(2018, 12, 10)
end = date(2019, 1, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0048448 | 40 keyboards cost $15 apiece. With 6% tax added, what is the total?
Here's the code.
```python
quantity = 40
unit_price = 15
subtotal = quantity * unit_price # 600
total = subtotal * (1 + 6 / 100) # 636.0
print(f"{total:.2f}")
```
That prints 636.00.
The invoice total is $636.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "636.00", "printed": "636.00", "notation": null} |
nlprog_det-setting-0048450 | A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
A Python solution:
```python
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 3833.3333333333335
print(f"{each:.2f}")
```
# printed: 3833.33
$3,833.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0048451 | <|start|><|user|>
Shipping costs $8 plus $2.50 per pound. What does a 8-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 2.5
weight = 8
cost = base + per_pound * weight # 28.0
print(f"{cost:.2f}")
```
# stdout: 28.00
Shipping costs $28.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $8 plus $2.50 per pound. What does a 8-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 2.5\nweight = 8\ncost = base + per_pound * weight # 28.0\nprint(f\"{cost:.2f}\")\n```\n# stdout: 28.00\n\nShippi... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0048452 | How many of 53 votes make 67% (round up)?
Programmatically:
```python
import math
voters = 53
needed = math.ceil(voters * 67 / 100) # 36
print(needed)
```
On running, it outputs: 36
36 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0048453 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?<|eot|>
<|assistant|>
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "Parking costs $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0048454 | <|start|><|user|>
40 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 40
total = 50
percent = present / total * 100 # 80.0
print(round(percent, 1))
```
stdout = 80.0
80.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "40 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 40\ntotal = 50\npercent = present / total * 100 # 80.0\nprint(round(percent, 1))\n```\nstdout = 80.0\n\n80.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0048455 | A water bill is $18 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
Set it up in Python:
```python
base = 18
rate = 4.75
used = 20
free = 3
bill = base + rate * max(0, used - free) # 98.75
print(f"{bill:.2f}")
```
(Execution result: 98.75)
The bill is $98.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "98.75", "printed": "98.75", "notation": null} |
nlprog_det-setting-0048456 | Priya and Kaito share $1,797 in the ratio 1:2. How much does Priya get?
The computation:
```python
total = 1797
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 599
print(share_a)
```
When run, it prints 599.
Priya's share is $599. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "599", "printed": "599", "notation": null} |
nlprog_det-setting-0048457 | A 14 lb package ships at $10 base plus $2.50/lb. What is the charge?
Script:
```python
base = 10
per_pound = 2.5
weight = 14
cost = base + per_pound * weight # 45.0
print(f"{cost:.2f}")
```
# console output: 45.00
Shipping costs $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0048458 | A 13 × 4 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Program:
```python
import math
length = 13
width = 4
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 13
print(tiles)
```
(Printed: 13)
It takes 13 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0048459 | <|start|><|user|>
The rules require 3/5 of 7 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 7
quorum = math.ceil(members * 3 / 5) # 5
print(quorum)
```
The run gives 5.
5 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 7 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 7\nquorum = math.ceil(members * 3 / 5) # 5\nprint(quorum)\n```\nThe run gives 5.\n\n5 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0048460 | <|start|><|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 11,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 11
free = 2
bill = base + rate * max(0, used - free) # 52.800000000000004
print(f"{bill:.2f}")
```
The code prints: 52.80
$52.80 is owed.<... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 11,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 11\nfree = 2\nbill = base + rate * max(0, used - free) # 52.800000000000004\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "52.80", "printed": "52.80", "notation": null} |
nlprog_det-setting-0048461 | 160 copies of a 34-page packet are printed at $0.10 per page. What is the cost?
A Python solution:
```python
pages = 34
copies = 160
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 544.0
print(f"{cost:.2f}")
```
That prints: 544.00
Printing costs $544.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "544.00", "printed": "544.00", "notation": null} |
nlprog_det-setting-0048462 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
From 1998 to 2034, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1998
end_year = 2034
print(end_year - start_year)
```
Out — 36
36 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "From 1998 to 2034, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1998\nend_year = 2034\nprint(end_year - start_year)\n```\nOut — 36\n\n36 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0048463 | A customer buys 6 staplers at $5 each, 4 folders at $4 each, 4 sticky pads at $10 each, 3 mugs at $24 each and pays with $200. How much change is due?
We can compute it in Python.
items = [(6, 5), (4, 4), (4, 10), (3, 24)]
total = sum(q * p for q, p in items) # 158
paid = 200
change = paid - total # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0048464 | How many days are there from May 21, 2023 to October 22, 2023?
Let's compute it with Python.
```python
from datetime import date
first = date(2023, 5, 21) # datetime.date(2023, 5, 21)
second = date(2023, 10, 22) # datetime.date(2023, 10, 22)
print((second - first).days)
```
Result — 154
There are 154 days between t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0048465 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
How many of 279 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 279
needed = math.ceil(voters * 67 / 100)
print(needed)
```
Output: 187
At least 187 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "How many of 279 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 279\nneeded = math.ceil(voters * 67 / 100)\nprint(needed)\n```\nOutput... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0048466 | A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 7 thousand gallons?
base = 18
rate = 4.75
used = 7
free = 2
bill = base + rate * max(0, used - free) # 41.75
print(f"{bill:.2f}")
The interpreter prints 41.75.
$41.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "41.75", "printed": "41.75", "notation": null} |
nlprog_det-setting-0048467 | <|start|><|user|>
Idris's scores were 87, 75, 61, 80 and 52. What is the average score?<|eot|>
<|assistant|>
scores = [87, 75, 61, 80, 52]
average = sum(scores) // len(scores) # 71
print(average)
# execution result: 71
The mean is 71.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Idris's scores were 87, 75, 61, 80 and 52. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [87, 75, 61, 80, 52]\n average = sum(scores) // len(scores) # 71\n print(average)\n# execution result: 71\n\nThe mean is 71."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0048468 | <|start|><|user|>
Of a $4,000 budget, $2,300 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 2300
percent = spent / budget * 100 # 57.49999999999999
print(round(percent, 1))
```
# result: 57.5
That is 57.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $4,000 budget, $2,300 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 2300\npercent = spent / budget * 100 # 57.49999999999999\nprint(round(percent, 1))\n```\n# result: 57.5\n\nThat is 57.5% of the... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "57.5", "printed": "57.5", "notation": null} |
nlprog_det-setting-0048469 | What is a 18% tip on a $151.30 bill?
As Python:
```python
bill = 151.3
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 27.234
print(f"{tip:.2f}")
```
Executing it gives 27.23, as expected.
Leave $27.23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "27.23", "printed": "27.23", "notation": null} |
nlprog_det-setting-0048470 | Fines run at $100 per day up to a maximum of $2,500. How much after 20 days?
A few lines of Python do it:
```python
per_day = 100
days = 20
cap = 2500
fine = min(per_day * days, cap) # 2000
print(fine)
```
Execution prints 2000.
$2,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0048471 | Convert 0 °C to Fahrenheit.
Computation in Python:
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Python prints 32.
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0048472 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after November 16, 2025 through December 25, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 11, 16)
end = date(2025, 12, 25)
count = 0
for k in range(1, (end - start).days + 1):
if (... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after November 16, 2025 through December 25, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 11, 16)\nend = date(2025, 12, 25)\ncou... | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0048473 | <|start|><|user|>
Counting the first and last day, how many days are there from February 13, 2022 through March 2, 2022?<|eot|>
<|assistant|>
from datetime import date
first = date(2022, 2, 13) # datetime.date(2022, 2, 13)
last = date(2022, 3, 2) # datetime.date(2022, 3, 2)
days = (last - first).days ... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from February 13, 2022 through March 2, 2022?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2022, 2, 13) # datetime.date(2022, 2, 13)\n last = date(2022, 3, 2) # d... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0048474 | To read 247 pages in 19 days, how many pages per day are needed?
Written as code:
pages = 247
days = 19
per_day = pages // days # 13
print(per_day)
# stdout: 13
That is 13 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0048475 | Papers were served by mail on December 9, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
A Python solution:
```python
from datetime import date, timedelta
served = date(2027, 12, 9) # datetime.date(2027, 12, 9)
response_days = 30
mail_days = 3
due = served + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 186 | {"gold": "2028-01-11", "printed": "2028-01-11", "notation": null} |
nlprog_det-setting-0048476 | How many of 50 members form a majority (more than half)?
The Python version:
members = 50
majority = members // 2 + 1 # 26
print(majority)
It prints: 26
That is 26 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0048477 | <|start|><|user|>
What does $1,000 grow to in 2 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 1102.5
print(f"{value:.2f}")
```
Printed = 1102.50
It is worth $1,102.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 2 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 1102.5\nprint(f\"{value:.2f}\")\n```\nPrinted = 1102.50\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1102.50", "printed": "1102.50", "notation": null} |
nlprog_det-setting-0048478 | What is the total rent on a 36-month lease at $3,250 a month?
Here's the code.
```python
monthly_rent = 3250
months = 36
total = monthly_rent * months # 117000
print(total)
```
Running this gives: 117000
In total, $117,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0048480 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
To read 125 pages in 5 days, how many pages per day are needed?<|eot|>
<|assistant|>
That is 25 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "To read 125 pages in 5 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "That is 25 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0048481 | <|start|><|user|>
Count 60 days forward from September 21, 2023. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 9, 21) # datetime.date(2023, 9, 21)
end = start + timedelta(days=60) # datetime.date(2023, 11, 20)
print(end.isoformat())
```
Execution result — 20... | chat | [
{
"role": "user",
"content": "Count 60 days forward from September 21, 2023. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 9, 21) # datetime.date(2023, 9, 21)\nend = start + timedelta(days=60) # datetime.date(2023,... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2023-11-20", "printed": "2023-11-20", "notation": null} |
nlprog_det-setting-0048482 | A count moves from 1,000 to 600. By what percent did it change (use a minus sign for a drop)?
A short script:
```python
old = 1000
new = 600
change = (new - old) / old * 100 # -40.0
print(round(change))
```
(Execution result: -40)
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0048483 | Paula buys 9 boxes of 24 clipboards each and gives away 6 clipboards. How many clipboards are left?
Python code:
```python
boxes = 9
per_box = 24
given_away = 6
left = boxes * per_box - given_away # 210
print(left)
```
It prints 210, as expected.
210 clipboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0048485 | Walls total 894 sq ft and each can covers 300 sq ft. How many cans should be bought?
Python:
```python
import math
area = 894
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Program output — 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0048486 | How many minutes pass from 10:17 AM to 10:40 AM on the same day?
```python
start = 10 * 60 + 17
end = 10 * 60 + 40
print(end - start)
```
(Run result: 23)
23 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0048487 | What percentage of $8,000 is $3,000?
```python
budget = 8000
spent = 3000
percent = spent / budget * 100
print(round(percent, 1))
```
Program output — 37.5
37.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "37.5", "printed": "37.5", "notation": null} |
nlprog_det-setting-0048488 | What is 20 degrees Celsius in Fahrenheit?
Here's the code.
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
The program outputs: 68
It equals 68 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0048489 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"compute\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 296 | {"gold": "10.25", "printed": "10.25", "notation": null} |
nlprog_det-setting-0048490 | At $15.79 an hour, what does 16 hours of work pay?
Python:
```python
rate = 15.79
hours = 16
earnings = rate * hours # 252.64
print(f"{earnings:.2f}")
```
Out: 252.64
That earns $252.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "252.64", "printed": "252.64", "notation": null} |
nlprog_det-setting-0048491 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 53
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 436.79999999999995
pay = regular + overtime # 1332.8
print(f"{pay:.2f}")
```
Resu... | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 53\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 436.79999999999995\npay ... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "1332.80", "printed": "1332.80", "notation": null} |
nlprog_det-setting-0048493 | Rent of $900 goes up 3%. What is the new rent?
The program:
```python
rent = 900
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 927.0
print(f"{new_rent:.2f}")
```
The interpreter prints: 927.00
The new rent is $927.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0048494 | <|start|><|user|>
A 17 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 17
width = 11
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 47
print(tiles)
# result: 47
It takes 47 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 17 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 17\n width = 11\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 47\n print(tiles)\n# ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0048495 | Express 276 hours in days and hours.
276 hours is 11 days and 12 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "11 days and 12 hours", "printed": "11 days and 12 hours", "notation": null} |
nlprog_det-setting-0048496 | <|start|><|user|>
How many minutes pass from 7:57 AM to 9:12 AM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 57 # 477
end = 9 * 60 + 12 # 552
print(end - start)
```
Running it prints: 75
75 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:57 AM to 9:12 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 57 # 477\nend = 9 * 60 + 12 # 552\nprint(end - start)\n```\nRunning it prints: 75\n\n75 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0048497 | <|start|><|user|>
At 2% a month (simple), what interest builds on $4,000 over 2 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 160.0
print(f"{interest:.2f}")
```
The printout reads: 160.00
$160.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $4,000 over 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 160.0\nprint(f\"{interest:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0048498 | Convert 56.4 km to meters.
Code:
km = 56.4
meters = km * 1000 # 56400.0
print(round(meters))
(Console output: 56400)
That is 56,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "56400", "printed": "56400", "notation": null} |
nlprog_det-setting-0048499 | Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Coded up:
```python
cost = 12000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 1250.0
print(f"{per_year:.2f}")
```
(stdout: 1250.00)
Depreciation is $1,250.00 per ye... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0048500 | An attorney bills 7 hours at $410 per hour. What is the bill?
Python code:
```python
hours = 7
rate = 410
bill = hours * rate # 2870
print(f"{bill:.2f}")
```
Run result: 2870.00
The bill is $2,870.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2870.00", "printed": "2870.00", "notation": null} |
nlprog_det-setting-0048502 | <|start|><|user|>
Abel earns a 8% commission on $57,889 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 57889
rate = 8 / 100 # 0.08
commission = sales * rate # 4631.12
print(f"{commission:.2f}")
```
The program outputs 4631.12.
The commission is $4,631.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Abel earns a 8% commission on $57,889 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 57889\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 4631.12\nprint(f\"{commission:.2f}\")\n```\nThe program outputs 4631.12.\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4631.12", "printed": "4631.12", "notation": null} |
nlprog_det-setting-0048503 | With 30% off, what does a $90 bicycle helmet cost?
In code:
price = 90
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 62.99999999999999
print(f"{sale_price:.2f}")
# printed result: 63.00
The sale price is $63.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0048504 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A customer buys 3 ba... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0048505 | Find the mean of these test scores: 95, 54, 53, 54, 90 and 98.
Here is the program.
```python
scores = [95, 54, 53, 54, 90, 98]
average = sum(scores) // len(scores) # 74
print(average)
```
stdout = 74
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0048506 | Each of Yoko's swims burns 150 calories. How many calories over 4 swims?
As Python:
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
(Run result: 600)
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0048507 | Split $2,103 between Signe and Uma in the ratio 1 to 2. What is Signe's share?
The computation:
total = 2103
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 701
print(share_a)
Interpreter output: 701
Signe gets $701. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "701", "printed": "701", "notation": null} |
nlprog_det-setting-0048508 | A clerk's office charges $125 for each filing. Ada submits 6 filings. What is the total fee?
```python
fee = 125
filings = 6
total = fee * filings # 750
print(total)
```
stdout = 750
The filings cost $750 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0048509 | Convert 4,595 GBP to USD at 1 GBP = 1.35 USD.
Python:
```python
amount = 4595
rate = 1.35
converted = amount * rate # 6203.25
print(f"{converted:.2f}")
```
Result = 6203.25
It converts to 6,203.25 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "6203.25", "printed": "6203.25", "notation": null} |
nlprog_det-setting-0048510 | Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?
Programmatically:
```python
days = 3
meal_rate = 79
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
Printed result — 587
That comes to $587. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "587", "printed": "587", "notation": null} |
nlprog_det-setting-0048511 | Copies cost $10 plus $0.10 for each page beyond 0. How much for 16 pages?
Computation in Python:
```python
pages = 16
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 11.6
print(f"{cost:.2f}")
```
The script prints: 11.60
The copy costs $11.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "11.60", "printed": "11.60", "notation": null} |
nlprog_det-setting-0048512 | What day of the week is January 17, 2010?
Script:
```python
from datetime import date
hearing = date(2010, 1, 17) # datetime.date(2010, 1, 17)
print(hearing.strftime("%A"))
```
Python prints Sunday, as expected.
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.