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-0074641
<|start|><|user|> What percentage of $2,000 is $1,900?<|eot|> <|assistant|> ```python budget = 2000 spent = 1900 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` Python prints 95.0, as expected. That is 95.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,900?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1900\npercent = spent / budget * 100 # 95.0\nprint(round(percent, 1))\n```\nPython prints 95.0, as expected.\n\nThat is 95.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0074642
What is 30 degrees Celsius in Fahrenheit? It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0074643
Divide 113 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Here's the code. ```python total = 113 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run it and it prints 22 each, 3 left over. 22 each, 3 l...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "22 each, 3 left over", "printed": "22 each, 3 left over", "notation": null}
nlprog_det-setting-0074644
With 40% off, what does a $300 printer cost? Translated to Python: ```python price = 300 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 180.0 print(f"{sale_price:.2f}") ``` When run, it prints: 180.00 The sale price is $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0074645
<|start|><|user|> What average speed covers 166 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 166 hours = 2 speed = distance / hours # 83.0 print(round(speed)) ``` It outputs: 83 The average speed is 83 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 166 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 166\nhours = 2\nspeed = distance / hours # 83.0\nprint(round(speed))\n```\nIt outputs: 83\n\nThe average speed is 83 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0074646
<|start|><|user|> At $25.54 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 25.54 hours = 38 earnings = rate * hours print(f"{earnings:.2f}") ``` The run gives: 970.52 The pay is $970.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $25.54 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 25.54\nhours = 38\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nThe run gives: 970.52\n\nThe pay is $970.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "970.52", "printed": "970.52", "notation": null}
nlprog_det-setting-0074647
A garage charges $2 an hour, never more than $15 a day. How much for 6 hours? As a program: ```python rate = 2 hours = 6 daily_max = 15 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Run it and it prints: 12 The charge is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0074648
<|start|><|user|> Goods bought on December 17, 2028 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 12, 17) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(e...
chat
[ { "role": "user", "content": "Goods bought on December 17, 2028 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 12, 17)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = d...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2030-12-17", "printed": "2030-12-17", "notation": null}
nlprog_det-setting-0074649
From 2016 to 2025, how many years is that? In Python: ```python start_year = 2016 end_year = 2025 print(end_year - start_year) ``` (stdout: 9) That is 9 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0074650
<|start|><|system|> You are a math tutor.<|eot|> <|user|> An attorney bills 4 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 4 rate = 410 bill = hours * rate # 1640 print(f"{bill:.2f}") ``` Interpreter output: 1640.00 That comes to $1,640.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "An attorney bills 4 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 410\nbill = hours * rate # 1640\nprint(f\"{bill:.2f}\")\n```\nInt...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1640.00", "printed": "1640.00", "notation": null}
nlprog_det-setting-0074651
<|start|><|system|> Available functions (JSON Schema): {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"typ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calc\", \"description\": \"Exe...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0074652
The firm was founded in 1999. How many years had passed by 2010? As a program: ```python start_year = 1999 end_year = 2010 print(end_year - start_year) ``` Python prints 11, as expected. That is 11 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0074653
An invoice lists 40 lanyards at $9 each, plus 7% sales tax. What is the invoice total? A Python solution: quantity = 40 unit_price = 9 subtotal = quantity * unit_price # 360 total = subtotal * (1 + 7 / 100) # 385.20000000000005 print(f"{total:.2f}") The run gives 385.20. The total with tax is $3...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "385.20", "printed": "385.20", "notation": null}
nlprog_det-setting-0074655
A water bill is $18 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons? Translated to Python: ```python base = 18 rate = 5.1 used = 3 free = 0 bill = base + rate * max(0, used - free) # 33.3 print(f"{bill:.2f}") ``` Running it prints: 33.30 The bill is $33.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "33.30", "printed": "33.30", "notation": null}
nlprog_det-setting-0074656
A measure needs at least 67% of 229 votes. How many votes is that, rounded up? Written as code: ```python import math voters = 229 needed = math.ceil(voters * 67 / 100) # 154 print(needed) ``` Execution prints: 154 154 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "154", "printed": "154", "notation": null}
nlprog_det-setting-0074657
At $30.82 an hour, what does 30 hours of work pay? Python version: rate = 30.82 hours = 30 earnings = rate * hours # 924.6 print(f"{earnings:.2f}") Running this gives: 924.60 That earns $924.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "924.60", "printed": "924.60", "notation": null}
nlprog_det-setting-0074658
<|start|><|system|> Give the answer first.<|eot|> <|user|> Find the mean of these test scores: 98, 61, 62, 79, 92, 92 and 90.<|eot|> <|assistant|> The mean is 82.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Find the mean of these test scores: 98, 61, 62, 79, 92, 92 and 90." }, { "role": "assistant", "content": "The mean is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0074659
<|start|><|user|> Counting the first and last day, how many days are there from May 26, 2022 through June 8, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 5, 26) # datetime.date(2022, 5, 26) last = date(2022, 6, 8) # datetime.date(2022, 6, 8) days = (last - first).days + 1 # 14 pr...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 26, 2022 through June 8, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 5, 26) # datetime.date(2022, 5, 26)\nlast = date(2022, 6, 8) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0074660
What day of the week is December 20, 2000? Let's compute it with Python. ```python from datetime import date hearing = date(2000, 12, 20) # datetime.date(2000, 12, 20) print(hearing.strftime("%A")) ``` The program prints: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0074661
<|start|><|user|> A 21-day notice period begins on November 16, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 11, 16) # datetime.date(2027, 11, 16) end = start + timedelta(days=21) # datetime.date(2027, 12, 7) print(end.isoformat()) ``` Running ...
chat
[ { "role": "user", "content": "A 21-day notice period begins on November 16, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 11, 16) # datetime.date(2027, 11, 16)\nend = start + timedelta(days=21) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2027-12-07", "printed": "2027-12-07", "notation": null}
nlprog_det-setting-0074662
Monthly: $15. Annual: $144. What is saved per year by paying annually? Code: ```python monthly = 15 yearly = 144 savings = monthly * 12 - yearly # 36 print(savings) ``` Output — 36 $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0074663
<|start|><|user|> Copies cost $15 plus $0.25 for each page beyond 20. How much for 89 pages?<|eot|> <|assistant|> ```python pages = 89 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 32.25 print(f"{cost:.2f}") ``` Console output: 32.25 The copy costs $32.25.<|eot|> <|en...
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 20. How much for 89 pages?" }, { "role": "assistant", "content": "```python\npages = 89\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 32.25\nprint(f\"{cost:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "32.25", "printed": "32.25", "notation": null}
nlprog_det-setting-0074664
A pack of 6 cables sells for $318. What does each cost? In code: ```python total = 318 count = 6 per_item = total // count print(per_item) ``` The program prints 53, as expected. Each one costs $53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0074665
<|start|><|user|> Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> Depreciation is $1,125.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "Depreciation is $1,125.00 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "1125.00", "printed": "1125.00", "notation": null}
nlprog_det-setting-0074666
<|start|><|system|> Tool definitions: {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Ulla was born on December 24, 1990...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0074667
<|start|><|user|> Each of Nadia's runs burns 250 calories. How many calories over 6 runs?<|eot|> <|assistant|> ```python per_session = 250 sessions = 6 total = per_session * sessions # 1500 print(total) ``` When run, it prints: 1500 That burns 1500 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Nadia's runs burns 250 calories. How many calories over 6 runs?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\nWhen run, it prints: 1500\n\nThat burns 1500 calorie...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0074668
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?<|eot|> <|assistant|> The weekly pay is $860.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?" }, { "role": "assistant", "content": "The weekly pay is $860.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "860.00", "printed": "860.00", "notation": null}
nlprog_det-setting-0074669
<|start|><|system|> Tools (call with JSON): {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "define_word", "description": "R...
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\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "339", "printed": "339", "notation": null}
nlprog_det-setting-0074670
Which is cheaper per unit: 8 for $3.62 (A) or 15 for $16.18 (B)? Computing it: ```python pack_a = 3.62 / 8 # 0.4525 pack_b = 16.18 / 15 # 1.0786666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The printout reads: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0074671
A 34 lb package ships at $12 base plus $1.50/lb. What is the charge? In Python: base = 12 per_pound = 1.5 weight = 34 cost = base + per_pound * weight # 63.0 print(f"{cost:.2f}") stdout = 63.00 The charge is $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0074672
<|start|><|user|> Fines run at $100 per day up to a maximum of $5,000. How much after 54 days?<|eot|> <|assistant|> $5,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $5,000. How much after 54 days?" }, { "role": "assistant", "content": "$5,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0074673
Printing costs 12 cents a page. What does it cost to print 84 copies of a 17-page handout? We write it as a program: pages = 17 copies = 84 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 171.35999999999999 print(f"{cost:.2f}") Execution prints 171.36, as expected. The job costs $171...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "171.36", "printed": "171.36", "notation": null}
nlprog_det-setting-0074674
23 binders cost $24 apiece. With 5% tax added, what is the total? Set it up in Python: quantity = 23 unit_price = 24 subtotal = quantity * unit_price # 552 total = subtotal * (1 + 5 / 100) # 579.6 print(f"{total:.2f}") Out: 579.60 The invoice total is $579.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "579.60", "printed": "579.60", "notation": null}
nlprog_det-setting-0074675
A claim accrued on March 10, 2024. The limitations period is 6 years. On what date does it expire? The computation: ```python from datetime import date accrued = date(2024, 3, 10) years = 6 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Run it and it prints 2030-03-10. It runs out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2030-03-10", "printed": "2030-03-10", "notation": null}
nlprog_det-setting-0074676
<|start|><|user|> Someone born June 16, 1953 turns how old by February 9, 2026? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(1953, 6, 16) # datetime.date(1953, 6, 16) on = date(2026, 2, 9) # datetime.date(2026, 2, 9) age = on.year - born.year - ((on.month, on...
chat
[ { "role": "user", "content": "Someone born June 16, 1953 turns how old by February 9, 2026? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(1953, 6, 16) # datetime.date(1953, 6, 16)\n on = date(2026, 2, 9) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0074677
<|start|><|user|> Viktor lends $8,000 at 5% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 800.0 print(f"{interest:.2f}") ``` Execution prints: 800.00 The interest is $800.00.<|eo...
chat
[ { "role": "user", "content": "Viktor lends $8,000 at 5% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 5 / 100 # 0.05\nyears = 2\ninterest = principal * rate * years # 800.0\nprint(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0074678
Water costs $18 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons? Python makes this quick: ```python base = 18 rate = 5.1 used = 14 free = 0 bill = base + rate * max(0, used - free) # 89.39999999999999 print(f"{bill:.2f}") ``` Running it prints: 89.40 $89.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "89.40", "printed": "89.40", "notation": null}
nlprog_det-setting-0074679
Express 35 hours in days and hours. 35 hours is 1 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "1 days and 11 hours", "printed": "1 days and 11 hours", "notation": null}
nlprog_det-setting-0074680
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> 3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = r...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 60000\n fee = ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0074681
Counting the first and last day, how many days are there from December 5, 2018 through December 12, 2018? Computing it: ```python from datetime import date first = date(2018, 12, 5) # datetime.date(2018, 12, 5) last = date(2018, 12, 12) # datetime.date(2018, 12, 12) days = (last - first).days + 1 # 8 print(days) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0074682
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 3 books that are 15 days late?<|eot|> <|assistant|> per_day = 0.2 days_late = 15 books = 3 fine = per_day * days_late * books # 9.0 print(f"{fine:.2f}") Execution prints: 9.00 $9.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 3 books that are 15 days late?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 15\n books = 3\n fine = per_day * days_late * books # 9.0\n print(f\"{fine:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0074683
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 4 months? ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` What it prints — 600.00 The interest is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0074684
Shipping costs $12 plus $2.50 per pound. What does a 8-pound parcel cost to ship? Here's the code. base = 12 per_pound = 2.5 weight = 8 cost = base + per_pound * weight # 32.0 print(f"{cost:.2f}") Shell output: 32.00 The charge is $32.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0074685
Filing fees are $25 per document. What do 12 filings cost? ```python fee = 25 filings = 12 total = fee * filings print(total) ``` Output = 300 $300 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0074686
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "2018-05-21", "printed": "2018-05-21", "notation": null}
nlprog_det-setting-0074687
<|start|><|user|> Liesel earns a 8% commission on $84,533 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 84533 rate = 8 / 100 # 0.08 commission = sales * rate # 6762.64 print(f"{commission:.2f}") ``` (stdout: 6762.64) The commission is $6,762.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Liesel earns a 8% commission on $84,533 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 84533\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 6762.64\nprint(f\"{commission:.2f}\")\n```\n(stdout: 6762.64)\n\nThe commi...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "6762.64", "printed": "6762.64", "notation": null}
nlprog_det-setting-0074688
A $3,600 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? The Python version: ```python principal = 3600 annual_rate = 5 / 100 months = 12 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "315.00", "printed": "315.00", "notation": null}
nlprog_det-setting-0074689
Shipping costs $10 plus $2.00 per pound. What does a 15-pound parcel cost to ship? We can compute it in Python. ```python base = 10 per_pound = 2.0 weight = 15 cost = base + per_pound * weight # 40.0 print(f"{cost:.2f}") ``` The printout reads 40.00. Shipping costs $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0074690
At $0.67 per mile, what is the reimbursement for 229 miles? Let's compute it with Python. ```python miles = 229 rate = 0.67 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Run result: 153.43 The reimbursement is $153.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "153.43", "printed": "153.43", "notation": null}
nlprog_det-setting-0074691
Which is cheaper per unit: 6 for $13.94 (A) or 30 for $13.81 (B)? Written as code: ```python pack_a = 13.94 / 6 # 2.3233333333333333 pack_b = 13.81 / 30 # 0.46033333333333337 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Printed: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0074692
Someone works 32 hours at $29.91 per hour. What are the earnings? Coded up: ```python rate = 29.91 hours = 32 earnings = rate * hours # 957.12 print(f"{earnings:.2f}") ``` The code prints 957.12. That earns $957.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "957.12", "printed": "957.12", "notation": null}
nlprog_det-setting-0074693
What is a 10% tip on a $128.20 bill? Python: ```python bill = 128.2 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 12.82 print(f"{tip:.2f}") ``` # program output: 12.82 Leave $12.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "12.82", "printed": "12.82", "notation": null}
nlprog_det-setting-0074694
A $12,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment? Code: ```python grant = 12000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 1000.0 print(f"{each:.2f}") ``` (stdout: 1000.00) $1,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0074695
<|start|><|user|> The rules require 2/3 of 35 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 35 quorum = math.ceil(members * 2 / 3) # 24 print(quorum) ``` Printed = 24 That is 24 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 35 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 35\nquorum = math.ceil(members * 2 / 3) # 24\nprint(quorum)\n```\nPrinted = 24\n\nThat is 24 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0074696
Count the days between February 15, 2019 and December 12, 2019. It is 300 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0074697
189 files go into boxes of 20. How many boxes does that take? Let's compute it with Python. import math files = 189 per_box = 20 boxes = math.ceil(files / per_box) # 10 print(boxes) Out — 10 It takes 10 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0074698
<|start|><|user|> A claim accrued on February 16, 2018. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> The period expires on February 16, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on February 16, 2018. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "The period expires on February 16, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "2024-02-16", "printed": "2024-02-16", "notation": null}
nlprog_det-setting-0074699
Under a 35% contingency agreement, what fee is owed on a $40,000 award? Coded up: ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` The program outputs: 14000.00 The fee is $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0074700
A $3,600 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? A short script: principal = 3600 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 648.0 payment = (principa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "118.00", "printed": "118.00", "notation": null}
nlprog_det-setting-0074701
A settlement of $15,000 is split equally among 4 parties. How much does each party receive? Python, step by step: ```python settlement = 15000 parties = 4 share = settlement // parties # 3750 print(share) ``` The interpreter prints: 3750 Each party receives $3,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0074702
How much sales tax is charged on a $371.84 purchase at 6%? $22.31 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "22.31", "printed": "22.31", "notation": null}
nlprog_det-setting-0074703
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> With 17 rows of 17 chairs and 18 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 17 per_row = 17 empty = 18 seated = rows * per_row - empty # 271 print(seated) ``` stdout: 271 271 people are seated.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "With 17 rows of 17 chairs and 18 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 17\nper_row = 17\nempty = 18\nseated = rows * per_row - empty...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "271", "printed": "271", "notation": null}
nlprog_det-setting-0074704
At a 4% tax rate, what is the tax on $289.57? Translated to Python: ```python price = 289.57 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 11.5828 print(f"{tax:.2f}") ``` Run result = 11.58 $11.58 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11.58", "printed": "11.58", "notation": null}
nlprog_det-setting-0074705
A hall has 25 rows of 16 seats, and 9 seats are empty. How many people are seated? Here is a short program for it. ```python rows = 25 per_row = 16 empty = 9 seated = rows * per_row - empty print(seated) ``` (Result: 391) 391 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "391", "printed": "391", "notation": null}
nlprog_det-setting-0074706
A 45-day notice period begins on October 18, 2027. On what date does it end? The period ends on December 2, 2027.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2027-12-02", "printed": "2027-12-02", "notation": null}
nlprog_det-setting-0074707
A 21-day notice period begins on August 27, 2018. On what date does it end? Here is a short program for it. from datetime import date, timedelta start = date(2018, 8, 27) # datetime.date(2018, 8, 27) end = start + timedelta(days=21) # datetime.date(2018, 9, 17) print(end.isoformat()) Result: 2018-09-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2018-09-17", "printed": "2018-09-17", "notation": null}
nlprog_det-setting-0074708
Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights? Translated to Python: ```python days = 3 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 587 print(total) ``` Run output: 587 That comes to $587.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "587", "printed": "587", "notation": null}
nlprog_det-setting-0074709
How many whole days and leftover hours are in 47 hours? Program: ```python hours = 47 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Shell output: 1 days and 23 hours That is 1 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1 days and 23 hours", "printed": "1 days and 23 hours", "notation": null}
nlprog_det-setting-0074710
<|start|><|user|> Count 21 days forward from January 7, 2024. What date is that?<|eot|> <|assistant|> It ends on January 28, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 21 days forward from January 7, 2024. What date is that?" }, { "role": "assistant", "content": "It ends on January 28, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2024-01-28", "printed": "2024-01-28", "notation": null}
nlprog_det-setting-0074711
What day of the week is January 27, 2022? ```python from datetime import date hearing = date(2022, 1, 27) # datetime.date(2022, 1, 27) print(hearing.strftime("%A")) ``` # console output: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0074712
A count moves from 1,200 to 1,260. By what percent did it change (use a minus sign for a drop)? Script: ```python old = 1200 new = 1260 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` The script prints: 5 It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0074713
Divide 94 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Set it up in Python: ```python total = 94 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The run gives 10 each, 4 left over. The answer: 10 ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "10 each, 4 left over", "printed": "10 each, 4 left over", "notation": null}
nlprog_det-setting-0074714
125 volunteers are split into 9 equal teams. How many are on each team, and how many are left over? Python does the arithmetic: total = 125 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") # out: 13 each, 8 left over 13 each, 8 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "13 each, 8 left over", "printed": "13 each, 8 left over", "notation": null}
nlprog_det-setting-0074715
The landlord deducts $85, $150 and $75 from a $1,000 deposit. What is returned to the tenant? $690 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "690", "printed": "690", "notation": null}
nlprog_det-setting-0074716
Each of Kofi's swims burns 150 calories. How many calories over 3 swims? 450 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0074717
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours? ```python rate = 16.0 hours = 50 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 880.0 print(f"{pay:.2f}") ``` Run result: 880.00 The weekly pay is $880.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0074718
<|start|><|user|> 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each client gets $25,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each client gets $25,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0074719
Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 19,000 gallons? The computation: ```python base = 18 rate = 3.5 used = 19 free = 0 bill = base + rate * max(0, used - free) # 84.5 print(f"{bill:.2f}") ``` When run, it prints 84.50. $84.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "84.50", "printed": "84.50", "notation": null}
nlprog_det-setting-0074721
Monthly rent is $1,800. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent? The prorated rent is $1,219.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1219.35", "printed": "1219.35", "notation": null}
nlprog_det-setting-0074722
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> With 30% off, what does a $250 kettle cost?<|eot|> <|assistant|> ```python price = 250 discount = 30 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Running this gives 175.00. The sale price is $175.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "With 30% off, what does a $250 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 30 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:....
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0074723
Grace was born on December 11, 2003. How old is Grace on May 16, 2021? Grace is 17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0074724
If a 2-year limitations period starts on December 28, 2015, when does it end? In Python: ```python from datetime import date accrued = date(2015, 12, 28) # datetime.date(2015, 12, 28) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 12, 28) print(expires.isoformat()) ``` Executing...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2017-12-28", "printed": "2017-12-28", "notation": null}
nlprog_det-setting-0074725
<|start|><|user|> Each of Xavier's walks burns 200 calories. How many calories over 5 walks?<|eot|> <|assistant|> ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Output of the run: 1000 1000 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Xavier's walks burns 200 calories. How many calories over 5 walks?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 5\ntotal = per_session * sessions # 1000\nprint(total)\n```\nOutput of the run: 1000\n\n1000 calories in total...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0074727
A garage charges $2 an hour, never more than $20 a day. How much for 3 hours? ```python rate = 2 hours = 3 daily_max = 20 cost = min(rate * hours, daily_max) # 6 print(cost) ``` Printed: 6 The charge is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0074728
Notice was given on October 21, 2021. The notice period is 10 days. When does it run out? The computation: ```python from datetime import date, timedelta start = date(2021, 10, 21) # datetime.date(2021, 10, 21) end = start + timedelta(days=10) # datetime.date(2021, 10, 31) print(end.isoformat()) ``` # printed result...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2021-10-31", "printed": "2021-10-31", "notation": null}
nlprog_det-setting-0074729
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Split $5,691 between Carmen and Rania in the ratio 2 to 5. What is Carmen's share?<|eot|> <|assistant|> ```python total = 5691 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1626 print(share_a) ``` Executed, it shows: 1626...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Split $5,691 between Carmen and Rania in the ratio 2 to 5. What is Carmen's share?" }, { "role": "assistant", "content": "```python\ntotal = 5691\nparts_a = 2\nparts_b = 5\nshare_a = to...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "1626", "printed": "1626", "notation": null}
nlprog_det-setting-0074730
What does $1,000 grow to in 4 years at 2% annual compounding? Computing it: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 1082.43216 print(f"{value:.2f}") ``` It outputs: 1082.43 It is worth $1,082.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0074731
<|start|><|user|> The paralegal logged 4 hours at a rate of $250. How much is billed?<|eot|> <|assistant|> ```python hours = 4 rate = 250 bill = hours * rate # 1000 print(f"{bill:.2f}") ``` It outputs: 1000.00 The bill is $1,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 4 hours at a rate of $250. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 250\nbill = hours * rate # 1000\nprint(f\"{bill:.2f}\")\n```\nIt outputs: 1000.00\n\nThe bill is $1,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0074732
Shipping costs $5 plus $2.50 per pound. What does a 10-pound parcel cost to ship? base = 5 per_pound = 2.5 weight = 10 cost = base + per_pound * weight # 30.0 print(f"{cost:.2f}") Execution prints 30.00. The charge is $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0074733
A client paid a $10,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left? Coded up: ```python retainer = 10000 hours = 6 rate = 250 left = retainer - hours * rate # 8500 print(left) ``` Running this gives: 8500 $8,500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8500", "printed": "8500", "notation": null}
nlprog_det-setting-0074734
Straight-line depreciation: cost $12,000, salvage $6,000, 6 years. How much per year? We write it as a program: cost = 12000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 1000.0 print(f"{per_year:.2f}") The script prints 1000.00, as expected. Depreciation is $1,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0074735
Uma earns a 4% commission on $105,728 of sales. What is the commission? As a program: sales = 105728 rate = 4 / 100 # 0.04 commission = sales * rate # 4229.12 print(f"{commission:.2f}") (Execution result: 4229.12) Uma earns $4,229.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4229.12", "printed": "4229.12", "notation": null}
nlprog_det-setting-0074736
<|start|><|system|> Tools (call with JSON): [{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Transl...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
338
{"gold": "43.50", "printed": "43.50", "notation": null}
nlprog_det-setting-0074737
Someone born July 4, 1986 turns how old by January 2, 2022? Give the age in whole years. ```python from datetime import date born = date(1986, 7, 4) # datetime.date(1986, 7, 4) on = date(2022, 1, 2) # datetime.date(2022, 1, 2) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 35 print(age)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0074738
<|start|><|system|> You can call tools. Available tools: {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute", "des...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
406
{"gold": "49.56", "printed": "49.56", "notation": null}
nlprog_det-setting-0074739
A count moves from 200 to 190. By what percent did it change (use a minus sign for a drop)? As Python: ```python old = 200 new = 190 change = (new - old) / old * 100 print(round(change)) ``` Execution prints: -5 It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0074740
Priya drove 177 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? ```python miles = 177 rate = 0.7 reimbursement = miles * rate # 123.89999999999999 print(f"{reimbursement:.2f}") ``` Run it and it prints: 123.90 The reimbursement is $123.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "123.90", "printed": "123.90", "notation": null}
nlprog_det-setting-0074741
<|start|><|user|> Farah drove 60 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 60 rate = 0.62 reimbursement = miles * rate # 37.2 print(f"{reimbursement:.2f}") It outputs: 37.20 The reimbursement is $37.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Farah drove 60 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 60\n rate = 0.62\n reimbursement = miles * rate # 37.2\n print(f\"{reimbursement:.2f}\")\nIt outputs:...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "37.20", "printed": "37.20", "notation": null}
nlprog_det-setting-0074742
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A service costs $12 a month or $126 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> monthly = 12 yearly = 126 savings = monthly * 12 - yearly # 18 print(savings) The program outputs ...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A service costs $12 a month or $126 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": " monthly = 12\n yearly = ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0074743
With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal. Program: ```python revenue = 5000 costs = 4000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Running it prints 20.0. The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "20.0", "printed": "20.0", "notation": null}