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-0053245 | <|start|><|user|>
From a $7,500 retainer, 12 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 12
rate = 200
left = retainer - hours * rate # 5100
print(left)
```
The script prints 5100.
$5,100 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 12 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 12\nrate = 200\nleft = retainer - hours * rate # 5100\nprint(left)\n```\nThe script prints 5100.\n\n$5,100 of the... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0053246 | The statute was enacted in 2005. How many years had passed by 2022?
Python makes this quick:
```python
start_year = 2005
end_year = 2022
print(end_year - start_year)
```
(Program output: 17)
That is 17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0053247 | A 24-month warranty starts on November 26, 2021. On what date does it end?
Program:
```python
from datetime import date
start = date(2021, 11, 26)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Out — 2023-11-26... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2023-11-26", "printed": "2023-11-26", "notation": null} |
nlprog_det-setting-0053248 | A library charges $0.20 per book per day late. What is the fine for 2 books that are 24 days late?
Coded up:
```python
per_day = 0.2
days_late = 24
books = 2
fine = per_day * days_late * books # 9.600000000000001
print(f"{fine:.2f}")
```
What it prints: 9.60
The fine is $9.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "9.60", "printed": "9.60", "notation": null} |
nlprog_det-setting-0053249 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "2650", "printed": "2650", "notation": null} |
nlprog_det-setting-0053250 | At 1.5% a month (simple), what interest builds on $2,500 over 6 months?
A few lines of Python do it:
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
Result = 225.00
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0053251 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Sp... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0053252 | Buying 2 file boxes at $6 each, 1 chairs at $21 each, 4 headsets at $4 each, someone hands over $50. What change comes back?
In Python:
items = [(2, 6), (1, 21), (4, 4)]
total = sum(q * p for q, p in items)
paid = 50
change = paid - total
print(change)
Executing it gives: 1
$1 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0053253 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0053254 | Convert 8,370 USD to EUR at 1 USD = 1.35 EUR.
A short script:
```python
amount = 8370
rate = 1.35
converted = amount * rate # 11299.5
print(f"{converted:.2f}")
```
Interpreter output: 11299.50
That is 11,299.50 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "11299.50", "printed": "11299.50", "notation": null} |
nlprog_det-setting-0053255 | <|start|><|user|>
Someone works 38 hours at $16.53 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 16.53
hours = 38
earnings = rate * hours # 628.1400000000001
print(f"{earnings:.2f}")
```
(Out: 628.14)
The pay is $628.14.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 38 hours at $16.53 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.53\nhours = 38\nearnings = rate * hours # 628.1400000000001\nprint(f\"{earnings:.2f}\")\n```\n(Out: 628.14)\n\nThe pay is $628.14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "628.14", "printed": "628.14", "notation": null} |
nlprog_det-setting-0053256 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 2250
p... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed =... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0053257 | <|start|><|user|>
Buying 1 water bottles at $25 each, 2 keyboards at $3 each, 2 markers at $10 each, 2 sticky pads at $16 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 25), (2, 3), (2, 10), (2, 16)]
total = sum(q * p for q, p in items)
paid = 100
change = paid - tota... | chat | [
{
"role": "user",
"content": "Buying 1 water bottles at $25 each, 2 keyboards at $3 each, 2 markers at $10 each, 2 sticky pads at $16 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 25), (2, 3), (2, 10), (2, 16)]\ntotal = sum(... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0053258 | At 65 miles per hour, how many minutes does a 130-mile trip take?
A short script:
```python
distance = 130
speed = 65
minutes = distance / speed * 60
print(round(minutes))
```
Python prints 120, as expected.
120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0053259 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
35 calendars cost $6 apiece. With 5% tax added, what is the total?<|eot|>
<|assistant|>
quantity = 35
unit_price = 6
subtotal = quantity * unit_price # 210
total = subtotal * (1 + 5 / 100) # 220.5
print(f"{total:.2f}")
Execut... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "35 calendars cost $6 apiece. With 5% tax added, what is the total?"
},
{
"role": "assistant",
"content": " quantity = 35\n unit_price = 6\n subtotal = quantity * unit_price... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "220.50", "printed": "220.50", "notation": null} |
nlprog_det-setting-0053260 | 3 friends split a $180 bill plus a 15% tip evenly. How much does each pay?
Program:
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 68.99999999999999
print(f"{each:.2f}")
```
Output: 69.00
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0053261 | 3 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Set it up in Python:
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 3 # 6000.0
print(f"{per_client:.2f}")
```
(Execution result: 6000.00)
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0053262 | <|start|><|system|>
Functions:
{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "business_days", "description": "Count business day... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{\"n... | nlprog_det | setting | original | null | deterministic | [] | [] | 307 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0053263 | Buying 4 keyboards at $9 each, 3 hard drives at $16 each, someone hands over $100. What change comes back?
A short script:
```python
items = [(4, 9), (3, 16)]
total = sum(q * p for q, p in items) # 84
paid = 100
change = paid - total # 16
print(change)
```
Running it prints 16, as expected.
$16 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0053264 | 6 boxes hold 6 ink cartridges each. After 3 are handed out, how many are left?
```python
boxes = 6
per_box = 6
given_away = 3
left = boxes * per_box - given_away # 33
print(left)
```
Run output — 33
33 ink cartridges are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0053265 | A meal costs $172.72. How much is a 25% tip?
Let's compute it with Python.
```python
bill = 172.72
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 43.18
print(f"{tip:.2f}")
```
# run result: 43.18
The tip is $43.18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "43.18", "printed": "43.18", "notation": null} |
nlprog_det-setting-0053266 | Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Coded up:
```python
cost = 12000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 2500.0
print(f"{per_year:.2f}")
```
When run, it prints 2500.00.
$2,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2500.00", "printed": "2500.00", "notation": null} |
nlprog_det-setting-0053267 | <|start|><|user|>
How many 2-foot square tiles cover a 11 ft by 13 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
```
Running this gives 36.
It takes 36 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 11 ft by 13 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 13\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 36\nprint(tiles)\n```\nRunning this gives 36.... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0053268 | How many minutes pass from 7:44 AM to 11:56 AM on the same day?
A few lines of Python do it:
```python
start = 7 * 60 + 44 # 464
end = 11 * 60 + 56 # 716
print(end - start)
```
Executed, it shows 252.
It is 252 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0053269 | A trial runs from June 16, 2020 to June 27, 2020, counting both days. How many calendar days is that?
As a program:
```python
from datetime import date
first = date(2020, 6, 16) # datetime.date(2020, 6, 16)
last = date(2020, 6, 27) # datetime.date(2020, 6, 27)
days = (last - first).days + 1 # 12
print(days)
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0053270 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
To read 612 pages in 17 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 612
days = 17
per_day = pages // days # 36
print(per_day)
```
Run result = 36
That is 36 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "To read 612 pages in 17 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 612\ndays = 17\nper_day = pages // days # 36\nprint(per_day)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0053271 | Count the days between March 17, 2025 and August 19, 2025.
In Python:
from datetime import date
first = date(2025, 3, 17) # datetime.date(2025, 3, 17)
second = date(2025, 8, 19) # datetime.date(2025, 8, 19)
print((second - first).days)
(Out: 155)
There are 155 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "155", "printed": "155", "notation": null} |
nlprog_det-setting-0053272 | <|start|><|user|>
At $0.58 per mile, what is the reimbursement for 323 miles?<|eot|>
<|assistant|>
```python
miles = 323
rate = 0.58
reimbursement = miles * rate # 187.33999999999997
print(f"{reimbursement:.2f}")
```
(Program output: 187.34)
Arjun is owed $187.34.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.58 per mile, what is the reimbursement for 323 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 323\nrate = 0.58\nreimbursement = miles * rate # 187.33999999999997\nprint(f\"{reimbursement:.2f}\")\n```\n(Program output: 187.34)\n\nArjun is owe... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "187.34", "printed": "187.34", "notation": null} |
nlprog_det-setting-0053274 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?
Python does the arithmetic:
```python
base = 15
rate = 4.2
used = 4
free = 0
bill = base + rate * max(0, used - free) # 31.8
print(f"{bill:.2f}")
```
It prints 31.80.
$31.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "31.80", "printed": "31.80", "notation": null} |
nlprog_det-setting-0053275 | A 250-mile drive at a steady 50 mph takes how many minutes?
Python:
```python
distance = 250
speed = 50
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Executing it gives: 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0053276 | 723 files go into boxes of 50. How many boxes does that take?
A few lines of Python do it:
```python
import math
files = 723
per_box = 50
boxes = math.ceil(files / per_box) # 15
print(boxes)
```
Printed — 15
15 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0053277 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A 9 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 9
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 72
print(tiles)
```
The printout reads: 72
72 tiles ... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A 9 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 9\nwidth = 8\ntile = 1\ntiles = math.ceil... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0053278 | Dara earns a 3% commission on $105,205 of sales. What is the commission?
A short script:
```python
sales = 105205
rate = 3 / 100 # 0.03
commission = sales * rate # 3156.15
print(f"{commission:.2f}")
```
(stdout: 3156.15)
The commission is $3,156.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3156.15", "printed": "3156.15", "notation": null} |
nlprog_det-setting-0053279 | Copies cost $15 plus $0.25 for each page beyond 20. How much for 89 pages?
Set it up in Python:
```python
pages = 89
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 32.25
print(f"{cost:.2f}")
```
Result — 32.25
The total is $32.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "32.25", "printed": "32.25", "notation": null} |
nlprog_det-setting-0053280 | If a 40-minute hearing begins at 2:40 PM, what time does it finish?
```python
start = 14 * 60 + 40
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Program output: 3:20 PM
The hearing finishes at 3:20 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "3:20 PM", "printed": "3:20 PM", "notation": null} |
nlprog_det-setting-0053281 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
At 65 miles per hour, how many minutes does a 65-mile trip take?<|eot|>
<|assistant|>
```python
distance = 65
speed = 65
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
The interpreter prints 60.
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "At 65 miles per hour, how many minutes does a 65-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 65\nspeed = 65\nminutes = distance / speed * 60 # 60.0\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0053282 | <|start|><|user|>
Each of Cyrus's bike rides burns 300 calories. How many calories over 3 bike rides?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
```
Execution prints 900, as expected.
900 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Cyrus's bike rides burns 300 calories. How many calories over 3 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 3\ntotal = per_session * sessions # 900\nprint(total)\n```\nExecution prints 900, as expected.\n\n900... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0053283 | At an exchange rate of 1.08 USD per CHF, how many USD is 4,181 CHF?
As a program:
amount = 4181
rate = 1.08
converted = amount * rate # 4515.4800000000005
print(f"{converted:.2f}")
Execution result — 4515.48
That is 4,515.48 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4515.48", "printed": "4515.48", "notation": null} |
nlprog_det-setting-0053284 | A trial runs from October 18, 2021 to October 25, 2021, counting both days. How many calendar days is that?
Here's the code.
```python
from datetime import date
first = date(2021, 10, 18) # datetime.date(2021, 10, 18)
last = date(2021, 10, 25) # datetime.date(2021, 10, 25)
days = (last - first).days + 1 # 8
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0053286 | $5,000 is invested at 5% compounded yearly. What is it worth after 5 years?
We write it as a program:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 6381.4078125000015
print(f"{value:.2f}")
```
Executing it gives 6381.41, as expected.
The balance is $6,381.41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "6381.41", "printed": "6381.41", "notation": null} |
nlprog_det-setting-0053287 | Shipping costs $8 plus $2.50 per pound. What does a 20-pound parcel cost to ship?
Coded up:
```python
base = 8
per_pound = 2.5
weight = 20
cost = base + per_pound * weight # 58.0
print(f"{cost:.2f}")
```
Printed:
58.00
Shipping costs $58.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0053288 | A count moves from 500 to 250. By what percent did it change (use a minus sign for a drop)?
A Python solution:
```python
old = 500
new = 250
change = (new - old) / old * 100 # -50.0
print(round(change))
```
Out = -50
The change is -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0053289 | A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?
Programmatically:
```python
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
```
Result — 3960.00
The fee is $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0053290 | <|start|><|system|>
Functions:
{"name": "run_python", "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"]}}<|eot|>
<|user|>
A clerk's office ch... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"run_python\", \"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... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0053291 | An invoice lists 28 envelopes at $7 each, plus 7% sales tax. What is the invoice total?
Here is the program.
```python
quantity = 28
unit_price = 7
subtotal = quantity * unit_price # 196
total = subtotal * (1 + 7 / 100) # 209.72
print(f"{total:.2f}")
```
# program output: 209.72
The total with tax is $209.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "209.72", "printed": "209.72", "notation": null} |
nlprog_det-setting-0053292 | One can of paint covers 400 square feet. How many cans are needed for 874 square feet of wall?
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0053293 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
7 walks at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
```
Python prints: 1400
1400 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "7 walks at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions ... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0053294 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
What percentage of $10,000 is $3,000?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 3000
percent = spent / budget * 100 # 30.0
print(round(percent, 1))
```
It prints: 30.0
30.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "What percentage of $10,000 is $3,000?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 3000\npercent = spent / budget * 100 # 30.0\nprint(round(percent, 1))\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0053295 | Printing costs 5 cents a page. What does it cost to print 184 copies of a 27-page handout?
The computation:
```python
pages = 27
copies = 184
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 248.4
print(f"{cost:.2f}")
```
It prints: 248.40
The job costs $248.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "248.40", "printed": "248.40", "notation": null} |
nlprog_det-setting-0053296 | <|start|><|user|>
How much sales tax is charged on a $578.58 purchase at 5%?<|eot|>
<|assistant|>
price = 578.58
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 28.929000000000002
print(f"{tax:.2f}")
Shell output — 28.93
$28.93 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $578.58 purchase at 5%?"
},
{
"role": "assistant",
"content": " price = 578.58\n tax_rate = 5 / 100 # 0.05\n tax = price * tax_rate # 28.929000000000002\n print(f\"{tax:.2f}\")\nShell output — 28.93\n\n$28.93 in tax."... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "28.93", "printed": "28.93", "notation": null} |
nlprog_det-setting-0053297 | <|start|><|user|>
Starting from $20,000, the team spends $1,394, $2,808, $1,864, $1,063. What remains?<|eot|>
<|assistant|>
The remaining budget is $12,871.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $20,000, the team spends $1,394, $2,808, $1,864, $1,063. What remains?"
},
{
"role": "assistant",
"content": "The remaining budget is $12,871."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "12871", "printed": "12871", "notation": null} |
nlprog_det-setting-0053298 | <|start|><|user|>
A storeroom has 1588 flash drives. The office uses 17 a day. How many are left after 17 days?<|eot|>
<|assistant|>
```python
stock = 1588
per_day = 17
days = 17
left = stock - per_day * days
print(left)
```
Running it prints 1299, as expected.
1299 flash drives are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1588 flash drives. The office uses 17 a day. How many are left after 17 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1588\nper_day = 17\ndays = 17\nleft = stock - per_day * days\nprint(left)\n```\nRunning it prints 1299, as expecte... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1299", "printed": "1299", "notation": null} |
nlprog_det-setting-0053299 | A storeroom has 1328 toner kits. The office uses 20 a day. How many are left after 11 days?
The computation:
```python
stock = 1328
per_day = 20
days = 11
left = stock - per_day * days # 1108
print(left)
```
(Program output: 1108)
1108 toner kits are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1108", "printed": "1108", "notation": null} |
nlprog_det-setting-0053300 | Attendance was 69 out of 100. Express it as a percent.
Python, step by step:
present = 69
total = 100
percent = present / total * 100 # 69.0
print(round(percent, 1))
Program output: 69.0
Attendance was 69.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "69.0", "printed": "69.0", "notation": null} |
nlprog_det-setting-0053301 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Find the mean of these test scores: 81, 66 and 72.<|eot|>
<|assistant|>
```python
scores = [81, 66, 72]
average = sum(scores) // len(scores) # 73
print(average)
```
Shell output: 73
The average score is 73.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Find the mean of these test scores: 81, 66 and 72."
},
{
"role": "assistant",
"content": "```python\nscores = [81, 66, 72]\naverage = sum(scores) // len(scores) # 73\nprint(average)\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0053302 | Find the mean of these test scores: 59, 76, 90 and 87.
We can compute it in Python.
```python
scores = [59, 76, 90, 87]
average = sum(scores) // len(scores) # 78
print(average)
```
The interpreter prints 78.
The mean is 78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0053303 | <|start|><|user|>
Attendance was 189 out of 200. Express it as a percent.<|eot|>
<|assistant|>
present = 189
total = 200
percent = present / total * 100 # 94.5
print(round(percent, 1))
The printout reads: 94.5
94.5% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 189 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 189\n total = 200\n percent = present / total * 100 # 94.5\n print(round(percent, 1))\nThe printout reads: 94.5\n\n94.5% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "94.5", "printed": "94.5", "notation": null} |
nlprog_det-setting-0053304 | Grace lends $12,000 at 2% simple interest per year for 2 years. How much interest is earned?
We can compute it in Python.
```python
principal = 12000
rate = 2 / 100 # 0.02
years = 2
interest = principal * rate * years # 480.0
print(f"{interest:.2f}")
```
# out: 480.00
It earns $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0053305 | Kaito earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?
A short script:
```python
rate = 20.0
hours = 41
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 30.0
pay = regular + overtime # 830.0
print(f"{pay:.2f}")
```
Out = 830.00
The weekly pay is $830... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "830.00", "printed": "830.00", "notation": null} |
nlprog_det-setting-0053306 | A trial runs from March 19, 2025 to March 22, 2025, counting both days. How many calendar days is that?
Script:
```python
from datetime import date
first = date(2025, 3, 19) # datetime.date(2025, 3, 19)
last = date(2025, 3, 22) # datetime.date(2025, 3, 22)
days = (last - first).days + 1 # 4
print(days)
```
# out: 4... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0053307 | On which weekday does September 13, 2006 fall?
In code:
from datetime import date
hearing = date(2006, 9, 13) # datetime.date(2006, 9, 13)
print(hearing.strftime("%A"))
Result — Wednesday
September 13, 2006 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0053308 | A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?
Python version:
```python
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
```
# stdout: 12000.00
Each installment is $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0053309 | Which is cheaper per unit: 8 for $6.13 (A) or 24 for $8.11 (B)?
A short script:
pack_a = 6.13 / 8 # 0.76625
pack_b = 8.11 / 24 # 0.33791666666666664
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Printed: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0053310 | The statute was enacted in 1992. How many years had passed by 1999?
Computing it:
```python
start_year = 1992
end_year = 1999
print(end_year - start_year)
```
Execution prints 7.
7 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0053311 | Papers were served by mail on February 25, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Here's the code.
```python
from datetime import date, timedelta
served = date(2018, 2, 25) # datetime.date(2018, 2, 25)
response_days = 14
mail_days = 3
due = served + timedel... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2018-03-14", "printed": "2018-03-14", "notation": null} |
nlprog_det-setting-0053312 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
35 scissors cost $24 apiece. With 10% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 35
unit_price = 24
subtotal = quantity * unit_price # 840
total = subtotal * (1 + 10 / 100) # 924.0000000000001
print(f"{total:.2f}")
```
O... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "35 scissors cost $24 apiece. With 10% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 35\nunit_price = 24\nsubtotal = quantity * unit_price #... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "924.00", "printed": "924.00", "notation": null} |
nlprog_det-setting-0053313 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_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|>
At $25.15 an hour, what doe... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "301.80", "printed": "301.80", "notation": null} |
nlprog_det-setting-0053314 | Counting the first and last day, how many days are there from July 9, 2018 through July 27, 2018?
The program:
```python
from datetime import date
first = date(2018, 7, 9) # datetime.date(2018, 7, 9)
last = date(2018, 7, 27) # datetime.date(2018, 7, 27)
days = (last - first).days + 1 # 19
print(days)
```
# program ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0053315 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "description": ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 270 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0053316 | How many minutes pass from 8:20 AM to 1:04 PM on the same day?
Code:
```python
start = 8 * 60 + 20 # 500
end = 13 * 60 + 4 # 784
print(end - start)
```
The interpreter prints: 284
It is 284 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0053317 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A claim accrued on May 2, 2016. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2016, 5, 2)
years = 3
expires = accrued.replace(year=accrued.year + years)
pr... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A claim accrued on May 2, 2016. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrue... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2019-05-02", "printed": "2019-05-02", "notation": null} |
nlprog_det-setting-0053318 | Shipping costs $10 plus $2.00 per pound. What does a 11-pound parcel cost to ship?
Python, step by step:
```python
base = 10
per_pound = 2.0
weight = 11
cost = base + per_pound * weight # 32.0
print(f"{cost:.2f}")
```
(Run result: 32.00)
Shipping costs $32.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0053319 | <|start|><|user|>
Sofia earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 44
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 134.39999999999998
pay = regular + overtime # 1030.4
print(f"{pay:.2f}")
```... | chat | [
{
"role": "user",
"content": "Sofia earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 44\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 134.39999999999998\... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "1030.40", "printed": "1030.40", "notation": null} |
nlprog_det-setting-0053320 | 26 of 40 members attended. What percent attended?
Here is a short program for it.
present = 26
total = 40
percent = present / total * 100 # 65.0
print(round(percent, 1))
(Program output: 65.0)
Attendance was 65.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0053321 | An office budget of $20,000 has expenses of $599, $592, $871. How much of the budget is left?
In Python:
```python
budget = 20000
expenses = [599, 592, 871]
left = budget - sum(expenses) # 17938
print(left)
```
Out — 17938
The remaining budget is $17,938. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "17938", "printed": "17938", "notation": null} |
nlprog_det-setting-0053322 | <|start|><|user|>
An attorney bills 6.5 hours at $410 per hour. What is the bill?<|eot|>
<|assistant|>
The bill is $2,665.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 6.5 hours at $410 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "The bill is $2,665.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2665.00", "printed": "2665.00", "notation": null} |
nlprog_det-setting-0053323 | Copies cost $15 plus $0.10 for each page beyond 0. How much for 45 pages?
Python version:
```python
pages = 45
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 19.5
print(f"{cost:.2f}")
```
(Program output: 19.50)
The copy costs $19.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "19.50", "printed": "19.50", "notation": null} |
nlprog_det-setting-0053324 | <|start|><|user|>
Copies cost $10 plus $0.10 for each page beyond 10. How much for 90 pages?<|eot|>
<|assistant|>
The copy costs $18.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.10 for each page beyond 10. How much for 90 pages?"
},
{
"role": "assistant",
"content": "The copy costs $18.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0053325 | Someone works 30 hours at $17.95 per hour. What are the earnings?
We write it as a program:
rate = 17.95
hours = 30
earnings = rate * hours # 538.5
print(f"{earnings:.2f}")
Printed result: 538.50
The pay is $538.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "538.50", "printed": "538.50", "notation": null} |
nlprog_det-setting-0053326 | A filing cabinet costs $180. It is 20% off. What is the sale price?
Computation in Python:
```python
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
```
It prints: 144.00
It costs $144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0053327 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Buying 3 flash drives at $14 each, 5 binders at $28 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(3, 14), (5, 28)]
total = sum(q * p for q, p in items) # 182
paid = 200
change = paid - total ... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Buying 3 flash drives at $14 each, 5 binders at $28 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 14), (5... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0053328 | Starting from $8,000, the team spends $1,959, $2,183, $3,232, $1,753. What remains?
The remaining budget is -$1,127. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "-1127", "printed": "-1127", "notation": null} |
nlprog_det-setting-0053330 | <|start|><|system|>
Tools (call with JSON):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calculator\", \"description\": \"Run ... | nlprog_det | setting | original | null | deterministic | [] | [] | 283 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0053332 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A film lasted 2 hours and 45 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 2
minutes = 45
total_minutes = hours * 60 + minutes
print(total_minutes)
```
Executing it gives 165.
The film lasted 165 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A film lasted 2 hours and 45 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 45\ntotal_minutes = hours * 60 + minutes\nprint(total... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0053333 | A $1,200 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
One way, in code:
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + inte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "55.00", "printed": "55.00", "notation": null} |
nlprog_det-setting-0053334 | A recipe for 2 people uses 150 grams of oats. How many grams are needed for 6 people?
450 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0053335 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A 390-mile drive at a steady 60 mph takes how many minutes?<|eot|>
<|assistant|>
distance = 390
speed = 60
minutes = distance / speed * 60 # 390.0
print(round(minutes))
Execution prints 390.
The trip takes 390 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A 390-mile drive at a steady 60 mph takes how many minutes?"
},
{
"role": "assistant",
"content": " distance = 390\n speed = 60\n minutes = distance / speed * 60 # 390.0\n prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0053336 | <|start|><|user|>
A 65-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 65
speed = 65
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
Execution result — 60
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 65-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 65\nspeed = 65\nminutes = distance / speed * 60 # 60.0\nprint(round(minutes))\n```\nExecution result — 60\n\n60 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0053337 | Prorate $900 of monthly rent for 19 days of a 31-day month.
We write it as a program:
```python
rent = 900
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 551.6129032258065
print(f"{prorated:.2f}")
```
The program outputs 551.61.
The prorated rent is $551.61. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "551.61", "printed": "551.61", "notation": null} |
nlprog_det-setting-0053338 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
Computing it:
```python
base = 12
rate = 4.2
used = 20
free = 3
bill = base + rate * max(0, used - free) # 83.4
print(f"{bill:.2f}")
```
This prints 83.40, as expected.
$83.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "83.40", "printed": "83.40", "notation": null} |
nlprog_det-setting-0053339 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "code_runner", "description": "Use for arithmetic and date... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "96.0", "printed": "96.0", "notation": null} |
nlprog_det-setting-0053340 | How much sales tax is charged on a $114.22 purchase at 7%?
The tax is $8.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "8.00", "printed": "8.00", "notation": null} |
nlprog_det-setting-0053341 | Meals are $69 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?
Let the code do the arithmetic:
```python
days = 9
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 2021
print(total)
```
It prints 2021, as expected.
That comes... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2021", "printed": "2021", "notation": null} |
nlprog_det-setting-0053342 | A library charges $0.20 per book per day late. What is the fine for 1 books that are 14 days late?
Translated to Python:
```python
per_day = 0.2
days_late = 14
books = 1
fine = per_day * days_late * books # 2.8000000000000003
print(f"{fine:.2f}")
```
Printed = 2.80
$2.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2.80", "printed": "2.80", "notation": null} |
nlprog_det-setting-0053343 | Shipping costs $10 plus $2.00 per pound. What does a 25-pound parcel cost to ship?
Let the code do the arithmetic:
base = 10
per_pound = 2.0
weight = 25
cost = base + per_pound * weight # 60.0
print(f"{cost:.2f}")
Console:
60.00
The charge is $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0053344 | Helga earns a 10% commission on $76,345 of sales. What is the commission?
The commission is $7,634.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "7634.50", "printed": "7634.50", "notation": null} |
nlprog_det-setting-0053345 | After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Let's compute it with Python.
```python
award = 60000
fee = award * 40 / 100
remaining = award - fee
per_client = remaining / 4
print(f"{per_client:.2f}")
```
Result = 9000.00
Each client gets $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0053346 | What day of the week is February 1, 2030?
Python does the arithmetic:
```python
from datetime import date
hearing = date(2030, 2, 1) # datetime.date(2030, 2, 1)
print(hearing.strftime("%A"))
```
Result — Friday
February 1, 2030 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0053347 | <|start|><|system|>
Tool definitions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calculator\", \"description\": \"Evaluates... | nlprog_det | setting | original | null | deterministic | [] | [] | 405 | {"gold": "2024-04-02", "printed": "2024-04-02", "notation": null} |
nlprog_det-setting-0053348 | A $1,200 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
The monthly payment is $105.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "105.00", "printed": "105.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.