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-0082666 | A $3,600 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Program:
```python
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + interest) / m... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "315.00", "printed": "315.00", "notation": null} |
nlprog_det-setting-0082668 | <|start|><|user|>
What average speed covers 190 miles in 5 hours?<|eot|>
<|assistant|>
The average speed is 38 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 190 miles in 5 hours?"
},
{
"role": "assistant",
"content": "The average speed is 38 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0082669 | 8 hours of work at $300 an hour: what is the total charge?
Python, step by step:
```python
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
```
Run output — 2400.00
That comes to $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0082670 | <|start|><|system|>
Tool definitions:
{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A party has 14 days to respond to... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source... | nlprog_det | setting | original | null | deterministic | [] | [] | 267 | {"gold": "2027-07-14", "printed": "2027-07-14", "notation": null} |
nlprog_det-setting-0082671 | <|start|><|user|>
19 folders cost $24 apiece. With 10% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 19
unit_price = 24
subtotal = quantity * unit_price # 456
total = subtotal * (1 + 10 / 100) # 501.6
print(f"{total:.2f}")
```
Execution prints: 501.60
The total with tax is $501.60.<|eot|>
<... | chat | [
{
"role": "user",
"content": "19 folders cost $24 apiece. With 10% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 19\nunit_price = 24\nsubtotal = quantity * unit_price # 456\ntotal = subtotal * (1 + 10 / 100) # 501.6\nprint(f\"{total:.2f}\")\n```\nEx... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "501.60", "printed": "501.60", "notation": null} |
nlprog_det-setting-0082672 | How many minutes pass from 9:05 AM to 11:34 AM on the same day?
Python:
```python
start = 9 * 60 + 5 # 545
end = 11 * 60 + 34 # 694
print(end - start)
```
Run result: 149
149 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0082673 | What is a 25% tip on a $189.34 bill?
Let's compute it with Python.
```python
bill = 189.34
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 47.335
print(f"{tip:.2f}")
```
Executed, it shows 47.34.
Leave $47.34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "47.34", "printed": "47.34", "notation": null} |
nlprog_det-setting-0082674 | One can of paint covers 350 square feet. How many cans are needed for 1349 square feet of wall?
```python
import math
area = 1349
coverage = 350
cans = math.ceil(area / coverage)
print(cans)
```
Running this gives 4.
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0082676 | <|start|><|user|>
How many meters are in 34.9 kilometers?<|eot|>
<|assistant|>
That is 34,900 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 34.9 kilometers?"
},
{
"role": "assistant",
"content": "That is 34,900 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "34900", "printed": "34900", "notation": null} |
nlprog_det-setting-0082677 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Of a $4,000 budget, $400 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 400
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
```
Output:
10.0
That is 10.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Of a $4,000 budget, $400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 400\npercent = spent / budget * 100 # 10.0\nprint(round(per... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0082679 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0082680 | Fixed costs are $2,500. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?
Translated to Python:
```python
import math
fixed = 2500
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 625
print(units)
```
That prints: 625
Break-even is 625 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0082681 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
If a 75-minute meeting begins at 9:20 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 20
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
`... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "If a 75-minute meeting begins at 9:20 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 20\nend = start + 75\nhour, minute = divmo... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "10:35 AM", "printed": "10:35 AM", "notation": null} |
nlprog_det-setting-0082682 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 5 months?<|eot|>
<|assistant|>
The interest is $1,200.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 5 months?"
},
{
"role": "assistant",
"content": "The interest is $1,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0082683 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Printing costs 5 cents a page. What does it cost to print 137 copies of a 56-page handout?<|eot|>
<|assistant|>
```python
pages = 56
copies = 137
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 383.6
print(f"{cost:.2f}")
```
Run re... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 137 copies of a 56-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 56\ncopies = 137\ncost_per_pag... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "383.60", "printed": "383.60", "notation": null} |
nlprog_det-setting-0082684 | What does $5,000 grow to in 5 years at 5% annual compounding?
Coded up:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 6381.4078125000015
print(f"{value:.2f}")
```
Output of the run: 6381.41
It is worth $6,381.41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6381.41", "printed": "6381.41", "notation": null} |
nlprog_det-setting-0082685 | 7 hours of work at $225 an hour: what is the total charge?
Here's the code.
```python
hours = 7
rate = 225
bill = hours * rate # 1575
print(f"{bill:.2f}")
```
(stdout: 1575.00)
The bill is $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0082686 | At 40 miles per hour, how many minutes does a 220-mile trip take?
As Python:
```python
distance = 220
speed = 40
minutes = distance / speed * 60 # 330.0
print(round(minutes))
```
Console output: 330
The trip takes 330 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0082687 | <|start|><|user|>
How many 1-foot square tiles cover a 17 ft by 13 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 17
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 221
print(tiles)
```
# run result: 221
It takes 221 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 17 ft by 13 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 17\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 221\nprint(tiles)\n```\n# run result: 221\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "221", "printed": "221", "notation": null} |
nlprog_det-setting-0082688 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 42
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 55.5
pay = regular + overti... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 42\nregular =... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "795.50", "printed": "795.50", "notation": null} |
nlprog_det-setting-0082689 | How many weekdays (Monday to Friday) fall after May 26, 2019 up to and including June 17, 2019?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2019, 5, 26)
end = date(2019, 6, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0082690 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
After a 25% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 25 / 100
remaining = award - fee
per_client = remaining / 2
print(f"... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "After a 25% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 720... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0082691 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 8,000 gallons?
Python makes this quick:
```python
base = 15
rate = 4.2
used = 8
free = 3
bill = base + rate * max(0, used - free) # 36.0
print(f"{bill:.2f}")
```
# printed: 36.00
The bill is $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0082692 | <|start|><|user|>
A meal costs $47.05. How much is a 10% tip?<|eot|>
<|assistant|>
```python
bill = 47.05
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 4.705
print(f"{tip:.2f}")
```
Output — 4.71
The tip is $4.71.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $47.05. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 47.05\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 4.705\nprint(f\"{tip:.2f}\")\n```\nOutput — 4.71\n\nThe tip is $4.71."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4.71", "printed": "4.71", "notation": null} |
nlprog_det-setting-0082693 | A hall has 13 rows of 16 seats, and 15 seats are empty. How many people are seated?
The program:
```python
rows = 13
per_row = 16
empty = 15
seated = rows * per_row - empty # 193
print(seated)
```
Run result: 193
193 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "193", "printed": "193", "notation": null} |
nlprog_det-setting-0082694 | Monthly rent is $1,500. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?
Programmatically:
```python
rent = 1500
days_in_month = 31
days_occupied = 23
prorated = rent * days_occupied / days_in_month # 1112.9032258064517
print(f"{prorated:.2f}")
```
It prints: 1112.90
The tenant owes ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "1112.90", "printed": "1112.90", "notation": null} |
nlprog_det-setting-0082695 | A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?
The computation:
recovery = 90000
rate = 25 / 100 # 0.25
fee = recovery * rate # 22500.0
print(f"{fee:.2f}")
(Program output: 22500.00)
The lawyer's fee comes to $22,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "22500.00", "printed": "22500.00", "notation": null} |
nlprog_det-setting-0082696 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Scale 300 g of sugar from 2 servings to 3 servings.<|eot|>
<|assistant|>
```python
grams = 300
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 450
print(scaled)
```
stdout:
450
Use 450 g of sugar.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Scale 300 g of sugar from 2 servings to 3 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 2\nneeded_for = 3\nscaled = grams * needed_for // serves # 450\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0082697 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0082698 | Kaito lends $20,000 at 3% simple interest per year for 2 years. How much interest is earned?
We write it as a program:
```python
principal = 20000
rate = 3 / 100 # 0.03
years = 2
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
```
Result = 1200.00
The interest is $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0082699 | How much sales tax is charged on a $263.38 purchase at 9%?
Python version:
```python
price = 263.38
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 23.7042
print(f"{tax:.2f}")
```
Output = 23.70
The tax is $23.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "23.70", "printed": "23.70", "notation": null} |
nlprog_det-setting-0082700 | 3 friends split a $210 bill plus a 15% tip evenly. How much does each pay? Each person pays $80.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "80.50", "printed": "80.50", "notation": null} |
nlprog_det-setting-0082701 | At $0.62 per mile, what is the reimbursement for 544 miles?
Let's compute it with Python.
```python
miles = 544
rate = 0.62
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Executing it gives 337.28.
Carmen is owed $337.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "337.28", "printed": "337.28", "notation": null} |
nlprog_det-setting-0082702 | A $1,500 security deposit has deductions of $200. How much is refunded?
Computing it:
deposit = 1500
deductions = [200]
refund = deposit - sum(deductions) # 1300
print(refund)
The script prints 1300, as expected.
The refund is $1,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0082704 | <|start|><|user|>
A count moves from 800 to 1,000. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 800
new = 1000
change = (new - old) / old * 100 # 25.0
print(round(change))
```
Printed result: 25
The change is 25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 1,000. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 800\nnew = 1000\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nPrinted result: 25\n\nThe chan... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0082705 | 82 copies of a 21-page packet are printed at $0.08 per page. What is the cost?
Here's the code.
```python
pages = 21
copies = 82
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 137.76
print(f"{cost:.2f}")
```
Run result — 137.76
Printing costs $137.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "137.76", "printed": "137.76", "notation": null} |
nlprog_det-setting-0082706 | A customer buys 1 batteries at $19 each, 3 folders at $25 each, 5 scissors at $20 each, 5 flash drives at $15 each and pays with $300. How much change is due?
Let the code do the arithmetic:
```python
items = [(1, 19), (3, 25), (5, 20), (5, 15)]
total = sum(q * p for q, p in items) # 269
paid = 300
change = paid - to... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0082707 | <|start|><|user|>
What commission does Kofi make on $52,589 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 52589
rate = 5 / 100 # 0.05
commission = sales * rate # 2629.4500000000003
print(f"{commission:.2f}")
```
What it prints: 2629.45
The commission is $2,629.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Kofi make on $52,589 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 52589\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 2629.4500000000003\nprint(f\"{commission:.2f}\")\n```\nWhat it prints: 2629.45\n\nThe comm... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2629.45", "printed": "2629.45", "notation": null} |
nlprog_det-setting-0082708 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 35 / 100 # 0.35
fee = recovery * rate # 21000.0
print(f"{fee:.2f}")
```
Python prints 21000.00.
The lawyer's fee comes to $21,... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0082709 | <|start|><|user|>
Convert 16.7 km to meters.<|eot|>
<|assistant|>
```python
km = 16.7
meters = km * 1000 # 16700.0
print(round(meters))
```
Interpreter output: 16700
That is 16,700 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 16.7 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 16.7\nmeters = km * 1000 # 16700.0\nprint(round(meters))\n```\nInterpreter output: 16700\n\nThat is 16,700 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "16700", "printed": "16700", "notation": null} |
nlprog_det-setting-0082710 | <|start|><|user|>
Rent of $1,500 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
Shell output: 1560.00
It rises to $1,560.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,500 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1560.0\nprint(f\"{new_rent:.2f}\")\n```\nShell output: 1560.00\n\nIt rises to $1,560.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0082711 | <|start|><|user|>
With 40% off, what does a $300 desk lamp cost?<|eot|>
<|assistant|>
It costs $180.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 40% off, what does a $300 desk lamp cost?"
},
{
"role": "assistant",
"content": "It costs $180.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0082712 | <|start|><|user|>
On which weekday does January 6, 2020 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2020, 1, 6) # datetime.date(2020, 1, 6)
print(hearing.strftime("%A"))
```
# console output: Monday
January 6, 2020 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does January 6, 2020 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2020, 1, 6) # datetime.date(2020, 1, 6)\nprint(hearing.strftime(\"%A\"))\n```\n# console output: Monday\n\nJanuary 6, 2020 is a M... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0082713 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Each storage box holds 20 files. How many boxes are needed for 248 files?<|eot|>
<|assistant|>
```python
import math
files = 248
per_box = 20
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
(Result: 13)
13 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 248 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 248\nper_box = 20\nboxes = math.ceil(file... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0082714 | A trial runs from July 6, 2026 to July 12, 2026, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2026, 7, 6) # datetime.date(2026, 7, 6)
last = date(2026, 7, 12) # datetime.date(2026, 7, 12)
days = (last - first).days + 1 # 7
print(days)
```
It prints 7.
That is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0082715 | How many units at $15 each (variable cost $10) cover $6,000 of fixed costs?
As Python:
```python
import math
fixed = 6000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable))
print(units)
```
Execution result — 1200
Break-even is 1200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0082716 | A 396-page report must be reviewed in 12 days. How many pages a day is that, evenly?
Here is the program.
pages = 396
days = 12
per_day = pages // days # 33
print(per_day)
# program output: 33
33 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0082717 | <|start|><|user|>
2 books come back 2 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
The fine is $0.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 2 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "The fine is $0.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "0.40", "printed": "0.40", "notation": null} |
nlprog_det-setting-0082718 | Bilal earns a 5% commission on $12,639 of sales. What is the commission?
Computing it:
sales = 12639
rate = 5 / 100 # 0.05
commission = sales * rate # 631.95
print(f"{commission:.2f}")
When run, it prints: 631.95
The commission is $631.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "631.95", "printed": "631.95", "notation": null} |
nlprog_det-setting-0082719 | <|start|><|user|>
Monthly: $19. Annual: $180. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 180
savings = monthly * 12 - yearly # 48
print(savings)
```
Out — 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $19. Annual: $180. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 180\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nOut — 48\n\n$48 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0082720 | <|start|><|user|>
Walls total 286 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 286
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
Out — 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 286 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 286\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nOut — 2\n\n2 cans are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0082721 | <|start|><|user|>
Pack A has 12 items for $11.25. Pack B has 24 items for $10.75. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 11.25 / 12
pack_b = 10.75 / 24
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
It prints B.
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $11.25. Pack B has 24 items for $10.75. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.25 / 12\npack_b = 10.75 / 24\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nIt pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0082724 | <|start|><|system|>
Tools you may use:
[{"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|>
After an initial $6,000, ... | chat | [
{
"role": "system",
"content": "Tools you may use:\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\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0082725 | An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?
Python:
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 20.0
print(f"{interest:.2f}")
```
(Console output: 20.00)
$20.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0082726 | 1 books come back 29 days late, at $0.50 a day each. What is the fine?
The fine is $14.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "14.50", "printed": "14.50", "notation": null} |
nlprog_det-setting-0082727 | A customer buys 1 markers at $27 each, 3 toner kits at $16 each, 3 file boxes at $23 each, 2 chairs at $23 each and pays with $200. How much change is due?
Program:
```python
items = [(1, 27), (3, 16), (3, 23), (2, 23)]
total = sum(q * p for q, p in items) # 190
paid = 200
change = paid - total # 10
print(change)
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0082728 | From 1991 to 1999, how many years is that?
Computation in Python:
```python
start_year = 1991
end_year = 1999
print(end_year - start_year)
```
Executed, it shows: 8
8 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0082729 | A claim accrued on April 20, 2023. The limitations period is 5 years. On what date does it expire?
It runs out on April 20, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2028-04-20", "printed": "2028-04-20", "notation": null} |
nlprog_det-setting-0082730 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
678 files go into boxes of 25. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 678
per_box = 25
boxes = math.ceil(files / per_box) # 28
print(boxes)
```
Out:
28
It takes 28 boxes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "678 files go into boxes of 25. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 678\nper_box = 25\nboxes = math.ceil(files / per_box) # 28\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0082731 | A trial runs from May 24, 2025 to June 15, 2025, counting both days. How many calendar days is that?
We write it as a program:
```python
from datetime import date
first = date(2025, 5, 24) # datetime.date(2025, 5, 24)
last = date(2025, 6, 15) # datetime.date(2025, 6, 15)
days = (last - first).days + 1 # 23
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0082732 | How many whole days and leftover hours are in 110 hours?
```python
hours = 110
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Interpreter output: 4 days and 14 hours
110 hours is 4 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "4 days and 14 hours", "printed": "4 days and 14 hours", "notation": null} |
nlprog_det-setting-0082733 | A hearing is set for July 26, 2008. What day of the week is that?
```python
from datetime import date
hearing = date(2008, 7, 26) # datetime.date(2008, 7, 26)
print(hearing.strftime("%A"))
```
When run, it prints: Saturday
July 26, 2008 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0082735 | <|start|><|user|>
Convert 3 h 18 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 18
total_minutes = hours * 60 + minutes # 198
print(total_minutes)
```
(stdout: 198)
The meeting lasted 198 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 18 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 18\ntotal_minutes = hours * 60 + minutes # 198\nprint(total_minutes)\n```\n(stdout: 198)\n\nThe meeting lasted 198 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "198", "printed": "198", "notation": null} |
nlprog_det-setting-0082736 | Sales went from 1,000 to 1,500. What is the percent change?
Python makes this quick:
old = 1000
new = 1500
change = (new - old) / old * 100 # 50.0
print(round(change))
That prints 50.
The change is 50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0082737 | <|start|><|user|>
How many of 252 votes make 75% (round up)?<|eot|>
<|assistant|>
At least 189 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 252 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "At least 189 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "189", "printed": "189", "notation": null} |
nlprog_det-setting-0082738 | <|start|><|user|>
A $1,200 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 72.0
payment ... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0082739 | A measure needs at least 60% of 258 votes. How many votes is that, rounded up?
At least 155 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "155", "printed": "155", "notation": null} |
nlprog_det-setting-0082740 | <|start|><|user|>
Liesel drove 540 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 540
rate = 0.67
reimbursement = miles * rate # 361.8
print(f"{reimbursement:.2f}")
```
It outputs 361.80.
The reimbursement is $361.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Liesel drove 540 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 540\nrate = 0.67\nreimbursement = miles * rate # 361.8\nprint(f\"{reimbursement:.2f}\")\n```\nIt outp... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "361.80", "printed": "361.80", "notation": null} |
nlprog_det-setting-0082741 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after November 8, 2026 up to and including November 24, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 11, 8)
end = date(2026, 11, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after November 8, 2026 up to and including November 24, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 11, 8)\nend = date(2026, 11, 24)\ncount = 0\nfor k in r... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0082742 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0082743 | A $2,500 security deposit has deductions of $150. How much is refunded?
As Python:
```python
deposit = 2500
deductions = [150]
refund = deposit - sum(deductions) # 2350
print(refund)
```
Console:
2350
$2,350 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2350", "printed": "2350", "notation": null} |
nlprog_det-setting-0082744 | Convert 1,642 EUR to USD at 1 EUR = 1.35 USD.
```python
amount = 1642
rate = 1.35
converted = amount * rate # 2216.7000000000003
print(f"{converted:.2f}")
```
Execution result — 2216.70
It converts to 2,216.70 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2216.70", "printed": "2216.70", "notation": null} |
nlprog_det-setting-0082745 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
A Python solution:
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
Console output: 3.8
Profit is 3.8% of ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0082747 | With 25% off, what does a $90 backpack cost?
Python, step by step:
```python
price = 90
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
```
Python prints 67.50, as expected.
The sale price is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0082748 | A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments?
We write it as a program:
monthly = 9
yearly = 72
savings = monthly * 12 - yearly # 36
print(savings)
(Output: 36)
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0082749 | A 8-day trip pays $74 a day for meals and $110 a night for lodging (7 nights). What is the total allowance?
Computation in Python:
days = 8
meal_rate = 74
lodging_rate = 110
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
The printout reads 1362.
The allowance i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1362", "printed": "1362", "notation": null} |
nlprog_det-setting-0082750 | A meal costs $99.18. How much is a 18% tip?
In code:
```python
bill = 99.18
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 17.8524
print(f"{tip:.2f}")
```
# program output: 17.85
Leave $17.85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "17.85", "printed": "17.85", "notation": null} |
nlprog_det-setting-0082751 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after July 10, 2021 through August 17, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 7, 10)
end = date(2021, 8, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after July 10, 2021 through August 17, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 7, 10)\nend = date(2021, 8, 17)\ncount = 0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0082752 | An invoice lists 7 keyboards at $8 each, plus 7% sales tax. What is the invoice total?
A short script:
```python
quantity = 7
unit_price = 8
subtotal = quantity * unit_price # 56
total = subtotal * (1 + 7 / 100) # 59.92
print(f"{total:.2f}")
```
When run, it prints 59.92, as expected.
The invoice total is $59.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "59.92", "printed": "59.92", "notation": null} |
nlprog_det-setting-0082753 | <|start|><|user|>
At 40 miles per hour, how many minutes does a 150-mile trip take?<|eot|>
<|assistant|>
```python
distance = 150
speed = 40
minutes = distance / speed * 60
print(round(minutes))
```
Python prints 225, as expected.
225 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 150-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 40\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nPython prints 225, as expected.\n\n225 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0082754 | <|start|><|system|>
Tools you may use:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"typ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"calculator\", \"description\": \"A Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 262 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0082755 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
Program output: ... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 25\n yearl... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0082756 | Express 150 hours in days and hours. That is 6 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 19 | {"gold": "6 days and 6 hours", "printed": "6 days and 6 hours", "notation": null} |
nlprog_det-setting-0082757 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Fixed costs are $9,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 25
variable = 15
units = math.ceil(fixed / (price - variable))
print(units)
```
Thi... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\npric... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0082759 | The rules require 1/3 of 27 members (round up) to be present. How many is that?
As a program:
```python
import math
members = 27
quorum = math.ceil(members * 1 / 3) # 9
print(quorum)
```
The program outputs 9.
9 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0082760 | A $9,000 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Coded up:
```python
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 450.0
payment = (principal + interest) / ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "787.50", "printed": "787.50", "notation": null} |
nlprog_det-setting-0082761 | Starting from $12,000, the team spends $2,441, $3,784, $760, $986. What remains?
```python
budget = 12000
expenses = [2441, 3784, 760, 986]
left = budget - sum(expenses) # 4029
print(left)
```
The run gives 4029.
$4,029 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "4029", "printed": "4029", "notation": null} |
nlprog_det-setting-0082762 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
How many of 112 votes make 75% (round up)?<|eot|>
<|assistant|>
At least 84 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "How many of 112 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "At least 84 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0082763 | Diego earns a 10% commission on $22,763 of sales. What is the commission?
A Python solution:
```python
sales = 22763
rate = 10 / 100 # 0.1
commission = sales * rate # 2276.3
print(f"{commission:.2f}")
```
Interpreter output: 2276.30
Diego earns $2,276.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2276.30", "printed": "2276.30", "notation": null} |
nlprog_det-setting-0082764 | Starting from $8,000, the team spends $3,097, $2,668. What remains?
Python version:
budget = 8000
expenses = [3097, 2668]
left = budget - sum(expenses) # 2235
print(left)
Program output: 2235
$2,235 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2235", "printed": "2235", "notation": null} |
nlprog_det-setting-0082765 | <|start|><|user|>
Prorate $1,800 of monthly rent for 11 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 638.7096774193549
print(f"{prorated:.2f}")
```
Executing it gives 638.71.
The tenant owes $638.71.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 11 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 11\nprorated = rent * days_occupied / days_in_month # 638.7096774193549\nprint(f\"{prorated:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "638.71", "printed": "638.71", "notation": null} |
nlprog_det-setting-0082766 | <|start|><|system|>
You can call tools. Available tools:
{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "description... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "1788", "printed": "1788", "notation": null} |
nlprog_det-setting-0082767 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "sandbox_python", "description": "Executes Python code and r... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"sandb... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0082768 | 190 copies of a 45-page packet are printed at $0.05 per page. What is the cost?
The job costs $427.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "427.50", "printed": "427.50", "notation": null} |
nlprog_det-setting-0082769 | Paula was born on July 2, 1977. How old is Paula on March 18, 2028?
As Python:
```python
from datetime import date
born = date(1977, 7, 2) # datetime.date(1977, 7, 2)
on = date(2028, 3, 18) # datetime.date(2028, 3, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 50
print(age)
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0082770 | Pack A has 6 items for $3.56. Pack B has 30 items for $13.77. Which has the lower price per item?
Set it up in Python:
```python
pack_a = 3.56 / 6 # 0.5933333333333334
pack_b = 13.77 / 30 # 0.45899999999999996
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Run result: B
Pack B is cheaper per it... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0082771 | What is 40 degrees Celsius in Fahrenheit?
Set it up in Python:
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
# run result: 104
That is 104 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0082772 | A $84 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?
Python does the arithmetic:
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 50.4
print(f"{each:.2f}")
```
The run gives: 50.40
The share is $50.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "50.40", "printed": "50.40", "notation": null} |
nlprog_det-setting-0082773 | From 1990 to 2007, how many years is that?
Python, step by step:
```python
start_year = 1990
end_year = 2007
print(end_year - start_year)
```
The interpreter prints: 17
17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0082775 | A claim accrued on October 28, 2017. The limitations period is 4 years. On what date does it expire?
```python
from datetime import date
accrued = date(2017, 10, 28) # datetime.date(2017, 10, 28)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 10, 28)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2021-10-28", "printed": "2021-10-28", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.