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-0046800 | <|start|><|user|>
What does $5,000 grow to in 3 years at 2% annual compounding?<|eot|>
<|assistant|>
The balance is $5,306.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $5,000 grow to in 3 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "The balance is $5,306.04."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "5306.04", "printed": "5306.04", "notation": null} |
nlprog_det-setting-0046801 | <|start|><|user|>
Pack A has 6 items for $8.56. Pack B has 30 items for $6.84. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 8.56 / 6 # 1.4266666666666667
pack_b = 6.84 / 30 # 0.228
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It prints B.
Pack B is cheaper per it... | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $8.56. Pack B has 30 items for $6.84. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.56 / 6 # 1.4266666666666667\npack_b = 6.84 / 30 # 0.228\ncheaper = \"A\" if pack_a < pack_b else \"B\" # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0046802 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Prorate $900... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0046803 | <|start|><|user|>
How many of 94 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 94
needed = math.ceil(voters * 75 / 100)
print(needed)
```
Running it prints 71.
At least 71 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 94 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 94\nneeded = math.ceil(voters * 75 / 100)\nprint(needed)\n```\nRunning it prints 71.\n\nAt least 71 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0046804 | <|start|><|user|>
Each of Hugo's runs burns 300 calories. How many calories over 4 runs?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
```
# result: 1200
That burns 1200 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Hugo's runs burns 300 calories. How many calories over 4 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 4\ntotal = per_session * sessions # 1200\nprint(total)\n```\n# result: 1200\n\nThat burns 1200 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0046805 | A storeroom has 1072 mugs. The office uses 9 a day. How many are left after 19 days?
Computing it:
```python
stock = 1072
per_day = 9
days = 19
left = stock - per_day * days # 901
print(left)
```
The code prints: 901
901 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "901", "printed": "901", "notation": null} |
nlprog_det-setting-0046806 | From a $2,500 retainer, 6 hours at $200/hour have been drawn. What remains?
Let the code do the arithmetic:
```python
retainer = 2500
hours = 6
rate = 200
left = retainer - hours * rate # 1300
print(left)
```
(Output: 1300)
$1,300 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0046807 | With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal.
The margin is 23.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "23.8", "printed": "23.8", "notation": null} |
nlprog_det-setting-0046808 | What does $2,000 grow to in 3 years at 2% annual compounding?
Python code:
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 2122.416
print(f"{value:.2f}")
```
The script prints 2122.42.
The balance is $2,122.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2122.42", "printed": "2122.42", "notation": null} |
nlprog_det-setting-0046809 | A client paid a $5,000 retainer. The firm has billed 4 hours at $275 per hour. How much of the retainer is left?
Script:
```python
retainer = 5000
hours = 4
rate = 275
left = retainer - hours * rate # 3900
print(left)
```
# run result: 3900
$3,900 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "3900", "printed": "3900", "notation": null} |
nlprog_det-setting-0046811 | <|start|><|user|>
Pack A has 8 items for $10.27. Pack B has 18 items for $30.82. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 10.27 / 8 # 1.28375
pack_b = 30.82 / 18 # 1.7122222222222223
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Run result: A)
Pack A is cheap... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $10.27. Pack B has 18 items for $30.82. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.27 / 8 # 1.28375\npack_b = 30.82 / 18 # 1.7122222222222223\ncheaper = \"A\" if pack_a < pack_b else \"B... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0046813 | Equal monthly payments repay $1,200 plus 10% simple yearly interest over 12 months. How large is a payment?
The monthly payment is $110.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "110.00", "printed": "110.00", "notation": null} |
nlprog_det-setting-0046814 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 26 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 26
books = 4
fine = per_day * days_late * books # 26.0
print(f"{fine:.2f}")
```
Result — 26.00
$26.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 26 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 26\nbooks = 4\nfine = per_day * days_late * books # 26.0\nprint(f\"{fine:.2f}\")\n```\nR... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "26.00", "printed": "26.00", "notation": null} |
nlprog_det-setting-0046815 | <|start|><|user|>
With 20% off, what does a $250 chair cost?<|eot|>
<|assistant|>
```python
price = 250
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 200.0
print(f"{sale_price:.2f}")
```
Interpreter output — 200.00
It costs $200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 20% off, what does a $250 chair cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 250\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 200.0\nprint(f\"{sale_price:.2f}\")\n```\nInterpreter output — 200.00\n\nIt costs $200.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0046816 | At a 9% tax rate, what is the tax on $633.78?
A Python solution:
```python
price = 633.78
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 57.0402
print(f"{tax:.2f}")
```
What it prints: 57.04
$57.04 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "57.04", "printed": "57.04", "notation": null} |
nlprog_det-setting-0046817 | What day of the week is August 15, 2010?
August 15, 2010 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0046818 | Eamon drove 516 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
As a program:
```python
miles = 516
rate = 0.65
reimbursement = miles * rate # 335.40000000000003
print(f"{reimbursement:.2f}")
```
Executed, it shows: 335.40
The reimbursement is $335.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "335.40", "printed": "335.40", "notation": null} |
nlprog_det-setting-0046819 | Starting with 1749 headsets and using 33 per day, how many remain after 12 days?
The Python version:
stock = 1749
per_day = 33
days = 12
left = stock - per_day * days # 1353
print(left)
It prints: 1353
1353 headsets are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1353", "printed": "1353", "notation": null} |
nlprog_det-setting-0046820 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A water bill is $18 plus $5.10 pe... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "79.20", "printed": "79.20", "notation": null} |
nlprog_det-setting-0046821 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?<|eot|>
<|assistant|>
300 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": "300 grams of lentils are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0046822 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 855 square feet of wall?<|eot|>
<|assistant|>
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 855 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 3 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0046823 | Someone works 32 hours at $15.89 per hour. What are the earnings?
Let's compute it with Python.
```python
rate = 15.89
hours = 32
earnings = rate * hours # 508.48
print(f"{earnings:.2f}")
```
On running, it outputs 508.48.
The pay is $508.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "508.48", "printed": "508.48", "notation": null} |
nlprog_det-setting-0046824 | A measure needs at least 67% of 171 votes. How many votes is that, rounded up?
```python
import math
voters = 171
needed = math.ceil(voters * 67 / 100)
print(needed)
```
stdout: 115
115 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "115", "printed": "115", "notation": null} |
nlprog_det-setting-0046825 | A client paid a $2,500 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left?
Programmatically:
retainer = 2500
hours = 2
rate = 275
left = retainer - hours * rate # 1950
print(left)
The program outputs 1950.
The remaining balance is $1,950. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1950", "printed": "1950", "notation": null} |
nlprog_det-setting-0046826 | 69 of 80 members attended. What percent attended?
Python code:
```python
present = 69
total = 80
percent = present / total * 100 # 86.25
print(round(percent, 1))
```
Running it prints: 86.2
86.2% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "86.2", "printed": "86.2", "notation": null} |
nlprog_det-setting-0046827 | A $1,500 security deposit has deductions of $120, $60 and $75. How much is refunded?
$1,245 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1245", "printed": "1245", "notation": null} |
nlprog_det-setting-0046828 | <|start|><|user|>
A 8% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
The new rent is $1,188.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 8% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "The new rent is $1,188.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0046829 | A penalty of $250 a day accrues, capped at $1,000. What is owed after 58 days?
Python makes this quick:
```python
per_day = 250
days = 58
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
On running, it outputs: 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0046830 | <|start|><|user|>
An attorney bills 7 hours at $350 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 7
rate = 350
bill = hours * rate # 2450
print(f"{bill:.2f}")
```
(Output: 2450.00)
That comes to $2,450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 7 hours at $350 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 350\nbill = hours * rate # 2450\nprint(f\"{bill:.2f}\")\n```\n(Output: 2450.00)\n\nThat comes to $2,450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2450.00", "printed": "2450.00", "notation": null} |
nlprog_det-setting-0046831 | <|start|><|user|>
The paralegal logged 12 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
```python
hours = 12
rate = 180
bill = hours * rate # 2160
print(f"{bill:.2f}")
```
Interpreter output — 2160.00
The bill is $2,160.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 12 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 180\nbill = hours * rate # 2160\nprint(f\"{bill:.2f}\")\n```\nInterpreter output — 2160.00\n\nThe bill is $2,160.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0046832 | <|start|><|user|>
6 batteries cost $12 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 6
unit_price = 12
subtotal = quantity * unit_price # 72
total = subtotal * (1 + 7 / 100) # 77.04
print(f"{total:.2f}")
```
(Printed result: 77.04)
The total with tax is $77.04.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "6 batteries cost $12 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 6\nunit_price = 12\nsubtotal = quantity * unit_price # 72\ntotal = subtotal * (1 + 7 / 100) # 77.04\nprint(f\"{total:.2f}\")\n```\n(Prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "77.04", "printed": "77.04", "notation": null} |
nlprog_det-setting-0046833 | A storeroom has 1625 envelopes. The office uses 36 a day. How many are left after 17 days?
Python code:
stock = 1625
per_day = 36
days = 17
left = stock - per_day * days # 1013
print(left)
Executed, it shows: 1013
1013 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1013", "printed": "1013", "notation": null} |
nlprog_det-setting-0046834 | If a 2-year limitations period starts on July 14, 2017, when does it end?
from datetime import date
accrued = date(2017, 7, 14) # datetime.date(2017, 7, 14)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 7, 14)
print(expires.isoformat())
The program prints 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2019-07-14", "printed": "2019-07-14", "notation": null} |
nlprog_det-setting-0046835 | Split $3,423 between Wanjiru and Nikhil in the ratio 3 to 4. What is Wanjiru's share?
Computing it:
```python
total = 3423
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1467
print(share_a)
```
Result = 1467
Wanjiru's share is $1,467. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1467", "printed": "1467", "notation": null} |
nlprog_det-setting-0046836 | How many 1-foot square tiles cover a 14 ft by 10 ft floor (round up)?
```python
import math
length = 14
width = 10
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 140
print(tiles)
```
Executed, it shows: 140
It takes 140 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0046837 | <|start|><|user|>
Prorate $2,400 of monthly rent for 5 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 5
prorated = rent * days_occupied / days_in_month # 400.0
print(f"{prorated:.2f}")
```
The run gives 400.00.
The tenant owes $400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 5 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 5\nprorated = rent * days_occupied / days_in_month # 400.0\nprint(f\"{prorated:.2f}\")\n```\nThe run give... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "400.00", "printed": "400.00", "notation": null} |
nlprog_det-setting-0046838 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
principal = 1200
annual_rate = 6 / 100
months = 12
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 1200\n annual_rate = 6 / 100\n months = 12\n interest = principal * annual_rate * months / 12\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0046839 | An office budget of $8,000 has expenses of $782, $3,156, $968. How much of the budget is left?
Python version:
```python
budget = 8000
expenses = [782, 3156, 968]
left = budget - sum(expenses) # 3094
print(left)
```
The script prints 3094.
The remaining budget is $3,094. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "3094", "printed": "3094", "notation": null} |
nlprog_det-setting-0046840 | A trial runs from December 20, 2023 to January 4, 2024, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2023, 12, 20) # datetime.date(2023, 12, 20)
last = date(2024, 1, 4) # datetime.date(2024, 1, 4)
days = (last - first).days + 1 # 16
print(days)
```
Printed = 1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0046841 | <|start|><|user|>
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 720.0
payment = (principal + interest) / months # 28... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "280.00", "printed": "280.00", "notation": null} |
nlprog_det-setting-0046842 | Convert 35 °C to Fahrenheit.
In code:
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
The interpreter prints 95.
That is 95 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0046843 | Each of Reza's walks burns 350 calories. How many calories over 4 walks?
Python code:
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
Printed:
1400
That burns 1400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0046845 | <|start|><|system|>
Tools you may use:
{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Paula earns a 8% commission on $84,7... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "6781.84", "printed": "6781.84", "notation": null} |
nlprog_det-setting-0046846 | A hall has 26 rows of 18 seats, and 31 seats are empty. How many people are seated?
Python version:
```python
rows = 26
per_row = 18
empty = 31
seated = rows * per_row - empty # 437
print(seated)
```
On running, it outputs 437.
437 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "437", "printed": "437", "notation": null} |
nlprog_det-setting-0046847 | How many meters are in 82.5 kilometers?
Set it up in Python:
```python
km = 82.5
meters = km * 1000 # 82500.0
print(round(meters))
```
The printout reads 82500.
That is 82,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "82500", "printed": "82500", "notation": null} |
nlprog_det-setting-0046848 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
16 of 25 members attended. What percent attended?<|eot|>
<|assistant|>
present = 16
total = 25
percent = present / total * 100 # 64.0
print(round(percent, 1))
The program outputs: 64.0
Attendance was 64.0%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "16 of 25 members attended. What percent attended?"
},
{
"role": "assistant",
"content": " present = 16\n total = 25\n percent = present / total * 100 # 64.0\n print(round(percent, 1)... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "64.0", "printed": "64.0", "notation": null} |
nlprog_det-setting-0046849 | At 50 miles per hour, how many minutes does a 300-mile trip take?
```python
distance = 300
speed = 50
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
Running it prints: 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0046851 | <|start|><|user|>
A claim accrued on January 9, 2015. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2015, 1, 9) # datetime.date(2015, 1, 9)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(202... | chat | [
{
"role": "user",
"content": "A claim accrued on January 9, 2015. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2015, 1, 9) # datetime.date(2015, 1, 9)\n years = 6\n expires = accrue... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2021-01-09", "printed": "2021-01-09", "notation": null} |
nlprog_det-setting-0046852 | At an exchange rate of 0.74 EUR per USD, how many EUR is 7,800 USD?
We write it as a program:
```python
amount = 7800
rate = 0.74
converted = amount * rate # 5772.0
print(f"{converted:.2f}")
```
Output — 5772.00
That is 5,772.00 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5772.00", "printed": "5772.00", "notation": null} |
nlprog_det-setting-0046853 | A meal costs $143.50. How much is a 25% tip?
Computation in Python:
```python
bill = 143.5
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 35.875
print(f"{tip:.2f}")
```
Out = 35.88
The tip is $35.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "35.88", "printed": "35.88", "notation": null} |
nlprog_det-setting-0046854 | <|start|><|user|>
Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 30
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 1200.0
print(f"{prorated:.2f}")
```
The script prints: 1200.00
... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1200.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0046855 | Count 14 days forward from August 3, 2019. What date is that?
The program:
```python
from datetime import date, timedelta
start = date(2019, 8, 3) # datetime.date(2019, 8, 3)
end = start + timedelta(days=14) # datetime.date(2019, 8, 17)
print(end.isoformat())
```
Output of the run — 2019-08-17
It ends on August 17,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2019-08-17", "printed": "2019-08-17", "notation": null} |
nlprog_det-setting-0046856 | Notice was given on September 13, 2025. The notice period is 60 days. When does it run out?
The computation:
```python
from datetime import date, timedelta
start = date(2025, 9, 13) # datetime.date(2025, 9, 13)
end = start + timedelta(days=60) # datetime.date(2025, 11, 12)
print(end.isoformat())
```
Running this giv... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2025-11-12", "printed": "2025-11-12", "notation": null} |
nlprog_det-setting-0046857 | Sofia earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?
Let's compute it with Python.
rate = 16.0
hours = 42
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 48.0
pay = regular + overtime # 688.0
print(f"{pay:.2f}")
Output — 688... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "688.00", "printed": "688.00", "notation": null} |
nlprog_det-setting-0046859 | A measure needs at least 75% of 253 votes. How many votes is that, rounded up?
```python
import math
voters = 253
needed = math.ceil(voters * 75 / 100) # 190
print(needed)
```
The run gives: 190
190 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "190", "printed": "190", "notation": null} |
nlprog_det-setting-0046860 | <|start|><|user|>
A 30-day notice period begins on June 4, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 6, 4) # datetime.date(2027, 6, 4)
end = start + timedelta(days=30) # datetime.date(2027, 7, 4)
print(end.isoformat())
```
Printed result — 2... | chat | [
{
"role": "user",
"content": "A 30-day notice period begins on June 4, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 6, 4) # datetime.date(2027, 6, 4)\nend = start + timedelta(days=30) # datetime.date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2027-07-04", "printed": "2027-07-04", "notation": null} |
nlprog_det-setting-0046861 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A library charges $0.15 per book per day late. What is the fine for 2 books that are 2 days late?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 2
books = 2
fine = per_day * days_late * books # 0.6
print(f"{fine:.2f}")
```
(Output: 0.60)
The fine... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 2 books that are 2 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 2\nbooks = 2\nfin... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "0.60", "printed": "0.60", "notation": null} |
nlprog_det-setting-0046862 | Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment?
A short script:
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 1440.0
payment = (principal + interest) / months # 435.0
print(f"{payment:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "435.00", "printed": "435.00", "notation": null} |
nlprog_det-setting-0046863 | Jonas was born on February 22, 1994. How old is Jonas on October 11, 2028?
A short script:
```python
from datetime import date
born = date(1994, 2, 22) # datetime.date(1994, 2, 22)
on = date(2028, 10, 11) # datetime.date(2028, 10, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 34
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0046864 | <|start|><|system|>
Tools (call with JSON):
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A $1,200 loan carries 8% simple ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe... | nlprog_det | setting | original | null | deterministic | [] | [] | 260 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0046865 | <|start|><|user|>
Starting from $20,000, the team spends $3,757, $1,738, $2,015. What remains?<|eot|>
<|assistant|>
budget = 20000
expenses = [3757, 1738, 2015]
left = budget - sum(expenses) # 12490
print(left)
Executing it gives 12490, as expected.
$12,490 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $20,000, the team spends $3,757, $1,738, $2,015. What remains?"
},
{
"role": "assistant",
"content": " budget = 20000\n expenses = [3757, 1738, 2015]\n left = budget - sum(expenses) # 12490\n print(left)\nExecuting it gives 12490, as expec... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "12490", "printed": "12490", "notation": null} |
nlprog_det-setting-0046866 | An invoice lists 18 lanyards at $2 each, plus 5% sales tax. What is the invoice total?
A short script:
```python
quantity = 18
unit_price = 2
subtotal = quantity * unit_price # 36
total = subtotal * (1 + 5 / 100) # 37.800000000000004
print(f"{total:.2f}")
```
Interpreter output: 37.80
The total with tax is $37.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "37.80", "printed": "37.80", "notation": null} |
nlprog_det-setting-0046867 | Diego lends $1,000 at 3% simple interest per year for 6 years. How much interest is earned?
Let the code do the arithmetic:
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 180.0
print(f"{interest:.2f}")
```
That prints 180.00.
The interest is $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0046868 | Counting the first and last day, how many days are there from August 20, 2026 through August 26, 2026?
That is 7 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0046869 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 52
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 403.19999999999993
pay = regul... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 52\nregular = 40... | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "1299.20", "printed": "1299.20", "notation": null} |
nlprog_det-setting-0046870 | 128 copies of a 13-page packet are printed at $0.05 per page. What is the cost?
Written as code:
```python
pages = 13
copies = 128
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 83.2
print(f"{cost:.2f}")
```
It outputs 83.20.
The job costs $83.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "83.20", "printed": "83.20", "notation": null} |
nlprog_det-setting-0046871 | How many units at $15 each (variable cost $9) cover $2,500 of fixed costs? Break-even is 417 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0046872 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A shift starts at 2:00 PM and lasts 105 minutes. When does it end?<|eot|>
<|assistant|>
The shift finishes at 3:45 PM.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A shift starts at 2:00 PM and lasts 105 minutes. When does it end?"
},
{
"role": "assistant",
"content": "The shift finishes at 3:45 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "3:45 PM", "printed": "3:45 PM", "notation": null} |
nlprog_det-setting-0046873 | <|start|><|user|>
The statute was enacted in 2020. How many years had passed by 2053?<|eot|>
<|assistant|>
```python
start_year = 2020
end_year = 2053
print(end_year - start_year)
```
The printout reads: 33
33 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2020. How many years had passed by 2053?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2020\nend_year = 2053\nprint(end_year - start_year)\n```\nThe printout reads: 33\n\n33 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0046874 | On which weekday does February 15, 2019 fall?
In Python:
```python
from datetime import date
hearing = date(2019, 2, 15) # datetime.date(2019, 2, 15)
print(hearing.strftime("%A"))
```
Output of the run — Friday
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0046875 | Ines has 6 documents to file, and each filing costs $35. How much are the filing fees in total?
A short script:
```python
fee = 35
filings = 6
total = fee * filings # 210
print(total)
```
The interpreter prints 210.
The total fee is $210. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0046876 | <|start|><|user|>
What average speed covers 422 miles in 1 hours?<|eot|>
<|assistant|>
It averages 422 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 422 miles in 1 hours?"
},
{
"role": "assistant",
"content": "It averages 422 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "422", "printed": "422", "notation": null} |
nlprog_det-setting-0046877 | How many 2-foot square tiles cover a 12 ft by 9 ft floor (round up)?
In Python:
```python
import math
length = 12
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 27
print(tiles)
```
Run output: 27
It takes 27 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0046878 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A measure needs at least 60% of 67 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 67
needed = math.ceil(voters * 60 / 100) # 41
print(needed)
```
The program prints 41, as expected.
At least 41 votes.<|eot... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A measure needs at least 60% of 67 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 67\nneeded = math.ceil(voters * 60 / 10... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0046879 | <|start|><|user|>
How many units at $20 each (variable cost $10) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable))
print(units)
```
stdout = 900
900 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $10) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 20\nvariable = 10\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nstdout = 900\n\n900 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0046880 | Nilufar earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?
As a program:
rate = 16.0
hours = 41
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 24.0
pay = regular + overtime # 664.0
print(f"{pay:.2f}")
The program outputs 664.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "664.00", "printed": "664.00", "notation": null} |
nlprog_det-setting-0046881 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 783 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 783
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Executed, it shows 3.
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 783 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 783\ncoverage = 300\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nExecuted, it shows 3.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0046882 | A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments?
The Python version:
```python
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
```
This prints: 12
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046883 | What is the total rent on a 6-month lease at $1,200 a month?
Set it up in Python:
```python
monthly_rent = 1200
months = 6
total = monthly_rent * months # 7200
print(total)
```
It outputs: 7200
The rent over the term is $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0046884 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What average speed covers 246 miles in 1.5 hours?<|eot|>
<|assistant|>
The average speed is 164 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What average speed covers 246 miles in 1.5 hours?"
},
{
"role": "assistant",
"content": "The average speed is 164 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0046886 | <|start|><|user|>
A shift runs from 11:21 AM to 4:15 PM. How long is it in minutes?<|eot|>
<|assistant|>
294 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 11:21 AM to 4:15 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "294 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "294", "printed": "294", "notation": null} |
nlprog_det-setting-0046887 | A $180 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?
Let's compute it with Python.
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 54.0
print(f"{each:.2f}")
```
Run output: 54.00
The share is $54.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0046888 | <|start|><|user|>
An attorney bills 8 hours at $225 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 8
rate = 225
bill = hours * rate # 1800
print(f"{bill:.2f}")
stdout — 1800.00
The bill is $1,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 8 hours at $225 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 8\n rate = 225\n bill = hours * rate # 1800\n print(f\"{bill:.2f}\")\nstdout — 1800.00\n\nThe bill is $1,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0046889 | Convert 84.3 km to meters.
We write it as a program:
```python
km = 84.3
meters = km * 1000
print(round(meters))
```
stdout: 84300
That is 84,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "84300", "printed": "84300", "notation": null} |
nlprog_det-setting-0046890 | <|start|><|user|>
Shipping costs $5 plus $1.20 per pound. What does a 14-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 1.2
weight = 14
cost = base + per_pound * weight # 21.8
print(f"{cost:.2f}")
```
(Printed result: 21.80)
The charge is $21.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $1.20 per pound. What does a 14-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 1.2\nweight = 14\ncost = base + per_pound * weight # 21.8\nprint(f\"{cost:.2f}\")\n```\n(Printed result: 21.80)... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "21.80", "printed": "21.80", "notation": null} |
nlprog_det-setting-0046891 | A meal costs $183.82. How much is a 10% tip?
Python:
```python
bill = 183.82
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 18.382
print(f"{tip:.2f}")
```
That prints 18.38.
The tip is $18.38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "18.38", "printed": "18.38", "notation": null} |
nlprog_det-setting-0046892 | <|start|><|system|>
You have access to these functions:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python_exec\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "3075", "printed": "3075", "notation": null} |
nlprog_det-setting-0046893 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
4 bike rides at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 4
total = per_session * sessions # 1600
print(total)
```
stdout: 1600
1600 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "4 bike rides at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions # 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0046894 | <|start|><|user|>
A storeroom has 635 envelopes. The office uses 40 a day. How many are left after 15 days?<|eot|>
<|assistant|>
```python
stock = 635
per_day = 40
days = 15
left = stock - per_day * days # 35
print(left)
```
# printed: 35
35 envelopes are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 635 envelopes. The office uses 40 a day. How many are left after 15 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 635\nper_day = 40\ndays = 15\nleft = stock - per_day * days # 35\nprint(left)\n```\n# printed: 35\n\n35 envelopes are... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0046896 | What simple interest does $8,000 earn at 8% a year over 5 years?
The program:
principal = 8000
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 3200.0
print(f"{interest:.2f}")
stdout = 3200.00
It earns $3,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0046897 | <|start|><|user|>
A 7 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
It takes 6 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 7 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "It takes 6 tiles."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0046898 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Meals are $74 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?<|eot|>
<|assistant|>
That comes to $1,144.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Meals are $74 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?"
},
{
"role": "assistant",
"content": "That comes to $1,144."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "1144", "printed": "1144", "notation": null} |
nlprog_det-setting-0046899 | <|start|><|user|>
Yara earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 45
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 138.75
pay = regular + overtime # 878.75
print(f"{pay:.2f}")
```
This prints ... | chat | [
{
"role": "user",
"content": "Yara earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 45\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 138.75\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "878.75", "printed": "878.75", "notation": null} |
nlprog_det-setting-0046900 | <|start|><|user|>
Straight-line depreciation: cost $18,000, salvage $3,000, 4 years. How much per year?<|eot|>
<|assistant|>
$3,750.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $18,000, salvage $3,000, 4 years. How much per year?"
},
{
"role": "assistant",
"content": "$3,750.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "3750.00", "printed": "3750.00", "notation": null} |
nlprog_det-setting-0046901 | With 20% off, what does a $80 jacket cost?
Python code:
price = 80
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 64.0
print(f"{sale_price:.2f}")
The code prints: 64.00
The sale price is $64.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0046903 | At 1.5% a month (simple), what interest builds on $7,500 over 3 months?
The Python version:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print(f"{interest:.2f}")
```
The script prints 337.50, as expected.
$337.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0046904 | Starting with 800 binders and using 29 per day, how many remain after 6 days?
Python version:
```python
stock = 800
per_day = 29
days = 6
left = stock - per_day * days # 626
print(left)
```
Result: 626
626 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "626", "printed": "626", "notation": null} |
nlprog_det-setting-0046905 | Printing costs 15 cents a page. What does it cost to print 9 copies of a 39-page handout?
Python:
```python
pages = 39
copies = 9
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 52.65
print(f"{cost:.2f}")
```
Interpreter output — 52.65
Printing costs $52.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "52.65", "printed": "52.65", "notation": null} |
nlprog_det-setting-0046906 | <|start|><|user|>
Split $1,610 between Zainab and Reza in the ratio 2 to 3. What is Zainab's share?<|eot|>
<|assistant|>
```python
total = 1610
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
# printed result: 644
Zainab's share is $644.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,610 between Zainab and Reza in the ratio 2 to 3. What is Zainab's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1610\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\n# printed result: 644\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "644", "printed": "644", "notation": null} |
nlprog_det-setting-0046907 | What is the total rent on a 36-month lease at $1,200 a month?
Python:
```python
monthly_rent = 1200
months = 36
total = monthly_rent * months # 43200
print(total)
```
The script prints 43200, as expected.
The rent over the term is $43,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "43200", "printed": "43200", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.