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-0050549
<|start|><|user|> A clerk's office charges $75 for each filing. Nilufar submits 8 filings. What is the total fee?<|eot|> <|assistant|> $600 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $75 for each filing. Nilufar submits 8 filings. What is the total fee?" }, { "role": "assistant", "content": "$600 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0050550
Split $5,334 between Marek and Liesel in the ratio 2 to 5. What is Marek's share? Written as code: ```python total = 5334 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1524 print(share_a) ``` The printout reads: 1524 Marek's share is $1,524.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1524", "printed": "1524", "notation": null}
nlprog_det-setting-0050551
<|start|><|system|> Available functions (JSON Schema): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"math_engine\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0050552
<|start|><|user|> Each of Beatriz's swims burns 150 calories. How many calories over 4 swims?<|eot|> <|assistant|> ```python per_session = 150 sessions = 4 total = per_session * sessions # 600 print(total) ``` Execution prints: 600 That burns 600 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Beatriz's swims burns 150 calories. How many calories over 4 swims?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 4\ntotal = per_session * sessions # 600\nprint(total)\n```\nExecution prints: 600\n\nThat burns 600 calories....
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0050553
<|start|><|user|> Express 312 hours in days and hours.<|eot|> <|assistant|> ```python hours = 312 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out: 13 days and 0 hours 312 hours is 13 days and 0 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 312 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 312\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut:\n13 days and 0 hours\n\n312 hours is 13 days and 0 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "13 days and 0 hours", "printed": "13 days and 0 hours", "notation": null}
nlprog_det-setting-0050555
What day of the week is December 11, 2015? December 11, 2015 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0050557
How many weekdays (Monday to Friday) fall after June 6, 2023 up to and including June 18, 2023? ```python from datetime import date, timedelta start = date(2023, 6, 6) end = date(2023, 6, 18) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count += 1 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0050558
A meal costs $44.69. How much is a 25% tip? A few lines of Python do it: ```python bill = 44.69 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 11.1725 print(f"{tip:.2f}") ``` (Output: 11.17) The tip is $11.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11.17", "printed": "11.17", "notation": null}
nlprog_det-setting-0050559
A 20 lb package ships at $12 base plus $2.50/lb. What is the charge? Translated to Python: ```python base = 12 per_pound = 2.5 weight = 20 cost = base + per_pound * weight # 62.0 print(f"{cost:.2f}") ``` The interpreter prints 62.00. The charge is $62.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "62.00", "printed": "62.00", "notation": null}
nlprog_det-setting-0050560
A hearing is set for February 9, 1999. What day of the week is that? Python: ```python from datetime import date hearing = date(1999, 2, 9) # datetime.date(1999, 2, 9) print(hearing.strftime("%A")) ``` # out: Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0050561
A hearing starts at 2:10 PM and lasts 40 minutes. When does it end? Computing it: ```python start = 14 * 60 + 10 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # printed result: 2:50 PM The hearing finishes at 2:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2:50 PM", "printed": "2:50 PM", "notation": null}
nlprog_det-setting-0050562
<|start|><|user|> A meal costs $59.04. How much is a 10% tip?<|eot|> <|assistant|> The tip is $5.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $59.04. How much is a 10% tip?" }, { "role": "assistant", "content": "The tip is $5.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "5.90", "printed": "5.90", "notation": null}
nlprog_det-setting-0050563
<|start|><|user|> A 18-month warranty starts on June 18, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 6, 18) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 18-month warranty starts on June 18, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 6, 18)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2026-12-18", "printed": "2026-12-18", "notation": null}
nlprog_det-setting-0050564
<|start|><|user|> Counting only Monday through Friday, how many business days are there after July 13, 2022 through August 11, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 7, 13) end = date(2022, 8, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after July 13, 2022 through August 11, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 13)\nend = date(2022, 8, 11)\ncount = 0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0050565
<|start|><|user|> How much sales tax is charged on a $755.78 purchase at 4%?<|eot|> <|assistant|> ```python price = 755.78 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 30.2312 print(f"{tax:.2f}") ``` The printout reads 30.23. $30.23 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $755.78 purchase at 4%?" }, { "role": "assistant", "content": "```python\nprice = 755.78\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 30.2312\nprint(f\"{tax:.2f}\")\n```\nThe printout reads 30.23.\n\n$30.23 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "30.23", "printed": "30.23", "notation": null}
nlprog_det-setting-0050566
<|start|><|user|> Rafael was born on December 26, 2003. How old is Rafael on November 3, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(2003, 12, 26) on = date(2024, 11, 3) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Running it prints 20. The age...
chat
[ { "role": "user", "content": "Rafael was born on December 26, 2003. How old is Rafael on November 3, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2003, 12, 26)\non = date(2024, 11, 3)\nage = on.year - born.year - ((on.month, on.day) < (born.month...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0050567
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> 4 bike ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0050568
A party has 21 days to respond to a motion served on August 28, 2018, with 3 days added because service was by mail. When is the response due? Translated to Python: ```python from datetime import date, timedelta served = date(2018, 8, 28) # datetime.date(2018, 8, 28) response_days = 21 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2018-09-21", "printed": "2018-09-21", "notation": null}
nlprog_det-setting-0050569
<|start|><|user|> A printer costs $250. It is 10% off. What is the sale price?<|eot|> <|assistant|> price = 250 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 225.0 print(f"{sale_price:.2f}") Executed, it shows 225.00. It costs $225.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $250. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": " price = 250\n discount = 10 / 100 # 0.1\n sale_price = price * (1 - discount) # 225.0\n print(f\"{sale_price:.2f}\")\nExecuted, it shows 225.00.\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0050570
Which is cheaper per unit: 6 for $5.74 (A) or 18 for $23.18 (B)? The computation: ```python pack_a = 5.74 / 6 pack_b = 23.18 / 18 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Out — A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0050571
A $1,200 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? The Python version: ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 240.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0050572
Elena drove 308 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? We can compute it in Python. ```python miles = 308 rate = 0.7 reimbursement = miles * rate # 215.6 print(f"{reimbursement:.2f}") ``` Executing it gives 215.60. Elena is owed $215.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "215.60", "printed": "215.60", "notation": null}
nlprog_det-setting-0050573
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> 839 files go into...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0050574
What average speed covers 34 miles in 2 hours? distance = 34 hours = 2 speed = distance / hours # 17.0 print(round(speed)) It prints 17. The average speed is 17 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0050575
Xavier was born on October 14, 1970. How old is Xavier on July 23, 2027? Python does the arithmetic: ```python from datetime import date born = date(1970, 10, 14) # datetime.date(1970, 10, 14) on = date(2027, 7, 23) # datetime.date(2027, 7, 23) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0050576
<|start|><|user|> Count the days between July 13, 2026 and July 31, 2026.<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 7, 13) # datetime.date(2026, 7, 13) second = date(2026, 7, 31) # datetime.date(2026, 7, 31) print((second - first).days) ``` (Out: 18) There are 18 days between the tw...
chat
[ { "role": "user", "content": "Count the days between July 13, 2026 and July 31, 2026." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 7, 13) # datetime.date(2026, 7, 13)\nsecond = date(2026, 7, 31) # datetime.date(2026, 7, 31)\nprint((second - fi...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050577
114 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? Python does the arithmetic: ```python total = 114 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed: 19 each, 0 left over The answer: 19 each, 0 left ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "19 each, 0 left over", "printed": "19 each, 0 left over", "notation": null}
nlprog_det-setting-0050578
Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even? Python makes this quick: ```python import math fixed = 1200 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` Running this gives 120. Break-even is 120 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0050579
<|start|><|system|> You can call tools. Available tools: {"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "translate", "descripti...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
372
{"gold": "540", "printed": "540", "notation": null}
nlprog_det-setting-0050580
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A storeroom has 815 ink cartridges. The office uses 29 a day. How many are left after 9 days?<|eot|> <|assistant|> ```python stock = 815 per_day = 29 days = 9 left = stock - per_day * days # 554 print(left) ``` # printed: 554 554 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A storeroom has 815 ink cartridges. The office uses 29 a day. How many are left after 9 days?" }, { "role": "assistant", "content": "```python\nstock = 815\nper_day = 29\ndays = 9\nleft = s...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "554", "printed": "554", "notation": null}
nlprog_det-setting-0050581
A settlement of $2,640 is split equally among 2 parties. How much does each party receive? Program: ```python settlement = 2640 parties = 2 share = settlement // parties # 1320 print(share) ``` It prints: 1320 Each party receives $1,320.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1320", "printed": "1320", "notation": null}
nlprog_det-setting-0050582
<|start|><|user|> Count the days between February 28, 2018 and January 22, 2019.<|eot|> <|assistant|> It is 328 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between February 28, 2018 and January 22, 2019." }, { "role": "assistant", "content": "It is 328 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "328", "printed": "328", "notation": null}
nlprog_det-setting-0050583
<|start|><|system|> Be concise.<|eot|> <|user|> Divide 39 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 39 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run out...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Divide 39 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 39\ngroups = 6\nper_group, remainde...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "6 each, 3 left over", "printed": "6 each, 3 left over", "notation": null}
nlprog_det-setting-0050584
<|start|><|user|> Scale 300 g of oats from 8 servings to 4 servings.<|eot|> <|assistant|> ```python grams = 300 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 150 print(scaled) ``` The program prints: 150 Use 150 g of oats.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 300 g of oats from 8 servings to 4 servings." }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nThe program prints: 150\n\nUse 150 g of oats." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0050586
From a $7,500 retainer, 13 hours at $275/hour have been drawn. What remains? Coded up: ```python retainer = 7500 hours = 13 rate = 275 left = retainer - hours * rate # 3925 print(left) ``` Execution prints 3925, as expected. The remaining balance is $3,925.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3925", "printed": "3925", "notation": null}
nlprog_det-setting-0050587
<|start|><|system|> You have access to these functions: [{"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": "You have access to these functions:\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
[]
[]
396
{"gold": "9 days and 20 hours", "printed": "9 days and 20 hours", "notation": null}
nlprog_det-setting-0050588
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "44.97", "printed": "44.97", "notation": null}
nlprog_det-setting-0050589
A trial runs from August 2, 2024 to August 20, 2024, counting both days. How many calendar days is that? We can compute it in Python. ```python from datetime import date first = date(2024, 8, 2) last = date(2024, 8, 20) days = (last - first).days + 1 print(days) ``` Printed result — 19 19 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0050590
$10,000 is invested at 2% compounded yearly. What is it worth after 5 years? ```python principal = 10000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 11040.808032 print(f"{value:.2f}") ``` Running this gives: 11040.81 The balance is $11,040.81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "11040.81", "printed": "11040.81", "notation": null}
nlprog_det-setting-0050591
<|start|><|system|> Available functions (JSON Schema): [{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather",...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
334
{"gold": "1:10 PM", "printed": "1:10 PM", "notation": null}
nlprog_det-setting-0050592
At an exchange rate of 1.35 EUR per USD, how many EUR is 743 USD? Program: ```python amount = 743 rate = 1.35 converted = amount * rate # 1003.0500000000001 print(f"{converted:.2f}") ``` The script prints 1003.05. It converts to 1,003.05 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1003.05", "printed": "1003.05", "notation": null}
nlprog_det-setting-0050593
What average speed covers 363 miles in 1 hours? Computing it: ```python distance = 363 hours = 1 speed = distance / hours # 363.0 print(round(speed)) ``` stdout: 363 It averages 363 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "363", "printed": "363", "notation": null}
nlprog_det-setting-0050595
A 8% increase is applied to $1,800 monthly rent. What is the new amount? The Python version: rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") Interpreter output: 1944.00 It rises to $1,944.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0050596
With 15% off, what does a $300 bicycle helmet cost? In code: ```python price = 300 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 255.0 print(f"{sale_price:.2f}") ``` What it prints: 255.00 It costs $255.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "255.00", "printed": "255.00", "notation": null}
nlprog_det-setting-0050597
A car travels 338 miles in 2 hours. What is its average speed in miles per hour? As Python: ```python distance = 338 hours = 2 speed = distance / hours # 169.0 print(round(speed)) ``` (stdout: 169) It averages 169 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "169", "printed": "169", "notation": null}
nlprog_det-setting-0050598
<|start|><|system|> Tool definitions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python\", \"description\": \"Executes a Pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
311
{"gold": "83.00", "printed": "83.00", "notation": null}
nlprog_det-setting-0050599
Scale 100 g of sugar from 2 servings to 6 servings. Let the code do the arithmetic: ```python grams = 100 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 300 print(scaled) ``` (Result: 300) 300 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0050600
<|start|><|system|> Tool definitions: {"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> 4 claimants share a $7,348...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "1837", "printed": "1837", "notation": null}
nlprog_det-setting-0050601
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Tobias earns a 3% comm...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "3288.03", "printed": "3288.03", "notation": null}
nlprog_det-setting-0050602
<|start|><|user|> How many minutes pass from 7:55 AM to 1:18 PM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 55 # 475 end = 13 * 60 + 18 # 798 print(end - start) ``` The program prints 323. 323 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:55 AM to 1:18 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 55 # 475\nend = 13 * 60 + 18 # 798\nprint(end - start)\n```\nThe program prints 323.\n\n323 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "323", "printed": "323", "notation": null}
nlprog_det-setting-0050603
<|start|><|user|> A hearing is set for March 1, 2005. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2005, 3, 1) # datetime.date(2005, 3, 1) print(hearing.strftime("%A")) ``` Execution result — Tuesday March 1, 2005 is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for March 1, 2005. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2005, 3, 1) # datetime.date(2005, 3, 1)\nprint(hearing.strftime(\"%A\"))\n```\nExecution result — Tuesday\n...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0050604
A lease runs for 12 months at $975 per month. How much rent is paid over the whole term? Programmatically: ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` It outputs 11700. In total, $11,700 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0050605
<|start|><|user|> If a 3-year limitations period starts on November 1, 2023, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2023, 11, 1) # datetime.date(2023, 11, 1) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 11, 1) print(expires.iso...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on November 1, 2023, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2023, 11, 1) # datetime.date(2023, 11, 1)\nyears = 3\nexpires = accrued.replace(year=accrued.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2026-11-01", "printed": "2026-11-01", "notation": null}
nlprog_det-setting-0050606
158 files go into boxes of 40. How many boxes does that take? The computation: ```python import math files = 158 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` Executing it gives 4, as expected. It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0050607
Divide 65 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? 16 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "16 each, 1 left over", "printed": "16 each, 1 left over", "notation": null}
nlprog_det-setting-0050608
A $12,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? $750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0050610
A client paid a $2,500 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left? Programmatically: ```python retainer = 2500 hours = 6 rate = 200 left = retainer - hours * rate # 1300 print(left) ``` (Execution result: 1300) $1,300 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0050611
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "search_cas...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
382
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0050612
A measure needs at least 75% of 136 votes. How many votes is that, rounded up? In code: import math voters = 136 needed = math.ceil(voters * 75 / 100) # 102 print(needed) It prints: 102 102 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0050613
Fines run at $25 per day up to a maximum of $5,000. How much after 3 days? The Python version: ```python per_day = 25 days = 3 cap = 5000 fine = min(per_day * days, cap) # 75 print(fine) ``` Shell output — 75 The fine is $75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0050614
A 18-month warranty starts on January 11, 2020. On what date does it end? One way, in code: from datetime import date start = date(2020, 1, 11) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat())...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2021-07-11", "printed": "2021-07-11", "notation": null}
nlprog_det-setting-0050615
<|start|><|user|> Monthly: $25. Annual: $264. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 264 savings = monthly * 12 - yearly # 36 print(savings) ``` The code prints 36. $36 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $264. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 264\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nThe code prints 36.\n\n$36 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0050616
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Nadia lends $12,000 at 5% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 12000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 3600.0 print(f"{interest:.2f}") ``` # output...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Nadia lends $12,000 at 5% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 5 / 100 # 0.05\nyears ...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0050617
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> At $0.62 per mile, what is the reimbursement for 579 miles?<|eot|> <|assistant|> ```python miles = 579 rate = 0.62 reimbursement = miles * rate # 358.98 print(f"{reimbursement:.2f}") ``` (Run result: 358.98) The reimbursement is $358.98.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 579 miles?" }, { "role": "assistant", "content": "```python\nmiles = 579\nrate = 0.62\nreimbursement = miles * rate # 358.98\nprint(f\"{re...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "358.98", "printed": "358.98", "notation": null}
nlprog_det-setting-0050618
12 boxes hold 25 toner kits each. After 18 are handed out, how many are left? Coded up: ```python boxes = 12 per_box = 25 given_away = 18 left = boxes * per_box - given_away # 282 print(left) ``` # printed result: 282 282 toner kits are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "282", "printed": "282", "notation": null}
nlprog_det-setting-0050619
<|start|><|user|> A count moves from 2,000 to 1,900. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 2000 new = 1900 change = (new - old) / old * 100 # -5.0 print(round(change)) Output: -5 The change is -5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 1,900. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 2000\n new = 1900\n change = (new - old) / old * 100 # -5.0\n print(round(change))\nOutput:\n-5\n\nThe change i...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0050620
Sales went from 500 to 525. What is the percent change? Python version: old = 500 new = 525 change = (new - old) / old * 100 print(round(change)) The printout reads 5. The change is 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050621
Papers were served by mail on September 2, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python version: ```python from datetime import date, timedelta served = date(2027, 9, 2) # datetime.date(2027, 9, 2) response_days = 14 mail_days = 3 due = served + timedelta(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2027-09-19", "printed": "2027-09-19", "notation": null}
nlprog_det-setting-0050622
<|start|><|user|> To read 531 pages in 9 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 531 days = 9 per_day = pages // days # 59 print(per_day) ``` # run result: 59 59 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 531 pages in 9 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 531\ndays = 9\nper_day = pages // days # 59\nprint(per_day)\n```\n# run result: 59\n\n59 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0050623
<|start|><|user|> How many units at $40 each (variable cost $35) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` Output of the run: 1800 1800 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $35) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) # 1800\nprint(units)\n```\nOutput of th...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0050624
236 files go into boxes of 24. How many boxes does that take? Coded up: ```python import math files = 236 per_box = 24 boxes = math.ceil(files / per_box) # 10 print(boxes) ``` Run it and it prints: 10 10 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0050625
At 30 miles per hour, how many minutes does a 150-mile trip take? The Python version: ```python distance = 150 speed = 30 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Execution prints 300, as expected. The trip takes 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0050626
<|start|><|user|> A 18-month warranty starts on September 7, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2026, 9, 7) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofor...
chat
[ { "role": "user", "content": "A 18-month warranty starts on September 7, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2026, 9, 7)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2028-03-07", "printed": "2028-03-07", "notation": null}
nlprog_det-setting-0050627
4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? In Python: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}") ``` The program prints 14400.00. Each shar...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0050628
After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part? ```python grant = 48000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 3750.0 print(f"{each:.2f}") ``` stdout = 3750.00 $3,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0050629
<|start|><|user|> From 2017 to 2042, how many years is that?<|eot|> <|assistant|> ```python start_year = 2017 end_year = 2042 print(end_year - start_year) ``` Shell output — 25 25 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2017 to 2042, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2017\nend_year = 2042\nprint(end_year - start_year)\n```\nShell output — 25\n\n25 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0050630
A client paid a $7,500 retainer. The firm has billed 9 hours at $250 per hour. How much of the retainer is left? $5,250 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5250", "printed": "5250", "notation": null}
nlprog_det-setting-0050631
Meals are $74 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights? Python makes this quick: ```python days = 5 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 810 print(total) ``` This prints: 810 The allowance is $810.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0050632
<|start|><|user|> A 8% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 1100 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1188.0 print(f"{new_rent:.2f}") Program output — 1188.00 It rises to $1,188.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 1100\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1188.0\n print(f\"{new_rent:.2f}\")\nProgram output — 1188.00\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0050633
<|start|><|user|> Idris lends $2,500 at 5% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 375.0 print(f"{interest:.2f}") ``` Result — 375.00 It earns $375.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Idris lends $2,500 at 5% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 5 / 100 # 0.05\nyears = 3\ninterest = principal * rate * years # 375.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0050634
How many days are there from May 14, 2025 to October 7, 2025? Here is a short program for it. ```python from datetime import date first = date(2025, 5, 14) # datetime.date(2025, 5, 14) second = date(2025, 10, 7) # datetime.date(2025, 10, 7) print((second - first).days) ``` Execution prints 146. There are 146 days b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0050635
A 21-day notice period begins on June 12, 2025. On what date does it end? Coded up: ```python from datetime import date, timedelta start = date(2025, 6, 12) end = start + timedelta(days=21) print(end.isoformat()) ``` Result — 2025-07-03 The period ends on July 3, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2025-07-03", "printed": "2025-07-03", "notation": null}
nlprog_det-setting-0050636
A chair costs $300. It is 10% off. What is the sale price? Computation in Python: ```python price = 300 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 270.0 print(f"{sale_price:.2f}") ``` Run it and it prints 270.00. It costs $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0050637
An attorney bills 8 hours at $150 per hour. What is the bill? The bill is $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0050638
<|start|><|user|> Goods bought on August 24, 2020 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 8, 24) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end....
chat
[ { "role": "user", "content": "Goods bought on August 24, 2020 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 8, 24)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2021-08-24", "printed": "2021-08-24", "notation": null}
nlprog_det-setting-0050639
Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons? As a program: ```python base = 15 rate = 5.1 used = 10 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Out — 66.00 $66.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "66.00", "printed": "66.00", "notation": null}
nlprog_det-setting-0050640
Under a 40% contingency agreement, what fee is owed on a $60,000 award? Script: ```python recovery = 60000 rate = 40 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` # output: 24000.00 The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0050641
A 24-month warranty starts on September 8, 2027. On what date does it end? Python code: ```python from datetime import date start = date(2027, 9, 8) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` stdout = 2029-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2029-09-08", "printed": "2029-09-08", "notation": null}
nlprog_det-setting-0050642
Sales went from 2,000 to 1,700. What is the percent change? Here is a short program for it. ```python old = 2000 new = 1700 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Program output: -15 The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0050643
The rules require 2/3 of 42 members (round up) to be present. How many is that? Script: import math members = 42 quorum = math.ceil(members * 2 / 3) # 28 print(quorum) On running, it outputs: 28 28 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0050644
<|start|><|user|> Someone born August 28, 1953 turns how old by May 25, 2030? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1953, 8, 28) # datetime.date(1953, 8, 28) on = date(2030, 5, 25) # datetime.date(2030, 5, 25) age = on.year - born.year - ((on.month, on.day) ...
chat
[ { "role": "user", "content": "Someone born August 28, 1953 turns how old by May 25, 2030? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1953, 8, 28) # datetime.date(1953, 8, 28)\non = date(2030, 5, 25) # datetime.date(2030...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0050645
<|start|><|user|> Rent of $1,100 goes up 2%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1100 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1122.0 print(f"{new_rent:.2f}") ``` Execution result: 1122.00 The new rent is $1,122.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,100 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1122.0\nprint(f\"{new_rent:.2f}\")\n```\nExecution result: 1122.00\n\nThe new rent is $1,1...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1122.00", "printed": "1122.00", "notation": null}
nlprog_det-setting-0050646
<|start|><|user|> At a 4% tax rate, what is the tax on $361.34?<|eot|> <|assistant|> ```python price = 361.34 tax_rate = 4 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Program output — 14.45 The tax is $14.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 4% tax rate, what is the tax on $361.34?" }, { "role": "assistant", "content": "```python\nprice = 361.34\ntax_rate = 4 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nProgram output — 14.45\n\nThe tax is $14.45." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "14.45", "printed": "14.45", "notation": null}
nlprog_det-setting-0050647
<|start|><|user|> At 1.5% a month (simple), what interest builds on $2,500 over 6 months?<|eot|> <|assistant|> The interest is $225.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $2,500 over 6 months?" }, { "role": "assistant", "content": "The interest is $225.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0050648
To read 348 pages in 6 days, how many pages per day are needed? A few lines of Python do it: ```python pages = 348 days = 6 per_day = pages // days # 58 print(per_day) ``` The interpreter prints 58. 58 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0050649
A 6% increase is applied to $1,500 monthly rent. What is the new amount? The new rent is $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0050651
<|start|><|user|> Goods bought on April 1, 2021 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 4, 1) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.iso...
chat
[ { "role": "user", "content": "Goods bought on April 1, 2021 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 4, 1)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(st...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2022-04-01", "printed": "2022-04-01", "notation": null}
nlprog_det-setting-0050652
Starting from $25,000, the team spends $3,934, $3,710, $2,049, $3,129. What remains? Here is the program. ```python budget = 25000 expenses = [3934, 3710, 2049, 3129] left = budget - sum(expenses) # 12178 print(left) ``` Output: 12178 The remaining budget is $12,178.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "12178", "printed": "12178", "notation": null}
nlprog_det-setting-0050653
At 1.5% a month (simple), what interest builds on $4,000 over 5 months? As Python: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` (Output: 300.00) The interest is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0050654
A party has 30 days to respond to a motion served on April 11, 2023, with 3 days added because service was by mail. When is the response due? A short script: ```python from datetime import date, timedelta served = date(2023, 4, 11) # datetime.date(2023, 4, 11) response_days = 30 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2023-05-14", "printed": "2023-05-14", "notation": null}