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-0060011
<|start|><|system|> Tools (call with JSON): {"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "convert_units", "descripti...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
349
{"gold": "322", "printed": "322", "notation": null}
nlprog_det-setting-0060013
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Fixed costs are $2,500. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 500 print(units...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0060014
<|start|><|user|> A measure needs at least 75% of 276 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 207 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 276 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 207 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0060015
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours? Programmatically: ```python rate = 22.4 hours = 53 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 436.79999999999995 pay = regular + overtime # 1332.8 print(f"{pay:.2f}") ``` (stdout: 1332.80) Yoko ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "1332.80", "printed": "1332.80", "notation": null}
nlprog_det-setting-0060016
<|start|><|system|> Tools you may use: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "lookup_statute", "description": "Look up the text ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0060017
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Someon...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "292.16", "printed": "292.16", "notation": null}
nlprog_det-setting-0060018
Divide 51 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? Translated to Python: ```python total = 51 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The printout reads 6 each, 3 left over. The answer: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "6 each, 3 left over", "printed": "6 each, 3 left over", "notation": null}
nlprog_det-setting-0060019
How many meters are in 59.9 kilometers? Python code: ```python km = 59.9 meters = km * 1000 # 59900.0 print(round(meters)) ``` Executing it gives: 59900 59,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "59900", "printed": "59900", "notation": null}
nlprog_det-setting-0060020
Scale 150 g of flour from 4 servings to 8 servings. Translated to Python: ```python grams = 150 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 300 print(scaled) ``` Shell output: 300 300 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0060021
Find the mean of these test scores: 72, 52, 67, 63, 57, 51 and 51. Here is a short program for it. ```python scores = [72, 52, 67, 63, 57, 51, 51] average = sum(scores) // len(scores) # 59 print(average) ``` Output: 59 The mean is 59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0060022
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 2 books that are 21 days late?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 21 books = 2 fine = per_day * days_late * books # 8.4 print(f"{fine:.2f}") ``` Output of the run: 8.40 $8.40 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 2 books that are 21 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 21\nbooks = 2\nfine = per_day * days_late * books # 8.4\nprint(f\"{fine:.2f}\")\n```\nOut...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "8.40", "printed": "8.40", "notation": null}
nlprog_det-setting-0060023
A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)? Let the code do the arithmetic: ```python old = 200 new = 180 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` The script prints: -10 It changed by -10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0060024
<|start|><|user|> 25 copies of a 23-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 23 copies = 25 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 28.75 print(f"{cost:.2f}") ``` stdout — 28.75 The job costs $28.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "25 copies of a 23-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 23\ncopies = 25\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 28.75\nprint(f\"{cost:.2f}\")\n```\nstdout — 28.7...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "28.75", "printed": "28.75", "notation": null}
nlprog_det-setting-0060025
Convert -15 °C to Fahrenheit. As a program: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` The code prints 5. It equals 5 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060026
Shipping costs $10 plus $2.00 per pound. What does a 5-pound parcel cost to ship? We write it as a program: base = 10 per_pound = 2.0 weight = 5 cost = base + per_pound * weight # 20.0 print(f"{cost:.2f}") Output = 20.00 Shipping costs $20.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0060027
What percentage of $10,000 is $400? Python, step by step: ```python budget = 10000 spent = 400 percent = spent / budget * 100 # 4.0 print(round(percent, 1)) ``` The program prints 4.0, as expected. 4.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "4.0", "printed": "4.0", "notation": null}
nlprog_det-setting-0060028
With $20,000 in costs and $25,000 in revenue, what percent of revenue is profit? Round to one decimal. We write it as a program: revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) The code prints 20.0. The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0060029
A 9-day trip pays $74 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? As a program: ```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
[]
[]
127
{"gold": "1786", "printed": "1786", "notation": null}
nlprog_det-setting-0060030
A lawyer's fee is 30% of a $90,000 recovery. How large is the fee? Python does the arithmetic: ```python recovery = 90000 rate = 30 / 100 # 0.3 fee = recovery * rate # 27000.0 print(f"{fee:.2f}") ``` The interpreter prints: 27000.00 The fee is $27,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0060031
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> How many minutes pass from 10:19 AM to 11:54 AM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 19 # 619 end = 11 * 60 + 54 # 714 print(end - start) ``` Console output — 95 It is 95 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "How many minutes pass from 10:19 AM to 11:54 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 19 # 619\nend = 11 * 60 + 54 # 714\nprint(e...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0060032
Pack A has 6 items for $5.06. Pack B has 24 items for $30.62. Which has the lower price per item? The Python version: ```python pack_a = 5.06 / 6 # 0.8433333333333333 pack_b = 30.62 / 24 # 1.2758333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` (Program output: A) A has the lower unit...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0060033
Reza earns a 10% commission on $75,362 of sales. What is the commission? A few lines of Python do it: ```python sales = 75362 rate = 10 / 100 # 0.1 commission = sales * rate # 7536.200000000001 print(f"{commission:.2f}") ``` Python prints 7536.20. Reza earns $7,536.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "7536.20", "printed": "7536.20", "notation": null}
nlprog_det-setting-0060034
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> From a $10,000 retainer, 5 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 5 rate = 275 left = retainer - hours * rate # 8625 print(left) ``` Run it and it prints: 8625 The remaining ba...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "From a $10,000 retainer, 5 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 5\nrate = 275\nleft = reta...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8625", "printed": "8625", "notation": null}
nlprog_det-setting-0060035
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> How many minutes pass from 10:11 AM to 4:22 PM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 11 # 611 end = 16 * 60 + 22 # 982 print(end - start) ``` (Out: 371) It is 371 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "How many minutes pass from 10:11 AM to 4:22 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 11 # 611\nend = 16 * 60 + 22 # 982\nprint(e...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "371", "printed": "371", "notation": null}
nlprog_det-setting-0060036
What is the total rent on a 12-month lease at $850 a month? In code: monthly_rent = 850 months = 12 total = monthly_rent * months # 10200 print(total) This prints: 10200 The rent over the term is $10,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0060037
<|start|><|system|> You have access to these functions: [{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "convert...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
346
{"gold": "11248.64", "printed": "11248.64", "notation": null}
nlprog_det-setting-0060039
What day of the week is February 20, 1995? ```python from datetime import date hearing = date(1995, 2, 20) # datetime.date(1995, 2, 20) print(hearing.strftime("%A")) ``` stdout — Monday It is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0060040
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> The weekly pay is $1,073.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "The weekly pay is $1,073.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "1073.00", "printed": "1073.00", "notation": null}
nlprog_det-setting-0060041
<|start|><|user|> A measure needs at least 67% of 166 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 166 needed = math.ceil(voters * 67 / 100) # 112 print(needed) ``` Running this gives: 112 112 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 166 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 166\nneeded = math.ceil(voters * 67 / 100) # 112\nprint(needed)\n```\nRunning this gives: 112\n\n112 votes are nee...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "112", "printed": "112", "notation": null}
nlprog_det-setting-0060042
<|start|><|user|> At $24.23 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 24.23 hours = 38 earnings = rate * hours # 920.74 print(f"{earnings:.2f}") ``` The run gives 920.74. That earns $920.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $24.23 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 24.23\nhours = 38\nearnings = rate * hours # 920.74\nprint(f\"{earnings:.2f}\")\n```\nThe run gives 920.74.\n\nThat earns $920.74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "920.74", "printed": "920.74", "notation": null}
nlprog_det-setting-0060043
Convert 74.6 km to meters. Program: ```python km = 74.6 meters = km * 1000 # 74600.0 print(round(meters)) ``` This prints 74600. That is 74,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "74600", "printed": "74600", "notation": null}
nlprog_det-setting-0060044
A hall has 22 rows of 15 seats, and 23 seats are empty. How many people are seated? ```python rows = 22 per_row = 15 empty = 23 seated = rows * per_row - empty # 307 print(seated) ``` The run gives: 307 307 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0060045
A meal costs $104.21. How much is a 10% tip? ```python bill = 104.21 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 10.421 print(f"{tip:.2f}") ``` The program prints: 10.42 The tip is $10.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "10.42", "printed": "10.42", "notation": null}
nlprog_det-setting-0060046
<|start|><|user|> Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 1125.0 print(f"{per_year:.2f}") ``` This prints: 1125.00 D...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 3000\nyears = 8\nper_year = (cost - salvage) / years # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1125.00", "printed": "1125.00", "notation": null}
nlprog_det-setting-0060047
<|start|><|user|> 2 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 141.6 print(f"{each:.2f}") ``` Result = 141.60 The share is $141.60 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $240 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 2\neach = bill * (1 + tip_rate) / people # 141.6\nprint(f\"{each:.2f}\")\n```\nResult = 14...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "141.60", "printed": "141.60", "notation": null}
nlprog_det-setting-0060049
What average speed covers 552 miles in 1.5 hours? Programmatically: ```python distance = 552 hours = 1.5 speed = distance / hours # 368.0 print(round(speed)) ``` The program prints 368, as expected. The average speed is 368 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "368", "printed": "368", "notation": null}
nlprog_det-setting-0060050
8 copies of a 10-page packet are printed at $0.12 per page. What is the cost? Python makes this quick: pages = 10 copies = 8 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 9.6 print(f"{cost:.2f}") Execution prints 9.60. The job costs $9.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0060051
<|start|><|user|> The statute was enacted in 2024. How many years had passed by 2036?<|eot|> <|assistant|> start_year = 2024 end_year = 2036 print(end_year - start_year) It prints 12. That is 12 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2024. How many years had passed by 2036?" }, { "role": "assistant", "content": " start_year = 2024\n end_year = 2036\n print(end_year - start_year)\nIt prints 12.\n\nThat is 12 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0060052
<|start|><|system|> You can call tools. Available tools: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "run_python", "description": "Runs a short Python snippet and returns what it ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"run_python\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
314
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0060053
A meeting lasted 1 hours and 46 minutes. How many minutes is that? Here is the program. ```python hours = 1 minutes = 46 total_minutes = hours * 60 + minutes # 106 print(total_minutes) ``` The run gives: 106 That is 106 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "106", "printed": "106", "notation": null}
nlprog_det-setting-0060054
<|start|><|system|> Available functions (JSON Schema): {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Fines run at $250 per...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0060055
Beatriz was born on December 4, 1967. How old is Beatriz on December 26, 2026? The age is 59 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0060056
How many meters are in 72.2 kilometers? The program: ```python km = 72.2 meters = km * 1000 print(round(meters)) ``` Running it prints 72200. That is 72,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "72200", "printed": "72200", "notation": null}
nlprog_det-setting-0060057
A customer buys 3 paper reams at $7 each, 5 toner kits at $6 each, 5 scissors at $8 each and pays with $100. How much change is due? The Python version: ```python items = [(3, 7), (5, 6), (5, 8)] total = sum(q * p for q, p in items) # 91 paid = 100 change = paid - total # 9 print(change) ``` Result — 9 $9 comes bac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0060058
<|start|><|user|> A pack of 20 envelopes sells for $680. What does each cost?<|eot|> <|assistant|> ```python total = 680 count = 20 per_item = total // count # 34 print(per_item) ``` This prints: 34 The unit price is $34.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 envelopes sells for $680. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 680\ncount = 20\nper_item = total // count # 34\nprint(per_item)\n```\nThis prints: 34\n\nThe unit price is $34." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0060059
What does $5,000 grow to in 4 years at 5% annual compounding? Python: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 6077.531250000001 print(f"{value:.2f}") ``` This prints 6077.53, as expected. It is worth $6,077.53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "6077.53", "printed": "6077.53", "notation": null}
nlprog_det-setting-0060060
<|start|><|system|> You can call tools. Available tools: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output....
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"sandbox_python\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "58.00", "printed": "58.00", "notation": null}
nlprog_det-setting-0060061
Convert 40 °C to Fahrenheit. That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0060062
Equipment costs $30,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year? Let the code do the arithmetic: ```python cost = 30000 salvage = 0 years = 10 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Execution result: 3000.00 Depreci...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0060063
One can of paint covers 350 square feet. How many cans are needed for 996 square feet of wall? The program: import math area = 996 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) That prints 3. 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0060064
<|start|><|user|> A 14 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 14 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 210 print(tiles) ``` Executing it gives 210. It takes 210 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 14 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 14\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 210\nprint(tiles)\n```\nExecuting...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0060065
<|start|><|user|> How many of 34 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 34 majority = members // 2 + 1 print(majority) ``` Output: 18 That is 18 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 34 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 34\nmajority = members // 2 + 1\nprint(majority)\n```\nOutput:\n18\n\nThat is 18 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0060066
Someone born February 21, 1970 turns how old by August 7, 2024? Give the age in whole years. The age is 54 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0060067
Fiona buys 7 boxes of 6 folders each and gives away 19 folders. How many folders are left? As a program: ```python boxes = 7 per_box = 6 given_away = 19 left = boxes * per_box - given_away # 23 print(left) ``` Interpreter output: 23 That leaves 23 folders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0060068
<|start|><|user|> How many minutes pass from 11:19 AM to 5:11 PM on the same day?<|eot|> <|assistant|> ```python start = 11 * 60 + 19 # 679 end = 17 * 60 + 11 # 1031 print(end - start) ``` Printed: 352 352 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 11:19 AM to 5:11 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 19 # 679\nend = 17 * 60 + 11 # 1031\nprint(end - start)\n```\nPrinted:\n352\n\n352 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0060070
From a $5,000 retainer, 12 hours at $150/hour have been drawn. What remains? Computing it: ```python retainer = 5000 hours = 12 rate = 150 left = retainer - hours * rate # 3200 print(left) ``` Python prints 3200. The remaining balance is $3,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3200", "printed": "3200", "notation": null}
nlprog_det-setting-0060071
What does $5,000 grow to in 2 years at 3% annual compounding? One way, in code: ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 5304.5 print(f"{value:.2f}") ``` (Printed result: 5304.50) The balance is $5,304.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0060072
A settlement of $524 is split equally among 2 parties. How much does each party receive? Code: ```python settlement = 524 parties = 2 share = settlement // parties # 262 print(share) ``` On running, it outputs: 262 Each share is $262.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0060073
How many days are there from June 15, 2019 to September 24, 2019? One way, in code: from datetime import date first = date(2019, 6, 15) # datetime.date(2019, 6, 15) second = date(2019, 9, 24) # datetime.date(2019, 9, 24) print((second - first).days) Run it and it prints 101. There are 101 days betwe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0060074
<|start|><|user|> Femi earns a 2% commission on $74,138 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 74138 rate = 2 / 100 # 0.02 commission = sales * rate # 1482.76 print(f"{commission:.2f}") ``` (Printed result: 1482.76) Femi earns $1,482.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Femi earns a 2% commission on $74,138 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 74138\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1482.76\nprint(f\"{commission:.2f}\")\n```\n(Printed result: 1482.76)\n\nFem...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1482.76", "printed": "1482.76", "notation": null}
nlprog_det-setting-0060075
What is 20 degrees Celsius in Fahrenheit? Let's compute it with Python. ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Printed: 68 It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0060077
With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal. The Python version: revenue = 8000 costs = 4000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 50.0 print(round(margin, 1)) That prints 50.0. The margin is 50.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0060078
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Meals are $59 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?<|eot|> <|assistant|> That comes to $1,931.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?" }, { "role": "assistant", "content": "That comes to $1,931." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "1931", "printed": "1931", "notation": null}
nlprog_det-setting-0060079
Parking is $3 per hour with a daily maximum of $15. What do 7 hours cost? Set it up in Python: ```python rate = 3 hours = 7 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` (stdout: 15) Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060080
Prorate $1,800 of monthly rent for 18 days of a 30-day month. In Python: ```python rent = 1800 days_in_month = 30 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 1080.0 print(f"{prorated:.2f}") ``` Interpreter output: 1080.00 The tenant owes $1,080.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0060081
Attendance was 12 out of 20. Express it as a percent. The Python version: ```python present = 12 total = 20 percent = present / total * 100 # 60.0 print(round(percent, 1)) ``` (Printed: 60.0) Attendance was 60.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0060082
A clerk's office charges $35 for each filing. Sami submits 3 filings. What is the total fee? Computation in Python: ```python fee = 35 filings = 3 total = fee * filings # 105 print(total) ``` Out = 105 The total fee is $105.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0060083
Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? The margin is 2.7%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0060084
<|start|><|user|> After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` Executed, it shows: 2000.00 Each installme...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 2000.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0060085
Rent of $1,800 goes up 3%. What is the new rent? ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` The interpreter prints: 1854.00 It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0060086
$1,000 is invested at 4% compounded yearly. What is it worth after 3 years? principal = 1000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 1124.864 print(f"{value:.2f}") The printout reads: 1124.86 The balance is $1,124.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0060087
Viktor has 7 documents to file, and each filing costs $50. How much are the filing fees in total? In code: ```python fee = 50 filings = 7 total = fee * filings print(total) ``` When run, it prints 350. The total fee is $350.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0060088
A measure needs at least 60% of 20 votes. How many votes is that, rounded up? Python, step by step: ```python import math voters = 20 needed = math.ceil(voters * 60 / 100) # 12 print(needed) ``` This prints: 12 12 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0060089
<|start|><|user|> How many units at $30 each (variable cost $26) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` Program output — 2250 2250 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $26) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 26\nunits = math.ceil(fixed / (price - variable)) # 2250\nprint(units)\n```\nProgram outp...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0060090
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A 192-page report must be reviewed in 4 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 192 days = 4 per_day = pages // days # 48 print(per_day) ``` Running it prints 48. 48 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A 192-page report must be reviewed in 4 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 192\ndays = 4\nper_day = pages // days # 48\nprint(p...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0060091
<|start|><|user|> At $17.52 an hour, what does 36 hours of work pay?<|eot|> <|assistant|> ```python rate = 17.52 hours = 36 earnings = rate * hours # 630.72 print(f"{earnings:.2f}") ``` Result: 630.72 The pay is $630.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $17.52 an hour, what does 36 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 17.52\nhours = 36\nearnings = rate * hours # 630.72\nprint(f\"{earnings:.2f}\")\n```\nResult:\n630.72\n\nThe pay is $630.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "630.72", "printed": "630.72", "notation": null}
nlprog_det-setting-0060092
<|start|><|user|> With 26 rows of 14 chairs and 16 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 26 per_row = 14 empty = 16 seated = rows * per_row - empty # 348 print(seated) ``` The printout reads: 348 348 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 26 rows of 14 chairs and 16 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 26\nper_row = 14\nempty = 16\nseated = rows * per_row - empty # 348\nprint(seated)\n```\nThe printout reads: 348\n\n348 seats are take...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "348", "printed": "348", "notation": null}
nlprog_det-setting-0060093
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) Output of the run: 24 $24 is ...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": " monthly = 25\n yearly = 276\n s...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0060094
A car travels 356 miles in 4 hours. What is its average speed in miles per hour? ```python distance = 356 hours = 4 speed = distance / hours # 89.0 print(round(speed)) ``` When run, it prints 89. It averages 89 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0060095
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Split $3,584 between Elena and Hana in the ratio 3 to 5. What is Elena's share?<|eot|> <|assistant|> ```python total = 3584 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1344 print(share_a) ``` Result = 1344 El...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Split $3,584 between Elena and Hana in the ratio 3 to 5. What is Elena's share?" }, { "role": "assistant", "content": "```python\ntotal = 3584\nparts_a = 3\nparts_b = 5\nshare...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1344", "printed": "1344", "notation": null}
nlprog_det-setting-0060096
How many weekdays (Monday to Friday) fall after April 21, 2022 up to and including May 25, 2022? As a program: ```python from datetime import date, timedelta start = date(2022, 4, 21) end = date(2022, 5, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0060097
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
325
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0060098
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "Co...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
320
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0060100
A $210 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? ```python bill = 210 tip_rate = 15 / 100 people = 5 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The interpreter prints: 48.30 The share is $48.30 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0060101
<|start|><|user|> Grace was born on December 14, 2002. How old is Grace on January 27, 2022?<|eot|> <|assistant|> ```python from datetime import date born = date(2002, 12, 14) # datetime.date(2002, 12, 14) on = date(2022, 1, 27) # datetime.date(2022, 1, 27) age = on.year - born.year - ((on.month, on.day) < (born.mont...
chat
[ { "role": "user", "content": "Grace was born on December 14, 2002. How old is Grace on January 27, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2002, 12, 14) # datetime.date(2002, 12, 14)\non = date(2022, 1, 27) # datetime.date(2022, 1, 27)\nag...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0060102
A garage charges $5 an hour, never more than $15 a day. How much for 11 hours? The program: rate = 5 hours = 11 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) The printout reads 15. Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060103
Each of Noor's walks burns 300 calories. How many calories over 6 walks? In Python: ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Printed result: 1800 1800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0060104
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 18 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 18 free = 0 bill = base + rate * max(0, used - free) # 106.8 print(f"{bill:.2f}") ``` The run gives 106.80. The bill i...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 18 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 18\nfree = 0\nbill = base + rate * max(0, used - free) # 106.8...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "106.80", "printed": "106.80", "notation": null}
nlprog_det-setting-0060105
What average speed covers 155 miles in 2.5 hours? ```python distance = 155 hours = 2.5 speed = distance / hours # 62.0 print(round(speed)) ``` Out = 62 It averages 62 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0060106
The building opened in 1997. How many years had passed by 2018? As Python: ```python start_year = 1997 end_year = 2018 print(end_year - start_year) ``` The script prints 21. That is 21 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0060107
A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? $1,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0060108
At a 6% tax rate, what is the tax on $557.28? As a program: ```python price = 557.28 tax_rate = 6 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Execution result: 33.44 $33.44 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "33.44", "printed": "33.44", "notation": null}
nlprog_det-setting-0060109
<|start|><|user|> Nadia lends $8,000 at 3% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` This prints 1200.00, as expected. It earns $1,200.00....
chat
[ { "role": "user", "content": "Nadia lends $8,000 at 3% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 3 / 100 # 0.03\nyears = 5\ninterest = principal * rate * years # 1200.0\nprint(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0060110
<|start|><|user|> What percentage of $8,000 is $7,600?<|eot|> <|assistant|> ```python budget = 8000 spent = 7600 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` The interpreter prints 95.0. 95.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $7,600?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 7600\npercent = spent / budget * 100 # 95.0\nprint(round(percent, 1))\n```\nThe interpreter prints 95.0.\n\n95.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0060111
<|start|><|system|> Tool definitions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"lookup_statute\", \"description\": \"Look up...
nlprog_det
setting
original
null
deterministic
[]
[]
375
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0060112
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A garage charge...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0060113
<|start|><|system|> Available functions (JSON Schema): [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "35 each, 5 left over", "printed": "35 each, 5 left over", "notation": null}
nlprog_det-setting-0060114
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year? Here is the program. ```python cost = 45000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 8400.0 print(f"{per_year:.2f}") ``` What it prints — 8400.00 Depreciation i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0060115
At 1% a month (simple), what interest builds on $12,000 over 3 months? Here's the code. ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` The script prints: 360.00 The interest is $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0060116
<|start|><|user|> What is the total rent on a 12-month lease at $2,100 a month?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 12 total = monthly_rent * months # 25200 print(total) ``` Run result = 25200 The rent over the term is $25,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 12-month lease at $2,100 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 12\ntotal = monthly_rent * months # 25200\nprint(total)\n```\nRun result = 25200\n\nThe rent over the term is $25,200." }...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "25200", "printed": "25200", "notation": null}