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-0046158 | <|start|><|user|>
Attendance was 26 out of 50. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 26
total = 50
percent = present / total * 100 # 52.0
print(round(percent, 1))
```
That prints 52.0.
52.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 26 out of 50. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 26\ntotal = 50\npercent = present / total * 100 # 52.0\nprint(round(percent, 1))\n```\nThat prints 52.0.\n\n52.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "52.0", "printed": "52.0", "notation": null} |
nlprog_det-setting-0046159 | The landlord deducts $75, $85 and $85 from a $1,500 deposit. What is returned to the tenant?
Written as code:
```python
deposit = 1500
deductions = [75, 85, 85]
refund = deposit - sum(deductions) # 1255
print(refund)
```
The program outputs: 1255
$1,255 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1255", "printed": "1255", "notation": null} |
nlprog_det-setting-0046160 | <|start|><|user|>
Someone born March 10, 1969 turns how old by May 25, 2021? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1969, 3, 10) # datetime.date(1969, 3, 10)
on = date(2021, 5, 25) # datetime.date(2021, 5, 25)
age = on.year - born.year - ((on.month, on.day) <... | chat | [
{
"role": "user",
"content": "Someone born March 10, 1969 turns how old by May 25, 2021? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1969, 3, 10) # datetime.date(1969, 3, 10)\non = date(2021, 5, 25) # datetime.date(2021,... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0046162 | At $0.67 per mile, what is the reimbursement for 447 miles?
We write it as a program:
```python
miles = 447
rate = 0.67
reimbursement = miles * rate # 299.49
print(f"{reimbursement:.2f}")
```
stdout: 299.49
Lena is owed $299.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "299.49", "printed": "299.49", "notation": null} |
nlprog_det-setting-0046163 | Convert 53.2 km to meters.
Programmatically:
```python
km = 53.2
meters = km * 1000 # 53200.0
print(round(meters))
```
It prints 53200.
That is 53,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "53200", "printed": "53200", "notation": null} |
nlprog_det-setting-0046164 | <|start|><|user|>
What percentage of $8,000 is $3,200?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 3200
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
```
Output:
40.0
That is 40.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $3,200?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 3200\npercent = spent / budget * 100 # 40.0\nprint(round(percent, 1))\n```\nOutput:\n40.0\n\nThat is 40.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0046165 | How many of 10 members form a majority (more than half)?
Here is a short program for it.
```python
members = 10
majority = members // 2 + 1 # 6
print(majority)
```
Printed:
6
6 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0046166 | Mateo's scores were 78, 75, 57 and 58. What is the average score?
The computation:
```python
scores = [78, 75, 57, 58]
average = sum(scores) // len(scores)
print(average)
```
Python prints 67, as expected.
The average score is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0046167 | <|start|><|user|>
A settlement of $15,000 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 6
share = settlement // parties # 2500
print(share)
```
This prints 2500, as expected.
Each share is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $15,000 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 6\nshare = settlement // parties # 2500\nprint(share)\n```\nThis prints 2500, as expected.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0046168 | 17 of 20 members attended. What percent attended?
Set it up in Python:
```python
present = 17
total = 20
percent = present / total * 100 # 85.0
print(round(percent, 1))
```
That prints: 85.0
85.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0046169 | <|start|><|system|>
Tool definitions:
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
110 volunteers are split into 5 eq... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "22 each, 0 left over", "printed": "22 each, 0 left over", "notation": null} |
nlprog_det-setting-0046170 | The paralegal logged 7 hours at a rate of $150. How much is billed?
A few lines of Python do it:
```python
hours = 7
rate = 150
bill = hours * rate # 1050
print(f"{bill:.2f}")
```
Printed result — 1050.00
That comes to $1,050.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1050.00", "printed": "1050.00", "notation": null} |
nlprog_det-setting-0046171 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "2023-05-24", "printed": "2023-05-24", "notation": null} |
nlprog_det-setting-0046172 | A 4% increase is applied to $1,500 monthly rent. What is the new amount?
Script:
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
Printed = 1560.00
The new rent is $1,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0046173 | <|start|><|user|>
With $36,000 in costs and $40,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
revenue = 40000
costs = 36000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
Interpreter output: 10.0
Profit is 10.0% of re... | chat | [
{
"role": "user",
"content": "With $36,000 in costs and $40,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": " revenue = 40000\n costs = 36000\n profit = revenue - costs\n margin = profit / revenue * 100\n print(round(m... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0046174 | 5 claimants share a $960 settlement equally. What is each share?
Each share is $192. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0046175 | From a $5,000 retainer, 11 hours at $200/hour have been drawn. What remains?
As Python:
```python
retainer = 5000
hours = 11
rate = 200
left = retainer - hours * rate # 2800
print(left)
```
The printout reads 2800.
The remaining balance is $2,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0046176 | <|start|><|user|>
Goods bought on May 12, 2022 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on November 12, 2022.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on May 12, 2022 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on November 12, 2022."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2022-11-12", "printed": "2022-11-12", "notation": null} |
nlprog_det-setting-0046177 | A 306-page report must be reviewed in 6 days. How many pages a day is that, evenly?
Here is a short program for it.
```python
pages = 306
days = 6
per_day = pages // days # 51
print(per_day)
```
Execution prints 51.
That is 51 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0046178 | <|start|><|user|>
What percentage of $10,000 is $300?<|eot|>
<|assistant|>
budget = 10000
spent = 300
percent = spent / budget * 100 # 3.0
print(round(percent, 1))
Python prints 3.0, as expected.
3.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $10,000 is $300?"
},
{
"role": "assistant",
"content": " budget = 10000\n spent = 300\n percent = spent / budget * 100 # 3.0\n print(round(percent, 1))\nPython prints 3.0, as expected.\n\n3.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "3.0", "printed": "3.0", "notation": null} |
nlprog_det-setting-0046179 | <|start|><|user|>
What commission does Sofia make on $72,119 in sales at 4%?<|eot|>
<|assistant|>
```python
sales = 72119
rate = 4 / 100 # 0.04
commission = sales * rate # 2884.76
print(f"{commission:.2f}")
```
(Execution result: 2884.76)
The commission is $2,884.76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Sofia make on $72,119 in sales at 4%?"
},
{
"role": "assistant",
"content": "```python\nsales = 72119\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 2884.76\nprint(f\"{commission:.2f}\")\n```\n(Execution result: 2884.76)\n\nThe commission... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2884.76", "printed": "2884.76", "notation": null} |
nlprog_det-setting-0046180 | <|start|><|user|>
A meal costs $114.99. How much is a 22% tip?<|eot|>
<|assistant|>
The tip is $25.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $114.99. How much is a 22% tip?"
},
{
"role": "assistant",
"content": "The tip is $25.30."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "25.30", "printed": "25.30", "notation": null} |
nlprog_det-setting-0046181 | Someone born December 27, 1959 turns how old by November 7, 2026? Give the age in whole years.
Python does the arithmetic:
```python
from datetime import date
born = date(1959, 12, 27) # datetime.date(1959, 12, 27)
on = date(2026, 11, 7) # datetime.date(2026, 11, 7)
age = on.year - born.year - ((on.month, on.day) < ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0046182 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Someone works 32 hours at $15.15 per hour. What are the earnings?<|eot|>
<|assistant|>
rate = 15.15
hours = 32
earnings = rate * hours # 484.8
print(f"{earnings:.2f}")
Output:
484.80
The pay is $484.80.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Someone works 32 hours at $15.15 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": " rate = 15.15\n hours = 32\n earnings = rate * hours # 484.8\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "484.80", "printed": "484.80", "notation": null} |
nlprog_det-setting-0046183 | <|start|><|user|>
A garage charges $2 an hour, never more than $18 a day. How much for 3 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 6
print(cost)
```
# output: 6
The charge is $6.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $18 a day. How much for 3 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 3\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 6\nprint(cost)\n```\n# output: 6\n\nThe charge is $6."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0046184 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 30
variable = 22
units = math.ceil(fixed / (price - variable)) # 750
print(units... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0046185 | A lawyer's fee is 35% of a $40,000 recovery. How large is the fee?
The fee is $14,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0046186 | <|start|><|user|>
Of a $2,000 budget, $100 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 100
percent = spent / budget * 100
print(round(percent, 1))
```
Output = 5.0
5.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $2,000 budget, $100 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 100\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nOutput = 5.0\n\n5.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0046187 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 6
rate = 200
left = retainer - hours * rate # 8800
print(left)
```
Running it prints 8800, as expected.
The remaining balance is $... | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 6\nrate = 200\nleft = retainer - hours * rate # 8800\nprint(left)\n```\nRun... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "8800", "printed": "8800", "notation": null} |
nlprog_det-setting-0046188 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A service costs $15 a month or $144 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
# out: 36
The annual plan saves $36.<|eot... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A service costs $15 a month or $144 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 144\nsavings = mo... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0046189 | A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?
```python
monthly_rent = 975
months = 24
total = monthly_rent * months # 23400
print(total)
```
Output:
23400
The rent over the term is $23,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "23400", "printed": "23400", "notation": null} |
nlprog_det-setting-0046190 | <|start|><|user|>
Prorate $1,500 of monthly rent for 14 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 677.4193548387096
print(f"{prorated:.2f}")
```
# printed result: 677.42
The prorated rent is $677.42.<|eot|... | chat | [
{
"role": "user",
"content": "Prorate $1,500 of monthly rent for 14 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 14\nprorated = rent * days_occupied / days_in_month # 677.4193548387096\nprint(f\"{prorated:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "677.42", "printed": "677.42", "notation": null} |
nlprog_det-setting-0046191 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
From 2018 to 2037, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2018
end_year = 2037
print(end_year - start_year)
```
The program prints 19.
That is 19 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "From 2018 to 2037, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2018\nend_year = 2037\nprint(end_year - start_year)\n```\nThe program prints 19.\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0046193 | Jae's scores were 54, 60 and 99. What is the average score?
Here's the code.
scores = [54, 60, 99]
average = sum(scores) // len(scores) # 71
print(average)
The code prints 71.
The average score is 71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0046194 | <|start|><|user|>
A workshop lasted 3 hours and 36 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 36
total_minutes = hours * 60 + minutes # 216
print(total_minutes)
```
Running this gives 216.
The workshop lasted 216 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 3 hours and 36 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 36\ntotal_minutes = hours * 60 + minutes # 216\nprint(total_minutes)\n```\nRunning this gives 216.\n\nThe workshop lasted 216 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "216", "printed": "216", "notation": null} |
nlprog_det-setting-0046195 | A 9-day trip pays $74 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?
```python
days = 9
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1546
print(total)
```
Executing it gives: 1546
That comes to $1,546. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1546", "printed": "1546", "notation": null} |
nlprog_det-setting-0046196 | <|start|><|user|>
161 copies of a 10-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 10
copies = 161
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 193.2
print(f"{cost:.2f}")
```
# run result: 193.20
Printing costs $193.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "161 copies of a 10-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 10\ncopies = 161\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 193.2\nprint(f\"{cost:.2f}\")\n```\n# run resul... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "193.20", "printed": "193.20", "notation": null} |
nlprog_det-setting-0046197 | 8 claimants share a $1,200 settlement equally. What is each share?
```python
settlement = 1200
parties = 8
share = settlement // parties
print(share)
```
# program output: 150
Each party receives $150. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0046198 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A $12,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 12000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
On... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A $12,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 12000\n up_front = 0\n installments ... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0046199 | <|start|><|user|>
Papers were served by mail on August 10, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 8, 10) # datetime.date(2022, 8, 10)
response_days = 14
mail_days = 3
due... | chat | [
{
"role": "user",
"content": "Papers were served by mail on August 10, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2022, 8, 10) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2022-08-27", "printed": "2022-08-27", "notation": null} |
nlprog_det-setting-0046200 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Scale 150 g of flour from 4 servings to 10 servings.<|eot|>
<|assistant|>
Use 375 g of flour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Scale 150 g of flour from 4 servings to 10 servings."
},
{
"role": "assistant",
"content": "Use 375 g of flour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0046201 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?
Computation in Python:
```python
rate = 25.0
hours = 43
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 112.5
pay = regular + overtime # 1112.5
print(f"{pay:.2f}")
```
Result — 1112.50
Grace earns $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1112.50", "printed": "1112.50", "notation": null} |
nlprog_det-setting-0046202 | <|start|><|user|>
At a 5% tax rate, what is the tax on $682.99?<|eot|>
<|assistant|>
```python
price = 682.99
tax_rate = 5 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
(Output: 34.15)
The tax is $34.15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $682.99?"
},
{
"role": "assistant",
"content": "```python\nprice = 682.99\ntax_rate = 5 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\n(Output: 34.15)\n\nThe tax is $34.15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "34.15", "printed": "34.15", "notation": null} |
nlprog_det-setting-0046203 | Count 14 days forward from May 6, 2019. What date is that?
The period ends on May 20, 2019. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "2019-05-20", "printed": "2019-05-20", "notation": null} |
nlprog_det-setting-0046204 | <|start|><|user|>
Attendance was 95 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 95
total = 100
percent = present / total * 100 # 95.0
print(round(percent, 1))
```
Printed = 95.0
Attendance was 95.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 95 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 95\ntotal = 100\npercent = present / total * 100 # 95.0\nprint(round(percent, 1))\n```\nPrinted = 95.0\n\nAttendance was 95.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0046205 | A 7 lb package ships at $5 base plus $1.50/lb. What is the charge? Shipping costs $15.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "15.50", "printed": "15.50", "notation": null} |
nlprog_det-setting-0046206 | <|start|><|user|>
Rania was born on September 3, 1983. How old is Rania on November 14, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1983, 9, 3) # datetime.date(1983, 9, 3)
on = date(2027, 11, 14) # datetime.date(2027, 11, 14)
age = on.year - born.year - ((on.month, on.day) < (born.month... | chat | [
{
"role": "user",
"content": "Rania was born on September 3, 1983. How old is Rania on November 14, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1983, 9, 3) # datetime.date(1983, 9, 3)\non = date(2027, 11, 14) # datetime.date(2027, 11, 14)\nage... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0046207 | <|start|><|user|>
An invoice lists 20 labels at $8 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 20
unit_price = 8
subtotal = quantity * unit_price # 160
total = subtotal * (1 + 8 / 100) # 172.8
print(f"{total:.2f}")
```
Out: 172.80
The total with tax is $172.80.<|eot|... | chat | [
{
"role": "user",
"content": "An invoice lists 20 labels at $8 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 20\nunit_price = 8\nsubtotal = quantity * unit_price # 160\ntotal = subtotal * (1 + 8 / 100) # 172.8\nprint(f\"{total:... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "172.80", "printed": "172.80", "notation": null} |
nlprog_det-setting-0046208 | Of a $4,000 budget, $1,600 has been spent. What percent is that?
Python, step by step:
budget = 4000
spent = 1600
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
The printout reads 40.0.
That is 40.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0046209 | Each storage box holds 50 files. How many boxes are needed for 207 files?
Computation in Python:
```python
import math
files = 207
per_box = 50
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
Printed — 5
5 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0046210 | <|start|><|user|>
Goods bought on October 1, 2018 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 10, 1)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.is... | chat | [
{
"role": "user",
"content": "Goods bought on October 1, 2018 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 10, 1)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2019-04-01", "printed": "2019-04-01", "notation": null} |
nlprog_det-setting-0046211 | A $2,500 security deposit has deductions of $60 and $120. How much is refunded?
Computation in Python:
```python
deposit = 2500
deductions = [60, 120]
refund = deposit - sum(deductions) # 2320
print(refund)
```
It prints 2320.
The refund is $2,320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2320", "printed": "2320", "notation": null} |
nlprog_det-setting-0046212 | An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 2 months?
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
(Program output: 480.00)
$480.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0046213 | 4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Program:
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 4 # 5250.0
print(f"{per_client:.2f}")
```
(Execution result: 5250.00)
Each client ge... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0046214 | Sales went from 800 to 880. What is the percent change?
Let the code do the arithmetic:
```python
old = 800
new = 880
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Python prints 10, as expected.
The change is 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0046215 | A training session lasted 5 hours and 13 minutes. How many minutes is that?
```python
hours = 5
minutes = 13
total_minutes = hours * 60 + minutes # 313
print(total_minutes)
```
Printed result — 313
The training session lasted 313 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0046216 | <|start|><|user|>
$2,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
The balance is $2,431.01.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$2,000 is invested at 5% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "The balance is $2,431.01."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2431.01", "printed": "2431.01", "notation": null} |
nlprog_det-setting-0046218 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A measure needs at least 6... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "109", "printed": "109", "notation": null} |
nlprog_det-setting-0046219 | <|start|><|user|>
At $17.31 an hour, what does 38 hours of work pay?<|eot|>
<|assistant|>
The pay is $657.78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $17.31 an hour, what does 38 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $657.78."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "657.78", "printed": "657.78", "notation": null} |
nlprog_det-setting-0046220 | <|start|><|user|>
Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 3000
years = 4
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Shell output: 2250.00
$2,250.00 ... | chat | [
{
"role": "user",
"content": "Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0046221 | <|start|><|user|>
Jamal was born on September 1, 2010. How old is Jamal on July 25, 2025?<|eot|>
<|assistant|>
The age is 14 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jamal was born on September 1, 2010. How old is Jamal on July 25, 2025?"
},
{
"role": "assistant",
"content": "The age is 14 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0046222 | <|start|><|user|>
Meals are $69 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?<|eot|>
<|assistant|>
```python
days = 7
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1323
print(total)
```
That prints: 1323
That comes to $... | chat | [
{
"role": "user",
"content": "Meals are $69 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 7\nmeal_rate = 69\nlodging_rate = 140\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1323", "printed": "1323", "notation": null} |
nlprog_det-setting-0046224 | Split $520 between Oskar and Tariq in the ratio 3 to 5. What is Oskar's share?
In Python:
```python
total = 520
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 195
print(share_a)
```
The program prints 195.
Oskar gets $195. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0046225 | Split $960 between Bruna and Chen in the ratio 1 to 2. What is Bruna's share?
Python, step by step:
```python
total = 960
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 320
print(share_a)
```
Execution prints 320.
Bruna gets $320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0046226 | A claim accrued on August 15, 2017. The limitations period is 2 years. On what date does it expire?
Script:
```python
from datetime import date
accrued = date(2017, 8, 15) # datetime.date(2017, 8, 15)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 8, 15)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2019-08-15", "printed": "2019-08-15", "notation": null} |
nlprog_det-setting-0046227 | Convert 4 h 20 min (the length of a training session) to minutes.
The program:
```python
hours = 4
minutes = 20
total_minutes = hours * 60 + minutes # 260
print(total_minutes)
```
Program output: 260
The training session lasted 260 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "260", "printed": "260", "notation": null} |
nlprog_det-setting-0046228 | How many meters are in 79.5 kilometers?
Written as code:
```python
km = 79.5
meters = km * 1000 # 79500.0
print(round(meters))
```
On running, it outputs 79500.
79,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "79500", "printed": "79500", "notation": null} |
nlprog_det-setting-0046229 | <|start|><|user|>
A 4% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
It outputs 1300.00.
It rises to $1,300.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1300.0\nprint(f\"{new_rent:.2f}\")\n```\nIt outputs 1300.00.\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0046231 | How many weekdays (Monday to Friday) fall after September 1, 2018 up to and including October 2, 2018?
As a program:
```python
from datetime import date, timedelta
start = date(2018, 9, 1)
end = date(2018, 10, 2)
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 | [] | [] | 150 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046232 | A clerk's office charges $35 for each filing. Farah submits 18 filings. What is the total fee?
Let's compute it with Python.
fee = 35
filings = 18
total = fee * filings # 630
print(total)
(Output: 630)
The total fee is $630. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "630", "printed": "630", "notation": null} |
nlprog_det-setting-0046233 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Tomas's scores were 100, 99, 100, 86 a... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "88", "printed": "88", "notation": null} |
nlprog_det-setting-0046234 | What average speed covers 76 miles in 2 hours?
In code:
```python
distance = 76
hours = 2
speed = distance / hours # 38.0
print(round(speed))
```
Printed — 38
The average speed is 38 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0046235 | How many 2-foot square tiles cover a 6 ft by 15 ft floor (round up)?
As Python:
```python
import math
length = 6
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 23
print(tiles)
```
Output of the run — 23
23 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0046236 | Someone works 38 hours at $19.50 per hour. What are the earnings?
That earns $741.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "741.00", "printed": "741.00", "notation": null} |
nlprog_det-setting-0046237 | If a 2-year limitations period starts on July 17, 2021, when does it end?
Here's the code.
```python
from datetime import date
accrued = date(2021, 7, 17) # datetime.date(2021, 7, 17)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 7, 17)
print(expires.isoformat())
```
Executed, ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2023-07-17", "printed": "2023-07-17", "notation": null} |
nlprog_det-setting-0046238 | Goods bought on June 18, 2022 carry a 18-month warranty. When does it expire?
Computation in Python:
```python
from datetime import date
start = date(2022, 6, 18)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2023-12-18", "printed": "2023-12-18", "notation": null} |
nlprog_det-setting-0046239 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
After an initial $6,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 24000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 3000.0
print(f"{each:.... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 24000\nup_front = 60... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0046240 | If a 3-year limitations period starts on February 18, 2017, when does it end?
Python does the arithmetic:
```python
from datetime import date
accrued = date(2017, 2, 18) # datetime.date(2017, 2, 18)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 2, 18)
print(expires.isoformat())... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2020-02-18", "printed": "2020-02-18", "notation": null} |
nlprog_det-setting-0046241 | A 180-mile drive at a steady 40 mph takes how many minutes?
Programmatically:
```python
distance = 180
speed = 40
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
This prints 270.
The trip takes 270 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0046243 | Walls total 923 sq ft and each can covers 300 sq ft. How many cans should be bought?
Coded up:
```python
import math
area = 923
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
The code prints: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0046244 | <|start|><|user|>
A party has 28 days to respond to a motion served on April 25, 2024, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 4, 25) # datetime.date(2024, 4, 25)
response_days = 28
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on April 25, 2024, 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(2024, 4, 25) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2024-05-26", "printed": "2024-05-26", "notation": null} |
nlprog_det-setting-0046245 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 330 | {"gold": "2021-08-23", "printed": "2021-08-23", "notation": null} |
nlprog_det-setting-0046246 | Starting with 1376 desk lamps and using 38 per day, how many remain after 3 days?
Coded up:
```python
stock = 1376
per_day = 38
days = 3
left = stock - per_day * days # 1262
print(left)
```
Executed, it shows: 1262
1262 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1262", "printed": "1262", "notation": null} |
nlprog_det-setting-0046247 | After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
The computation:
```python
award = 60000
fee = award * 40 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
When run, it prints 18000.00.
Each client gets $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0046248 | A water bill is $15 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 13 thousand gallons?
In Python:
```python
base = 15
rate = 4.75
used = 13
free = 2
bill = base + rate * max(0, used - free) # 67.25
print(f"{bill:.2f}")
```
Printed = 67.25
$67.25 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "67.25", "printed": "67.25", "notation": null} |
nlprog_det-setting-0046249 | Straight-line depreciation: cost $30,000, salvage $3,000, 3 years. How much per year?
A few lines of Python do it:
```python
cost = 30000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 9000.0
print(f"{per_year:.2f}")
```
Running it prints 9000.00, as expected.
Depreciation is $9,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0046250 | <|start|><|user|>
Scale 240 g of pasta from 6 servings to 12 servings.<|eot|>
<|assistant|>
```python
grams = 240
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 480
print(scaled)
```
This prints: 480
Use 480 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 240 g of pasta from 6 servings to 12 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 6\nneeded_for = 12\nscaled = grams * needed_for // serves # 480\nprint(scaled)\n```\nThis prints: 480\n\nUse 480 g of pasta."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0046251 | How much is a $64 daily meal allowance over 6 days?
Here is a short program for it.
```python
days = 6
meal_rate = 64
total = days * meal_rate # 384
print(total)
```
It prints 384, as expected.
That comes to $384. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "384", "printed": "384", "notation": null} |
nlprog_det-setting-0046252 | A 4% increase is applied to $1,250 monthly rent. What is the new amount?
Python does the arithmetic:
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
Console:
1300.00
The new rent is $1,300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0046253 | Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?
Python makes this quick:
```python
cost = 45000
salvage = 3000
years = 5
per_year = (cost - salvage) / years # 8400.0
print(f"{per_year:.2f}")
```
Output: 8400.00
Depreciation is $8,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "8400.00", "printed": "8400.00", "notation": null} |
nlprog_det-setting-0046254 | How long, in days, is it from June 21, 2024 until August 10, 2024?
```python
from datetime import date
first = date(2024, 6, 21) # datetime.date(2024, 6, 21)
second = date(2024, 8, 10) # datetime.date(2024, 8, 10)
print((second - first).days)
```
The program outputs: 50
It is 50 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0046255 | 175 copies of a 35-page packet are printed at $0.15 per page. What is the cost?
Set it up in Python:
pages = 35
copies = 175
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 918.75
print(f"{cost:.2f}")
Output = 918.75
The job costs $918.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "918.75", "printed": "918.75", "notation": null} |
nlprog_det-setting-0046256 | <|start|><|user|>
A garage charges $4 an hour, never more than $15 a day. How much for 10 hours?<|eot|>
<|assistant|>
The charge is $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $15 a day. How much for 10 hours?"
},
{
"role": "assistant",
"content": "The charge is $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0046257 | A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?
```python
recovery = 12000
rate = 30 / 100 # 0.3
fee = recovery * rate # 3600.0
print(f"{fee:.2f}")
```
Program output — 3600.00
The lawyer's fee comes to $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0046258 | Monthly rent is $900. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent?
Python, step by step:
```python
rent = 900
days_in_month = 31
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 290.3225806451613
print(f"{prorated:.2f}")
```
The printout reads 290.32.
The pror... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "290.32", "printed": "290.32", "notation": null} |
nlprog_det-setting-0046259 | To read 741 pages in 19 days, how many pages per day are needed?
A few lines of Python do it:
```python
pages = 741
days = 19
per_day = pages // days # 39
print(per_day)
```
It outputs: 39
That is 39 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0046260 | Walls total 841 sq ft and each can covers 400 sq ft. How many cans should be bought?
Computing it:
```python
import math
area = 841
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Result = 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0046262 | A $12,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
In code:
```python
grant = 12000
up_front = 2000
installments = 12
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Run it and it prints 833.33.
Each installment is $833.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "833.33", "printed": "833.33", "notation": null} |
nlprog_det-setting-0046263 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 36500
costs = 36000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
The printout ... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = re... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0046264 | A 160-mile drive at a steady 40 mph takes how many minutes? 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "240", "printed": "240", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.