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-0053890
A 195-mile drive at a steady 65 mph takes how many minutes? 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0053891
One can of paint covers 300 square feet. How many cans are needed for 1313 square feet of wall? Here is the program. import math area = 1313 coverage = 300 cans = math.ceil(area / coverage) # 5 print(cans) The script prints 5, as expected. Buy 5 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0053892
<|start|><|user|> 2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 2 # 33600.0 print(f"{per_client:.2f}") ``` Out: 33600.0...
chat
[ { "role": "user", "content": "2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0053893
A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term? We can compute it in Python. ```python monthly_rent = 1640 months = 18 total = monthly_rent * months # 29520 print(total) ``` # console output: 29520 The rent over the term is $29,520.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "29520", "printed": "29520", "notation": null}
nlprog_det-setting-0053894
<|start|><|user|> Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> The margin is 38.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "The margin is 38.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0053895
How many units at $40 each (variable cost $35) cover $4,000 of fixed costs? Python makes this quick: ```python import math fixed = 4000 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` # printed: 800 800 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0053896
What is the total rent on a 18-month lease at $2,875 a month? Let's compute it with Python. ```python monthly_rent = 2875 months = 18 total = monthly_rent * months # 51750 print(total) ``` Run result = 51750 The rent over the term is $51,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0053897
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? As Python: ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") ``` stdout: 1037.50 Bruna earns $1,037.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0053898
<|start|><|user|> Rent of $1,100 goes up 6%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1100 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1166.0 print(f"{new_rent:.2f}") ``` # stdout: 1166.00 It rises to $1,166.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,100 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1166.0\nprint(f\"{new_rent:.2f}\")\n```\n# stdout: 1166.00\n\nIt rises to $1,166.00." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1166.00", "printed": "1166.00", "notation": null}
nlprog_det-setting-0053899
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 282 savings = monthly * 12 - yearly # 18 print(savings) ``` The run gives: 18 The annual plan s...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 282\nsaving...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053900
Scale 200 g of rice from 8 servings to 2 servings. As a program: ```python grams = 200 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 50 print(scaled) ``` Output — 50 50 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0053901
A hearing is set for May 10, 1993. What day of the week is that? A Python solution: ```python from datetime import date hearing = date(1993, 5, 10) # datetime.date(1993, 5, 10) print(hearing.strftime("%A")) ``` # run result: Monday May 10, 1993 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0053902
Each of Helga's bike rides burns 350 calories. How many calories over 6 bike rides? per_session = 350 sessions = 6 total = per_session * sessions print(total) # console output: 2100 2100 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0053903
<|start|><|user|> Starting from $20,000, the team spends $370, $3,148, $3,102, $3,499. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [370, 3148, 3102, 3499] left = budget - sum(expenses) # 9881 print(left) ``` The run gives 9881, as expected. The remaining budget is $9,881.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $370, $3,148, $3,102, $3,499. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [370, 3148, 3102, 3499]\nleft = budget - sum(expenses) # 9881\nprint(left)\n```\nThe run gives 9881, as e...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "9881", "printed": "9881", "notation": null}
nlprog_det-setting-0053904
<|start|><|user|> A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") The run gives: 36000.00 The lawyer's fee comes to $36,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 90000\n rate = 40 / 100 # 0.4\n fee = recovery * rate # 36000.0\n print(f\"{fee:.2f}\")\nThe run gives: 36000.00\n\nThe lawyer's fee c...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0053905
<|start|><|user|> A customer buys 3 flash drives at $14 each, 1 badges at $11 each, 6 hard drives at $20 each, 2 chairs at $23 each and pays with $250. How much change is due?<|eot|> <|assistant|> items = [(3, 14), (1, 11), (6, 20), (2, 23)] total = sum(q * p for q, p in items) paid = 250 change = paid ...
chat
[ { "role": "user", "content": "A customer buys 3 flash drives at $14 each, 1 badges at $11 each, 6 hard drives at $20 each, 2 chairs at $23 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": " items = [(3, 14), (1, 11), (6, 20), (2, 23)]\n total = sum(q *...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0053906
Filing fees are $35 per document. What do 5 filings cost? In Python: fee = 35 filings = 5 total = fee * filings # 175 print(total) Python prints 175. The total fee is $175.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0053907
<|start|><|user|> How many minutes pass from 9:32 AM to 11:57 AM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 32 # 572 end = 11 * 60 + 57 # 717 print(end - start) ``` Output — 145 It is 145 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:32 AM to 11:57 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 32 # 572\nend = 11 * 60 + 57 # 717\nprint(end - start)\n```\nOutput — 145\n\nIt is 145 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "145", "printed": "145", "notation": null}
nlprog_det-setting-0053908
A $210 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share? Each person pays $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0053909
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 1200.0 print(f"{per_year:.2f}") ``` Printed — 1200.00 Depreciation is $1,200.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 1200.0\nprint(f\"{per_year:.2f}\")\n```\nPrinted —...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0053910
Convert 40 °C to Fahrenheit. ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Console output — 104 It equals 104 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0053911
A party has 14 days to respond to a motion served on April 18, 2028, with 3 days added because service was by mail. When is the response due? from datetime import date, timedelta served = date(2028, 4, 18) # datetime.date(2028, 4, 18) response_days = 14 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "2028-05-05", "printed": "2028-05-05", "notation": null}
nlprog_det-setting-0053912
A 855-page report must be reviewed in 19 days. How many pages a day is that, evenly? 45 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0053913
<|start|><|user|> 9 boxes hold 8 notebooks each. After 11 are handed out, how many are left?<|eot|> <|assistant|> 61 notebooks are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 8 notebooks each. After 11 are handed out, how many are left?" }, { "role": "assistant", "content": "61 notebooks are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0053914
Pack A has 12 items for $14.28. Pack B has 24 items for $27.70. Which has the lower price per item? Code: ```python pack_a = 14.28 / 12 # 1.19 pack_b = 27.7 / 24 # 1.1541666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Run it and it prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0053915
Scale 100 g of oats from 8 servings to 2 servings. The program: ```python grams = 100 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 25 print(scaled) ``` Printed = 25 25 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053916
At 45 miles per hour, how many minutes does a 90-mile trip take? Python: ```python distance = 90 speed = 45 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` Python prints: 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0053917
<|start|><|user|> Which is cheaper per unit: 12 for $6.12 (A) or 15 for $23.79 (B)?<|eot|> <|assistant|> ```python pack_a = 6.12 / 12 # 0.51 pack_b = 23.79 / 15 # 1.5859999999999999 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` (stdout: A) Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $6.12 (A) or 15 for $23.79 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 6.12 / 12 # 0.51\npack_b = 23.79 / 15 # 1.5859999999999999\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\n(std...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0053918
At 1% a month (simple), what interest builds on $7,500 over 2 months? Written as code: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Execution prints 150.00, as expected. The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0053919
How many of 261 votes make 75% (round up)? In Python: ```python import math voters = 261 needed = math.ceil(voters * 75 / 100) # 196 print(needed) ``` # stdout: 196 196 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "196", "printed": "196", "notation": null}
nlprog_det-setting-0053920
<|start|><|user|> Find the mean of these test scores: 61, 74, 77, 96 and 82.<|eot|> <|assistant|> ```python scores = [61, 74, 77, 96, 82] average = sum(scores) // len(scores) # 78 print(average) ``` Output of the run — 78 The average score is 78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 61, 74, 77, 96 and 82." }, { "role": "assistant", "content": "```python\nscores = [61, 74, 77, 96, 82]\naverage = sum(scores) // len(scores) # 78\nprint(average)\n```\nOutput of the run — 78\n\nThe average score is 78." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0053921
<|start|><|user|> The rules require 3/5 of 22 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 22 quorum = math.ceil(members * 3 / 5) # 14 print(quorum) ``` Interpreter output: 14 That is 14 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 22 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 22\nquorum = math.ceil(members * 3 / 5) # 14\nprint(quorum)\n```\nInterpreter output: 14\n\nThat is 14 members."...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0053922
Tobias's scores were 69, 53, 68, 77 and 88. What is the average score? A Python solution: ```python scores = [69, 53, 68, 77, 88] average = sum(scores) // len(scores) print(average) ``` Program output — 71 The average score is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0053923
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "run_python", "description": "Execute...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\"...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "342", "printed": "342", "notation": null}
nlprog_det-setting-0053924
<|start|><|user|> From a $5,000 retainer, 3 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 3 rate = 250 left = retainer - hours * rate # 4250 print(left) ``` That prints 4250. The remaining balance is $4,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 3 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 3\nrate = 250\nleft = retainer - hours * rate # 4250\nprint(left)\n```\nThat prints 4250.\n\nThe remaining balance...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4250", "printed": "4250", "notation": null}
nlprog_det-setting-0053925
A claim accrued on September 10, 2017. The limitations period is 5 years. On what date does it expire? Python makes this quick: ```python from datetime import date accrued = date(2017, 9, 10) # datetime.date(2017, 9, 10) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 9, 10) prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2022-09-10", "printed": "2022-09-10", "notation": null}
nlprog_det-setting-0053927
<|start|><|user|> A client paid a $10,000 retainer. The firm has billed 4 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 4 rate = 250 left = retainer - hours * rate # 9000 print(left) ``` Output of the run — 9000 $9,000 of the retainer is left.<|eot|>...
chat
[ { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 4 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 4\nrate = 250\nleft = retainer - hours * rate # 9000\nprint(left)\n```\nOut...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0053928
An invoice lists 35 chairs at $6 each, plus 5% sales tax. What is the invoice total? Let the code do the arithmetic: ```python quantity = 35 unit_price = 6 subtotal = quantity * unit_price # 210 total = subtotal * (1 + 5 / 100) # 220.5 print(f"{total:.2f}") ``` It prints 220.50. The total with tax is $220.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "220.50", "printed": "220.50", "notation": null}
nlprog_det-setting-0053929
A measure needs at least 75% of 53 votes. How many votes is that, rounded up? ```python import math voters = 53 needed = math.ceil(voters * 75 / 100) # 40 print(needed) ``` Executing it gives 40. At least 40 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0053930
<|start|><|user|> How many whole days and leftover hours are in 33 hours?<|eot|> <|assistant|> ```python hours = 33 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` When run, it prints 1 days and 9 hours. 33 hours is 1 days and 9 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 33 hours?" }, { "role": "assistant", "content": "```python\nhours = 33\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhen run, it prints 1 days and 9 hours.\n\n33 hours is 1 days and 9 h...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1 days and 9 hours", "printed": "1 days and 9 hours", "notation": null}
nlprog_det-setting-0053931
If a 3-year limitations period starts on February 28, 2016, when does it end? The Python version: ```python from datetime import date accrued = date(2016, 2, 28) # datetime.date(2016, 2, 28) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 2, 28) print(expires.isoformat()) ``` Thi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2019-02-28", "printed": "2019-02-28", "notation": null}
nlprog_det-setting-0053932
<|start|><|user|> Prorate $1,800 of monthly rent for 20 days of a 31-day month.<|eot|> <|assistant|> rent = 1800 days_in_month = 31 days_occupied = 20 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") Python prints: 1161.29 The prorated rent is $1,161.29.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 20 days of a 31-day month." }, { "role": "assistant", "content": " rent = 1800\n days_in_month = 31\n days_occupied = 20\n prorated = rent * days_occupied / days_in_month\n print(f\"{prorated:.2f}\")\nPython prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1161.29", "printed": "1161.29", "notation": null}
nlprog_det-setting-0053934
A measure needs at least 60% of 268 votes. How many votes is that, rounded up? Coded up: import math voters = 268 needed = math.ceil(voters * 60 / 100) # 161 print(needed) Executed, it shows 161. At least 161 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0053935
Divide 43 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Python, step by step: ```python total = 43 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Console: 8 each, 3 left over The answer: 8 each, 3 l...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "8 each, 3 left over", "printed": "8 each, 3 left over", "notation": null}
nlprog_det-setting-0053936
Convert 3 h 13 min (the length of a hearing) to minutes. Programmatically: hours = 3 minutes = 13 total_minutes = hours * 60 + minutes # 193 print(total_minutes) The code prints: 193 That is 193 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0053937
A 6 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Here's the code. ```python import math length = 6 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) ``` The interpreter prints 30. 30 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0053938
How many of 66 votes make 67% (round up)? Let the code do the arithmetic: ```python import math voters = 66 needed = math.ceil(voters * 67 / 100) # 45 print(needed) ``` Program output: 45 At least 45 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0053939
<|start|><|user|> Attendance was 14 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 14 total = 25 percent = present / total * 100 # 56.00000000000001 print(round(percent, 1)) ``` The printout reads 56.0. Attendance was 56.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 14 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 14\ntotal = 25\npercent = present / total * 100 # 56.00000000000001\nprint(round(percent, 1))\n```\nThe printout reads 56.0.\n\nAttendance was 56.0%." ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "56.0", "printed": "56.0", "notation": null}
nlprog_det-setting-0053940
If a 105-minute meeting begins at 12:15 PM, what time does it finish? The meeting finishes at 2:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2:00 PM", "printed": "2:00 PM", "notation": null}
nlprog_det-setting-0053941
After an initial $0, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part? ```python grant = 12000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 3000.0 print(f"{each:.2f}") ``` It outputs: 3000.00 $3,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0053942
Scale 240 g of sugar from 2 servings to 8 servings. ```python grams = 240 serves = 2 needed_for = 8 scaled = grams * needed_for // serves # 960 print(scaled) ``` (Output: 960) 960 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "960", "printed": "960", "notation": null}
nlprog_det-setting-0053943
<|start|><|user|> Goods bought on June 16, 2026 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2026, 6, 16) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) ...
chat
[ { "role": "user", "content": "Goods bought on June 16, 2026 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2026, 6, 16)\n months = 18\n years, month_index = divmod(start.month - 1 + months, 12)\n end...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2027-12-16", "printed": "2027-12-16", "notation": null}
nlprog_det-setting-0053945
Vera and Farah share $1,130 in the ratio 2:3. How much does Vera get? Python code: ```python total = 1130 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 452 print(share_a) ``` On running, it outputs: 452 Vera gets $452.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "452", "printed": "452", "notation": null}
nlprog_det-setting-0053946
An attorney bills 4 hours at $250 per hour. What is the bill? ```python hours = 4 rate = 250 bill = hours * rate # 1000 print(f"{bill:.2f}") ``` Console output — 1000.00 The bill is $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0053947
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0053948
Fines run at $100 per day up to a maximum of $1,000. How much after 20 days? The program: ```python per_day = 100 days = 20 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` # printed result: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0053949
Zoe buys 6 boxes of 8 keyboards each and gives away 19 keyboards. How many keyboards are left? That leaves 29 keyboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0053950
Emeka drove 93 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? Code: miles = 93 rate = 0.58 reimbursement = miles * rate # 53.94 print(f"{reimbursement:.2f}") Printed: 53.94 The reimbursement is $53.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "53.94", "printed": "53.94", "notation": null}
nlprog_det-setting-0053951
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_st...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0053952
A 9-day trip pays $64 a day for meals and $110 a night for lodging (8 nights). What is the total allowance? days = 9 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1456 print(total) Running this gives 1456. The allowance is $1,456.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1456", "printed": "1456", "notation": null}
nlprog_det-setting-0053953
Liesel was born on December 4, 2009. How old is Liesel on August 6, 2026? A few lines of Python do it: ```python from datetime import date born = date(2009, 12, 4) # datetime.date(2009, 12, 4) on = date(2026, 8, 6) # datetime.date(2026, 8, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0053954
<|start|><|user|> A lease runs for 12 months at $2,875 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $34,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $2,875 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $34,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0053955
Papers were served by mail on March 17, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Python code: ```python from datetime import date, timedelta served = date(2027, 3, 17) response_days = 21 mail_days = 3 due = served + timedelta(days=response_days + mail_days) pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2027-04-10", "printed": "2027-04-10", "notation": null}
nlprog_det-setting-0053956
<|start|><|user|> 91 copies of a 41-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 41 copies = 91 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 559.65 print(f"{cost:.2f}") ``` Executing it gives 559.65. The job costs $559.65.<|eot|> <|end|>
chat
[ { "role": "user", "content": "91 copies of a 41-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 41\ncopies = 91\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 559.65\nprint(f\"{cost:.2f}\")\n```\nExecuting it...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "559.65", "printed": "559.65", "notation": null}
nlprog_det-setting-0053957
<|start|><|user|> An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Executing it gives 150.00, as expected. $150...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100\nmonths = 6\ninterest = balance * monthly_rate * months\nprint(f\"{inter...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0053958
<|start|><|user|> At $21.66 an hour, what does 36 hours of work pay?<|eot|> <|assistant|> That earns $779.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $21.66 an hour, what does 36 hours of work pay?" }, { "role": "assistant", "content": "That earns $779.76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "779.76", "printed": "779.76", "notation": null}
nlprog_det-setting-0053960
Counting the first and last day, how many days are there from March 17, 2023 through March 26, 2023? In code: ```python from datetime import date first = date(2023, 3, 17) # datetime.date(2023, 3, 17) last = date(2023, 3, 26) # datetime.date(2023, 3, 26) days = (last - first).days + 1 # 10 print(days) ``` Out: 10 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0053961
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
254
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0053962
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A lawyer's fee is 35% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> The lawyer's fee comes to $31,500.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A lawyer's fee is 35% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "The lawyer's fee comes to $31,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0053963
From 2010 to 2025, how many years is that? As a program: ```python start_year = 2010 end_year = 2025 print(end_year - start_year) ``` Run result: 15 That is 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053964
Counting only Monday through Friday, how many business days are there after October 21, 2027 through November 16, 2027? Coded up: ```python from datetime import date, timedelta start = date(2027, 10, 21) end = date(2027, 11, 16) 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
[]
[]
158
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053965
A storeroom has 749 hard drives. The office uses 40 a day. How many are left after 5 days? Here is a short program for it. ```python stock = 749 per_day = 40 days = 5 left = stock - per_day * days # 549 print(left) ``` Run result: 549 549 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "549", "printed": "549", "notation": null}
nlprog_det-setting-0053967
<|start|><|user|> How many units at $15 each (variable cost $7) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` The run gives 150. 150 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $15 each (variable cost $7) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 15\nvariable = 7\nunits = math.ceil(fixed / (price - variable)) # 150\nprint(units)\n```\nThe run gives 1...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0053968
<|start|><|user|> Each storage box holds 12 files. How many boxes are needed for 429 files?<|eot|> <|assistant|> ```python import math files = 429 per_box = 12 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` Program output — 36 36 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 429 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 429\nper_box = 12\nboxes = math.ceil(files / per_box) # 36\nprint(boxes)\n```\nProgram output — 36\n\n36 boxes are neede...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0053969
12 of 25 members attended. What percent attended? As Python: ```python present = 12 total = 25 percent = present / total * 100 # 48.0 print(round(percent, 1)) ``` This prints: 48.0 Attendance was 48.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0053970
A workshop lasted 2 hours and 23 minutes. How many minutes is that? Python code: hours = 2 minutes = 23 total_minutes = hours * 60 + minutes # 143 print(total_minutes) Run it and it prints 143. That is 143 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0053971
On which weekday does March 5, 1996 fall? Python, step by step: ```python from datetime import date hearing = date(1996, 3, 5) # datetime.date(1996, 3, 5) print(hearing.strftime("%A")) ``` Running this gives: Tuesday March 5, 1996 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0053972
<|start|><|user|> At an exchange rate of 1.31 EUR per USD, how many EUR is 2,179 USD?<|eot|> <|assistant|> ```python amount = 2179 rate = 1.31 converted = amount * rate # 2854.4900000000002 print(f"{converted:.2f}") ``` Output of the run — 2854.49 It converts to 2,854.49 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.31 EUR per USD, how many EUR is 2,179 USD?" }, { "role": "assistant", "content": "```python\namount = 2179\nrate = 1.31\nconverted = amount * rate # 2854.4900000000002\nprint(f\"{converted:.2f}\")\n```\nOutput of the run — 2854.49\n\nIt con...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2854.49", "printed": "2854.49", "notation": null}
nlprog_det-setting-0053973
4 claimants share a $15,000 settlement equally. What is each share? ```python settlement = 15000 parties = 4 share = settlement // parties # 3750 print(share) ``` Shell output: 3750 Each share is $3,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0053975
Filing fees are $350 per document. What do 15 filings cost? A short script: ```python fee = 350 filings = 15 total = fee * filings # 5250 print(total) ``` Execution result: 5250 The total fee is $5,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "5250", "printed": "5250", "notation": null}
nlprog_det-setting-0053976
Tomas's scores were 74, 91, 65 and 98. What is the average score? The program: scores = [74, 91, 65, 98] average = sum(scores) // len(scores) # 82 print(average) Out: 82 The mean is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0053977
A measure needs at least 60% of 210 votes. How many votes is that, rounded up? Python, step by step: ```python import math voters = 210 needed = math.ceil(voters * 60 / 100) print(needed) ``` Printed — 126 At least 126 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "126", "printed": "126", "notation": null}
nlprog_det-setting-0053978
What percentage of $10,000 is $1,100? Here is a short program for it. ```python budget = 10000 spent = 1100 percent = spent / budget * 100 # 11.0 print(round(percent, 1)) ``` Printed result — 11.0 11.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "11.0", "printed": "11.0", "notation": null}
nlprog_det-setting-0053979
How many meters are in 1.7 kilometers? The program: ```python km = 1.7 meters = km * 1000 # 1700.0 print(round(meters)) ``` Execution result — 1700 That is 1,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "1700", "printed": "1700", "notation": null}
nlprog_det-setting-0053980
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", "description": "Fetch an SEC fili...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
358
{"gold": "16 days and 13 hours", "printed": "16 days and 13 hours", "notation": null}
nlprog_det-setting-0053981
<|start|><|user|> How many weekdays (Monday to Friday) fall after November 12, 2021 up to and including November 20, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 11, 12) end = date(2021, 11, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelt...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after November 12, 2021 up to and including November 20, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 11, 12)\nend = date(2021, 11, 20)\ncount = 0\nfor k in...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0053982
A car travels 176 miles in 2 hours. What is its average speed in miles per hour? The average speed is 88 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0053983
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 1358 square feet of wall?<|eot|> <|assistant|> 4 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 1358 square feet of wall?" }, { "role": "assistant", "content": "4 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0053984
Counting only Monday through Friday, how many business days are there after November 15, 2024 through November 28, 2024? We write it as a program: from datetime import date, timedelta start = date(2024, 11, 15) end = date(2024, 11, 28) count = 0 for k in range(1, (end - start).days + 1): if...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0053985
Convert 1 h 55 min (the length of a meeting) to minutes. Translated to Python: ```python hours = 1 minutes = 55 total_minutes = hours * 60 + minutes # 115 print(total_minutes) ``` Run it and it prints: 115 The meeting lasted 115 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "115", "printed": "115", "notation": null}
nlprog_det-setting-0053986
<|start|><|user|> A settlement of $525 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 525 parties = 5 share = settlement // parties # 105 print(share) ``` It outputs 105. Each party receives $105.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $525 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 525\nparties = 5\nshare = settlement // parties # 105\nprint(share)\n```\nIt outputs 105.\n\nEach party receives ...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0053987
With 24 rows of 15 chairs and 40 empty chairs, how many chairs are taken? Let the code do the arithmetic: ```python rows = 24 per_row = 15 empty = 40 seated = rows * per_row - empty # 320 print(seated) ``` Python prints 320, as expected. 320 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0053988
Leon drove 89 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? In Python: ```python miles = 89 rate = 0.67 reimbursement = miles * rate # 59.63 print(f"{reimbursement:.2f}") ``` This prints 59.63. Leon is owed $59.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "59.63", "printed": "59.63", "notation": null}
nlprog_det-setting-0053989
5 friends split a $84 bill plus a 18% tip evenly. How much does each pay? Here is a short program for it. ```python bill = 84 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 19.823999999999998 print(f"{each:.2f}") ``` Execution prints: 19.82 Each person pays $19.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "19.82", "printed": "19.82", "notation": null}
nlprog_det-setting-0053991
With 25% off, what does a $90 jacket cost? ```python price = 90 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 67.5 print(f"{sale_price:.2f}") ``` When run, it prints 67.50, as expected. It costs $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0053992
<|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": "convert_units", "description": "Convert a quantity betwee...
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\": \"con...
nlprog_det
setting
original
null
deterministic
[]
[]
463
{"gold": "2025-11-28", "printed": "2025-11-28", "notation": null}
nlprog_det-setting-0053993
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Counting the first and last day, how many days are there from December 6, 2028 through December 13, 2028?<|eot|> <|assistant|> from datetime import date first = date(2028, 12, 6) # datetime.date(2028, 12, 6) last = date(2028, 12, 13) # d...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Counting the first and last day, how many days are there from December 6, 2028 through December 13, 2028?" }, { "role": "assistant", "content": " from datetime import date\n first...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0053994
<|start|><|user|> A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 88-page copy cost?<|eot|> <|assistant|> pages = 88 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 32.0 print(f"{cost:.2f}") When run, it pri...
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 88-page copy cost?" }, { "role": "assistant", "content": " pages = 88\n base = 10\n per_page = 0.25\n free_pages = 0\n cost = base + max(0, pages - free_pages) * ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0053995
A car travels 172 miles in 2 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 172 hours = 2 speed = distance / hours print(round(speed)) ``` The script prints 86, as expected. It averages 86 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0053996
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> On which weekday does June 19, 2014 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2014, 6, 19) # datetime.date(2014, 6, 19) print(hearing.strftime("%A")) ``` Printed: Thursday June 19, 2014 is a Thursday.<|eot|>...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "On which weekday does June 19, 2014 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2014, 6, 19) # datetime.date(2014, 6, 19)\np...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "Thursday", "printed": "Thursday", "notation": null}