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-0077528 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "calc", "description"... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 422 | {"gold": "656", "printed": "656", "notation": null} |
nlprog_det-setting-0077529 | <|start|><|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
(stdout: 68)
That is 68 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n(stdout: 68)\n\nThat is 68 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0077530 | How many minutes pass from 8:16 AM to 2:18 PM on the same day?
Script:
start = 8 * 60 + 16 # 496
end = 14 * 60 + 18 # 858
print(end - start)
The printout reads: 362
It is 362 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "362", "printed": "362", "notation": null} |
nlprog_det-setting-0077532 | <|start|><|user|>
An office budget of $8,000 has expenses of $3,777, $2,824, $2,913, $883. How much of the budget is left?<|eot|>
<|assistant|>
budget = 8000
expenses = [3777, 2824, 2913, 883]
left = budget - sum(expenses) # -2397
print(left)
Running it prints -2397.
-$2,397 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $3,777, $2,824, $2,913, $883. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [3777, 2824, 2913, 883]\n left = budget - sum(expenses) # -2397\n print(left)\nRu... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "-2397", "printed": "-2397", "notation": null} |
nlprog_det-setting-0077533 | Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Script:
```python
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
Running this gives: 16.7
The margin is 16.7%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0077534 | What is 10 degrees Celsius in Fahrenheit?
Let's compute it with Python.
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
stdout = 50
That is 50 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0077535 | Copies cost $15 plus $0.50 for each page beyond 20. How much for 119 pages?
The total is $64.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "64.50", "printed": "64.50", "notation": null} |
nlprog_det-setting-0077536 | <|start|><|user|>
From a $10,000 retainer, 6 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 6
rate = 250
left = retainer - hours * rate
print(left)
```
Executed, it shows: 8500
$8,500 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 6 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 6\nrate = 250\nleft = retainer - hours * rate\nprint(left)\n```\nExecuted, it shows: 8500\n\n$8,500 of the retain... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "8500", "printed": "8500", "notation": null} |
nlprog_det-setting-0077537 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Starting with 914 keyboards and using 18 per day, how many remain after 5 days?<|eot|>
<|assistant|>
```python
stock = 914
per_day = 18
days = 5
left = stock - per_day * days # 824
print(left)
```
Executing it gives 824.
824 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Starting with 914 keyboards and using 18 per day, how many remain after 5 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 914\nper_day = 18\ndays = 5\nleft = stock - per... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "824", "printed": "824", "notation": null} |
nlprog_det-setting-0077538 | At a 5% tax rate, what is the tax on $676.72?
Here's the code.
```python
price = 676.72
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 33.836000000000006
print(f"{tax:.2f}")
```
Running this gives 33.84.
$33.84 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "33.84", "printed": "33.84", "notation": null} |
nlprog_det-setting-0077539 | The rules require 2/3 of 15 members (round up) to be present. How many is that?
The program:
import math
members = 15
quorum = math.ceil(members * 2 / 3) # 10
print(quorum)
Executing it gives: 10
10 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0077540 | What is a 18% tip on a $227.90 bill?
Computation in Python:
bill = 227.9
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 41.022
print(f"{tip:.2f}")
It prints: 41.02
Leave $41.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "41.02", "printed": "41.02", "notation": null} |
nlprog_det-setting-0077541 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
At 45 miles per hour, how many minutes does a 270-mile trip take?<|eot|>
<|assistant|>
```python
distance = 270
speed = 45
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
It outputs: 360
The trip takes 360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 270-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 270\nspeed = 45\nminutes = distance / speed * 60 # 360.0\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0077542 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A shift runs from 11:01 AM to 4:51 PM. How long is it in minutes?<|eot|>
<|assistant|>
start = 11 * 60 + 1 # 661
end = 16 * 60 + 51 # 1011
print(end - start)
# console output: 350
350 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A shift runs from 11:01 AM to 4:51 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": " start = 11 * 60 + 1 # 661\n end = 16 * 60 + 51 # 1011\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0077543 | Papers were served by mail on March 8, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
The program:
```python
from datetime import date, timedelta
served = date(2020, 3, 8) # datetime.date(2020, 3, 8)
response_days = 21
mail_days = 3
due = served + timedelta(days=re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2020-04-01", "printed": "2020-04-01", "notation": null} |
nlprog_det-setting-0077544 | Printing costs 15 cents a page. What does it cost to print 73 copies of a 33-page handout?
Written as code:
```python
pages = 33
copies = 73
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 361.34999999999997
print(f"{cost:.2f}")
```
It prints: 361.35
The job costs $361.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "361.35", "printed": "361.35", "notation": null} |
nlprog_det-setting-0077545 | A measure needs at least 60% of 93 votes. How many votes is that, rounded up?
A Python solution:
import math
voters = 93
needed = math.ceil(voters * 60 / 100) # 56
print(needed)
The printout reads: 56
At least 56 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0077546 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
If a 40-minute meeting begins at 3:20 PM, what time does it finish?<|eot|>
<|assistant|>
It ends at 4:00 PM.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "If a 40-minute meeting begins at 3:20 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "It ends at 4:00 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "4:00 PM", "printed": "4:00 PM", "notation": null} |
nlprog_det-setting-0077547 | 223 files go into boxes of 15. How many boxes does that take?
```python
import math
files = 223
per_box = 15
boxes = math.ceil(files / per_box) # 15
print(boxes)
```
The run gives 15, as expected.
15 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0077548 | A meal costs $183.71. How much is a 22% tip?
In Python:
```python
bill = 183.71
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 40.4162
print(f"{tip:.2f}")
```
The program prints: 40.42
Leave $40.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "40.42", "printed": "40.42", "notation": null} |
nlprog_det-setting-0077549 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?<|eot|>
<|assistant|>
$135.30 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?"
},
{
"role": "assistant",
"content": "$135.30 is ow... | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "135.30", "printed": "135.30", "notation": null} |
nlprog_det-setting-0077550 | Printing costs 5 cents a page. What does it cost to print 69 copies of a 41-page handout?
As Python:
```python
pages = 41
copies = 69
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 141.45000000000002
print(f"{cost:.2f}")
```
The run gives 141.45.
The job costs $141.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "141.45", "printed": "141.45", "notation": null} |
nlprog_det-setting-0077551 | <|start|><|user|>
A car travels 412 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 412
hours = 2
speed = distance / hours # 206.0
print(round(speed))
```
Executed, it shows 206.
It averages 206 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 412 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 412\nhours = 2\nspeed = distance / hours # 206.0\nprint(round(speed))\n```\nExecuted, it shows 206.\n\nIt averages 206 mile... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "206", "printed": "206", "notation": null} |
nlprog_det-setting-0077552 | Convert 3 h 7 min (the length of a workshop) to minutes.
Python:
```python
hours = 3
minutes = 7
total_minutes = hours * 60 + minutes # 187
print(total_minutes)
```
The run gives 187, as expected.
That is 187 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0077553 | A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?
In Python:
```python
old = 500
new = 575
change = (new - old) / old * 100 # 15.0
print(round(change))
```
The program prints 15.
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0077554 | <|start|><|user|>
An invoice lists 30 ink cartridges at $7 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 30
unit_price = 7
subtotal = quantity * unit_price # 210
total = subtotal * (1 + 7 / 100) # 224.70000000000002
print(f"{total:.2f}")
```
Printed — 224.70
The total ... | chat | [
{
"role": "user",
"content": "An invoice lists 30 ink cartridges at $7 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 30\nunit_price = 7\nsubtotal = quantity * unit_price # 210\ntotal = subtotal * (1 + 7 / 100) # 224.70000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "224.70", "printed": "224.70", "notation": null} |
nlprog_det-setting-0077555 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Express 52 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 52
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Console output — 2 days and 4 hours
52 hours is 2 days and 4 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Express 52 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 52\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole output —... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2 days and 4 hours", "printed": "2 days and 4 hours", "notation": null} |
nlprog_det-setting-0077556 | <|start|><|user|>
A board has 19 members. A majority is more than half. How many votes make a majority?<|eot|>
<|assistant|>
```python
members = 19
majority = members // 2 + 1 # 10
print(majority)
```
(stdout: 10)
10 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A board has 19 members. A majority is more than half. How many votes make a majority?"
},
{
"role": "assistant",
"content": "```python\nmembers = 19\nmajority = members // 2 + 1 # 10\nprint(majority)\n```\n(stdout: 10)\n\n10 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0077557 | How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?
```python
import math
fixed = 9000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
That prints 900.
900 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0077558 | Starting from $20,000, the team spends $3,926, $760, $863, $1,986. What remains?
Here is a short program for it.
```python
budget = 20000
expenses = [3926, 760, 863, 1986]
left = budget - sum(expenses) # 12465
print(left)
```
(stdout: 12465)
$12,465 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "12465", "printed": "12465", "notation": null} |
nlprog_det-setting-0077559 | <|start|><|user|>
A $180 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
bill = 180
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
# printed result: 70.80
The share is $70.8... | chat | [
{
"role": "user",
"content": "A $180 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": " bill = 180\n tip_rate = 18 / 100 # 0.18\n people = 3\n each = bill * (1 + tip_rate) / people # 70.8\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0077560 | Fixed costs are $6,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?
Python version:
```python
import math
fixed = 6000
price = 20
variable = 14
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Execution prints 1000.
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077561 | What simple interest does $5,000 earn at 8% a year over 4 years?
One way, in code:
```python
principal = 5000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
```
Out = 1600.00
The interest is $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0077562 | <|start|><|user|>
Fixed costs are $4,000. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
import math
fixed = 4000
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 800
print(units)
The program prints 800, as ... | chat | [
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": " import math\n fixed = 4000\n price = 30\n variable = 25\n units = math.ceil(fixed / (price - vari... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0077563 | <|start|><|user|>
A 30-day notice period begins on May 10, 2025. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 5, 10) # datetime.date(2025, 5, 10)
end = start + timedelta(days=30) # datetime.date(2025, 6, 9)
print(end.isoformat())
```
# stdout: 2025-0... | chat | [
{
"role": "user",
"content": "A 30-day notice period begins on May 10, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 5, 10) # datetime.date(2025, 5, 10)\nend = start + timedelta(days=30) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2025-06-09", "printed": "2025-06-09", "notation": null} |
nlprog_det-setting-0077564 | A 10 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
```python
import math
length = 10
width = 3
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 8
print(tiles)
```
(stdout: 8)
It takes 8 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0077565 | Copies cost $10 plus $0.50 for each page beyond 20. How much for 95 pages?
Here is the program.
```python
pages = 95
base = 10
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 47.5
print(f"{cost:.2f}")
```
Shell output: 47.50
The copy costs $47.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "47.50", "printed": "47.50", "notation": null} |
nlprog_det-setting-0077566 | A meal costs $133.48. How much is a 25% tip?
Python code:
```python
bill = 133.48
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 33.37
print(f"{tip:.2f}")
```
(Printed: 33.37)
The tip is $33.37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "33.37", "printed": "33.37", "notation": null} |
nlprog_det-setting-0077567 | An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 3 months?
Let's compute it with Python.
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 60.0
print(f"{interest:.2f}")
Shell output: 60.00
$60.00 acc... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0077569 | <|start|><|system|>
You can call tools. Available tools:
{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "convert_units",... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "1685", "printed": "1685", "notation": null} |
nlprog_det-setting-0077570 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
The landlord ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0077571 | <|start|><|user|>
A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1200
months = 24
total = monthly_rent * months # 28800
print(total)
```
(Printed result: 28800)
The rent over the term is $28,800.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1200\nmonths = 24\ntotal = monthly_rent * months # 28800\nprint(total)\n```\n(Printed result: 28800)\n\nThe r... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0077572 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A 30-day notice period begins on September 17, 2028. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2028, 9, 17)
end = start + timedelta(days=30)
print(end.isoformat())
```
(Exe... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A 30-day notice period begins on September 17, 2028. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstar... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2028-10-17", "printed": "2028-10-17", "notation": null} |
nlprog_det-setting-0077573 | At an exchange rate of 1.31 USD per GBP, how many USD is 2,496 GBP?
Let's compute it with Python.
```python
amount = 2496
rate = 1.31
converted = amount * rate # 3269.76
print(f"{converted:.2f}")
```
What it prints — 3269.76
That is 3,269.76 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "3269.76", "printed": "3269.76", "notation": null} |
nlprog_det-setting-0077574 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"nam... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0077576 | Lena's scores were 84, 77 and 67. What is the average score?
Translated to Python:
```python
scores = [84, 77, 67]
average = sum(scores) // len(scores) # 76
print(average)
```
Python prints: 76
The mean is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0077577 | If a 5-year limitations period starts on April 4, 2020, when does it end?
As a program:
from datetime import date
accrued = date(2020, 4, 4) # datetime.date(2020, 4, 4)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 4, 4)
print(expires.isoformat())
Shell outp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2025-04-04", "printed": "2025-04-04", "notation": null} |
nlprog_det-setting-0077578 | A customer buys 5 batteries at $12 each, 2 staplers at $30 each, 1 mugs at $2 each, 6 clipboards at $17 each and pays with $250. How much change is due?
In code:
```python
items = [(5, 12), (2, 30), (1, 2), (6, 17)]
total = sum(q * p for q, p in items) # 224
paid = 250
change = paid - total # 26
print(change)
```
Ru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0077579 | Parking is $2 per hour with a daily maximum of $24. What do 7 hours cost?
The charge is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0077580 | If a 3-year limitations period starts on October 7, 2013, when does it end?
Let the code do the arithmetic:
```python
from datetime import date
accrued = date(2013, 10, 7) # datetime.date(2013, 10, 7)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 10, 7)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2016-10-07", "printed": "2016-10-07", "notation": null} |
nlprog_det-setting-0077581 | 12 boxes hold 25 hard drives each. After 1 are handed out, how many are left?
That leaves 299 hard drives. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "299", "printed": "299", "notation": null} |
nlprog_det-setting-0077582 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Printing costs 8 cents a page. What does it cost to print 80 copies of a 12-page handout?<|eot|>
<|assistant|>
```python
pages = 12
copies = 80
cost_per_page = 0.08
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Out: 76.80
The job costs $76.8... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 80 copies of a 12-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 12\ncopies = 80\ncost_per_page = 0.08\ncost =... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "76.80", "printed": "76.80", "notation": null} |
nlprog_det-setting-0077584 | Divide 148 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
In code:
```python
total = 148
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It prints: 24 each, 4 left over
24 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "24 each, 4 left over", "printed": "24 each, 4 left over", "notation": null} |
nlprog_det-setting-0077585 | A pack of 10 calendars sells for $250. What does each cost?
In code:
```python
total = 250
count = 10
per_item = total // count # 25
print(per_item)
```
Output:
25
Each one costs $25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0077586 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 158 copies of a 57-page handout?<|eot|>
<|assistant|>
```python
pages = 57
copies = 158
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 1350.8999999999999
print(f"{cost:.2f}")
```
Run output: 1350.90
Printing costs $1,350.90.<|e... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 158 copies of a 57-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 57\ncopies = 158\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 1350.8999999999999\nprint(f\"{cost:... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1350.90", "printed": "1350.90", "notation": null} |
nlprog_det-setting-0077587 | At 1% a month (simple), what interest builds on $7,500 over 5 months?
Computation in Python:
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 375.0
print(f"{interest:.2f}")
Run result — 375.00
The interest is $375.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0077589 | 7 boxes hold 10 calendars each. After 20 are handed out, how many are left?
In Python:
```python
boxes = 7
per_box = 10
given_away = 20
left = boxes * per_box - given_away # 50
print(left)
```
It prints: 50
That leaves 50 calendars. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0077591 | $5,000 is invested at 4% compounded yearly. What is it worth after 3 years?
Python version:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 5624.320000000001
print(f"{value:.2f}")
```
It outputs 5624.32.
It is worth $5,624.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "5624.32", "printed": "5624.32", "notation": null} |
nlprog_det-setting-0077592 | Filing fees are $350 per document. What do 13 filings cost?
Translated to Python:
```python
fee = 350
filings = 13
total = fee * filings # 4550
print(total)
```
On running, it outputs 4550.
$4,550 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4550", "printed": "4550", "notation": null} |
nlprog_det-setting-0077593 | What average speed covers 540 miles in 5 hours?
The computation:
```python
distance = 540
hours = 5
speed = distance / hours # 108.0
print(round(speed))
```
The printout reads: 108
It averages 108 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0077594 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after June 8, 2026 up to and including June 19, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 6, 8)
end = date(2026, 6, 19)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 8, 2026 up to and including June 19, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 6, 8)\nend = date(2026, 6, 19)\ncount = 0\nfor k in range(1, (e... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0077595 | <|start|><|user|>
A library charges $0.20 per book per day late. What is the fine for 1 books that are 28 days late?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 28
books = 1
fine = per_day * days_late * books # 5.6000000000000005
print(f"{fine:.2f}")
```
This prints 5.60.
The fine is $5.60.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "A library charges $0.20 per book per day late. What is the fine for 1 books that are 28 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 28\nbooks = 1\nfine = per_day * days_late * books # 5.6000000000000005\nprint(f\"{fine:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5.60", "printed": "5.60", "notation": null} |
nlprog_det-setting-0077596 | 4 books come back 17 days late, at $0.20 a day each. What is the fine?
We can compute it in Python.
per_day = 0.2
days_late = 17
books = 4
fine = per_day * days_late * books # 13.600000000000001
print(f"{fine:.2f}")
The script prints 13.60.
$13.60 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "13.60", "printed": "13.60", "notation": null} |
nlprog_det-setting-0077597 | <|start|><|user|>
If a 2-year limitations period starts on April 21, 2019, when does it end?<|eot|>
<|assistant|>
It runs out on April 21, 2021.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on April 21, 2019, when does it end?"
},
{
"role": "assistant",
"content": "It runs out on April 21, 2021."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2021-04-21", "printed": "2021-04-21", "notation": null} |
nlprog_det-setting-0077598 | Scale 150 g of lentils from 6 servings to 10 servings.
Translated to Python:
```python
grams = 150
serves = 6
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
Printed = 250
Use 250 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0077599 | <|start|><|system|>
Tools you may use:
{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
From 2008 to 2034, h... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 189 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0077600 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "transla... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0077602 | How many whole days and leftover hours are in 204 hours?
Coded up:
```python
hours = 204
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(Printed result: 8 days and 12 hours)
204 hours is 8 days and 12 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "8 days and 12 hours", "printed": "8 days and 12 hours", "notation": null} |
nlprog_det-setting-0077603 | A 45-day notice period begins on April 8, 2025. On what date does it end?
Translated to Python:
from datetime import date, timedelta
start = date(2025, 4, 8) # datetime.date(2025, 4, 8)
end = start + timedelta(days=45) # datetime.date(2025, 5, 23)
print(end.isoformat())
Out — 2025-05-23
It ends on M... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2025-05-23", "printed": "2025-05-23", "notation": null} |
nlprog_det-setting-0077604 | A car travels 390 miles in 2 hours. What is its average speed in miles per hour?
The computation:
```python
distance = 390
hours = 2
speed = distance / hours # 195.0
print(round(speed))
```
The program outputs: 195
It averages 195 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0077605 | One can of paint covers 300 square feet. How many cans are needed for 1063 square feet of wall?
Written as code:
```python
import math
area = 1063
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
Execution prints 4.
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0077606 | A 10 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
```python
import math
length = 10
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 70
print(tiles)
```
stdout — 70
70 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0077607 | 3 boxes hold 6 keyboards each. After 18 are handed out, how many are left?
The computation:
```python
boxes = 3
per_box = 6
given_away = 18
left = boxes * per_box - given_away # 0
print(left)
```
# output: 0
0 keyboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0077608 | Monthly: $29. Annual: $300. What is saved per year by paying annually?
The computation:
monthly = 29
yearly = 300
savings = monthly * 12 - yearly # 48
print(savings)
stdout:
48
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0077609 | A claim accrued on August 4, 2018. The limitations period is 2 years. On what date does it expire?
Here's the code.
```python
from datetime import date
accrued = date(2018, 8, 4)
years = 2
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Python prints: 2020-08-04
The period expires ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2020-08-04", "printed": "2020-08-04", "notation": null} |
nlprog_det-setting-0077610 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 44
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 96.0
pay = regular + overtime # 736.0
print(f"{pay:.2f}")
```
Console output — 73... | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 44\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 96.0\npay = regular + ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "736.00", "printed": "736.00", "notation": null} |
nlprog_det-setting-0077611 | A lease runs for 24 months at $3,250 per month. How much rent is paid over the whole term?
Python code:
```python
monthly_rent = 3250
months = 24
total = monthly_rent * months # 78000
print(total)
```
(Program output: 78000)
The rent over the term is $78,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0077612 | <|start|><|user|>
At $16.24 an hour, what does 38 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 16.24
hours = 38
earnings = rate * hours # 617.1199999999999
print(f"{earnings:.2f}")
```
Executing it gives 617.12, as expected.
That earns $617.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $16.24 an hour, what does 38 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.24\nhours = 38\nearnings = rate * hours # 617.1199999999999\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives 617.12, as expected.\n\nThat earns $617.1... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "617.12", "printed": "617.12", "notation": null} |
nlprog_det-setting-0077613 | <|start|><|user|>
Goods bought on October 14, 2018 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 10, 14)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(en... | chat | [
{
"role": "user",
"content": "Goods bought on October 14, 2018 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 10, 14)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = da... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2019-10-14", "printed": "2019-10-14", "notation": null} |
nlprog_det-setting-0077615 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 144 copies of a 15-page handout?<|eot|>
<|assistant|>
pages = 15
copies = 144
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 324.0
print(f"{cost:.2f}")
Running this gives 324.00.
The job costs $324.00.<|eot|... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 144 copies of a 15-page handout?"
},
{
"role": "assistant",
"content": " pages = 15\n copies = 144\n cost_per_page = 0.15\n cost = pages * copies * cost_per_page # 324.0\n print(f\"{cost:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "324.00", "printed": "324.00", "notation": null} |
nlprog_det-setting-0077616 | A measure needs at least 60% of 101 votes. How many votes is that, rounded up?
At least 61 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "61", "printed": "61", "notation": null} |
nlprog_det-setting-0077617 | A service costs $25 a month or $270 a year. How much does the yearly plan save over 12 monthly payments?
Let the code do the arithmetic:
monthly = 25
yearly = 270
savings = monthly * 12 - yearly # 30
print(savings)
# printed result: 30
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0077618 | Starting with 782 staplers and using 13 per day, how many remain after 10 days?
Written as code:
```python
stock = 782
per_day = 13
days = 10
left = stock - per_day * days # 652
print(left)
```
Executed, it shows: 652
652 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "652", "printed": "652", "notation": null} |
nlprog_det-setting-0077619 | After a 40% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Let's compute it with Python.
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 2 # 14400.0
print(f"{per_client:.2f}")
```
std... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0077620 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "17700", "printed": "17700", "notation": null} |
nlprog_det-setting-0077621 | The rules require 2/3 of 37 members (round up) to be present. How many is that?
Python code:
```python
import math
members = 37
quorum = math.ceil(members * 2 / 3) # 25
print(quorum)
```
The printout reads: 25
That is 25 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0077622 | <|start|><|user|>
How many of 41 members form a majority (more than half)?<|eot|>
<|assistant|>
That is 21 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 41 members form a majority (more than half)?"
},
{
"role": "assistant",
"content": "That is 21 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0077623 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Sales went from 200 to 210. What is the percent change?<|eot|>
<|assistant|>
```python
old = 200
new = 210
change = (new - old) / old * 100 # 5.0
print(round(change))
```
stdout: 5
It changed by 5%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Sales went from 200 to 210. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 210\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0077624 | How much is a $69 daily meal allowance over 7 days?
```python
days = 7
meal_rate = 69
total = days * meal_rate # 483
print(total)
```
# printed: 483
That comes to $483. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "483", "printed": "483", "notation": null} |
nlprog_det-setting-0077625 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
$1,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 1104.0808032
print(f"{value:.2f}")
```
This prints 1104... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "$1,000 is invested at 2% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0077626 | A $30,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?
Here is the program.
grant = 30000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 8000.0
print(f"{each:.2f}")
Printed result — 8000.00
Each installment is $8,000.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0077627 | With 26 rows of 8 chairs and 5 empty chairs, how many chairs are taken?
Program:
rows = 26
per_row = 8
empty = 5
seated = rows * per_row - empty # 203
print(seated)
Execution result — 203
203 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "203", "printed": "203", "notation": null} |
nlprog_det-setting-0077628 | Someone born October 22, 1969 turns how old by April 4, 2021? Give the age in whole years.
```python
from datetime import date
born = date(1969, 10, 22) # datetime.date(1969, 10, 22)
on = date(2021, 4, 4) # datetime.date(2021, 4, 4)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 51
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0077629 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
With $20,000 in costs an... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0077630 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
4 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each share is $4,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "4 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each share is $4,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0077631 | <|start|><|user|>
With 19 rows of 17 chairs and 33 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
290 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 19 rows of 17 chairs and 33 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "290 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "290", "printed": "290", "notation": null} |
nlprog_det-setting-0077632 | A pack of 10 clipboards sells for $410. What does each cost?
Written as code:
```python
total = 410
count = 10
per_item = total // count # 41
print(per_item)
```
The printout reads 41.
The unit price is $41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0077633 | A client paid a $10,000 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?
The program:
```python
retainer = 10000
hours = 10
rate = 250
left = retainer - hours * rate # 7500
print(left)
```
Printed:
7500
$7,500 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0077634 | <|start|><|user|>
Shipping costs $10 plus $2.00 per pound. What does a 27-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.0
weight = 27
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Output: 64.00
Shipping costs $64.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.00 per pound. What does a 27-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 2.0\nweight = 27\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nOutput: 64.00\n\nShipping cos... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0077635 | <|start|><|user|>
A 6 lb package ships at $12 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
Shipping costs $19.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6 lb package ships at $12 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "Shipping costs $19.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "19.20", "printed": "19.20", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.