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-0081407 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0081408 | <|start|><|user|>
Attendance was 67 out of 80. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 67
total = 80
percent = present / total * 100 # 83.75
print(round(percent, 1))
```
stdout:
83.8
Attendance was 83.8%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 67 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 67\ntotal = 80\npercent = present / total * 100 # 83.75\nprint(round(percent, 1))\n```\nstdout:\n83.8\n\nAttendance was 83.8%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "83.8", "printed": "83.8", "notation": null} |
nlprog_det-setting-0081410 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
A few lines of Python do it:
```python
rate = 16.0
hours = 42
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 48.0
pay = regular + overtime # 688.0
print(f"{pay:.2f}")
```
This prints 688.00, as expec... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "688.00", "printed": "688.00", "notation": null} |
nlprog_det-setting-0081411 | <|start|><|user|>
A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
old = 1200
new = 1680
change = (new - old) / old * 100 # 40.0
print(round(change))
Printed result: 40
The change is 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": " old = 1200\n new = 1680\n change = (new - old) / old * 100 # 40.0\n print(round(change))\nPrinted result: 40\n\nThe c... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0081412 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 24 months. How large is a payment?
Python does the arithmetic:
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 192.0
payment = (principal + interest) / months # 58.0
print(f... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0081413 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
2 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 2
share = settlement // parties # 600
print(share)
```
(Run result: 600)
Each share is $600.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "2 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 2\nshare = settlement // parties # 600\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0081414 | At $0.70 per mile, what is the reimbursement for 421 miles?
A short script:
```python
miles = 421
rate = 0.7
reimbursement = miles * rate # 294.7
print(f"{reimbursement:.2f}")
```
Run output: 294.70
The reimbursement is $294.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "294.70", "printed": "294.70", "notation": null} |
nlprog_det-setting-0081415 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "require... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0081416 | <|start|><|user|>
A kettle costs $75. It is 15% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 75
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 63.75
print(f"{sale_price:.2f}")
```
Result:
63.75
The sale price is $63.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $75. It is 15% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 63.75\nprint(f\"{sale_price:.2f}\")\n```\nResult:\n63.75\n\nThe sale price is... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "63.75", "printed": "63.75", "notation": null} |
nlprog_det-setting-0081417 | <|start|><|system|>
Available functions (JSON Schema):
[{"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": "Exec... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 | [] | [] | 411 | {"gold": "23.8", "printed": "23.8", "notation": null} |
nlprog_det-setting-0081418 | A $210 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
Written as code:
```python
bill = 210
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 40.24999999999999
print(f"{each:.2f}")
```
The run gives 40.25.
The share is $40.25 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "40.25", "printed": "40.25", "notation": null} |
nlprog_det-setting-0081419 | What simple interest does $2,500 earn at 5% a year over 3 years?
Python version:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 3
interest = principal * rate * years # 375.0
print(f"{interest:.2f}")
```
The script prints 375.00, as expected.
It earns $375.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0081420 | <|start|><|user|>
A customer buys 3 batteries at $21 each, 2 lanyards at $7 each, 5 cables at $6 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
```python
items = [(3, 21), (2, 7), (5, 6)]
total = sum(q * p for q, p in items) # 107
paid = 150
change = paid - total # 43
print(change)
```
It print... | chat | [
{
"role": "user",
"content": "A customer buys 3 batteries at $21 each, 2 lanyards at $7 each, 5 cables at $6 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 21), (2, 7), (5, 6)]\ntotal = sum(q * p for q, p in items) # 107\npaid = 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0081421 | A car travels 482 miles in 0.5 hours. What is its average speed in miles per hour?
Here is the program.
```python
distance = 482
hours = 0.5
speed = distance / hours # 964.0
print(round(speed))
```
The program prints 964.
The average speed is 964 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "964", "printed": "964", "notation": null} |
nlprog_det-setting-0081422 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $5,000. What is owed after 38 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 38
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
# printed: 5000
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 38 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 38\ncap = 5000\nfine = min(per_day * days, cap) # 5000\nprint(fine)\n```\n# printed: 5000\n\nThe fine is $5,000."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0081423 | At $0.65 per mile, what is the reimbursement for 412 miles?
Python version:
```python
miles = 412
rate = 0.65
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Running it prints 267.80, as expected.
Lucia is owed $267.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "267.80", "printed": "267.80", "notation": null} |
nlprog_det-setting-0081424 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A client paid a $7,500 retainer. The firm has billed 11 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 11
rate = 150
left = retainer - hours * rate # 5850
print(left)
```
Running it prints 5850.... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 11 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 11\nra... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5850", "printed": "5850", "notation": null} |
nlprog_det-setting-0081425 | Parking is $3 per hour with a daily maximum of $24. What do 6 hours cost?
Computing it:
rate = 3
hours = 6
daily_max = 24
cost = min(rate * hours, daily_max) # 18
print(cost)
That prints: 18
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081426 | A $1,500 security deposit has deductions of $85. How much is refunded?
Python version:
```python
deposit = 1500
deductions = [85]
refund = deposit - sum(deductions) # 1415
print(refund)
```
Executing it gives 1415.
$1,415 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1415", "printed": "1415", "notation": null} |
nlprog_det-setting-0081427 | <|start|><|user|>
The rules require 1/3 of 28 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 28
quorum = math.ceil(members * 1 / 3) # 10
print(quorum)
On running, it outputs 10.
That is 10 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 1/3 of 28 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 28\n quorum = math.ceil(members * 1 / 3) # 10\n print(quorum)\nOn running, it outputs 10.\n\nThat is 10 membe... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0081428 | A count moves from 400 to 380. By what percent did it change (use a minus sign for a drop)?
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0081429 | Convert 15 °C to Fahrenheit.
In code:
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
stdout = 59
It equals 59 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0081430 | What day of the week is January 11, 2006?
Python, step by step:
```python
from datetime import date
hearing = date(2006, 1, 11) # datetime.date(2006, 1, 11)
print(hearing.strftime("%A"))
```
Printed result — Wednesday
January 11, 2006 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0081431 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 25
free = 3
bill = base + rate * max(0, used - free) # 107.4
print(f"{bill:.2f}")
```
Run outpu... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 25\nfree ... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "107.40", "printed": "107.40", "notation": null} |
nlprog_det-setting-0081432 | A 3-day trip pays $59 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?
A few lines of Python do it:
```python
days = 3
meal_rate = 59
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
(Run result: 527)
The allowance is $527. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "527", "printed": "527", "notation": null} |
nlprog_det-setting-0081433 | Prorate $900 of monthly rent for 16 days of a 31-day month.
Coded up:
```python
rent = 900
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 464.51612903225805
print(f"{prorated:.2f}")
```
The script prints 464.52.
The prorated rent is $464.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "464.52", "printed": "464.52", "notation": null} |
nlprog_det-setting-0081434 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 1125
print(units)
```
The printout reads: 1125
Break-even i... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 7\nunits = math.ceil(fixed / (price - variable)) # 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0081435 | Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?
The computation:
```python
import math
fixed = 2500
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
This prints 500.
500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0081436 | Split $6,720 between Maren and Hana in the ratio 3 to 5. What is Maren's share?
total = 6720
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2520
print(share_a)
The script prints: 2520
Maren gets $2,520. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2520", "printed": "2520", "notation": null} |
nlprog_det-setting-0081437 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A 3-day trip pays $64 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?<|eot|>
<|assistant|>
days = 3
meal_rate = 64
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * l... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A 3-day trip pays $64 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": " days = 3\n meal_rate = 64\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "542", "printed": "542", "notation": null} |
nlprog_det-setting-0081438 | Printing costs 5 cents a page. What does it cost to print 37 copies of a 17-page handout?
```python
pages = 17
copies = 37
cost_per_page = 0.05
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
stdout — 31.45
The job costs $31.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "31.45", "printed": "31.45", "notation": null} |
nlprog_det-setting-0081439 | 2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Programmatically:
```python
award = 96000
fee = award * 25 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
Run it and it prints: 36000.00
Each share is $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0081440 | A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?
Program:
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
It prints 36.
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0081441 | Convert 42.5 km to meters.
Let the code do the arithmetic:
```python
km = 42.5
meters = km * 1000 # 42500.0
print(round(meters))
```
# program output: 42500
42,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "42500", "printed": "42500", "notation": null} |
nlprog_det-setting-0081442 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Count 14 days forward from Dec... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "2020-01-02", "printed": "2020-01-02", "notation": null} |
nlprog_det-setting-0081443 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
If a 40-minute seminar begins at 8:10 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 10
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
P... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "If a 40-minute seminar begins at 8:10 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 10\nend = start + 40\nhour, minute = divmod(en... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "8:50 AM", "printed": "8:50 AM", "notation": null} |
nlprog_det-setting-0081444 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after June 21, 2022 up to and including July 31, 2022?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2022, 6, 21)
end = date(2022, 7, 31)
count = 0
for k in range(1, (end - start).days + 1):
if (start + time... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 21, 2022 up to and including July 31, 2022?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2022, 6, 21)\n end = date(2022, 7, 31)\n count = 0\n for k in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0081446 | <|start|><|user|>
A hearing lasted 1 hours and 21 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 1
minutes = 21
total_minutes = hours * 60 + minutes # 81
print(total_minutes)
Python prints 81, as expected.
That is 81 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 1 hours and 21 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 1\n minutes = 21\n total_minutes = hours * 60 + minutes # 81\n print(total_minutes)\nPython prints 81, as expected.\n\nThat is 81 minutes.... | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0081447 | Find the mean of these test scores: 77, 69, 76, 80 and 93.
A short script:
```python
scores = [77, 69, 76, 80, 93]
average = sum(scores) // len(scores) # 79
print(average)
```
The run gives: 79
The average score is 79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0081448 | <|start|><|system|>
Functions:
[{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Which is cheaper per unit: 10 for $14.08 (A)... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0081449 | <|start|><|user|>
A chair costs $80. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
It costs $64.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A chair costs $80. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "It costs $64.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0081451 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
(Printed: 18)
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $18. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\n(Printed: 18)\n\nThe charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081452 | <|start|><|user|>
The meal allowance is $64 per day. What is it for 3 days?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 64
total = days * meal_rate # 192
print(total)
```
(Execution result: 192)
The allowance is $192.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $64 per day. What is it for 3 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 64\ntotal = days * meal_rate # 192\nprint(total)\n```\n(Execution result: 192)\n\nThe allowance is $192."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0081453 | Split $632 between Hugo and Reza in the ratio 1 to 3. What is Hugo's share?
Translated to Python:
```python
total = 632
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 158
print(share_a)
```
The program prints 158, as expected.
Hugo's share is $158. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "158", "printed": "158", "notation": null} |
nlprog_det-setting-0081454 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Straight-line depreciation: cost $30,000, salvage $2,000, 5 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 2000
years = 5
per_year = (cost - salvage) / years # 5600.0
print(f"{per_year:.2f}")
```
Output — 56... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $2,000, 5 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 2000\nyears = 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "5600.00", "printed": "5600.00", "notation": null} |
nlprog_det-setting-0081455 | A lease runs for 18 months at $1,475 per month. How much rent is paid over the whole term?
The rent over the term is $26,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0081456 | An invoice lists 22 paper reams at $5 each, plus 8% sales tax. What is the invoice total?
Python, step by step:
```python
quantity = 22
unit_price = 5
subtotal = quantity * unit_price # 110
total = subtotal * (1 + 8 / 100) # 118.80000000000001
print(f"{total:.2f}")
```
Python prints: 118.80
The total with tax is $1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "118.80", "printed": "118.80", "notation": null} |
nlprog_det-setting-0081457 | Parking is $5 per hour with a daily maximum of $20. What do 1 hours cost?
As Python:
```python
rate = 5
hours = 1
daily_max = 20
cost = min(rate * hours, daily_max) # 5
print(cost)
```
Execution prints 5.
The charge is $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0081458 | To read 462 pages in 11 days, how many pages per day are needed?
Programmatically:
```python
pages = 462
days = 11
per_day = pages // days # 42
print(per_day)
```
This prints: 42
42 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0081459 | Find the mean of these test scores: 67, 80, 65 and 96.
Code:
```python
scores = [67, 80, 65, 96]
average = sum(scores) // len(scores) # 77
print(average)
```
Running this gives: 77
The mean is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0081460 | Divide 167 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
The answer: 41 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "41 each, 3 left over", "printed": "41 each, 3 left over", "notation": null} |
nlprog_det-setting-0081461 | How many minutes pass from 7:52 AM to 1:54 PM on the same day?
We write it as a program:
```python
start = 7 * 60 + 52 # 472
end = 13 * 60 + 54 # 834
print(end - start)
```
Printed result — 362
362 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "362", "printed": "362", "notation": null} |
nlprog_det-setting-0081462 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Sales went from 400 to 480. What is the percent change?<|eot|>
<|assistant|>
```python
old = 400
new = 480
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Interpreter output: 20
The change is 20%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Sales went from 400 to 480. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 480\nchange = (new - old) / old * 100 # 20.0\nprint(round(ch... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0081463 | Olga buys 12 boxes of 8 rulers each and gives away 11 rulers. How many rulers are left?
Script:
```python
boxes = 12
per_box = 8
given_away = 11
left = boxes * per_box - given_away # 85
print(left)
```
Execution result: 85
That leaves 85 rulers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0081464 | <|start|><|user|>
How many whole days and leftover hours are in 306 hours?<|eot|>
<|assistant|>
```python
hours = 306
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Running this gives 12 days and 18 hours.
That is 12 days and 18 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 306 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 306\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRunning this gives 12 days and 18 hours.\n\nThat is 12 days and 18 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "12 days and 18 hours", "printed": "12 days and 18 hours", "notation": null} |
nlprog_det-setting-0081465 | <|start|><|system|>
Tools you may use:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"search_cases\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 361 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0081466 | Convert 2,077 USD to CAD at 1 USD = 1.31 CAD.
We can compute it in Python.
amount = 2077
rate = 1.31
converted = amount * rate # 2720.87
print(f"{converted:.2f}")
# console output: 2720.87
That is 2,720.87 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2720.87", "printed": "2720.87", "notation": null} |
nlprog_det-setting-0081467 | <|start|><|user|>
How long, in days, is it from October 17, 2027 until October 26, 2028?<|eot|>
<|assistant|>
It is 375 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from October 17, 2027 until October 26, 2028?"
},
{
"role": "assistant",
"content": "It is 375 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0081468 | A party has 30 days to respond to a motion served on December 12, 2020, with 3 days added because service was by mail. When is the response due?
As Python:
from datetime import date, timedelta
served = date(2020, 12, 12) # datetime.date(2020, 12, 12)
response_days = 30
mail_days = 3
due = served +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2021-01-14", "printed": "2021-01-14", "notation": null} |
nlprog_det-setting-0081469 | Split $5,383 between Hugo and Xavier in the ratio 3 to 4. What is Hugo's share?
Program:
```python
total = 5383
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2307
print(share_a)
```
When run, it prints: 2307
Hugo's share is $2,307. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2307", "printed": "2307", "notation": null} |
nlprog_det-setting-0081470 | A hall has 22 rows of 16 seats, and 6 seats are empty. How many people are seated?
Python code:
```python
rows = 22
per_row = 16
empty = 6
seated = rows * per_row - empty # 346
print(seated)
```
Printed = 346
346 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "346", "printed": "346", "notation": null} |
nlprog_det-setting-0081471 | Kofi was born on December 2, 1989. How old is Kofi on July 13, 2028?
A Python solution:
```python
from datetime import date
born = date(1989, 12, 2) # datetime.date(1989, 12, 2)
on = date(2028, 7, 13) # datetime.date(2028, 7, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 38
print(a... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0081472 | What simple interest does $2,500 earn at 4% a year over 3 years?
It earns $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0081473 | <|start|><|user|>
Of a $2,000 budget, $700 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 700
percent = spent / budget * 100
print(round(percent, 1))
```
Run result — 35.0
That is 35.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $2,000 budget, $700 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 700\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nRun result — 35.0\n\nThat is 35.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0081474 | Joelle earns a 3% commission on $42,183 of sales. What is the commission?
The program:
```python
sales = 42183
rate = 3 / 100 # 0.03
commission = sales * rate # 1265.49
print(f"{commission:.2f}")
```
Executed, it shows: 1265.49
The commission is $1,265.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1265.49", "printed": "1265.49", "notation": null} |
nlprog_det-setting-0081475 | <|start|><|user|>
An attorney bills 7 hours at $300 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 7
rate = 300
bill = hours * rate # 2100
print(f"{bill:.2f}")
The printout reads 2100.00.
That comes to $2,100.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 7 hours at $300 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 7\n rate = 300\n bill = hours * rate # 2100\n print(f\"{bill:.2f}\")\nThe printout reads 2100.00.\n\nThat comes to $2,100.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2100.00", "printed": "2100.00", "notation": null} |
nlprog_det-setting-0081476 | <|start|><|user|>
$2,000 is invested at 4% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 2163.2000000000003
print(f"{value:.2f}")
```
Executing it gives 2163.20, as expected.
It is worth $2,... | chat | [
{
"role": "user",
"content": "$2,000 is invested at 4% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 2163.2000000000003\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2163.20", "printed": "2163.20", "notation": null} |
nlprog_det-setting-0081477 | Shipping costs $10 plus $1.50 per pound. What does a 38-pound parcel cost to ship?
Computation in Python:
```python
base = 10
per_pound = 1.5
weight = 38
cost = base + per_pound * weight # 67.0
print(f"{cost:.2f}")
```
Run result: 67.00
Shipping costs $67.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "67.00", "printed": "67.00", "notation": null} |
nlprog_det-setting-0081478 | 1 books come back 23 days late, at $0.20 a day each. What is the fine?
Here's the code.
```python
per_day = 0.2
days_late = 23
books = 1
fine = per_day * days_late * books # 4.6000000000000005
print(f"{fine:.2f}")
```
Printed:
4.60
The fine is $4.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "4.60", "printed": "4.60", "notation": null} |
nlprog_det-setting-0081479 | <|start|><|user|>
How much sales tax is charged on a $587.28 purchase at 4%?<|eot|>
<|assistant|>
```python
price = 587.28
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 23.4912
print(f"{tax:.2f}")
```
Console output — 23.49
$23.49 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $587.28 purchase at 4%?"
},
{
"role": "assistant",
"content": "```python\nprice = 587.28\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 23.4912\nprint(f\"{tax:.2f}\")\n```\nConsole output — 23.49\n\n$23.49 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "23.49", "printed": "23.49", "notation": null} |
nlprog_det-setting-0081480 | A 649-page report must be reviewed in 11 days. How many pages a day is that, evenly?
In Python:
```python
pages = 649
days = 11
per_day = pages // days # 59
print(per_day)
```
Out:
59
59 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0081482 | Papers were served by mail on January 9, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Here is a short program for it.
```python
from datetime import date, timedelta
served = date(2018, 1, 9) # datetime.date(2018, 1, 9)
response_days = 28
mail_days = 3
due = serve... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-02-09", "printed": "2018-02-09", "notation": null} |
nlprog_det-setting-0081483 | Malik and Delia share $3,480 in the ratio 1:3. How much does Malik get?
Translated to Python:
total = 3480
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 870
print(share_a)
Running it prints 870.
Malik's share is $870. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "870", "printed": "870", "notation": null} |
nlprog_det-setting-0081484 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A settlement of $522 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
Program output: 87
Each share is $87.<|eot... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A settlement of $522 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 522\nparties = 6\nshare = s... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0081485 | Parking is $2 per hour with a daily maximum of $18. What do 2 hours cost?
Here is the program.
```python
rate = 2
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 4
print(cost)
```
Run output: 4
The charge is $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0081486 | A garage charges $2 an hour, never more than $24 a day. How much for 7 hours?
One way, in code:
```python
rate = 2
hours = 7
daily_max = 24
cost = min(rate * hours, daily_max) # 14
print(cost)
```
Out — 14
The charge is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0081487 | Of a $8,000 budget, $2,600 has been spent. What percent is that?
One way, in code:
```python
budget = 8000
spent = 2600
percent = spent / budget * 100
print(round(percent, 1))
```
(Execution result: 32.5)
That is 32.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "32.5", "printed": "32.5", "notation": null} |
nlprog_det-setting-0081489 | A settlement of $84,000 is split equally among 3 parties. How much does each party receive?
We write it as a program:
```python
settlement = 84000
parties = 3
share = settlement // parties # 28000
print(share)
```
(Printed result: 28000)
Each share is $28,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0081490 | Fines run at $250 per day up to a maximum of $5,000. How much after 51 days?
per_day = 250
days = 51
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
Result:
5000
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0081491 | Rafael's scores were 95, 50, 93, 99 and 73. What is the average score?
The mean is 82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0081492 | A customer buys 4 flash drives at $4 each, 1 flash drives at $20 each, 6 clipboards at $13 each, 4 notebooks at $16 each and pays with $200. How much change is due?
Code:
```python
items = [(4, 4), (1, 20), (6, 13), (4, 16)]
total = sum(q * p for q, p in items) # 178
paid = 200
change = paid - total # 22
print(chang... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0081493 | A clerk's office charges $405 for each filing. Bruna submits 9 filings. What is the total fee?
Python:
```python
fee = 405
filings = 9
total = fee * filings
print(total)
```
The script prints 3645, as expected.
The filings cost $3,645 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "3645", "printed": "3645", "notation": null} |
nlprog_det-setting-0081494 | Someone works 40 hours at $16.36 per hour. What are the earnings? That earns $654.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "654.40", "printed": "654.40", "notation": null} |
nlprog_det-setting-0081495 | With $20,000 in costs and $20,500 in revenue, what percent of revenue is profit? Round to one decimal.
Python does the arithmetic:
```python
revenue = 20500
costs = 20000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 2.4390243902439024
print(round(margin, 1))
```
Result = 2.4
The margin is 2.4%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2.4", "printed": "2.4", "notation": null} |
nlprog_det-setting-0081496 | A meeting lasted 5 hours and 19 minutes. How many minutes is that?
Python:
hours = 5
minutes = 19
total_minutes = hours * 60 + minutes # 319
print(total_minutes)
This prints 319.
The meeting lasted 319 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "319", "printed": "319", "notation": null} |
nlprog_det-setting-0081497 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 5 months?
Code:
```python
balance = 7500
monthly_rate = 2 / 100
months = 5
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
(Console output: 750.00)
$750.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0081498 | A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?
Computing it:
days = 6
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 994
print(total)
# program output: 994
The allowance i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0081499 | Each storage box holds 15 files. How many boxes are needed for 600 files?
```python
import math
files = 600
per_box = 15
boxes = math.ceil(files / per_box) # 40
print(boxes)
```
Run result — 40
It takes 40 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0081500 | A measure needs at least 60% of 176 votes. How many votes is that, rounded up?
Program:
```python
import math
voters = 176
needed = math.ceil(voters * 60 / 100) # 106
print(needed)
```
# output: 106
At least 106 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "106", "printed": "106", "notation": null} |
nlprog_det-setting-0081501 | Each of Arjun's walks burns 350 calories. How many calories over 3 walks?
Python version:
```python
per_session = 350
sessions = 3
total = per_session * sessions # 1050
print(total)
```
Output = 1050
1050 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0081502 | <|start|><|user|>
Each storage box holds 40 files. How many boxes are needed for 196 files?<|eot|>
<|assistant|>
import math
files = 196
per_box = 40
boxes = math.ceil(files / per_box) # 5
print(boxes)
This prints 5.
It takes 5 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 40 files. How many boxes are needed for 196 files?"
},
{
"role": "assistant",
"content": " import math\n files = 196\n per_box = 40\n boxes = math.ceil(files / per_box) # 5\n print(boxes)\nThis prints 5.\n\nIt takes 5 boxes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0081503 | Kemal lends $2,500 at 5% simple interest per year for 2 years. How much interest is earned?
The program:
principal = 2500
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 250.0
print(f"{interest:.2f}")
(Run result: 250.00)
It earns $250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0081504 | At an exchange rate of 0.92 CAD per USD, how many CAD is 336 USD?
Python code:
```python
amount = 336
rate = 0.92
converted = amount * rate # 309.12
print(f"{converted:.2f}")
```
# program output: 309.12
It converts to 309.12 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "309.12", "printed": "309.12", "notation": null} |
nlprog_det-setting-0081505 | How many meters are in 11.1 kilometers?
```python
km = 11.1
meters = km * 1000 # 11100.0
print(round(meters))
```
Run it and it prints 11100.
That is 11,100 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "11100", "printed": "11100", "notation": null} |
nlprog_det-setting-0081506 | The meal allowance is $74 per day. What is it for 6 days?
One way, in code:
```python
days = 6
meal_rate = 74
total = days * meal_rate # 444
print(total)
```
Printed:
444
The allowance is $444. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0081507 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Count 120 days forward from September 9, 2025. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 9, 9) # datetime.date(2025, 9, 9)
end = start + timedelta(days=120) # datetime.date(2026, 1, 7)
prin... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Count 120 days forward from September 9, 2025. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 9, 9) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2026-01-07", "printed": "2026-01-07", "notation": null} |
nlprog_det-setting-0081508 | At 45 miles per hour, how many minutes does a 255-mile trip take?
Python:
```python
distance = 255
speed = 45
minutes = distance / speed * 60 # 340.0
print(round(minutes))
```
Interpreter output: 340
The trip takes 340 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "340", "printed": "340", "notation": null} |
nlprog_det-setting-0081509 | A meal costs $143.77. How much is a 20% tip?
The program:
bill = 143.77
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 28.754000000000005
print(f"{tip:.2f}")
When run, it prints 28.75.
The tip is $28.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "28.75", "printed": "28.75", "notation": null} |
nlprog_det-setting-0081510 | <|start|><|user|>
A $800 security deposit has deductions of $45 and $85. How much is refunded?<|eot|>
<|assistant|>
The refund is $670.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $45 and $85. How much is refunded?"
},
{
"role": "assistant",
"content": "The refund is $670."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "670", "printed": "670", "notation": null} |
nlprog_det-setting-0081511 | <|start|><|system|>
You can call tools. Available tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatev... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"math_engine\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 380 | {"gold": "740", "printed": "740", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.