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-0058404 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = rem... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0058405 | <|start|><|user|>
At a 9% tax rate, what is the tax on $246.52?<|eot|>
<|assistant|>
$22.19 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $246.52?"
},
{
"role": "assistant",
"content": "$22.19 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "22.19", "printed": "22.19", "notation": null} |
nlprog_det-setting-0058406 | What is a 10% tip on a $63.64 bill?
Here's the code.
```python
bill = 63.64
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 6.364000000000001
print(f"{tip:.2f}")
```
Interpreter output: 6.36
Leave $6.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6.36", "printed": "6.36", "notation": null} |
nlprog_det-setting-0058407 | <|start|><|user|>
A storeroom has 1799 lanyards. The office uses 27 a day. How many are left after 3 days?<|eot|>
<|assistant|>
```python
stock = 1799
per_day = 27
days = 3
left = stock - per_day * days # 1718
print(left)
```
The program prints 1718, as expected.
1718 lanyards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1799 lanyards. The office uses 27 a day. How many are left after 3 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1799\nper_day = 27\ndays = 3\nleft = stock - per_day * days # 1718\nprint(left)\n```\nThe program prints 1718, as expe... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1718", "printed": "1718", "notation": null} |
nlprog_det-setting-0058408 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $2,500. How much after 9 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 9
cap = 2500
fine = min(per_day * days, cap) # 225
print(fine)
```
Run result: 225
The fine is $225.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $2,500. How much after 9 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 9\ncap = 2500\nfine = min(per_day * days, cap) # 225\nprint(fine)\n```\nRun result: 225\n\nThe fine is $225."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0058409 | <|start|><|user|>
Carmen earns a 4% commission on $91,983 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 91983
rate = 4 / 100 # 0.04
commission = sales * rate # 3679.32
print(f"{commission:.2f}")
```
Console output — 3679.32
Carmen earns $3,679.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Carmen earns a 4% commission on $91,983 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 91983\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 3679.32\nprint(f\"{commission:.2f}\")\n```\nConsole output — 3679.32\n\nCa... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3679.32", "printed": "3679.32", "notation": null} |
nlprog_det-setting-0058410 | <|start|><|user|>
Rent of $2,200 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 2244.0
print(f"{new_rent:.2f}")
```
Run result — 2244.00
The new rent is $2,244.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $2,200 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 2244.0\nprint(f\"{new_rent:.2f}\")\n```\nRun result — 2244.00\n\nThe new rent is $2,244.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0058411 | From 2019 to 2046, how many years is that?
That is 27 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0058413 | Rent of $2,200 goes up 5%. What is the new rent?
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
(Execution result: 2310.00)
It rises to $2,310.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0058414 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Helga's scores were 61, 98, 78, 60 and 93. What is the average score?<|eot|>
<|assistant|>
```python
scores = [61, 98, 78, 60, 93]
average = sum(scores) // len(scores) # 78
print(average)
```
It outputs 78.
The mean is 78.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Helga's scores were 61, 98, 78, 60 and 93. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [61, 98, 78, 60, 93]\naverage = sum(scores) // len(scores) # 78\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0058415 | Mei lends $20,000 at 4% simple interest per year for 2 years. How much interest is earned?
A Python solution:
```python
principal = 20000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
```
(stdout: 1600.00)
It earns $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0058416 | A filing cabinet costs $300. It is 10% off. What is the sale price?
Here's the code.
```python
price = 300
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 270.0
print(f"{sale_price:.2f}")
```
Running it prints 270.00.
It costs $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0058417 | $10,000 is invested at 3% compounded yearly. What is it worth after 2 years?
Python, step by step:
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 2
value = principal * (1 + rate) ** years # 10609.0
print(f"{value:.2f}")
```
This prints: 10609.00
The balance is $10,609.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "10609.00", "printed": "10609.00", "notation": null} |
nlprog_det-setting-0058418 | How many of 99 votes make 67% (round up)?
Python:
```python
import math
voters = 99
needed = math.ceil(voters * 67 / 100) # 67
print(needed)
```
(Output: 67)
67 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0058420 | Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?
Python, step by step:
```python
principal = 9000
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 1620.0
payment = (principal + interest) / months # 295.0
print(f"{pa... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "295.00", "printed": "295.00", "notation": null} |
nlprog_det-setting-0058421 | Find the mean of these test scores: 102, 65, 89, 75, 67 and 82.
Set it up in Python:
```python
scores = [102, 65, 89, 75, 67, 82]
average = sum(scores) // len(scores)
print(average)
```
Out: 80
The average score is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0058423 | A hall has 28 rows of 22 seats, and 9 seats are empty. How many people are seated?
Written as code:
```python
rows = 28
per_row = 22
empty = 9
seated = rows * per_row - empty # 607
print(seated)
```
stdout:
607
607 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "607", "printed": "607", "notation": null} |
nlprog_det-setting-0058424 | If a 4-year limitations period starts on June 19, 2013, when does it end?
Python, step by step:
```python
from datetime import date
accrued = date(2013, 6, 19) # datetime.date(2013, 6, 19)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 6, 19)
print(expires.isoformat())
```
(Prog... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2017-06-19", "printed": "2017-06-19", "notation": null} |
nlprog_det-setting-0058425 | 4 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Computing it:
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
print(f"{per_client:.2f}")
```
It outputs 9000.00.
Each share is $9... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0058426 | A 275-page report must be reviewed in 5 days. How many pages a day is that, evenly?
Code:
```python
pages = 275
days = 5
per_day = pages // days # 55
print(per_day)
```
On running, it outputs 55.
55 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0058427 | At 1.5% a month (simple), what interest builds on $2,500 over 6 months?
A Python solution:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Execution prints 225.00.
$225.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0058428 | Sara's scores were 93, 69, 65 and 93. What is the average score?
Code:
```python
scores = [93, 69, 65, 93]
average = sum(scores) // len(scores) # 80
print(average)
```
Shell output — 80
The average score is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0058429 | A recipe for 6 people uses 300 grams of sugar. How many grams are needed for 10 people?
Let the code do the arithmetic:
```python
grams = 300
serves = 6
needed_for = 10
scaled = grams * needed_for // serves # 500
print(scaled)
```
Out — 500
Use 500 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0058430 | How many days are there from June 13, 2022 to December 13, 2022?
As Python:
from datetime import date
first = date(2022, 6, 13) # datetime.date(2022, 6, 13)
second = date(2022, 12, 13) # datetime.date(2022, 12, 13)
print((second - first).days)
The program prints 183.
There are 183 days between the t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "183", "printed": "183", "notation": null} |
nlprog_det-setting-0058431 | <|start|><|system|>
You have access to these functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "run_python", "description": "Runs... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 392 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0058432 | A client paid a $7,500 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?
Let the code do the arithmetic:
```python
retainer = 7500
hours = 8
rate = 200
left = retainer - hours * rate # 5900
print(left)
```
It outputs 5900.
$5,900 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "5900", "printed": "5900", "notation": null} |
nlprog_det-setting-0058433 | Attendance was 13 out of 20. Express it as a percent.
Code:
```python
present = 13
total = 20
percent = present / total * 100 # 65.0
print(round(percent, 1))
```
The program prints 65.0, as expected.
Attendance was 65.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0058434 | Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Profit is 38.5% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0058435 | <|start|><|user|>
Each of Leon's walks burns 200 calories. How many calories over 6 walks?<|eot|>
<|assistant|>
per_session = 200
sessions = 6
total = per_session * sessions # 1200
print(total)
Out: 1200
1200 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Leon's walks burns 200 calories. How many calories over 6 walks?"
},
{
"role": "assistant",
"content": " per_session = 200\n sessions = 6\n total = per_session * sessions # 1200\n print(total)\nOut: 1200\n\n1200 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0058436 | <|start|><|user|>
A settlement of $525 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
```
Output: 105
Each party receives $105.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $525 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 525\nparties = 5\nshare = settlement // parties # 105\nprint(share)\n```\nOutput: 105\n\nEach party receives $105... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0058437 | <|start|><|system|>
You have access to these functions:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
13 mugs cost $9 apiec... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "126.36", "printed": "126.36", "notation": null} |
nlprog_det-setting-0058438 | A quorum is 2/3 of the 35 members, rounded up. How many members make a quorum?
Python, step by step:
```python
import math
members = 35
quorum = math.ceil(members * 2 / 3)
print(quorum)
```
Output: 24
24 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0058439 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "translate", "description": "Tran... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star... | nlprog_det | setting | original | null | deterministic | [] | [] | 409 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0058440 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
rate = 25.0
hours = 44
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime # 1150.0
print(f"{pay:.2f}")
Result... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": " rate = 25.0\n hours = 44\n regular = 40 * rate # 1000.0\n overtime = (hours - 40) * rate * 1.5 # 150.0\n pay = r... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0058441 | Monthly: $15. Annual: $144. What is saved per year by paying annually?
Coded up:
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
The printout reads: 36
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0058443 | Split $1,239 between Nikhil and Bruna in the ratio 3 to 4. What is Nikhil's share?
Translated to Python:
```python
total = 1239
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 531
print(share_a)
```
What it prints: 531
Nikhil gets $531. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "531", "printed": "531", "notation": null} |
nlprog_det-setting-0058445 | 191 files go into boxes of 50. How many boxes does that take?
Programmatically:
```python
import math
files = 191
per_box = 50
boxes = math.ceil(files / per_box) # 4
print(boxes)
```
Python prints 4.
4 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0058446 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A customer buys 3 clipboards at $8 each, 1 ink cartridges at $19 each, 1 labels at $2 each, 2 lanyards at $2 each and pays with $50. How much change is due?<|eot|>
<|assistant|>
```python
items = [(3, 8), (1, 19), (1, 2), (2, 2)]
total = sum(q *... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A customer buys 3 clipboards at $8 each, 1 ink cartridges at $19 each, 1 labels at $2 each, 2 lanyards at $2 each and pays with $50. How much change is due?"
},
{
"role": "assistant",... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0058447 | A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)?
Python does the arithmetic:
old = 500
new = 450
change = (new - old) / old * 100 # -10.0
print(round(change))
Result: -10
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0058448 | Express 101 hours in days and hours.
Script:
```python
hours = 101
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Running this gives: 4 days and 5 hours
101 hours is 4 days and 5 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "4 days and 5 hours", "printed": "4 days and 5 hours", "notation": null} |
nlprog_det-setting-0058449 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0058452 | What day of the week is November 3, 2002?
November 3, 2002 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0058453 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Nilufar drove 73 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 73
rate = 0.67
reimbursement = miles * rate # 48.910000000000004
print(f"{reimbursement:.2f}")
```
Console output —... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Nilufar drove 73 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 73\nrate = 0.67\nreimbursement ... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "48.91", "printed": "48.91", "notation": null} |
nlprog_det-setting-0058454 | <|start|><|user|>
Convert 4 h 40 min (the length of a film) to minutes.<|eot|>
<|assistant|>
```python
hours = 4
minutes = 40
total_minutes = hours * 60 + minutes # 280
print(total_minutes)
```
Running it prints: 280
That is 280 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4 h 40 min (the length of a film) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 40\ntotal_minutes = hours * 60 + minutes # 280\nprint(total_minutes)\n```\nRunning it prints: 280\n\nThat is 280 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "280", "printed": "280", "notation": null} |
nlprog_det-setting-0058456 | With 23 rows of 12 chairs and 39 empty chairs, how many chairs are taken?
Python version:
```python
rows = 23
per_row = 12
empty = 39
seated = rows * per_row - empty # 237
print(seated)
```
# printed: 237
237 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0058457 | Yara drove 488 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
```python
miles = 488
rate = 0.58
reimbursement = miles * rate # 283.03999999999996
print(f"{reimbursement:.2f}")
```
Shell output — 283.04
Yara is owed $283.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "283.04", "printed": "283.04", "notation": null} |
nlprog_det-setting-0058458 | How many of 11 votes make 67% (round up)?
The program:
import math
voters = 11
needed = math.ceil(voters * 67 / 100) # 8
print(needed)
Printed result — 8
At least 8 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0058459 | <|start|><|user|>
A settlement of $524 is split equally among 2 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 524
parties = 2
share = settlement // parties # 262
print(share)
```
Console output: 262
Each share is $262.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $524 is split equally among 2 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 524\nparties = 2\nshare = settlement // parties # 262\nprint(share)\n```\nConsole output: 262\n\nEach share is $2... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0058460 | What commission does Sami make on $63,159 in sales at 5%?
One way, in code:
```python
sales = 63159
rate = 5 / 100 # 0.05
commission = sales * rate # 3157.9500000000003
print(f"{commission:.2f}")
```
# stdout: 3157.95
Sami earns $3,157.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3157.95", "printed": "3157.95", "notation": null} |
nlprog_det-setting-0058461 | What is a 20% tip on a $179.08 bill?
Python version:
```python
bill = 179.08
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 35.816
print(f"{tip:.2f}")
```
# out: 35.82
Leave $35.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "35.82", "printed": "35.82", "notation": null} |
nlprog_det-setting-0058462 | A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?
The rent over the term is $11,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0058464 | Shipping costs $12 plus $1.20 per pound. What does a 13-pound parcel cost to ship?
Python makes this quick:
```python
base = 12
per_pound = 1.2
weight = 13
cost = base + per_pound * weight # 27.6
print(f"{cost:.2f}")
```
On running, it outputs 27.60.
The charge is $27.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "27.60", "printed": "27.60", "notation": null} |
nlprog_det-setting-0058465 | An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?
We can compute it in Python.
```python
balance = 1000
monthly_rate = 2 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
It prints: 80.00
The interest is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0058466 | With 16 rows of 13 chairs and 14 empty chairs, how many chairs are taken?
Python makes this quick:
```python
rows = 16
per_row = 13
empty = 14
seated = rows * per_row - empty # 194
print(seated)
```
What it prints: 194
194 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "194", "printed": "194", "notation": null} |
nlprog_det-setting-0058467 | 125 files go into boxes of 40. How many boxes does that take?
Let the code do the arithmetic:
```python
import math
files = 125
per_box = 40
boxes = math.ceil(files / per_box) # 4
print(boxes)
```
Printed: 4
4 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0058468 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Goods bought on February 21, 2025 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2025, 2, 21)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Goods bought on February 21, 2025 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2025, 2, 21)\n mo... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2025-08-21", "printed": "2025-08-21", "notation": null} |
nlprog_det-setting-0058469 | A storeroom has 621 water bottles. The office uses 20 a day. How many are left after 16 days?
A few lines of Python do it:
```python
stock = 621
per_day = 20
days = 16
left = stock - per_day * days
print(left)
```
(Program output: 301)
301 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "301", "printed": "301", "notation": null} |
nlprog_det-setting-0058470 | Someone works 38 hours at $16.47 per hour. What are the earnings?
The Python version:
```python
rate = 16.47
hours = 38
earnings = rate * hours
print(f"{earnings:.2f}")
```
The script prints 625.86, as expected.
The pay is $625.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "625.86", "printed": "625.86", "notation": null} |
nlprog_det-setting-0058471 | A settlement of $15,000 is split equally among 6 parties. How much does each party receive?
In Python:
```python
settlement = 15000
parties = 6
share = settlement // parties # 2500
print(share)
```
The printout reads 2500.
Each party receives $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0058472 | What percentage of $5,000 is $3,200?
Python:
```python
budget = 5000
spent = 3200
percent = spent / budget * 100 # 64.0
print(round(percent, 1))
```
This prints: 64.0
64.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "64.0", "printed": "64.0", "notation": null} |
nlprog_det-setting-0058474 | <|start|><|user|>
What is 5 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
The script prints: 41
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 5 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nThe script prints: 41\n\nThat is 41 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0058475 | 3 friends split a $96 bill plus a 18% tip evenly. How much does each pay?
The computation:
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 37.76
print(f"{each:.2f}")
```
Run it and it prints: 37.76
The share is $37.76 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "37.76", "printed": "37.76", "notation": null} |
nlprog_det-setting-0058476 | What is the total rent on a 24-month lease at $1,640 a month?
Translated to Python:
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months
print(total)
```
It prints 39360, as expected.
The rent over the term is $39,360. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0058477 | If a 3-year limitations period starts on February 11, 2023, when does it end? It runs out on February 11, 2026. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2026-02-11", "printed": "2026-02-11", "notation": null} |
nlprog_det-setting-0058478 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Convert -20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
It outputs: -4
It equals -4 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Convert -20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nIt outputs: -4\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0058480 | <|start|><|user|>
How many minutes pass from 8:44 AM to 10:06 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 44 # 524
end = 10 * 60 + 6 # 606
print(end - start)
```
# execution result: 82
It is 82 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:44 AM to 10:06 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 44 # 524\nend = 10 * 60 + 6 # 606\nprint(end - start)\n```\n# execution result: 82\n\nIt is 82 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0058481 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "fetc... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 351 | {"gold": "89.5", "printed": "89.5", "notation": null} |
nlprog_det-setting-0058482 | With 8 rows of 23 chairs and 28 empty chairs, how many chairs are taken?
Python does the arithmetic:
```python
rows = 8
per_row = 23
empty = 28
seated = rows * per_row - empty # 156
print(seated)
```
It prints: 156
156 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0058483 | <|start|><|user|>
A $3,600 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
principal = 3600
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 216.0
... | chat | [
{
"role": "user",
"content": "A $3,600 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": " principal = 3600\n annual_rate = 6 / 100 # 0.06\n months = 12\n in... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "318.00", "printed": "318.00", "notation": null} |
nlprog_det-setting-0058484 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after June 5, 2024 through July 9, 2024?<|eot|>
<|assistant|>
24 weekdays.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after June 5, 2024 through July 9, 2024?"
},
{
"role": "assistant",
"content": "24 weekdays."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0058485 | What percentage of $2,000 is $1,100?
One way, in code:
```python
budget = 2000
spent = 1100
percent = spent / budget * 100 # 55.00000000000001
print(round(percent, 1))
```
(Program output: 55.0)
55.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0058486 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
How many minutes pass from 9:30 AM to 2:45 PM on the same day?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 30 # 570
end = 14 * 60 + 45 # 885
print(end - start)
```
The script prints 315.
It is 315 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "How many minutes pass from 9:30 AM to 2:45 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 30 # 570\nend = 14 * 60 + 45 # 885\nprint(end - start)\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0058488 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?
Programmatically:
```python
rate = 25.0
hours = 47
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 262.5
pay = regular + overtime # 1262.5
print(f"{pay:.2f}")
```
Shell output — 1262.50
Ines earns $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1262.50", "printed": "1262.50", "notation": null} |
nlprog_det-setting-0058489 | Convert 25 °C to Fahrenheit.
As Python:
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
Interpreter output — 77
That is 77 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0058490 | A settlement of $36,000 is split equally among 6 parties. How much does each party receive?
Each share is $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0058491 | Attendance was 48 out of 50. Express it as a percent.
The Python version:
```python
present = 48
total = 50
percent = present / total * 100 # 96.0
print(round(percent, 1))
```
Run result: 96.0
Attendance was 96.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "96.0", "printed": "96.0", "notation": null} |
nlprog_det-setting-0058492 | Ines buys 12 boxes of 25 cables each and gives away 19 cables. How many cables are left?
Here is a short program for it.
```python
boxes = 12
per_box = 25
given_away = 19
left = boxes * per_box - given_away # 281
print(left)
```
Execution prints: 281
281 cables are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "281", "printed": "281", "notation": null} |
nlprog_det-setting-0058493 | <|start|><|user|>
To read 252 pages in 18 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 252
days = 18
per_day = pages // days # 14
print(per_day)
# execution result: 14
That is 14 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 252 pages in 18 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 252\n days = 18\n per_day = pages // days # 14\n print(per_day)\n# execution result: 14\n\nThat is 14 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0058494 | A count moves from 1,000 to 600. By what percent did it change (use a minus sign for a drop)?
A Python solution:
```python
old = 1000
new = 600
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Result = -40
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0058495 | <|start|><|user|>
Kaito earns a 2% commission on $12,595 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 12595
rate = 2 / 100 # 0.02
commission = sales * rate # 251.9
print(f"{commission:.2f}")
```
The interpreter prints 251.90.
The commission is $251.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kaito earns a 2% commission on $12,595 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 12595\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 251.9\nprint(f\"{commission:.2f}\")\n```\nThe interpreter prints 251.90.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "251.90", "printed": "251.90", "notation": null} |
nlprog_det-setting-0058496 | <|start|><|user|>
A settlement of $15,000 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 5
share = settlement // parties # 3000
print(share)
```
# result: 3000
Each party receives $3,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $15,000 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 5\nshare = settlement // parties # 3000\nprint(share)\n```\n# result: 3000\n\nEach party rece... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0058497 | What is a 10% tip on a $228.34 bill?
Python, step by step:
```python
bill = 228.34
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 22.834000000000003
print(f"{tip:.2f}")
```
Out — 22.83
Leave $22.83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "22.83", "printed": "22.83", "notation": null} |
nlprog_det-setting-0058498 | What average speed covers 230 miles in 2.5 hours?
Script:
```python
distance = 230
hours = 2.5
speed = distance / hours # 92.0
print(round(speed))
```
Result — 92
It averages 92 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0058499 | <|start|><|user|>
Walls total 1119 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1119
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
Shell output: 4
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1119 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1119\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nShell output: 4\n\nBuy 4 cans.... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0058500 | Convert 69.5 km to meters.
We can compute it in Python.
```python
km = 69.5
meters = km * 1000 # 69500.0
print(round(meters))
```
It outputs: 69500
That is 69,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "69500", "printed": "69500", "notation": null} |
nlprog_det-setting-0058501 | Split $1,086 between Marek and Beatriz in the ratio 1 to 2. What is Marek's share?
Marek's share is $362. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "362", "printed": "362", "notation": null} |
nlprog_det-setting-0058502 | Convert 1 h 39 min (the length of a training session) to minutes.
Written as code:
```python
hours = 1
minutes = 39
total_minutes = hours * 60 + minutes # 99
print(total_minutes)
```
Printed: 99
The training session lasted 99 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0058503 | To read 740 pages in 20 days, how many pages per day are needed?
We can compute it in Python.
```python
pages = 740
days = 20
per_day = pages // days # 37
print(per_day)
```
It prints: 37
That is 37 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0058504 | Pack A has 6 items for $14.92. Pack B has 20 items for $7.00. Which has the lower price per item?
A Python solution:
pack_a = 14.92 / 6 # 2.486666666666667
pack_b = 7.0 / 20 # 0.35
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
(Console output: B)
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0058505 | A 8 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Here's the code.
```python
import math
length = 8
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 104
print(tiles)
```
(Printed result: 104)
104 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0058506 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $3,000, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 7000.0
print(f"{per_year:.2f}")
```
(Out: 7000.00)
Depreciation is $7,000.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $3,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyears = 3\nper_year = (cost - salvage) / years # 7000.0\nprint(f\"{per_year:.2f}\")\n```\n(Out: 700... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0058507 | How many units at $20 each (variable cost $10) cover $6,000 of fixed costs?
```python
import math
fixed = 6000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 600
print(units)
```
Program output — 600
600 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0058508 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
36 of 40 m... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0058509 | An invoice lists 15 envelopes at $3 each, plus 6% sales tax. What is the invoice total?
The invoice total is $47.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "47.70", "printed": "47.70", "notation": null} |
nlprog_det-setting-0058510 | At a 7% tax rate, what is the tax on $286.26?
The Python version:
```python
price = 286.26
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 20.0382
print(f"{tax:.2f}")
```
Console:
20.04
The tax is $20.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "20.04", "printed": "20.04", "notation": null} |
nlprog_det-setting-0058511 | Buying 3 flash drives at $14 each, 6 chairs at $14 each, 4 cables at $17 each, 3 toner kits at $6 each, someone hands over $250. What change comes back?
A short script:
```python
items = [(3, 14), (6, 14), (4, 17), (3, 6)]
total = sum(q * p for q, p in items) # 212
paid = 250
change = paid - total # 38
print(change)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0058512 | An invoice lists 38 rulers at $6 each, plus 5% sales tax. What is the invoice total?
The invoice total is $239.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "239.40", "printed": "239.40", "notation": null} |
nlprog_det-setting-0058513 | <|start|><|user|>
How many of 11 members form a majority (more than half)?<|eot|>
<|assistant|>
members = 11
majority = members // 2 + 1 # 6
print(majority)
(Out: 6)
That is 6 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 11 members form a majority (more than half)?"
},
{
"role": "assistant",
"content": " members = 11\n majority = members // 2 + 1 # 6\n print(majority)\n(Out: 6)\n\nThat is 6 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0058514 | A recipe for 6 people uses 300 grams of sugar. How many grams are needed for 8 people?
Python version:
```python
grams = 300
serves = 6
needed_for = 8
scaled = grams * needed_for // serves # 400
print(scaled)
```
Run output: 400
Use 400 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0058515 | <|start|><|user|>
Carmen has 7 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
fee = 35
filings = 7
total = fee * filings # 245
print(total)
Output: 245
The total fee is $245.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Carmen has 7 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": " fee = 35\n filings = 7\n total = fee * filings # 245\n print(total)\nOutput: 245\n\nThe total fee is $245."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "245", "printed": "245", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.