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-0069918 | Papers were served by mail on June 3, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
Programmatically:
from datetime import date, timedelta
served = date(2025, 6, 3) # datetime.date(2025, 6, 3)
response_days = 30
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "2025-07-06", "printed": "2025-07-06", "notation": null} |
nlprog_det-setting-0069919 | Divide 164 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
The computation:
```python
total = 164
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Program output — 23 each, 3 left over
23 each, 3 left o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "23 each, 3 left over", "printed": "23 each, 3 left over", "notation": null} |
nlprog_det-setting-0069920 | Monthly: $25. Annual: $288. What is saved per year by paying annually?
Python, step by step:
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
When run, it prints 12, as expected.
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0069921 | At a 6% tax rate, what is the tax on $697.74?
The computation:
```python
price = 697.74
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 41.864399999999996
print(f"{tax:.2f}")
```
Run output: 41.86
The tax is $41.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "41.86", "printed": "41.86", "notation": null} |
nlprog_det-setting-0069922 | <|start|><|user|>
Water costs $18 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 16,000 gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 5.1
used = 16
free = 3
bill = base + rate * max(0, used - free) # 84.3
print(f"{bill:.2f}")
```
That prints: 84.30
$84.30 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 16,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 5.1\nused = 16\nfree = 3\nbill = base + rate * max(0, used - free) # 84.3\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "84.30", "printed": "84.30", "notation": null} |
nlprog_det-setting-0069923 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "business_days"... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0069924 | Printing costs 10 cents a page. What does it cost to print 175 copies of a 6-page handout?
Translated to Python:
```python
pages = 6
copies = 175
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 105.0
print(f"{cost:.2f}")
```
Result: 105.00
The job costs $105.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0069925 | After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?
```python
grant = 48000
up_front = 6000
installments = 6
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
The script prints 7000.00, as expected.
$7,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0069926 | Starting with 1621 markers and using 35 per day, how many remain after 12 days?
Let the code do the arithmetic:
```python
stock = 1621
per_day = 35
days = 12
left = stock - per_day * days # 1201
print(left)
```
# stdout: 1201
1201 markers are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1201", "printed": "1201", "notation": null} |
nlprog_det-setting-0069927 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 9 thousand gallons?
Let the code do the arithmetic:
```python
base = 12
rate = 5.1
used = 9
free = 2
bill = base + rate * max(0, used - free) # 47.699999999999996
print(f"{bill:.2f}")
```
(stdout: 47.70)
$47.70 is o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "47.70", "printed": "47.70", "notation": null} |
nlprog_det-setting-0069928 | After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?
Each installment is $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0069929 | If a 4-year limitations period starts on October 20, 2012, when does it end?
Code:
from datetime import date
accrued = date(2012, 10, 20) # datetime.date(2012, 10, 20)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 10, 20)
print(expires.isoformat())
When run,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2016-10-20", "printed": "2016-10-20", "notation": null} |
nlprog_det-setting-0069930 | Split $1,456 between Jamal and Femi in the ratio 3 to 5. What is Jamal's share?
```python
total = 1456
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 546
print(share_a)
```
It outputs 546.
Jamal's share is $546. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "546", "printed": "546", "notation": null} |
nlprog_det-setting-0069931 | Fines run at $250 per day up to a maximum of $1,000. How much after 12 days?
The program:
```python
per_day = 250
days = 12
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Execution result — 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0069932 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A shift runs from 8:45 AM to 1:19 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 45 # 525
end = 13 * 60 + 19 # 799
print(end - start)
```
When run, it prints 274.
It is 274 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A shift runs from 8:45 AM to 1:19 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 45 # 525\nend = 13 * 60 + 19 # 799\nprint(end - start)\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "274", "printed": "274", "notation": null} |
nlprog_det-setting-0069933 | How many weekdays (Monday to Friday) fall after May 11, 2026 up to and including May 21, 2026?
```python
from datetime import date, timedelta
start = date(2026, 5, 11)
end = date(2026, 5, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count += 1
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0069934 | A client paid a $10,000 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?
Computation in Python:
retainer = 10000
hours = 5
rate = 275
left = retainer - hours * rate
print(left)
Python prints: 8625
The remaining balance is $8,625. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "8625", "printed": "8625", "notation": null} |
nlprog_det-setting-0069935 | The landlord deducts $75 from a $800 deposit. What is returned to the tenant?
Set it up in Python:
```python
deposit = 800
deductions = [75]
refund = deposit - sum(deductions) # 725
print(refund)
```
(Console output: 725)
$725 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "725", "printed": "725", "notation": null} |
nlprog_det-setting-0069936 | A 3% increase is applied to $1,250 monthly rent. What is the new amount?
Python, step by step:
```python
rent = 1250
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1287.5
print(f"{new_rent:.2f}")
```
Executing it gives 1287.50.
It rises to $1,287.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1287.50", "printed": "1287.50", "notation": null} |
nlprog_det-setting-0069937 | <|start|><|system|>
Tools you may use:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "py_exec", "description": "Runs a short Python snip... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "527", "printed": "527", "notation": null} |
nlprog_det-setting-0069938 | Which is cheaper per unit: 6 for $4.11 (A) or 30 for $26.58 (B)?
Here is a short program for it.
```python
pack_a = 4.11 / 6 # 0.685
pack_b = 26.58 / 30 # 0.8859999999999999
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# output: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0069939 | Scale 100 g of lentils from 2 servings to 12 servings.
The Python version:
```python
grams = 100
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
```
That prints: 600
Use 600 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0069940 | At a 6% tax rate, what is the tax on $205.05?
In code:
price = 205.05
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 12.303
print(f"{tax:.2f}")
(Run result: 12.30)
$12.30 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "12.30", "printed": "12.30", "notation": null} |
nlprog_det-setting-0069941 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
principal = 1000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 1216.6529024000001
print(f"{value:.2f}")
# out: 1... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": " principal = 1000\n rate = 4 / 100 # 0.04\n years = 5\n value = p... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1216.65", "printed": "1216.65", "notation": null} |
nlprog_det-setting-0069942 | A recipe for 2 people uses 200 grams of pasta. How many grams are needed for 3 people?
```python
grams = 200
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 300
print(scaled)
```
Result:
300
Use 300 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0069943 | If a 5-year limitations period starts on December 4, 2021, when does it end?
Python makes this quick:
```python
from datetime import date
accrued = date(2021, 12, 4) # datetime.date(2021, 12, 4)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 12, 4)
print(expires.isoformat())
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2026-12-04", "printed": "2026-12-04", "notation": null} |
nlprog_det-setting-0069944 | <|start|><|user|>
One can of paint covers 350 square feet. How many cans are needed for 1284 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1284
coverage = 350
cans = math.ceil(area / coverage)
print(cans)
```
Run it and it prints 4.
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 350 square feet. How many cans are needed for 1284 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1284\ncoverage = 350\ncans = math.ceil(area / coverage)\nprint(cans)\n```\nRun it and it prints 4.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0069945 | A car travels 304 miles in 2 hours. What is its average speed in miles per hour?
Programmatically:
```python
distance = 304
hours = 2
speed = distance / hours # 152.0
print(round(speed))
```
(Console output: 152)
It averages 152 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "152", "printed": "152", "notation": null} |
nlprog_det-setting-0069946 | The paralegal logged 7 hours at a rate of $150. How much is billed?
In Python:
```python
hours = 7
rate = 150
bill = hours * rate # 1050
print(f"{bill:.2f}")
```
Run result — 1050.00
The bill is $1,050.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1050.00", "printed": "1050.00", "notation": null} |
nlprog_det-setting-0069947 | <|start|><|user|>
A hearing is set for March 22, 2015. What day of the week is that?<|eot|>
<|assistant|>
from datetime import date
hearing = date(2015, 3, 22) # datetime.date(2015, 3, 22)
print(hearing.strftime("%A"))
# run result: Sunday
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for March 22, 2015. What day of the week is that?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(2015, 3, 22) # datetime.date(2015, 3, 22)\n print(hearing.strftime(\"%A\"))\n# run result: Sunday\n\nIt is... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0069948 | Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?
A few lines of Python do it:
```python
principal = 3600
annual_rate = 6 / 100
months = 24
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f}")
```
It ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "168.00", "printed": "168.00", "notation": null} |
nlprog_det-setting-0069949 | <|start|><|user|>
After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each share is $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each share is $14,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0069951 | <|start|><|user|>
A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 24 thousand gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 5.1
used = 24
free = 2
bill = base + rate * max(0, used - free) # 132.2
print(f"{bill:.2f}")
```
Output: 132.20
The bill is $132.... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 24 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 5.1\nused = 24\nfree = 2\nbill = base + rate * max(0, used - free) # 132.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "132.20", "printed": "132.20", "notation": null} |
nlprog_det-setting-0069952 | The bridge was finished in 1991. How many years had passed by 2019?
As a program:
```python
start_year = 1991
end_year = 2019
print(end_year - start_year)
```
On running, it outputs 28.
28 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0069953 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_units", "description":... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 400 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0069954 | 255 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
```python
total = 255
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Out:
28 each, 3 left over
The answer: 28 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "28 each, 3 left over", "printed": "28 each, 3 left over", "notation": null} |
nlprog_det-setting-0069955 | 4 claimants share a $960 settlement equally. What is each share?
Here's the code.
```python
settlement = 960
parties = 4
share = settlement // parties # 240
print(share)
```
# console output: 240
Each share is $240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0069957 | <|start|><|user|>
Shipping costs $10 plus $2.50 per pound. What does a 6-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.5
weight = 6
cost = base + per_pound * weight # 25.0
print(f"{cost:.2f}")
```
Printed:
25.00
Shipping costs $25.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.50 per pound. What does a 6-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 2.5\nweight = 6\ncost = base + per_pound * weight # 25.0\nprint(f\"{cost:.2f}\")\n```\nPrinted:\n25.00\n\nShip... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0069958 | To read 186 pages in 6 days, how many pages per day are needed?
Computing it:
pages = 186
days = 6
per_day = pages // days # 31
print(per_day)
The program outputs 31.
31 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0069959 | Prorate $900 of monthly rent for 7 days of a 31-day month.
Python, step by step:
```python
rent = 900
days_in_month = 31
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 203.2258064516129
print(f"{prorated:.2f}")
```
It prints 203.23.
The tenant owes $203.23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "203.23", "printed": "203.23", "notation": null} |
nlprog_det-setting-0069961 | Helga earns a 8% commission on $60,410 of sales. What is the commission?
```python
sales = 60410
rate = 8 / 100 # 0.08
commission = sales * rate # 4832.8
print(f"{commission:.2f}")
```
(Output: 4832.80)
The commission is $4,832.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4832.80", "printed": "4832.80", "notation": null} |
nlprog_det-setting-0069962 | <|start|><|user|>
Maren drove 113 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 113
rate = 0.7
reimbursement = miles * rate # 79.1
print(f"{reimbursement:.2f}")
```
Console output: 79.10
Maren is owed $79.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Maren drove 113 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 113\nrate = 0.7\nreimbursement = miles * rate # 79.1\nprint(f\"{reimbursement:.2f}\")\n```\nConsole ou... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "79.10", "printed": "79.10", "notation": null} |
nlprog_det-setting-0069963 | <|start|><|user|>
Walls total 760 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 760
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Execution prints 3.
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 760 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 760\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nExecution prints 3.\n\n3 cans ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0069964 | Pack A has 10 items for $12.42. Pack B has 30 items for $10.53. Which has the lower price per item?
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0069965 | <|start|><|user|>
$2,000 is invested at 3% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 2318.5481486000003
print(f"{value:.2f}")
```
Result — 2318.55
The balance is $2,318.55.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "$2,000 is invested at 3% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rate) ** years # 2318.5481486000003\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2318.55", "printed": "2318.55", "notation": null} |
nlprog_det-setting-0069966 | What is 10 degrees Celsius in Fahrenheit?
Python:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
The interpreter prints 50.
That is 50 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0069967 | A meal costs $247.81. How much is a 10% tip?
The computation:
```python
bill = 247.81
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 24.781000000000002
print(f"{tip:.2f}")
```
# console output: 24.78
Leave $24.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "24.78", "printed": "24.78", "notation": null} |
nlprog_det-setting-0069968 | Jamal and Maren share $1,001 in the ratio 2:5. How much does Jamal get?
Computing it:
```python
total = 1001
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 286
print(share_a)
```
# output: 286
Jamal's share is $286. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "286", "printed": "286", "notation": null} |
nlprog_det-setting-0069969 | <|start|><|user|>
Split $2,723 between Leon and Emeka in the ratio 2 to 5. What is Leon's share?<|eot|>
<|assistant|>
```python
total = 2723
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 778
print(share_a)
```
Printed = 778
Leon gets $778.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,723 between Leon and Emeka in the ratio 2 to 5. What is Leon's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2723\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 778\nprint(share_a)\n```\nPrinted = 778\n\nLe... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "778", "printed": "778", "notation": null} |
nlprog_det-setting-0069970 | <|start|><|user|>
4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 45.0
print(f"{each:.2f}")
```
(Run result: 45.00)
The share is $45.00 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\npeople = 4\neach = bill * (1 + tip_rate) / people # 45.0\nprint(f\"{each:.2f}\")\n```\n(Run result: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0069971 | 23 toner kits cost $15 apiece. With 5% tax added, what is the total?
Programmatically:
quantity = 23
unit_price = 15
subtotal = quantity * unit_price # 345
total = subtotal * (1 + 5 / 100) # 362.25
print(f"{total:.2f}")
The script prints: 362.25
The invoice total is $362.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "362.25", "printed": "362.25", "notation": null} |
nlprog_det-setting-0069972 | <|start|><|user|>
Each storage box holds 40 files. How many boxes are needed for 817 files?<|eot|>
<|assistant|>
```python
import math
files = 817
per_box = 40
boxes = math.ceil(files / per_box) # 21
print(boxes)
```
# printed result: 21
21 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 40 files. How many boxes are needed for 817 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 817\nper_box = 40\nboxes = math.ceil(files / per_box) # 21\nprint(boxes)\n```\n# printed result: 21\n\n21 boxes are need... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0069973 | <|start|><|system|>
You may call the tools below.
[{"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.", "pa... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"search_cas... | nlprog_det | setting | original | null | deterministic | [] | [] | 384 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0069974 | <|start|><|user|>
Sales went from 500 to 550. What is the percent change?<|eot|>
<|assistant|>
```python
old = 500
new = 550
change = (new - old) / old * 100 # 10.0
print(round(change))
```
# printed: 10
The change is 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 500 to 550. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 550\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\n# printed: 10\n\nThe change is 10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0069975 | A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?
The fee is $16,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0069976 | Ada drove 158 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Here is a short program for it.
miles = 158
rate = 0.67
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
stdout: 105.86
The reimbursement is $105.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "105.86", "printed": "105.86", "notation": null} |
nlprog_det-setting-0069977 | <|start|><|system|>
You have access to these functions:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "convert_units", "descrip... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0069978 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 189 miles?<|eot|>
<|assistant|>
```python
miles = 189
rate = 0.62
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
(Result: 117.18)
Ana is owed $117.18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 189 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 189\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\n(Result: 117.18)\n\nAna is owed $117.18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "117.18", "printed": "117.18", "notation": null} |
nlprog_det-setting-0069979 | Starting with 767 water bottles and using 23 per day, how many remain after 7 days?
The program:
```python
stock = 767
per_day = 23
days = 7
left = stock - per_day * days # 606
print(left)
```
The printout reads: 606
606 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "606", "printed": "606", "notation": null} |
nlprog_det-setting-0069980 | The landlord deducts $120 from a $2,500 deposit. What is returned to the tenant?
A Python solution:
```python
deposit = 2500
deductions = [120]
refund = deposit - sum(deductions) # 2380
print(refund)
```
# stdout: 2380
$2,380 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2380", "printed": "2380", "notation": null} |
nlprog_det-setting-0069981 | Split $2,472 between Elena and Nikhil in the ratio 1 to 3. What is Elena's share?
Computing it:
total = 2472
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 618
print(share_a)
Shell output: 618
Elena's share is $618. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "618", "printed": "618", "notation": null} |
nlprog_det-setting-0069982 | <|start|><|system|>
Functions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "p... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"py_exec\", \"description\": \"Executes Python code... | nlprog_det | setting | original | null | deterministic | [] | [] | 373 | {"gold": "1762", "printed": "1762", "notation": null} |
nlprog_det-setting-0069984 | <|start|><|user|>
A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The fee is $21,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The fee is $21,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0069985 | $1,000 is invested at 4% compounded yearly. What is it worth after 4 years?
Here is the program.
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 1169.8585600000001
print(f"{value:.2f}")
```
# stdout: 1169.86
It is worth $1,169.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1169.86", "printed": "1169.86", "notation": null} |
nlprog_det-setting-0069986 | <|start|><|user|>
If a 25-minute shift begins at 10:15 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Run result: 10:40 AM)
It ends at 10:40 AM.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "If a 25-minute shift begins at 10:15 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 15\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "10:40 AM", "printed": "10:40 AM", "notation": null} |
nlprog_det-setting-0069987 | Someone born April 27, 2002 turns how old by October 8, 2020? Give the age in whole years.
```python
from datetime import date
born = date(2002, 4, 27) # datetime.date(2002, 4, 27)
on = date(2020, 10, 8) # datetime.date(2020, 10, 8)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 18
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0069988 | A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 95-page copy cost?
In Python:
pages = 95
base = 15
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 62.5
print(f"{cost:.2f}")
Console output: 62.50
The copy costs $62.50... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "62.50", "printed": "62.50", "notation": null} |
nlprog_det-setting-0069989 | A pack of 24 envelopes sells for $120. What does each cost?
Set it up in Python:
```python
total = 120
count = 24
per_item = total // count # 5
print(per_item)
```
Interpreter output: 5
Each one costs $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0069990 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Fixed costs are $9,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
Break-even is 1800 units.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "Break-even is 1800 units.... | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0069991 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
How many units at $40 each (variable cost $34) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
This prints 200, as expecte... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "How many units at $40 each (variable cost $34) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 40\nvariable = 34\nunits = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0069992 | Which is cheaper per unit: 10 for $4.91 (A) or 15 for $26.86 (B)?
Coded up:
```python
pack_a = 4.91 / 10 # 0.491
pack_b = 26.86 / 15 # 1.7906666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
It prints A, as expected.
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0069993 | A 16 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
It takes 44 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0069994 | <|start|><|user|>
From 2013 to 2018, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2013
end_year = 2018
print(end_year - start_year)
```
Printed result: 5
5 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2013 to 2018, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2013\nend_year = 2018\nprint(end_year - start_year)\n```\nPrinted result: 5\n\n5 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0069995 | From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?
The computation:
```python
retainer = 2500
hours = 10
rate = 250
left = retainer - hours * rate # 0
print(left)
```
Running this gives 0.
$0 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0069996 | The building opened in 1997. How many years had passed by 2013?
16 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0069997 | A car gets 40 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 300-mile trip?
Fuel costs $23.93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "23.93", "printed": "23.93", "notation": null} |
nlprog_det-setting-0069998 | <|start|><|user|>
Convert 1 h 7 min (the length of a training session) to minutes.<|eot|>
<|assistant|>
```python
hours = 1
minutes = 7
total_minutes = hours * 60 + minutes # 67
print(total_minutes)
```
Python prints 67.
That is 67 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1 h 7 min (the length of a training session) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 1\nminutes = 7\ntotal_minutes = hours * 60 + minutes # 67\nprint(total_minutes)\n```\nPython prints 67.\n\nThat is 67 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0069999 | How many minutes pass from 10:45 AM to 2:13 PM on the same day?
We write it as a program:
start = 10 * 60 + 45 # 645
end = 14 * 60 + 13 # 853
print(end - start)
The interpreter prints 208.
208 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "208", "printed": "208", "notation": null} |
nlprog_det-setting-0070000 | After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Here is a short program for it.
```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}")
```
Py... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0070002 | At 40 miles per hour, how many minutes does a 40-mile trip take?
Computation in Python:
```python
distance = 40
speed = 40
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
Executed, it shows: 60
60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0070003 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
How many whole days and leftover hours are in 373 hours?<|eot|>
<|assistant|>
373 hours is 15 days and 13 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 373 hours?"
},
{
"role": "assistant",
"content": "373 hours is 15 days and 13 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "15 days and 13 hours", "printed": "15 days and 13 hours", "notation": null} |
nlprog_det-setting-0070004 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
An office budget of $8,000 has expenses of $1,737, $3,305, $1,118, $1,174. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [1737, 3305, 1118, 1174]
left = budget - sum(expenses) # 666
print(left)
```
The printout ... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $1,737, $3,305, $1,118, $1,174. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [1737... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "666", "printed": "666", "notation": null} |
nlprog_det-setting-0070005 | A party has 21 days to respond to a motion served on November 28, 2027, with 3 days added because service was by mail. When is the response due?
from datetime import date, timedelta
served = date(2027, 11, 28) # datetime.date(2027, 11, 28)
response_days = 21
mail_days = 3
due = served + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "2027-12-22", "printed": "2027-12-22", "notation": null} |
nlprog_det-setting-0070007 | <|start|><|system|>
You may call the tools below.
{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "search_cases", "descr... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 366 | {"gold": "1530.00", "printed": "1530.00", "notation": null} |
nlprog_det-setting-0070008 | 3 friends split a $240 bill plus a 15% tip evenly. How much does each pay?
A Python solution:
```python
bill = 240
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 92.0
print(f"{each:.2f}")
```
The program outputs 92.00.
Each person pays $92.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "92.00", "printed": "92.00", "notation": null} |
nlprog_det-setting-0070009 | What is a 22% tip on a $44.07 bill?
The computation:
```python
bill = 44.07
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 9.6954
print(f"{tip:.2f}")
```
Result — 9.70
The tip is $9.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "9.70", "printed": "9.70", "notation": null} |
nlprog_det-setting-0070011 | Straight-line depreciation: cost $30,000, salvage $6,000, 3 years. How much per year?
The computation:
```python
cost = 30000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 8000.0
print(f"{per_year:.2f}")
```
The printout reads 8000.00.
Depreciation is $8,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0070012 | What is 20 degrees Celsius in Fahrenheit?
Here is the program.
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
stdout = 68
It equals 68 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0070013 | <|start|><|system|>
Tools (call with JSON):
{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Convert 20 °C to Fahrenheit... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0070014 | Goods bought on December 15, 2020 carry a 18-month warranty. When does it expire?
Code:
```python
from datetime import date
start = date(2020, 12, 15)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Printed resu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2022-06-15", "printed": "2022-06-15", "notation": null} |
nlprog_det-setting-0070015 | Convert 5 °C to Fahrenheit. It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0070016 | <|start|><|user|>
The rules require 3/5 of 13 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 13
quorum = math.ceil(members * 3 / 5) # 8
print(quorum)
```
The code prints: 8
That is 8 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 13 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 13\nquorum = math.ceil(members * 3 / 5) # 8\nprint(quorum)\n```\nThe code prints: 8\n\nThat is 8 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0070017 | 11 boxes hold 25 envelopes each. After 11 are handed out, how many are left?
boxes = 11
per_box = 25
given_away = 11
left = boxes * per_box - given_away # 264
print(left)
Result:
264
That leaves 264 envelopes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0070019 | Counting only Monday through Friday, how many business days are there after February 12, 2027 through March 17, 2027?
Python:
```python
from datetime import date, timedelta
start = date(2027, 2, 12)
end = date(2027, 3, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0070020 | A claim accrued on December 22, 2024. The limitations period is 4 years. On what date does it expire?
A short script:
```python
from datetime import date
accrued = date(2024, 12, 22) # datetime.date(2024, 12, 22)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 12, 22)
print(expir... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2028-12-22", "printed": "2028-12-22", "notation": null} |
nlprog_det-setting-0070021 | <|start|><|user|>
A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
The trip takes 360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 390-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "The trip takes 360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0070022 | One can of paint covers 250 square feet. How many cans are needed for 1079 square feet of wall?
As Python:
```python
import math
area = 1079
coverage = 250
cans = math.ceil(area / coverage)
print(cans)
```
Execution prints 5.
5 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0070023 | <|start|><|user|>
What simple interest does $5,000 earn at 3% a year over 6 years?<|eot|>
<|assistant|>
principal = 5000
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 900.0
print(f"{interest:.2f}")
The program prints 900.00.
It earns $900.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $5,000 earn at 3% a year over 6 years?"
},
{
"role": "assistant",
"content": " principal = 5000\n rate = 3 / 100 # 0.03\n years = 6\n interest = principal * rate * years # 900.0\n print(f\"{interest:.2f}\")\nThe program pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0070024 | <|start|><|user|>
Notice was given on June 27, 2021. The notice period is 21 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 6, 27) # datetime.date(2021, 6, 27)
end = start + timedelta(days=21) # datetime.date(2021, 7, 18)
print(end.isoformat())
```
(... | chat | [
{
"role": "user",
"content": "Notice was given on June 27, 2021. The notice period is 21 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 6, 27) # datetime.date(2021, 6, 27)\nend = start + timedelta(days=21) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2021-07-18", "printed": "2021-07-18", "notation": null} |
nlprog_det-setting-0070025 | Someone works 40 hours at $23.52 per hour. What are the earnings? The pay is $940.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "940.80", "printed": "940.80", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.