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-0072702 | What commission does Tobias make on $68,806 in sales at 10%?
Coded up:
```python
sales = 68806
rate = 10 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
The printout reads: 6880.60
The commission is $6,880.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "6880.60", "printed": "6880.60", "notation": null} |
nlprog_det-setting-0072703 | A hall has 17 rows of 12 seats, and 40 seats are empty. How many people are seated?
Python makes this quick:
```python
rows = 17
per_row = 12
empty = 40
seated = rows * per_row - empty # 164
print(seated)
```
On running, it outputs 164.
164 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0072704 | Attendance was 122 out of 200. Express it as a percent.
Computation in Python:
```python
present = 122
total = 200
percent = present / total * 100 # 61.0
print(round(percent, 1))
```
It outputs: 61.0
Attendance was 61.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "61.0", "printed": "61.0", "notation": null} |
nlprog_det-setting-0072705 | <|start|><|user|>
A meal costs $29.07. How much is a 18% tip?<|eot|>
<|assistant|>
```python
bill = 29.07
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 5.2326
print(f"{tip:.2f}")
```
When run, it prints: 5.23
The tip is $5.23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $29.07. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 29.07\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 5.2326\nprint(f\"{tip:.2f}\")\n```\nWhen run, it prints: 5.23\n\nThe tip is $5.23."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5.23", "printed": "5.23", "notation": null} |
nlprog_det-setting-0072706 | Meals are $69 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?
Python makes this quick:
```python
days = 5
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 785
print(total)
```
stdout — 785
The allowance is $785. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "785", "printed": "785", "notation": null} |
nlprog_det-setting-0072707 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 2 # 2160... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee = award * 40 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "21600.00", "printed": "21600.00", "notation": null} |
nlprog_det-setting-0072708 | <|start|><|user|>
Count 14 days forward from September 6, 2026. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 9, 6) # datetime.date(2026, 9, 6)
end = start + timedelta(days=14) # datetime.date(2026, 9, 20)
print(end.isoformat())
```
(Program output: 2026-09-... | chat | [
{
"role": "user",
"content": "Count 14 days forward from September 6, 2026. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 9, 6) # datetime.date(2026, 9, 6)\nend = start + timedelta(days=14) # datetime.date(2026, 9,... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2026-09-20", "printed": "2026-09-20", "notation": null} |
nlprog_det-setting-0072709 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
On which weekday does April 16, 2024 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2024, 4, 16) # datetime.date(2024, 4, 16)
print(hearing.strftime("%A"))
```
(Output: Tuesday)
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "On which weekday does April 16, 2024 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2024, 4, 16) # datetime.date(2024, 4, 16)\nprint(h... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0072710 | Scale 450 g of sugar from 2 servings to 12 servings.
Python, step by step:
```python
grams = 450
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 2700
print(scaled)
```
Execution prints: 2700
2700 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2700", "printed": "2700", "notation": null} |
nlprog_det-setting-0072711 | A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
The code prints: 7500.00
The fee is $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0072712 | <|start|><|user|>
Convert 46.5 km to meters.<|eot|>
<|assistant|>
That is 46,500 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 46.5 km to meters."
},
{
"role": "assistant",
"content": "That is 46,500 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "46500", "printed": "46500", "notation": null} |
nlprog_det-setting-0072713 | Lena was born on August 9, 1960. How old is Lena on December 26, 2027?
```python
from datetime import date
born = date(1960, 8, 9)
on = date(2027, 12, 26)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
The code prints 67.
Lena is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0072714 | With 17 rows of 9 chairs and 2 empty chairs, how many chairs are taken?
We write it as a program:
```python
rows = 17
per_row = 9
empty = 2
seated = rows * per_row - empty # 151
print(seated)
```
stdout = 151
151 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "151", "printed": "151", "notation": null} |
nlprog_det-setting-0072715 | A library charges $0.20 per book per day late. What is the fine for 4 books that are 22 days late?
Python does the arithmetic:
```python
per_day = 0.2
days_late = 22
books = 4
fine = per_day * days_late * books # 17.6
print(f"{fine:.2f}")
```
The program prints 17.60.
The fine is $17.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "17.60", "printed": "17.60", "notation": null} |
nlprog_det-setting-0072716 | 8 claimants share a $1,200 settlement equally. What is each share?
Translated to Python:
```python
settlement = 1200
parties = 8
share = settlement // parties # 150
print(share)
```
# execution result: 150
Each party receives $150. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0072717 | 5 swims at 200 calories each burn how many calories in total?
1000 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0072718 | <|start|><|user|>
A 480-page report must be reviewed in 8 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
That is 60 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 480-page report must be reviewed in 8 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "That is 60 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0072719 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A cou... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 253 | {"gold": "49.50", "printed": "49.50", "notation": null} |
nlprog_det-setting-0072720 | Monthly rent is $2,400. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?
As Python:
```python
rent = 2400
days_in_month = 30
days_occupied = 8
prorated = rent * days_occupied / days_in_month # 640.0
print(f"{prorated:.2f}")
```
The program prints 640.00, as expected.
The prorated rent... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "640.00", "printed": "640.00", "notation": null} |
nlprog_det-setting-0072721 | A client paid a $7,500 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?
A short script:
```python
retainer = 7500
hours = 14
rate = 150
left = retainer - hours * rate # 5400
print(left)
```
The code prints 5400.
The remaining balance is $5,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "5400", "printed": "5400", "notation": null} |
nlprog_det-setting-0072722 | An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?
In code:
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
Printed:
300.00
$300.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0072723 | A 9 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
A short script:
```python
import math
length = 9
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 72
print(tiles)
```
Interpreter output — 72
72 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0072724 | What is 0 degrees Celsius in Fahrenheit?
Let the code do the arithmetic:
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
The run gives: 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0072725 | <|start|><|user|>
A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 51-page copy cost?<|eot|>
<|assistant|>
```python
pages = 51
base = 5
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 15.25
print(f"{cost:.2f}")
```
This prints 15.25, as exp... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 51-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 51\nbase = 5\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "15.25", "printed": "15.25", "notation": null} |
nlprog_det-setting-0072726 | Convert 2 h 31 min (the length of a training session) to minutes.
We write it as a program:
```python
hours = 2
minutes = 31
total_minutes = hours * 60 + minutes # 151
print(total_minutes)
```
(Printed result: 151)
The training session lasted 151 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "151", "printed": "151", "notation": null} |
nlprog_det-setting-0072727 | <|start|><|user|>
A water bill is $18 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?<|eot|>
<|assistant|>
The bill is $55.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $18 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?"
},
{
"role": "assistant",
"content": "The bill is $55.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "55.80", "printed": "55.80", "notation": null} |
nlprog_det-setting-0072728 | <|start|><|user|>
How many whole days and leftover hours are in 372 hours?<|eot|>
<|assistant|>
```python
hours = 372
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(Printed: 15 days and 12 hours)
372 hours is 15 days and 12 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 372 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 372\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Printed: 15 days and 12 hours)\n\n372 hours is 15 days and 12 hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15 days and 12 hours", "printed": "15 days and 12 hours", "notation": null} |
nlprog_det-setting-0072729 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "business_days", "description": "Count business days between two dates.", "param... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"business_days\", \"descri... | nlprog_det | setting | original | null | deterministic | [] | [] | 448 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0072730 | <|start|><|system|>
Tool definitions:
{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
From 1999 to 203... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 190 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0072731 | What average speed covers 566 miles in 2 hours?
Python does the arithmetic:
```python
distance = 566
hours = 2
speed = distance / hours # 283.0
print(round(speed))
```
Executed, it shows: 283
It averages 283 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "283", "printed": "283", "notation": null} |
nlprog_det-setting-0072732 | <|start|><|user|>
How many minutes pass from 10:37 AM to 12:09 PM on the same day?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 37 # 637
end = 12 * 60 + 9 # 729
print(end - start)
```
Console output — 92
It is 92 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:37 AM to 12:09 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 37 # 637\nend = 12 * 60 + 9 # 729\nprint(end - start)\n```\nConsole output — 92\n\nIt is 92 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0072734 | After an initial $6,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?
A short script:
```python
grant = 48000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 3500.0
print(f"{each:.2f}")
```
That prints 3500.00.
Each installment is $3,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0072735 | Parking is $2 per hour with a daily maximum of $20. What do 3 hours cost?
A few lines of Python do it:
```python
rate = 2
hours = 3
daily_max = 20
cost = min(rate * hours, daily_max) # 6
print(cost)
```
The interpreter prints: 6
Parking costs $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0072736 | 2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Python makes this quick:
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 2 # 21600.0
print(f"{per_client:.2f}")
```
# result: 21600.00
Each ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "21600.00", "printed": "21600.00", "notation": null} |
nlprog_det-setting-0072737 | What day of the week is November 2, 2029?
Python does the arithmetic:
```python
from datetime import date
hearing = date(2029, 11, 2) # datetime.date(2029, 11, 2)
print(hearing.strftime("%A"))
```
Shell output — Friday
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0072738 | With 30% off, what does a $60 printer cost?
```python
price = 60
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 42.0
print(f"{sale_price:.2f}")
```
Printed result — 42.00
It costs $42.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0072739 | $5,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Python version:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 6083.264512000001
print(f"{value:.2f}")
```
Interpreter output: 6083.26
The balance is $6,083.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "6083.26", "printed": "6083.26", "notation": null} |
nlprog_det-setting-0072740 | <|start|><|user|>
Someone works 32 hours at $27.04 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 27.04
hours = 32
earnings = rate * hours # 865.28
print(f"{earnings:.2f}")
```
# program output: 865.28
The pay is $865.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 32 hours at $27.04 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 27.04\nhours = 32\nearnings = rate * hours # 865.28\nprint(f\"{earnings:.2f}\")\n```\n# program output: 865.28\n\nThe pay is $865.28."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "865.28", "printed": "865.28", "notation": null} |
nlprog_det-setting-0072741 | Carmen earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?
We write it as a program:
```python
rate = 20.0
hours = 48
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 240.0
pay = regular + overtime # 1040.0
print(f"{pay:.2f}")
```
Running this gives: 104... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1040.00", "printed": "1040.00", "notation": null} |
nlprog_det-setting-0072742 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A settlement of $4,500... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0072743 | A clerk's office charges $405 for each filing. Sofia submits 17 filings. What is the total fee?
$6,885 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "6885", "printed": "6885", "notation": null} |
nlprog_det-setting-0072744 | 3 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
As 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}")
```
It prints 6000.00.
Each client gets $6,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0072745 | If a 90-minute appointment begins at 1:40 PM, what time does it finish?
The program:
```python
start = 13 * 60 + 40
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Console:
3:10 PM
The appointment finishes at 3:10 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3:10 PM", "printed": "3:10 PM", "notation": null} |
nlprog_det-setting-0072746 | <|start|><|user|>
Notice was given on May 9, 2022. The notice period is 21 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 5, 9) # datetime.date(2022, 5, 9)
end = start + timedelta(days=21) # datetime.date(2022, 5, 30)
print(end.isoformat())
```
On ru... | chat | [
{
"role": "user",
"content": "Notice was given on May 9, 2022. The notice period is 21 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 5, 9) # datetime.date(2022, 5, 9)\nend = start + timedelta(days=21) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2022-05-30", "printed": "2022-05-30", "notation": null} |
nlprog_det-setting-0072747 | <|start|><|user|>
Find the mean of these test scores: 55, 64, 51, 54 and 96.<|eot|>
<|assistant|>
```python
scores = [55, 64, 51, 54, 96]
average = sum(scores) // len(scores) # 64
print(average)
```
Printed = 64
The average score is 64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 55, 64, 51, 54 and 96."
},
{
"role": "assistant",
"content": "```python\nscores = [55, 64, 51, 54, 96]\naverage = sum(scores) // len(scores) # 64\nprint(average)\n```\nPrinted = 64\n\nThe average score is 64."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0072748 | <|start|><|user|>
What is the total rent on a 12-month lease at $1,200 a month?<|eot|>
<|assistant|>
In total, $14,400 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 12-month lease at $1,200 a month?"
},
{
"role": "assistant",
"content": "In total, $14,400 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "14400", "printed": "14400", "notation": null} |
nlprog_det-setting-0072749 | <|start|><|user|>
Convert 1,862 USD to CAD at 1 USD = 1.27 CAD.<|eot|>
<|assistant|>
```python
amount = 1862
rate = 1.27
converted = amount * rate # 2364.7400000000002
print(f"{converted:.2f}")
```
Running it prints: 2364.74
That is 2,364.74 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1,862 USD to CAD at 1 USD = 1.27 CAD."
},
{
"role": "assistant",
"content": "```python\namount = 1862\nrate = 1.27\nconverted = amount * rate # 2364.7400000000002\nprint(f\"{converted:.2f}\")\n```\nRunning it prints: 2364.74\n\nThat is 2,364.74 CAD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2364.74", "printed": "2364.74", "notation": null} |
nlprog_det-setting-0072750 | A lease runs for 18 months at $1,475 per month. How much rent is paid over the whole term?
Set it up in Python:
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
The run gives: 26550
The rent over the term is $26,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0072751 | What commission does Bilal make on $37,353 in sales at 10%?
As a program:
```python
sales = 37353
rate = 10 / 100 # 0.1
commission = sales * rate # 3735.3
print(f"{commission:.2f}")
```
The program prints 3735.30, as expected.
Bilal earns $3,735.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3735.30", "printed": "3735.30", "notation": null} |
nlprog_det-setting-0072752 | <|start|><|user|>
Which is cheaper per unit: 6 for $6.37 (A) or 18 for $8.23 (B)?<|eot|>
<|assistant|>
```python
pack_a = 6.37 / 6 # 1.0616666666666668
pack_b = 8.23 / 18 # 0.45722222222222225
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Running it prints B, as expected.
Pack B is cheaper per ... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $6.37 (A) or 18 for $8.23 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.37 / 6 # 1.0616666666666668\npack_b = 8.23 / 18 # 0.45722222222222225\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0072753 | <|start|><|user|>
What is 40 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
Printed result: 104
That is 104 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 40 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nPrinted result: 104\n\nThat is 104 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0072754 | <|start|><|user|>
Find the mean of these test scores: 98, 98, 70 and 90.<|eot|>
<|assistant|>
```python
scores = [98, 98, 70, 90]
average = sum(scores) // len(scores) # 89
print(average)
```
Executed, it shows 89.
The average score is 89.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 98, 98, 70 and 90."
},
{
"role": "assistant",
"content": "```python\nscores = [98, 98, 70, 90]\naverage = sum(scores) // len(scores) # 89\nprint(average)\n```\nExecuted, it shows 89.\n\nThe average score is 89."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0072755 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Starti... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "836", "printed": "836", "notation": null} |
nlprog_det-setting-0072756 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A 20 lb package shi... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0072758 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
What average speed covers 468 miles in 4 hours?<|eot|>
<|assistant|>
```python
distance = 468
hours = 4
speed = distance / hours # 117.0
print(round(speed))
```
The run gives 117, as expected.
The average speed is 117 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "What average speed covers 468 miles in 4 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 468\nhours = 4\nspeed = distance / hours # 117.0\nprint(round(speed))\n```\nThe run... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0072759 | Divide 137 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
The program:
total = 137
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
stdout:
34 each, 1 left over
The answer: 34 each, 1 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "34 each, 1 left over", "printed": "34 each, 1 left over", "notation": null} |
nlprog_det-setting-0072760 | <|start|><|user|>
A 36-month warranty starts on March 9, 2019. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on March 9, 2022.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on March 9, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on March 9, 2022."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2022-03-09", "printed": "2022-03-09", "notation": null} |
nlprog_det-setting-0072761 | The landlord deducts $120 and $85 from a $800 deposit. What is returned to the tenant?
Translated to Python:
```python
deposit = 800
deductions = [120, 85]
refund = deposit - sum(deductions) # 595
print(refund)
```
# execution result: 595
$595 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "595", "printed": "595", "notation": null} |
nlprog_det-setting-0072762 | From 2020 to 2044, how many years is that?
Programmatically:
```python
start_year = 2020
end_year = 2044
print(end_year - start_year)
```
On running, it outputs 24.
That is 24 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0072763 | <|start|><|user|>
A customer buys 5 file boxes at $4 each, 5 batteries at $20 each, 5 folders at $20 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(5, 4), (5, 20), (5, 20)]
total = sum(q * p for q, p in items) # 220
paid = 250
change = paid - total # 30
print(change)
```
Exe... | chat | [
{
"role": "user",
"content": "A customer buys 5 file boxes at $4 each, 5 batteries at $20 each, 5 folders at $20 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 4), (5, 20), (5, 20)]\ntotal = sum(q * p for q, p in items) # 220\npai... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0072764 | <|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": "get_weather", "description": "Get the weather for ... | 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\"]}}, {... | nlprog_det | setting | original | null | deterministic | [] | [] | 359 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0072765 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Divide 110 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 110
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left ov... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Divide 110 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 110\ngroups = 4\nper... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "27 each, 2 left over", "printed": "27 each, 2 left over", "notation": null} |
nlprog_det-setting-0072766 | <|start|><|user|>
What commission does Jonas make on $112,915 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 112915
rate = 5 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
The run gives 5645.75.
Jonas earns $5,645.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Jonas make on $112,915 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 112915\nrate = 5 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nThe run gives 5645.75.\n\nJonas earns $5,645.75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5645.75", "printed": "5645.75", "notation": null} |
nlprog_det-setting-0072767 | A room is 17 feet by 8 feet. Flooring costs $3 per square foot. What does it cost to floor the room?
It costs $408. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "408", "printed": "408", "notation": null} |
nlprog_det-setting-0072768 | Sales went from 500 to 700. What is the percent change?
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0072769 | From 1999 to 2025, how many years is that?
Coded up:
```python
start_year = 1999
end_year = 2025
print(end_year - start_year)
```
Shell output: 26
26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0072770 | A client paid a $10,000 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left?
Python, step by step:
```python
retainer = 10000
hours = 11
rate = 200
left = retainer - hours * rate # 7800
print(left)
```
Out — 7800
The remaining balance is $7,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "7800", "printed": "7800", "notation": null} |
nlprog_det-setting-0072771 | Papers were served by mail on October 7, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Here is a short program for it.
```python
from datetime import date, timedelta
served = date(2018, 10, 7) # datetime.date(2018, 10, 7)
response_days = 14
mail_days = 3
due = ser... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-10-24", "printed": "2018-10-24", "notation": null} |
nlprog_det-setting-0072772 | <|start|><|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
# program output: 50
It equals 50 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\n# program output: 50\n\nIt equals 50 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0072774 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Walls total 1282 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1282
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
The script prints 4, as expected.
Buy 4 cans.<|eot... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Walls total 1282 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1282\ncoverage = 400\ncans = math.ceil(a... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0072775 | <|start|><|user|>
An attorney bills 4 hours at $180 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 4
rate = 180
bill = hours * rate # 720
print(f"{bill:.2f}")
```
Run result = 720.00
The bill is $720.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 4 hours at $180 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 180\nbill = hours * rate # 720\nprint(f\"{bill:.2f}\")\n```\nRun result = 720.00\n\nThe bill is $720.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0072776 | The bridge was finished in 1994. How many years had passed by 2016?
Computing it:
```python
start_year = 1994
end_year = 2016
print(end_year - start_year)
```
# run result: 22
22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0072777 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
With 17 rows of 18 chairs and 1 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 17
per_row = 18
empty = 1
seated = rows * per_row - empty # 305
print(seated)
```
Output of the run — 305
305 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "With 17 rows of 18 chairs and 1 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 17\nper_row = 18\nempty = 1\nseated = rows * per_row - empty # 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "305", "printed": "305", "notation": null} |
nlprog_det-setting-0072779 | Elena's scores were 85, 98 and 90. What is the average score?
Python makes this quick:
```python
scores = [85, 98, 90]
average = sum(scores) // len(scores) # 91
print(average)
```
Result — 91
The average score is 91. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0072780 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Counting the first and last day, how many days are there from December 9, 2026 through December 14, 2026?<|eot|>
<|assistant|>
That is 6 days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from December 9, 2026 through December 14, 2026?"
},
{
"role": "assistant",
"content": "That is 6 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0072781 | <|start|><|system|>
Tools (call with JSON):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calculator", "description": "Run Python code in a sandbox; the result ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calculator\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 442 | {"gold": "2026-12-10", "printed": "2026-12-10", "notation": null} |
nlprog_det-setting-0072782 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A desk lamp costs $45. It is 25% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 33.75
print(f"{sale_price:.2f}")
```
(Printed result: 33.75)
The sale price is $33.75.<|eo... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A desk lamp costs $45. It is 25% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 33.7... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "33.75", "printed": "33.75", "notation": null} |
nlprog_det-setting-0072783 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
rent = 900
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
Out — 480.00
The tenant owes $480.... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": " rent = 900\n days_in_month = 30\n days_occupied = 16\n prorated = rent * days_occupied / days_in_month\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0072784 | <|start|><|system|>
Functions:
{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "lookup_statute", "description": ... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0072785 | 24 copies of a 43-page packet are printed at $0.08 per page. What is the cost?
Written as code:
```python
pages = 43
copies = 24
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 82.56
print(f"{cost:.2f}")
```
Result: 82.56
Printing costs $82.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "82.56", "printed": "82.56", "notation": null} |
nlprog_det-setting-0072787 | <|start|><|user|>
Filing fees are $350 per document. What do 10 filings cost?<|eot|>
<|assistant|>
```python
fee = 350
filings = 10
total = fee * filings # 3500
print(total)
```
The interpreter prints 3500.
$3,500 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $350 per document. What do 10 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 350\nfilings = 10\ntotal = fee * filings # 3500\nprint(total)\n```\nThe interpreter prints 3500.\n\n$3,500 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0072788 | <|start|><|system|>
Functions:
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "business_days", "description": "Count business days bet... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{\"name\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0072789 | A trial runs from January 1, 2022 to January 9, 2022, counting both days. How many calendar days is that?
Program:
```python
from datetime import date
first = date(2022, 1, 1) # datetime.date(2022, 1, 1)
last = date(2022, 1, 9) # datetime.date(2022, 1, 9)
days = (last - first).days + 1 # 9
print(days)
```
The code ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0072791 | <|start|><|user|>
Prorate $1,800 of monthly rent for 15 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 900.0
print(f"{prorated:.2f}")
```
Interpreter output — 900.00
The tenant owes $900.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 15 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 15\nprorated = rent * days_occupied / days_in_month # 900.0\nprint(f\"{prorated:.2f}\")\n```\nInterprete... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0072792 | Count the days between January 10, 2028 and January 5, 2029.
Python code:
```python
from datetime import date
first = date(2028, 1, 10) # datetime.date(2028, 1, 10)
second = date(2029, 1, 5) # datetime.date(2029, 1, 5)
print((second - first).days)
```
Executing it gives: 361
There are 361 days between the two dates... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "361", "printed": "361", "notation": null} |
nlprog_det-setting-0072793 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 688 files?<|eot|>
<|assistant|>
```python
import math
files = 688
per_box = 15
boxes = math.ceil(files / per_box) # 46
print(boxes)
```
Run it and it prints: 46
46 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 688 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 688\nper_box = 15\nboxes = math.ceil(files / per_box) # 46\nprint(boxes)\n```\nRun it and it prints: 46\n\n46 boxes are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0072794 | Express 114 hours in days and hours.
Python version:
```python
hours = 114
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution prints 4 days and 18 hours.
114 hours is 4 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "4 days and 18 hours", "printed": "4 days and 18 hours", "notation": null} |
nlprog_det-setting-0072795 | One can of paint covers 400 square feet. How many cans are needed for 428 square feet of wall?
Python makes this quick:
```python
import math
area = 428
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
Printed result: 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0072796 | 4 boxes hold 12 toner kits each. After 10 are handed out, how many are left?
boxes = 4
per_box = 12
given_away = 10
left = boxes * per_box - given_away # 38
print(left)
stdout:
38
38 toner kits are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0072797 | Split $1,862 between Paula and Diego in the ratio 3 to 4. What is Paula's share?
Python does the arithmetic:
total = 1862
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 798
print(share_a)
Running this gives 798.
Paula gets $798. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "798", "printed": "798", "notation": null} |
nlprog_det-setting-0072798 | A $1,000 security deposit has deductions of $60 and $120. How much is refunded?
As a program:
```python
deposit = 1000
deductions = [60, 120]
refund = deposit - sum(deductions) # 820
print(refund)
```
Output = 820
The refund is $820. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "820", "printed": "820", "notation": null} |
nlprog_det-setting-0072799 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Walls total 736 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 736
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
# run result: 3
Buy 3 cans.<|eot|... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Walls total 736 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 736\ncoverage = 350\nc... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0072800 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate ... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 59\nlodg... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "656", "printed": "656", "notation": null} |
nlprog_det-setting-0072801 | A recipe for 8 people uses 200 grams of pasta. How many grams are needed for 6 people?
A few lines of Python do it:
```python
grams = 200
serves = 8
needed_for = 6
scaled = grams * needed_for // serves # 150
print(scaled)
```
This prints 150.
150 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0072802 | A 36-month warranty starts on October 13, 2022. On what date does it end?
Program:
from datetime import date
start = date(2022, 10, 13)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
Run it ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2025-10-13", "printed": "2025-10-13", "notation": null} |
nlprog_det-setting-0072803 | Which is cheaper per unit: 8 for $7.12 (A) or 18 for $12.30 (B)?
Python does the arithmetic:
```python
pack_a = 7.12 / 8 # 0.89
pack_b = 12.3 / 18 # 0.6833333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
That prints B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0072804 | How many weekdays (Monday to Friday) fall after July 4, 2020 up to and including July 27, 2020?
Coded up:
```python
from datetime import date, timedelta
start = date(2020, 7, 4)
end = date(2020, 7, 27)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0072805 | After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Here's the code.
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")
```
Output: 12000.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0072806 | A pack of 10 pens sells for $220. What does each cost?
```python
total = 220
count = 10
per_item = total // count # 22
print(per_item)
```
That prints 22.
Each one costs $22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0072807 | An invoice lists 21 headsets at $8 each, plus 7% sales tax. What is the invoice total?
A short script:
```python
quantity = 21
unit_price = 8
subtotal = quantity * unit_price # 168
total = subtotal * (1 + 7 / 100) # 179.76000000000002
print(f"{total:.2f}")
```
The run gives 179.76.
The total with tax is $179.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "179.76", "printed": "179.76", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.