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-0072487
Counting only Monday through Friday, how many business days are there after April 12, 2018 through May 4, 2018? The Python version: from datetime import date, timedelta start = date(2018, 4, 12) end = date(2018, 5, 4) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0072488
<|start|><|user|> If a 105-minute hearing begins at 10:10 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 10 * 60 + 10 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` On running, it outputs 11:55 AM. The hearing finish...
chat
[ { "role": "user", "content": "If a 105-minute hearing begins at 10:10 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 10\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "11:55 AM", "printed": "11:55 AM", "notation": null}
nlprog_det-setting-0072489
With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. We write it as a program: revenue = 13000 costs = 12500 profit = revenue - costs # 500 margin = profit / revenue * 100 # 3.8461538461538463 print(round(margin, 1)) The printout reads 3.8. The m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0072490
A client paid a $2,500 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left? Here's the code. ```python retainer = 2500 hours = 2 rate = 275 left = retainer - hours * rate # 1950 print(left) ``` (Program output: 1950) $1,950 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0072491
Someone born December 12, 1968 turns how old by March 18, 2025? Give the age in whole years. Computation in Python: ```python from datetime import date born = date(1968, 12, 12) # datetime.date(1968, 12, 12) on = date(2025, 3, 18) # datetime.date(2025, 3, 18) age = on.year - born.year - ((on.month, on.day) < (born.m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0072492
A board has 7 members. A majority is more than half. How many votes make a majority? Translated to Python: ```python members = 7 majority = members // 2 + 1 # 4 print(majority) ``` That prints 4. That is 4 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0072493
<|start|><|system|> Available functions (JSON Schema): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
419
{"gold": "125.28", "printed": "125.28", "notation": null}
nlprog_det-setting-0072494
Each of Malik's bike rides burns 250 calories. How many calories over 3 bike rides? Computing it: ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Run output: 750 750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0072495
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> In total, $10,200 is paid.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "In total, $10,200 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0072496
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months? A short script: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 540.0 print(f"{interest:.2f}") ``` Executing it gives 540.00, as expected. Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0072497
A customer buys 4 rulers at $13 each, 5 rulers at $10 each, 4 staplers at $29 each and pays with $250. How much change is due? The change is $32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0072498
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> 3 books come back 15 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.15 days_late = 15 books = 3 fine = per_day * days_late * books # 6.75 print(f"{fine:.2f}") Result: 6.75 The fine is $6.75.<|eot|>...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "3 books come back 15 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.15\n days_late = 15\n books = 3\n fine = per_day * day...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6.75", "printed": "6.75", "notation": null}
nlprog_det-setting-0072500
Attendance was 52 out of 80. Express it as a percent. Python code: ```python present = 52 total = 80 percent = present / total * 100 # 65.0 print(round(percent, 1)) ``` The interpreter prints 65.0. Attendance was 65.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "65.0", "printed": "65.0", "notation": null}
nlprog_det-setting-0072501
<|start|><|system|> You have access to these functions: {"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "define_word", ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0072502
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A settlement of $1,200 is split equally among 3 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` Python prints 400. Each party receives $400.<|eo...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A settlement of $1,200 is split equally among 3 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 3\nshare = settleme...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0072503
<|start|><|user|> 4 boxes hold 25 staplers each. After 18 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 25 given_away = 18 left = boxes * per_box - given_away # 82 print(left) ``` Output of the run — 82 That leaves 82 staplers.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 boxes hold 25 staplers each. After 18 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 25\ngiven_away = 18\nleft = boxes * per_box - given_away # 82\nprint(left)\n```\nOutput of the run — 82\n\nThat leaves ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0072504
From a $7,500 retainer, 13 hours at $200/hour have been drawn. What remains? Translated to Python: ```python retainer = 7500 hours = 13 rate = 200 left = retainer - hours * rate # 4900 print(left) ``` Interpreter output — 4900 The remaining balance is $4,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "4900", "printed": "4900", "notation": null}
nlprog_det-setting-0072505
At a 9% tax rate, what is the tax on $381.66? Program: ```python price = 381.66 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 34.3494 print(f"{tax:.2f}") ``` Executing it gives 34.35, as expected. The tax is $34.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "34.35", "printed": "34.35", "notation": null}
nlprog_det-setting-0072506
<|start|><|user|> A storeroom has 246 markers. The office uses 38 a day. How many are left after 6 days?<|eot|> <|assistant|> ```python stock = 246 per_day = 38 days = 6 left = stock - per_day * days # 18 print(left) ``` Printed: 18 18 markers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 246 markers. The office uses 38 a day. How many are left after 6 days?" }, { "role": "assistant", "content": "```python\nstock = 246\nper_day = 38\ndays = 6\nleft = stock - per_day * days # 18\nprint(left)\n```\nPrinted:\n18\n\n18 markers are left."...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072507
<|start|><|user|> Which is cheaper per unit: 10 for $10.45 (A) or 15 for $31.38 (B)?<|eot|> <|assistant|> ```python pack_a = 10.45 / 10 # 1.045 pack_b = 31.38 / 15 # 2.092 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` This prints: A Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $10.45 (A) or 15 for $31.38 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 10.45 / 10 # 1.045\npack_b = 31.38 / 15 # 2.092\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nThis prints: A...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0072508
A clerk's office charges $45 for each filing. Nikhil submits 9 filings. What is the total fee? A short script: ```python fee = 45 filings = 9 total = fee * filings # 405 print(total) ``` Interpreter output: 405 The total fee is $405.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0072509
A measure needs at least 75% of 268 votes. How many votes is that, rounded up? Let's compute it with Python. ```python import math voters = 268 needed = math.ceil(voters * 75 / 100) # 201 print(needed) ``` Run output: 201 201 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0072510
Copies cost $10 plus $0.10 for each page beyond 10. How much for 42 pages? A Python solution: ```python pages = 42 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 13.2 print(f"{cost:.2f}") ``` Execution prints: 13.20 The copy costs $13.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "13.20", "printed": "13.20", "notation": null}
nlprog_det-setting-0072511
How much sales tax is charged on a $286.14 purchase at 6%? The Python version: ```python price = 286.14 tax_rate = 6 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` (stdout: 17.17) The tax is $17.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17.17", "printed": "17.17", "notation": null}
nlprog_det-setting-0072512
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "sea...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0072513
Mei earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? One way, in code: ```python rate = 20.0 hours = 49 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 270.0 pay = regular + overtime # 1070.0 print(f"{pay:.2f}") ``` # out: 1070.00 Mei earns $1,070.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1070.00", "printed": "1070.00", "notation": null}
nlprog_det-setting-0072514
A car travels 96 miles in 2 hours. What is its average speed in miles per hour? The average speed is 48 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0072515
A $12,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment? Python makes this quick: ```python grant = 12000 up_front = 6000 installments = 3 each = (grant - up_front) / installments print(f"{each:.2f}") ``` The program outputs: 2000.00 Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0072516
54 copies of a 39-page packet are printed at $0.10 per page. What is the cost? Printing costs $210.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "210.60", "printed": "210.60", "notation": null}
nlprog_det-setting-0072517
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A client paid a $5,000 retainer. The firm has billed 7 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 7 rate = 200 left = retainer - hours * rate # 3600 print(left) ``` Executed, it sho...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 7 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0072518
With 19 rows of 24 chairs and 33 empty chairs, how many chairs are taken? ```python rows = 19 per_row = 24 empty = 33 seated = rows * per_row - empty # 423 print(seated) ``` Result = 423 423 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "423", "printed": "423", "notation": null}
nlprog_det-setting-0072519
A client paid a $7,500 retainer. The firm has billed 5 hours at $150 per hour. How much of the retainer is left? A Python solution: ```python retainer = 7500 hours = 5 rate = 150 left = retainer - hours * rate print(left) ``` The run gives: 6750 The remaining balance is $6,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6750", "printed": "6750", "notation": null}
nlprog_det-setting-0072521
<|start|><|user|> A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 12 quorum = math.ceil(members * 3 / 5) # 8 print(quorum) ``` stdout = 8 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 12\nquorum = math.ceil(members * 3 / 5) # 8\nprint(quorum)\n```\nstdout = 8\n\n8 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0072522
Omar earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 51-hour week? Python: ```python rate = 22.4 hours = 51 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Running it prints: 1265.60 The weekly pay is $1,265.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1265.60", "printed": "1265.60", "notation": null}
nlprog_det-setting-0072523
Under a 40% contingency agreement, what fee is owed on a $90,000 award? Python makes this quick: ```python recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") ``` Out: 36000.00 The lawyer's fee comes to $36,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0072524
A shift runs from 10:38 AM to 11:25 AM. How long is it in minutes? Python, step by step: ```python start = 10 * 60 + 38 # 638 end = 11 * 60 + 25 # 685 print(end - start) ``` stdout = 47 It is 47 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0072525
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $90,000 award?<|eot|> <|assistant|> ```python recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") ``` Printed result: 36000.00 The fee is $36,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $90,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 90000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 36000.0\nprint(f\"{fee:.2f}\")\n```\nPrinted result: 36000.00\n\nThe fee is $...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0072526
<|start|><|user|> Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` (Console output: 10.0) The margi...
chat
[ { "role": "user", "content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 40000\ncosts = 36000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 10.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0072527
<|start|><|system|> Available functions (JSON Schema): [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatev...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"code_runner\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "1062.72", "printed": "1062.72", "notation": null}
nlprog_det-setting-0072528
A storeroom has 308 binders. The office uses 23 a day. How many are left after 3 days? As a program: stock = 308 per_day = 23 days = 3 left = stock - per_day * days # 239 print(left) Printed: 239 239 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "239", "printed": "239", "notation": null}
nlprog_det-setting-0072529
At a 4% tax rate, what is the tax on $301.45? ```python price = 301.45 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 12.058 print(f"{tax:.2f}") ``` (stdout: 12.06) $12.06 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12.06", "printed": "12.06", "notation": null}
nlprog_det-setting-0072530
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> How many meters are in 17.8 kilometers?<|eot|> <|assistant|> That is 17,800 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "How many meters are in 17.8 kilometers?" }, { "role": "assistant", "content": "That is 17,800 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "17800", "printed": "17800", "notation": null}
nlprog_det-setting-0072531
<|start|><|user|> Counting only Monday through Friday, how many business days are there after January 27, 2018 through February 5, 2018?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2018, 1, 27) end = date(2018, 2, 5) count = 0 for k in range(1, (end - start).days + 1): ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after January 27, 2018 through February 5, 2018?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2018, 1, 27)\n end = date(2018, 2, 5)\n cou...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0072532
A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The monthly payment is $216.67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "216.67", "printed": "216.67", "notation": null}
nlprog_det-setting-0072533
What percentage of $8,000 is $4,800? ```python budget = 8000 spent = 4800 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` On running, it outputs 60.0. 60.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0072534
55 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? Python makes this quick: ```python total = 55 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running it prints 18 each, 1 left over, as expected. The answer...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "18 each, 1 left over", "printed": "18 each, 1 left over", "notation": null}
nlprog_det-setting-0072535
A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here is a short program for it. ```python principal = 2400 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 720.0 payment = (p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0072536
<|start|><|system|> You have access to these functions: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
332
{"gold": "2153.40", "printed": "2153.40", "notation": null}
nlprog_det-setting-0072537
<|start|><|user|> With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) ``` Printed — 6.5 Profit is...
chat
[ { "role": "user", "content": "With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 38500\ncosts = 36000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 6.4935064935...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0072538
2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Translated to Python: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` (Console output: 25200.00) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0072539
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> At $16.26 an hour, what does 16 hours of work pay?<|eot|> <|assistant|> ```python rate = 16.26 hours = 16 earnings = rate * hours # 260.16 print(f"{earnings:.2f}") ``` Output = 260.16 The pay is $260.16.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "At $16.26 an hour, what does 16 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 16.26\nhours = 16\nearnings = rate * hours # 260.16\nprint(f\"{earnings:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "260.16", "printed": "260.16", "notation": null}
nlprog_det-setting-0072540
<|start|><|user|> Copies cost $15 plus $0.50 for each page beyond 20. How much for 88 pages?<|eot|> <|assistant|> ```python pages = 88 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` (Printed result: 49.00) The copy costs $49.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 20. How much for 88 pages?" }, { "role": "assistant", "content": "```python\npages = 88\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page\nprint(f\"{cost:.2f}\")\n```\n(Pr...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "49.00", "printed": "49.00", "notation": null}
nlprog_det-setting-0072541
Fixed costs are $1,200. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even? In code: ```python import math fixed = 1200 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` Printed: 120 Break-even is 120 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0072542
<|start|><|user|> A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` (Result: 39360) The rent over the term is $39,360.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 24\ntotal = monthly_rent * months # 39360\nprint(total)\n```\n(Result: 39360)\n\nThe rent over...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0072543
A 7-day trip pays $64 a day for meals and $175 a night for lodging (6 nights). What is the total allowance? As Python: ```python days = 7 meal_rate = 64 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` The printout reads: 1498 That comes to $1,498.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1498", "printed": "1498", "notation": null}
nlprog_det-setting-0072544
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> What average speed covers 124 miles in 4 hours?<|eot|> <|assistant|> distance = 124 hours = 4 speed = distance / hours # 31.0 print(round(speed)) The program prints: 31 The average speed is 31 mph.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "What average speed covers 124 miles in 4 hours?" }, { "role": "assistant", "content": " distance = 124\n hours = 4\n speed = distance / hours # 31.0\n print(r...
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0072546
A trial runs from August 12, 2021 to August 27, 2021, counting both days. How many calendar days is that? Python does the arithmetic: ```python from datetime import date first = date(2021, 8, 12) # datetime.date(2021, 8, 12) last = date(2021, 8, 27) # datetime.date(2021, 8, 27) days = (last - first).days + 1 # 16 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0072547
Amir's scores were 67, 64, 100, 92 and 72. What is the average score? One way, in code: scores = [67, 64, 100, 92, 72] average = sum(scores) // len(scores) # 79 print(average) The code prints: 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0072548
Idris earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? Idris earns $823.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "823.25", "printed": "823.25", "notation": null}
nlprog_det-setting-0072549
A settlement of $520 is split equally among 8 parties. How much does each party receive? ```python settlement = 520 parties = 8 share = settlement // parties # 65 print(share) ``` (Out: 65) Each share is $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0072550
Printing costs 10 cents a page. What does it cost to print 104 copies of a 32-page handout? The job costs $332.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "332.80", "printed": "332.80", "notation": null}
nlprog_det-setting-0072552
<|start|><|user|> Which is cheaper per unit: 12 for $10.35 (A) or 24 for $21.55 (B)?<|eot|> <|assistant|> ```python pack_a = 10.35 / 12 # 0.8624999999999999 pack_b = 21.55 / 24 # 0.8979166666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Shell output — A A has the lower unit price.<|eot|>...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $10.35 (A) or 24 for $21.55 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 10.35 / 12 # 0.8624999999999999\npack_b = 21.55 / 24 # 0.8979166666666667\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(che...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0072553
Split $792 between Hana and Tomas in the ratio 1 to 2. What is Hana's share? ```python total = 792 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 264 print(share_a) ``` This prints: 264 Hana gets $264.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0072554
Starting from $8,000, the team spends $697, $3,948. What remains? Python, step by step: ```python budget = 8000 expenses = [697, 3948] left = budget - sum(expenses) # 3355 print(left) ``` The interpreter prints 3355. $3,355 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3355", "printed": "3355", "notation": null}
nlprog_det-setting-0072555
<|start|><|user|> A party has 21 days to respond to a motion served on November 28, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 11, 28) response_days = 21 mail_days = 3 due = served + timedelta(day...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on November 28, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 11, 28)\nresp...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-12-22", "printed": "2023-12-22", "notation": null}
nlprog_det-setting-0072556
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What is a 15% tip on a $48.33...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "7.25", "printed": "7.25", "notation": null}
nlprog_det-setting-0072557
A measure needs at least 75% of 253 votes. How many votes is that, rounded up? One way, in code: ```python import math voters = 253 needed = math.ceil(voters * 75 / 100) print(needed) ``` That prints: 190 At least 190 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "190", "printed": "190", "notation": null}
nlprog_det-setting-0072558
Counting the first and last day, how many days are there from July 20, 2024 through August 2, 2024? One way, in code: ```python from datetime import date first = date(2024, 7, 20) # datetime.date(2024, 7, 20) last = date(2024, 8, 2) # datetime.date(2024, 8, 2) days = (last - first).days + 1 # 14 print(days) ``` (Pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0072559
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours? rate = 18.5 hours = 48 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 222.0 pay = regular + overtime # 962.0 print(f"{pay:.2f}") Execution prints: 962.00 Kemal earns $962.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "962.00", "printed": "962.00", "notation": null}
nlprog_det-setting-0072560
Count 14 days forward from May 9, 2028. What date is that? That date is May 23, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2028-05-23", "printed": "2028-05-23", "notation": null}
nlprog_det-setting-0072561
<|start|><|user|> How many minutes pass from 7:50 AM to 12:57 PM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 50 # 470 end = 12 * 60 + 57 # 777 print(end - start) ``` The printout reads: 307 307 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:50 AM to 12:57 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 50 # 470\nend = 12 * 60 + 57 # 777\nprint(end - start)\n```\nThe printout reads: 307\n\n307 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0072562
A claim accrued on February 28, 2013. The limitations period is 5 years. On what date does it expire? We write it as a program: ```python from datetime import date accrued = date(2013, 2, 28) # datetime.date(2013, 2, 28) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 2, 28) prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2018-02-28", "printed": "2018-02-28", "notation": null}
nlprog_det-setting-0072564
<|start|><|user|> Yusuf buys 3 boxes of 6 cables each and gives away 13 cables. How many cables are left?<|eot|> <|assistant|> 5 cables are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yusuf buys 3 boxes of 6 cables each and gives away 13 cables. How many cables are left?" }, { "role": "assistant", "content": "5 cables are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0072565
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", "description"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "199.68", "printed": "199.68", "notation": null}
nlprog_det-setting-0072566
<|start|><|system|> Tools (call with JSON): [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> The paralegal logged ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0072567
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
259
{"gold": "1017.50", "printed": "1017.50", "notation": null}
nlprog_det-setting-0072568
<|start|><|user|> A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 390 speed = 65 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Run output — 360 The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 390-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 390\nspeed = 65\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nRun output — 360\n\nThe trip takes 360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0072569
Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost? Python code: ```python rate = 2 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 14 print(cost) ``` Program output: 14 The charge is $14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0072570
A 10 lb package ships at $12 base plus $1.50/lb. What is the charge? As Python: base = 12 per_pound = 1.5 weight = 10 cost = base + per_pound * weight # 27.0 print(f"{cost:.2f}") Output of the run — 27.00 The charge is $27.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0072571
6 friends split a $120 bill plus a 18% tip evenly. How much does each pay? A Python solution: ```python bill = 120 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 23.599999999999998 print(f"{each:.2f}") ``` Result: 23.60 The share is $23.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "23.60", "printed": "23.60", "notation": null}
nlprog_det-setting-0072572
<|start|><|user|> At an exchange rate of 1.08 USD per GBP, how many USD is 5,044 GBP?<|eot|> <|assistant|> ```python amount = 5044 rate = 1.08 converted = amount * rate # 5447.52 print(f"{converted:.2f}") ``` Printed — 5447.52 That is 5,447.52 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 USD per GBP, how many USD is 5,044 GBP?" }, { "role": "assistant", "content": "```python\namount = 5044\nrate = 1.08\nconverted = amount * rate # 5447.52\nprint(f\"{converted:.2f}\")\n```\nPrinted — 5447.52\n\nThat is 5,447.52 USD." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "5447.52", "printed": "5447.52", "notation": null}
nlprog_det-setting-0072573
A jacket costs $45. It is 40% off. What is the sale price? Programmatically: ```python price = 45 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 27.0 print(f"{sale_price:.2f}") ``` That prints: 27.00 It costs $27.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0072574
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> What day of the week is February 1, 2007?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2007, 2, 1) # datetime.date(2007, 2, 1) print(hearing.strftime("%A")) ``` Executed, it shows: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What day of the week is February 1, 2007?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2007, 2, 1) # datetime.date(2007, 2, 1)\nprint(hearing...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0072575
Kemal earns a 2% commission on $78,707 of sales. What is the commission? Python version: ```python sales = 78707 rate = 2 / 100 commission = sales * rate print(f"{commission:.2f}") ``` # console output: 1574.14 The commission is $1,574.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1574.14", "printed": "1574.14", "notation": null}
nlprog_det-setting-0072576
Notice was given on September 15, 2025. The notice period is 14 days. When does it run out? A short script: from datetime import date, timedelta start = date(2025, 9, 15) # datetime.date(2025, 9, 15) end = start + timedelta(days=14) # datetime.date(2025, 9, 29) print(end.isoformat()) Console output —...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2025-09-29", "printed": "2025-09-29", "notation": null}
nlprog_det-setting-0072577
Straight-line depreciation: cost $24,000, salvage $2,000, 3 years. How much per year? Coded up: ```python cost = 24000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 7333.333333333333 print(f"{per_year:.2f}") ``` The run gives 7333.33. Depreciation is $7,333.33 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "7333.33", "printed": "7333.33", "notation": null}
nlprog_det-setting-0072578
<|start|><|user|> A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` The program prints: 24000.00 The fee is $24,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 24000.0\nprint(f\"{fee:.2f}\")\n```\nThe program prints: 24000.00\n\nThe fee is $2...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0072579
The rules require 2/3 of 53 members (round up) to be present. How many is that? Here is a short program for it. ```python import math members = 53 quorum = math.ceil(members * 2 / 3) # 36 print(quorum) ``` Output = 36 That is 36 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0072580
43 of 80 members attended. What percent attended? Coded up: ```python present = 43 total = 80 percent = present / total * 100 # 53.75 print(round(percent, 1)) ``` # console output: 53.8 53.8% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "53.8", "printed": "53.8", "notation": null}
nlprog_det-setting-0072581
<|start|><|user|> A client paid a $2,500 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 2500 hours = 8 rate = 200 left = retainer - hours * rate # 900 print(left) ``` stdout — 900 $900 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 8\nrate = 200\nleft = retainer - hours * rate # 900\nprint(left)\n```\nstdout...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0072582
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A claim accrued on June 20, 2018. The limitations period is 2 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 6, 20) # datetime.date(2018, 6, 20) years = 2 expires = accrued.repl...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A claim accrued on June 20, 2018. The limitations period is 2 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccr...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "2020-06-20", "printed": "2020-06-20", "notation": null}
nlprog_det-setting-0072583
<|start|><|user|> A 21-day notice period begins on November 23, 2018. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 11, 23) end = start + timedelta(days=21) print(end.isoformat()) ``` Program output — 2018-12-14 It ends on December 14, 2018.<|eot|> <|e...
chat
[ { "role": "user", "content": "A 21-day notice period begins on November 23, 2018. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 11, 23)\nend = start + timedelta(days=21)\nprint(end.isoformat())\n```\nProgram o...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2018-12-14", "printed": "2018-12-14", "notation": null}
nlprog_det-setting-0072585
<|start|><|user|> If a 75-minute hearing begins at 9:20 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 9 * 60 + 20 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out: 10:35 AM It ends at 10:35 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 75-minute hearing begins at 9:20 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 20\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "10:35 AM", "printed": "10:35 AM", "notation": null}
nlprog_det-setting-0072586
Ivan's scores were 88, 83, 61 and 64. What is the average score? Python version: scores = [88, 83, 61, 64] average = sum(scores) // len(scores) # 74 print(average) On running, it outputs: 74 The mean is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0072587
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> How many days are there from November 6, 2022 to June 11, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 11, 6) # datetime.date(2022, 11, 6) second = date(2023, 6, 11) # datetime.date(2023, 6, 11) print((seco...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "How many days are there from November 6, 2022 to June 11, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 11, 6) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "217", "printed": "217", "notation": null}
nlprog_det-setting-0072588
<|start|><|user|> What commission does Ana make on $23,128 in sales at 6%?<|eot|> <|assistant|> ```python sales = 23128 rate = 6 / 100 # 0.06 commission = sales * rate # 1387.6799999999998 print(f"{commission:.2f}") ``` Running this gives: 1387.68 Ana earns $1,387.68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Ana make on $23,128 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 23128\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 1387.6799999999998\nprint(f\"{commission:.2f}\")\n```\nRunning this gives: 1387.68\n\nAna e...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1387.68", "printed": "1387.68", "notation": null}
nlprog_det-setting-0072589
<|start|><|user|> A $2,500 security deposit has deductions of $150 and $150. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [150, 150] refund = deposit - sum(deductions) print(refund) ``` Python prints 2200. $2,200 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $150 and $150. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [150, 150]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nPython prints 2200.\n\n$2,200 is retur...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0072590
<|start|><|user|> Notice was given on January 18, 2028. The notice period is 120 days. When does it run out?<|eot|> <|assistant|> The period ends on May 17, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Notice was given on January 18, 2028. The notice period is 120 days. When does it run out?" }, { "role": "assistant", "content": "The period ends on May 17, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2028-05-17", "printed": "2028-05-17", "notation": null}
nlprog_det-setting-0072591
Count the days between July 22, 2026 and December 16, 2026. In code: ```python from datetime import date first = date(2026, 7, 22) # datetime.date(2026, 7, 22) second = date(2026, 12, 16) # datetime.date(2026, 12, 16) print((second - first).days) ``` What it prints: 147 There are 147 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0072592
Fines run at $50 per day up to a maximum of $5,000. How much after 25 days? Let the code do the arithmetic: ```python per_day = 50 days = 25 cap = 5000 fine = min(per_day * days, cap) print(fine) ``` Python prints: 1250 $1,250 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1250", "printed": "1250", "notation": null}