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-0077420
Viktor and Omar share $4,465 in the ratio 2:3. How much does Viktor get? We can compute it in Python. total = 4465 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1786 print(share_a) stdout: 1786 Viktor gets $1,786.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1786", "printed": "1786", "notation": null}
nlprog_det-setting-0077422
<|start|><|user|> Which is cheaper per unit: 12 for $9.04 (A) or 18 for $12.93 (B)?<|eot|> <|assistant|> ```python pack_a = 9.04 / 12 # 0.7533333333333333 pack_b = 12.93 / 18 # 0.7183333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Executed, it shows B. Pack B is cheaper per item.<|eo...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $9.04 (A) or 18 for $12.93 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 9.04 / 12 # 0.7533333333333333\npack_b = 12.93 / 18 # 0.7183333333333333\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheap...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0077423
<|start|><|system|> Tools you may use: {"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> 256 files go ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0077424
<|start|><|user|> Starting with 1872 pens and using 33 per day, how many remain after 4 days?<|eot|> <|assistant|> stock = 1872 per_day = 33 days = 4 left = stock - per_day * days # 1740 print(left) (Execution result: 1740) 1740 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1872 pens and using 33 per day, how many remain after 4 days?" }, { "role": "assistant", "content": " stock = 1872\n per_day = 33\n days = 4\n left = stock - per_day * days # 1740\n print(left)\n(Execution result: 1740)\n\n1740 pens are...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1740", "printed": "1740", "notation": null}
nlprog_det-setting-0077425
Prorate $1,200 of monthly rent for 5 days of a 30-day month. A short script: ```python rent = 1200 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 200.0 print(f"{prorated:.2f}") ``` (Printed result: 200.00) The tenant owes $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0077426
<|start|><|system|> Be concise.<|eot|> <|user|> What is the total rent on a 18-month lease at $1,200 a month?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 18 total = monthly_rent * months # 21600 print(total) ``` When run, it prints: 21600 In total, $21,600 is paid.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "What is the total rent on a 18-month lease at $1,200 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 18\ntotal = monthly_rent * months # 21600\nprint(total)\n```\nW...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0077427
<|start|><|system|> You may call the tools below. {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "fetch_filing", "description": "Fetch an SE...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targe...
nlprog_det
setting
original
null
deterministic
[]
[]
381
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0077428
A hall has 6 rows of 18 seats, and 29 seats are empty. How many people are seated? Written as code: ```python rows = 6 per_row = 18 empty = 29 seated = rows * per_row - empty # 79 print(seated) ``` On running, it outputs: 79 79 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0077429
<|start|><|system|> You are a data assistant.<|eot|> <|user|> To read 182 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 182 days = 7 per_day = pages // days # 26 print(per_day) ``` Running it prints 26. 26 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "To read 182 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 182\ndays = 7\nper_day = pages // days # 26\nprint(per_day)\n```\nRun...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0077430
How many whole days and leftover hours are in 52 hours? Program: hours = 52 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Printed = 2 days and 4 hours 52 hours is 2 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "2 days and 4 hours", "printed": "2 days and 4 hours", "notation": null}
nlprog_det-setting-0077431
<|start|><|system|> Tools you may use: {"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Straight-line depreciation: cost...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0077432
<|start|><|user|> A 150-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 150 speed = 50 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` Executed, it shows: 180 The trip takes 180 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 150-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 150\nspeed = 50\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nExecuted, it shows: 180\n\nThe trip takes 180 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0077433
<|start|><|system|> Functions: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "python", ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "289", "printed": "289", "notation": null}
nlprog_det-setting-0077434
170 copies of a 39-page packet are printed at $0.10 per page. What is the cost? Code: ```python pages = 39 copies = 170 cost_per_page = 0.1 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` (Out: 663.00) Printing costs $663.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "663.00", "printed": "663.00", "notation": null}
nlprog_det-setting-0077435
Which is cheaper per unit: 8 for $10.58 (A) or 20 for $6.77 (B)? Python does the arithmetic: ```python pack_a = 10.58 / 8 # 1.3225 pack_b = 6.77 / 20 # 0.33849999999999997 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` This prints: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0077436
What day of the week is August 28, 2026? Set it up in Python: ```python from datetime import date hearing = date(2026, 8, 28) print(hearing.strftime("%A")) ``` Execution result — Friday August 28, 2026 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0077437
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A customer buys 4 hard drives at $18 each, 4 chairs at $22 each, 2 scissors at $25 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 18), (4, 22), (2, 25)] total = sum(q * p for q, p in items) # 210 paid = 250 chang...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A customer buys 4 hard drives at $18 each, 4 chairs at $22 each, 2 scissors at $25 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0077438
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 9,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 3.5 used = 9 free = 2 bill = base + rate * max(0, used - free) # 42.5 print(f"{bill:.2f}") ``` # stdout:...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 9,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 3.5\nused = 9\nfree...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0077439
Split $2,723 between Tariq and Jamal in the ratio 3 to 4. What is Tariq's share? Python makes this quick: total = 2723 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1167 print(share_a) (Out: 1167) Tariq's share is $1,167.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1167", "printed": "1167", "notation": null}
nlprog_det-setting-0077440
<|start|><|user|> To read 228 pages in 6 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 228 days = 6 per_day = pages // days # 38 print(per_day) ``` # execution result: 38 38 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 228 pages in 6 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 228\ndays = 6\nper_day = pages // days # 38\nprint(per_day)\n```\n# execution result: 38\n\n38 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0077441
<|start|><|system|> Available functions (JSON Schema): [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parame...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"lookup_statute\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "14 days and 1 hours", "printed": "14 days and 1 hours", "notation": null}
nlprog_det-setting-0077442
<|start|><|system|> Available functions (JSON Schema): {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
258
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0077443
A seminar starts at 12:40 PM and lasts 150 minutes. When does it end? Written as code: ```python start = 12 * 60 + 40 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Printed: 3:10 PM) It ends at 3:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "3:10 PM", "printed": "3:10 PM", "notation": null}
nlprog_det-setting-0077444
<|start|><|user|> Express 380 hours in days and hours.<|eot|> <|assistant|> ```python hours = 380 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # execution result: 15 days and 20 hours 380 hours is 15 days and 20 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 380 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 380\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# execution result: 15 days and 20 hours\n\n380 hours is 15 days and 20 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "15 days and 20 hours", "printed": "15 days and 20 hours", "notation": null}
nlprog_det-setting-0077445
<|start|><|user|> To read 960 pages in 20 days, how many pages per day are needed?<|eot|> <|assistant|> 48 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 960 pages in 20 days, how many pages per day are needed?" }, { "role": "assistant", "content": "48 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0077446
<|start|><|user|> A hearing is set for December 27, 2007. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2007, 12, 27) # datetime.date(2007, 12, 27) print(hearing.strftime("%A")) ``` Result — Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for December 27, 2007. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2007, 12, 27) # datetime.date(2007, 12, 27)\nprint(hearing.strftime(\"%A\"))\n```\nResult — Thursday\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0077447
Abel's scores were 77, 84 and 79. What is the average score? Programmatically: ```python scores = [77, 84, 79] average = sum(scores) // len(scores) # 80 print(average) ``` The script prints 80, as expected. The mean is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0077448
One can of paint covers 300 square feet. How many cans are needed for 1245 square feet of wall? We can compute it in Python. ```python import math area = 1245 coverage = 300 cans = math.ceil(area / coverage) # 5 print(cans) ``` The script prints: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0077449
How many of 120 votes make 75% (round up)? Script: ```python import math voters = 120 needed = math.ceil(voters * 75 / 100) # 90 print(needed) ``` Result: 90 At least 90 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0077450
<|start|><|user|> A penalty of $100 a day accrues, capped at $2,500. What is owed after 17 days?<|eot|> <|assistant|> ```python per_day = 100 days = 17 cap = 2500 fine = min(per_day * days, cap) # 1700 print(fine) ``` Printed result: 1700 The fine is $1,700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 17 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 17\ncap = 2500\nfine = min(per_day * days, cap) # 1700\nprint(fine)\n```\nPrinted result: 1700\n\nThe fine is $1,7...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1700", "printed": "1700", "notation": null}
nlprog_det-setting-0077451
<|start|><|user|> 238 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 238 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # out: 59 each, 2 left over 59 each, 2 left over...
chat
[ { "role": "user", "content": "238 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 238\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "59 each, 2 left over", "printed": "59 each, 2 left over", "notation": null}
nlprog_det-setting-0077452
<|start|><|system|> Tools you may use: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "define_word", "description": "Return...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
409
{"gold": "3:45 PM", "printed": "3:45 PM", "notation": null}
nlprog_det-setting-0077453
<|start|><|user|> A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 78 savings = monthly * 12 - yearly # 30 print(savings) ``` Result — 30 $30 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 78\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nResult — 30\n\n$30 is saved...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0077454
<|start|><|user|> A garage charges $3 an hour, never more than $15 a day. How much for 3 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 9 print(cost) ``` # program output: 9 The charge is $9.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $15 a day. How much for 3 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 3\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 9\nprint(cost)\n```\n# program output: 9\n\nThe charge is $9."...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0077455
A meal costs $169.56. How much is a 18% tip? In code: bill = 169.56 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 30.520799999999998 print(f"{tip:.2f}") Result = 30.52 Leave $30.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30.52", "printed": "30.52", "notation": null}
nlprog_det-setting-0077456
A 286-page report must be reviewed in 11 days. How many pages a day is that, evenly? The program: ```python pages = 286 days = 11 per_day = pages // days # 26 print(per_day) ``` The printout reads 26. That is 26 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0077457
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 11 rate = 275 left = retainer - hours * rate # 1975 print(left) ``` The interpreter prints: 1975 The remaining balance is $1,975.<|...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 11\nrate = 275\nleft = retainer - hours * rate # 1975\nprint(left)\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1975", "printed": "1975", "notation": null}
nlprog_det-setting-0077458
The landlord deducts $60 from a $800 deposit. What is returned to the tenant? Translated to Python: ```python deposit = 800 deductions = [60] refund = deposit - sum(deductions) # 740 print(refund) ``` Printed result — 740 $740 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "740", "printed": "740", "notation": null}
nlprog_det-setting-0077459
Starting with 931 binders and using 29 per day, how many remain after 16 days? ```python stock = 931 per_day = 29 days = 16 left = stock - per_day * days # 467 print(left) ``` Running it prints 467, as expected. 467 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "467", "printed": "467", "notation": null}
nlprog_det-setting-0077461
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Fines run at $25 per day up to a maximum of $1,000. How much after 50 days?<|eot|> <|assistant|> per_day = 25 days = 50 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) Result: 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Fines run at $25 per day up to a maximum of $1,000. How much after 50 days?" }, { "role": "assistant", "content": " per_day = 25\n days = 50\n cap = 1000\n fine = min(per_day *...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0077462
A count moves from 1,200 to 960. By what percent did it change (use a minus sign for a drop)? ```python old = 1200 new = 960 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` stdout = -20 The change is -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0077463
<|start|><|user|> A $1,000 security deposit has deductions of $200, $150 and $120. How much is refunded?<|eot|> <|assistant|> deposit = 1000 deductions = [200, 150, 120] refund = deposit - sum(deductions) # 530 print(refund) # result: 530 $530 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $200, $150 and $120. How much is refunded?" }, { "role": "assistant", "content": " deposit = 1000\n deductions = [200, 150, 120]\n refund = deposit - sum(deductions) # 530\n print(refund)\n# result: 530\n\n$53...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "530", "printed": "530", "notation": null}
nlprog_det-setting-0077464
A customer buys 2 envelopes at $17 each, 4 chairs at $29 each and pays with $200. How much change is due? In Python: ```python items = [(2, 17), (4, 29)] total = sum(q * p for q, p in items) # 150 paid = 200 change = paid - total # 50 print(change) ``` Executing it gives: 50 $50 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0077465
<|start|><|system|> Tools you may use: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A claim accrued on February ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "2025-02-14", "printed": "2025-02-14", "notation": null}
nlprog_det-setting-0077466
16 flash drives cost $8 apiece. With 10% tax added, what is the total? Program: ```python quantity = 16 unit_price = 8 subtotal = quantity * unit_price # 128 total = subtotal * (1 + 10 / 100) # 140.8 print(f"{total:.2f}") ``` Printed result — 140.80 The invoice total is $140.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "140.80", "printed": "140.80", "notation": null}
nlprog_det-setting-0077467
A clerk's office charges $350 for each filing. Lena submits 12 filings. What is the total fee? Python does the arithmetic: ```python fee = 350 filings = 12 total = fee * filings # 4200 print(total) ``` (stdout: 4200) The total fee is $4,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4200", "printed": "4200", "notation": null}
nlprog_det-setting-0077468
What does $10,000 grow to in 5 years at 3% annual compounding? Set it up in Python: ```python principal = 10000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 11592.740743 print(f"{value:.2f}") ``` The interpreter prints 11592.74. The balance is $11,592.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "11592.74", "printed": "11592.74", "notation": null}
nlprog_det-setting-0077469
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Filing fees are $25 per document. What do 10 filings cost?<|eot|> <|assistant|> fee = 25 filings = 10 total = fee * filings # 250 print(total) # printed result: 250 The filings cost $250 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Filing fees are $25 per document. What do 10 filings cost?" }, { "role": "assistant", "content": " fee = 25\n filings = 10\n total = fee * filings # 250\n print(total)\n# pr...
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0077471
How many whole days and leftover hours are in 238 hours? ```python hours = 238 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Result: 9 days and 22 hours) That is 9 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "9 days and 22 hours", "printed": "9 days and 22 hours", "notation": null}
nlprog_det-setting-0077472
<|start|><|system|> Tool definitions: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "python_exec", "description": "Run Python ...
chat
[ { "role": "system", "content": "Tool definitions:\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\", \"secti...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "28.32", "printed": "28.32", "notation": null}
nlprog_det-setting-0077473
Convert 67.2 km to meters. Here's the code. ```python km = 67.2 meters = km * 1000 # 67200.0 print(round(meters)) ``` This prints 67200, as expected. 67,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "67200", "printed": "67200", "notation": null}
nlprog_det-setting-0077474
<|start|><|user|> Of a $2,000 budget, $900 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 2000 spent = 900 percent = spent / budget * 100 # 45.0 print(round(percent, 1)) ``` Run result = 45.0 That is 45.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $2,000 budget, $900 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 900\npercent = spent / budget * 100 # 45.0\nprint(round(percent, 1))\n```\nRun result = 45.0\n\nThat is 45.0% of the budget." }...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "45.0", "printed": "45.0", "notation": null}
nlprog_det-setting-0077475
Monthly: $15. Annual: $132. What is saved per year by paying annually? Coded up: ```python monthly = 15 yearly = 132 savings = monthly * 12 - yearly # 48 print(savings) ``` It prints 48. The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0077476
5 walks at 200 calories each burn how many calories in total? Here's the code. ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Running it prints: 1000 That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0077477
From a $5,000 retainer, 9 hours at $250/hour have been drawn. What remains? In Python: ```python retainer = 5000 hours = 9 rate = 250 left = retainer - hours * rate # 2750 print(left) ``` Running it prints 2750, as expected. The remaining balance is $2,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2750", "printed": "2750", "notation": null}
nlprog_det-setting-0077478
A library charges $0.10 per book per day late. What is the fine for 4 books that are 14 days late? Here's the code. per_day = 0.1 days_late = 14 books = 4 fine = per_day * days_late * books # 5.6000000000000005 print(f"{fine:.2f}") When run, it prints 5.60, as expected. The fine is $5.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5.60", "printed": "5.60", "notation": null}
nlprog_det-setting-0077479
With 29 rows of 9 chairs and 5 empty chairs, how many chairs are taken? Python version: ```python rows = 29 per_row = 9 empty = 5 seated = rows * per_row - empty # 256 print(seated) ``` (Program output: 256) 256 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0077480
<|start|><|user|> 10.5 hours of work at $250 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 10.5 rate = 250 bill = hours * rate # 2625.0 print(f"{bill:.2f}") ``` # out: 2625.00 That comes to $2,625.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "10.5 hours of work at $250 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 10.5\nrate = 250\nbill = hours * rate # 2625.0\nprint(f\"{bill:.2f}\")\n```\n# out: 2625.00\n\nThat comes to $2,625.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0077481
<|start|><|user|> Equal monthly payments repay $1,200 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> The monthly payment is $108.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $1,200 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "The monthly payment is $108.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0077482
<|start|><|user|> How many 1-foot square tiles cover a 16 ft by 13 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 16 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 208 print(tiles) ``` Output of the run: 208 It takes 208 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 16 ft by 13 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 16\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 208\nprint(tiles)\n```\nOutput of the run: 20...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "208", "printed": "208", "notation": null}
nlprog_det-setting-0077483
<|start|><|user|> What percentage of $8,000 is $2,600?<|eot|> <|assistant|> ```python budget = 8000 spent = 2600 percent = spent / budget * 100 # 32.5 print(round(percent, 1)) ``` The run gives: 32.5 That is 32.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $2,600?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 2600\npercent = spent / budget * 100 # 32.5\nprint(round(percent, 1))\n```\nThe run gives: 32.5\n\nThat is 32.5% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "32.5", "printed": "32.5", "notation": null}
nlprog_det-setting-0077485
What is 20 degrees Celsius in Fahrenheit? Coded up: celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) (Result: 68) It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0077486
1.5 hours of work at $410 an hour: what is the total charge? As a program: ```python hours = 1.5 rate = 410 bill = hours * rate # 615.0 print(f"{bill:.2f}") ``` Output of the run: 615.00 That comes to $615.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "615.00", "printed": "615.00", "notation": null}
nlprog_det-setting-0077487
<|start|><|user|> What does $1,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Execution prints: 1104.08 It is worth $1,104.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100\nyears = 5\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nExecution prints: 1104.08\n\nIt is wor...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0077488
Ines drove 628 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? We write it as a program: ```python miles = 628 rate = 0.65 reimbursement = miles * rate # 408.2 print(f"{reimbursement:.2f}") ``` That prints: 408.20 Ines is owed $408.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "408.20", "printed": "408.20", "notation": null}
nlprog_det-setting-0077489
<|start|><|user|> To read 126 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> 18 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 126 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "18 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0077490
<|start|><|user|> A shift starts at 2:10 PM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> The shift finishes at 3:40 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift starts at 2:10 PM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "The shift finishes at 3:40 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "3:40 PM", "printed": "3:40 PM", "notation": null}
nlprog_det-setting-0077491
<|start|><|user|> A recipe for 6 people uses 200 grams of pasta. How many grams are needed for 12 people?<|eot|> <|assistant|> ```python grams = 200 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 400 print(scaled) ``` Execution result — 400 Use 400 g of pasta.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 6 people uses 200 grams of pasta. How many grams are needed for 12 people?" }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 6\nneeded_for = 12\nscaled = grams * needed_for // serves # 400\nprint(scaled)\n```\nExecution result — 4...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0077492
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Under a 25% contingency agreement, what fee is owed on a $60,000 award?<|eot|> <|assistant|> ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` # execution result: 15000.00 The lawyer's fee comes to $...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $60,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 15...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0077494
A garage charges $5 an hour, never more than $24 a day. How much for 11 hours? In code: rate = 5 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) stdout: 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0077495
<|start|><|system|> Tools (call with JSON): [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Convert 5,446 CHF to ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "5881.68", "printed": "5881.68", "notation": null}
nlprog_det-setting-0077496
Buying 2 binders at $18 each, 2 notebooks at $29 each, 5 paper reams at $24 each, 5 hard drives at $13 each, someone hands over $300. What change comes back? ```python items = [(2, 18), (2, 29), (5, 24), (5, 13)] total = sum(q * p for q, p in items) # 279 paid = 300 change = paid - total # 21 print(change) ``` stdou...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0077497
A meal costs $26.26. How much is a 15% tip? The tip is $3.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "3.94", "printed": "3.94", "notation": null}
nlprog_det-setting-0077498
<|start|><|user|> Convert 63.4 km to meters.<|eot|> <|assistant|> 63,400 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 63.4 km to meters." }, { "role": "assistant", "content": "63,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "63400", "printed": "63400", "notation": null}
nlprog_det-setting-0077499
<|start|><|user|> Convert 525 EUR to USD at 1 EUR = 1.12 USD.<|eot|> <|assistant|> amount = 525 rate = 1.12 converted = amount * rate # 588.0 print(f"{converted:.2f}") This prints: 588.00 It converts to 588.00 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 525 EUR to USD at 1 EUR = 1.12 USD." }, { "role": "assistant", "content": " amount = 525\n rate = 1.12\n converted = amount * rate # 588.0\n print(f\"{converted:.2f}\")\nThis prints: 588.00\n\nIt converts to 588.00 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "588.00", "printed": "588.00", "notation": null}
nlprog_det-setting-0077500
What commission does Yusuf make on $119,110 in sales at 4%? Here's the code. ```python sales = 119110 rate = 4 / 100 # 0.04 commission = sales * rate # 4764.400000000001 print(f"{commission:.2f}") ``` Python prints 4764.40. The commission is $4,764.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4764.40", "printed": "4764.40", "notation": null}
nlprog_det-setting-0077501
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units"...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
356
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0077502
At 2% a month (simple), what interest builds on $1,000 over 2 months? Here is the program. ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` Executing it gives 40.00. The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0077503
<|start|><|user|> What day of the week is November 22, 1990?<|eot|> <|assistant|> It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is November 22, 1990?" }, { "role": "assistant", "content": "It is a Thursday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0077504
<|start|><|user|> A garage charges $2 an hour, never more than $15 a day. How much for 10 hours?<|eot|> <|assistant|> Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $15 a day. How much for 10 hours?" }, { "role": "assistant", "content": "Parking costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0077505
A car travels 313 miles in 1 hours. What is its average speed in miles per hour? Python makes this quick: distance = 313 hours = 1 speed = distance / hours # 313.0 print(round(speed)) (Run result: 313) The average speed is 313 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0077506
A water bill is $18 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons? Python does the arithmetic: ```python base = 18 rate = 4.2 used = 18 free = 3 bill = base + rate * max(0, used - free) # 81.0 print(f"{bill:.2f}") ``` Execution result — 81.00 The bill is $81.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "81.00", "printed": "81.00", "notation": null}
nlprog_det-setting-0077507
At an exchange rate of 0.92 USD per GBP, how many USD is 7,113 GBP? Python code: amount = 7113 rate = 0.92 converted = amount * rate # 6543.96 print(f"{converted:.2f}") Result = 6543.96 That is 6,543.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "6543.96", "printed": "6543.96", "notation": null}
nlprog_det-setting-0077508
With 30% off, what does a $40 jacket cost? Program: ```python price = 40 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 28.0 print(f"{sale_price:.2f}") ``` The script prints: 28.00 The sale price is $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0077509
Sales went from 2,500 to 3,125. What is the percent change? Here is the program. ```python old = 2500 new = 3125 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` Output: 25 The change is 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077510
A 320-mile drive at a steady 60 mph takes how many minutes? In Python: ```python distance = 320 speed = 60 minutes = distance / speed * 60 print(round(minutes)) ``` stdout: 320 The trip takes 320 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0077511
Shipping costs $5 plus $2.50 per pound. What does a 24-pound parcel cost to ship? Python, step by step: ```python base = 5 per_pound = 2.5 weight = 24 cost = base + per_pound * weight # 65.0 print(f"{cost:.2f}") ``` (Result: 65.00) The charge is $65.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "65.00", "printed": "65.00", "notation": null}
nlprog_det-setting-0077512
A 14 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? We can compute it in Python. ```python import math length = 14 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 25 print(tiles) ``` Run output — 25 25 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077513
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after April 28, 2022 through May 4, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 4, 28) end = date(2022, 5, 4) count = 0 for k in range(1, (e...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after April 28, 2022 through May 4, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, time...
nlprog_det
setting
original
null
deterministic
[]
[]
171
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0077514
The firm was founded in 2017. How many years had passed by 2037? In code: ```python start_year = 2017 end_year = 2037 print(end_year - start_year) ``` What it prints: 20 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0077515
A clerk's office charges $35 for each filing. Dara submits 10 filings. What is the total fee? Python version: ```python fee = 35 filings = 10 total = fee * filings # 350 print(total) ``` Console output: 350 The total fee is $350.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0077516
What percentage of $8,000 is $2,600? Script: ```python budget = 8000 spent = 2600 percent = spent / budget * 100 # 32.5 print(round(percent, 1)) ``` The program outputs: 32.5 32.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "32.5", "printed": "32.5", "notation": null}
nlprog_det-setting-0077518
<|start|><|user|> Pack A has 12 items for $7.61. Pack B has 15 items for $24.64. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 7.61 / 12 # 0.6341666666666667 pack_b = 24.64 / 15 # 1.6426666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` # output: A A has th...
chat
[ { "role": "user", "content": "Pack A has 12 items for $7.61. Pack B has 15 items for $24.64. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 7.61 / 12 # 0.6341666666666667\npack_b = 24.64 / 15 # 1.6426666666666667\ncheaper = \"A\" if pack_a < pack...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0077519
If a 75-minute appointment begins at 10:00 AM, what time does it finish? A short script: ```python start = 10 * 60 + 0 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives: 11:15 AM The appointment finishes at 11:15 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "11:15 AM", "printed": "11:15 AM", "notation": null}
nlprog_det-setting-0077521
Convert 4,550 EUR to USD at 1 EUR = 1.35 USD. ```python amount = 4550 rate = 1.35 converted = amount * rate # 6142.5 print(f"{converted:.2f}") ``` (Execution result: 6142.50) It converts to 6,142.50 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6142.50", "printed": "6142.50", "notation": null}
nlprog_det-setting-0077522
A recipe for 8 people uses 450 grams of flour. How many grams are needed for 4 people? ```python grams = 450 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 225 print(scaled) ``` # console output: 225 225 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0077524
<|start|><|user|> Counting the first and last day, how many days are there from November 19, 2023 through December 8, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 11, 19) # datetime.date(2023, 11, 19) last = date(2023, 12, 8) # datetime.date(2023, 12, 8) days = (last - first).days...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from November 19, 2023 through December 8, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 11, 19) # datetime.date(2023, 11, 19)\nlast = date(2023, 12, 8)...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0077525
Monthly rent is $1,500. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent? Set it up in Python: rent = 1500 days_in_month = 30 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 750.0 print(f"{prorated:.2f}") # result: 750.00 The tenant owes $750.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0077526
Copies cost $15 plus $0.50 for each page beyond 0. How much for 37 pages? ```python pages = 37 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 33.5 print(f"{cost:.2f}") ``` What it prints — 33.50 The copy costs $33.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0077527
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "code_runner", "descrip...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
338
{"gold": "2024-01-25", "printed": "2024-01-25", "notation": null}