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-0052483 | <|start|><|user|>
Someone born September 15, 1990 turns how old by October 23, 2023? Give the age in whole years.<|eot|>
<|assistant|>
Idris is 33.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone born September 15, 1990 turns how old by October 23, 2023? Give the age in whole years."
},
{
"role": "assistant",
"content": "Idris is 33."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0052484 | Which is cheaper per unit: 12 for $14.21 (A) or 18 for $11.25 (B)?
Programmatically:
```python
pack_a = 14.21 / 12 # 1.1841666666666668
pack_b = 11.25 / 18 # 0.625
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Run result: B)
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052485 | Monthly rent is $1,800. A tenant moves in with 10 days left in a 30-day month. What is the prorated rent?
Code:
rent = 1800
days_in_month = 30
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 600.0
print(f"{prorated:.2f}")
The run gives 600.00.
The tenant owes $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0052486 | A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum?
Here's the code.
import math
members = 19
quorum = math.ceil(members * 1 / 3) # 7
print(quorum)
Execution prints 7.
That is 7 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0052487 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 3.5
used = 22
free = 3
bill = base + rate * max(0, used - free) # 81.5
print(f"... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nr... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "81.50", "printed": "81.50", "notation": null} |
nlprog_det-setting-0052489 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
With 20% off, what does a $75 desk lamp cost?<|eot|>
<|assistant|>
```python
price = 75
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 60.0
print(f"{sale_price:.2f}")
```
When run, it prints: 60.00
It costs $60.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "With 20% off, what does a $75 desk lamp cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 60.0\nprint(f\"{sale... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0052490 | A shift runs from 11:30 AM to 1:14 PM. How long is it in minutes?
Here is the program.
```python
start = 11 * 60 + 30 # 690
end = 13 * 60 + 14 # 794
print(end - start)
```
This prints 104.
104 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0052491 | Walls total 389 sq ft and each can covers 250 sq ft. How many cans should be bought?
We write it as a program:
```python
import math
area = 389
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
(Out: 2)
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0052493 | An office budget of $12,000 has expenses of $2,569, $2,208, $2,856. How much of the budget is left?
In code:
```python
budget = 12000
expenses = [2569, 2208, 2856]
left = budget - sum(expenses) # 4367
print(left)
```
(Printed result: 4367)
$4,367 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "4367", "printed": "4367", "notation": null} |
nlprog_det-setting-0052495 | Fines run at $25 per day up to a maximum of $2,500. How much after 33 days?
The program:
```python
per_day = 25
days = 33
cap = 2500
fine = min(per_day * days, cap) # 825
print(fine)
```
This prints: 825
The fine is $825. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "825", "printed": "825", "notation": null} |
nlprog_det-setting-0052496 | A settlement of $4,500 is split equally among 6 parties. How much does each party receive?
A Python solution:
```python
settlement = 4500
parties = 6
share = settlement // parties # 750
print(share)
```
Console:
750
Each share is $750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0052497 | <|start|><|user|>
From 1997 to 2009, how many years is that?<|eot|>
<|assistant|>
12 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1997 to 2009, how many years is that?"
},
{
"role": "assistant",
"content": "12 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0052498 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 31 days?
Coded up:
```python
per_day = 100
days = 31
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(stdout: 1000)
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0052499 | <|start|><|user|>
A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 400
new = 460
change = (new - old) / old * 100 # 15.0
print(round(change))
```
The program prints 15, as expected.
It changed by 15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 460\nchange = (new - old) / old * 100 # 15.0\nprint(round(change))\n```\nThe program prints 15, as expecte... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0052500 | A settlement of $2,640 is split equally among 2 parties. How much does each party receive?
Python:
```python
settlement = 2640
parties = 2
share = settlement // parties # 1320
print(share)
```
It outputs: 1320
Each share is $1,320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1320", "printed": "1320", "notation": null} |
nlprog_det-setting-0052501 | If a 5-year limitations period starts on March 17, 2014, when does it end?
Script:
from datetime import date
accrued = date(2014, 3, 17) # datetime.date(2014, 3, 17)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 3, 17)
print(expires.isoformat())
Printed resu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2019-03-17", "printed": "2019-03-17", "notation": null} |
nlprog_det-setting-0052502 | A car gets 30 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 360-mile trip?
Fuel costs $49.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "49.44", "printed": "49.44", "notation": null} |
nlprog_det-setting-0052503 | What average speed covers 230 miles in 1 hours?
Python code:
```python
distance = 230
hours = 1
speed = distance / hours
print(round(speed))
```
(Printed: 230)
It averages 230 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "230", "printed": "230", "notation": null} |
nlprog_det-setting-0052504 | <|start|><|user|>
Counting the first and last day, how many days are there from August 25, 2028 through September 16, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 8, 25) # datetime.date(2028, 8, 25)
last = date(2028, 9, 16) # datetime.date(2028, 9, 16)
days = (last - first).days +... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from August 25, 2028 through September 16, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 8, 25) # datetime.date(2028, 8, 25)\nlast = date(2028, 9, 16) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0052505 | Goods bought on March 4, 2023 carry a 36-month warranty. When does it expire?
```python
from datetime import date
start = date(2023, 3, 4)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
(Console output: 2026-03... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2026-03-04", "printed": "2026-03-04", "notation": null} |
nlprog_det-setting-0052506 | <|start|><|user|>
Which is cheaper per unit: 12 for $13.91 (A) or 15 for $16.72 (B)?<|eot|>
<|assistant|>
```python
pack_a = 13.91 / 12
pack_b = 16.72 / 15
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
On running, it outputs: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $13.91 (A) or 15 for $16.72 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.91 / 12\npack_b = 16.72 / 15\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nOn running, it outputs: B\n\nB has the ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052507 | A party has 28 days to respond to a motion served on April 1, 2027, with 3 days added because service was by mail. When is the response due?
The response is due on May 2, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "2027-05-02", "printed": "2027-05-02", "notation": null} |
nlprog_det-setting-0052508 | Starting with 1385 calendars and using 36 per day, how many remain after 14 days?
One way, in code:
```python
stock = 1385
per_day = 36
days = 14
left = stock - per_day * days # 881
print(left)
```
The interpreter prints 881.
881 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "881", "printed": "881", "notation": null} |
nlprog_det-setting-0052509 | Copies cost $5 plus $0.50 for each page beyond 20. How much for 51 pages?
The total is $20.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "20.50", "printed": "20.50", "notation": null} |
nlprog_det-setting-0052511 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
How many whole days and leftover hours are in 290 hours?<|eot|>
<|assistant|>
```python
hours = 290
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed result: 12 days and 2 hours
That is 12 days and 2 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 290 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 290\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "12 days and 2 hours", "printed": "12 days and 2 hours", "notation": null} |
nlprog_det-setting-0052512 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What simple interest does $2,500 earn at 5% a year over 5 years?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 5 / 100
years = 5
interest = principal * rate * years
print(f"{interest:.2f}")
```
Printed = 625.00
It earns $625.00.<|eot|>... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What simple interest does $2,500 earn at 5% a year over 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 5 / 100\nyears = 5\ninterest = principa... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0052513 | Under a 33% contingency agreement, what fee is owed on a $150,000 award?
As a program:
recovery = 150000
rate = 33 / 100 # 0.33
fee = recovery * rate # 49500.0
print(f"{fee:.2f}")
# console output: 49500.00
The fee is $49,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0052514 | Uma and Beatriz share $4,400 in the ratio 3:5. How much does Uma get?
Let the code do the arithmetic:
total = 4400
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1650
print(share_a)
Printed — 1650
Uma gets $1,650. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0052515 | At an exchange rate of 1.12 EUR per USD, how many EUR is 7,964 USD?
amount = 7964
rate = 1.12
converted = amount * rate # 8919.68
print(f"{converted:.2f}")
On running, it outputs: 8919.68
That is 8,919.68 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "8919.68", "printed": "8919.68", "notation": null} |
nlprog_det-setting-0052516 | <|start|><|user|>
Rent of $1,800 goes up 3%. What is the new rent?<|eot|>
<|assistant|>
It rises to $1,854.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 3%. What is the new rent?"
},
{
"role": "assistant",
"content": "It rises to $1,854.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "1854.00", "printed": "1854.00", "notation": null} |
nlprog_det-setting-0052517 | <|start|><|user|>
A 6-day trip pays $69 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
days = 6
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1289
print(total)
Run result — ... | chat | [
{
"role": "user",
"content": "A 6-day trip pays $69 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": " days = 6\n meal_rate = 69\n lodging_rate = 175\n nights = days - 1 # 5\n total = days * meal_rate + ni... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1289", "printed": "1289", "notation": null} |
nlprog_det-setting-0052518 | Someone born March 25, 1972 turns how old by July 1, 2028? Give the age in whole years.
A Python solution:
```python
from datetime import date
born = date(1972, 3, 25)
on = date(2028, 7, 1)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
Out — 56
The age is 56 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0052519 | 830 files go into boxes of 25. How many boxes does that take?
Computation in Python:
```python
import math
files = 830
per_box = 25
boxes = math.ceil(files / per_box) # 34
print(boxes)
```
That prints 34.
34 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0052520 | <|start|><|user|>
Count 120 days forward from June 26, 2027. What date is that?<|eot|>
<|assistant|>
It ends on October 24, 2027.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count 120 days forward from June 26, 2027. What date is that?"
},
{
"role": "assistant",
"content": "It ends on October 24, 2027."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2027-10-24", "printed": "2027-10-24", "notation": null} |
nlprog_det-setting-0052521 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calc", "description": "Executes a Python program and returns its outp... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calc\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 382 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0052522 | Count the days between August 12, 2027 and May 7, 2028.
Python version:
```python
from datetime import date
first = date(2027, 8, 12) # datetime.date(2027, 8, 12)
second = date(2028, 5, 7) # datetime.date(2028, 5, 7)
print((second - first).days)
```
The program prints: 269
It is 269 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "269", "printed": "269", "notation": null} |
nlprog_det-setting-0052523 | A $24,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?
Python:
```python
grant = 24000
up_front = 2000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Running it prints 7333.33.
Each installment is $7,333.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "7333.33", "printed": "7333.33", "notation": null} |
nlprog_det-setting-0052524 | Divide 119 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
The answer: 39 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "39 each, 2 left over", "printed": "39 each, 2 left over", "notation": null} |
nlprog_det-setting-0052525 | <|start|><|user|>
Papers were served by mail on September 26, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2027, 9, 26) # datetime.date(2027, 9, 26)
response_days = 30
mail_days = 3
... | chat | [
{
"role": "user",
"content": "Papers were served by mail on September 26, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 9, 26) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2027-10-29", "printed": "2027-10-29", "notation": null} |
nlprog_det-setting-0052526 | Equipment costs $18,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year?
$3,600.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0052527 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Convert 48.1 km to me... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "48100", "printed": "48100", "notation": null} |
nlprog_det-setting-0052528 | A 2% increase is applied to $1,250 monthly rent. What is the new amount?
Here's the code.
```python
rent = 1250
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1275.0
print(f"{new_rent:.2f}")
```
Result = 1275.00
The new rent is $1,275.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1275.00", "printed": "1275.00", "notation": null} |
nlprog_det-setting-0052530 | <|start|><|user|>
A 4-day trip pays $69 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 69
lodging_rate = 110
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
(Console output: 606)
The allowance... | chat | [
{
"role": "user",
"content": "A 4-day trip pays $69 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1\ntotal = days * meal_rate + nights * lodging... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "606", "printed": "606", "notation": null} |
nlprog_det-setting-0052531 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 29 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 29
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
What it prints: 84.50
Shipping costs $84.50.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 29 lb package ships at $12 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 29\ncost = base + per_pound * wei... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "84.50", "printed": "84.50", "notation": null} |
nlprog_det-setting-0052532 | <|start|><|user|>
A meeting lasted 5 hours and 30 minutes. How many minutes is that?<|eot|>
<|assistant|>
That is 330 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting lasted 5 hours and 30 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "That is 330 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0052533 | How many units at $25 each (variable cost $19) cover $4,000 of fixed costs?
The computation:
```python
import math
fixed = 4000
price = 25
variable = 19
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
(Output: 667)
Break-even is 667 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0052534 | Meals are $64 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?
```python
days = 4
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 586
print(total)
```
# program output: 586
That comes to $586. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "586", "printed": "586", "notation": null} |
nlprog_det-setting-0052536 | Find the mean of these test scores: 62, 100, 67, 55, 75, 87 and 72.
Computation in Python:
```python
scores = [62, 100, 67, 55, 75, 87, 72]
average = sum(scores) // len(scores) # 74
print(average)
```
Printed — 74
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0052537 | A $800 security deposit has deductions of $120, $150 and $85. How much is refunded?
Let's compute it with Python.
```python
deposit = 800
deductions = [120, 150, 85]
refund = deposit - sum(deductions) # 445
print(refund)
```
The script prints: 445
The refund is $445. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "445", "printed": "445", "notation": null} |
nlprog_det-setting-0052538 | 22 of 25 members attended. What percent attended?
Program:
```python
present = 22
total = 25
percent = present / total * 100 # 88.0
print(round(percent, 1))
```
Output of the run: 88.0
Attendance was 88.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "88.0", "printed": "88.0", "notation": null} |
nlprog_det-setting-0052539 | Printing costs 12 cents a page. What does it cost to print 71 copies of a 23-page handout?
Coded up:
```python
pages = 23
copies = 71
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
That prints 195.96.
The job costs $195.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "195.96", "printed": "195.96", "notation": null} |
nlprog_det-setting-0052540 | <|start|><|user|>
With 11 rows of 22 chairs and 38 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 11
per_row = 22
empty = 38
seated = rows * per_row - empty # 204
print(seated)
```
(Result: 204)
204 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 11 rows of 22 chairs and 38 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 11\nper_row = 22\nempty = 38\nseated = rows * per_row - empty # 204\nprint(seated)\n```\n(Result: 204)\n\n204 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "204", "printed": "204", "notation": null} |
nlprog_det-setting-0052541 | A recipe for 2 people uses 100 grams of sugar. How many grams are needed for 12 people?
```python
grams = 100
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
```
Printed: 600
600 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0052542 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
What it prints — 480.00
The interest is $4... | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100\nmonths = 4\ninterest = balance * monthly_rate * months\nprint(f\"{int... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0052543 | An invoice lists 15 pens at $5 each, plus 6% sales tax. What is the invoice total?
Python, step by step:
```python
quantity = 15
unit_price = 5
subtotal = quantity * unit_price # 75
total = subtotal * (1 + 6 / 100) # 79.5
print(f"{total:.2f}")
```
(Printed: 79.50)
The total with tax is $79.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "79.50", "printed": "79.50", "notation": null} |
nlprog_det-setting-0052544 | <|start|><|user|>
How much is a $69 daily meal allowance over 5 days?<|eot|>
<|assistant|>
days = 5
meal_rate = 69
total = days * meal_rate # 345
print(total)
Executing it gives 345.
The allowance is $345.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $69 daily meal allowance over 5 days?"
},
{
"role": "assistant",
"content": " days = 5\n meal_rate = 69\n total = days * meal_rate # 345\n print(total)\nExecuting it gives 345.\n\nThe allowance is $345."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0052545 | What simple interest does $1,000 earn at 2% a year over 4 years?
A short script:
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 4
interest = principal * rate * years # 80.0
print(f"{interest:.2f}")
```
The script prints 80.00.
The interest is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0052546 | Someone works 16 hours at $22.01 per hour. What are the earnings?
Program:
```python
rate = 22.01
hours = 16
earnings = rate * hours # 352.16
print(f"{earnings:.2f}")
```
Running this gives 352.16.
That earns $352.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "352.16", "printed": "352.16", "notation": null} |
nlprog_det-setting-0052547 | Convert 89.1 km to meters.
Python, step by step:
```python
km = 89.1
meters = km * 1000
print(round(meters))
```
Out: 89100
89,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "89100", "printed": "89100", "notation": null} |
nlprog_det-setting-0052548 | <|start|><|user|>
A 9 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.2
weight = 9
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
The printout reads 20.80.
Shipping costs $20.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 9 lb package ships at $10 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.2\nweight = 9\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nThe printout reads 20.80.\n\nShipping costs $... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "20.80", "printed": "20.80", "notation": null} |
nlprog_det-setting-0052549 | A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 11-page copy cost?
The total is $6.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "6.10", "printed": "6.10", "notation": null} |
nlprog_det-setting-0052550 | At 60 miles per hour, how many minutes does a 405-mile trip take?
```python
distance = 405
speed = 60
minutes = distance / speed * 60 # 405.0
print(round(minutes))
```
Output — 405
405 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0052551 | <|start|><|system|>
Tools you may use:
{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
56 copies of a 16-pa... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "44.80", "printed": "44.80", "notation": null} |
nlprog_det-setting-0052552 | 113 files go into boxes of 20. How many boxes does that take? 6 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0052553 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A water bill is $18 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 5.1
used = 12
free = 0
bill = base + rate * max(0, used - free) # 79.199... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A water bill is $18 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase ... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "79.20", "printed": "79.20", "notation": null} |
nlprog_det-setting-0052554 | How many days are there from November 18, 2025 to November 24, 2026?
Translated to Python:
```python
from datetime import date
first = date(2025, 11, 18) # datetime.date(2025, 11, 18)
second = date(2026, 11, 24) # datetime.date(2026, 11, 24)
print((second - first).days)
```
Printed result — 371
There are 371 days b... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0052555 | An attorney bills 2 hours at $350 per hour. What is the bill?
hours = 2
rate = 350
bill = hours * rate # 700
print(f"{bill:.2f}")
Running it prints 700.00, as expected.
That comes to $700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0052556 | <|start|><|system|>
Functions:
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Notice was given on October 4, 2020. The no... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "2020-11-03", "printed": "2020-11-03", "notation": null} |
nlprog_det-setting-0052557 | <|start|><|user|>
2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 2 # 28800.0
print(f"{per_client:.2f}")
```
This prints ... | chat | [
{
"role": "user",
"content": "2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
nlprog_det-setting-0052558 | <|start|><|user|>
One can of paint covers 350 square feet. How many cans are needed for 435 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 435
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
```
Out:
2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 350 square feet. How many cans are needed for 435 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 435\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nOut:\n2\n\n2 cans are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0052559 | How much sales tax is charged on a $686.68 purchase at 4%?
A short script:
```python
price = 686.68
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 27.4672
print(f"{tax:.2f}")
```
# execution result: 27.47
$27.47 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "27.47", "printed": "27.47", "notation": null} |
nlprog_det-setting-0052560 | Fuel for 360 miles at 25 mpg, with gas at $4.12/gallon: what is the cost?
The trip uses $59.33 of gas. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "59.33", "printed": "59.33", "notation": null} |
nlprog_det-setting-0052561 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
The meal allowance is $74 per day. What is it for 6 days?<|eot|>
<|assistant|>
days = 6
meal_rate = 74
total = days * meal_rate # 444
print(total)
It prints 444, as expected.
That comes to $444.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "The meal allowance is $74 per day. What is it for 6 days?"
},
{
"role": "assistant",
"content": " days = 6\n meal_rate = 74\n total = days * meal_rate # 444\n print(total)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0052562 | A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?
In code:
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
(Run result: 18)
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0052563 | <|start|><|user|>
What does $10,000 grow to in 5 years at 2% annual compounding?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 11040.808032
print(f"{value:.2f}")
```
Output:
11040.81
It is worth $11,040.81.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 5 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 11040.808032\nprint(f\"{value:.2f}\")\n```\nOutput:\n110... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11040.81", "printed": "11040.81", "notation": null} |
nlprog_det-setting-0052564 | <|start|><|user|>
Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
Each payment is $76.67.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "Each payment is $76.67."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "76.67", "printed": "76.67", "notation": null} |
nlprog_det-setting-0052566 | <|start|><|user|>
A quorum is 1/3 of the 37 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
That is 13 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 37 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "That is 13 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0052567 | Express 271 hours in days and hours.
271 hours is 11 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "11 days and 7 hours", "printed": "11 days and 7 hours", "notation": null} |
nlprog_det-setting-0052568 | How many 2-foot square tiles cover a 18 ft by 10 ft floor (round up)?
Script:
```python
import math
length = 18
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Printed: 45
45 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0052570 | Divide 85 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python makes this quick:
```python
total = 85
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints 14 each, 1 left over.
The answer: 14 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "14 each, 1 left over", "printed": "14 each, 1 left over", "notation": null} |
nlprog_det-setting-0052571 | At 50 miles per hour, how many minutes does a 100-mile trip take?
One way, in code:
```python
distance = 100
speed = 50
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
Out: 120
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0052572 | 144 copies of a 18-page packet are printed at $0.10 per page. What is the cost?
Computation in Python:
```python
pages = 18
copies = 144
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 259.2
print(f"{cost:.2f}")
```
(Program output: 259.20)
Printing costs $259.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "259.20", "printed": "259.20", "notation": null} |
nlprog_det-setting-0052573 | A 36 lb package ships at $8 base plus $2.00/lb. What is the charge?
Shipping costs $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0052574 | 4 walks at 150 calories each burn how many calories in total?
Programmatically:
```python
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
```
Executing it gives 600.
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0052576 | What is a 15% tip on a $53.38 bill?
As Python:
```python
bill = 53.38
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 8.007
print(f"{tip:.2f}")
```
stdout: 8.01
Leave $8.01. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "8.01", "printed": "8.01", "notation": null} |
nlprog_det-setting-0052577 | A clerk's office charges $90 for each filing. Paula submits 17 filings. What is the total fee?
In Python:
```python
fee = 90
filings = 17
total = fee * filings # 1530
print(total)
```
(Out: 1530)
$1,530 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1530", "printed": "1530", "notation": null} |
nlprog_det-setting-0052578 | Jonas was born on August 3, 1966. How old is Jonas on January 21, 2028?
The program:
```python
from datetime import date
born = date(1966, 8, 3) # datetime.date(1966, 8, 3)
on = date(2028, 1, 21) # datetime.date(2028, 1, 21)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 61
print(age)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "61", "printed": "61", "notation": null} |
nlprog_det-setting-0052579 | <|start|><|user|>
A recipe for 6 people uses 240 grams of lentils. How many grams are needed for 2 people?<|eot|>
<|assistant|>
```python
grams = 240
serves = 6
needed_for = 2
scaled = grams * needed_for // serves # 80
print(scaled)
```
The script prints 80.
80 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 240 grams of lentils. How many grams are needed for 2 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 6\nneeded_for = 2\nscaled = grams * needed_for // serves # 80\nprint(scaled)\n```\nThe script prints 80.... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0052580 | <|start|><|user|>
Pilar earns a 6% commission on $107,263 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 107263
rate = 6 / 100 # 0.06
commission = sales * rate # 6435.78
print(f"{commission:.2f}")
```
(Out: 6435.78)
The commission is $6,435.78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pilar earns a 6% commission on $107,263 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 107263\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 6435.78\nprint(f\"{commission:.2f}\")\n```\n(Out: 6435.78)\n\nThe commiss... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6435.78", "printed": "6435.78", "notation": null} |
nlprog_det-setting-0052581 | A measure needs at least 60% of 132 votes. How many votes is that, rounded up?
The Python version:
```python
import math
voters = 132
needed = math.ceil(voters * 60 / 100) # 80
print(needed)
```
What it prints: 80
At least 80 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0052582 | A meal costs $187.06. How much is a 25% tip?
Written as code:
```python
bill = 187.06
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 46.765
print(f"{tip:.2f}")
```
stdout:
46.77
The tip is $46.77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "46.77", "printed": "46.77", "notation": null} |
nlprog_det-setting-0052583 | Walls total 596 sq ft and each can covers 350 sq ft. How many cans should be bought?
A few lines of Python do it:
import math
area = 596
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
Out: 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0052584 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
How many units at $15 each (variable cost $5) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 400
print(units)
```
The interpreter prints: 400... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "How many units at $15 each (variable cost $5) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 15\nvariable = 5\nunits = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0052585 | Convert 1 h 15 min (the length of a workshop) to minutes.
We can compute it in Python.
hours = 1
minutes = 15
total_minutes = hours * 60 + minutes # 75
print(total_minutes)
The program outputs 75.
The workshop lasted 75 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0052586 | A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 62-page copy cost?
Python version:
```python
pages = 62
base = 10
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 15.2
print(f"{cost:.2f}")
```
(Result: 15.20)
The copy costs $15.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "15.20", "printed": "15.20", "notation": null} |
nlprog_det-setting-0052587 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?
In code:
```python
rate = 16.0
hours = 45
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 120.0
pay = regular + overtime # 760.0
print(f"{pay:.2f}")
```
The code prints 760.00.
The weekly pay is $760... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0052588 | Parking is $4 per hour with a daily maximum of $18. What do 8 hours cost?
Python version:
```python
rate = 4
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Run it and it prints 18.
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0052589 | <|start|><|user|>
A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 500
new = 700
change = (new - old) / old * 100 # 40.0
print(round(change))
```
Run it and it prints: 40
It changed by 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 700\nchange = (new - old) / old * 100 # 40.0\nprint(round(change))\n```\nRun it and it prints: 40\n\nIt ch... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0052590 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calculator", "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": ["... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "72.5", "printed": "72.5", "notation": null} |
nlprog_det-setting-0052591 | A clerk's office charges $350 for each filing. Leon submits 17 filings. What is the total fee?
Python version:
```python
fee = 350
filings = 17
total = fee * filings # 5950
print(total)
```
(Console output: 5950)
The filings cost $5,950 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5950", "printed": "5950", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.