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-0045834 | <|start|><|user|>
How many 1-foot square tiles cover a 11 ft by 12 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 11
width = 12
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 132
print(tiles)
Run output — 132
132 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 11 ft by 12 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 11\n width = 12\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 132\n print(tiles)\nRun output — ... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "132", "printed": "132", "notation": null} |
nlprog_det-setting-0045835 | <|start|><|user|>
A $800 security deposit has deductions of $150. How much is refunded?<|eot|>
<|assistant|>
The refund is $650.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $150. How much is refunded?"
},
{
"role": "assistant",
"content": "The refund is $650."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0045836 | Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?
Python does the arithmetic:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 576.0
payment = (principal + interest) / months # 174.0
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "174.00", "printed": "174.00", "notation": null} |
nlprog_det-setting-0045837 | <|start|><|user|>
A party has 14 days to respond to a motion served on March 12, 2026, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 3, 12) # datetime.date(2026, 3, 12)
response_days = 14
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on March 12, 2026, 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(2026, 3, 12) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2026-03-29", "printed": "2026-03-29", "notation": null} |
nlprog_det-setting-0045838 | What simple interest does $2,500 earn at 8% a year over 4 years?
Written as code:
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
stdout = 800.00
The interest is $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0045839 | What is 30 degrees Celsius in Fahrenheit?
Here is a short program for it.
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Execution prints 86.
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0045840 | <|start|><|user|>
282 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 282
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
The program prints 94 each, 0 left over.
94 ea... | chat | [
{
"role": "user",
"content": "282 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 282\n groups = 3\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "94 each, 0 left over", "printed": "94 each, 0 left over", "notation": null} |
nlprog_det-setting-0045841 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A 90-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 90
speed = 45
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
Running this gives: 120
The trip takes 120 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A 90-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 90\nspeed = 45\nminutes = distance / speed * 60 # 120.0\nprint(r... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0045842 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
What is the total rent on a 6-month lease at $2,875 a month?<|eot|>
<|assistant|>
In total, $17,250 is paid.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "In total, $17,250 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0045843 | Printing costs 5 cents a page. What does it cost to print 196 copies of a 44-page handout?
Here's the code.
pages = 44
copies = 196
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 431.20000000000005
print(f"{cost:.2f}")
Printed = 431.20
The job costs $431.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "431.20", "printed": "431.20", "notation": null} |
nlprog_det-setting-0045844 | <|start|><|user|>
Carmen was born on April 6, 1981. How old is Carmen on June 28, 2021?<|eot|>
<|assistant|>
Carmen is 40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Carmen was born on April 6, 1981. How old is Carmen on June 28, 2021?"
},
{
"role": "assistant",
"content": "Carmen is 40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0045845 | <|start|><|user|>
The paralegal logged 10.5 hours at a rate of $300. How much is billed?<|eot|>
<|assistant|>
```python
hours = 10.5
rate = 300
bill = hours * rate # 3150.0
print(f"{bill:.2f}")
```
Run result: 3150.00
That comes to $3,150.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 10.5 hours at a rate of $300. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 10.5\nrate = 300\nbill = hours * rate # 3150.0\nprint(f\"{bill:.2f}\")\n```\nRun result: 3150.00\n\nThat comes to $3,150.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0045846 | Copies cost $15 plus $0.50 for each page beyond 10. How much for 114 pages?
Python, step by step:
```python
pages = 114
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 67.0
print(f"{cost:.2f}")
```
Result: 67.00
The total is $67.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "67.00", "printed": "67.00", "notation": null} |
nlprog_det-setting-0045847 | A $24,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?
A few lines of Python do it:
```python
grant = 24000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 1750.0
print(f"{each:.2f}")
```
Execution result: 1750.00
$1,750.00 per installm... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1750.00", "printed": "1750.00", "notation": null} |
nlprog_det-setting-0045848 | Papers were served by mail on October 18, 2028. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Python version:
```python
from datetime import date, timedelta
served = date(2028, 10, 18) # datetime.date(2028, 10, 18)
response_days = 28
mail_days = 3
due = served + timedel... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 183 | {"gold": "2028-11-18", "printed": "2028-11-18", "notation": null} |
nlprog_det-setting-0045849 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
240 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 240
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run re... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "240 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 240\ngroups = 5\nper_group, remaind... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "48 each, 0 left over", "printed": "48 each, 0 left over", "notation": null} |
nlprog_det-setting-0045850 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 180-mile trip take?<|eot|>
<|assistant|>
```python
distance = 180
speed = 30
minutes = distance / speed * 60
print(round(minutes))
```
stdout:
360
360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 180-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 180\nspeed = 30\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nstdout:\n360\n\n360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0045851 | 6 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
Computation in Python:
bill = 180
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
Console output — 36.00
Each person pays $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0045852 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A quorum is 3/5 of the 40 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 40
quorum = math.ceil(members * 3 / 5) # 24
print(quorum)
On running, it outputs 24.
24 members are neede... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A quorum is 3/5 of the 40 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 40\n quorum = math.ceil(mem... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0045853 | Lena and Kemal share $1,588 in the ratio 1:3. How much does Lena get?
Coded up:
```python
total = 1588
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 397
print(share_a)
```
The run gives 397, as expected.
Lena gets $397. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "397", "printed": "397", "notation": null} |
nlprog_det-setting-0045854 | <|start|><|user|>
Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 15,000 gallons?<|eot|>
<|assistant|>
base = 20
rate = 5.1
used = 15
free = 3
bill = base + rate * max(0, used - free) # 81.19999999999999
print(f"{bill:.2f}")
Python prints: 81.20
The bill ... | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 15,000 gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 5.1\n used = 15\n free = 3\n bill = base + rate * max(0, used - free) # 81.1999999999999... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "81.20", "printed": "81.20", "notation": null} |
nlprog_det-setting-0045855 | 22 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Python:
```python
total = 22
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Running it prints 5 each, 2 left over, as expected.
5 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "5 each, 2 left over", "printed": "5 each, 2 left over", "notation": null} |
nlprog_det-setting-0045856 | Priya earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?
Priya earns $1,010.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1010.00", "printed": "1010.00", "notation": null} |
nlprog_det-setting-0045857 | From 1995 to 2035, how many years is that?
The Python version:
```python
start_year = 1995
end_year = 2035
print(end_year - start_year)
```
Result: 40
40 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0045858 | Find the mean of these test scores: 81, 84, 86, 97, 58 and 74.
The program:
```python
scores = [81, 84, 86, 97, 58, 74]
average = sum(scores) // len(scores) # 80
print(average)
```
The printout reads 80.
The mean is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0045859 | A 4% increase is applied to $1,800 monthly rent. What is the new amount?
In code:
```python
rent = 1800
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1872.0
print(f"{new_rent:.2f}")
```
stdout = 1872.00
The new rent is $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0045860 | <|start|><|system|>
Tool definitions:
[{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
At an exchange rate of 1.08 EUR per USD, how... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "6301.80", "printed": "6301.80", "notation": null} |
nlprog_det-setting-0045861 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "428.40", "printed": "428.40", "notation": null} |
nlprog_det-setting-0045862 | <|start|><|system|>
You may call the tools below.
[{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetch_filing", "descriptio... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0045864 | Scale 200 g of rice from 6 servings to 12 servings.
The Python version:
```python
grams = 200
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 400
print(scaled)
```
The run gives 400.
Use 400 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0045865 | <|start|><|user|>
Omar's scores were 88, 86 and 57. What is the average score?<|eot|>
<|assistant|>
```python
scores = [88, 86, 57]
average = sum(scores) // len(scores)
print(average)
```
Output = 77
The mean is 77.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Omar's scores were 88, 86 and 57. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [88, 86, 57]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nOutput = 77\n\nThe mean is 77."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0045866 | Of a $4,000 budget, $3,200 has been spent. What percent is that?
```python
budget = 4000
spent = 3200
percent = spent / budget * 100 # 80.0
print(round(percent, 1))
```
Run it and it prints: 80.0
That is 80.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0045867 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
At a 5% tax rate, what is the tax on $341.33?<|eot|>
<|assistant|>
price = 341.33
tax_rate = 5 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
Running this gives 17.07.
$17.07 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $341.33?"
},
{
"role": "assistant",
"content": " price = 341.33\n tax_rate = 5 / 100\n tax = price * tax_rate\n print(f\"{tax:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "17.07", "printed": "17.07", "notation": null} |
nlprog_det-setting-0045868 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A service costs $29 a m... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0045869 | What average speed covers 516 miles in 2 hours? It averages 258 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "258", "printed": "258", "notation": null} |
nlprog_det-setting-0045870 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Buying 6 tape rolls at $20 each, 4 hard drives at $19 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
The change is $4.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Buying 6 tape rolls at $20 each, 4 hard drives at $19 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "The change is $4."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0045871 | Goods bought on July 26, 2024 carry a 24-month warranty. When does it expire?
In Python:
```python
from datetime import date
start = date(2024, 7, 26)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Printed resu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2026-07-26", "printed": "2026-07-26", "notation": null} |
nlprog_det-setting-0045872 | <|start|><|user|>
With 20% off, what does a $250 jacket cost?<|eot|>
<|assistant|>
```python
price = 250
discount = 20 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
Printed — 200.00
The sale price is $200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 20% off, what does a $250 jacket cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 250\ndiscount = 20 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nPrinted — 200.00\n\nThe sale price is $200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0045873 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?
rate = 20.0
hours = 50
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 300.0
pay = regular + overtime # 1100.0
print(f"{pay:.2f}")
This prints 1100.00.
The weekly pay is $1,10... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1100.00", "printed": "1100.00", "notation": null} |
nlprog_det-setting-0045874 | A $210 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?
The computation:
```python
bill = 210
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 42.0
print(f"{each:.2f}")
```
# out: 42.00
Each person pays $42.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0045875 | <|start|><|system|>
Tools (call with JSON):
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
From a $5,000 retainer, 13 ho... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0045876 | At $19.80 an hour, what does 40 hours of work pay?
Coded up:
```python
rate = 19.8
hours = 40
earnings = rate * hours
print(f"{earnings:.2f}")
```
The run gives 792.00.
The pay is $792.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "792.00", "printed": "792.00", "notation": null} |
nlprog_det-setting-0045877 | <|start|><|user|>
Bilal buys 5 boxes of 25 staplers each and gives away 9 staplers. How many staplers are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 25
given_away = 9
left = boxes * per_box - given_away # 116
print(left)
```
The script prints 116.
116 staplers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Bilal buys 5 boxes of 25 staplers each and gives away 9 staplers. How many staplers are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 25\ngiven_away = 9\nleft = boxes * per_box - given_away # 116\nprint(left)\n```\nThe script prints 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0045878 | Pack A has 8 items for $6.37. Pack B has 15 items for $19.30. Which has the lower price per item?
```python
pack_a = 6.37 / 8 # 0.79625
pack_b = 19.3 / 15 # 1.2866666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Running this gives A.
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0045879 | Scale 100 g of sugar from 4 servings to 10 servings.
In Python:
```python
grams = 100
serves = 4
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
Printed — 250
Use 250 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0045880 | <|start|><|user|>
On which weekday does December 24, 2006 fall?<|eot|>
<|assistant|>
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does December 24, 2006 fall?"
},
{
"role": "assistant",
"content": "It is a Sunday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0045881 | <|start|><|user|>
What is the total rent on a 6-month lease at $3,250 a month?<|eot|>
<|assistant|>
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
Program output: 19500
The rent over the term is $19,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": " monthly_rent = 3250\n months = 6\n total = monthly_rent * months # 19500\n print(total)\nProgram output: 19500\n\nThe rent over the term is $19,500."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0045882 | Starting from $8,000, the team spends $3,942, $3,642. What remains?
Python:
budget = 8000
expenses = [3942, 3642]
left = budget - sum(expenses) # 416
print(left)
Executing it gives 416, as expected.
The remaining budget is $416. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "416", "printed": "416", "notation": null} |
nlprog_det-setting-0045883 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Of a $4,000 budget, $600 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 600
percent = spent / budget * 100 # 15.0
print(round(percent, 1))
```
Printed result: 15.0
15.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Of a $4,000 budget, $600 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 600\npercent = spent / budget * 100 # 15.0\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15.0", "printed": "15.0", "notation": null} |
nlprog_det-setting-0045884 | Counting only Monday through Friday, how many business days are there after November 6, 2023 through November 21, 2023?
As Python:
```python
from datetime import date, timedelta
start = date(2023, 11, 6)
end = date(2023, 11, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0045885 | <|start|><|user|>
Someone works 20 hours at $30.09 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 30.09
hours = 20
earnings = rate * hours # 601.8
print(f"{earnings:.2f}")
```
Output of the run — 601.80
The pay is $601.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 20 hours at $30.09 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.09\nhours = 20\nearnings = rate * hours # 601.8\nprint(f\"{earnings:.2f}\")\n```\nOutput of the run — 601.80\n\nThe pay is $601.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "601.80", "printed": "601.80", "notation": null} |
nlprog_det-setting-0045886 | An attorney bills 8 hours at $410 per hour. What is the bill?
Script:
```python
hours = 8
rate = 410
bill = hours * rate # 3280
print(f"{bill:.2f}")
```
That prints 3280.00.
The bill is $3,280.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "3280.00", "printed": "3280.00", "notation": null} |
nlprog_det-setting-0045887 | A garage charges $4 an hour, never more than $24 a day. How much for 1 hours?
A few lines of Python do it:
```python
rate = 4
hours = 1
daily_max = 24
cost = min(rate * hours, daily_max) # 4
print(cost)
```
Python prints: 4
The charge is $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0045889 | After a 25% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
As a program:
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 2 # 11250.0
print(f"{per_client:.2f}")
```
When run, it prints ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0045891 | Straight-line depreciation: cost $45,000, salvage $3,000, 6 years. How much per year?
The program:
```python
cost = 45000
salvage = 3000
years = 6
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Executing it gives 7000.00, as expected.
$7,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0045892 | <|start|><|user|>
Monthly rent is $1,200. A tenant moves in with 24 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 929.0322580645161
print(f"{prorated:.2f}")
```
Out = 929.03
The... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,200. A tenant moves in with 24 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 929.03... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "929.03", "printed": "929.03", "notation": null} |
nlprog_det-setting-0045893 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A 31 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 31
cost = base + per_pound * weight # 89.5
print(f"{cost:.2f}")
```
When run, it prints 89.50.
The charge is $... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A 31 lb package ships at $12 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 31\ncost = base + per_pou... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "89.50", "printed": "89.50", "notation": null} |
nlprog_det-setting-0045894 | <|start|><|user|>
A 12-month warranty starts on March 28, 2018. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 3, 28)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoforma... | chat | [
{
"role": "user",
"content": "A 12-month warranty starts on March 28, 2018. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 3, 28)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.y... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2019-03-28", "printed": "2019-03-28", "notation": null} |
nlprog_det-setting-0045895 | <|start|><|user|>
The rules require 3/5 of 45 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 45
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
Result:
27
27 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 45 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 45\nquorum = math.ceil(members * 3 / 5)\nprint(quorum)\n```\nResult:\n27\n\n27 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0045896 | A shift starts at 10:30 AM and lasts 135 minutes. When does it end?
The shift finishes at 12:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "12:45 PM", "printed": "12:45 PM", "notation": null} |
nlprog_det-setting-0045897 | At an exchange rate of 1.08 USD per CHF, how many USD is 1,897 CHF?
Script:
```python
amount = 1897
rate = 1.08
converted = amount * rate # 2048.76
print(f"{converted:.2f}")
```
Execution prints 2048.76.
That is 2,048.76 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2048.76", "printed": "2048.76", "notation": null} |
nlprog_det-setting-0045898 | <|start|><|system|>
You have access to these functions:
[{"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": "code_runner", "descri... | chat | [
{
"role": "system",
"content": "You have access to these functions:\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\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 413 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0045899 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A 423-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
That is 47 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A 423-page report must be reviewed in 9 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "That is 47 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0045900 | A party has 30 days to respond to a motion served on December 11, 2027, with 3 days added because service was by mail. When is the response due?
In Python:
```python
from datetime import date, timedelta
served = date(2027, 12, 11) # datetime.date(2027, 12, 11)
response_days = 30
mail_days = 3
due = served + timedelta... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2028-01-13", "printed": "2028-01-13", "notation": null} |
nlprog_det-setting-0045901 | A 6 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
```python
import math
length = 6
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 8
print(tiles)
```
The program outputs: 8
8 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0045902 | <|start|><|user|>
20 of 40 members attended. What percent attended?<|eot|>
<|assistant|>
50.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "20 of 40 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "50.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0045903 | A 18-month warranty starts on April 6, 2018. On what date does it end?
Python does the arithmetic:
```python
from datetime import date
start = date(2018, 4, 6)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2019-10-06", "printed": "2019-10-06", "notation": null} |
nlprog_det-setting-0045904 | 29 desk lamps cost $9 apiece. With 8% tax added, what is the total?
The total with tax is $281.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "281.88", "printed": "281.88", "notation": null} |
nlprog_det-setting-0045905 | A $12,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
We write it as a program:
```python
grant = 12000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 833.3333333333334
print(f"{each:.2f}")
```
What it prints — 833.33
Each installment... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "833.33", "printed": "833.33", "notation": null} |
nlprog_det-setting-0045906 | Lucia lends $5,000 at 8% simple interest per year for 5 years. How much interest is earned?
In code:
principal = 5000
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 2000.0
print(f"{interest:.2f}")
Result:
2000.00
The interest is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0045907 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 9
rate = 275
left = retainer - hours * rate
print(left)
```
Python prints 25.
$25 of the reta... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 9\nrate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0045908 | <|start|><|user|>
What is the total rent on a 24-month lease at $1,200 a month?<|eot|>
<|assistant|>
monthly_rent = 1200
months = 24
total = monthly_rent * months # 28800
print(total)
# printed: 28800
In total, $28,800 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $1,200 a month?"
},
{
"role": "assistant",
"content": " monthly_rent = 1200\n months = 24\n total = monthly_rent * months # 28800\n print(total)\n# printed: 28800\n\nIn total, $28,800 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0045909 | <|start|><|system|>
Functions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "propertie... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"get_weather\", \"description\": \"Get the weather... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0045910 | <|start|><|user|>
A jacket costs $45. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 31.499999999999996
print(f"{sale_price:.2f}")
```
The script prints 31.50, as expected.
The sale price is $31.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $45. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 31.499999999999996\nprint(f\"{sale_price:.2f}\")\n```\nThe script prints 31.50... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "31.50", "printed": "31.50", "notation": null} |
nlprog_det-setting-0045911 | <|start|><|system|>
Functions:
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Shipping costs $8 plus $1.20 per pound... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "35.60", "printed": "35.60", "notation": null} |
nlprog_det-setting-0045912 | A clerk's office charges $45 for each filing. Beatriz submits 12 filings. What is the total fee?
In code:
```python
fee = 45
filings = 12
total = fee * filings # 540
print(total)
```
When run, it prints: 540
The filings cost $540 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0045913 | 267 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Python, step by step:
```python
total = 267
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints 89 each, 0 left over.
89 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "89 each, 0 left over", "printed": "89 each, 0 left over", "notation": null} |
nlprog_det-setting-0045914 | <|start|><|user|>
From 2002 to 2031, how many years is that?<|eot|>
<|assistant|>
That is 29 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2002 to 2031, how many years is that?"
},
{
"role": "assistant",
"content": "That is 29 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0045916 | A hearing is set for May 17, 2001. What day of the week is that?
We can compute it in Python.
```python
from datetime import date
hearing = date(2001, 5, 17) # datetime.date(2001, 5, 17)
print(hearing.strftime("%A"))
```
The program outputs Thursday.
May 17, 2001 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0045917 | Fines run at $100 per day up to a maximum of $5,000. How much after 49 days?
A short script:
```python
per_day = 100
days = 49
cap = 5000
fine = min(per_day * days, cap) # 4900
print(fine)
```
Executed, it shows: 4900
The fine is $4,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4900", "printed": "4900", "notation": null} |
nlprog_det-setting-0045919 | <|start|><|user|>
Priya and Sami share $2,422 in the ratio 2:5. How much does Priya get?<|eot|>
<|assistant|>
```python
total = 2422
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 692
print(share_a)
```
The printout reads: 692
Priya's share is $692.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Priya and Sami share $2,422 in the ratio 2:5. How much does Priya get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2422\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 692\nprint(share_a)\n```\nThe printout reads: 692\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "692", "printed": "692", "notation": null} |
nlprog_det-setting-0045920 | Amir buys 6 boxes of 24 notebooks each and gives away 15 notebooks. How many notebooks are left?
129 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "129", "printed": "129", "notation": null} |
nlprog_det-setting-0045921 | <|start|><|user|>
A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
Each payment is $330.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "Each payment is $330.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0045922 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
The statute was enacted in 2023. How many years had passed by 2048?<|eot|>
<|assistant|>
That is 25 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "The statute was enacted in 2023. How many years had passed by 2048?"
},
{
"role": "assistant",
"content": "That is 25 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0045923 | A hall has 24 rows of 15 seats, and 38 seats are empty. How many people are seated?
Program:
```python
rows = 24
per_row = 15
empty = 38
seated = rows * per_row - empty # 322
print(seated)
```
The run gives 322.
322 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "322", "printed": "322", "notation": null} |
nlprog_det-setting-0045924 | <|start|><|user|>
At 60 miles per hour, how many minutes does a 225-mile trip take?<|eot|>
<|assistant|>
```python
distance = 225
speed = 60
minutes = distance / speed * 60 # 225.0
print(round(minutes))
```
Executing it gives 225.
The trip takes 225 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 60 miles per hour, how many minutes does a 225-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 225\nspeed = 60\nminutes = distance / speed * 60 # 225.0\nprint(round(minutes))\n```\nExecuting it gives 225.\n\nThe trip takes 225 minute... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0045925 | <|start|><|user|>
How many minutes pass from 8:32 AM to 9:33 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 32 # 512
end = 9 * 60 + 33 # 573
print(end - start)
```
Run result: 61
It is 61 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:32 AM to 9:33 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 32 # 512\nend = 9 * 60 + 33 # 573\nprint(end - start)\n```\nRun result: 61\n\nIt is 61 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "61", "printed": "61", "notation": null} |
nlprog_det-setting-0045926 | A customer buys 1 clipboards at $4 each, 6 desk lamps at $8 each, 2 badges at $10 each, 1 pens at $3 each and pays with $100. How much change is due?
The change is $25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0045927 | What average speed covers 280 miles in 5 hours?
The program:
```python
distance = 280
hours = 5
speed = distance / hours # 56.0
print(round(speed))
```
# result: 56
It averages 56 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0045928 | <|start|><|user|>
An attorney bills 12 hours at $250 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 12
rate = 250
bill = hours * rate # 3000
print(f"{bill:.2f}")
```
The interpreter prints 3000.00.
The bill is $3,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 12 hours at $250 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 250\nbill = hours * rate # 3000\nprint(f\"{bill:.2f}\")\n```\nThe interpreter prints 3000.00.\n\nThe bill is $3,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0045929 | <|start|><|user|>
One can of paint covers 350 square feet. How many cans are needed for 849 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 849
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Output of the run — 3
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 350 square feet. How many cans are needed for 849 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 849\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nOutput of the run — 3\... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0045930 | <|start|><|user|>
With 30% off, what does a $180 filing cabinet cost?<|eot|>
<|assistant|>
```python
price = 180
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 125.99999999999999
print(f"{sale_price:.2f}")
```
Running it prints 126.00, as expected.
It costs $126.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $180 filing cabinet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 125.99999999999999\nprint(f\"{sale_price:.2f}\")\n```\nRunning it prints 126.00, as ... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0045931 | What simple interest does $8,000 earn at 3% a year over 5 years?
We write it as a program:
principal = 8000
rate = 3 / 100 # 0.03
years = 5
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
Running it prints: 1200.00
The interest is $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0045932 | A lease runs for 24 months at $2,875 per month. How much rent is paid over the whole term?
In total, $69,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0045933 | <|start|><|user|>
To read 360 pages in 20 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 360
days = 20
per_day = pages // days # 18
print(per_day)
```
Out:
18
That is 18 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 360 pages in 20 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 360\ndays = 20\nper_day = pages // days # 18\nprint(per_day)\n```\nOut:\n18\n\nThat is 18 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0045934 | Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
A Python solution:
```python
revenue = 16500
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Execution prints: 24.2
Profit is 24.2% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0045935 | Convert 3 h 51 min (the length of a film) to minutes.
Here is the program.
```python
hours = 3
minutes = 51
total_minutes = hours * 60 + minutes # 231
print(total_minutes)
```
Out:
231
The film lasted 231 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "231", "printed": "231", "notation": null} |
nlprog_det-setting-0045937 | <|start|><|system|>
You have access to these functions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "lookup_statute", "description": "Look up the text of a U.S. ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"looku... | nlprog_det | setting | original | null | deterministic | [] | [] | 358 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0045938 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Under a 33% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
Out:
19800.00
The lawyer's fee comes to $... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": " recovery = 60000\n rate = 33 / 100 # 0.33\n fee = recover... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0045939 | 6 friends split a $210 bill plus a 18% tip evenly. How much does each pay?
Set it up in Python:
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 6
each = bill * (1 + tip_rate) / people # 41.3
print(f"{each:.2f}")
```
(Printed result: 41.30)
The share is $41.30 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "41.30", "printed": "41.30", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.