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-0079784 | <|start|><|user|>
Counting the first and last day, how many days are there from April 15, 2020 through May 9, 2020?<|eot|>
<|assistant|>
from datetime import date
first = date(2020, 4, 15) # datetime.date(2020, 4, 15)
last = date(2020, 5, 9) # datetime.date(2020, 5, 9)
days = (last - first).days + 1 ... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from April 15, 2020 through May 9, 2020?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2020, 4, 15) # datetime.date(2020, 4, 15)\n last = date(2020, 5, 9) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0079785 | A pack of 20 ink cartridges sells for $1200. What does each cost? Each one costs $60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0079786 | <|start|><|user|>
A settlement of $960 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 960
parties = 6
share = settlement // parties # 160
print(share)
```
Python prints 160.
Each share is $160.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $960 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 960\nparties = 6\nshare = settlement // parties # 160\nprint(share)\n```\nPython prints 160.\n\nEach share is $16... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0079787 | <|start|><|user|>
What percentage of $5,000 is $3,600?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 3600
percent = spent / budget * 100 # 72.0
print(round(percent, 1))
```
The run gives 72.0.
That is 72.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $3,600?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 3600\npercent = spent / budget * 100 # 72.0\nprint(round(percent, 1))\n```\nThe run gives 72.0.\n\nThat is 72.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "72.0", "printed": "72.0", "notation": null} |
nlprog_det-setting-0079788 | A measure needs at least 67% of 245 votes. How many votes is that, rounded up?
Here is the program.
```python
import math
voters = 245
needed = math.ceil(voters * 67 / 100) # 165
print(needed)
```
Run result = 165
At least 165 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0079789 | Convert 5,437 CHF to USD at 1 CHF = 1.08 USD.
Here's the code.
```python
amount = 5437
rate = 1.08
converted = amount * rate # 5871.96
print(f"{converted:.2f}")
```
That prints: 5871.96
That is 5,871.96 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "5871.96", "printed": "5871.96", "notation": null} |
nlprog_det-setting-0079790 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
At a 7% tax rate, what is the tax on $286.42?<|eot|>
<|assistant|>
```python
price = 286.42
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 20.049400000000002
print(f"{tax:.2f}")
```
(Console output: 20.05)
The tax is $20.05.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $286.42?"
},
{
"role": "assistant",
"content": "```python\nprice = 286.42\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 20.049400000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "20.05", "printed": "20.05", "notation": null} |
nlprog_det-setting-0079791 | If a 3-year limitations period starts on July 23, 2020, when does it end?
As a program:
```python
from datetime import date
accrued = date(2020, 7, 23) # datetime.date(2020, 7, 23)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 7, 23)
print(expires.isoformat())
```
Executed, it ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2023-07-23", "printed": "2023-07-23", "notation": null} |
nlprog_det-setting-0079792 | <|start|><|user|>
Split $3,528 between Yoko and Quinn in the ratio 3 to 5. What is Yoko's share?<|eot|>
<|assistant|>
Yoko's share is $1,323.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $3,528 between Yoko and Quinn in the ratio 3 to 5. What is Yoko's share?"
},
{
"role": "assistant",
"content": "Yoko's share is $1,323."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1323", "printed": "1323", "notation": null} |
nlprog_det-setting-0079793 | <|start|><|user|>
With 25% off, what does a $180 filing cabinet cost?<|eot|>
<|assistant|>
```python
price = 180
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 135.0
print(f"{sale_price:.2f}")
```
Output of the run — 135.00
The sale price is $135.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $180 filing cabinet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 135.0\nprint(f\"{sale_price:.2f}\")\n```\nOutput of the run — 135.00\n\nThe sale pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "135.00", "printed": "135.00", "notation": null} |
nlprog_det-setting-0079795 | <|start|><|user|>
A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 200
new = 180
change = (new - old) / old * 100
print(round(change))
```
The script prints -10.
It changed by -10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 180\nchange = (new - old) / old * 100\nprint(round(change))\n```\nThe script prints -10.\n\nIt changed by -... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0079796 | Printing costs 8 cents a page. What does it cost to print 78 copies of a 46-page handout?
Python code:
```python
pages = 46
copies = 78
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 287.04
print(f"{cost:.2f}")
```
Result: 287.04
Printing costs $287.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "287.04", "printed": "287.04", "notation": null} |
nlprog_det-setting-0079798 | <|start|><|user|>
2 books come back 17 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 17
books = 2
fine = per_day * days_late * books # 6.800000000000001
print(f"{fine:.2f}")
```
# console output: 6.80
The fine is $6.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 17 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 17\nbooks = 2\nfine = per_day * days_late * books # 6.800000000000001\nprint(f\"{fine:.2f}\")\n```\n# console output:... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "6.80", "printed": "6.80", "notation": null} |
nlprog_det-setting-0079799 | 146 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Python version:
```python
total = 146
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
On running, it outputs 48 each, 2 left over.
The answer: 48 each, 2 le... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "48 each, 2 left over", "printed": "48 each, 2 left over", "notation": null} |
nlprog_det-setting-0079800 | How many minutes pass from 10:14 AM to 11:19 AM on the same day?
Written as code:
start = 10 * 60 + 14 # 614
end = 11 * 60 + 19 # 679
print(end - start)
# printed result: 65
It is 65 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0079801 | <|start|><|user|>
With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
(Printed: 3.8)
The marg... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 13000\ncosts = 12500\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 3.84615384615... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0079802 | The bridge was finished in 2001. How many years had passed by 2022?
That is 21 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0079803 | <|start|><|user|>
To read 160 pages in 5 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 160
days = 5
per_day = pages // days # 32
print(per_day)
```
The printout reads 32.
32 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 160 pages in 5 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 160\ndays = 5\nper_day = pages // days # 32\nprint(per_day)\n```\nThe printout reads 32.\n\n32 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0079804 | How many days are there from June 10, 2028 to June 26, 2029?
from datetime import date
first = date(2028, 6, 10)
second = date(2029, 6, 26)
print((second - first).days)
Run output: 381
There are 381 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "381", "printed": "381", "notation": null} |
nlprog_det-setting-0079805 | What commission does Zainab make on $54,293 in sales at 2%?
Python code:
```python
sales = 54293
rate = 2 / 100 # 0.02
commission = sales * rate # 1085.8600000000001
print(f"{commission:.2f}")
```
Result: 1085.86
The commission is $1,085.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1085.86", "printed": "1085.86", "notation": null} |
nlprog_det-setting-0079806 | A measure needs at least 60% of 193 votes. How many votes is that, rounded up?
At least 116 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0079807 | Abel's scores were 55, 70, 78, 83 and 99. What is the average score?
Python version:
scores = [55, 70, 78, 83, 99]
average = sum(scores) // len(scores) # 77
print(average)
Result — 77
The mean is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0079808 | How many whole days and leftover hours are in 129 hours?
```python
hours = 129
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Program output — 5 days and 9 hours
That is 5 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "5 days and 9 hours", "printed": "5 days and 9 hours", "notation": null} |
nlprog_det-setting-0079809 | A trial runs from July 28, 2026 to August 5, 2026, counting both days. How many calendar days is that?
Python does the arithmetic:
```python
from datetime import date
first = date(2026, 7, 28) # datetime.date(2026, 7, 28)
last = date(2026, 8, 5) # datetime.date(2026, 8, 5)
days = (last - first).days + 1 # 9
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0079810 | What percentage of $4,000 is $100?
Coded up:
```python
budget = 4000
spent = 100
percent = spent / budget * 100 # 2.5
print(round(percent, 1))
```
(Execution result: 2.5)
That is 2.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2.5", "printed": "2.5", "notation": null} |
nlprog_det-setting-0079811 | A 38 lb package ships at $8 base plus $1.20/lb. What is the charge?
Here's the code.
base = 8
per_pound = 1.2
weight = 38
cost = base + per_pound * weight # 53.6
print(f"{cost:.2f}")
Running it prints 53.60.
Shipping costs $53.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "53.60", "printed": "53.60", "notation": null} |
nlprog_det-setting-0079812 | <|start|><|user|>
How many minutes pass from 8:51 AM to 10:39 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 51 # 531
end = 10 * 60 + 39 # 639
print(end - start)
```
Result:
108
108 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:51 AM to 10:39 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 51 # 531\nend = 10 * 60 + 39 # 639\nprint(end - start)\n```\nResult:\n108\n\n108 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0079813 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = pri... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0079814 | <|start|><|user|>
Filing fees are $125 per document. What do 9 filings cost?<|eot|>
<|assistant|>
The total fee is $1,125.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $125 per document. What do 9 filings cost?"
},
{
"role": "assistant",
"content": "The total fee is $1,125."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0079815 | <|start|><|system|>
You have access to these functions:
[{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Under a 33% con... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0079816 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A car travels 186 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 186
hours = 1.5
speed = distance / hours # 124.0
print(round(speed))
```
(Run result: 124)
The average speed is 124 mph.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A car travels 186 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 186\nhours = 1.5\nspeed = distance / hours # 124... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "124", "printed": "124", "notation": null} |
nlprog_det-setting-0079818 | A settlement of $84,000 is split equally among 4 parties. How much does each party receive?
Computation in Python:
```python
settlement = 84000
parties = 4
share = settlement // parties # 21000
print(share)
```
The program prints: 21000
Each share is $21,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "21000", "printed": "21000", "notation": null} |
nlprog_det-setting-0079819 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 306 | {"gold": "2023-04-13", "printed": "2023-04-13", "notation": null} |
nlprog_det-setting-0079820 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $150,000 award?<|eot|>
<|assistant|>
The lawyer's fee comes to $45,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $150,000 award?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $45,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0079821 | Each storage box holds 25 files. How many boxes are needed for 540 files?
Here is a short program for it.
```python
import math
files = 540
per_box = 25
boxes = math.ceil(files / per_box) # 22
print(boxes)
```
# execution result: 22
22 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0079822 | How many 2-foot square tiles cover a 17 ft by 12 ft floor (round up)?
Computation in Python:
```python
import math
length = 17
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 51
print(tiles)
```
Printed result — 51
51 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0079823 | What average speed covers 312 miles in 4 hours?
```python
distance = 312
hours = 4
speed = distance / hours # 78.0
print(round(speed))
```
Out = 78
It averages 78 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0079824 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A garage charges $4 an hour, never more than $18 a day. How much for 10 hours?<|eot|>
<|assistant|>
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $18 a day. How much for 10 hours?"
},
{
"role": "assistant",
"content": "Parking costs $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0079825 | <|start|><|user|>
How many minutes pass from 8:23 AM to 11:26 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 23 # 503
end = 11 * 60 + 26 # 686
print(end - start)
```
Printed — 183
It is 183 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:23 AM to 11:26 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 23 # 503\nend = 11 * 60 + 26 # 686\nprint(end - start)\n```\nPrinted — 183\n\nIt is 183 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "183", "printed": "183", "notation": null} |
nlprog_det-setting-0079826 | <|start|><|user|>
A settlement of $18,000 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 4
share = settlement // parties # 4500
print(share)
```
Console:
4500
Each share is $4,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $18,000 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 4\nshare = settlement // parties # 4500\nprint(share)\n```\nConsole:\n4500\n\nEach share is $... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0079827 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "calculator", "description": "Exe... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "238.70", "printed": "238.70", "notation": null} |
nlprog_det-setting-0079829 | To read 540 pages in 15 days, how many pages per day are needed?
36 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0079830 | Convert 1 h 41 min (the length of a hearing) to minutes.
As a program:
hours = 1
minutes = 41
total_minutes = hours * 60 + minutes # 101
print(total_minutes)
Execution result — 101
That is 101 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "101", "printed": "101", "notation": null} |
nlprog_det-setting-0079831 | <|start|><|user|>
2 books come back 22 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 22
books = 2
fine = per_day * days_late * books # 11.0
print(f"{fine:.2f}")
```
# run result: 11.00
The fine is $11.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 22 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 22\nbooks = 2\nfine = per_day * days_late * books # 11.0\nprint(f\"{fine:.2f}\")\n```\n# run result: 11.00\n\nThe fi... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "11.00", "printed": "11.00", "notation": null} |
nlprog_det-setting-0079832 | Sales went from 1,200 to 1,140. What is the percent change?
```python
old = 1200
new = 1140
change = (new - old) / old * 100 # -5.0
print(round(change))
```
Interpreter output — -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0079833 | Each of Yusuf's walks burns 300 calories. How many calories over 3 walks?
Python makes this quick:
```python
per_session = 300
sessions = 3
total = per_session * sessions
print(total)
```
Shell output: 900
900 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0079834 | <|start|><|user|>
A 18 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 18
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 68
print(tiles)
```
(Printed: 68)
It takes 68 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 18 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 18\nwidth = 15\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 68\nprint(tiles)\n```\n(Printed: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0079835 | <|start|><|user|>
A measure needs at least 60% of 255 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
import math
voters = 255
needed = math.ceil(voters * 60 / 100) # 153
print(needed)
Output: 153
153 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 255 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": " import math\n voters = 255\n needed = math.ceil(voters * 60 / 100) # 153\n print(needed)\nOutput: 153\n\n153 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "153", "printed": "153", "notation": null} |
nlprog_det-setting-0079836 | If a 75-minute shift begins at 8:00 AM, what time does it finish?
One way, in code:
start = 8 * 60 + 0
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The run gives 9:15 AM.
The shift finishes at 9:15 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "9:15 AM", "printed": "9:15 AM", "notation": null} |
nlprog_det-setting-0079837 | <|start|><|user|>
An office budget of $12,000 has expenses of $1,197, $514, $2,213, $3,700. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 12000
expenses = [1197, 514, 2213, 3700]
left = budget - sum(expenses) # 4376
print(left)
```
It outputs 4376.
$4,376 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $12,000 has expenses of $1,197, $514, $2,213, $3,700. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 12000\nexpenses = [1197, 514, 2213, 3700]\nleft = budget - sum(expenses) # 4376\nprint(left)\n```\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4376", "printed": "4376", "notation": null} |
nlprog_det-setting-0079838 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
How long, in days, is it from November 21, 2025 until December 30, 2025?<|eot|>
<|assistant|>
from datetime import date
first = date(2025, 11, 21) # datetime.date(2025, 11, 21)
second = date(2025, 12, 30) # datetime.date(2025, 12, 30)
print((s... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "How long, in days, is it from November 21, 2025 until December 30, 2025?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2025, 11, 21) # datetime.date(2025... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0079839 | <|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": "eval_python", "description": "Run Python code in a sandbo... | 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\"]}}, {\"name\": \"eva... | nlprog_det | setting | original | null | deterministic | [] | [] | 365 | {"gold": "2023-09-26", "printed": "2023-09-26", "notation": null} |
nlprog_det-setting-0079840 | <|start|><|user|>
A $1,200 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 240.0
... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": " principal = 1200\n annual_rate = 10 / 100 # 0.1\n months = 24\n i... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0079841 | How many units at $15 each (variable cost $7) cover $2,500 of fixed costs?
Here is the program.
```python
import math
fixed = 2500
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 313
print(units)
```
Run result: 313
313 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0079843 | Walls total 336 sq ft and each can covers 400 sq ft. How many cans should be bought?
One way, in code:
```python
import math
area = 336
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
The program prints: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0079844 | A appointment starts at 1:15 PM and lasts 135 minutes. When does it end?
The program:
start = 13 * 60 + 15
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
Run output: 3:30 PM
It ends at 3:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3:30 PM", "printed": "3:30 PM", "notation": null} |
nlprog_det-setting-0079845 | A car travels 302 miles in 2 hours. What is its average speed in miles per hour?
Python code:
```python
distance = 302
hours = 2
speed = distance / hours
print(round(speed))
```
When run, it prints: 151
The average speed is 151 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "151", "printed": "151", "notation": null} |
nlprog_det-setting-0079846 | A client paid a $10,000 retainer. The firm has billed 3 hours at $150 per hour. How much of the retainer is left?
The remaining balance is $9,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "9550", "printed": "9550", "notation": null} |
nlprog_det-setting-0079847 | At $0.70 per mile, what is the reimbursement for 228 miles?
The computation:
```python
miles = 228
rate = 0.7
reimbursement = miles * rate # 159.6
print(f"{reimbursement:.2f}")
```
stdout = 159.60
The reimbursement is $159.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "159.60", "printed": "159.60", "notation": null} |
nlprog_det-setting-0079848 | <|start|><|user|>
How many minutes pass from 9:19 AM to 11:46 AM on the same day?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 19 # 559
end = 11 * 60 + 46 # 706
print(end - start)
```
Run result: 147
147 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 9:19 AM to 11:46 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 19 # 559\nend = 11 * 60 + 46 # 706\nprint(end - start)\n```\nRun result: 147\n\n147 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "147", "printed": "147", "notation": null} |
nlprog_det-setting-0079849 | 7 cables cost $7 apiece. With 10% tax added, what is the total?
Written as code:
```python
quantity = 7
unit_price = 7
subtotal = quantity * unit_price # 49
total = subtotal * (1 + 10 / 100) # 53.900000000000006
print(f"{total:.2f}")
```
The printout reads 53.90.
The total with tax is $53.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "53.90", "printed": "53.90", "notation": null} |
nlprog_det-setting-0079850 | 14 of 25 members attended. What percent attended?
As Python:
```python
present = 14
total = 25
percent = present / total * 100 # 56.00000000000001
print(round(percent, 1))
```
Output: 56.0
56.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "56.0", "printed": "56.0", "notation": null} |
nlprog_det-setting-0079851 | At $0.58 per mile, what is the reimbursement for 95 miles?
Code:
```python
miles = 95
rate = 0.58
reimbursement = miles * rate # 55.099999999999994
print(f"{reimbursement:.2f}")
```
# program output: 55.10
The reimbursement is $55.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "55.10", "printed": "55.10", "notation": null} |
nlprog_det-setting-0079852 | From 2021 to 2048, how many years is that?
Python, step by step:
```python
start_year = 2021
end_year = 2048
print(end_year - start_year)
```
Out: 27
That is 27 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0079853 | What day of the week is May 9, 1999?
The computation:
```python
from datetime import date
hearing = date(1999, 5, 9) # datetime.date(1999, 5, 9)
print(hearing.strftime("%A"))
```
(Out: Sunday)
May 9, 1999 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0079854 | Under a 30% contingency agreement, what fee is owed on a $60,000 award?
Program:
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
Result:
18000.00
The fee is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0079855 | <|start|><|user|>
An office budget of $12,000 has expenses of $1,861, $2,264, $2,616, $2,517. How much of the budget is left?<|eot|>
<|assistant|>
$2,742 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $12,000 has expenses of $1,861, $2,264, $2,616, $2,517. How much of the budget is left?"
},
{
"role": "assistant",
"content": "$2,742 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "2742", "printed": "2742", "notation": null} |
nlprog_det-setting-0079856 | A customer buys 6 ink cartridges at $3 each, 6 markers at $24 each, 1 labels at $7 each and pays with $200. How much change is due?
One way, in code:
```python
items = [(6, 3), (6, 24), (1, 7)]
total = sum(q * p for q, p in items) # 169
paid = 200
change = paid - total # 31
print(change)
```
The run gives 31.
The c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0079857 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Sales went from 500 to 550. What is the percent change?<|eot|>
<|assistant|>
old = 500
new = 550
change = (new - old) / old * 100 # 10.0
print(round(change))
The program prints 10.
It changed by 10%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Sales went from 500 to 550. What is the percent change?"
},
{
"role": "assistant",
"content": " old = 500\n new = 550\n change = (new - old) / old * 100 # 10.0\n print(round(chang... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0079858 | The landlord deducts $120, $150 and $45 from a $2,500 deposit. What is returned to the tenant?
Let the code do the arithmetic:
```python
deposit = 2500
deductions = [120, 150, 45]
refund = deposit - sum(deductions)
print(refund)
```
Executing it gives 2185, as expected.
$2,185 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2185", "printed": "2185", "notation": null} |
nlprog_det-setting-0079859 | <|start|><|user|>
A $240 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 240
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 94.39999999999999
print(f"{each:.2f}")
```
Printed result — 94.40
Each person ... | chat | [
{
"role": "user",
"content": "A $240 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 94.39999999999999\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "94.40", "printed": "94.40", "notation": null} |
nlprog_det-setting-0079860 | The paralegal logged 10.5 hours at a rate of $225. How much is billed?
Coded up:
```python
hours = 10.5
rate = 225
bill = hours * rate # 2362.5
print(f"{bill:.2f}")
```
Execution prints: 2362.50
That comes to $2,362.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2362.50", "printed": "2362.50", "notation": null} |
nlprog_det-setting-0079861 | <|start|><|user|>
A garage charges $4 an hour, never more than $24 a day. How much for 10 hours?<|eot|>
<|assistant|>
```python
rate = 4
hours = 10
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Run result: 24
The charge is $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $24 a day. How much for 10 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 10\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nRun result: 24\n\nThe charge is $24."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0079862 | A trial runs from December 26, 2021 to January 20, 2022, counting both days. How many calendar days is that?
Python code:
```python
from datetime import date
first = date(2021, 12, 26) # datetime.date(2021, 12, 26)
last = date(2022, 1, 20) # datetime.date(2022, 1, 20)
days = (last - first).days + 1 # 26
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0079863 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 3 days?
Computing it:
```python
per_day = 250
days = 3
cap = 2500
fine = min(per_day * days, cap) # 750
print(fine)
```
# execution result: 750
$750 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0079864 | 91 copies of a 22-page packet are printed at $0.12 per page. What is the cost?
Programmatically:
```python
pages = 22
copies = 91
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 240.23999999999998
print(f"{cost:.2f}")
```
Running it prints 240.24.
Printing costs $240.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "240.24", "printed": "240.24", "notation": null} |
nlprog_det-setting-0079865 | How many meters are in 45.2 kilometers?
The Python version:
km = 45.2
meters = km * 1000 # 45200.0
print(round(meters))
It outputs 45200.
That is 45,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "45200", "printed": "45200", "notation": null} |
nlprog_det-setting-0079866 | <|start|><|user|>
What does $1,000 grow to in 4 years at 4% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 1169.8585600000001
print(f"{value:.2f}")
```
Out: 1169.86
It is worth $1,169.86.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 4 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = principal * (1 + rate) ** years # 1169.8585600000001\nprint(f\"{value:.2f}\")\n```\nOut: 116... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1169.86", "printed": "1169.86", "notation": null} |
nlprog_det-setting-0079867 | 330 files go into boxes of 25. How many boxes does that take?
It takes 14 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0079868 | <|start|><|user|>
7 runs at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
That burns 2450 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 runs at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "That burns 2450 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0079869 | A garage charges $4 an hour, never more than $20 a day. How much for 1 hours?
Python version:
```python
rate = 4
hours = 1
daily_max = 20
cost = min(rate * hours, daily_max) # 4
print(cost)
```
The script prints 4, as expected.
The charge is $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0079870 | <|start|><|user|>
A trial runs from May 19, 2018 to May 25, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
7 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from May 19, 2018 to May 25, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "7 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0079871 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after November 21, 2027 up to and including December 16, 2027?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2027, 11, 21)
end = date(2027, 12, 16)
count = 0
for k in range... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after November 21, 2027 up to and including December 16, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0079872 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 107 copies of a 30-page handout?<|eot|>
<|assistant|>
```python
pages = 30
copies = 107
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 385.2
print(f"{cost:.2f}")
```
The run gives 385.20.
Printing costs $385.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 107 copies of a 30-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 30\ncopies = 107\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 385.2\nprint(f\"{cost:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "385.20", "printed": "385.20", "notation": null} |
nlprog_det-setting-0079873 | Convert 856 EUR to USD at 1 EUR = 1.35 USD.
As a program:
amount = 856
rate = 1.35
converted = amount * rate # 1155.6000000000001
print(f"{converted:.2f}")
Run result — 1155.60
It converts to 1,155.60 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1155.60", "printed": "1155.60", "notation": null} |
nlprog_det-setting-0079874 | <|start|><|user|>
Count the days between January 27, 2026 and October 24, 2026.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 1, 27)
second = date(2026, 10, 24)
print((second - first).days)
```
Interpreter output: 270
There are 270 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between January 27, 2026 and October 24, 2026."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2026, 1, 27)\nsecond = date(2026, 10, 24)\nprint((second - first).days)\n```\nInterpreter output: 270\n\nThere are... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0079876 | <|start|><|user|>
What average speed covers 165 miles in 0.5 hours?<|eot|>
<|assistant|>
It averages 330 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 165 miles in 0.5 hours?"
},
{
"role": "assistant",
"content": "It averages 330 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0079877 | <|start|><|user|>
What is a 25% tip on a $144.09 bill?<|eot|>
<|assistant|>
```python
bill = 144.09
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 36.0225
print(f"{tip:.2f}")
```
On running, it outputs: 36.02
The tip is $36.02.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $144.09 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 144.09\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 36.0225\nprint(f\"{tip:.2f}\")\n```\nOn running, it outputs: 36.02\n\nThe tip is $36.02."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "36.02", "printed": "36.02", "notation": null} |
nlprog_det-setting-0079879 | <|start|><|user|>
Mateo drove 409 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 409
rate = 0.65
reimbursement = miles * rate # 265.85
print(f"{reimbursement:.2f}")
```
The code prints: 265.85
Mateo is owed $265.85.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mateo drove 409 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 409\nrate = 0.65\nreimbursement = miles * rate # 265.85\nprint(f\"{reimbursement:.2f}\")\n```\nThe cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "265.85", "printed": "265.85", "notation": null} |
nlprog_det-setting-0079880 | Prorate $2,400 of monthly rent for 9 days of a 30-day month.
A few lines of Python do it:
```python
rent = 2400
days_in_month = 30
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 720.0
print(f"{prorated:.2f}")
```
The run gives 720.00, as expected.
The tenant owes $720.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0079881 | How many of 172 votes make 67% (round up)?
In code:
import math
voters = 172
needed = math.ceil(voters * 67 / 100) # 116
print(needed)
Running it prints: 116
116 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0079882 | Count the days between June 24, 2020 and October 30, 2020.
Program:
```python
from datetime import date
first = date(2020, 6, 24) # datetime.date(2020, 6, 24)
second = date(2020, 10, 30) # datetime.date(2020, 10, 30)
print((second - first).days)
```
Output — 128
There are 128 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "128", "printed": "128", "notation": null} |
nlprog_det-setting-0079883 | A garage charges $2 an hour, never more than $18 a day. How much for 6 hours?
Code:
```python
rate = 2
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
That prints 12.
Parking costs $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0079884 | A garage charges $3 an hour, never more than $15 a day. How much for 10 hours?
The computation:
rate = 3
hours = 10
daily_max = 15
cost = min(rate * hours, daily_max)
print(cost)
Run result = 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0079885 | Straight-line depreciation: cost $45,000, salvage $6,000, 6 years. How much per year?
Coded up:
```python
cost = 45000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 6500.0
print(f"{per_year:.2f}")
```
Run result — 6500.00
$6,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6500.00", "printed": "6500.00", "notation": null} |
nlprog_det-setting-0079886 | <|start|><|user|>
A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 150000
rate = 25 / 100 # 0.25
fee = recovery * rate # 37500.0
print(f"{fee:.2f}")
```
Result:
37500.00
The fee is $37,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 150000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 37500.0\nprint(f\"{fee:.2f}\")\n```\nResult:\n37500.00\n\nThe fee is $37,500.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "37500.00", "printed": "37500.00", "notation": null} |
nlprog_det-setting-0079887 | A library charges $0.15 per book per day late. What is the fine for 1 books that are 23 days late?
Computing it:
```python
per_day = 0.15
days_late = 23
books = 1
fine = per_day * days_late * books # 3.4499999999999997
print(f"{fine:.2f}")
```
(Execution result: 3.45)
The fine is $3.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3.45", "printed": "3.45", "notation": null} |
nlprog_det-setting-0079888 | <|start|><|user|>
A lease runs for 6 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 6
total = monthly_rent * months # 9840
print(total)
```
Printed — 9840
The rent over the term is $9,840.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 6 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 6\ntotal = monthly_rent * months # 9840\nprint(total)\n```\nPrinted — 9840\n\nThe rent over the... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "9840", "printed": "9840", "notation": null} |
nlprog_det-setting-0079889 | What day of the week is October 11, 1999?
The program:
from datetime import date
hearing = date(1999, 10, 11) # datetime.date(1999, 10, 11)
print(hearing.strftime("%A"))
Output of the run — Monday
October 11, 1999 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0079890 | A shift runs from 7:03 AM to 1:24 PM. How long is it in minutes?
We can compute it in Python.
```python
start = 7 * 60 + 3 # 423
end = 13 * 60 + 24 # 804
print(end - start)
```
Shell output: 381
381 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "381", "printed": "381", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.