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-0061175 | <|start|><|user|>
Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 12000
costs = 8000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
Python prints 33.3, as... | chat | [
{
"role": "user",
"content": "Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 12000\ncosts = 8000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 33.3333333... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0061176 | A car travels 48 miles in 4 hours. What is its average speed in miles per hour?
Program:
```python
distance = 48
hours = 4
speed = distance / hours # 12.0
print(round(speed))
```
When run, it prints 12, as expected.
It averages 12 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0061177 | <|start|><|user|>
Someone born September 17, 1960 turns how old by May 17, 2024? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1960, 9, 17) # datetime.date(1960, 9, 17)
on = date(2024, 5, 17) # datetime.date(2024, 5, 17)
age = on.year - born.year - ((on.month, on.da... | chat | [
{
"role": "user",
"content": "Someone born September 17, 1960 turns how old by May 17, 2024? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1960, 9, 17) # datetime.date(1960, 9, 17)\non = date(2024, 5, 17) # datetime.date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0061178 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Goods bought on January 14, 2020 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2020, 1, 14)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Goods bought on January 14, 2020 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2020, 1,... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "2021-01-14", "printed": "2021-01-14", "notation": null} |
nlprog_det-setting-0061179 | <|start|><|system|>
Tool definitions:
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "business_days", "description": "Count business ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}\n{... | nlprog_det | setting | original | null | deterministic | [] | [] | 431 | {"gold": "146.06", "printed": "146.06", "notation": null} |
nlprog_det-setting-0061180 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
The weekly pay is $1,150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0061181 | Bilal earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?
The program:
```python
rate = 25.0
hours = 51
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 412.5
pay = regular + overtime # 1412.5
print(f"{pay:.2f}")
```
The code prints 1412.50.
The weekly... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1412.50", "printed": "1412.50", "notation": null} |
nlprog_det-setting-0061182 | 4 boxes hold 12 badges each. After 17 are handed out, how many are left?
Set it up in Python:
boxes = 4
per_box = 12
given_away = 17
left = boxes * per_box - given_away # 31
print(left)
Execution result: 31
That leaves 31 badges. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0061183 | <|start|><|user|>
A 150-mile drive at a steady 50 mph takes how many minutes?<|eot|>
<|assistant|>
The trip takes 180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 150-mile drive at a steady 50 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "The trip takes 180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0061184 | How many weekdays (Monday to Friday) fall after March 8, 2019 up to and including March 24, 2019?
Python, step by step:
```python
from datetime import date, timedelta
start = date(2019, 3, 8)
end = date(2019, 3, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0061185 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1104 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1104
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
stdout: 4
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1104 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1104\ncoverage = 300\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nstdout: 4\n\n4 cans ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0061186 | What is a 10% tip on a $65.51 bill?
Python version:
```python
bill = 65.51
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 6.551000000000001
print(f"{tip:.2f}")
```
The run gives: 6.55
The tip is $6.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "6.55", "printed": "6.55", "notation": null} |
nlprog_det-setting-0061187 | <|start|><|user|>
Attendance was 11 out of 20. Express it as a percent.<|eot|>
<|assistant|>
present = 11
total = 20
percent = present / total * 100 # 55.00000000000001
print(round(percent, 1))
Run it and it prints 55.0.
Attendance was 55.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 11 out of 20. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 11\n total = 20\n percent = present / total * 100 # 55.00000000000001\n print(round(percent, 1))\nRun it and it prints 55.0.\n\nAttendance was 55.0%.... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0061188 | <|start|><|user|>
Water costs $12 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 23,000 gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.2
used = 23
free = 2
bill = base + rate * max(0, used - free) # 100.2
print(f"{bill:.2f}")
```
stdout:
100.20
The bill is $100.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $12 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 23,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.2\nused = 23\nfree = 2\nbill = base + rate * max(0, used - free) # 100.2\nprint(f\"{bill:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "100.20", "printed": "100.20", "notation": null} |
nlprog_det-setting-0061189 | <|start|><|user|>
A $1,000 security deposit has deductions of $150. How much is refunded?<|eot|>
<|assistant|>
deposit = 1000
deductions = [150]
refund = deposit - sum(deductions) # 850
print(refund)
The program prints 850, as expected.
The refund is $850.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,000 security deposit has deductions of $150. How much is refunded?"
},
{
"role": "assistant",
"content": " deposit = 1000\n deductions = [150]\n refund = deposit - sum(deductions) # 850\n print(refund)\nThe program prints 850, as expected.\n\nThe r... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0061190 | With 11 rows of 19 chairs and 8 empty chairs, how many chairs are taken?
Python does the arithmetic:
```python
rows = 11
per_row = 19
empty = 8
seated = rows * per_row - empty
print(seated)
```
Shell output — 201
201 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0061191 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 21 days?
```python
per_day = 100
days = 21
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# execution result: 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0061192 | Divide 294 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
Programmatically:
```python
total = 294
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The program prints 36 each, 6 left over.
The answer: 3... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "36 each, 6 left over", "printed": "36 each, 6 left over", "notation": null} |
nlprog_det-setting-0061193 | <|start|><|user|>
A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 2 people?<|eot|>
<|assistant|>
grams = 300
serves = 6
needed_for = 2
scaled = grams * needed_for // serves # 100
print(scaled)
Run output: 100
Use 100 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 2 people?"
},
{
"role": "assistant",
"content": " grams = 300\n serves = 6\n needed_for = 2\n scaled = grams * needed_for // serves # 100\n print(scaled)\nRun output: 100\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0061194 | Notice was given on December 28, 2024. The notice period is 14 days. When does it run out?
It ends on January 11, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "2025-01-11", "printed": "2025-01-11", "notation": null} |
nlprog_det-setting-0061195 | How many weekdays (Monday to Friday) fall after July 10, 2021 up to and including August 12, 2021?
Set it up in Python:
```python
from datetime import date, timedelta
start = date(2021, 7, 10)
end = date(2021, 8, 12)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0061196 | Under a 30% contingency agreement, what fee is owed on a $60,000 award?
Code:
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
Shell output — 18000.00
The lawyer's fee comes to $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0061197 | If a 4-year limitations period starts on February 11, 2018, when does it end?
Coded up:
```python
from datetime import date
accrued = date(2018, 2, 11) # datetime.date(2018, 2, 11)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 2, 11)
print(expires.isoformat())
```
This prints: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2022-02-11", "printed": "2022-02-11", "notation": null} |
nlprog_det-setting-0061198 | Equipment costs $24,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?
The computation:
```python
cost = 24000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
Run output: 2400.00
Depreciation is $2,400.00 pe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0061199 | A 5% increase is applied to $1,500 monthly rent. What is the new amount?
Set it up in Python:
```python
rent = 1500
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1575.0
print(f"{new_rent:.2f}")
```
Console:
1575.00
It rises to $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0061200 | A library charges $0.15 per book per day late. What is the fine for 1 books that are 25 days late?
Code:
```python
per_day = 0.15
days_late = 25
books = 1
fine = per_day * days_late * books # 3.75
print(f"{fine:.2f}")
```
# printed result: 3.75
$3.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3.75", "printed": "3.75", "notation": null} |
nlprog_det-setting-0061201 | Liesel and Bruna share $6,146 in the ratio 3:4. How much does Liesel get?
Let the code do the arithmetic:
total = 6146
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
(Out: 2634)
Liesel's share is $2,634. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2634", "printed": "2634", "notation": null} |
nlprog_det-setting-0061202 | Scale 200 g of rice from 8 servings to 3 servings.
A Python solution:
```python
grams = 200
serves = 8
needed_for = 3
scaled = grams * needed_for // serves # 75
print(scaled)
```
(Console output: 75)
75 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0061203 | A storeroom has 723 file boxes. The office uses 36 a day. How many are left after 10 days?
Translated to Python:
```python
stock = 723
per_day = 36
days = 10
left = stock - per_day * days # 363
print(left)
```
That prints 363.
363 file boxes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "363", "printed": "363", "notation": null} |
nlprog_det-setting-0061204 | Pack A has 6 items for $12.31. Pack B has 15 items for $16.62. Which has the lower price per item?
A short script:
```python
pack_a = 12.31 / 6 # 2.0516666666666667
pack_b = 16.62 / 15 # 1.108
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Output of the run — B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0061205 | A shift runs from 8:27 AM to 8:53 AM. How long is it in minutes?
Coded up:
```python
start = 8 * 60 + 27
end = 8 * 60 + 53
print(end - start)
```
It prints: 26
It is 26 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0061207 | <|start|><|system|>
Tools (call with JSON):
{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
A count moves from 50... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0061208 | A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
A short script:
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 1350.0
payment = (princip... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "287.50", "printed": "287.50", "notation": null} |
nlprog_det-setting-0061209 | A car gets 20 miles per gallon. Gas is $3.89 a gallon. What does fuel cost for a 360-mile trip?
The trip uses $70.02 of gas. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "70.02", "printed": "70.02", "notation": null} |
nlprog_det-setting-0061210 | <|start|><|user|>
From a $5,000 retainer, 14 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 14
rate = 275
left = retainer - hours * rate # 1150
print(left)
```
Execution result: 1150
The remaining balance is $1,150.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 14 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 14\nrate = 275\nleft = retainer - hours * rate # 1150\nprint(left)\n```\nExecution result: 1150\n\nThe remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1150", "printed": "1150", "notation": null} |
nlprog_det-setting-0061211 | A recipe for 2 people uses 450 grams of pasta. How many grams are needed for 6 people?
We write it as a program:
grams = 450
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 1350
print(scaled)
The interpreter prints: 1350
1350 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0061213 | A $180 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?
Each person pays $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0061214 | A penalty of $50 a day accrues, capped at $2,500. What is owed after 16 days?
Translated to Python:
```python
per_day = 50
days = 16
cap = 2500
fine = min(per_day * days, cap) # 800
print(fine)
```
Console output — 800
$800 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0061215 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after November 26, 2025 through December 7, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 11, 26)
end = date(2025, 12, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (st... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after November 26, 2025 through December 7, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 11, 26)\nend = date(2025, 12, 7)\ncount... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0061216 | A recipe for 8 people uses 100 grams of lentils. How many grams are needed for 2 people?
25 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0061217 | A party has 28 days to respond to a motion served on February 9, 2024, with 3 days added because service was by mail. When is the response due?
In code:
```python
from datetime import date, timedelta
served = date(2024, 2, 9)
response_days = 28
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2024-03-11", "printed": "2024-03-11", "notation": null} |
nlprog_det-setting-0061218 | 2 books come back 2 days late, at $0.15 a day each. What is the fine?
```python
per_day = 0.15
days_late = 2
books = 2
fine = per_day * days_late * books # 0.6
print(f"{fine:.2f}")
```
The printout reads 0.60.
The fine is $0.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "0.60", "printed": "0.60", "notation": null} |
nlprog_det-setting-0061219 | <|start|><|user|>
A recipe for 8 people uses 240 grams of pasta. How many grams are needed for 2 people?<|eot|>
<|assistant|>
Use 60 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 8 people uses 240 grams of pasta. How many grams are needed for 2 people?"
},
{
"role": "assistant",
"content": "Use 60 g of pasta."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0061220 | <|start|><|user|>
Notice was given on June 2, 2025. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 6, 2) # datetime.date(2025, 6, 2)
end = start + timedelta(days=120) # datetime.date(2025, 9, 30)
print(end.isoformat())
```
(O... | chat | [
{
"role": "user",
"content": "Notice was given on June 2, 2025. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 6, 2) # datetime.date(2025, 6, 2)\nend = start + timedelta(days=120) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2025-09-30", "printed": "2025-09-30", "notation": null} |
nlprog_det-setting-0061221 | A count moves from 200 to 120. By what percent did it change (use a minus sign for a drop)?
A short script:
```python
old = 200
new = 120
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Python prints: -40
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0061222 | Papers were served by mail on June 7, 2024. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
```python
from datetime import date, timedelta
served = date(2024, 6, 7) # datetime.date(2024, 6, 7)
response_days = 30
mail_days = 3
due = served + timedelta(days=response_days + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 172 | {"gold": "2024-07-10", "printed": "2024-07-10", "notation": null} |
nlprog_det-setting-0061223 | Papers were served by mail on January 9, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
```python
from datetime import date, timedelta
served = date(2018, 1, 9) # datetime.date(2018, 1, 9)
response_days = 14
mail_days = 3
due = served + timedelta(days=response_days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "2018-01-26", "printed": "2018-01-26", "notation": null} |
nlprog_det-setting-0061224 | <|start|><|user|>
A $2,500 security deposit has deductions of $85. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [85]
refund = deposit - sum(deductions) # 2415
print(refund)
```
(Out: 2415)
The refund is $2,415.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,500 security deposit has deductions of $85. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [85]\nrefund = deposit - sum(deductions) # 2415\nprint(refund)\n```\n(Out: 2415)\n\nThe refund is $2,415."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2415", "printed": "2415", "notation": null} |
nlprog_det-setting-0061225 | <|start|><|user|>
Of a $5,000 budget, $400 has been spent. What percent is that?<|eot|>
<|assistant|>
That is 8.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "That is 8.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0061226 | <|start|><|system|>
Functions:
{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Convert 1 h 50 min (the length of a hearing) to minute... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"
},
{
"... | nlprog_det | setting | original | null | deterministic | [] | [] | 193 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0061227 | How many units at $30 each (variable cost $26) cover $4,000 of fixed costs?
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0061228 | Filing fees are $150 per document. What do 6 filings cost?
Here is a short program for it.
```python
fee = 150
filings = 6
total = fee * filings # 900
print(total)
```
Result: 900
$900 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0061229 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
The landlord deducts $200 from a $2,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [200]
refund = deposit - sum(deductions) # 2300
print(refund)
```
The code prints 2300.
The refund is $2,300.<|e... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "The landlord deducts $200 from a $2,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [200]\nrefund = deposit - su... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0061230 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Prorate $1,800 of monthly rent for 20 days of a 31-day month.<|eot|>
<|assistant|>
The tenant owes $1,161.29.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 20 days of a 31-day month."
},
{
"role": "assistant",
"content": "The tenant owes $1,161.29."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "1161.29", "printed": "1161.29", "notation": null} |
nlprog_det-setting-0061231 | At 1.5% a month (simple), what interest builds on $1,000 over 4 months?
As Python:
```python
balance = 1000
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 60.0
print(f"{interest:.2f}")
```
(Printed result: 60.00)
$60.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0061232 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "compute", "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": ["scr... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"descrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0061233 | A $6,000 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Let's compute it with Python.
```python
principal = 6000
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 300.0
payment = (prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0061234 | <|start|><|user|>
Water costs $20 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 21,000 gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 5.1
used = 21
free = 2
bill = base + rate * max(0, used - free) # 116.89999999999999
print(f"{bill:.2f}")
```
Run result: 116.90
$116.90 is owed.<|eo... | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 21,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 5.1\nused = 21\nfree = 2\nbill = base + rate * max(0, used - free) # 116.89999999999999\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "116.90", "printed": "116.90", "notation": null} |
nlprog_det-setting-0061235 | Filing fees are $150 per document. What do 11 filings cost?
A Python solution:
```python
fee = 150
filings = 11
total = fee * filings # 1650
print(total)
```
Printed — 1650
The filings cost $1,650 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0061236 | Monthly: $25. Annual: $288. What is saved per year by paying annually?
Here's the code.
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
This prints 12.
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0061237 | <|start|><|user|>
A garage charges $5 an hour, never more than $20 a day. How much for 7 hours?<|eot|>
<|assistant|>
```python
rate = 5
hours = 7
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
The run gives: 20
Parking costs $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $20 a day. How much for 7 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 7\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nThe run gives: 20\n\nParking costs $20."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061238 | Starting with 1696 pens and using 8 per day, how many remain after 8 days?
The Python version:
```python
stock = 1696
per_day = 8
days = 8
left = stock - per_day * days # 1632
print(left)
```
# execution result: 1632
1632 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1632", "printed": "1632", "notation": null} |
nlprog_det-setting-0061239 | <|start|><|user|>
8 boxes hold 10 chairs each. After 8 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 8
per_box = 10
given_away = 8
left = boxes * per_box - given_away # 72
print(left)
```
Out = 72
That leaves 72 chairs.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 boxes hold 10 chairs each. After 8 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 8\nper_box = 10\ngiven_away = 8\nleft = boxes * per_box - given_away # 72\nprint(left)\n```\nOut = 72\n\nThat leaves 72 chairs."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0061240 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
How many minutes pass from 8:24 AM to 9:16 AM on the same day?<|eot|>
<|assistant|>
It is 52 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "How many minutes pass from 8:24 AM to 9:16 AM on the same day?"
},
{
"role": "assistant",
"content": "It is 52 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0061241 | 43 of 50 members attended. What percent attended?
The computation:
present = 43
total = 50
percent = present / total * 100 # 86.0
print(round(percent, 1))
What it prints: 86.0
Attendance was 86.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "86.0", "printed": "86.0", "notation": null} |
nlprog_det-setting-0061242 | 3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
We write it as a program:
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 3 # 14000.0
print(f"{per_client:.2f}")
```
# out: 14000.00
Each cl... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0061243 | <|start|><|user|>
10 markers cost $8 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 10
unit_price = 8
subtotal = quantity * unit_price # 80
total = subtotal * (1 + 7 / 100) # 85.60000000000001
print(f"{total:.2f}")
```
Run output: 85.60
The total with tax is $85.60.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "10 markers cost $8 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 10\nunit_price = 8\nsubtotal = quantity * unit_price # 80\ntotal = subtotal * (1 + 7 / 100) # 85.60000000000001\nprint(f\"{total:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "85.60", "printed": "85.60", "notation": null} |
nlprog_det-setting-0061244 | <|start|><|user|>
A meeting starts at 10:10 AM and lasts 135 minutes. When does it end?<|eot|>
<|assistant|>
start = 10 * 60 + 10
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
(Execution result: 12:25 PM)
It ends at 12:25 PM.... | chat | [
{
"role": "user",
"content": "A meeting starts at 10:10 AM and lasts 135 minutes. When does it end?"
},
{
"role": "assistant",
"content": " start = 10 * 60 + 10\n end = start + 135\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "12:25 PM", "printed": "12:25 PM", "notation": null} |
nlprog_det-setting-0061245 | <|start|><|user|>
A 140-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 140
speed = 40
minutes = distance / speed * 60 # 210.0
print(round(minutes))
```
(Execution result: 210)
The trip takes 210 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 140-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 140\nspeed = 40\nminutes = distance / speed * 60 # 210.0\nprint(round(minutes))\n```\n(Execution result: 210)\n\nThe trip takes 210 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0061246 | <|start|><|user|>
A shift runs from 7:11 AM to 11:40 AM. How long is it in minutes?<|eot|>
<|assistant|>
start = 7 * 60 + 11 # 431
end = 11 * 60 + 40 # 700
print(end - start)
# console output: 269
It is 269 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:11 AM to 11:40 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": " start = 7 * 60 + 11 # 431\n end = 11 * 60 + 40 # 700\n print(end - start)\n# console output: 269\n\nIt is 269 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "269", "printed": "269", "notation": null} |
nlprog_det-setting-0061247 | Pack A has 8 items for $14.68. Pack B has 20 items for $27.14. Which has the lower price per item?
Programmatically:
pack_a = 14.68 / 8 # 1.835
pack_b = 27.14 / 20 # 1.357
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
# console output: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0061248 | Ulla buys 5 boxes of 25 markers each and gives away 8 markers. How many markers are left?
Code:
```python
boxes = 5
per_box = 25
given_away = 8
left = boxes * per_box - given_away
print(left)
```
Output: 117
That leaves 117 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0061249 | <|start|><|user|>
11 boxes hold 8 headsets each. After 14 are handed out, how many are left?<|eot|>
<|assistant|>
That leaves 74 headsets.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 8 headsets each. After 14 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "That leaves 74 headsets."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0061250 | <|start|><|user|>
Attendance was 80 out of 100. Express it as a percent.<|eot|>
<|assistant|>
80.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 80 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "80.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0061252 | Convert 20.6 km to meters.
20,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "20600", "printed": "20600", "notation": null} |
nlprog_det-setting-0061253 | <|start|><|user|>
Yoko drove 16 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 16
rate = 0.58
reimbursement = miles * rate # 9.28
print(f"{reimbursement:.2f}")
```
Executed, it shows: 9.28
Yoko is owed $9.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yoko drove 16 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 16\nrate = 0.58\nreimbursement = miles * rate # 9.28\nprint(f\"{reimbursement:.2f}\")\n```\nExecuted, it... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "9.28", "printed": "9.28", "notation": null} |
nlprog_det-setting-0061254 | <|start|><|user|>
The statute was enacted in 2016. How many years had passed by 2039?<|eot|>
<|assistant|>
```python
start_year = 2016
end_year = 2039
print(end_year - start_year)
```
Run result: 23
That is 23 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2016. How many years had passed by 2039?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2016\nend_year = 2039\nprint(end_year - start_year)\n```\nRun result: 23\n\nThat is 23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0061255 | <|start|><|user|>
What percentage of $4,000 is $3,500?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 3500
percent = spent / budget * 100 # 87.5
print(round(percent, 1))
```
The run gives: 87.5
That is 87.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $3,500?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 3500\npercent = spent / budget * 100 # 87.5\nprint(round(percent, 1))\n```\nThe run gives: 87.5\n\nThat is 87.5% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "87.5", "printed": "87.5", "notation": null} |
nlprog_det-setting-0061256 | Count 120 days forward from November 3, 2028. What date is that?
Set it up in Python:
```python
from datetime import date, timedelta
start = date(2028, 11, 3)
end = start + timedelta(days=120)
print(end.isoformat())
```
# printed result: 2029-03-03
It ends on March 3, 2029. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2029-03-03", "printed": "2029-03-03", "notation": null} |
nlprog_det-setting-0061257 | Kofi has 7 documents to file, and each filing costs $50. How much are the filing fees in total?
Let the code do the arithmetic:
```python
fee = 50
filings = 7
total = fee * filings # 350
print(total)
```
# execution result: 350
The filings cost $350 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0061258 | A quorum is 3/5 of the 29 members, rounded up. How many members make a quorum?
Let's compute it with Python.
```python
import math
members = 29
quorum = math.ceil(members * 3 / 5) # 18
print(quorum)
```
(Result: 18)
18 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0061259 | <|start|><|system|>
You may call the tools below.
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"str... | nlprog_det | setting | original | null | deterministic | [] | [] | 359 | {"gold": "4300.00", "printed": "4300.00", "notation": null} |
nlprog_det-setting-0061260 | A lawyer's fee is 30% of a $25,000 recovery. How large is the fee? The lawyer's fee comes to $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0061261 | <|start|><|system|>
Tools you may use:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "compute", "description": "Runs a short... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 306 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0061263 | Fixed costs are $2,500. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?
Let the code do the arithmetic:
import math
fixed = 2500
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 625
print(units)
Interpreter output — 625
625 uni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0061264 | Kaito lends $2,500 at 8% simple interest per year for 5 years. How much interest is earned?
We write it as a program:
principal = 2500
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
Shell output — 1000.00
It earns $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0061265 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
How many units at $30 each (variable cost $25) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
240 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "How many units at $30 each (variable cost $25) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": "240 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0061266 | 3 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Computation in Python:
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 3 # 16800.0
print(f"{per_client:.2f}")
```
Output = 16800.00
Each sha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0061267 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A 25 lb package ships ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0061268 | Revenue is $4,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Python code:
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
Program output: 11.1
The margin is 11.1%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0061269 | A measure needs at least 75% of 237 votes. How many votes is that, rounded up?
At least 178 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "178", "printed": "178", "notation": null} |
nlprog_det-setting-0061270 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description": "Search case la... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 297 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0061271 | An invoice lists 18 mugs at $3 each, plus 7% sales tax. What is the invoice total?
The invoice total is $57.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "57.78", "printed": "57.78", "notation": null} |
nlprog_det-setting-0061272 | Counting the first and last day, how many days are there from May 22, 2024 through May 31, 2024?
As a program:
```python
from datetime import date
first = date(2024, 5, 22) # datetime.date(2024, 5, 22)
last = date(2024, 5, 31) # datetime.date(2024, 5, 31)
days = (last - first).days + 1 # 10
print(days)
```
# execut... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0061273 | To read 242 pages in 11 days, how many pages per day are needed?
In Python:
```python
pages = 242
days = 11
per_day = pages // days # 22
print(per_day)
```
When run, it prints 22, as expected.
That is 22 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0061274 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0061275 | 30 toner kits cost $15 apiece. With 5% tax added, what is the total?
As Python:
```python
quantity = 30
unit_price = 15
subtotal = quantity * unit_price # 450
total = subtotal * (1 + 5 / 100) # 472.5
print(f"{total:.2f}")
```
Out:
472.50
The invoice total is $472.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "472.50", "printed": "472.50", "notation": null} |
nlprog_det-setting-0061276 | Rent of $2,200 goes up 3%. What is the new rent?
In code:
```python
rent = 2200
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 2266.0
print(f"{new_rent:.2f}")
```
Run output — 2266.00
It rises to $2,266.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0061277 | <|start|><|user|>
3 claimants share a $7,350 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 7350
parties = 3
share = settlement // parties # 2450
print(share)
```
# out: 2450
Each share is $2,450.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 claimants share a $7,350 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 7350\nparties = 3\nshare = settlement // parties # 2450\nprint(share)\n```\n# out: 2450\n\nEach share is $2,450."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0061279 | <|start|><|user|>
A party has 30 days to respond to a motion served on March 12, 2020, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2020, 3, 12) # datetime.date(2020, 3, 12)
response_days = 30
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on March 12, 2020, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2020, 3, 12) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2020-04-14", "printed": "2020-04-14", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.