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-0077101
<|start|><|system|> Available functions (JSON Schema): {"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"]...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
349
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0077103
Scale 150 g of sugar from 2 servings to 6 servings. Let the code do the arithmetic: ```python grams = 150 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 450 print(scaled) ``` Program output: 450 450 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0077104
155 volunteers are split into 9 equal teams. How many are on each team, and how many are left over? Set it up in Python: ```python total = 155 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # run result: 17 each, 2 left over The answer: 17 each, 2 left ov...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "17 each, 2 left over", "printed": "17 each, 2 left over", "notation": null}
nlprog_det-setting-0077105
<|start|><|user|> A hall has 5 rows of 10 seats, and 25 seats are empty. How many people are seated?<|eot|> <|assistant|> 25 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 5 rows of 10 seats, and 25 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "25 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077106
An attorney bills 10.5 hours at $180 per hour. What is the bill? Script: ```python hours = 10.5 rate = 180 bill = hours * rate # 1890.0 print(f"{bill:.2f}") ``` On running, it outputs: 1890.00 The bill is $1,890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0077107
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Split $1,144 between Paula and Liesel in the ratio 3 to 5. What is Paula's share?<|eot|> <|assistant|> Paula gets $429.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Split $1,144 between Paula and Liesel in the ratio 3 to 5. What is Paula's share?" }, { "role": "assistant", "content": "Paula gets $429." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "429", "printed": "429", "notation": null}
nlprog_det-setting-0077108
How many days are there from September 21, 2026 to October 3, 2026? There are 12 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0077109
<|start|><|user|> Hana was born on June 23, 1988. How old is Hana on February 22, 2022?<|eot|> <|assistant|> ```python from datetime import date born = date(1988, 6, 23) # datetime.date(1988, 6, 23) on = date(2022, 2, 22) # datetime.date(2022, 2, 22) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
chat
[ { "role": "user", "content": "Hana was born on June 23, 1988. How old is Hana on February 22, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1988, 6, 23) # datetime.date(1988, 6, 23)\non = date(2022, 2, 22) # datetime.date(2022, 2, 22)\nage = on....
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0077110
A trial runs from May 7, 2019 to May 31, 2019, counting both days. How many calendar days is that? Here's the code. ```python from datetime import date first = date(2019, 5, 7) # datetime.date(2019, 5, 7) last = date(2019, 5, 31) # datetime.date(2019, 5, 31) days = (last - first).days + 1 # 25 print(days) ``` Progr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077111
<|start|><|user|> How many meters are in 83.2 kilometers?<|eot|> <|assistant|> ```python km = 83.2 meters = km * 1000 # 83200.0 print(round(meters)) ``` The program prints: 83200 That is 83,200 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 83.2 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 83.2\nmeters = km * 1000 # 83200.0\nprint(round(meters))\n```\nThe program prints: 83200\n\nThat is 83,200 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "83200", "printed": "83200", "notation": null}
nlprog_det-setting-0077112
<|start|><|user|> What simple interest does $12,000 earn at 2% a year over 6 years?<|eot|> <|assistant|> It earns $1,440.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $12,000 earn at 2% a year over 6 years?" }, { "role": "assistant", "content": "It earns $1,440.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0077113
A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 23-page copy cost? Python version: ```python pages = 23 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 17.3 print(f"{cost:.2f}") ``` Execution result: 17.30 The total is $17.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "17.30", "printed": "17.30", "notation": null}
nlprog_det-setting-0077114
At an exchange rate of 1.27 USD per EUR, how many USD is 3,139 EUR? A short script: ```python amount = 3139 rate = 1.27 converted = amount * rate # 3986.53 print(f"{converted:.2f}") ``` Console: 3986.53 It converts to 3,986.53 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3986.53", "printed": "3986.53", "notation": null}
nlprog_det-setting-0077115
After an initial $2,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part? The program: ```python grant = 12000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 1666.6666666666667 print(f"{each:.2f}") ``` The script prints: 1666.67 Each installment is $1,666.67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1666.67", "printed": "1666.67", "notation": null}
nlprog_det-setting-0077116
How many meters are in 81.8 kilometers? In Python: ```python km = 81.8 meters = km * 1000 print(round(meters)) ``` Printed result — 81800 81,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "81800", "printed": "81800", "notation": null}
nlprog_det-setting-0077117
How much sales tax is charged on a $577.35 purchase at 6%? Written as code: ```python price = 577.35 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 34.641 print(f"{tax:.2f}") ``` Output: 34.64 $34.64 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "34.64", "printed": "34.64", "notation": null}
nlprog_det-setting-0077118
How many meters are in 75.5 kilometers? Written as code: ```python km = 75.5 meters = km * 1000 # 75500.0 print(round(meters)) ``` (Printed result: 75500) That is 75,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "75500", "printed": "75500", "notation": null}
nlprog_det-setting-0077119
Sara drove 49 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Written as code: ```python miles = 49 rate = 0.7 reimbursement = miles * rate # 34.3 print(f"{reimbursement:.2f}") ``` (Output: 34.30) Sara is owed $34.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "34.30", "printed": "34.30", "notation": null}
nlprog_det-setting-0077120
<|start|><|user|> Each of Oskar's bike rides burns 250 calories. How many calories over 3 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Console output: 750 That burns 750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Oskar's bike rides burns 250 calories. How many calories over 3 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions # 750\nprint(total)\n```\nConsole output: 750\n\nThat burns 750 cal...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0077121
<|start|><|system|> Functions: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "eval_python", "description": "A Python interpreter. Returns s...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
409
{"gold": "34 each, 7 left over", "printed": "34 each, 7 left over", "notation": null}
nlprog_det-setting-0077122
<|start|><|user|> Which is cheaper per unit: 12 for $14.46 (A) or 15 for $22.94 (B)?<|eot|> <|assistant|> ```python pack_a = 14.46 / 12 # 1.205 pack_b = 22.94 / 15 # 1.5293333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` stdout: A A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $14.46 (A) or 15 for $22.94 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 14.46 / 12 # 1.205\npack_b = 22.94 / 15 # 1.5293333333333334\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\ns...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0077123
A trial runs from June 16, 2028 to July 7, 2028, counting both days. How many calendar days is that? A few lines of Python do it: ```python from datetime import date first = date(2028, 6, 16) # datetime.date(2028, 6, 16) last = date(2028, 7, 7) # datetime.date(2028, 7, 7) days = (last - first).days + 1 # 22 print(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0077124
<|start|><|user|> At $18.46 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> That earns $701.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $18.46 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "That earns $701.48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "701.48", "printed": "701.48", "notation": null}
nlprog_det-setting-0077126
Find the mean of these test scores: 74, 99, 92 and 99. Computing it: ```python scores = [74, 99, 92, 99] average = sum(scores) // len(scores) # 91 print(average) ``` Output — 91 The mean is 91.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "91", "printed": "91", "notation": null}
nlprog_det-setting-0077127
Under a 33% contingency agreement, what fee is owed on a $90,000 award? Python does the arithmetic: ```python recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") ``` Running it prints 29700.00, as expected. The fee is $29,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0077128
Scale 200 g of pasta from 8 servings to 10 servings. Programmatically: ```python grams = 200 serves = 8 needed_for = 10 scaled = grams * needed_for // serves print(scaled) ``` Run it and it prints: 250 250 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0077131
<|start|><|user|> 3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> Each person pays $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "Each person pays $72.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0077132
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
387
{"gold": "2024-01-26", "printed": "2024-01-26", "notation": null}
nlprog_det-setting-0077133
<|start|><|user|> A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) ``` Out — 18 The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 19\nyearly = 210\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nOut — 18\n\nThe annual ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0077134
<|start|><|system|> Tools (call with JSON): [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calculator", "description": "Use for arithmetic and date math; returns...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calculator\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "2155", "printed": "2155", "notation": null}
nlprog_det-setting-0077135
A claim accrued on July 13, 2012. The limitations period is 3 years. On what date does it expire? Written as code: from datetime import date accrued = date(2012, 7, 13) # datetime.date(2012, 7, 13) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 7, 13) print(e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2015-07-13", "printed": "2015-07-13", "notation": null}
nlprog_det-setting-0077136
<|start|><|system|> You have access to these functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "run_python", "description": "Python sandbox for calculations. Returns printed ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"run_python\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "77.0", "printed": "77.0", "notation": null}
nlprog_det-setting-0077137
A storeroom has 1363 file boxes. The office uses 26 a day. How many are left after 9 days? A short script: ```python stock = 1363 per_day = 26 days = 9 left = stock - per_day * days # 1129 print(left) ``` The program outputs 1129. 1129 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1129", "printed": "1129", "notation": null}
nlprog_det-setting-0077138
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? A few lines of Python do it: ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` The printout reads 25. The remaining balance is $25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077139
How many units at $40 each (variable cost $34) cover $4,000 of fixed costs? Code: ```python import math fixed = 4000 price = 40 variable = 34 units = math.ceil(fixed / (price - variable)) # 667 print(units) ``` Output: 667 Break-even is 667 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0077140
Which is cheaper per unit: 8 for $7.06 (A) or 15 for $13.20 (B)? Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0077141
Papers were served by mail on April 26, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? It is due May 29, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2025-05-29", "printed": "2025-05-29", "notation": null}
nlprog_det-setting-0077142
<|start|><|system|> Give the answer first.<|eot|> <|user|> Lucia lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> principal = 1000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 320.0 print(f"{interest:.2f}") The prin...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Lucia lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": " principal = 1000\n rate = 8 / 100 # 0.08\n years = 4\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0077143
<|start|><|user|> Split $707 between Ivan and Yusuf in the ratio 2 to 5. What is Ivan's share?<|eot|> <|assistant|> Ivan gets $202.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $707 between Ivan and Yusuf in the ratio 2 to 5. What is Ivan's share?" }, { "role": "assistant", "content": "Ivan gets $202." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0077144
A pack of 10 desk lamps sells for $510. What does each cost? In Python: ```python total = 510 count = 10 per_item = total // count print(per_item) ``` It prints: 51 Each one costs $51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0077145
<|start|><|system|> You may call the tools below. [{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> What simple interest does $8,0...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0077146
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 55-page copy cost? ```python pages = 55 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 37.5 print(f"{cost:.2f}") ``` (Run result: 37.50) The total is $37.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "37.50", "printed": "37.50", "notation": null}
nlprog_det-setting-0077147
With 20% off, what does a $300 backpack cost? Let's compute it with Python. ```python price = 300 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 240.0 print(f"{sale_price:.2f}") ``` Executed, it shows: 240.00 The sale price is $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0077148
A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term? Script: ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` That prints: 50400 In total, $50,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0077149
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "298.08", "printed": "298.08", "notation": null}
nlprog_det-setting-0077150
2 books come back 28 days late, at $0.15 a day each. What is the fine? Script: ```python per_day = 0.15 days_late = 28 books = 2 fine = per_day * days_late * books print(f"{fine:.2f}") ``` The program outputs: 8.40 The fine is $8.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "8.40", "printed": "8.40", "notation": null}
nlprog_det-setting-0077151
<|start|><|user|> Goods bought on November 17, 2023 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2023, 11, 17) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(e...
chat
[ { "role": "user", "content": "Goods bought on November 17, 2023 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2023, 11, 17)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = d...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2026-11-17", "printed": "2026-11-17", "notation": null}
nlprog_det-setting-0077152
<|start|><|user|> Split $1,437 between Tobias and Elena in the ratio 1 to 2. What is Tobias's share?<|eot|> <|assistant|> ```python total = 1437 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 479 print(share_a) ``` Result: 479 Tobias gets $479.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,437 between Tobias and Elena in the ratio 1 to 2. What is Tobias's share?" }, { "role": "assistant", "content": "```python\ntotal = 1437\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 479\nprint(share_a)\n```\nResult:\n479\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "479", "printed": "479", "notation": null}
nlprog_det-setting-0077153
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` The code prints 3960.00. The lawyer's fee comes ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 33 / 100 # 0.33\nfee = recovery * r...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0077154
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Printing costs 12 cents a page. What does it cost to print 180 copies of a 40-page handout?<|eot|> <|assistant|> ```python pages = 40 copies = 180 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 864.0 print(f"{cost:.2f}") ``` Running it prints ...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 180 copies of a 40-page handout?" }, { "role": "assistant", "content": "```python\npages = 40\ncopies = 180\ncost_per_page = 0.12\nco...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "864.00", "printed": "864.00", "notation": null}
nlprog_det-setting-0077155
One can of paint covers 350 square feet. How many cans are needed for 674 square feet of wall? We write it as a program: ```python import math area = 674 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` That prints: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0077156
An invoice lists 17 keyboards at $4 each, plus 8% sales tax. What is the invoice total? The total with tax is $73.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "73.44", "printed": "73.44", "notation": null}
nlprog_det-setting-0077158
A $2,400 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? We can compute it in Python. principal = 2400 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 360.0 paymen...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0077159
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 722 square feet of wall?<|eot|> <|assistant|> ```python import math area = 722 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Shell output: 3 Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 722 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 722\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nShell output: 3\n\nBuy...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0077160
<|start|><|user|> Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) That prints 2....
chat
[ { "role": "user", "content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": " revenue = 20500\n costs = 20000\n profit = revenue - costs # 500\n margin = profit / revenue * 100 # 2.43...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0077161
$5,000 is invested at 5% compounded yearly. What is it worth after 5 years? ```python principal = 5000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 6381.4078125000015 print(f"{value:.2f}") ``` Run result: 6381.41 It is worth $6,381.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "6381.41", "printed": "6381.41", "notation": null}
nlprog_det-setting-0077162
<|start|><|user|> How many whole days and leftover hours are in 65 hours?<|eot|> <|assistant|> ```python hours = 65 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The script prints 2 days and 17 hours, as expected. 65 hours is 2 days and 17 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 65 hours?" }, { "role": "assistant", "content": "```python\nhours = 65\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe script prints 2 days and 17 hours, as expected.\n\n65 hours is 2 ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2 days and 17 hours", "printed": "2 days and 17 hours", "notation": null}
nlprog_det-setting-0077163
<|start|><|user|> Convert 0 °C to Fahrenheit.<|eot|> <|assistant|> It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 0 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 32 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0077164
<|start|><|user|> A 7 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 7 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 25 print(tiles) ``` Console: 25 It takes 25 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 7\nwidth = 14\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 25\nprint(tiles)\n```\nConsole:\n25...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0077165
Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Profit is 5.3% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5.3", "printed": "5.3", "notation": null}
nlprog_det-setting-0077166
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? Written as code: principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 payment = (princi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0077167
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> What is a 18% tip on a $186.68 bill?<|eot|> <|assistant|> Leave $33.60.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "What is a 18% tip on a $186.68 bill?" }, { "role": "assistant", "content": "Leave $33.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "33.60", "printed": "33.60", "notation": null}
nlprog_det-setting-0077168
<|start|><|user|> A 6-month warranty starts on October 7, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2026, 10, 7) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 6-month warranty starts on October 7, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2026, 10, 7)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2027-04-07", "printed": "2027-04-07", "notation": null}
nlprog_det-setting-0077169
<|start|><|system|> Functions: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "run_pytho...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0077170
<|start|><|system|> You may call the tools below. [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 44.4 km to mete...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "44400", "printed": "44400", "notation": null}
nlprog_det-setting-0077171
How many meters are in 9.6 kilometers? Translated to Python: ```python km = 9.6 meters = km * 1000 # 9600.0 print(round(meters)) ``` Interpreter output: 9600 That is 9,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "9600", "printed": "9600", "notation": null}
nlprog_det-setting-0077172
Convert 47.8 km to meters. Program: ```python km = 47.8 meters = km * 1000 # 47800.0 print(round(meters)) ``` Running it prints: 47800 47,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "47800", "printed": "47800", "notation": null}
nlprog_det-setting-0077173
What is the total rent on a 24-month lease at $1,475 a month? One way, in code: ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` (Run result: 35400) In total, $35,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0077174
What average speed covers 335 miles in 1 hours? We write it as a program: ```python distance = 335 hours = 1 speed = distance / hours print(round(speed)) ``` Interpreter output — 335 It averages 335 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "335", "printed": "335", "notation": null}
nlprog_det-setting-0077175
What commission does Bilal make on $117,752 in sales at 4%? Let the code do the arithmetic: ```python sales = 117752 rate = 4 / 100 # 0.04 commission = sales * rate # 4710.08 print(f"{commission:.2f}") ``` When run, it prints 4710.08, as expected. Bilal earns $4,710.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4710.08", "printed": "4710.08", "notation": null}
nlprog_det-setting-0077176
If a 135-minute hearing begins at 11:20 AM, what time does it finish? ```python start = 11 * 60 + 20 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed = 1:35 PM The hearing finishes at 1:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1:35 PM", "printed": "1:35 PM", "notation": null}
nlprog_det-setting-0077177
What average speed covers 498 miles in 2 hours? Python code: ```python distance = 498 hours = 2 speed = distance / hours # 249.0 print(round(speed)) ``` The printout reads 249. The average speed is 249 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "249", "printed": "249", "notation": null}
nlprog_det-setting-0077178
Attendance was 40 out of 40. Express it as a percent. In code: ```python present = 40 total = 40 percent = present / total * 100 # 100.0 print(round(percent, 1)) ``` The interpreter prints: 100.0 Attendance was 100.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0077179
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Convert 4 h 14 min (the length of a training session) to minutes.<|eot|> <|assistant|> hours = 4 minutes = 14 total_minutes = hours * 60 + minutes # 254 print(total_minutes) Program output: 254 The training session lasted 254 minutes.<|e...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Convert 4 h 14 min (the length of a training session) to minutes." }, { "role": "assistant", "content": " hours = 4\n minutes = 14\n total_minutes = hours * 60 + minutes # 254\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0077180
Starting from $20,000, the team spends $2,303, $1,782, $1,095, $1,691. What remains? We write it as a program: ```python budget = 20000 expenses = [2303, 1782, 1095, 1691] left = budget - sum(expenses) # 13129 print(left) ``` Printed: 13129 The remaining budget is $13,129.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "13129", "printed": "13129", "notation": null}
nlprog_det-setting-0077181
<|start|><|user|> Pack A has 10 items for $5.19. Pack B has 30 items for $11.31. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 5.19 / 10 # 0.519 pack_b = 11.31 / 30 # 0.377 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Output of the run — B B has the lower unit pri...
chat
[ { "role": "user", "content": "Pack A has 10 items for $5.19. Pack B has 30 items for $11.31. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 5.19 / 10 # 0.519\npack_b = 11.31 / 30 # 0.377\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0077182
At $0.67 per mile, what is the reimbursement for 629 miles? ```python miles = 629 rate = 0.67 reimbursement = miles * rate # 421.43 print(f"{reimbursement:.2f}") ``` stdout: 421.43 Bruna is owed $421.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "421.43", "printed": "421.43", "notation": null}
nlprog_det-setting-0077183
<|start|><|user|> Carmen has 10 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|> <|assistant|> The filings cost $1,250 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Carmen has 10 documents to file, and each filing costs $125. How much are the filing fees in total?" }, { "role": "assistant", "content": "The filings cost $1,250 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0077184
Monthly: $19. Annual: $204. What is saved per year by paying annually? Program: ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Running it prints 24, as expected. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0077185
With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal. Let's compute it with Python. ```python revenue = 16500 costs = 12500 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 24.242424242424242 print(round(margin, 1)) ``` Result: 24.2 The margin is 24....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0077186
Which is cheaper per unit: 12 for $11.64 (A) or 15 for $19.80 (B)? Python code: ```python pack_a = 11.64 / 12 # 0.9700000000000001 pack_b = 19.8 / 15 # 1.32 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The program prints: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0077187
If a 50-minute hearing begins at 8:45 AM, what time does it finish? The hearing finishes at 9:35 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "9:35 AM", "printed": "9:35 AM", "notation": null}
nlprog_det-setting-0077188
At 1% a month (simple), what interest builds on $7,500 over 6 months? A Python solution: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` (Result: 450.00) $450.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0077189
7 walks at 400 calories each burn how many calories in total? ```python per_session = 400 sessions = 7 total = per_session * sessions # 2800 print(total) ``` Printed result — 2800 That burns 2800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0077190
Express 341 hours in days and hours. That is 14 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "14 days and 5 hours", "printed": "14 days and 5 hours", "notation": null}
nlprog_det-setting-0077191
Which is cheaper per unit: 12 for $4.75 (A) or 20 for $13.04 (B)? Computation in Python: ```python pack_a = 4.75 / 12 # 0.3958333333333333 pack_b = 13.04 / 20 # 0.6519999999999999 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` stdout: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0077192
If a 3-year limitations period starts on March 23, 2015, when does it end? ```python from datetime import date accrued = date(2015, 3, 23) # datetime.date(2015, 3, 23) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 3, 23) print(expires.isoformat()) ``` Shell output: 2018-03-23 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2018-03-23", "printed": "2018-03-23", "notation": null}
nlprog_det-setting-0077193
<|start|><|user|> An office budget of $25,000 has expenses of $2,155, $1,307. How much of the budget is left?<|eot|> <|assistant|> $21,538 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,155, $1,307. How much of the budget is left?" }, { "role": "assistant", "content": "$21,538 is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "21538", "printed": "21538", "notation": null}
nlprog_det-setting-0077194
<|start|><|user|> Express 46 hours in days and hours.<|eot|> <|assistant|> 46 hours is 1 days and 22 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 46 hours in days and hours." }, { "role": "assistant", "content": "46 hours is 1 days and 22 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1 days and 22 hours", "printed": "1 days and 22 hours", "notation": null}
nlprog_det-setting-0077195
<|start|><|system|> Give the answer first.<|eot|> <|user|> Parking is $5 per hour with a daily maximum of $18. What do 4 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 4 daily_max = 18 cost = min(rate * hours, daily_max) print(cost) ``` Console output: 18 The charge is $18.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $18. What do 4 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 4\ndaily_max = 18\ncost = min(rate * hours, daily_max...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0077196
The landlord deducts $120, $150 and $75 from a $800 deposit. What is returned to the tenant? $455 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "455", "printed": "455", "notation": null}
nlprog_det-setting-0077197
<|start|><|user|> What day of the week is October 23, 2001?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2001, 10, 23) # datetime.date(2001, 10, 23) print(hearing.strftime("%A")) ``` On running, it outputs Tuesday. It is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is October 23, 2001?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2001, 10, 23) # datetime.date(2001, 10, 23)\nprint(hearing.strftime(\"%A\"))\n```\nOn running, it outputs Tuesday.\n\nIt is a Tuesd...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0077198
<|start|><|user|> A quorum is 2/3 of the 48 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 48 quorum = math.ceil(members * 2 / 3) # 32 print(quorum) ``` Execution result: 32 32 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 48 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 48\nquorum = math.ceil(members * 2 / 3) # 32\nprint(quorum)\n```\nExecution result: 32\n\n32 members are needed."...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0077199
The statute was enacted in 1998. How many years had passed by 2024? Python makes this quick: ```python start_year = 1998 end_year = 2024 print(end_year - start_year) ``` Out = 26 26 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0077200
What does $5,000 grow to in 2 years at 5% annual compounding? Here is a short program for it. ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` Printed — 5512.50 The balance is $5,512.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0077201
<|start|><|user|> From a $2,500 retainer, 2 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> The remaining balance is $1,950.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 2 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "The remaining balance is $1,950." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0077203
<|start|><|user|> Prorate $1,800 of monthly rent for 18 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Run result — 1045.16 The tenant owes $1,045.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 18 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nRun result — 1045.1...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1045.16", "printed": "1045.16", "notation": null}
nlprog_det-setting-0077204
<|start|><|system|> Tools (call with JSON): [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source...
nlprog_det
setting
original
null
deterministic
[]
[]
332
{"gold": "1054.32", "printed": "1054.32", "notation": null}
nlprog_det-setting-0077205
A shift starts at 10:45 AM and lasts 40 minutes. When does it end? The program: ```python start = 10 * 60 + 45 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The script prints 11:25 AM. It ends at 11:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "11:25 AM", "printed": "11:25 AM", "notation": null}
nlprog_det-setting-0077206
A hall has 21 rows of 17 seats, and 40 seats are empty. How many people are seated? Coded up: ```python rows = 21 per_row = 17 empty = 40 seated = rows * per_row - empty # 317 print(seated) ``` # printed result: 317 317 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "317", "printed": "317", "notation": null}