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-0078707
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` The program outputs: -4 It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nThe program outputs: -4\n\nIt equals -4 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0078708
How many units at $25 each (variable cost $21) cover $1,200 of fixed costs? Coded up: import math fixed = 1200 price = 25 variable = 21 units = math.ceil(fixed / (price - variable)) # 300 print(units) Result — 300 Break-even is 300 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0078709
From a $2,500 retainer, 8 hours at $250/hour have been drawn. What remains? Translated to Python: ```python retainer = 2500 hours = 8 rate = 250 left = retainer - hours * rate # 500 print(left) ``` Out — 500 The remaining balance is $500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0078710
A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? In code: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 payment = (principal + interest) / ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0078711
<|start|><|system|> You have access to these functions: {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "define_word", ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
433
{"gold": "1262.50", "printed": "1262.50", "notation": null}
nlprog_det-setting-0078712
<|start|><|user|> Someone works 32 hours at $16.26 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 16.26 hours = 32 earnings = rate * hours # 520.32 print(f"{earnings:.2f}") ``` Execution result — 520.32 That earns $520.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $16.26 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 16.26\nhours = 32\nearnings = rate * hours # 520.32\nprint(f\"{earnings:.2f}\")\n```\nExecution result — 520.32\n\nThat earns $520.32." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "520.32", "printed": "520.32", "notation": null}
nlprog_det-setting-0078713
Scale 150 g of rice from 4 servings to 8 servings. In code: ```python grams = 150 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 300 print(scaled) ``` (Printed result: 300) 300 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0078714
A library charges $0.20 per book per day late. What is the fine for 1 books that are 11 days late? ```python per_day = 0.2 days_late = 11 books = 1 fine = per_day * days_late * books print(f"{fine:.2f}") ``` # console output: 2.20 The fine is $2.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2.20", "printed": "2.20", "notation": null}
nlprog_det-setting-0078715
<|start|><|user|> A 21-day notice period begins on April 2, 2028. On what date does it end?<|eot|> <|assistant|> That date is April 23, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 21-day notice period begins on April 2, 2028. On what date does it end?" }, { "role": "assistant", "content": "That date is April 23, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2028-04-23", "printed": "2028-04-23", "notation": null}
nlprog_det-setting-0078717
A 36-month warranty starts on August 10, 2019. On what date does it end? Computation in Python: ```python from datetime import date start = date(2019, 8, 10) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Outp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2022-08-10", "printed": "2022-08-10", "notation": null}
nlprog_det-setting-0078718
<|start|><|user|> Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.2 used = 4 free = 0 bill = base + rate * max(0, used - free) # 28.8 print(f"{bill:.2f}") ``` Result: 28.80 The bill is $28.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 4.2\nused = 4\nfree = 0\nbill = base + rate * max(0, used - free) # 28.8\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "28.80", "printed": "28.80", "notation": null}
nlprog_det-setting-0078719
<|start|><|user|> The rules require 2/3 of 14 members (round up) to be present. How many is that?<|eot|> <|assistant|> import math members = 14 quorum = math.ceil(members * 2 / 3) # 10 print(quorum) Python prints 10, as expected. That is 10 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 14 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": " import math\n members = 14\n quorum = math.ceil(members * 2 / 3) # 10\n print(quorum)\nPython prints 10, as expected.\n\nThat is 10 m...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0078720
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_statute", "description":...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
395
{"gold": "5202.00", "printed": "5202.00", "notation": null}
nlprog_det-setting-0078721
Each storage box holds 25 files. How many boxes are needed for 672 files? Translated to Python: ```python import math files = 672 per_box = 25 boxes = math.ceil(files / per_box) # 27 print(boxes) ``` Executing it gives 27, as expected. 27 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0078722
Sami was born on October 16, 2004. How old is Sami on July 15, 2023? Let the code do the arithmetic: ```python from datetime import date born = date(2004, 10, 16) # datetime.date(2004, 10, 16) on = date(2023, 7, 15) # datetime.date(2023, 7, 15) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078723
Monthly rent is $2,400. A tenant moves in with 6 days left in a 31-day month. What is the prorated rent? rent = 2400 days_in_month = 31 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 464.51612903225805 print(f"{prorated:.2f}") The program prints: 464.52 The tenant owes $464.5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "464.52", "printed": "464.52", "notation": null}
nlprog_det-setting-0078724
<|start|><|user|> A quorum is 3/5 of the 24 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 24 quorum = math.ceil(members * 3 / 5) print(quorum) ``` Out: 15 15 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 24 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 24\nquorum = math.ceil(members * 3 / 5)\nprint(quorum)\n```\nOut: 15\n\n15 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078725
<|start|><|user|> Which is cheaper per unit: 6 for $4.60 (A) or 30 for $16.49 (B)?<|eot|> <|assistant|> ```python pack_a = 4.6 / 6 # 0.7666666666666666 pack_b = 16.49 / 30 # 0.5496666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Printed result: B B has the lower unit price.<|eot|> <|e...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $4.60 (A) or 30 for $16.49 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 4.6 / 6 # 0.7666666666666666\npack_b = 16.49 / 30 # 0.5496666666666666\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0078726
<|start|><|user|> A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` The program outputs 11700. In total, $11,700 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)\n```\nThe program outputs 11700.\n\nIn to...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0078727
Split $296 between Nikhil and Sami in the ratio 3 to 5. What is Nikhil's share? Here's the code. ```python total = 296 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` # stdout: 111 Nikhil gets $111.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "111", "printed": "111", "notation": null}
nlprog_det-setting-0078728
<|start|><|user|> Dara was born on April 9, 1980. How old is Dara on December 25, 2023?<|eot|> <|assistant|> The age is 43 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara was born on April 9, 1980. How old is Dara on December 25, 2023?" }, { "role": "assistant", "content": "The age is 43 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0078729
<|start|><|user|> Idris's scores were 52, 90, 53 and 97. What is the average score?<|eot|> <|assistant|> ```python scores = [52, 90, 53, 97] average = sum(scores) // len(scores) # 73 print(average) ``` Executing it gives 73, as expected. The mean is 73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Idris's scores were 52, 90, 53 and 97. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [52, 90, 53, 97]\naverage = sum(scores) // len(scores) # 73\nprint(average)\n```\nExecuting it gives 73, as expected.\n\nThe mean is 73." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0078730
11 boxes hold 10 flash drives each. After 14 are handed out, how many are left? ```python boxes = 11 per_box = 10 given_away = 14 left = boxes * per_box - given_away # 96 print(left) ``` Output of the run — 96 That leaves 96 flash drives.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0078732
A quorum is 1/3 of the 12 members, rounded up. How many members make a quorum? Here is a short program for it. ```python import math members = 12 quorum = math.ceil(members * 1 / 3) # 4 print(quorum) ``` Printed = 4 4 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0078733
<|start|><|user|> How many of 184 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 184 needed = math.ceil(voters * 67 / 100) # 124 print(needed) ``` Shell output: 124 At least 124 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 184 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 184\nneeded = math.ceil(voters * 67 / 100) # 124\nprint(needed)\n```\nShell output: 124\n\nAt least 124 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0078734
<|start|><|user|> What simple interest does $5,000 earn at 8% a year over 4 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 1600.0 print(f"{interest:.2f}") ``` The run gives 1600.00, as expected. It earns $1,600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 8% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 8 / 100 # 0.08\nyears = 4\ninterest = principal * rate * years # 1600.0\nprint(f\"{interest:.2f}\")\n```\nThe run gives 1600...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0078735
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
370
{"gold": "10569.08", "printed": "10569.08", "notation": null}
nlprog_det-setting-0078736
How many 2-foot square tiles cover a 11 ft by 10 ft floor (round up)? Python version: ```python import math length = 11 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 28 print(tiles) ``` Python prints: 28 28 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0078737
<|start|><|user|> Convert 79 km to meters.<|eot|> <|assistant|> ```python km = 79 meters = km * 1000 # 79000 print(round(meters)) ``` Printed = 79000 79,000 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 79 km to meters." }, { "role": "assistant", "content": "```python\nkm = 79\nmeters = km * 1000 # 79000\nprint(round(meters))\n```\nPrinted = 79000\n\n79,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "79000", "printed": "79000", "notation": null}
nlprog_det-setting-0078738
A car travels 306 miles in 1.5 hours. What is its average speed in miles per hour? Here is a short program for it. ```python distance = 306 hours = 1.5 speed = distance / hours # 204.0 print(round(speed)) ``` Interpreter output — 204 The average speed is 204 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0078739
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Fixed costs are $9,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 900 print(units) `...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0078740
A measure needs at least 67% of 58 votes. How many votes is that, rounded up? Written as code: ```python import math voters = 58 needed = math.ceil(voters * 67 / 100) # 39 print(needed) ``` The interpreter prints 39. At least 39 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0078741
A meal costs $144.54. How much is a 22% tip? Computation in Python: ```python bill = 144.54 tip_rate = 22 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` Executed, it shows 31.80. The tip is $31.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "31.80", "printed": "31.80", "notation": null}
nlprog_det-setting-0078742
<|start|><|user|> A hall has 16 rows of 19 seats, and 40 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 16 per_row = 19 empty = 40 seated = rows * per_row - empty # 264 print(seated) ``` Console output — 264 264 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 16 rows of 19 seats, and 40 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 16\nper_row = 19\nempty = 40\nseated = rows * per_row - empty # 264\nprint(seated)\n```\nConsole output — 264\n\n264 seats a...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0078743
5 friends split a $84 bill plus a 18% tip evenly. How much does each pay? The program: ```python bill = 84 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 19.823999999999998 print(f"{each:.2f}") ``` When run, it prints 19.82, as expected. Each person pays $19.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "19.82", "printed": "19.82", "notation": null}
nlprog_det-setting-0078744
<|start|><|system|> Tools you may use: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "compute", "description": "Python sandbox for calculations. Returns printed te...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"compute\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
278
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0078746
<|start|><|user|> A meeting starts at 11:10 AM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 11 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Printed result: 11:35 AM) It ends at 11:35 AM.<|eot|...
chat
[ { "role": "user", "content": "A meeting starts at 11:10 AM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 10\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "11:35 AM", "printed": "11:35 AM", "notation": null}
nlprog_det-setting-0078747
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "calculator", "descrip...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "477.90", "printed": "477.90", "notation": null}
nlprog_det-setting-0078748
Wanjiru earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? A short script: ```python rate = 22.4 hours = 54 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 470.4 pay = regular + overtime # 1366.4 print(f"{pay:.2f}") ``` The code prints 1366.40. Wanjir...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0078750
A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term? One way, in code: ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` Output — 50400 In total, $50,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0078751
Shipping costs $5 plus $2.50 per pound. What does a 17-pound parcel cost to ship? Script: ```python base = 5 per_pound = 2.5 weight = 17 cost = base + per_pound * weight # 47.5 print(f"{cost:.2f}") ``` Running it prints: 47.50 Shipping costs $47.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "47.50", "printed": "47.50", "notation": null}
nlprog_det-setting-0078752
Convert 20 km to meters. Script: ```python km = 20 meters = km * 1000 # 20000 print(round(meters)) ``` Running it prints 20000, as expected. That is 20,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "20000", "printed": "20000", "notation": null}
nlprog_det-setting-0078753
<|start|><|user|> A car travels 562 miles in 1 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 562 hours = 1 speed = distance / hours # 562.0 print(round(speed)) ``` (Run result: 562) It averages 562 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 562 miles in 1 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 562\nhours = 1\nspeed = distance / hours # 562.0\nprint(round(speed))\n```\n(Run result: 562)\n\nIt averages 562 miles per ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0078754
If a 40-minute seminar begins at 4:40 PM, what time does it finish? ```python start = 16 * 60 + 40 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Python prints 5:20 PM, as expected. It ends at 5:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "5:20 PM", "printed": "5:20 PM", "notation": null}
nlprog_det-setting-0078756
Monthly: $19. Annual: $210. What is saved per year by paying annually? Script: ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) ``` Printed: 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078757
Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights? Here is the program. ```python days = 8 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1322 print(total) ``` When run, it prints 1322, as expected. The allowan...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1322", "printed": "1322", "notation": null}
nlprog_det-setting-0078758
<|start|><|system|> Functions: {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> From 1994 to 2024, how many years is that?<|eot|...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, {...
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0078759
$1,000 is invested at 4% compounded yearly. What is it worth after 5 years? Python: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 1216.6529024000001 print(f"{value:.2f}") ``` # output: 1216.65 It is worth $1,216.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1216.65", "printed": "1216.65", "notation": null}
nlprog_det-setting-0078760
6 runs at 400 calories each burn how many calories in total? We can compute it in Python. ```python per_session = 400 sessions = 6 total = per_session * sessions # 2400 print(total) ``` It prints 2400, as expected. 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0078761
<|start|><|user|> A measure needs at least 67% of 280 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 280 needed = math.ceil(voters * 67 / 100) # 188 print(needed) ``` It prints 188, as expected. 188 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 280 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 280\nneeded = math.ceil(voters * 67 / 100) # 188\nprint(needed)\n```\nIt prints 188, as expected.\n\n188 votes are...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "188", "printed": "188", "notation": null}
nlprog_det-setting-0078762
Monthly rent is $900. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent? The tenant owes $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0078764
<|start|><|system|> You can call tools. Available tools: {"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|u...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0078765
<|start|><|user|> A garage charges $3 an hour, never more than $24 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` # out: 24 The charge is $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $24 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 11\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\n# out: 24\n\nThe charge is $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078766
<|start|><|user|> With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Output = 11.1 The margi...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0078767
Notice was given on June 23, 2019. The notice period is 10 days. When does it run out? Here is the program. ```python from datetime import date, timedelta start = date(2019, 6, 23) end = start + timedelta(days=10) print(end.isoformat()) ``` (Run result: 2019-07-03) The period ends on July 3, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2019-07-03", "printed": "2019-07-03", "notation": null}
nlprog_det-setting-0078768
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Quinn has 8 documents to file, and each filing costs $350. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 350 filings = 8 total = fee * filings # 2800 print(total) ``` Printed: 2800 The total fee is $2,800.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Quinn has 8 documents to file, and each filing costs $350. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 8\ntotal = fee * filing...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0078769
<|start|><|user|> Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 1666.6666666666667 print(f"{per_year:.2f}") ``` Out: 1666.6...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 2000\nyears = 6\nper_year = (cost - salvage) / years # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1666.67", "printed": "1666.67", "notation": null}
nlprog_det-setting-0078770
<|start|><|system|> You can call tools. Available tools: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "py_exec", "description": "Evaluates Python and returns the ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"py_e...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0078771
A measure needs at least 67% of 204 votes. How many votes is that, rounded up? 137 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "137", "printed": "137", "notation": null}
nlprog_det-setting-0078772
A 200-mile drive at a steady 50 mph takes how many minutes? The Python version: ```python distance = 200 speed = 50 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Run output — 240 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0078773
<|start|><|user|> Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) ``` Out = 28.6 Profit i...
chat
[ { "role": "user", "content": "Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 17500\ncosts = 12500\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 28.57142...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0078774
<|start|><|user|> At 1% a month (simple), what interest builds on $4,000 over 3 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Output = 120.00 The interest is $120.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $4,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 120.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0078775
Fines run at $250 per day up to a maximum of $1,000. How much after 9 days? One way, in code: ```python per_day = 250 days = 9 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Execution result: 1000) The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0078776
<|start|><|user|> 24 desk lamps cost $7 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 24 unit_price = 7 subtotal = quantity * unit_price # 168 total = subtotal * (1 + 10 / 100) # 184.8 print(f"{total:.2f}") ``` Execution result: 184.80 The total with tax is $184.80.<|eot|> ...
chat
[ { "role": "user", "content": "24 desk lamps cost $7 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 24\nunit_price = 7\nsubtotal = quantity * unit_price # 168\ntotal = subtotal * (1 + 10 / 100) # 184.8\nprint(f\"{total:.2f}\")\n```\nE...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "184.80", "printed": "184.80", "notation": null}
nlprog_det-setting-0078777
<|start|><|user|> What does $5,000 grow to in 2 years at 4% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 5408.000000000001 print(f"{value:.2f}") ``` Run output — 5408.00 The balance is $5,408.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 4% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 5408.000000000001\nprint(f\"{value:.2f}\")\n```\nRun outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5408.00", "printed": "5408.00", "notation": null}
nlprog_det-setting-0078778
To read 774 pages in 18 days, how many pages per day are needed? A few lines of Python do it: ```python pages = 774 days = 18 per_day = pages // days # 43 print(per_day) ``` The interpreter prints 43. 43 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0078779
<|start|><|user|> A meal costs $23.02. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 23.02 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 3.453 print(f"{tip:.2f}") ``` That prints 3.45. The tip is $3.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $23.02. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 23.02\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 3.453\nprint(f\"{tip:.2f}\")\n```\nThat prints 3.45.\n\nThe tip is $3.45." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3.45", "printed": "3.45", "notation": null}
nlprog_det-setting-0078780
Under a 33% contingency agreement, what fee is owed on a $12,000 award? A short script: ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` Execution result — 3960.00 The fee is $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0078781
$10,000 is invested at 2% compounded yearly. What is it worth after 2 years? One way, in code: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` This prints 10404.00. It is worth $10,404.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0078782
671 files go into boxes of 25. How many boxes does that take? Let the code do the arithmetic: ```python import math files = 671 per_box = 25 boxes = math.ceil(files / per_box) print(boxes) ``` The code prints: 27 It takes 27 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0078783
<|start|><|user|> An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> The interest is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "The interest is $60.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0078784
Zainab lends $2,500 at 6% simple interest per year for 4 years. How much interest is earned? principal = 2500 rate = 6 / 100 # 0.06 years = 4 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") Interpreter output: 600.00 It earns $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0078785
<|start|><|user|> If a 5-year limitations period starts on July 28, 2014, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 7, 28) # datetime.date(2014, 7, 28) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 7, 28) print(expires.isofor...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on July 28, 2014, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 7, 28) # datetime.date(2014, 7, 28)\nyears = 5\nexpires = accrued.replace(year=accrued.year +...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2019-07-28", "printed": "2019-07-28", "notation": null}
nlprog_det-setting-0078786
<|start|><|user|> Starting with 1206 paper reams and using 31 per day, how many remain after 6 days?<|eot|> <|assistant|> ```python stock = 1206 per_day = 31 days = 6 left = stock - per_day * days # 1020 print(left) ``` Printed = 1020 1020 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1206 paper reams and using 31 per day, how many remain after 6 days?" }, { "role": "assistant", "content": "```python\nstock = 1206\nper_day = 31\ndays = 6\nleft = stock - per_day * days # 1020\nprint(left)\n```\nPrinted = 1020\n\n1020 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1020", "printed": "1020", "notation": null}
nlprog_det-setting-0078787
<|start|><|user|> How many whole days and leftover hours are in 277 hours?<|eot|> <|assistant|> hours = 277 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") This prints 11 days and 13 hours, as expected. That is 11 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 277 hours?" }, { "role": "assistant", "content": " hours = 277\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nThis prints 11 days and 13 hours, as expected.\n\nThat is 11 days and 1...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "11 days and 13 hours", "printed": "11 days and 13 hours", "notation": null}
nlprog_det-setting-0078788
<|start|><|user|> Of a $5,000 budget, $3,900 has been spent. What percent is that?<|eot|> <|assistant|> 78.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $5,000 budget, $3,900 has been spent. What percent is that?" }, { "role": "assistant", "content": "78.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "78.0", "printed": "78.0", "notation": null}
nlprog_det-setting-0078789
<|start|><|system|> Be concise.<|eot|> <|user|> 5 claimants share a $960 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 960 parties = 5 share = settlement // parties # 192 print(share) ``` The interpreter prints: 192 Each party receives $192.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "5 claimants share a $960 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 960\nparties = 5\nshare = settlement // parties # 192\nprint(share)\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0078790
Fixed costs are $4,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even? Here's the code. import math fixed = 4000 price = 25 variable = 21 units = math.ceil(fixed / (price - variable)) print(units) Running this gives 1000. Break-even is 1000 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0078791
<|start|><|user|> 9 boxes hold 25 folders each. After 20 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 25 given_away = 20 left = boxes * per_box - given_away # 205 print(left) ``` Running it prints 205. That leaves 205 folders.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 25 folders each. After 20 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 25\ngiven_away = 20\nleft = boxes * per_box - given_away # 205\nprint(left)\n```\nRunning it prints 205.\n\nThat leaves ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0078792
<|start|><|user|> Split $4,728 between Chen and Vera in the ratio 3 to 5. What is Chen's share?<|eot|> <|assistant|> total = 4728 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) print(share_a) (Printed: 1773) Chen's share is $1,773.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,728 between Chen and Vera in the ratio 3 to 5. What is Chen's share?" }, { "role": "assistant", "content": " total = 4728\n parts_a = 3\n parts_b = 5\n share_a = total * parts_a // (parts_a + parts_b)\n print(share_a)\n(Printed: 1773)\n\nChen...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1773", "printed": "1773", "notation": null}
nlprog_det-setting-0078793
Scale 300 g of lentils from 8 servings to 10 servings. We write it as a program: ```python grams = 300 serves = 8 needed_for = 10 scaled = grams * needed_for // serves # 375 print(scaled) ``` # printed: 375 375 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0078795
A pack of 25 markers sells for $1400. What does each cost? As Python: ```python total = 1400 count = 25 per_item = total // count # 56 print(per_item) ``` Result: 56 Each one costs $56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0078796
From 2020 to 2026, how many years is that? A Python solution: start_year = 2020 end_year = 2026 print(end_year - start_year) # program output: 6 That is 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078798
Parking is $3 per hour with a daily maximum of $18. What do 5 hours cost? We write it as a program: ```python rate = 3 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Result — 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078799
Pack A has 12 items for $8.47. Pack B has 24 items for $17.00. Which has the lower price per item? pack_a = 8.47 / 12 # 0.7058333333333334 pack_b = 17.0 / 24 # 0.7083333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) # program output: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0078800
A meal costs $123.23. How much is a 15% tip? Here is a short program for it. ```python bill = 123.23 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 18.4845 print(f"{tip:.2f}") ``` What it prints — 18.48 Leave $18.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "18.48", "printed": "18.48", "notation": null}
nlprog_det-setting-0078801
What is 15 degrees Celsius in Fahrenheit? celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) (Result: 59) It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0078802
A meal costs $170.07. How much is a 20% tip? Program: ```python bill = 170.07 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 34.014 print(f"{tip:.2f}") ``` Running this gives: 34.01 Leave $34.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "34.01", "printed": "34.01", "notation": null}
nlprog_det-setting-0078803
Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even? Here is the program. ```python import math fixed = 9000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` The program outputs 1125. Break-even is 1125 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0078804
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Buying 1 scissors at $9 each, 3 headsets at $10 each, someone hands over $50. What change comes back?<|eot|> <|assistant|> items = [(1, 9), (3, 10)] total = sum(q * p for q, p in items) # 39 paid = 50 change = paid - total # 11 print(change...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Buying 1 scissors at $9 each, 3 headsets at $10 each, someone hands over $50. What change comes back?" }, { "role": "assistant", "content": " items = [(1, 9), (3, 10)]\n total = sum(q * p fo...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0078806
Buying 5 rulers at $15 each, 6 labels at $14 each, 5 clipboards at $13 each, someone hands over $250. What change comes back? $26 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0078807
Parking is $5 per hour with a daily maximum of $24. What do 10 hours cost? Computation in Python: rate = 5 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) Program output: 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078808
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A measure needs at least 60% of 143 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 143 needed = math.ceil(voters * 60 / 100) # 86 print(needed) ``` # out: 86 At least 86 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A measure needs at least 60% of 143 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 143\nneeded = math.ceil(voters * 60 / ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0078809
<|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": "fetch_filing", "description": "Fetch an SEC filing by ...
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\"]}}\n{\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
361
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0078810
<|start|><|system|> Tools you may use: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "math_engine", "description": "Executes a...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sect...
nlprog_det
setting
original
null
deterministic
[]
[]
382
{"gold": "850", "printed": "850", "notation": null}
nlprog_det-setting-0078811
Attendance was 26 out of 40. Express it as a percent. Python: ```python present = 26 total = 40 percent = present / total * 100 # 65.0 print(round(percent, 1)) ``` # result: 65.0 65.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "65.0", "printed": "65.0", "notation": null}
nlprog_det-setting-0078812
<|start|><|user|> Convert 25.1 km to meters.<|eot|> <|assistant|> ```python km = 25.1 meters = km * 1000 # 25100.0 print(round(meters)) ``` Executing it gives 25100. That is 25,100 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 25.1 km to meters." }, { "role": "assistant", "content": "```python\nkm = 25.1\nmeters = km * 1000 # 25100.0\nprint(round(meters))\n```\nExecuting it gives 25100.\n\nThat is 25,100 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "25100", "printed": "25100", "notation": null}
nlprog_det-setting-0078813
Parking is $4 per hour with a daily maximum of $20. What do 12 hours cost? Written as code: ```python rate = 4 hours = 12 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Executing it gives 20. Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0078814
From 2018 to 2055, how many years is that? As a program: ```python start_year = 2018 end_year = 2055 print(end_year - start_year) ``` (Out: 37) 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0078815
<|start|><|user|> A clerk's office charges $25 for each filing. Kemal submits 14 filings. What is the total fee?<|eot|> <|assistant|> The filings cost $350 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $25 for each filing. Kemal submits 14 filings. What is the total fee?" }, { "role": "assistant", "content": "The filings cost $350 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "350", "printed": "350", "notation": null}