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-0048513
<|start|><|user|> How many weekdays (Monday to Friday) fall after November 1, 2028 up to and including November 12, 2028?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 11, 1) end = date(2028, 11, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after November 1, 2028 up to and including November 12, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 11, 1)\nend = date(2028, 11, 12)\ncount = 0\nfor k in r...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0048514
Which is cheaper per unit: 6 for $7.92 (A) or 15 for $9.24 (B)? Python: pack_a = 7.92 / 6 # 1.32 pack_b = 9.24 / 15 # 0.616 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Console output: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0048515
<|start|><|user|> 2 friends split a $120 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> Each person pays $70.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $120 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "Each person pays $70.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0048516
Copies cost $5 plus $0.25 for each page beyond 10. How much for 9 pages? Computing it: ```python pages = 9 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 5.0 print(f"{cost:.2f}") ``` Python prints 5.00, as expected. The copy costs $5.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0048517
What day of the week is September 20, 2012? Programmatically: ```python from datetime import date hearing = date(2012, 9, 20) # datetime.date(2012, 9, 20) print(hearing.strftime("%A")) ``` stdout: Thursday September 20, 2012 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0048518
How long, in days, is it from January 2, 2028 until April 7, 2028? Written as code: ```python from datetime import date first = date(2028, 1, 2) # datetime.date(2028, 1, 2) second = date(2028, 4, 7) # datetime.date(2028, 4, 7) print((second - first).days) ``` It outputs: 96 There are 96 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0048519
<|start|><|user|> 5 boxes hold 8 water bottles each. After 7 are handed out, how many are left?<|eot|> <|assistant|> That leaves 33 water bottles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 8 water bottles each. After 7 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 33 water bottles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0048520
What commission does Nadia make on $49,260 in sales at 2%? ```python sales = 49260 rate = 2 / 100 # 0.02 commission = sales * rate # 985.2 print(f"{commission:.2f}") ``` When run, it prints: 985.20 Nadia earns $985.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "985.20", "printed": "985.20", "notation": null}
nlprog_det-setting-0048521
<|start|><|user|> How many days are there from October 9, 2023 to November 17, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 10, 9) # datetime.date(2023, 10, 9) second = date(2023, 11, 17) # datetime.date(2023, 11, 17) print((second - first).days) ``` Running it prints 39. There a...
chat
[ { "role": "user", "content": "How many days are there from October 9, 2023 to November 17, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 10, 9) # datetime.date(2023, 10, 9)\nsecond = date(2023, 11, 17) # datetime.date(2023, 11, 17)\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0048522
One can of paint covers 300 square feet. How many cans are needed for 249 square feet of wall? Script: ```python import math area = 249 coverage = 300 cans = math.ceil(area / coverage) # 1 print(cans) ``` (Result: 1) 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0048523
A hearing is set for December 8, 2003. What day of the week is that? A few lines of Python do it: ```python from datetime import date hearing = date(2003, 12, 8) # datetime.date(2003, 12, 8) print(hearing.strftime("%A")) ``` Execution result: Monday December 8, 2003 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0048525
$5,000 is invested at 5% compounded yearly. What is it worth after 3 years? ```python principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") ``` Run output: 5788.13 It is worth $5,788.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0048526
<|start|><|user|> Parking is $2 per hour with a daily maximum of $20. What do 6 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Run output: 12 The charge is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $20. What do 6 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 6\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nRun output: 12\n\nThe charge is $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0048527
The rules require 1/3 of 38 members (round up) to be present. How many is that? We write it as a program: ```python import math members = 38 quorum = math.ceil(members * 1 / 3) # 13 print(quorum) ``` (Printed result: 13) 13 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0048528
Uma's scores were 54, 97 and 95. What is the average score? We can compute it in Python. ```python scores = [54, 97, 95] average = sum(scores) // len(scores) # 82 print(average) ``` The run gives: 82 The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0048529
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months? The computation: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Shell output: 450.00 The interest is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0048530
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?<|eot|> <|assistant|> 1800 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "1800 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0048531
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A film lasted 2 hours and 6 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 6 total_minutes = hours * 60 + minutes # 126 print(total_minutes) ``` This prints 126. The film lasted 126 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A film lasted 2 hours and 6 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 6\ntotal_minutes = hours * 60 + minutes # 126\nprint(total_mi...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "126", "printed": "126", "notation": null}
nlprog_det-setting-0048532
<|start|><|user|> A car travels 116 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 116 hours = 2 speed = distance / hours # 58.0 print(round(speed)) ``` Out — 58 It averages 58 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 116 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 116\nhours = 2\nspeed = distance / hours # 58.0\nprint(round(speed))\n```\nOut — 58\n\nIt averages 58 miles per hour." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0048533
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? We write it as a program: rate = 25.0 hours = 41 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") The program outputs: 1037.50 The weekly pay is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0048534
Printing costs 10 cents a page. What does it cost to print 129 copies of a 21-page handout? Computation in Python: ```python pages = 21 copies = 129 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 270.90000000000003 print(f"{cost:.2f}") ``` Printed: 270.90 The job costs $270.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "270.90", "printed": "270.90", "notation": null}
nlprog_det-setting-0048535
<|start|><|user|> How much sales tax is charged on a $846.96 purchase at 6%?<|eot|> <|assistant|> ```python price = 846.96 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 50.8176 print(f"{tax:.2f}") ``` On running, it outputs 50.82. $50.82 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $846.96 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 846.96\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 50.8176\nprint(f\"{tax:.2f}\")\n```\nOn running, it outputs 50.82.\n\n$50.82 in tax." ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "50.82", "printed": "50.82", "notation": null}
nlprog_det-setting-0048537
If a 2-year limitations period starts on April 6, 2016, when does it end? Programmatically: from datetime import date accrued = date(2016, 4, 6) # datetime.date(2016, 4, 6) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 4, 6) print(expires.isoformat()) Runnin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2018-04-06", "printed": "2018-04-06", "notation": null}
nlprog_det-setting-0048538
At 1.5% a month (simple), what interest builds on $12,000 over 6 months? Python code: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080.0 print(f"{interest:.2f}") ``` Out: 1080.00 The interest is $1,080.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0048539
<|start|><|user|> The meal allowance is $74 per day. What is it for 4 days?<|eot|> <|assistant|> The allowance is $296.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $74 per day. What is it for 4 days?" }, { "role": "assistant", "content": "The allowance is $296." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0048540
<|start|><|user|> Someone born March 20, 1961 turns how old by November 18, 2026? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1961, 3, 20) # datetime.date(1961, 3, 20) on = date(2026, 11, 18) # datetime.date(2026, 11, 18) age = on.year - born.year - ((on.month, on...
chat
[ { "role": "user", "content": "Someone born March 20, 1961 turns how old by November 18, 2026? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1961, 3, 20) # datetime.date(1961, 3, 20)\non = date(2026, 11, 18) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0048541
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "des...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
414
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0048542
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0048543
6 runs at 300 calories each burn how many calories in total? Program: ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Printed — 1800 1800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0048544
<|start|><|user|> Count 60 days forward from February 27, 2025. What date is that?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2025, 2, 27) end = start + timedelta(days=60) print(end.isoformat()) Running it prints: 2025-04-28 It ends on April 28, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 60 days forward from February 27, 2025. What date is that?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2025, 2, 27)\n end = start + timedelta(days=60)\n print(end.isoformat())\nRunning it prints: 2025...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2025-04-28", "printed": "2025-04-28", "notation": null}
nlprog_det-setting-0048546
Monthly: $29. Annual: $324. What is saved per year by paying annually? Translated to Python: ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` Executing it gives 24. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0048547
<|start|><|user|> Counting only Monday through Friday, how many business days are there after December 12, 2023 through January 13, 2024?<|eot|> <|assistant|> There are 23 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after December 12, 2023 through January 13, 2024?" }, { "role": "assistant", "content": "There are 23 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0048548
Abel earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week? A Python solution: ```python rate = 20.0 hours = 44 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 920.0 print(f"{pay:.2f}") ``` Console output — 920.00 The week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0048549
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 93-page copy cost?<|eot|> <|assistant|> ```python pages = 93 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 25.75 print(f"{cost:.2f}") ``` Output: 25.75 The total ...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 93-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 93\nbase = 5\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "25.75", "printed": "25.75", "notation": null}
nlprog_det-setting-0048550
A water bill is $20 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 6 thousand gallons? The program: ```python base = 20 rate = 4.2 used = 6 free = 2 bill = base + rate * max(0, used - free) # 36.8 print(f"{bill:.2f}") ``` Output — 36.80 The bill is $36.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "36.80", "printed": "36.80", "notation": null}
nlprog_det-setting-0048551
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0048552
On which weekday does October 28, 2019 fall? Coded up: ```python from datetime import date hearing = date(2019, 10, 28) # datetime.date(2019, 10, 28) print(hearing.strftime("%A")) ``` # run result: Monday October 28, 2019 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0048553
Kaito and Beatriz share $4,000 in the ratio 3:5. How much does Kaito get? Translated to Python: ```python total = 4000 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1500 print(share_a) ``` This prints 1500. Kaito's share is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0048554
What day of the week is December 25, 2005? Coded up: ```python from datetime import date hearing = date(2005, 12, 25) # datetime.date(2005, 12, 25) print(hearing.strftime("%A")) ``` Printed — Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0048555
Divide 28 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Coded up: ```python total = 28 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The interpreter prints: 3 each, 1 left over 3 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3 each, 1 left over", "printed": "3 each, 1 left over", "notation": null}
nlprog_det-setting-0048556
How many weekdays (Monday to Friday) fall after June 19, 2024 up to and including June 27, 2024? We can compute it in Python. ```python from datetime import date, timedelta start = date(2024, 6, 19) end = date(2024, 6, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0048557
<|start|><|user|> How many whole days and leftover hours are in 129 hours?<|eot|> <|assistant|> ```python hours = 129 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run it and it prints: 5 days and 9 hours That is 5 days and 9 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 129 hours?" }, { "role": "assistant", "content": "```python\nhours = 129\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRun it and it prints: 5 days and 9 hours\n\nThat is 5 days and 9 ho...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5 days and 9 hours", "printed": "5 days and 9 hours", "notation": null}
nlprog_det-setting-0048558
What average speed covers 330 miles in 1 hours? As a program: ```python distance = 330 hours = 1 speed = distance / hours # 330.0 print(round(speed)) ``` Out — 330 The average speed is 330 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0048559
<|start|><|user|> What commission does Nikhil make on $14,042 in sales at 5%?<|eot|> <|assistant|> ```python sales = 14042 rate = 5 / 100 # 0.05 commission = sales * rate # 702.1 print(f"{commission:.2f}") ``` Run result: 702.10 The commission is $702.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Nikhil make on $14,042 in sales at 5%?" }, { "role": "assistant", "content": "```python\nsales = 14042\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 702.1\nprint(f\"{commission:.2f}\")\n```\nRun result: 702.10\n\nThe commission is $702.1...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "702.10", "printed": "702.10", "notation": null}
nlprog_det-setting-0048560
<|start|><|user|> The building opened in 2018. How many years had passed by 2049?<|eot|> <|assistant|> ```python start_year = 2018 end_year = 2049 print(end_year - start_year) ``` The run gives: 31 That is 31 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2018. How many years had passed by 2049?" }, { "role": "assistant", "content": "```python\nstart_year = 2018\nend_year = 2049\nprint(end_year - start_year)\n```\nThe run gives: 31\n\nThat is 31 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0048561
Prorate $1,800 of monthly rent for 16 days of a 31-day month. As Python: ```python rent = 1800 days_in_month = 31 days_occupied = 16 prorated = rent * days_occupied / days_in_month # 929.0322580645161 print(f"{prorated:.2f}") ``` Output — 929.03 The prorated rent is $929.03.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "929.03", "printed": "929.03", "notation": null}
nlprog_det-setting-0048562
A trial runs from March 25, 2026 to April 10, 2026, counting both days. How many calendar days is that? A few lines of Python do it: ```python from datetime import date first = date(2026, 3, 25) # datetime.date(2026, 3, 25) last = date(2026, 4, 10) # datetime.date(2026, 4, 10) days = (last - first).days + 1 # 17 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0048563
<|start|><|user|> How much sales tax is charged on a $586.04 purchase at 6%?<|eot|> <|assistant|> ```python price = 586.04 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 35.1624 print(f"{tax:.2f}") ``` (Printed: 35.16) $35.16 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $586.04 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 586.04\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 35.1624\nprint(f\"{tax:.2f}\")\n```\n(Printed: 35.16)\n\n$35.16 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "35.16", "printed": "35.16", "notation": null}
nlprog_det-setting-0048564
Someone works 30 hours at $19.35 per hour. What are the earnings? Let the code do the arithmetic: ```python rate = 19.35 hours = 30 earnings = rate * hours # 580.5 print(f"{earnings:.2f}") ``` It outputs 580.50. That earns $580.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "580.50", "printed": "580.50", "notation": null}
nlprog_det-setting-0048565
A 33 lb package ships at $10 base plus $1.50/lb. What is the charge? One way, in code: ```python base = 10 per_pound = 1.5 weight = 33 cost = base + per_pound * weight # 59.5 print(f"{cost:.2f}") ``` The run gives: 59.50 The charge is $59.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "59.50", "printed": "59.50", "notation": null}
nlprog_det-setting-0048566
One can of paint covers 400 square feet. How many cans are needed for 1292 square feet of wall? We can compute it in Python. ```python import math area = 1292 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) ``` Out = 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0048567
The landlord deducts $150 and $75 from a $2,500 deposit. What is returned to the tenant? As a program: ```python deposit = 2500 deductions = [150, 75] refund = deposit - sum(deductions) # 2275 print(refund) ``` (Output: 2275) $2,275 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2275", "printed": "2275", "notation": null}
nlprog_det-setting-0048568
<|start|><|user|> With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> Profit is 28.6% of revenue.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "Profit is 28.6% of revenue." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0048569
<|start|><|user|> To read 260 pages in 5 days, how many pages per day are needed?<|eot|> <|assistant|> 52 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 260 pages in 5 days, how many pages per day are needed?" }, { "role": "assistant", "content": "52 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0048570
<|start|><|system|> Functions: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "convert_units", "description": "Convert a quantity betwee...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, {\"name\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
316
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0048571
<|start|><|user|> The bridge was finished in 2008. How many years had passed by 2017?<|eot|> <|assistant|> ```python start_year = 2008 end_year = 2017 print(end_year - start_year) ``` Console: 9 9 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2008. How many years had passed by 2017?" }, { "role": "assistant", "content": "```python\nstart_year = 2008\nend_year = 2017\nprint(end_year - start_year)\n```\nConsole:\n9\n\n9 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0048572
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Starting with 814 ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"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
[]
[]
213
{"gold": "534", "printed": "534", "notation": null}
nlprog_det-setting-0048573
Pack A has 12 items for $10.51. Pack B has 20 items for $10.73. Which has the lower price per item? Here is a short program for it. ```python pack_a = 10.51 / 12 pack_b = 10.73 / 20 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` The run gives B, as expected. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0048574
Prorate $2,400 of monthly rent for 22 days of a 31-day month. Python does the arithmetic: ```python rent = 2400 days_in_month = 31 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 1703.225806451613 print(f"{prorated:.2f}") ``` It prints 1703.23. The prorated rent is $1,703.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1703.23", "printed": "1703.23", "notation": null}
nlprog_det-setting-0048575
How many of 58 members form a majority (more than half)? In code: members = 58 majority = members // 2 + 1 # 30 print(majority) The run gives: 30 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0048577
<|start|><|system|> You can call tools. Available tools: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A $2,000 security dep...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "1745", "printed": "1745", "notation": null}
nlprog_det-setting-0048578
<|start|><|user|> Count 30 days forward from May 16, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 5, 16) # datetime.date(2020, 5, 16) end = start + timedelta(days=30) # datetime.date(2020, 6, 15) print(end.isoformat()) ``` (Execution result: 2020-06-1...
chat
[ { "role": "user", "content": "Count 30 days forward from May 16, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 5, 16) # datetime.date(2020, 5, 16)\nend = start + timedelta(days=30) # datetime.date(2020, 6, 15...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2020-06-15", "printed": "2020-06-15", "notation": null}
nlprog_det-setting-0048579
To read 800 pages in 20 days, how many pages per day are needed? Let the code do the arithmetic: ```python pages = 800 days = 20 per_day = pages // days # 40 print(per_day) ``` Running it prints: 40 That is 40 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0048580
<|start|><|user|> A car travels 548 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 548 hours = 0.5 speed = distance / hours # 1096.0 print(round(speed)) ``` (Output: 1096) The average speed is 1096 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 548 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 548\nhours = 0.5\nspeed = distance / hours # 1096.0\nprint(round(speed))\n```\n(Output: 1096)\n\nThe average speed is 109...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1096", "printed": "1096", "notation": null}
nlprog_det-setting-0048581
<|start|><|user|> Prorate $1,800 of monthly rent for 24 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1440.0 print(f"{prorated:.2f}") ``` The program outputs 1440.00. The tenant owes $1,440.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 24 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1440.0\nprint(f\"{prorated:.2f}\")\n```\nThe progr...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0048582
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 3 books that are 12 days late?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 12 books = 3 fine = per_day * days_late * books # 7.200000000000001 print(f"{fine:.2f}") ``` Execution result: 7.20 $7.20 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 12 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 12\nbooks = 3\nfine = per_day * days_late * books # 7.200000000000001\nprint(f\"{fine:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "7.20", "printed": "7.20", "notation": null}
nlprog_det-setting-0048583
<|start|><|user|> Jonas and Sara share $3,530 in the ratio 2:3. How much does Jonas get?<|eot|> <|assistant|> ```python total = 3530 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1412 print(share_a) ``` This prints 1412. Jonas's share is $1,412.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Jonas and Sara share $3,530 in the ratio 2:3. How much does Jonas get?" }, { "role": "assistant", "content": "```python\ntotal = 3530\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 1412\nprint(share_a)\n```\nThis prints 1412.\n\nJonas...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1412", "printed": "1412", "notation": null}
nlprog_det-setting-0048584
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Prorate $1,500 of monthly rent for 17 days of a 30-day month.<|eot|> <|assistant|> rent = 1500 days_in_month = 30 days_occupied = 17 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") Running it prints: 850.00 The te...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Prorate $1,500 of monthly rent for 17 days of a 30-day month." }, { "role": "assistant", "content": " rent = 1500\n days_in_month = 30\n days_occupied = 17\n prorated = rent * days_...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "850.00", "printed": "850.00", "notation": null}
nlprog_det-setting-0048585
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A garag...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0048586
<|start|><|user|> A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> import math members = 12 quorum = math.ceil(members * 3 / 5) # 8 print(quorum) Executing it gives 8. 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": " import math\n members = 12\n quorum = math.ceil(members * 3 / 5) # 8\n print(quorum)\nExecuting it gives 8.\n\n8 members are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0048587
Split $4,920 between Tobias and Reza in the ratio 3 to 5. What is Tobias's share? As a program: ```python total = 4920 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1845 print(share_a) ``` Interpreter output — 1845 Tobias's share is $1,845.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1845", "printed": "1845", "notation": null}
nlprog_det-setting-0048589
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") ``` (Output: 2500.00) Depreciation is $2,500.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 2000\nyears = 4\nper_year = (cost - salvage) / years # 2500.0\nprint(f\"{per_year:.2f}\")\n```\n(Output: ...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0048590
Express 393 hours in days and hours. Computation in Python: hours = 393 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Execution prints 16 days and 9 hours, as expected. 393 hours is 16 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "16 days and 9 hours", "printed": "16 days and 9 hours", "notation": null}
nlprog_det-setting-0048591
Idris earns a 4% commission on $96,525 of sales. What is the commission? Python version: ```python sales = 96525 rate = 4 / 100 # 0.04 commission = sales * rate # 3861.0 print(f"{commission:.2f}") ``` Console output: 3861.00 Idris earns $3,861.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "3861.00", "printed": "3861.00", "notation": null}
nlprog_det-setting-0048592
Divide 248 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? As a program: ```python total = 248 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # printed: 82 each, 2 left over 82 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "82 each, 2 left over", "printed": "82 each, 2 left over", "notation": null}
nlprog_det-setting-0048593
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> At an exchange rate of 1.35 EUR per USD, how many EUR is 6,450 USD?<|eot|> <|assistant|> ```python amount = 6450 rate = 1.35 converted = amount * rate # 8707.5 print(f"{converted:.2f}") ``` Execution result: 8707.50 That is 8,707.50 EU...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "At an exchange rate of 1.35 EUR per USD, how many EUR is 6,450 USD?" }, { "role": "assistant", "content": "```python\namount = 6450\nrate = 1.35\nconverted = amount * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "8707.50", "printed": "8707.50", "notation": null}
nlprog_det-setting-0048594
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> $1,000 is invested at 2% com...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0048595
10.5 hours of work at $150 an hour: what is the total charge? Let the code do the arithmetic: ```python hours = 10.5 rate = 150 bill = hours * rate # 1575.0 print(f"{bill:.2f}") ``` Output of the run — 1575.00 That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0048596
A quorum is 1/3 of the 31 members, rounded up. How many members make a quorum? Written as code: ```python import math members = 31 quorum = math.ceil(members * 1 / 3) # 11 print(quorum) ``` Running it prints 11. That is 11 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0048597
A shift runs from 8:31 AM to 12:28 PM. How long is it in minutes? Python code: ```python start = 8 * 60 + 31 # 511 end = 12 * 60 + 28 # 748 print(end - start) ``` Result — 237 It is 237 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "237", "printed": "237", "notation": null}
nlprog_det-setting-0048598
A customer buys 1 envelopes at $22 each, 1 toner kits at $24 each, 3 calendars at $9 each and pays with $100. How much change is due? Let's compute it with Python. ```python items = [(1, 22), (1, 24), (3, 9)] total = sum(q * p for q, p in items) # 73 paid = 100 change = paid - total # 27 print(change) ``` Program ou...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0048599
<|start|><|user|> A 225-mile drive at a steady 45 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` (stdout: 300) 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 225-mile drive at a steady 45 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 225\nspeed = 45\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\n(stdout: 300)\n\n300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0048600
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "description": ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0048601
How many whole days and leftover hours are in 250 hours? Script: ```python hours = 250 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out = 10 days and 10 hours That is 10 days and 10 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "10 days and 10 hours", "printed": "10 days and 10 hours", "notation": null}
nlprog_det-setting-0048602
What percentage of $10,000 is $2,400? Set it up in Python: ```python budget = 10000 spent = 2400 percent = spent / budget * 100 # 24.0 print(round(percent, 1)) ``` Output: 24.0 24.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0048603
<|start|><|user|> A 12-month warranty starts on October 6, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2026, 10, 6) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoform...
chat
[ { "role": "user", "content": "A 12-month warranty starts on October 6, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2026, 10, 6)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start....
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2027-10-06", "printed": "2027-10-06", "notation": null}
nlprog_det-setting-0048605
<|start|><|user|> A 19 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 19 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 266 print(tiles) Result = 266 266 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 19 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 19\n width = 14\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 266\n print(tiles)\nR...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "266", "printed": "266", "notation": null}
nlprog_det-setting-0048606
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 2 # 21600.0 pr...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "21600.00", "printed": "21600.00", "notation": null}
nlprog_det-setting-0048607
<|start|><|user|> Walls total 1312 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> Buy 5 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1312 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "Buy 5 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0048608
<|start|><|user|> A party has 21 days to respond to a motion served on October 11, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> It is due November 4, 2023.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on October 11, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "It is due November 4, 2023." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2023-11-04", "printed": "2023-11-04", "notation": null}
nlprog_det-setting-0048609
A count moves from 400 to 560. By what percent did it change (use a minus sign for a drop)? In Python: ```python old = 400 new = 560 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` Running it prints 40, as expected. The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0048610
<|start|><|user|> A storeroom has 1719 cables. The office uses 12 a day. How many are left after 19 days?<|eot|> <|assistant|> 1491 cables are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1719 cables. The office uses 12 a day. How many are left after 19 days?" }, { "role": "assistant", "content": "1491 cables are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1491", "printed": "1491", "notation": null}
nlprog_det-setting-0048611
Counting the first and last day, how many days are there from March 14, 2018 through April 8, 2018? The computation: ```python from datetime import date first = date(2018, 3, 14) # datetime.date(2018, 3, 14) last = date(2018, 4, 8) # datetime.date(2018, 4, 8) days = (last - first).days + 1 # 26 print(days) ``` It o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0048612
How many 1-foot square tiles cover a 6 ft by 13 ft floor (round up)? It takes 78 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0048613
A car travels 382 miles in 2 hours. What is its average speed in miles per hour? distance = 382 hours = 2 speed = distance / hours # 191.0 print(round(speed)) Executed, it shows: 191 It averages 191 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0048614
Walls total 851 sq ft and each can covers 350 sq ft. How many cans should be bought? Computing it: ```python import math area = 851 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Shell output: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0048615
Meals are $59 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights? Let the code do the arithmetic: ```python days = 4 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 656 print(total) ``` The run gives 656, as expected. That com...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "656", "printed": "656", "notation": null}
nlprog_det-setting-0048616
Scale 300 g of rice from 2 servings to 12 servings. In code: ```python grams = 300 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 1800 print(scaled) ``` The code prints 1800. Use 1800 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0048617
An office budget of $12,000 has expenses of $1,905, $2,478. How much of the budget is left? Python: ```python budget = 12000 expenses = [1905, 2478] left = budget - sum(expenses) # 7617 print(left) ``` Printed — 7617 $7,617 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "7617", "printed": "7617", "notation": null}
nlprog_det-setting-0048618
Each storage box holds 24 files. How many boxes are needed for 466 files? Let's compute it with Python. import math files = 466 per_box = 24 boxes = math.ceil(files / per_box) # 20 print(boxes) (Output: 20) 20 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "20", "printed": "20", "notation": null}