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-0055286
<|start|><|user|> 4 friends split a $96 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> bill = 96 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 28.32 print(f"{each:.2f}") The run gives 28.32. Each person pays $28.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 friends split a $96 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": " bill = 96\n tip_rate = 18 / 100 # 0.18\n people = 4\n each = bill * (1 + tip_rate) / people # 28.32\n print(f\"{each:.2f}\")\nThe run g...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "28.32", "printed": "28.32", "notation": null}
nlprog_det-setting-0055287
<|start|><|user|> At 1% a month (simple), what interest builds on $7,500 over 6 months?<|eot|> <|assistant|> $450.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $7,500 over 6 months?" }, { "role": "assistant", "content": "$450.00 accrues." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0055288
<|start|><|user|> Notice was given on January 10, 2022. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 1, 10) # datetime.date(2022, 1, 10) end = start + timedelta(days=90) # datetime.date(2022, 4, 10) print(end.isoformat()) ``...
chat
[ { "role": "user", "content": "Notice was given on January 10, 2022. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 1, 10) # datetime.date(2022, 1, 10)\nend = start + timedelta(days=90...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-04-10", "printed": "2022-04-10", "notation": null}
nlprog_det-setting-0055289
What is the total rent on a 18-month lease at $2,100 a month? Set it up in Python: ```python monthly_rent = 2100 months = 18 total = monthly_rent * months # 37800 print(total) ``` Shell output — 37800 The rent over the term is $37,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0055290
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Prorate $1,200 of monthly rent for 20 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 31 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 774.1935483870968 print(f"{prorated:.2f}") ``` It prints:...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Prorate $1,200 of monthly rent for 20 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 20\nprorated = rent * da...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "774.19", "printed": "774.19", "notation": null}
nlprog_det-setting-0055291
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> From a $2,500 retainer, 6 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 6 rate = 250 left = retainer - hours * rate # 1000 print(left) ``` Result = 1000 The remaining balance is $1,000.<|eot|> <...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "From a $2,500 retainer, 6 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 6\nrate = 250\nleft = retainer - hours...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0055292
<|start|><|system|> Available functions (JSON Schema): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "python_exec", "descrip...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "8 days and 12 hours", "printed": "8 days and 12 hours", "notation": null}
nlprog_det-setting-0055293
<|start|><|user|> Liesel buys 9 boxes of 8 hard drives each and gives away 15 hard drives. How many hard drives are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 57 print(left) ``` Result: 57 57 hard drives are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Liesel buys 9 boxes of 8 hard drives each and gives away 15 hard drives. How many hard drives are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 8\ngiven_away = 15\nleft = boxes * per_box - given_away # 57\nprint(left)\n```\nResult: 57...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0055294
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 24 months. How large is a payment? We write it as a program: ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 144.0 payment = (principal + interest) / months # 56.0 print(f"{...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0055295
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Convert 2 h 13 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 2 minutes = 13 total_minutes = hours * 60 + minutes # 133 print(total_minutes) ``` # program output: 133 That is 133 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Convert 2 h 13 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 13\ntotal_minutes = hours * 60 + minutes # 133\nprint(total_minute...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0055296
185 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? Script: ```python total = 185 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The code prints: 26 each, 3 left over 26 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "26 each, 3 left over", "printed": "26 each, 3 left over", "notation": null}
nlprog_det-setting-0055297
<|start|><|user|> How many minutes pass from 10:49 AM to 5:03 PM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 49 # 649 end = 17 * 60 + 3 # 1023 print(end - start) ``` The code prints 374. 374 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 10:49 AM to 5:03 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 49 # 649\nend = 17 * 60 + 3 # 1023\nprint(end - start)\n```\nThe code prints 374.\n\n374 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "374", "printed": "374", "notation": null}
nlprog_det-setting-0055299
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 101-page copy cost? Python version: ```python pages = 101 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 14.1 print(f"{cost:.2f}") ``` Executed, it shows: 14.10 The copy costs $14.1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "14.10", "printed": "14.10", "notation": null}
nlprog_det-setting-0055300
Shipping costs $12 plus $2.00 per pound. What does a 9-pound parcel cost to ship? Here's the code. ```python base = 12 per_pound = 2.0 weight = 9 cost = base + per_pound * weight print(f"{cost:.2f}") ``` The program prints 30.00, as expected. The charge is $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0055301
Notice was given on January 15, 2028. The notice period is 21 days. When does it run out? The program: from datetime import date, timedelta start = date(2028, 1, 15) # datetime.date(2028, 1, 15) end = start + timedelta(days=21) # datetime.date(2028, 2, 5) print(end.isoformat()) Printed result — 2028-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2028-02-05", "printed": "2028-02-05", "notation": null}
nlprog_det-setting-0055302
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year? In Python: ```python cost = 30000 salvage = 6000 years = 5 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` On running, it outputs: 4800.00 $4,800.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0055303
$10,000 is invested at 5% compounded yearly. What is it worth after 2 years? As a program: ```python principal = 10000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 11025.0 print(f"{value:.2f}") ``` Executed, it shows 11025.00. It is worth $11,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "11025.00", "printed": "11025.00", "notation": null}
nlprog_det-setting-0055304
Printing costs 8 cents a page. What does it cost to print 162 copies of a 33-page handout? Here's the code. ```python pages = 33 copies = 162 cost_per_page = 0.08 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` # console output: 427.68 The job costs $427.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "427.68", "printed": "427.68", "notation": null}
nlprog_det-setting-0055305
A customer buys 5 ink cartridges at $30 each, 2 labels at $17 each and pays with $200. How much change is due? The Python version: ```python items = [(5, 30), (2, 17)] total = sum(q * p for q, p in items) # 184 paid = 200 change = paid - total # 16 print(change) ``` Interpreter output: 16 The change is $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0055306
Shipping costs $10 plus $2.50 per pound. What does a 23-pound parcel cost to ship? In Python: ```python base = 10 per_pound = 2.5 weight = 23 cost = base + per_pound * weight # 67.5 print(f"{cost:.2f}") ``` The interpreter prints 67.50. Shipping costs $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0055307
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "translate", "description":...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0055308
<|start|><|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> It is worth $5,788.13.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "It is worth $5,788.13." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0055309
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? A few lines of Python do it: ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0055310
A lawyer's fee is 40% of a $60,000 recovery. How large is the fee? Here's the code. ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Execution prints 24000.00. The lawyer's fee comes to $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0055311
<|start|><|user|> A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 3 thousand gallons?<|eot|> <|assistant|> ```python base = 20 rate = 4.75 used = 3 free = 2 bill = base + rate * max(0, used - free) # 24.75 print(f"{bill:.2f}") ``` Printed result — 24.75 $24.75 is ...
chat
[ { "role": "user", "content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 3 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 20\nrate = 4.75\nused = 3\nfree = 2\nbill = base + rate * max(0, used - free) # 24.75\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0055312
A meal costs $175.34. How much is a 22% tip? Set it up in Python: ```python bill = 175.34 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 38.5748 print(f"{tip:.2f}") ``` Interpreter output: 38.57 Leave $38.57.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "38.57", "printed": "38.57", "notation": null}
nlprog_det-setting-0055313
A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Translated to Python: ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 2700.0 payment = (principal ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "325.00", "printed": "325.00", "notation": null}
nlprog_det-setting-0055314
<|start|><|user|> If a 135-minute meeting begins at 11:10 AM, what time does it finish?<|eot|> <|assistant|> start = 11 * 60 + 10 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") The program prints 1:25 PM, as expected. The meet...
chat
[ { "role": "user", "content": "If a 135-minute meeting begins at 11:10 AM, what time does it finish?" }, { "role": "assistant", "content": " start = 11 * 60 + 10\n end = start + 135\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1:25 PM", "printed": "1:25 PM", "notation": null}
nlprog_det-setting-0055315
<|start|><|user|> Convert 3 h 21 min (the length of a hearing) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 21 total_minutes = hours * 60 + minutes # 201 print(total_minutes) ``` Printed = 201 That is 201 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 21 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 21\ntotal_minutes = hours * 60 + minutes # 201\nprint(total_minutes)\n```\nPrinted = 201\n\nThat is 201 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0055316
A quorum is 3/5 of the 32 members, rounded up. How many members make a quorum? That is 20 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0055317
A penalty of $250 a day accrues, capped at $5,000. What is owed after 59 days? Python does the arithmetic: ```python per_day = 250 days = 59 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` The program prints 5000, as expected. The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0055318
<|start|><|user|> A hearing lasted 3 hours and 18 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 18 total_minutes = hours * 60 + minutes print(total_minutes) ``` Output — 198 That is 198 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing lasted 3 hours and 18 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 18\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nOutput — 198\n\nThat is 198 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0055319
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A 492-page report must be reviewed in 12 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 492 days = 12 per_day = pages // days # 41 print(per_day) ``` (Execution result: 41) 41 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A 492-page report must be reviewed in 12 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 492\ndays = 12\nper_day = pages // days # 41...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0055320
<|start|><|user|> A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 9 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.75 used = 9 free = 3 bill = base + rate * max(0, used - free) # 40.5 print(f"{bill:.2f}") ``` The run gives 40.50. The bill is $...
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 9 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 4.75\nused = 9\nfree = 3\nbill = base + rate * max(0, used - free) # 40.5\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0055321
<|start|><|user|> With 21 rows of 18 chairs and 2 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 21 per_row = 18 empty = 2 seated = rows * per_row - empty print(seated) ``` It prints 376. 376 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 21 rows of 18 chairs and 2 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 21\nper_row = 18\nempty = 2\nseated = rows * per_row - empty\nprint(seated)\n```\nIt prints 376.\n\n376 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "376", "printed": "376", "notation": null}
nlprog_det-setting-0055322
<|start|><|user|> A water bill is $15 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 5 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.75 used = 5 free = 0 bill = base + rate * max(0, used - free) # 38.75 print(f"{bill:.2f}") ``` This prints 38.75. The bill is $3...
chat
[ { "role": "user", "content": "A water bill is $15 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 5 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.75\nused = 5\nfree = 0\nbill = base + rate * max(0, used - free) # 38.75\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "38.75", "printed": "38.75", "notation": null}
nlprog_det-setting-0055323
60 copies of a 37-page packet are printed at $0.10 per page. What is the cost? Computation in Python: ```python pages = 37 copies = 60 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 222.0 print(f"{cost:.2f}") ``` # output: 222.00 Printing costs $222.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "222.00", "printed": "222.00", "notation": null}
nlprog_det-setting-0055324
<|start|><|user|> Of a $5,000 budget, $4,000 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 4000 percent = spent / budget * 100 # 80.0 print(round(percent, 1)) ``` The script prints: 80.0 That is 80.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $5,000 budget, $4,000 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 4000\npercent = spent / budget * 100 # 80.0\nprint(round(percent, 1))\n```\nThe script prints: 80.0\n\nThat is 80.0% of the bud...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0055325
Each of Sofia's walks burns 200 calories. How many calories over 6 walks? A few lines of Python do it: ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` Console output — 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0055326
Walls total 485 sq ft and each can covers 300 sq ft. How many cans should be bought? We write it as a program: ```python import math area = 485 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` # printed result: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0055327
Parking is $2 per hour with a daily maximum of $20. What do 6 hours cost? In Python: ```python rate = 2 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 12 print(cost) ``` When run, it prints 12. Parking costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0055328
Omar earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week? The weekly pay is $784.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "784.00", "printed": "784.00", "notation": null}
nlprog_det-setting-0055329
Scale 200 g of oats from 6 servings to 12 servings. Python makes this quick: ```python grams = 200 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 400 print(scaled) ``` Output: 400 Use 400 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0055330
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> An attorney bills 1.5 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 1.5 rate = 410 bill = hours * rate # 615.0 print(f"{bill:.2f}") ``` Output: 615.00 That comes to $615.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "An attorney bills 1.5 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 410\nbill = hours * rate # 615.0\nprint(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "615.00", "printed": "615.00", "notation": null}
nlprog_det-setting-0055331
The building opened in 2023. How many years had passed by 2048? Computation in Python: ```python start_year = 2023 end_year = 2048 print(end_year - start_year) ``` Console output: 25 That is 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0055332
<|start|><|user|> Nilufar was born on February 21, 1991. How old is Nilufar on April 21, 2029?<|eot|> <|assistant|> from datetime import date born = date(1991, 2, 21) # datetime.date(1991, 2, 21) on = date(2029, 4, 21) # datetime.date(2029, 4, 21) age = on.year - born.year - ((on.month, on.day) < (bor...
chat
[ { "role": "user", "content": "Nilufar was born on February 21, 1991. How old is Nilufar on April 21, 2029?" }, { "role": "assistant", "content": " from datetime import date\n born = date(1991, 2, 21) # datetime.date(1991, 2, 21)\n on = date(2029, 4, 21) # datetime.date(2029, 4, 21)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0055333
<|start|><|user|> Farah has 7 documents to file, and each filing costs $150. How much are the filing fees in total?<|eot|> <|assistant|> fee = 150 filings = 7 total = fee * filings print(total) Out = 1050 $1,050 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Farah has 7 documents to file, and each filing costs $150. How much are the filing fees in total?" }, { "role": "assistant", "content": " fee = 150\n filings = 7\n total = fee * filings\n print(total)\nOut = 1050\n\n$1,050 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0055334
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 738 square feet of wall?<|eot|> <|assistant|> import math area = 738 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) Execution result — 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 738 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 738\n coverage = 350\n cans = math.ceil(area / coverage) # 3\n print(cans)\nExecution result —...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055335
Sofia buys 8 boxes of 24 scissors each and gives away 20 scissors. How many scissors are left? Python: ```python boxes = 8 per_box = 24 given_away = 20 left = boxes * per_box - given_away # 172 print(left) ``` Result = 172 172 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "172", "printed": "172", "notation": null}
nlprog_det-setting-0055336
A count moves from 2,500 to 2,250. By what percent did it change (use a minus sign for a drop)? Code: ```python old = 2500 new = 2250 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Out = -10 The change is -10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0055337
<|start|><|user|> A clerk's office charges $45 for each filing. Tomas submits 11 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 45 filings = 11 total = fee * filings print(total) ``` Console: 495 The filings cost $495 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $45 for each filing. Tomas submits 11 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 45\nfilings = 11\ntotal = fee * filings\nprint(total)\n```\nConsole:\n495\n\nThe filings cost $495 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "495", "printed": "495", "notation": null}
nlprog_det-setting-0055338
A 8-day trip pays $64 a day for meals and $140 a night for lodging (7 nights). What is the total allowance? Let's compute it with Python. ```python days = 8 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1492 print(total) ``` Console output — 1492 That com...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1492", "printed": "1492", "notation": null}
nlprog_det-setting-0055339
<|start|><|user|> Prorate $1,800 of monthly rent for 20 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Printed — 1200.00 The prorated rent is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 20 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nPrinted — 1200.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0055340
<|start|><|user|> What does $2,000 grow to in 4 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 2164.86432 print(f"{value:.2f}") ``` (Output: 2164.86) The balance is $2,164.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 4 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 2164.86432\nprint(f\"{value:.2f}\")\n```\n(Output: 2164.86...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2164.86", "printed": "2164.86", "notation": null}
nlprog_det-setting-0055341
At 60 miles per hour, how many minutes does a 100-mile trip take? Script: ```python distance = 100 speed = 60 minutes = distance / speed * 60 # 100.0 print(round(minutes)) ``` Output: 100 100 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0055342
Monthly: $9. Annual: $72. What is saved per year by paying annually? In code: ```python monthly = 9 yearly = 72 savings = monthly * 12 - yearly # 36 print(savings) ``` Printed = 36 $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0055343
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A count moves from 2,000 to 2,400. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 2400 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` (Printed result: 20) It changed by 20%.<|eot|...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A count moves from 2,000 to 2,400. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 2400\nchange = (new - old) / ol...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0055344
A meal costs $30.59. How much is a 18% tip? In Python: ```python bill = 30.59 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 5.5062 print(f"{tip:.2f}") ``` Running it prints 5.51, as expected. Leave $5.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "5.51", "printed": "5.51", "notation": null}
nlprog_det-setting-0055345
The rules require 2/3 of 38 members (round up) to be present. How many is that? Program: ```python import math members = 38 quorum = math.ceil(members * 2 / 3) # 26 print(quorum) ``` # out: 26 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0055346
<|start|><|user|> A 50-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 60 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 50-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 60 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0055347
How many of 297 votes make 75% (round up)? Code: ```python import math voters = 297 needed = math.ceil(voters * 75 / 100) # 223 print(needed) ``` Output: 223 223 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "223", "printed": "223", "notation": null}
nlprog_det-setting-0055348
<|start|><|system|> You can call tools. Available tools: {"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> At a 7% tax rate, ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "34.29", "printed": "34.29", "notation": null}
nlprog_det-setting-0055349
24 of 25 members attended. What percent attended? Program: ```python present = 24 total = 25 percent = present / total * 100 # 96.0 print(round(percent, 1)) ``` Run result — 96.0 96.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "96.0", "printed": "96.0", "notation": null}
nlprog_det-setting-0055350
<|start|><|user|> A measure needs at least 75% of 95 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 95 needed = math.ceil(voters * 75 / 100) # 72 print(needed) ``` (Printed result: 72) 72 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 95 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 95\nneeded = math.ceil(voters * 75 / 100) # 72\nprint(needed)\n```\n(Printed result: 72)\n\n72 votes are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0055352
Convert 882 EUR to USD at 1 EUR = 1.35 USD. Programmatically: amount = 882 rate = 1.35 converted = amount * rate # 1190.7 print(f"{converted:.2f}") Console output: 1190.70 It converts to 1,190.70 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1190.70", "printed": "1190.70", "notation": null}
nlprog_det-setting-0055353
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A $30,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> Each installment is $4,666.67.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A $30,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "Each installment is $4,666.67." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0055354
<|start|><|system|> You can call tools. Available tools: {"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 can call tools. Available tools:\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
[]
[]
348
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0055355
Monthly: $12. Annual: $114. What is saved per year by paying annually? monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) Result = 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0055357
<|start|><|user|> A hall has 28 rows of 13 seats, and 5 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 28 per_row = 13 empty = 5 seated = rows * per_row - empty # 359 print(seated) ``` Console output — 359 359 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 28 rows of 13 seats, and 5 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 28\nper_row = 13\nempty = 5\nseated = rows * per_row - empty # 359\nprint(seated)\n```\nConsole output — 359\n\n359 seats are...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "359", "printed": "359", "notation": null}
nlprog_det-setting-0055358
Sara lends $1,000 at 3% simple interest per year for 2 years. How much interest is earned? In code: principal = 1000 rate = 3 / 100 # 0.03 years = 2 interest = principal * rate * years # 60.0 print(f"{interest:.2f}") Python prints: 60.00 The interest is $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0055359
Kemal's scores were 77, 59, 73, 76, 75, 64 and 66. What is the average score? We can compute it in Python. ```python scores = [77, 59, 73, 76, 75, 64, 66] average = sum(scores) // len(scores) # 70 print(average) ``` Run it and it prints 70. The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0055360
<|start|><|user|> A 7-day trip pays $59 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 7 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1463 print(total) ``` (Run result: 1463) Tha...
chat
[ { "role": "user", "content": "A 7-day trip pays $59 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1463", "printed": "1463", "notation": null}
nlprog_det-setting-0055361
<|start|><|system|> You are a data assistant.<|eot|> <|user|> How many units at $20 each (variable cost $16) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` This prints 1000, as expected....
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "How many units at $20 each (variable cost $16) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 20\nvariable = 16\nunits = math...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0055362
How many of 121 votes make 60% (round up)? As Python: import math voters = 121 needed = math.ceil(voters * 60 / 100) print(needed) Printed — 73 73 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0055363
<|start|><|user|> A $210 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 63.0 print(f"{each:.2f}") ``` The printout reads 63.00. Each person pays $63.00...
chat
[ { "role": "user", "content": "A $210 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 20 / 100 # 0.2\npeople = 4\neach = bill * (1 + tip_rate) / people # 63.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0055365
<|start|><|user|> How many whole days and leftover hours are in 305 hours?<|eot|> <|assistant|> ```python hours = 305 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console output — 12 days and 17 hours 305 hours is 12 days and 17 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 305 hours?" }, { "role": "assistant", "content": "```python\nhours = 305\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole output — 12 days and 17 hours\n\n305 hours is 12 days and 1...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12 days and 17 hours", "printed": "12 days and 17 hours", "notation": null}
nlprog_det-setting-0055366
<|start|><|user|> At an exchange rate of 0.74 USD per EUR, how many USD is 226 EUR?<|eot|> <|assistant|> ```python amount = 226 rate = 0.74 converted = amount * rate print(f"{converted:.2f}") ``` Result: 167.24 That is 167.24 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.74 USD per EUR, how many USD is 226 EUR?" }, { "role": "assistant", "content": "```python\namount = 226\nrate = 0.74\nconverted = amount * rate\nprint(f\"{converted:.2f}\")\n```\nResult: 167.24\n\nThat is 167.24 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "167.24", "printed": "167.24", "notation": null}
nlprog_det-setting-0055367
How many of 73 votes make 60% (round up)? 44 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0055368
Walls total 164 sq ft and each can covers 250 sq ft. How many cans should be bought? Python: ```python import math area = 164 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Run it and it prints: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0055369
Fixed costs are $2,500. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even? The Python version: ```python import math fixed = 2500 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 625 print(units) ``` Output: 625 Break-even is 625 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0055370
113 of 200 members attended. What percent attended? Python code: ```python present = 113 total = 200 percent = present / total * 100 # 56.49999999999999 print(round(percent, 1)) ``` That prints: 56.5 Attendance was 56.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "56.5", "printed": "56.5", "notation": null}
nlprog_det-setting-0055371
<|start|><|user|> How many 1-foot square tiles cover a 11 ft by 4 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 11 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 44 print(tiles) ``` (Printed result: 44) It takes 44 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 11 ft by 4 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 11\nwidth = 4\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 44\nprint(tiles)\n```\n(Printed result: 44)\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0055372
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> The paralegal logged 7 hours at a rate of $180. How much is billed?<|eot|> <|assistant|> ```python hours = 7 rate = 180 bill = hours * rate # 1260 print(f"{bill:.2f}") ``` Execution prints 1260.00, as expected. That comes to $1,260.00....
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "The paralegal logged 7 hours at a rate of $180. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 7\nrate = 180\nbill = hours * rate # 1260\np...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0055373
The paralegal logged 1.5 hours at a rate of $300. How much is billed? ```python hours = 1.5 rate = 300 bill = hours * rate # 450.0 print(f"{bill:.2f}") ``` Python prints: 450.00 That comes to $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0055374
At an exchange rate of 1.35 USD per GBP, how many USD is 1,850 GBP? Translated to Python: amount = 1850 rate = 1.35 converted = amount * rate # 2497.5 print(f"{converted:.2f}") Python prints 2497.50. That is 2,497.50 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2497.50", "printed": "2497.50", "notation": null}
nlprog_det-setting-0055375
A car travels 88 miles in 2 hours. What is its average speed in miles per hour? A few lines of Python do it: ```python distance = 88 hours = 2 speed = distance / hours # 44.0 print(round(speed)) ``` # result: 44 The average speed is 44 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0055376
How many days are there from April 14, 2019 to June 22, 2019? It is 69 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0055377
Helga lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned? Python version: ```python principal = 1000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 320.0 print(f"{interest:.2f}") ``` # console output: 320.00 It earns $320.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0055378
Convert 0 °C to Fahrenheit. It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0055379
A 6-month warranty starts on August 11, 2020. On what date does it end? ```python from datetime import date start = date(2020, 8, 11) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The program prints 2021-02-11....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-02-11", "printed": "2021-02-11", "notation": null}
nlprog_det-setting-0055380
Express 98 hours in days and hours. We can compute it in Python. ```python hours = 98 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints 4 days and 2 hours, as expected. 98 hours is 4 days and 2 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4 days and 2 hours", "printed": "4 days and 2 hours", "notation": null}
nlprog_det-setting-0055381
Find the mean of these test scores: 58, 74, 54, 79 and 85. The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0055382
How many whole days and leftover hours are in 337 hours? Let the code do the arithmetic: ```python hours = 337 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It outputs: 14 days and 1 hours 337 hours is 14 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "14 days and 1 hours", "printed": "14 days and 1 hours", "notation": null}
nlprog_det-setting-0055383
With 14 rows of 21 chairs and 17 empty chairs, how many chairs are taken? Translated to Python: ```python rows = 14 per_row = 21 empty = 17 seated = rows * per_row - empty # 277 print(seated) ``` This prints: 277 277 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "277", "printed": "277", "notation": null}
nlprog_det-setting-0055384
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A $1,000 security deposit has deductions of $120. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [120] refund = deposit - sum(deductions) print(refund) ``` Output: 880 $880 is returned.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A $1,000 security deposit has deductions of $120. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [120]\nrefund = deposit - sum(deductions)...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0055385
A penalty of $50 a day accrues, capped at $1,000. What is owed after 60 days? One way, in code: ```python per_day = 50 days = 60 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Result = 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0055386
<|start|><|user|> 3 swims at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 3 total = per_session * sessions # 600 print(total) ``` Execution result — 600 600 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 swims at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 3\ntotal = per_session * sessions # 600\nprint(total)\n```\nExecution result — 600\n\n600 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0055387
Convert 8,743 USD to CAD at 1 USD = 1.08 CAD. That is 9,442.44 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "9442.44", "printed": "9442.44", "notation": null}
nlprog_det-setting-0055388
<|start|><|system|> Tools (call with JSON): [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"business_days\", \"description\": \"C...
nlprog_det
setting
original
null
deterministic
[]
[]
373
{"gold": "15 days and 22 hours", "printed": "15 days and 22 hours", "notation": null}
nlprog_det-setting-0055389
A lawyer's fee is 40% of a $25,000 recovery. How large is the fee? ```python recovery = 25000 rate = 40 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` The run gives 10000.00. The lawyer's fee comes to $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "10000.00", "printed": "10000.00", "notation": null}