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-0050758
A 150-mile drive at a steady 40 mph takes how many minutes? In Python: distance = 150 speed = 40 minutes = distance / speed * 60 # 225.0 print(round(minutes)) Python prints 225, as expected. 225 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0050759
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute",...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
287
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0050760
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> At $26.06 an hour, what does 40 hours of work pay?<|eot|> <|assistant|> ```python rate = 26.06 hours = 40 earnings = rate * hours # 1042.3999999999999 print(f"{earnings:.2f}") ``` # program output: 1042.40 The pay is $1,042.40.<|eot|> ...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "At $26.06 an hour, what does 40 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 26.06\nhours = 40\nearnings = rate * hours # 1042.399999999999...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1042.40", "printed": "1042.40", "notation": null}
nlprog_det-setting-0050761
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> 175 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 175 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` Out: 5 5 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "175 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 175\nper_box = 40\nboxes = math.ceil(files / per_box)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050762
How many meters are in 85.2 kilometers? 85,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "85200", "printed": "85200", "notation": null}
nlprog_det-setting-0050764
<|start|><|system|> Functions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "obje...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"run_python\", \"description\": \"A Python interpret...
nlprog_det
setting
original
null
deterministic
[]
[]
354
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0050765
<|start|><|user|> A 13 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 13 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 182 print(tiles) ``` It outputs: 182 It takes 182 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 13 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 13\nwidth = 14\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 182\nprint(tiles)\n```\nIt output...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0050766
A 19 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? import math length = 19 width = 10 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 190 print(tiles) What it prints — 190 190 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "190", "printed": "190", "notation": null}
nlprog_det-setting-0050767
<|start|><|system|> Tool definitions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calculator", "description": "Runs a short Python sni...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050768
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "A Python interpreter. Returns st...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"c...
nlprog_det
setting
original
null
deterministic
[]
[]
343
{"gold": "2026-07-16", "printed": "2026-07-16", "notation": null}
nlprog_det-setting-0050769
<|start|><|user|> A 21-day notice period begins on October 11, 2019. On what date does it end?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2019, 10, 11) # datetime.date(2019, 10, 11) end = start + timedelta(days=21) # datetime.date(2019, 11, 1) print(end.isoformat()) Executi...
chat
[ { "role": "user", "content": "A 21-day notice period begins on October 11, 2019. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2019, 10, 11) # datetime.date(2019, 10, 11)\n end = start + timedelta(days=21) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2019-11-01", "printed": "2019-11-01", "notation": null}
nlprog_det-setting-0050770
Each of Eamon's bike rides burns 200 calories. How many calories over 5 bike rides? We can compute it in Python. ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Run it and it prints 1000. 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0050771
What percentage of $4,000 is $2,100? Let the code do the arithmetic: ```python budget = 4000 spent = 2100 percent = spent / budget * 100 # 52.5 print(round(percent, 1)) ``` stdout = 52.5 That is 52.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0050772
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 67 copies of a 41-page handout?<|eot|> <|assistant|> ```python pages = 41 copies = 67 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 137.35 print(f"{cost:.2f}") ``` The program prints 137.35, as expected. Printing costs $137.35....
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 67 copies of a 41-page handout?" }, { "role": "assistant", "content": "```python\npages = 41\ncopies = 67\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 137.35\nprint(f\"{cost:.2f}\")\n```\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "137.35", "printed": "137.35", "notation": null}
nlprog_det-setting-0050773
At $0.67 per mile, what is the reimbursement for 615 miles? Here's the code. miles = 615 rate = 0.67 reimbursement = miles * rate # 412.05 print(f"{reimbursement:.2f}") The interpreter prints: 412.05 The reimbursement is $412.05.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "412.05", "printed": "412.05", "notation": null}
nlprog_det-setting-0050774
Count the days between July 3, 2021 and October 20, 2021. Here's the code. ```python from datetime import date first = date(2021, 7, 3) # datetime.date(2021, 7, 3) second = date(2021, 10, 20) # datetime.date(2021, 10, 20) print((second - first).days) ``` Printed: 109 There are 109 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0050775
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> What average speed covers 416 ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
190
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0050776
<|start|><|user|> Count 45 days forward from October 19, 2026. What date is that?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2026, 10, 19) # datetime.date(2026, 10, 19) end = start + timedelta(days=45) # datetime.date(2026, 12, 3) print(end.isoformat()) Printed result: 2026...
chat
[ { "role": "user", "content": "Count 45 days forward from October 19, 2026. What date is that?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2026, 10, 19) # datetime.date(2026, 10, 19)\n end = start + timedelta(days=45) # datetime.date(2026...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2026-12-03", "printed": "2026-12-03", "notation": null}
nlprog_det-setting-0050777
A claim accrued on April 24, 2020. The limitations period is 4 years. On what date does it expire? As a program: ```python from datetime import date accrued = date(2020, 4, 24) # datetime.date(2020, 4, 24) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 4, 24) print(expires.isofo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2024-04-24", "printed": "2024-04-24", "notation": null}
nlprog_det-setting-0050778
On which weekday does July 22, 2025 fall? As Python: ```python from datetime import date hearing = date(2025, 7, 22) # datetime.date(2025, 7, 22) print(hearing.strftime("%A")) ``` Result — Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0050779
Divide 97 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? The program: total = 97 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") When run, it prints: 32 each, 1 left over The answer: 32 ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "32 each, 1 left over", "printed": "32 each, 1 left over", "notation": null}
nlprog_det-setting-0050781
Someone born November 3, 1966 turns how old by December 23, 2023? Give the age in whole years. Coded up: ```python from datetime import date born = date(1966, 11, 3) # datetime.date(1966, 11, 3) on = date(2023, 12, 23) # datetime.date(2023, 12, 23) age = on.year - born.year - ((on.month, on.day) < (born.month, born....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0050782
How many whole days and leftover hours are in 305 hours? That is 12 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "12 days and 17 hours", "printed": "12 days and 17 hours", "notation": null}
nlprog_det-setting-0050783
With $12,500 in costs and $13,500 in revenue, what percent of revenue is profit? Round to one decimal. Code: ```python revenue = 13500 costs = 12500 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 7.4074074074074066 print(round(margin, 1)) ``` # result: 7.4 Profit is 7.4% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "7.4", "printed": "7.4", "notation": null}
nlprog_det-setting-0050784
<|start|><|user|> A count moves from 1,200 to 1,800. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 1,800. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by 50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050785
<|start|><|user|> Convert 0 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` It outputs: 32 That is 32 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 0 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nIt outputs: 32\n\nThat is 32 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0050786
Prorate $1,200 of monthly rent for 19 days of a 30-day month. Computation in Python: ```python rent = 1200 days_in_month = 30 days_occupied = 19 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` The script prints: 760.00 The tenant owes $760.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0050787
Attendance was 37 out of 50. Express it as a percent. Python code: ```python present = 37 total = 50 percent = present / total * 100 # 74.0 print(round(percent, 1)) ``` stdout: 74.0 74.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0050788
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 5 months? Computation in Python: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 400.0 print(f"{interest:.2f}") ``` It prints 400.00, as expected. $400.00 acc...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0050789
67 of 100 members attended. What percent attended? Python does the arithmetic: ```python present = 67 total = 100 percent = present / total * 100 # 67.0 print(round(percent, 1)) ``` (Printed: 67.0) 67.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "67.0", "printed": "67.0", "notation": null}
nlprog_det-setting-0050790
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) Executed, it shows -4. That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": " celsius = -20\n fahrenheit = celsius * 9 / 5 + 32 # -4.0\n print(round(fahrenheit))\nExecuted, it s...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0050791
A garage charges $4 an hour, never more than $24 a day. How much for 4 hours? The charge is $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0050792
At $0.67 per mile, what is the reimbursement for 237 miles? Script: ```python miles = 237 rate = 0.67 reimbursement = miles * rate # 158.79000000000002 print(f"{reimbursement:.2f}") ``` Printed result: 158.79 The reimbursement is $158.79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "158.79", "printed": "158.79", "notation": null}
nlprog_det-setting-0050793
Viktor buys 12 boxes of 24 folders each and gives away 13 folders. How many folders are left? We write it as a program: ```python boxes = 12 per_box = 24 given_away = 13 left = boxes * per_box - given_away # 275 print(left) ``` The interpreter prints 275. 275 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0050794
A 2% increase is applied to $2,200 monthly rent. What is the new amount? Let the code do the arithmetic: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` (Out: 2244.00) It rises to $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0050795
How many minutes pass from 10:02 AM to 2:15 PM on the same day? Python code: ```python start = 10 * 60 + 2 # 602 end = 14 * 60 + 15 # 855 print(end - start) ``` That prints: 253 It is 253 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "253", "printed": "253", "notation": null}
nlprog_det-setting-0050796
With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. Written as code: ```python revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) ``` Running it prints: 55.6 The margin is 55.6%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0050797
How many whole days and leftover hours are in 45 hours? Code: ```python hours = 45 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # printed result: 1 days and 21 hours 45 hours is 1 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1 days and 21 hours", "printed": "1 days and 21 hours", "notation": null}
nlprog_det-setting-0050798
<|start|><|user|> A shift runs from 12:00 PM to 4:14 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 12 * 60 + 0 end = 16 * 60 + 14 print(end - start) ``` Shell output — 254 It is 254 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 12:00 PM to 4:14 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 0\nend = 16 * 60 + 14\nprint(end - start)\n```\nShell output — 254\n\nIt is 254 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0050800
A lawyer's fee is 35% of a $150,000 recovery. How large is the fee? Let the code do the arithmetic: ```python recovery = 150000 rate = 35 / 100 # 0.35 fee = recovery * rate # 52500.0 print(f"{fee:.2f}") ``` Execution result — 52500.00 The fee is $52,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0050801
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> What simple interest does $20,000 earn at 5% a year over 5 years?<|eot|> <|assistant|> ```python principal = 20000 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 5000.0 print(f"{interest:.2f}") ``` The run gives 5000.00, as expected. ...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "What simple interest does $20,000 earn at 5% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 5 / 100 # 0.05\nyears = 5\ninterest = principal * ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0050802
Copies cost $10 plus $0.50 for each page beyond 20. How much for 67 pages? Python, step by step: ```python pages = 67 base = 10 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 33.5 print(f"{cost:.2f}") ``` (Program output: 33.50) The total is $33.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0050803
<|start|><|system|> Tools (call with JSON): {"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":...
chat
[ { "role": "system", "content": "Tools (call with JSON):\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\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
354
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0050804
<|start|><|system|> You may call the tools below. [{"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"...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "26550", "printed": "26550", "notation": null}
nlprog_det-setting-0050805
<|start|><|user|> A claim accrued on July 18, 2018. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 7, 18) # datetime.date(2018, 7, 18) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 7, ...
chat
[ { "role": "user", "content": "A claim accrued on July 18, 2018. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2018, 7, 18) # datetime.date(2018, 7, 18)\nyears = 4\nexpires = accrued.rep...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2022-07-18", "printed": "2022-07-18", "notation": null}
nlprog_det-setting-0050806
Counting the first and last day, how many days are there from December 21, 2025 through January 15, 2026? Written as code: ```python from datetime import date first = date(2025, 12, 21) # datetime.date(2025, 12, 21) last = date(2026, 1, 15) # datetime.date(2026, 1, 15) days = (last - first).days + 1 # 26 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0050807
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 6 months? $675.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "675.00", "printed": "675.00", "notation": null}
nlprog_det-setting-0050808
2 claimants share a $18,000 settlement equally. What is each share? Written as code: ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` Run output — 9000 Each party receives $9,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0050809
<|start|><|user|> A client paid a $10,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 11 rate = 275 left = retainer - hours * rate # 6975 print(left) ``` Result: 6975 The remaining balance is $6,975.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 11\nrate = 275\nleft = retainer - hours * rate # 6975\nprint(left)\n```\nR...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "6975", "printed": "6975", "notation": null}
nlprog_det-setting-0050810
<|start|><|user|> What percentage of $4,000 is $1,100?<|eot|> <|assistant|> ```python budget = 4000 spent = 1100 percent = spent / budget * 100 print(round(percent, 1)) ``` Printed: 27.5 27.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $1,100?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 1100\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nPrinted:\n27.5\n\n27.5% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "27.5", "printed": "27.5", "notation": null}
nlprog_det-setting-0050811
<|start|><|user|> 198 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> total = 198 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") # out: 39 each, 3 left over The answer: 39 eac...
chat
[ { "role": "user", "content": "198 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": " total = 198\n groups = 5\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "39 each, 3 left over", "printed": "39 each, 3 left over", "notation": null}
nlprog_det-setting-0050812
<|start|><|user|> Someone works 20 hours at $18.12 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 18.12 hours = 20 earnings = rate * hours # 362.40000000000003 print(f"{earnings:.2f}") ``` Execution prints 362.40, as expected. That earns $362.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 20 hours at $18.12 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 18.12\nhours = 20\nearnings = rate * hours # 362.40000000000003\nprint(f\"{earnings:.2f}\")\n```\nExecution prints 362.40, as expected.\n\nTha...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "362.40", "printed": "362.40", "notation": null}
nlprog_det-setting-0050813
One can of paint covers 400 square feet. How many cans are needed for 887 square feet of wall? Computation in Python: ```python import math area = 887 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` The program prints: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0050814
How many 2-foot square tiles cover a 6 ft by 3 ft floor (round up)? Python version: ```python import math length = 6 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` The program prints: 5 It takes 5 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050815
<|start|><|system|> Tools (call with JSON): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "math_engine", "description": "Runs a short Pyth...
chat
[ { "role": "system", "content": "Tools (call with JSON):\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
[]
[]
360
{"gold": "2020-01-20", "printed": "2020-01-20", "notation": null}
nlprog_det-setting-0050816
<|start|><|system|> Tool definitions: [{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A $240 dinner bill gets a 20% tip, and 3 ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0050817
Attendance was 22 out of 40. Express it as a percent. In code: ```python present = 22 total = 40 percent = present / total * 100 # 55.00000000000001 print(round(percent, 1)) ``` # run result: 55.0 Attendance was 55.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0050818
Pack A has 8 items for $13.25. Pack B has 20 items for $25.72. Which has the lower price per item? The computation: ```python pack_a = 13.25 / 8 # 1.65625 pack_b = 25.72 / 20 # 1.286 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Console output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0050819
<|start|><|user|> How many of 142 votes make 60% (round up)?<|eot|> <|assistant|> At least 86 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 142 votes make 60% (round up)?" }, { "role": "assistant", "content": "At least 86 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0050820
A recipe for 2 people uses 240 grams of pasta. How many grams are needed for 10 people? Here is the program. ```python grams = 240 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 1200 print(scaled) ``` Out: 1200 1200 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0050821
Starting from $8,000, the team spends $1,041, $469, $625. What remains? Python makes this quick: ```python budget = 8000 expenses = [1041, 469, 625] left = budget - sum(expenses) # 5865 print(left) ``` Printed: 5865 The remaining budget is $5,865.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5865", "printed": "5865", "notation": null}
nlprog_det-setting-0050822
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after June 11, 2027 through July 16, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 6, 11) end = date(2027, 7, 16) count = 0 for k in r...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after June 11, 2027 through July 16, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import d...
nlprog_det
setting
original
null
deterministic
[]
[]
170
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0050823
<|start|><|user|> A $1,500 security deposit has deductions of $120. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [120] refund = deposit - sum(deductions) # 1380 print(refund) ``` Executing it gives: 1380 The refund is $1,380.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,500 security deposit has deductions of $120. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [120]\nrefund = deposit - sum(deductions) # 1380\nprint(refund)\n```\nExecuting it gives: 1380\n\nThe refund is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1380", "printed": "1380", "notation": null}
nlprog_det-setting-0050824
Of a $10,000 budget, $1,800 has been spent. What percent is that? As a program: ```python budget = 10000 spent = 1800 percent = spent / budget * 100 print(round(percent, 1)) ``` Printed: 18.0 18.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "18.0", "printed": "18.0", "notation": null}
nlprog_det-setting-0050825
Each of Mateo's runs burns 150 calories. How many calories over 7 runs? Let the code do the arithmetic: ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` Executing it gives 1050. 1050 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0050826
32 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? Set it up in Python: ```python total = 32 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program prints 10 each, 2 left over. 10 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "10 each, 2 left over", "printed": "10 each, 2 left over", "notation": null}
nlprog_det-setting-0050828
<|start|><|user|> At 40 miles per hour, how many minutes does a 240-mile trip take?<|eot|> <|assistant|> 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 40 miles per hour, how many minutes does a 240-mile trip take?" }, { "role": "assistant", "content": "360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0050829
A quorum is 2/3 of the 52 members, rounded up. How many members make a quorum? That is 35 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0050830
<|start|><|user|> A service costs $15 a month or $150 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 150 savings = monthly * 12 - yearly # 30 print(savings) ``` Output — 30 $30 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $150 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 150\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nOutput — 30\n\n$30 is s...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0050831
Someone born January 19, 1971 turns how old by September 5, 2022? Give the age in whole years. We can compute it in Python. from datetime import date born = date(1971, 1, 19) on = date(2022, 9, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) Executing it give...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0050832
<|start|><|system|> Functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "ob...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calcu...
nlprog_det
setting
original
null
deterministic
[]
[]
430
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0050833
The landlord deducts $150 from a $2,000 deposit. What is returned to the tenant? Set it up in Python: ```python deposit = 2000 deductions = [150] refund = deposit - sum(deductions) # 1850 print(refund) ``` It prints 1850, as expected. The refund is $1,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1850", "printed": "1850", "notation": null}
nlprog_det-setting-0050834
A chair costs $250. It is 25% off. What is the sale price? The sale price is $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0050835
What does $1,000 grow to in 5 years at 3% annual compounding? Python: principal = 1000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 1159.2740743000002 print(f"{value:.2f}") (Printed result: 1159.27) The balance is $1,159.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1159.27", "printed": "1159.27", "notation": null}
nlprog_det-setting-0050836
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Maren earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?<|eot|> <|assistant|> Maren earns $830.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Maren earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?" }, { "role": "assistant", "content": "Maren earns $830.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "830.00", "printed": "830.00", "notation": null}
nlprog_det-setting-0050837
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 280 miles?<|eot|> <|assistant|> ```python miles = 280 rate = 0.62 reimbursement = miles * rate # 173.6 print(f"{reimbursement:.2f}") ``` Output = 173.60 The reimbursement is $173.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 280 miles?" }, { "role": "assistant", "content": "```python\nmiles = 280\nrate = 0.62\nreimbursement = miles * rate # 173.6\nprint(f\"{reimbursement:.2f}\")\n```\nOutput = 173.60\n\nThe reimbursement is $173.60." }...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "173.60", "printed": "173.60", "notation": null}
nlprog_det-setting-0050838
After an initial $2,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part? ```python grant = 12000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 1666.6666666666667 print(f"{each:.2f}") ``` (Run result: 1666.67) Each installment is $1,666.67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1666.67", "printed": "1666.67", "notation": null}
nlprog_det-setting-0050839
<|start|><|user|> 3 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $12,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $12,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0050840
Attendance was 13 out of 25. Express it as a percent. Here is a short program for it. ```python present = 13 total = 25 percent = present / total * 100 print(round(percent, 1)) ``` Run result — 52.0 Attendance was 52.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0050841
Convert 25 °C to Fahrenheit. We can compute it in Python. ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Output = 77 It equals 77 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0050842
106 of 200 members attended. What percent attended? A short script: ```python present = 106 total = 200 percent = present / total * 100 # 53.0 print(round(percent, 1)) ``` (Printed: 53.0) 53.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "53.0", "printed": "53.0", "notation": null}
nlprog_det-setting-0050843
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Fines run at $25 per day up to a maximum of $1,000. How much after 40 days?<|eot|> <|assistant|> ```python per_day = 25 days = 40 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Interpreter output: 1000 $1,000 is owed.<|eot|> <...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Fines run at $25 per day up to a maximum of $1,000. How much after 40 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 40\ncap = 1000\nfine = min(per_day...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0050844
<|start|><|user|> Convert -10 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` What it prints: 14 It equals 14 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -10 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\nWhat it prints: 14\n\nIt equals 14 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0050845
<|start|><|user|> Scale 150 g of flour from 2 servings to 8 servings.<|eot|> <|assistant|> Use 600 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of flour from 2 servings to 8 servings." }, { "role": "assistant", "content": "Use 600 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0050846
A 12-month warranty starts on September 15, 2019. On what date does it end? Translated to Python: ```python from datetime import date start = date(2019, 9, 15) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2020-09-15", "printed": "2020-09-15", "notation": null}
nlprog_det-setting-0050847
<|start|><|system|> You may call the tools below. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "ob...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"define_word\", \"description\": \"R...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "1423.60", "printed": "1423.60", "notation": null}
nlprog_det-setting-0050849
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> 93 ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0050850
Counting the first and last day, how many days are there from June 18, 2026 through June 24, 2026? A few lines of Python do it: ```python from datetime import date first = date(2026, 6, 18) # datetime.date(2026, 6, 18) last = date(2026, 6, 24) # datetime.date(2026, 6, 24) days = (last - first).days + 1 # 7 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0050851
<|start|><|user|> A storeroom has 1579 toner kits. The office uses 22 a day. How many are left after 11 days?<|eot|> <|assistant|> ```python stock = 1579 per_day = 22 days = 11 left = stock - per_day * days # 1337 print(left) ``` Out: 1337 1337 toner kits are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1579 toner kits. The office uses 22 a day. How many are left after 11 days?" }, { "role": "assistant", "content": "```python\nstock = 1579\nper_day = 22\ndays = 11\nleft = stock - per_day * days # 1337\nprint(left)\n```\nOut: 1337\n\n1337 toner kits...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1337", "printed": "1337", "notation": null}
nlprog_det-setting-0050852
Convert 6,523 USD to CAD at 1 USD = 1.12 CAD. In Python: ```python amount = 6523 rate = 1.12 converted = amount * rate # 7305.760000000001 print(f"{converted:.2f}") ``` Result: 7305.76 That is 7,305.76 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "7305.76", "printed": "7305.76", "notation": null}
nlprog_det-setting-0050853
Papers were served by mail on July 24, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Coded up: ```python from datetime import date, timedelta served = date(2021, 7, 24) # datetime.date(2021, 7, 24) response_days = 30 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2021-08-26", "printed": "2021-08-26", "notation": null}
nlprog_det-setting-0050854
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> At 2% a month (simple), what interest builds on $4,000 over 3 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` Printed result:...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "At 2% a month (simple), what interest builds on $4,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0050855
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A 18 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 18 width = 11 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` # execution result: 50 50 tiles are ...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A 18 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 18\nwidth = 11\ntile = 2\ntiles = math.ce...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050856
<|start|><|user|> 4 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` It outputs: 11250.00 Each client gets $11,25...
chat
[ { "role": "user", "content": "4 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 25 / 100\nremaining = award - fee\nper_client = remaining / 4\nprint(f\"{per_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0050857
<|start|><|user|> At 45 miles per hour, how many minutes does a 45-mile trip take?<|eot|> <|assistant|> distance = 45 speed = 45 minutes = distance / speed * 60 print(round(minutes)) The program prints 60. 60 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 45-mile trip take?" }, { "role": "assistant", "content": " distance = 45\n speed = 45\n minutes = distance / speed * 60\n print(round(minutes))\nThe program prints 60.\n\n60 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0050858
Shipping costs $5 plus $2.50 per pound. What does a 13-pound parcel cost to ship? Computation in Python: base = 5 per_pound = 2.5 weight = 13 cost = base + per_pound * weight # 37.5 print(f"{cost:.2f}") Execution prints: 37.50 The charge is $37.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "37.50", "printed": "37.50", "notation": null}
nlprog_det-setting-0050859
To read 108 pages in 9 days, how many pages per day are needed? A short script: pages = 108 days = 9 per_day = pages // days # 12 print(per_day) (Printed: 12) 12 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0050860
<|start|><|user|> Scale 100 g of flour from 4 servings to 6 servings.<|eot|> <|assistant|> ```python grams = 100 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) ``` That prints: 150 150 grams of flour are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 100 g of flour from 4 servings to 6 servings." }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nThat prints: 150\n\n150 grams of flour are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0050861
<|start|><|user|> From a $7,500 retainer, 4 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> $6,500 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $7,500 retainer, 4 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "$6,500 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6500", "printed": "6500", "notation": null}
nlprog_det-setting-0050863
A workshop lasted 3 hours and 29 minutes. How many minutes is that? Script: hours = 3 minutes = 29 total_minutes = hours * 60 + minutes # 209 print(total_minutes) Python prints 209. That is 209 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "209", "printed": "209", "notation": null}