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-0051302 | <|start|><|user|>
A shift runs from 10:23 AM to 1:27 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 23
end = 13 * 60 + 27
print(end - start)
```
Printed:
184
184 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:23 AM to 1:27 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 23\nend = 13 * 60 + 27\nprint(end - start)\n```\nPrinted:\n184\n\n184 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "184", "printed": "184", "notation": null} |
nlprog_det-setting-0051303 | At a 9% tax rate, what is the tax on $114.41?
The tax is $10.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "10.30", "printed": "10.30", "notation": null} |
nlprog_det-setting-0051304 | How much sales tax is charged on a $368.78 purchase at 9%?
A few lines of Python do it:
```python
price = 368.78
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 33.1902
print(f"{tax:.2f}")
```
That prints 33.19.
The tax is $33.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "33.19", "printed": "33.19", "notation": null} |
nlprog_det-setting-0051305 | A recipe for 4 people uses 100 grams of lentils. How many grams are needed for 12 people?
```python
grams = 100
serves = 4
needed_for = 12
scaled = grams * needed_for // serves # 300
print(scaled)
```
The run gives 300, as expected.
Use 300 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0051306 | One can of paint covers 350 square feet. How many cans are needed for 260 square feet of wall?
As a program:
```python
import math
area = 260
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
Executing it gives 1.
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0051307 | Which is cheaper per unit: 12 for $4.22 (A) or 30 for $29.44 (B)?
Python, step by step:
```python
pack_a = 4.22 / 12 # 0.3516666666666666
pack_b = 29.44 / 30 # 0.9813333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Python prints A, as expected.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0051308 | Scale 150 g of pasta from 6 servings to 4 servings.
100 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0051309 | How many units at $30 each (variable cost $20) cover $1,200 of fixed costs?
The Python version:
import math
fixed = 1200
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 120
print(units)
(Output: 120)
120 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0051310 | <|start|><|user|>
A penalty of $100 a day accrues, capped at $5,000. What is owed after 49 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 49
cap = 5000
fine = min(per_day * days, cap)
print(fine)
```
(Program output: 4900)
The fine is $4,900.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $5,000. What is owed after 49 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 49\ncap = 5000\nfine = min(per_day * days, cap)\nprint(fine)\n```\n(Program output: 4900)\n\nThe fine is $4,900."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4900", "printed": "4900", "notation": null} |
nlprog_det-setting-0051311 | A desk lamp costs $250. It is 10% off. What is the sale price?
Python code:
```python
price = 250
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
Run it and it prints 225.00.
It costs $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0051312 | A clerk's office charges $25 for each filing. Fiona submits 12 filings. What is the total fee?
Computation in Python:
```python
fee = 25
filings = 12
total = fee * filings # 300
print(total)
```
Executing it gives 300.
The filings cost $300 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0051313 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A pack of 4 envelopes sel... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 200 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0051314 | A pack of 6 envelopes sells for $228. What does each cost?
```python
total = 228
count = 6
per_item = total // count # 38
print(per_item)
```
Console:
38
The unit price is $38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0051315 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
How long, in days, is it from July 11, 2025 until April 22, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 7, 11) # datetime.date(2025, 7, 11)
second = date(2026, 4, 22) # datetime.date(2026, 4, 22)
print((second -... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "How long, in days, is it from July 11, 2025 until April 22, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 7, 11) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "285", "printed": "285", "notation": null} |
nlprog_det-setting-0051316 | How many 2-foot square tiles cover a 4 ft by 11 ft floor (round up)?
It takes 11 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0051317 | A seminar starts at 12:40 PM and lasts 105 minutes. When does it end?
Let's compute it with Python.
```python
start = 12 * 60 + 40
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution result: 2:25 PM
It ends at 2:25 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2:25 PM", "printed": "2:25 PM", "notation": null} |
nlprog_det-setting-0051318 | Convert 6,923 EUR to USD at 1 EUR = 0.92 USD.
Script:
```python
amount = 6923
rate = 0.92
converted = amount * rate # 6369.16
print(f"{converted:.2f}")
```
The run gives 6369.16, as expected.
That is 6,369.16 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "6369.16", "printed": "6369.16", "notation": null} |
nlprog_det-setting-0051319 | A shift runs from 7:34 AM to 9:30 AM. How long is it in minutes?
Python:
start = 7 * 60 + 34 # 454
end = 9 * 60 + 30 # 570
print(end - start)
What it prints: 116
116 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0051320 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
What is 30 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Python prints 86, as expected.
It equals 86 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "What is 30 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nPython prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0051321 | <|start|><|user|>
A 280-mile drive at a steady 60 mph takes how many minutes?<|eot|>
<|assistant|>
distance = 280
speed = 60
minutes = distance / speed * 60 # 280.0
print(round(minutes))
Run output — 280
The trip takes 280 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 280-mile drive at a steady 60 mph takes how many minutes?"
},
{
"role": "assistant",
"content": " distance = 280\n speed = 60\n minutes = distance / speed * 60 # 280.0\n print(round(minutes))\nRun output — 280\n\nThe trip takes 280 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "280", "printed": "280", "notation": null} |
nlprog_det-setting-0051322 | <|start|><|user|>
Rafael and Zoe share $812 in the ratio 3:4. How much does Rafael get?<|eot|>
<|assistant|>
```python
total = 812
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
Executed, it shows: 348
Rafael gets $348.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rafael and Zoe share $812 in the ratio 3:4. How much does Rafael get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 812\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nExecuted, it shows: 348\n\nRafael ge... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "348", "printed": "348", "notation": null} |
nlprog_det-setting-0051323 | <|start|><|user|>
Find the mean of these test scores: 103, 81, 50, 92, 83, 80 and 99.<|eot|>
<|assistant|>
The mean is 84.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 103, 81, 50, 92, 83, 80 and 99."
},
{
"role": "assistant",
"content": "The mean is 84."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0051324 | A recipe for 2 people uses 300 grams of rice. How many grams are needed for 10 people?
```python
grams = 300
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 1500
print(scaled)
```
Executing it gives 1500, as expected.
1500 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0051325 | <|start|><|user|>
12 hours of work at $225 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 12
rate = 225
bill = hours * rate # 2700
print(f"{bill:.2f}")
```
It outputs: 2700.00
The bill is $2,700.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 hours of work at $225 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 225\nbill = hours * rate # 2700\nprint(f\"{bill:.2f}\")\n```\nIt outputs: 2700.00\n\nThe bill is $2,700.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0051327 | A pack of 25 paper reams sells for $375. What does each cost?
Here is the program.
```python
total = 375
count = 25
per_item = total // count # 15
print(per_item)
```
Python prints 15.
The unit price is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0051328 | <|start|><|user|>
What average speed covers 118 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 118
hours = 2
speed = distance / hours # 59.0
print(round(speed))
```
Running this gives 59.
It averages 59 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 118 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 118\nhours = 2\nspeed = distance / hours # 59.0\nprint(round(speed))\n```\nRunning this gives 59.\n\nIt averages 59 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0051329 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
At $31.33 an hour, what does 32 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 31.33
hours = 32
earnings = rate * hours # 1002.56
print(f"{earnings:.2f}")
```
Running it prints 1002.56, as expected.
The pay is $1,002.56.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "At $31.33 an hour, what does 32 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 31.33\nhours = 32\nearnings = rate * hours # 1002.56\nprint(f\"{earnin... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1002.56", "printed": "1002.56", "notation": null} |
nlprog_det-setting-0051330 | <|start|><|user|>
A claim accrued on January 6, 2023. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
It runs out on January 6, 2026.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A claim accrued on January 6, 2023. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "It runs out on January 6, 2026."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2026-01-06", "printed": "2026-01-06", "notation": null} |
nlprog_det-setting-0051331 | A storeroom has 373 toner kits. The office uses 25 a day. How many are left after 14 days?
Set it up in Python:
```python
stock = 373
per_day = 25
days = 14
left = stock - per_day * days # 23
print(left)
```
Printed result — 23
23 toner kits are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0051332 | How many weekdays (Monday to Friday) fall after August 11, 2028 up to and including September 6, 2028?
The program:
```python
from datetime import date, timedelta
start = date(2028, 8, 11)
end = date(2028, 9, 6)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051333 | <|start|><|user|>
A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
The printout reads 48.
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 12\n yearly = 96\n savings = monthly * 12 - yearly # 48\n print(savings)\nThe printout reads 48.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0051334 | A 29 lb package ships at $12 base plus $2.50/lb. What is the charge?
In Python:
base = 12
per_pound = 2.5
weight = 29
cost = base + per_pound * weight # 84.5
print(f"{cost:.2f}")
The interpreter prints 84.50.
The charge is $84.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "84.50", "printed": "84.50", "notation": null} |
nlprog_det-setting-0051336 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
From a $7,500 retainer, 8 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 8
rate = 275
left = retainer - hours * rate # 5300
print(left)
```
The code prints 5300.
The remaining balance is $5,30... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "From a $7,500 retainer, 8 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 8\nrate = 275\nleft = retainer - ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "5300", "printed": "5300", "notation": null} |
nlprog_det-setting-0051337 | 3 books come back 8 days late, at $0.25 a day each. What is the fine?
Script:
per_day = 0.25
days_late = 8
books = 3
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
Running this gives: 6.00
$6.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0051338 | <|start|><|user|>
If a 90-minute meeting begins at 4:45 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 16 * 60 + 45
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# output: 6:15 PM
The meeting finishes at 6:15 PM.<|eo... | chat | [
{
"role": "user",
"content": "If a 90-minute meeting begins at 4:45 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 16 * 60 + 45\nend = start + 90\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 | [] | [] | 130 | {"gold": "6:15 PM", "printed": "6:15 PM", "notation": null} |
nlprog_det-setting-0051339 | Count 45 days forward from October 19, 2020. What date is that?
The Python version:
```python
from datetime import date, timedelta
start = date(2020, 10, 19)
end = start + timedelta(days=45)
print(end.isoformat())
```
Printed result — 2020-12-03
The period ends on December 3, 2020. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2020-12-03", "printed": "2020-12-03", "notation": null} |
nlprog_det-setting-0051340 | Each of Elena's swims burns 350 calories. How many calories over 6 swims?
As a program:
```python
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
```
stdout:
2100
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0051341 | <|start|><|user|>
A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2000
new = 1200
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Output of the run: -40
It changed by -40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2000\nnew = 1200\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\nOutput of the run: -40\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0051342 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
The landlord deducts $150 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [150]
refund = deposit - sum(deductions) # 1850
print(refund)
```
(Result: 1850)
The refund is $1,850.<... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "The landlord deducts $150 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [150]\nrefund = dep... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1850", "printed": "1850", "notation": null} |
nlprog_det-setting-0051343 | A car travels 414 miles in 2 hours. What is its average speed in miles per hour?
The program:
```python
distance = 414
hours = 2
speed = distance / hours
print(round(speed))
```
Result — 207
The average speed is 207 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "207", "printed": "207", "notation": null} |
nlprog_det-setting-0051344 | Straight-line depreciation: cost $24,000, salvage $6,000, 6 years. How much per year?
Let's compute it with Python.
```python
cost = 24000
salvage = 6000
years = 6
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Interpreter output — 3000.00
Depreciation is $3,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0051345 | A count moves from 2,000 to 1,900. By what percent did it change (use a minus sign for a drop)?
```python
old = 2000
new = 1900
change = (new - old) / old * 100 # -5.0
print(round(change))
```
# output: -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0051346 | Leon's scores were 53, 61, 96, 74 and 66. What is the average score?
As Python:
scores = [53, 61, 96, 74, 66]
average = sum(scores) // len(scores) # 70
print(average)
# out: 70
The mean is 70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0051347 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Filing fees are $50 per document. What do 10 filings cost?<|eot|>
<|assistant|>
```python
fee = 50
filings = 10
total = fee * filings # 500
print(total)
```
That prints: 500
$500 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Filing fees are $50 per document. What do 10 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 10\ntotal = fee * filings # 500\nprint(total)\n```\nThat... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0051348 | 1.5 hours of work at $180 an hour: what is the total charge?
Python:
```python
hours = 1.5
rate = 180
bill = hours * rate # 270.0
print(f"{bill:.2f}")
```
The program outputs: 270.00
The bill is $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0051349 | Pack A has 8 items for $9.17. Pack B has 15 items for $17.92. Which has the lower price per item?
```python
pack_a = 9.17 / 8 # 1.14625
pack_b = 17.92 / 15 # 1.1946666666666668
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# printed: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0051350 | An invoice lists 27 badges at $2 each, plus 10% sales tax. What is the invoice total?
In code:
quantity = 27
unit_price = 2
subtotal = quantity * unit_price # 54
total = subtotal * (1 + 10 / 100) # 59.400000000000006
print(f"{total:.2f}")
Console output — 59.40
The invoice total is $59.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "59.40", "printed": "59.40", "notation": null} |
nlprog_det-setting-0051351 | One can of paint covers 400 square feet. How many cans are needed for 752 square feet of wall?
Here is the program.
```python
import math
area = 752
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
Interpreter output — 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0051352 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "eval_python", "description": "Runs a short Python snipp... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"e... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0051353 | <|start|><|user|>
2 books come back 7 days late, at $0.15 a day each. What is the fine?<|eot|>
<|assistant|>
$2.10 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 7 days late, at $0.15 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "$2.10 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2.10", "printed": "2.10", "notation": null} |
nlprog_det-setting-0051354 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A library charges $0.10 per book per day late. What is the fine for 3 books that are 16 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 16
books = 3
fine = per_day * days_late * books # 4.800000000000001
print(f"{fine:.2f}")
```
Console outp... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 3 books that are 16 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 16\nbooks = 3\nfine ... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "4.80", "printed": "4.80", "notation": null} |
nlprog_det-setting-0051355 | A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 4 thousand gallons?
Python does the arithmetic:
```python
base = 20
rate = 4.75
used = 4
free = 0
bill = base + rate * max(0, used - free) # 39.0
print(f"{bill:.2f}")
```
Console output: 39.00
The bill is $39.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "39.00", "printed": "39.00", "notation": null} |
nlprog_det-setting-0051356 | Fines run at $25 per day up to a maximum of $1,000. How much after 28 days? The fine is $700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0051357 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 3 months?
Here is the program.
```python
balance = 12000
monthly_rate = 1 / 100
months = 3
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Run result = 360.00
The interest is $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0051358 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 36 months. How large is a payment?
The monthly payment is $78.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "78.67", "printed": "78.67", "notation": null} |
nlprog_det-setting-0051359 | Each of Zoe's bike rides burns 300 calories. How many calories over 6 bike rides?
```python
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
```
The code prints: 1800
1800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0051360 | <|start|><|user|>
With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 9000
costs = 8000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
Running it prints 11.1, as e... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 9000\ncosts = 8000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 11.1111111111111... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0051361 | <|start|><|user|>
A shift runs from 8:38 AM to 11:24 AM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 38 # 518
end = 11 * 60 + 24 # 684
print(end - start)
```
(Execution result: 166)
166 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 8:38 AM to 11:24 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 38 # 518\nend = 11 * 60 + 24 # 684\nprint(end - start)\n```\n(Execution result: 166)\n\n166 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "166", "printed": "166", "notation": null} |
nlprog_det-setting-0051362 | A 420-page report must be reviewed in 7 days. How many pages a day is that, evenly?
Set it up in Python:
```python
pages = 420
days = 7
per_day = pages // days # 60
print(per_day)
```
It prints 60, as expected.
60 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0051365 | From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?
Python version:
```python
retainer = 2500
hours = 9
rate = 275
left = retainer - hours * rate # 25
print(left)
```
Run result — 25
The remaining balance is $25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0051366 | Each of Yusuf's walks burns 200 calories. How many calories over 6 walks?
A short script:
```python
per_session = 200
sessions = 6
total = per_session * sessions # 1200
print(total)
```
stdout: 1200
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0051367 | <|start|><|user|>
A 26 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
Shipping costs $47.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 26 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "Shipping costs $47.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "47.00", "printed": "47.00", "notation": null} |
nlprog_det-setting-0051368 | Joelle earns a 5% commission on $80,191 of sales. What is the commission? Joelle earns $4,009.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "4009.55", "printed": "4009.55", "notation": null} |
nlprog_det-setting-0051369 | Convert 2 h 49 min (the length of a training session) to minutes.
Code:
```python
hours = 2
minutes = 49
total_minutes = hours * 60 + minutes # 169
print(total_minutes)
```
stdout:
169
That is 169 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0051370 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
At $0.58 per mile, what is the reimbursement for 533 miles?<|eot|>
<|assistant|>
Zoe is owed $309.14.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 533 miles?"
},
{
"role": "assistant",
"content": "Zoe is owed $309.14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "309.14", "printed": "309.14", "notation": null} |
nlprog_det-setting-0051371 | <|start|><|user|>
Sales went from 400 to 440. What is the percent change?<|eot|>
<|assistant|>
```python
old = 400
new = 440
change = (new - old) / old * 100 # 10.0
print(round(change))
```
The script prints 10, as expected.
It changed by 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 400 to 440. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 440\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nThe script prints 10, as expected.\n\nIt changed by 10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0051372 | A 8% increase is applied to $1,800 monthly rent. What is the new amount?
In code:
```python
rent = 1800
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1944.0000000000002
print(f"{new_rent:.2f}")
```
(Console output: 1944.00)
The new rent is $1,944.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0051373 | <|start|><|user|>
Convert 7,807 CHF to USD at 1 CHF = 1.31 USD.<|eot|>
<|assistant|>
```python
amount = 7807
rate = 1.31
converted = amount * rate # 10227.17
print(f"{converted:.2f}")
```
Program output: 10227.17
That is 10,227.17 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 7,807 CHF to USD at 1 CHF = 1.31 USD."
},
{
"role": "assistant",
"content": "```python\namount = 7807\nrate = 1.31\nconverted = amount * rate # 10227.17\nprint(f\"{converted:.2f}\")\n```\nProgram output: 10227.17\n\nThat is 10,227.17 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "10227.17", "printed": "10227.17", "notation": null} |
nlprog_det-setting-0051374 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A pack of 25 pens sells for $450. What does each cost?<|eot|>
<|assistant|>
```python
total = 450
count = 25
per_item = total // count # 18
print(per_item)
```
stdout: 18
Each one costs $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A pack of 25 pens sells for $450. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 450\ncount = 25\nper_item = total // count # 18\nprint(per_item)\n```\nstdout: 18... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051375 | 22 copies of a 18-page packet are printed at $0.12 per page. What is the cost?
Written as code:
```python
pages = 18
copies = 22
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Shell output: 47.52
Printing costs $47.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "47.52", "printed": "47.52", "notation": null} |
nlprog_det-setting-0051378 | Equipment costs $18,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?
The Python version:
```python
cost = 18000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Printed — 3000.00
Depreciation is $3,000.00 per... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0051379 | <|start|><|user|>
How many of 10 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 10
needed = math.ceil(voters * 75 / 100) # 8
print(needed)
```
(Console output: 8)
At least 8 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 10 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 10\nneeded = math.ceil(voters * 75 / 100) # 8\nprint(needed)\n```\n(Console output: 8)\n\nAt least 8 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0051380 | Fines run at $100 per day up to a maximum of $2,500. How much after 55 days?
Python does the arithmetic:
```python
per_day = 100
days = 55
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The interpreter prints: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0051381 | How many units at $25 each (variable cost $15) cover $4,000 of fixed costs?
One way, in code:
import math
fixed = 4000
price = 25
variable = 15
units = math.ceil(fixed / (price - variable)) # 400
print(units)
Console output: 400
Break-even is 400 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0051382 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 144 copies of a 5-page handout?<|eot|>
<|assistant|>
Printing costs $108.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 144 copies of a 5-page handout?"
},
{
"role": "assistant",
"content": "Printing costs $108.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0051383 | A $240 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
Script:
```python
bill = 240
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 94.39999999999999
print(f"{each:.2f}")
```
Python prints 94.40, as expected.
Each person pays $94.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "94.40", "printed": "94.40", "notation": null} |
nlprog_det-setting-0051384 | <|start|><|system|>
Tools you may use:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Someone works 40 hours at $16.1... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "644.80", "printed": "644.80", "notation": null} |
nlprog_det-setting-0051385 | A board has 41 members. A majority is more than half. How many votes make a majority?
Let the code do the arithmetic:
```python
members = 41
majority = members // 2 + 1 # 21
print(majority)
```
(Printed: 21)
21 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0051386 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after August 23, 2026 up to and including October 2, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 8, 23)
end = date(2026, 10, 2)
count = 0
for k in range(1, (en... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after August 23, 2026 up to and including October 2, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timede... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0051387 | 4 books come back 10 days late, at $0.15 a day each. What is the fine?
Program:
```python
per_day = 0.15
days_late = 10
books = 4
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
```
Printed — 6.00
$6.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0051388 | A 6% increase is applied to $2,200 monthly rent. What is the new amount?
Python makes this quick:
```python
rent = 2200
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 2332.0
print(f"{new_rent:.2f}")
```
(stdout: 2332.00)
It rises to $2,332.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2332.00", "printed": "2332.00", "notation": null} |
nlprog_det-setting-0051389 | At $0.70 per mile, what is the reimbursement for 153 miles?
A few lines of Python do it:
```python
miles = 153
rate = 0.7
reimbursement = miles * rate # 107.1
print(f"{reimbursement:.2f}")
```
stdout = 107.10
The reimbursement is $107.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "107.10", "printed": "107.10", "notation": null} |
nlprog_det-setting-0051390 | How many weekdays (Monday to Friday) fall after October 18, 2019 up to and including October 24, 2019?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2019, 10, 18)
end = date(2019, 10, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k))... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0051391 | Goods bought on November 8, 2024 carry a 18-month warranty. When does it expire?
The Python version:
from datetime import date
start = date(2024, 11, 8)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.iso... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2026-05-08", "printed": "2026-05-08", "notation": null} |
nlprog_det-setting-0051392 | Goods bought on August 18, 2025 carry a 24-month warranty. When does it expire?
Here is a short program for it.
```python
from datetime import date
start = date(2025, 8, 18)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2027-08-18", "printed": "2027-08-18", "notation": null} |
nlprog_det-setting-0051393 | The firm was founded in 2015. How many years had passed by 2026? That is 11 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0051394 | An invoice lists 17 binders at $4 each, plus 8% sales tax. What is the invoice total?
Script:
quantity = 17
unit_price = 4
subtotal = quantity * unit_price # 68
total = subtotal * (1 + 8 / 100) # 73.44
print(f"{total:.2f}")
# execution result: 73.44
The invoice total is $73.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "73.44", "printed": "73.44", "notation": null} |
nlprog_det-setting-0051395 | How many whole days and leftover hours are in 277 hours? 277 hours is 11 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "11 days and 13 hours", "printed": "11 days and 13 hours", "notation": null} |
nlprog_det-setting-0051396 | <|start|><|system|>
Tools you may use:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"calc\", \"description\": \"Evaluates Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 319 | {"gold": "2:45 PM", "printed": "2:45 PM", "notation": null} |
nlprog_det-setting-0051397 | <|start|><|user|>
How many meters are in 80.3 kilometers?<|eot|>
<|assistant|>
```python
km = 80.3
meters = km * 1000 # 80300.0
print(round(meters))
```
Running this gives 80300.
80,300 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 80.3 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 80.3\nmeters = km * 1000 # 80300.0\nprint(round(meters))\n```\nRunning this gives 80300.\n\n80,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "80300", "printed": "80300", "notation": null} |
nlprog_det-setting-0051398 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A lawyer's fee is 25% of a $60,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The fee is $15,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A lawyer's fee is 25% of a $60,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The fee is $15,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0051399 | A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?
Let the code do the arithmetic:
```python
old = 2000
new = 1200
change = (new - old) / old * 100 # -40.0
print(round(change))
```
(Console output: -40)
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0051400 | What commission does Sofia make on $46,690 in sales at 4%?
Here is a short program for it.
```python
sales = 46690
rate = 4 / 100 # 0.04
commission = sales * rate # 1867.6000000000001
print(f"{commission:.2f}")
```
It prints: 1867.60
Sofia earns $1,867.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1867.60", "printed": "1867.60", "notation": null} |
nlprog_det-setting-0051401 | <|start|><|system|>
Tools you may use:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "calc", "description": "Runs a short Python snippet a... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\... | nlprog_det | setting | original | null | deterministic | [] | [] | 462 | {"gold": "2026-11-03", "printed": "2026-11-03", "notation": null} |
nlprog_det-setting-0051402 | 5 friends split a $180 bill plus a 18% tip evenly. How much does each pay?
As Python:
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 42.48
print(f"{each:.2f}")
```
Out = 42.48
The share is $42.48 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "42.48", "printed": "42.48", "notation": null} |
nlprog_det-setting-0051403 | Divide 68 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
One way, in code:
```python
total = 68
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints: 11 each, 2 left over
11 each, 2 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "11 each, 2 left over", "printed": "11 each, 2 left over", "notation": null} |
nlprog_det-setting-0051404 | How many of 109 votes make 75% (round up)?
The program:
```python
import math
voters = 109
needed = math.ceil(voters * 75 / 100) # 82
print(needed)
```
Output: 82
82 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0051405 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A trial run... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0051406 | Eamon buys 6 boxes of 8 envelopes each and gives away 18 envelopes. How many envelopes are left?
```python
boxes = 6
per_box = 8
given_away = 18
left = boxes * per_box - given_away # 30
print(left)
```
# execution result: 30
That leaves 30 envelopes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0051407 | A $9,000 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Computation in Python:
```python
principal = 9000
annual_rate = 5 / 100
months = 12
interest = principal * annual_rate * months / 12
payment = (principal + interest) / mont... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "787.50", "printed": "787.50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.