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-0062551 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?
A Python solution:
```python
rate = 18.5
hours = 46
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
The run gives 906.50.
The weekly pay is $906.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "906.50", "printed": "906.50", "notation": null} |
nlprog_det-setting-0062552 | <|start|><|user|>
At 2% a month (simple), what interest builds on $7,500 over 3 months?<|eot|>
<|assistant|>
The interest is $450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $7,500 over 3 months?"
},
{
"role": "assistant",
"content": "The interest is $450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0062554 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Pack A has 6 items for $7.06. Pack B has 15 items for $12.91. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 7.06 / 6 # 1.1766666666666665
pack_b = 12.91 / 15 # 0.8606666666666667
cheaper = "A" if pack_a < pack_b else "B" #... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Pack A has 6 items for $7.06. Pack B has 15 items for $12.91. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 7.06 / 6 # 1.1766666666666665\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0062555 | Attendance was 16 out of 20. Express it as a percent.
```python
present = 16
total = 20
percent = present / total * 100 # 80.0
print(round(percent, 1))
```
(Result: 80.0)
Attendance was 80.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0062556 | What day of the week is April 27, 1999?
Let the code do the arithmetic:
```python
from datetime import date
hearing = date(1999, 4, 27) # datetime.date(1999, 4, 27)
print(hearing.strftime("%A"))
```
Shell output: Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0062557 | A measure needs at least 60% of 78 votes. How many votes is that, rounded up?
One way, in code:
```python
import math
voters = 78
needed = math.ceil(voters * 60 / 100) # 47
print(needed)
```
The code prints 47.
At least 47 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0062558 | <|start|><|user|>
A meal costs $112.69. How much is a 22% tip?<|eot|>
<|assistant|>
```python
bill = 112.69
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 24.7918
print(f"{tip:.2f}")
```
It prints 24.79.
The tip is $24.79.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $112.69. How much is a 22% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 112.69\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 24.7918\nprint(f\"{tip:.2f}\")\n```\nIt prints 24.79.\n\nThe tip is $24.79."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "24.79", "printed": "24.79", "notation": null} |
nlprog_det-setting-0062560 | <|start|><|user|>
5 swims at 150 calories each burn how many calories in total?<|eot|>
<|assistant|>
That burns 750 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 swims at 150 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "That burns 750 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0062561 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Jamal and Maren share $3,850 in the ratio 3:4. How much does Jamal get?<|eot|>
<|assistant|>
```python
total = 3850
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1650
print(share_a)
```
Out:
1650
Jamal gets $1,650.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Jamal and Maren share $3,850 in the ratio 3:4. How much does Jamal get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 3850\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a /... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0062562 | Find the mean of these test scores: 91, 52 and 82.
Here is a short program for it.
```python
scores = [91, 52, 82]
average = sum(scores) // len(scores) # 75
print(average)
```
Console output: 75
The average score is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0062563 | The landlord deducts $45 from a $1,000 deposit. What is returned to the tenant?
Here is the program.
```python
deposit = 1000
deductions = [45]
refund = deposit - sum(deductions) # 955
print(refund)
```
That prints 955.
The refund is $955. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0062564 | <|start|><|user|>
Count the days between February 28, 2025 and January 22, 2026.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 2, 28) # datetime.date(2025, 2, 28)
second = date(2026, 1, 22) # datetime.date(2026, 1, 22)
print((second - first).days)
```
The run gives: 328
It is 328 days.<... | chat | [
{
"role": "user",
"content": "Count the days between February 28, 2025 and January 22, 2026."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 2, 28) # datetime.date(2025, 2, 28)\nsecond = date(2026, 1, 22) # datetime.date(2026, 1, 22)\nprint((seco... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "328", "printed": "328", "notation": null} |
nlprog_det-setting-0062565 | If a 3-year limitations period starts on October 24, 2021, when does it end?
Written as code:
```python
from datetime import date
accrued = date(2021, 10, 24) # datetime.date(2021, 10, 24)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 10, 24)
print(expires.isoformat())
```
# pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2024-10-24", "printed": "2024-10-24", "notation": null} |
nlprog_det-setting-0062566 | A storeroom has 684 tape rolls. The office uses 10 a day. How many are left after 8 days?
Python code:
```python
stock = 684
per_day = 10
days = 8
left = stock - per_day * days # 604
print(left)
```
# stdout: 604
604 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "604", "printed": "604", "notation": null} |
nlprog_det-setting-0062567 | Delia buys 7 boxes of 25 markers each and gives away 11 markers. How many markers are left?
That leaves 164 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0062568 | From 1992 to 2012, how many years is that?
```python
start_year = 1992
end_year = 2012
print(end_year - start_year)
```
It outputs 20.
That is 20 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0062569 | Count 120 days forward from November 13, 2018. What date is that?
That date is March 13, 2019. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "2019-03-13", "printed": "2019-03-13", "notation": null} |
nlprog_det-setting-0062570 | Jonas buys 3 boxes of 10 ink cartridges each and gives away 11 ink cartridges. How many ink cartridges are left?
Python makes this quick:
```python
boxes = 3
per_box = 10
given_away = 11
left = boxes * per_box - given_away # 19
print(left)
```
Output — 19
19 ink cartridges are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0062571 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "interpreter", "descripti... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "76.00", "printed": "76.00", "notation": null} |
nlprog_det-setting-0062572 | <|start|><|user|>
Lena has 9 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 35
filings = 9
total = fee * filings
print(total)
```
The script prints: 315
$315 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lena has 9 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 9\ntotal = fee * filings\nprint(total)\n```\nThe script prints: 315\n\n$315 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0062573 | <|start|><|user|>
14 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
Run result — 70.0
70.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "14 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 14\ntotal = 20\npercent = present / total * 100 # 70.0\nprint(round(percent, 1))\n```\nRun result — 70.0\n\n70.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0062574 | 2 books come back 2 days late, at $0.50 a day each. What is the fine?
$2.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0062575 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
116 of 200 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 116
total = 200
percent = present / total * 100 # 57.99999999999999
print(round(percent, 1))
```
The printout reads: 58.0
58.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "116 of 200 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 116\ntotal = 200\npercent = present / total * 100 # 57.99999999999999\nprint(rou... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0062576 | 4 books come back 17 days late, at $0.10 a day each. What is the fine?
The Python version:
```python
per_day = 0.1
days_late = 17
books = 4
fine = per_day * days_late * books # 6.800000000000001
print(f"{fine:.2f}")
```
Output — 6.80
The fine is $6.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "6.80", "printed": "6.80", "notation": null} |
nlprog_det-setting-0062577 | <|start|><|user|>
Express 187 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 187
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out:
7 days and 19 hours
187 hours is 7 days and 19 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 187 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 187\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut:\n7 days and 19 hours\n\n187 hours is 7 days and 19 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "7 days and 19 hours", "printed": "7 days and 19 hours", "notation": null} |
nlprog_det-setting-0062578 | <|start|><|user|>
A meeting lasted 3 hours and 47 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 3
minutes = 47
total_minutes = hours * 60 + minutes # 227
print(total_minutes)
(Output: 227)
The meeting lasted 227 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting lasted 3 hours and 47 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 3\n minutes = 47\n total_minutes = hours * 60 + minutes # 227\n print(total_minutes)\n(Output: 227)\n\nThe meeting lasted 227 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "227", "printed": "227", "notation": null} |
nlprog_det-setting-0062579 | How much is a $74 daily meal allowance over 8 days?
Python makes this quick:
```python
days = 8
meal_rate = 74
total = days * meal_rate # 592
print(total)
```
(stdout: 592)
The allowance is $592. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "592", "printed": "592", "notation": null} |
nlprog_det-setting-0062580 | <|start|><|user|>
At 60 miles per hour, how many minutes does a 240-mile trip take?<|eot|>
<|assistant|>
```python
distance = 240
speed = 60
minutes = distance / speed * 60
print(round(minutes))
```
Run output: 240
The trip takes 240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 60 miles per hour, how many minutes does a 240-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 240\nspeed = 60\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nRun output: 240\n\nThe trip takes 240 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0062581 | Ada and Ana share $3,388 in the ratio 1:3. How much does Ada get?
Python:
```python
total = 3388
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 847
print(share_a)
```
Run result: 847
Ada gets $847. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "847", "printed": "847", "notation": null} |
nlprog_det-setting-0062582 | A 836-page report must be reviewed in 19 days. How many pages a day is that, evenly?
Code:
```python
pages = 836
days = 19
per_day = pages // days # 44
print(per_day)
```
The program prints: 44
44 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0062583 | Someone works 36 hours at $31.11 per hour. What are the earnings?
Python code:
```python
rate = 31.11
hours = 36
earnings = rate * hours # 1119.96
print(f"{earnings:.2f}")
```
The code prints 1119.96.
The pay is $1,119.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1119.96", "printed": "1119.96", "notation": null} |
nlprog_det-setting-0062584 | An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months?
Script:
```python
balance = 1000
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 45.0
print(f"{interest:.2f}")
```
(Out: 45.00)
$45.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0062585 | <|start|><|system|>
You can call tools. Available tools:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "math_engine", "description": "Python sandbox for calculatio... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"math... | nlprog_det | setting | original | null | deterministic | [] | [] | 279 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0062586 | At $0.62 per mile, what is the reimbursement for 55 miles?
The reimbursement is $34.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "34.10", "printed": "34.10", "notation": null} |
nlprog_det-setting-0062587 | <|start|><|user|>
Someone born October 18, 1982 turns how old by August 2, 2026? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1982, 10, 18)
on = date(2026, 8, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
Execution prints... | chat | [
{
"role": "user",
"content": "Someone born October 18, 1982 turns how old by August 2, 2026? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1982, 10, 18)\non = date(2026, 8, 2)\nage = on.year - born.year - ((on.month, on.day)... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0062588 | An office budget of $12,000 has expenses of $3,045, $1,972, $1,906. How much of the budget is left?
One way, in code:
```python
budget = 12000
expenses = [3045, 1972, 1906]
left = budget - sum(expenses)
print(left)
```
Executed, it shows: 5077
The remaining budget is $5,077. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "5077", "printed": "5077", "notation": null} |
nlprog_det-setting-0062589 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $2,500. How much after 28 days?<|eot|>
<|assistant|>
$700 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $2,500. How much after 28 days?"
},
{
"role": "assistant",
"content": "$700 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0062590 | <|start|><|user|>
A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 330
savings = monthly * 12 - yearly # 18
print(savings)
```
Execution prints 18.
$18 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 330\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nExecution prints 18.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062591 | Convert 5 °C to Fahrenheit.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0062592 | <|start|><|user|>
Papers were served by mail on August 20, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
It is due September 6, 2024.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Papers were served by mail on August 20, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "It is due September 6, 2024."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2024-09-06", "printed": "2024-09-06", "notation": null} |
nlprog_det-setting-0062593 | $10,000 is invested at 4% compounded yearly. What is it worth after 2 years?
Programmatically:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 10816.000000000002
print(f"{value:.2f}")
```
Result: 10816.00
The balance is $10,816.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "10816.00", "printed": "10816.00", "notation": null} |
nlprog_det-setting-0062594 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
At $18.92 an hour, what does 38 hours of work pay?<|eot|>
<|assistant|>
The pay is $718.96.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "At $18.92 an hour, what does 38 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $718.96."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "718.96", "printed": "718.96", "notation": null} |
nlprog_det-setting-0062595 | Goods bought on November 10, 2026 carry a 12-month warranty. When does it expire?
The warranty ends on November 10, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2027-11-10", "printed": "2027-11-10", "notation": null} |
nlprog_det-setting-0062596 | From a $10,000 retainer, 13 hours at $200/hour have been drawn. What remains?
The program:
```python
retainer = 10000
hours = 13
rate = 200
left = retainer - hours * rate # 7400
print(left)
```
Result = 7400
The remaining balance is $7,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "7400", "printed": "7400", "notation": null} |
nlprog_det-setting-0062597 | Papers were served by mail on May 12, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Coded up:
```python
from datetime import date, timedelta
served = date(2022, 5, 12)
response_days = 14
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2022-05-29", "printed": "2022-05-29", "notation": null} |
nlprog_det-setting-0062598 | Convert -5 °C to Fahrenheit.
Let the code do the arithmetic:
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
Shell output — 23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0062599 | 11 boxes hold 25 hard drives each. After 15 are handed out, how many are left?
One way, in code:
```python
boxes = 11
per_box = 25
given_away = 15
left = boxes * per_box - given_away # 260
print(left)
```
It prints 260.
260 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "260", "printed": "260", "notation": null} |
nlprog_det-setting-0062600 | Of a $2,000 budget, $1,400 has been spent. What percent is that?
Python makes this quick:
```python
budget = 2000
spent = 1400
percent = spent / budget * 100 # 70.0
print(round(percent, 1))
```
# console output: 70.0
70.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0062601 | A recipe for 6 people uses 450 grams of lentils. How many grams are needed for 4 people?
Python does the arithmetic:
```python
grams = 450
serves = 6
needed_for = 4
scaled = grams * needed_for // serves # 300
print(scaled)
```
Python prints 300, as expected.
Use 300 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0062602 | <|start|><|user|>
Under a 35% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
The lawyer's fee comes to $21,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $21,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0062603 | With 15% off, what does a $180 bicycle helmet cost?
We write it as a program:
price = 180
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 153.0
print(f"{sale_price:.2f}")
(Program output: 153.00)
The sale price is $153.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "153.00", "printed": "153.00", "notation": null} |
nlprog_det-setting-0062604 | A trial runs from November 13, 2023 to November 25, 2023, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2023, 11, 13) # datetime.date(2023, 11, 13)
last = date(2023, 11, 25) # datetime.date(2023, 11, 25)
days = (last - first).days + 1 # 13
print(days)
```
Runni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0062605 | A hearing starts at 10:45 AM and lasts 105 minutes. When does it end?
Code:
```python
start = 10 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
On running, it outputs: 12:30 PM
It ends at 12:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0062606 | Yusuf buys 8 boxes of 10 lanyards each and gives away 15 lanyards. How many lanyards are left?
That leaves 65 lanyards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0062607 | Rosa's scores were 72, 61, 72, 66 and 89. What is the average score?
Here is a short program for it.
```python
scores = [72, 61, 72, 66, 89]
average = sum(scores) // len(scores) # 72
print(average)
```
What it prints: 72
The average score is 72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0062608 | A shift runs from 11:27 AM to 12:13 PM. How long is it in minutes?
Written as code:
```python
start = 11 * 60 + 27
end = 12 * 60 + 13
print(end - start)
```
That prints 46.
It is 46 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0062610 | 39 binders cost $8 apiece. With 5% tax added, what is the total?
Python makes this quick:
```python
quantity = 39
unit_price = 8
subtotal = quantity * unit_price # 312
total = subtotal * (1 + 5 / 100) # 327.6
print(f"{total:.2f}")
```
The code prints: 327.60
The total with tax is $327.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "327.60", "printed": "327.60", "notation": null} |
nlprog_det-setting-0062611 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 408 | {"gold": "642.60", "printed": "642.60", "notation": null} |
nlprog_det-setting-0062613 | Leon was born on March 9, 1958. How old is Leon on August 13, 2028?
Programmatically:
```python
from datetime import date
born = date(1958, 3, 9) # datetime.date(1958, 3, 9)
on = date(2028, 8, 13) # datetime.date(2028, 8, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 70
print(age)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0062614 | <|start|><|user|>
A 5 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 5
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 18
print(tiles)
Run output: 18
18 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 5\n width = 14\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 18\n print(tiles)\nRun ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062616 | A backpack costs $120. It is 25% off. What is the sale price?
As a program:
```python
price = 120
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 90.0
print(f"{sale_price:.2f}")
```
(Output: 90.00)
It costs $90.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0062617 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 291 | {"gold": "285", "printed": "285", "notation": null} |
nlprog_det-setting-0062619 | How many minutes pass from 8:03 AM to 11:30 AM on the same day?
Computing it:
start = 8 * 60 + 3
end = 11 * 60 + 30
print(end - start)
Run output — 207
It is 207 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "207", "printed": "207", "notation": null} |
nlprog_det-setting-0062620 | Sales went from 2,500 to 2,250. What is the percent change?
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0062622 | Count 21 days forward from October 8, 2028. What date is that?
Written as code:
```python
from datetime import date, timedelta
start = date(2028, 10, 8) # datetime.date(2028, 10, 8)
end = start + timedelta(days=21) # datetime.date(2028, 10, 29)
print(end.isoformat())
```
(Program output: 2028-10-29)
It ends on Octo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2028-10-29", "printed": "2028-10-29", "notation": null} |
nlprog_det-setting-0062623 | How many 2-foot square tiles cover a 16 ft by 13 ft floor (round up)?
Translated to Python:
```python
import math
length = 16
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Execution result — 52
It takes 52 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0062624 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 17,000 gallons?
In Python:
```python
base = 15
rate = 4.2
used = 17
free = 2
bill = base + rate * max(0, used - free) # 78.0
print(f"{bill:.2f}")
```
stdout = 78.00
The bill is $78.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0062626 | A workshop lasted 1 hours and 44 minutes. How many minutes is that?
Program:
```python
hours = 1
minutes = 44
total_minutes = hours * 60 + minutes # 104
print(total_minutes)
```
Execution prints 104.
That is 104 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0062627 | <|start|><|system|>
You can call tools. Available tools:
{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "search_cases", "des... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0062628 | An office budget of $8,000 has expenses of $1,562, $1,394, $3,881, $3,981. How much of the budget is left?
A short script:
```python
budget = 8000
expenses = [1562, 1394, 3881, 3981]
left = budget - sum(expenses) # -2818
print(left)
```
Result — -2818
The remaining budget is -$2,818. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "-2818", "printed": "-2818", "notation": null} |
nlprog_det-setting-0062629 | 151 copies of a 23-page packet are printed at $0.05 per page. What is the cost?
Script:
pages = 23
copies = 151
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 173.65
print(f"{cost:.2f}")
Run result — 173.65
Printing costs $173.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "173.65", "printed": "173.65", "notation": null} |
nlprog_det-setting-0062630 | What simple interest does $12,000 earn at 3% a year over 5 years?
Code:
```python
principal = 12000
rate = 3 / 100 # 0.03
years = 5
interest = principal * rate * years # 1800.0
print(f"{interest:.2f}")
```
The code prints 1800.00.
It earns $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0062631 | Counting only Monday through Friday, how many business days are there after July 3, 2026 through August 9, 2026?
Set it up in Python:
```python
from datetime import date, timedelta
start = date(2026, 7, 3)
end = date(2026, 8, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0062632 | An invoice lists 31 envelopes at $12 each, plus 5% sales tax. What is the invoice total?
Python makes this quick:
```python
quantity = 31
unit_price = 12
subtotal = quantity * unit_price # 372
total = subtotal * (1 + 5 / 100) # 390.6
print(f"{total:.2f}")
```
Execution result: 390.60
The invoice total is $390.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "390.60", "printed": "390.60", "notation": null} |
nlprog_det-setting-0062633 | <|start|><|user|>
How much sales tax is charged on a $431.48 purchase at 6%?<|eot|>
<|assistant|>
```python
price = 431.48
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 25.8888
print(f"{tax:.2f}")
```
Printed result — 25.89
$25.89 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $431.48 purchase at 6%?"
},
{
"role": "assistant",
"content": "```python\nprice = 431.48\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 25.8888\nprint(f\"{tax:.2f}\")\n```\nPrinted result — 25.89\n\n$25.89 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "25.89", "printed": "25.89", "notation": null} |
nlprog_det-setting-0062634 | A garage charges $2 an hour, never more than $18 a day. How much for 7 hours?
Python version:
```python
rate = 2
hours = 7
daily_max = 18
cost = min(rate * hours, daily_max) # 14
print(cost)
```
Interpreter output: 14
Parking costs $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0062635 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A storeroom has 1776 hard drives. The office uses 39 a day. How many are left after 3 days?<|eot|>
<|assistant|>
```python
stock = 1776
per_day = 39
days = 3
left = stock - per_day * days # 1659
print(left)
```
Executing it gives 1659.
1659 re... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A storeroom has 1776 hard drives. The office uses 39 a day. How many are left after 3 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1776\nper_day = 39\ndays = 3\... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1659", "printed": "1659", "notation": null} |
nlprog_det-setting-0062636 | Nikhil and Reza share $966 in the ratio 1:2. How much does Nikhil get?
Translated to Python:
```python
total = 966
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 322
print(share_a)
```
What it prints: 322
Nikhil's share is $322. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "322", "printed": "322", "notation": null} |
nlprog_det-setting-0062637 | Each of Zoe's walks burns 250 calories. How many calories over 3 walks?
Programmatically:
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
The program outputs: 750
That burns 750 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0062638 | Divide 286 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here's the code.
```python
total = 286
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints 35 each, 6 left over.
The answer: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "35 each, 6 left over", "printed": "35 each, 6 left over", "notation": null} |
nlprog_det-setting-0062639 | Attendance was 115 out of 200. Express it as a percent.
A short script:
```python
present = 115
total = 200
percent = present / total * 100 # 57.49999999999999
print(round(percent, 1))
```
Printed — 57.5
Attendance was 57.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "57.5", "printed": "57.5", "notation": null} |
nlprog_det-setting-0062640 | <|start|><|user|>
Attendance was 13 out of 25. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 13
total = 25
percent = present / total * 100 # 52.0
print(round(percent, 1))
```
Executed, it shows 52.0.
Attendance was 52.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 13 out of 25. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 13\ntotal = 25\npercent = present / total * 100 # 52.0\nprint(round(percent, 1))\n```\nExecuted, it shows 52.0.\n\nAttendance was 52.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "52.0", "printed": "52.0", "notation": null} |
nlprog_det-setting-0062641 | What is a 18% tip on a $66.54 bill?
Here is the program.
```python
bill = 66.54
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 11.9772
print(f"{tip:.2f}")
```
# output: 11.98
The tip is $11.98. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "11.98", "printed": "11.98", "notation": null} |
nlprog_det-setting-0062642 | <|start|><|user|>
Split $1,749 between Hugo and Maren in the ratio 1 to 2. What is Hugo's share?<|eot|>
<|assistant|>
total = 1749
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 583
print(share_a)
(Result: 583)
Hugo's share is $583.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,749 between Hugo and Maren in the ratio 1 to 2. What is Hugo's share?"
},
{
"role": "assistant",
"content": " total = 1749\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (parts_a + parts_b) # 583\n print(share_a)\n(Result: 583)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "583", "printed": "583", "notation": null} |
nlprog_det-setting-0062643 | <|start|><|user|>
Each of Rania's swims burns 200 calories. How many calories over 5 swims?<|eot|>
<|assistant|>
per_session = 200
sessions = 5
total = per_session * sessions # 1000
print(total)
(Printed result: 1000)
1000 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Rania's swims burns 200 calories. How many calories over 5 swims?"
},
{
"role": "assistant",
"content": " per_session = 200\n sessions = 5\n total = per_session * sessions # 1000\n print(total)\n(Printed result: 1000)\n\n1000 calories in total."... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0062644 | Find the mean of these test scores: 94, 75, 53, 78, 56 and 100.
Translated to Python:
```python
scores = [94, 75, 53, 78, 56, 100]
average = sum(scores) // len(scores) # 76
print(average)
```
Executing it gives 76, as expected.
The mean is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0062645 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
146 copies of a 42-page pack... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "735.84", "printed": "735.84", "notation": null} |
nlprog_det-setting-0062646 | Equal monthly payments repay $9,000 plus 10% simple yearly interest over 36 months. How large is a payment?
Each payment is $325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "325.00", "printed": "325.00", "notation": null} |
nlprog_det-setting-0062647 | The paralegal logged 10.5 hours at a rate of $180. How much is billed?
Let's compute it with Python.
```python
hours = 10.5
rate = 180
bill = hours * rate # 1890.0
print(f"{bill:.2f}")
```
The run gives 1890.00, as expected.
The bill is $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0062649 | Notice was given on June 22, 2019. The notice period is 14 days. When does it run out?
Python version:
from datetime import date, timedelta
start = date(2019, 6, 22) # datetime.date(2019, 6, 22)
end = start + timedelta(days=14) # datetime.date(2019, 7, 6)
print(end.isoformat())
# execution result: 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2019-07-06", "printed": "2019-07-06", "notation": null} |
nlprog_det-setting-0062651 | With 40% off, what does a $120 jacket cost?
Here is a short program for it.
```python
price = 120
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 72.0
print(f"{sale_price:.2f}")
```
# program output: 72.00
The sale price is $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0062652 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
After an initial $2... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 246 | {"gold": "11500.00", "printed": "11500.00", "notation": null} |
nlprog_det-setting-0062653 | <|start|><|user|>
A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 975
months = 12
total = monthly_rent * months # 11700
print(total)
(Printed: 11700)
The rent over the term is $11,700.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 975\n months = 12\n total = monthly_rent * months # 11700\n print(total)\n(Printed: 11700)\n\nThe rent over t... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0062655 | A car travels 138 miles in 2 hours. What is its average speed in miles per hour?
It averages 69 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0062656 | A 30-day notice period begins on August 18, 2019. On what date does it end?
Python does the arithmetic:
from datetime import date, timedelta
start = date(2019, 8, 18) # datetime.date(2019, 8, 18)
end = start + timedelta(days=30) # datetime.date(2019, 9, 17)
print(end.isoformat())
Printed:
2019-09-17
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2019-09-17", "printed": "2019-09-17", "notation": null} |
nlprog_det-setting-0062657 | Counting only Monday through Friday, how many business days are there after February 6, 2028 through February 23, 2028?
Python does the arithmetic:
from datetime import date, timedelta
start = date(2028, 2, 6)
end = date(2028, 2, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0062658 | <|start|><|system|>
Tools you may use:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"interpreter\", \"description\": \"Evaluate... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "2025-11-08", "printed": "2025-11-08", "notation": null} |
nlprog_det-setting-0062659 | 3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Script:
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")
Result:
12000.00
Each client gets $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0062660 | Counting the first and last day, how many days are there from January 25, 2027 through January 28, 2027?
A few lines of Python do it:
```python
from datetime import date
first = date(2027, 1, 25) # datetime.date(2027, 1, 25)
last = date(2027, 1, 28) # datetime.date(2027, 1, 28)
days = (last - first).days + 1 # 4
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0062661 | A 160-mile drive at a steady 40 mph takes how many minutes?
We write it as a program:
```python
distance = 160
speed = 40
minutes = distance / speed * 60
print(round(minutes))
```
Executed, it shows: 240
The trip takes 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "240", "printed": "240", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.