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-0053782
<|start|><|user|> Sales went from 800 to 1,120. What is the percent change?<|eot|> <|assistant|> It changed by 40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 800 to 1,120. What is the percent change?" }, { "role": "assistant", "content": "It changed by 40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0053783
At 2% a month (simple), what interest builds on $1,000 over 3 months? A short script: balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") (Execution result: 60.00) $60.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0053784
<|start|><|system|> You can call tools. Available tools: {"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "busin...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "152", "printed": "152", "notation": null}
nlprog_det-setting-0053785
After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? A short script: award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") Executed, it...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0053786
Starting with 690 rulers and using 31 per day, how many remain after 18 days? 132 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0053787
30 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? The Python version: ```python total = 30 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # output: 5 each, 0 left over The answer: 5 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "5 each, 0 left over", "printed": "5 each, 0 left over", "notation": null}
nlprog_det-setting-0053788
Convert -5 °C to Fahrenheit. Code: ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Interpreter output: 23 It equals 23 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0053789
Goran drove 377 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Computation in Python: ```python miles = 377 rate = 0.62 reimbursement = miles * rate # 233.74 print(f"{reimbursement:.2f}") ``` Printed = 233.74 The reimbursement is $233.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "233.74", "printed": "233.74", "notation": null}
nlprog_det-setting-0053791
Starting from $25,000, the team spends $3,070, $3,985, $2,561. What remains? Coded up: ```python budget = 25000 expenses = [3070, 3985, 2561] left = budget - sum(expenses) # 15384 print(left) ``` Executing it gives 15384, as expected. The remaining budget is $15,384.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "15384", "printed": "15384", "notation": null}
nlprog_det-setting-0053792
<|start|><|user|> What is a 15% tip on a $151.51 bill?<|eot|> <|assistant|> ```python bill = 151.51 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 22.726499999999998 print(f"{tip:.2f}") ``` Running it prints 22.73, as expected. The tip is $22.73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 15% tip on a $151.51 bill?" }, { "role": "assistant", "content": "```python\nbill = 151.51\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 22.726499999999998\nprint(f\"{tip:.2f}\")\n```\nRunning it prints 22.73, as expected.\n\nThe tip is $22.73." ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "22.73", "printed": "22.73", "notation": null}
nlprog_det-setting-0053793
51 files go into boxes of 20. How many boxes does that take? Translated to Python: ```python import math files = 51 per_box = 20 boxes = math.ceil(files / per_box) # 3 print(boxes) ``` The run gives 3. 3 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0053794
A 24-month warranty starts on February 8, 2026. On what date does it end? Let the code do the arithmetic: from datetime import date start = date(2026, 2, 8) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2028-02-08", "printed": "2028-02-08", "notation": null}
nlprog_det-setting-0053795
Bruna lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned? ```python principal = 5000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` Run it and it prints 200.00. It earns $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0053796
Fixed costs are $1,200. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even? The Python version: ```python import math fixed = 1200 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` Executed, it shows 120. Break-even is 120 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0053797
<|start|><|user|> Straight-line depreciation: cost $24,000, salvage $2,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 2200.0 print(f"{per_year:.2f}") ``` Output of the run — 2200.00 Depreciation is $2,200.00 per year.<|eot|...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $24,000, salvage $2,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 2000\nyears = 10\nper_year = (cost - salvage) / years # 2200.0\nprint(f\"{per_year:.2f}\")\n```\nOutput ...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2200.00", "printed": "2200.00", "notation": null}
nlprog_det-setting-0053799
At 40 miles per hour, how many minutes does a 160-mile trip take? Script: ```python distance = 160 speed = 40 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` (Out: 240) The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0053800
Water costs $20 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 17,000 gallons? Program: ```python base = 20 rate = 5.1 used = 17 free = 0 bill = base + rate * max(0, used - free) # 106.69999999999999 print(f"{bill:.2f}") ``` The run gives: 106.70 $106.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "106.70", "printed": "106.70", "notation": null}
nlprog_det-setting-0053801
Meals are $74 per day and lodging $140 per night. What is the allowance for 9 days and 8 nights? The computation: ```python days = 9 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1786 print(total) ``` # stdout: 1786 The allowance is $1,786.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1786", "printed": "1786", "notation": null}
nlprog_det-setting-0053802
Joelle drove 456 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Translated to Python: miles = 456 rate = 0.67 reimbursement = miles * rate # 305.52000000000004 print(f"{reimbursement:.2f}") The program prints 305.52, as expected. Joelle is owed $305.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "305.52", "printed": "305.52", "notation": null}
nlprog_det-setting-0053803
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after January 13, 2022 through January 18, 2022?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2022, 1, 13) end = date(2022, 1, 18) count = 0 f...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after January 13, 2022 through January 18, 2022?" }, { "role": "assistant", "content": " from datetime import date, tim...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0053804
<|start|><|user|> How many weekdays (Monday to Friday) fall after August 24, 2022 up to and including September 23, 2022?<|eot|> <|assistant|> 22 weekdays.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after August 24, 2022 up to and including September 23, 2022?" }, { "role": "assistant", "content": "22 weekdays." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0053805
<|start|><|user|> Scale 150 g of sugar from 6 servings to 3 servings.<|eot|> <|assistant|> 75 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of sugar from 6 servings to 3 servings." }, { "role": "assistant", "content": "75 grams of sugar are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0053806
Counting only Monday through Friday, how many business days are there after May 10, 2023 through June 11, 2023? 22 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0053807
Bruna lends $1,000 at 6% simple interest per year for 5 years. How much interest is earned? The program: ```python principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` The code prints: 300.00 It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0053808
<|start|><|user|> Shipping costs $5 plus $2.00 per pound. What does a 33-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.0 weight = 33 cost = base + per_pound * weight # 71.0 print(f"{cost:.2f}") ``` Run it and it prints: 71.00 The charge is $71.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.00 per pound. What does a 33-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.0\nweight = 33\ncost = base + per_pound * weight # 71.0\nprint(f\"{cost:.2f}\")\n```\nRun it and it prints: 7...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "71.00", "printed": "71.00", "notation": null}
nlprog_det-setting-0053810
Convert 78.6 km to meters. A Python solution: km = 78.6 meters = km * 1000 # 78600.0 print(round(meters)) The run gives: 78600 78,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "78600", "printed": "78600", "notation": null}
nlprog_det-setting-0053812
<|start|><|user|> Meals are $74 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights?<|eot|> <|assistant|> ```python days = 3 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 502 print(total) ``` (Console output: 502) The allowanc...
chat
[ { "role": "user", "content": "Meals are $74 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights?" }, { "role": "assistant", "content": "```python\ndays = 3\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "502", "printed": "502", "notation": null}
nlprog_det-setting-0053813
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 800 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 800 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0053814
How many units at $25 each (variable cost $20) cover $2,500 of fixed costs? ```python import math fixed = 2500 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` Out: 500 500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0053815
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "5.84", "printed": "5.84", "notation": null}
nlprog_det-setting-0053816
Someone born April 20, 2004 turns how old by December 2, 2024? Give the age in whole years. We write it as a program: from datetime import date born = date(2004, 4, 20) # datetime.date(2004, 4, 20) on = date(2024, 12, 2) # datetime.date(2024, 12, 2) age = on.year - born.year - ((on.month, on.day) < (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0053817
<|start|><|system|> Tools you may use: [{"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": "search_cases", "description": "Search ...
chat
[ { "role": "system", "content": "Tools you may use:\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\": [\"title\", \"sec...
nlprog_det
setting
original
null
deterministic
[]
[]
381
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0053819
A client paid a $10,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left? Python version: retainer = 10000 hours = 6 rate = 250 left = retainer - hours * rate # 8500 print(left) The script prints 8500, as expected. $8,500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "8500", "printed": "8500", "notation": null}
nlprog_det-setting-0053820
<|start|><|system|> You can call tools. Available tools: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "calculator", "description": "Executes a Python program and returns its output.",...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
272
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0053821
<|start|><|user|> A trial runs from August 21, 2020 to August 28, 2020, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 8, 21) # datetime.date(2020, 8, 21) last = date(2020, 8, 28) # datetime.date(2020, 8, 28) days = (last - first).days +...
chat
[ { "role": "user", "content": "A trial runs from August 21, 2020 to August 28, 2020, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 8, 21) # datetime.date(2020, 8, 21)\nlast = date(2020, 8, 28) ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0053822
<|start|><|user|> A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) Running it prints 18, as expected. $18 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": " monthly = 19\n yearly = 210\n savings = monthly * 12 - yearly # 18\n print(savings)\nRunning it prints 18, a...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053823
After an initial $0, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? Here is a short program for it. ```python grant = 60000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 20000.0 print(f"{each:.2f}") ``` Run output: 20000.00 Each installment is $20,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "20000.00", "printed": "20000.00", "notation": null}
nlprog_det-setting-0053825
<|start|><|user|> A 36 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 0.75 weight = 36 cost = base + per_pound * weight # 39.0 print(f"{cost:.2f}") ``` Run result: 39.00 Shipping costs $39.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 36 lb package ships at $12 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 0.75\nweight = 36\ncost = base + per_pound * weight # 39.0\nprint(f\"{cost:.2f}\")\n```\nRun result: 39.00\n\nShipping cost...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0053826
Femi's scores were 57, 71, 57, 87, 100, 87 and 59. What is the average score? Python: ```python scores = [57, 71, 57, 87, 100, 87, 59] average = sum(scores) // len(scores) # 74 print(average) ``` Shell output: 74 The mean is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0053827
A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 23-page copy cost? As Python: pages = 23 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 26.5 print(f"{cost:.2f}") stdout = 26.50 The total is $26.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "26.50", "printed": "26.50", "notation": null}
nlprog_det-setting-0053828
9 boxes hold 24 clipboards each. After 17 are handed out, how many are left? One way, in code: ```python boxes = 9 per_box = 24 given_away = 17 left = boxes * per_box - given_away # 199 print(left) ``` # console output: 199 That leaves 199 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "199", "printed": "199", "notation": null}
nlprog_det-setting-0053829
<|start|><|user|> Parking is $2 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|> <|assistant|> rate = 2 hours = 1 daily_max = 24 cost = min(rate * hours, daily_max) # 2 print(cost) The code prints 2. The charge is $2.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $24. What do 1 hours cost?" }, { "role": "assistant", "content": " rate = 2\n hours = 1\n daily_max = 24\n cost = min(rate * hours, daily_max) # 2\n print(cost)\nThe code prints 2.\n\nThe charge is $2." ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0053830
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? One way, in code: ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` Execution prints 25, as expected. $25 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053831
How many units at $20 each (variable cost $16) cover $9,000 of fixed costs? Python code: ```python import math fixed = 9000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` What it prints — 2250 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0053832
Prorate $2,400 of monthly rent for 8 days of a 30-day month. Let the code do the arithmetic: ```python rent = 2400 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 640.0 print(f"{prorated:.2f}") ``` (Printed: 640.00) The tenant owes $640.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "640.00", "printed": "640.00", "notation": null}
nlprog_det-setting-0053833
Sara buys 6 boxes of 12 ink cartridges each and gives away 19 ink cartridges. How many ink cartridges are left? The program: ```python boxes = 6 per_box = 12 given_away = 19 left = boxes * per_box - given_away # 53 print(left) ``` Running this gives: 53 That leaves 53 ink cartridges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0053834
<|start|><|user|> Scale 150 g of flour from 8 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 150 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 225 print(scaled) ``` Output: 225 225 grams of flour are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of flour from 8 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nOutput:\n225\n\n225 grams of flour are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0053835
How many of 70 votes make 60% (round up)? Written as code: ```python import math voters = 70 needed = math.ceil(voters * 60 / 100) # 42 print(needed) ``` When run, it prints 42. 42 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0053836
Count 21 days forward from October 21, 2027. What date is that? The Python version: from datetime import date, timedelta start = date(2027, 10, 21) # datetime.date(2027, 10, 21) end = start + timedelta(days=21) # datetime.date(2027, 11, 11) print(end.isoformat()) Out: 2027-11-11 It ends on November ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2027-11-11", "printed": "2027-11-11", "notation": null}
nlprog_det-setting-0053837
A 60-day notice period begins on June 18, 2024. On what date does it end? As a program: ```python from datetime import date, timedelta start = date(2024, 6, 18) # datetime.date(2024, 6, 18) end = start + timedelta(days=60) # datetime.date(2024, 8, 17) print(end.isoformat()) ``` Python prints: 2024-08-17 The period ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-08-17", "printed": "2024-08-17", "notation": null}
nlprog_det-setting-0053838
How many days are there from July 5, 2021 to July 7, 2022? Computation in Python: ```python from datetime import date first = date(2021, 7, 5) # datetime.date(2021, 7, 5) second = date(2022, 7, 7) # datetime.date(2022, 7, 7) print((second - first).days) ``` Program output — 367 There are 367 days between the two da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "367", "printed": "367", "notation": null}
nlprog_det-setting-0053839
Starting from $25,000, the team spends $2,920, $1,140. What remains? Let's compute it with Python. ```python budget = 25000 expenses = [2920, 1140] left = budget - sum(expenses) # 20940 print(left) ``` Run output — 20940 The remaining budget is $20,940.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "20940", "printed": "20940", "notation": null}
nlprog_det-setting-0053840
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A 7 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 7 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 16 print(tiles) ``` Executed, it shows: 16 It ...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A 7 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 7\nwidth = 9\ntile = 2\ntiles = mat...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0053841
<|start|><|system|> You may call the tools below. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "Run Python code in a sandbox; t...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"sandbox_py...
nlprog_det
setting
original
null
deterministic
[]
[]
324
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0053842
On which weekday does November 2, 1995 fall? Here is the program. from datetime import date hearing = date(1995, 11, 2) # datetime.date(1995, 11, 2) print(hearing.strftime("%A")) Running it prints Thursday, as expected. November 2, 1995 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0053843
An office budget of $12,000 has expenses of $1,901, $1,699, $3,720, $3,040. How much of the budget is left? A Python solution: ```python budget = 12000 expenses = [1901, 1699, 3720, 3040] left = budget - sum(expenses) print(left) ``` It prints 1640. The remaining budget is $1,640.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1640", "printed": "1640", "notation": null}
nlprog_det-setting-0053844
One can of paint covers 400 square feet. How many cans are needed for 414 square feet of wall? Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0053845
<|start|><|user|> Split $6,600 between Rafael and Vera in the ratio 3 to 5. What is Rafael's share?<|eot|> <|assistant|> Rafael gets $2,475.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $6,600 between Rafael and Vera in the ratio 3 to 5. What is Rafael's share?" }, { "role": "assistant", "content": "Rafael gets $2,475." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2475", "printed": "2475", "notation": null}
nlprog_det-setting-0053846
How many whole days and leftover hours are in 316 hours? That is 13 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "13 days and 4 hours", "printed": "13 days and 4 hours", "notation": null}
nlprog_det-setting-0053847
A seminar starts at 11:10 AM and lasts 25 minutes. When does it end? Script: ```python start = 11 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints: 11:35 AM The seminar finishes at 11:35 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "11:35 AM", "printed": "11:35 AM", "notation": null}
nlprog_det-setting-0053848
<|start|><|user|> Shipping costs $5 plus $1.50 per pound. What does a 24-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.5 weight = 24 cost = base + per_pound * weight # 41.0 print(f"{cost:.2f}") ``` Out = 41.00 The charge is $41.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $1.50 per pound. What does a 24-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.5\nweight = 24\ncost = base + per_pound * weight # 41.0\nprint(f\"{cost:.2f}\")\n```\nOut = 41.00\n\nThe char...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "41.00", "printed": "41.00", "notation": null}
nlprog_det-setting-0053849
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $20 and costs $15 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 $20 and costs $15 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-0053850
How many of 79 votes make 60% (round up)? We write it as a program: ```python import math voters = 79 needed = math.ceil(voters * 60 / 100) # 48 print(needed) ``` When run, it prints 48, as expected. 48 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0053851
How much sales tax is charged on a $869.30 purchase at 7%? Here is the program. ```python price = 869.3 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 60.851 print(f"{tax:.2f}") ``` Shell output: 60.85 $60.85 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "60.85", "printed": "60.85", "notation": null}
nlprog_det-setting-0053852
<|start|><|user|> Shipping costs $12 plus $1.50 per pound. What does a 19-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $40.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.50 per pound. What does a 19-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $40.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0053853
A 12 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? We can compute it in Python. ```python import math length = 12 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 84 print(tiles) ``` # program output: 84 It takes 84 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0053854
A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share? The Python version: bill = 180 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 42.48 print(f"{each:.2f}") # run result: 42.48 The share is $42.48 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "42.48", "printed": "42.48", "notation": null}
nlprog_det-setting-0053855
<|start|><|user|> Which is cheaper per unit: 10 for $12.71 (A) or 20 for $7.71 (B)?<|eot|> <|assistant|> ```python pack_a = 12.71 / 10 # 1.2710000000000001 pack_b = 7.71 / 20 # 0.3855 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` stdout: B B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $12.71 (A) or 20 for $7.71 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 12.71 / 10 # 1.2710000000000001\npack_b = 7.71 / 20 # 0.3855\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nst...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0053856
A clerk's office charges $90 for each filing. Vera submits 18 filings. What is the total fee? Coded up: ```python fee = 90 filings = 18 total = fee * filings # 1620 print(total) ``` Shell output: 1620 $1,620 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1620", "printed": "1620", "notation": null}
nlprog_det-setting-0053857
<|start|><|user|> Prorate $2,400 of monthly rent for 6 days of a 30-day month.<|eot|> <|assistant|> rent = 2400 days_in_month = 30 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 480.0 print(f"{prorated:.2f}") Output: 480.00 The tenant owes $480.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 6 days of a 30-day month." }, { "role": "assistant", "content": " rent = 2400\n days_in_month = 30\n days_occupied = 6\n prorated = rent * days_occupied / days_in_month # 480.0\n print(f\"{prorated:.2f}\")\nOutput: ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0053858
Convert 2,220 EUR to USD at 1 EUR = 0.74 USD. Here is a short program for it. ```python amount = 2220 rate = 0.74 converted = amount * rate # 1642.8 print(f"{converted:.2f}") ``` Out: 1642.80 That is 1,642.80 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1642.80", "printed": "1642.80", "notation": null}
nlprog_det-setting-0053859
<|start|><|user|> How many whole days and leftover hours are in 235 hours?<|eot|> <|assistant|> hours = 235 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Executing it gives 9 days and 19 hours, as expected. That is 9 days and 19 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 235 hours?" }, { "role": "assistant", "content": " hours = 235\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nExecuting it gives 9 days and 19 hours, as expected.\n\nThat is 9 days ...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "9 days and 19 hours", "printed": "9 days and 19 hours", "notation": null}
nlprog_det-setting-0053860
$10,000 is invested at 5% compounded yearly. What is it worth after 4 years? ```python principal = 10000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 12155.062500000002 print(f"{value:.2f}") ``` Out: 12155.06 The balance is $12,155.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0053861
Leon buys 10 boxes of 10 headsets each and gives away 13 headsets. How many headsets are left? As Python: ```python boxes = 10 per_box = 10 given_away = 13 left = boxes * per_box - given_away # 87 print(left) ``` (stdout: 87) That leaves 87 headsets.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0053862
4 friends split a $180 bill plus a 20% tip evenly. How much does each pay? Coded up: ```python bill = 180 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 54.0 print(f"{each:.2f}") ``` The program prints 54.00, as expected. Each person pays $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0053863
A garage charges $3 an hour, never more than $24 a day. How much for 6 hours? A few lines of Python do it: ```python rate = 3 hours = 6 daily_max = 24 cost = min(rate * hours, daily_max) # 18 print(cost) ``` It prints 18. Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053865
<|start|><|user|> A shift runs from 8:05 AM to 1:52 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 5 end = 13 * 60 + 52 print(end - start) ``` Console: 347 347 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:05 AM to 1:52 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 5\nend = 13 * 60 + 52\nprint(end - start)\n```\nConsole:\n347\n\n347 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "347", "printed": "347", "notation": null}
nlprog_det-setting-0053866
<|start|><|user|> A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 46-page copy cost?<|eot|> <|assistant|> The copy costs $19.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 46-page copy cost?" }, { "role": "assistant", "content": "The copy costs $19.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "19.60", "printed": "19.60", "notation": null}
nlprog_det-setting-0053867
<|start|><|user|> Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 72.0 payment = (principal + interest) / months # 106...
chat
[ { "role": "user", "content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "106.00", "printed": "106.00", "notation": null}
nlprog_det-setting-0053868
<|start|><|user|> What commission does Grace make on $59,968 in sales at 4%?<|eot|> <|assistant|> The commission is $2,398.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Grace make on $59,968 in sales at 4%?" }, { "role": "assistant", "content": "The commission is $2,398.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2398.72", "printed": "2398.72", "notation": null}
nlprog_det-setting-0053869
Fines run at $250 per day up to a maximum of $2,500. How much after 8 days? Computing it: ```python per_day = 250 days = 8 cap = 2500 fine = min(per_day * days, cap) # 2000 print(fine) ``` It outputs: 2000 The fine is $2,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0053870
<|start|><|user|> Under a 35% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` Console: 14000.00 The fee is $14,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 14000.0\nprint(f\"{fee:.2f}\")\n```\nConsole:\n14000.00\n\nThe fee is $14,00...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0053871
Which is cheaper per unit: 10 for $10.92 (A) or 20 for $28.93 (B)? Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0053872
<|start|><|user|> Each of Quinn's walks burns 150 calories. How many calories over 7 walks?<|eot|> <|assistant|> ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` That prints 1050. 1050 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Quinn's walks burns 150 calories. How many calories over 7 walks?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 7\ntotal = per_session * sessions # 1050\nprint(total)\n```\nThat prints 1050.\n\n1050 calories in total." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0053873
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 82 copies of a 40-page handout?<|eot|> <|assistant|> ```python pages = 40 copies = 82 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 164.0 print(f"{cost:.2f}") ``` When run, it prints 164.00. Printing costs $164.00.<|eot|> <|end...
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 82 copies of a 40-page handout?" }, { "role": "assistant", "content": "```python\npages = 40\ncopies = 82\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 164.0\nprint(f\"{cost:.2f}\")\n```\nWh...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "164.00", "printed": "164.00", "notation": null}
nlprog_det-setting-0053875
Papers were served by mail on June 5, 2018. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Written as code: ```python from datetime import date, timedelta served = date(2018, 6, 5) response_days = 30 mail_days = 3 due = served + timedelta(days=response_days + mail_days) p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2018-07-08", "printed": "2018-07-08", "notation": null}
nlprog_det-setting-0053876
Walls total 950 sq ft and each can covers 250 sq ft. How many cans should be bought? In code: ```python import math area = 950 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` # run result: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0053877
<|start|><|user|> Copies cost $15 plus $0.50 for each page beyond 0. How much for 40 pages?<|eot|> <|assistant|> pages = 40 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 35.0 print(f"{cost:.2f}") Shell output: 35.00 The total is $35.00.<|eot|> <|...
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 0. How much for 40 pages?" }, { "role": "assistant", "content": " pages = 40\n base = 15\n per_page = 0.5\n free_pages = 0\n cost = base + max(0, pages - free_pages) * per_page # 35.0\n print(f\"{cos...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "35.00", "printed": "35.00", "notation": null}
nlprog_det-setting-0053878
The building opened in 2014. How many years had passed by 2034? 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0053879
What day of the week is June 3, 2004? A Python solution: ```python from datetime import date hearing = date(2004, 6, 3) # datetime.date(2004, 6, 3) print(hearing.strftime("%A")) ``` # stdout: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0053880
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Printing costs 5 cents a page....
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "412.50", "printed": "412.50", "notation": null}
nlprog_det-setting-0053881
How many meters are in 33.5 kilometers? Script: km = 33.5 meters = km * 1000 # 33500.0 print(round(meters)) Printed = 33500 33,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "33500", "printed": "33500", "notation": null}
nlprog_det-setting-0053882
<|start|><|user|> What is the total rent on a 24-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` Execution prints: 39360 In total, $39,360 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 24\ntotal = monthly_rent * months # 39360\nprint(total)\n```\nExecution prints: 39360\n\nIn total, $39,360 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0053883
Rent of $2,200 goes up 3%. What is the new rent? Let the code do the arithmetic: ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` It prints 2266.00, as expected. It rises to $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0053884
<|start|><|user|> A hall has 5 rows of 11 seats, and 0 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 5 per_row = 11 empty = 0 seated = rows * per_row - empty # 55 print(seated) ``` Run output — 55 55 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 5 rows of 11 seats, and 0 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 5\nper_row = 11\nempty = 0\nseated = rows * per_row - empty # 55\nprint(seated)\n```\nRun output — 55\n\n55 seats are taken." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0053885
A count moves from 800 to 880. By what percent did it change (use a minus sign for a drop)? ```python old = 800 new = 880 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` Execution prints 10. The change is 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0053886
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Shipping costs $5 plus $1.50 per pound. What does a 19-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.5 weight = 19 cost = base + per_pound * weight # 33.5 print(f"{cost:.2f}") ``` Output — 33.50 Shipping co...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Shipping costs $5 plus $1.50 per pound. What does a 19-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.5\nweight = 19\ncost ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0053887
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A car travels 387 miles in 3 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 387 hours = 3 speed = distance / hours # 129.0 print(round(speed)) stdout = 129 The average speed is 129 mph.<|eot|> <|end|...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A car travels 387 miles in 3 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 387\n hours = 3\n speed = distance / hours # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0053888
A penalty of $50 a day accrues, capped at $2,500. What is owed after 51 days? Translated to Python: ```python per_day = 50 days = 51 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Executing it gives: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0053889
A 8% increase is applied to $1,500 monthly rent. What is the new amount? ```python rent = 1500 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1620.0 print(f"{new_rent:.2f}") ``` The run gives 1620.00. It rises to $1,620.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1620.00", "printed": "1620.00", "notation": null}