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-0050009 | Goods bought on October 21, 2028 carry a 18-month warranty. When does it expire?
We can compute it in Python.
```python
from datetime import date
start = date(2028, 10, 21)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2030-04-21", "printed": "2030-04-21", "notation": null} |
nlprog_det-setting-0050010 | <|start|><|user|>
Shipping costs $8 plus $1.50 per pound. What does a 39-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 39
cost = base + per_pound * weight # 66.5
print(f"{cost:.2f}")
```
(Result: 66.50)
The charge is $66.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $8 plus $1.50 per pound. What does a 39-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 39\ncost = base + per_pound * weight # 66.5\nprint(f\"{cost:.2f}\")\n```\n(Result: 66.50)\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "66.50", "printed": "66.50", "notation": null} |
nlprog_det-setting-0050011 | <|start|><|system|>
Functions:
[{"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": "eval_python", "description": "A Python interpr... | chat | [
{
"role": "system",
"content": "Functions:\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\": [\"title\", \"section\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 298 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0050012 | A 36-month warranty starts on August 17, 2019. On what date does it end?
In code:
```python
from datetime import date
start = date(2019, 8, 17)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
stdout = 2022-08-17... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2022-08-17", "printed": "2022-08-17", "notation": null} |
nlprog_det-setting-0050013 | Kemal earns a 5% commission on $101,144 of sales. What is the commission?
Let the code do the arithmetic:
```python
sales = 101144
rate = 5 / 100 # 0.05
commission = sales * rate # 5057.200000000001
print(f"{commission:.2f}")
```
It outputs 5057.20.
The commission is $5,057.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5057.20", "printed": "5057.20", "notation": null} |
nlprog_det-setting-0050014 | Convert 22.6 km to meters.
Coded up:
```python
km = 22.6
meters = km * 1000 # 22600.0
print(round(meters))
```
It outputs: 22600
22,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "22600", "printed": "22600", "notation": null} |
nlprog_det-setting-0050015 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "py_exec", "description": "Runs a short Python snippet and ret... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"py_exe... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0050016 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 2
print(cost)
```
Output — 2
Parking costs $2.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $15. What do 1 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 2\nprint(cost)\n```\nOutput — 2\n\nParking costs $2."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0050017 | Jae has 10 documents to file, and each filing costs $125. How much are the filing fees in total?
A short script:
```python
fee = 125
filings = 10
total = fee * filings # 1250
print(total)
```
Python prints: 1250
The filings cost $1,250 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0050018 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
An attorney bills 10.5 hours at $300 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 10.5
rate = 300
bill = hours * rate # 3150.0
print(f"{bill:.2f}")
(Execution result: 3150.00)
That comes to $3,150.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "An attorney bills 10.5 hours at $300 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 10.5\n rate = 300\n bill = hours * rate # 3150.0\n print(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0050019 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 41 days?
```python
per_day = 250
days = 41
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
# result: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0050020 | What commission does Signe make on $47,915 in sales at 4%?
Let's compute it with Python.
```python
sales = 47915
rate = 4 / 100 # 0.04
commission = sales * rate # 1916.6000000000001
print(f"{commission:.2f}")
```
Python prints 1916.60.
The commission is $1,916.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1916.60", "printed": "1916.60", "notation": null} |
nlprog_det-setting-0050021 | A measure needs at least 60% of 210 votes. How many votes is that, rounded up?
```python
import math
voters = 210
needed = math.ceil(voters * 60 / 100) # 126
print(needed)
```
# output: 126
126 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0050022 | Monthly rent is $1,200. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?
Set it up in Python:
```python
rent = 1200
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
Execution prints: 541.94
The tenant owes $541.94. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "541.94", "printed": "541.94", "notation": null} |
nlprog_det-setting-0050023 | Find the mean of these test scores: 88, 50 and 51.
Program:
```python
scores = [88, 50, 51]
average = sum(scores) // len(scores) # 63
print(average)
```
What it prints — 63
The average score is 63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0050024 | Omar was born on April 22, 2005. How old is Omar on October 21, 2025?
Here's the code.
```python
from datetime import date
born = date(2005, 4, 22) # datetime.date(2005, 4, 22)
on = date(2025, 10, 21) # datetime.date(2025, 10, 21)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 20
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0050025 | <|start|><|system|>
Tool definitions:
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
If a 150-minute seminar begins ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "11:10 AM", "printed": "11:10 AM", "notation": null} |
nlprog_det-setting-0050026 | Filing fees are $50 per document. What do 19 filings cost?
Here is a short program for it.
```python
fee = 50
filings = 19
total = fee * filings # 950
print(total)
```
(stdout: 950)
$950 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "950", "printed": "950", "notation": null} |
nlprog_det-setting-0050027 | <|start|><|user|>
A 120-day notice period begins on April 3, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 4, 3) # datetime.date(2027, 4, 3)
end = start + timedelta(days=120) # datetime.date(2027, 8, 1)
print(end.isoformat())
```
Run result = 20... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on April 3, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 4, 3) # datetime.date(2027, 4, 3)\nend = start + timedelta(days=120) # datetime.da... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2027-08-01", "printed": "2027-08-01", "notation": null} |
nlprog_det-setting-0050028 | <|start|><|user|>
Monthly: $15. Annual: $132. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 132
savings = monthly * 12 - yearly # 48
print(savings)
```
This prints 48, as expected.
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $15. Annual: $132. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 132\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nThis prints 48, as expected.\n\n$48 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0050029 | How much sales tax is charged on a $858.45 purchase at 4%?
Let the code do the arithmetic:
```python
price = 858.45
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 34.338
print(f"{tax:.2f}")
```
Output = 34.34
The tax is $34.34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "34.34", "printed": "34.34", "notation": null} |
nlprog_det-setting-0050030 | Yoko drove 198 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
The reimbursement is $138.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "138.60", "printed": "138.60", "notation": null} |
nlprog_det-setting-0050031 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after March 26, 2018 through April 8, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 3, 26)
end = date(2018, 4, 8)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ti... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after March 26, 2018 through April 8, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 3, 26)\nend = date(2018, 4, 8)\ncount = 0\nfo... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0050032 | Attendance was 45 out of 80. Express it as a percent.
```python
present = 45
total = 80
percent = present / total * 100 # 56.25
print(round(percent, 1))
```
Execution prints 56.2.
56.2% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "56.2", "printed": "56.2", "notation": null} |
nlprog_det-setting-0050033 | <|start|><|user|>
Starting with 912 flash drives and using 38 per day, how many remain after 13 days?<|eot|>
<|assistant|>
418 flash drives are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 912 flash drives and using 38 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": "418 flash drives are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "418", "printed": "418", "notation": null} |
nlprog_det-setting-0050035 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
The run gives 8, as expected.
Parking costs $8.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 4\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nThe run gives 8, as expected.\n\nParking cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0050036 | After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
The program:
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")
```
Result: 36000.00
Ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0050038 | 4 envelopes cost $15 apiece. With 10% tax added, what is the total?
```python
quantity = 4
unit_price = 15
subtotal = quantity * unit_price # 60
total = subtotal * (1 + 10 / 100) # 66.0
print(f"{total:.2f}")
```
When run, it prints 66.00.
The invoice total is $66.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "66.00", "printed": "66.00", "notation": null} |
nlprog_det-setting-0050039 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 485 files?<|eot|>
<|assistant|>
```python
import math
files = 485
per_box = 15
boxes = math.ceil(files / per_box) # 33
print(boxes)
```
Running it prints 33, as expected.
33 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 485 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 485\nper_box = 15\nboxes = math.ceil(files / per_box) # 33\nprint(boxes)\n```\nRunning it prints 33, as expected.\n\n33 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0050040 | The paralegal logged 10.5 hours at a rate of $250. How much is billed?
In Python:
```python
hours = 10.5
rate = 250
bill = hours * rate # 2625.0
print(f"{bill:.2f}")
```
Printed result — 2625.00
That comes to $2,625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0050041 | At 45 miles per hour, how many minutes does a 105-mile trip take?
Written as code:
```python
distance = 105
speed = 45
minutes = distance / speed * 60 # 140.0
print(round(minutes))
```
The program prints 140.
140 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0050042 | 12 hours of work at $250 an hour: what is the total charge?
We write it as a program:
```python
hours = 12
rate = 250
bill = hours * rate # 3000
print(f"{bill:.2f}")
```
Out = 3000.00
The bill is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0050043 | 22 of 25 members attended. What percent attended?
The Python version:
```python
present = 22
total = 25
percent = present / total * 100 # 88.0
print(round(percent, 1))
```
Output = 88.0
Attendance was 88.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "88.0", "printed": "88.0", "notation": null} |
nlprog_det-setting-0050044 | <|start|><|system|>
You have access to these functions:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type"... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"search_cases\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 354 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0050045 | <|start|><|user|>
How much sales tax is charged on a $314.89 purchase at 5%?<|eot|>
<|assistant|>
```python
price = 314.89
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 15.7445
print(f"{tax:.2f}")
```
That prints 15.74.
$15.74 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $314.89 purchase at 5%?"
},
{
"role": "assistant",
"content": "```python\nprice = 314.89\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 15.7445\nprint(f\"{tax:.2f}\")\n```\nThat prints 15.74.\n\n$15.74 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "15.74", "printed": "15.74", "notation": null} |
nlprog_det-setting-0050047 | A garage charges $4 an hour, never more than $18 a day. How much for 10 hours?
Set it up in Python:
```python
rate = 4
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
# program output: 18
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0050048 | Convert 1,990 GBP to USD at 1 GBP = 1.27 USD.
As a program:
```python
amount = 1990
rate = 1.27
converted = amount * rate # 2527.3
print(f"{converted:.2f}")
```
Run result — 2527.30
It converts to 2,527.30 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2527.30", "printed": "2527.30", "notation": null} |
nlprog_det-setting-0050049 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetch_filing", "description": "Fetch a... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source... | nlprog_det | setting | original | null | deterministic | [] | [] | 384 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0050050 | Of a $5,000 budget, $3,900 has been spent. What percent is that?
Written as code:
```python
budget = 5000
spent = 3900
percent = spent / budget * 100 # 78.0
print(round(percent, 1))
```
Console output: 78.0
That is 78.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "78.0", "printed": "78.0", "notation": null} |
nlprog_det-setting-0050051 | A library charges $0.20 per book per day late. What is the fine for 4 books that are 17 days late?
Here is the program.
```python
per_day = 0.2
days_late = 17
books = 4
fine = per_day * days_late * books # 13.600000000000001
print(f"{fine:.2f}")
```
That prints: 13.60
The fine is $13.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "13.60", "printed": "13.60", "notation": null} |
nlprog_det-setting-0050052 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Each storage box holds 20 files. How many boxes are needed for 340 files?<|eot|>
<|assistant|>
```python
import math
files = 340
per_box = 20
boxes = math.ceil(files / per_box) # 17
print(boxes)
```
The run gives 17, as expected.
It takes 17 boxes.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 340 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 340\nper_box = 20\nboxes = math.ceil(files / per_b... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0050053 | At 40 miles per hour, how many minutes does a 80-mile trip take?
Code:
```python
distance = 80
speed = 40
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
The code prints 120.
120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0050054 | An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months?
Python does the arithmetic:
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
(Output: 100.00)
$100.00 accrue... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0050055 | A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)?
```python
old = 200
new = 180
change = (new - old) / old * 100 # -10.0
print(round(change))
```
Python prints -10, as expected.
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0050056 | <|start|><|user|>
A 10-day notice period begins on January 13, 2025. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 1, 13) # datetime.date(2025, 1, 13)
end = start + timedelta(days=10) # datetime.date(2025, 1, 23)
print(end.isoformat())
```
Executing i... | chat | [
{
"role": "user",
"content": "A 10-day notice period begins on January 13, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 1, 13) # datetime.date(2025, 1, 13)\nend = start + timedelta(days=10) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2025-01-23", "printed": "2025-01-23", "notation": null} |
nlprog_det-setting-0050057 | What commission does Lena make on $95,616 in sales at 3%?
Set it up in Python:
sales = 95616
rate = 3 / 100 # 0.03
commission = sales * rate # 2868.48
print(f"{commission:.2f}")
What it prints: 2868.48
The commission is $2,868.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2868.48", "printed": "2868.48", "notation": null} |
nlprog_det-setting-0050058 | <|start|><|user|>
An invoice lists 39 scissors at $24 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 39
unit_price = 24
subtotal = quantity * unit_price # 936
total = subtotal * (1 + 5 / 100) # 982.8000000000001
print(f"{total:.2f}")
(Run result: 982.80)
The i... | chat | [
{
"role": "user",
"content": "An invoice lists 39 scissors at $24 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 39\n unit_price = 24\n subtotal = quantity * unit_price # 936\n total = subtotal * (1 + 5 / 100) # 982.8000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "982.80", "printed": "982.80", "notation": null} |
nlprog_det-setting-0050059 | Counting the first and last day, how many days are there from February 13, 2026 through February 25, 2026?
As Python:
```python
from datetime import date
first = date(2026, 2, 13) # datetime.date(2026, 2, 13)
last = date(2026, 2, 25) # datetime.date(2026, 2, 25)
days = (last - first).days + 1 # 13
print(days)
```
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0050060 | <|start|><|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 53
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 390.0
pay = regular + overtime # 1190.0
print(f"{pay:.2f}")
```
Output = 1190.00
... | chat | [
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 53\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 390.0\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1190.00", "printed": "1190.00", "notation": null} |
nlprog_det-setting-0050061 | An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?
As Python:
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 20.0
print(f"{interest:.2f}")
```
It prints 20.00.
$20.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0050062 | <|start|><|user|>
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
Profit is 11.1% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "Profit is 11.1% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0050063 | A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?
Here is the program.
```python
recovery = 40000
rate = 40 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
Running it prints 16000.00.
The lawyer's fee comes to $16,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0050064 | A settlement of $18,000 is split equally among 5 parties. How much does each party receive?
Python code:
```python
settlement = 18000
parties = 5
share = settlement // parties # 3600
print(share)
```
Console:
3600
Each share is $3,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3600", "printed": "3600", "notation": null} |
nlprog_det-setting-0050065 | Sales went from 2,500 to 1,250. What is the percent change?
Let's compute it with Python.
```python
old = 2500
new = 1250
change = (new - old) / old * 100 # -50.0
print(round(change))
```
On running, it outputs -50.
It changed by -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0050066 | <|start|><|system|>
Tools you may use:
[{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "lookup_statute", "description": "Look u... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 396 | {"gold": "41.30", "printed": "41.30", "notation": null} |
nlprog_det-setting-0050067 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A car travels 462 miles in 1 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 462
hours = 1
speed = distance / hours # 462.0
print(round(speed))
```
Executing it gives 462, as expected.
It a... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A car travels 462 miles in 1 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 462\nhours = 1\nspeed = dista... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "462", "printed": "462", "notation": null} |
nlprog_det-setting-0050068 | What is the total rent on a 18-month lease at $1,475 a month?
Computing it:
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
The script prints 26550, as expected.
The rent over the term is $26,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0050069 | Divide 293 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
Computation in Python:
```python
total = 293
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Interpreter output: 41 each, 6 left over
The answ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "41 each, 6 left over", "printed": "41 each, 6 left over", "notation": null} |
nlprog_det-setting-0050070 | How many minutes pass from 7:16 AM to 2:04 PM on the same day?
One way, in code:
```python
start = 7 * 60 + 16 # 436
end = 14 * 60 + 4 # 844
print(end - start)
```
It prints: 408
408 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "408", "printed": "408", "notation": null} |
nlprog_det-setting-0050071 | <|start|><|user|>
A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 132
savings = monthly * 12 - yearly # 48
print(savings)
```
Running this gives: 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 132\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nRunning this gives: 48\... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0050072 | <|start|><|user|>
Convert 5 h 44 min (the length of a deposition) to minutes.<|eot|>
<|assistant|>
```python
hours = 5
minutes = 44
total_minutes = hours * 60 + minutes # 344
print(total_minutes)
```
Printed:
344
The deposition lasted 344 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 44 min (the length of a deposition) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 44\ntotal_minutes = hours * 60 + minutes # 344\nprint(total_minutes)\n```\nPrinted:\n344\n\nThe deposition lasted 344 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0050073 | A 180-mile drive at a steady 30 mph takes how many minutes?
In Python:
```python
distance = 180
speed = 30
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
It prints: 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0050074 | A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?
One way, in code:
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 51.74999999999999
print(f"{each:.2f}")
```
# output: 51.75
The share is $51.75 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "51.75", "printed": "51.75", "notation": null} |
nlprog_det-setting-0050075 | <|start|><|user|>
7 boxes hold 6 notebooks each. After 16 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 6
given_away = 16
left = boxes * per_box - given_away # 26
print(left)
```
The script prints 26, as expected.
That leaves 26 notebooks.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 6 notebooks each. After 16 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 6\ngiven_away = 16\nleft = boxes * per_box - given_away # 26\nprint(left)\n```\nThe script prints 26, as expected.\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0050076 | Monthly rent is $2,400. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?
Written as code:
```python
rent = 2400
days_in_month = 31
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 1703.225806451613
print(f"{prorated:.2f}")
```
Running this gives: 1703.23
The prora... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1703.23", "printed": "1703.23", "notation": null} |
nlprog_det-setting-0050077 | A library charges $0.20 per book per day late. What is the fine for 2 books that are 22 days late?
A few lines of Python do it:
```python
per_day = 0.2
days_late = 22
books = 2
fine = per_day * days_late * books # 8.8
print(f"{fine:.2f}")
```
Run result: 8.80
$8.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "8.80", "printed": "8.80", "notation": null} |
nlprog_det-setting-0050078 | A recipe for 4 people uses 100 grams of lentils. How many grams are needed for 2 people?
A few lines of Python do it:
```python
grams = 100
serves = 4
needed_for = 2
scaled = grams * needed_for // serves # 50
print(scaled)
```
Execution result — 50
Use 50 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0050079 | <|start|><|system|>
You may call the tools below.
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the c... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"eval_python\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 326 | {"gold": "830.00", "printed": "830.00", "notation": null} |
nlprog_det-setting-0050080 | How long, in days, is it from June 6, 2024 until July 27, 2024?
Computation in Python:
from datetime import date
first = date(2024, 6, 6) # datetime.date(2024, 6, 6)
second = date(2024, 7, 27) # datetime.date(2024, 7, 27)
print((second - first).days)
# output: 51
It is 51 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0050082 | A measure needs at least 60% of 250 votes. How many votes is that, rounded up?
Python makes this quick:
```python
import math
voters = 250
needed = math.ceil(voters * 60 / 100) # 150
print(needed)
```
Shell output — 150
150 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0050083 | A party has 30 days to respond to a motion served on May 8, 2018, with 3 days added because service was by mail. When is the response due?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
served = date(2018, 5, 8) # datetime.date(2018, 5, 8)
response_days = 30
mail_days = 3
due = served ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2018-06-10", "printed": "2018-06-10", "notation": null} |
nlprog_det-setting-0050084 | Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost?
The program:
```python
rate = 2
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Running this gives: 8
The charge is $8. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0050085 | <|start|><|user|>
From 2011 to 2025, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2011
end_year = 2025
print(end_year - start_year)
```
(Output: 14)
That is 14 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2011 to 2025, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2011\nend_year = 2025\nprint(end_year - start_year)\n```\n(Output: 14)\n\nThat is 14 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0050086 | <|start|><|user|>
At $0.70 per mile, what is the reimbursement for 552 miles?<|eot|>
<|assistant|>
miles = 552
rate = 0.7
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
# result: 386.40
The reimbursement is $386.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 552 miles?"
},
{
"role": "assistant",
"content": " miles = 552\n rate = 0.7\n reimbursement = miles * rate\n print(f\"{reimbursement:.2f}\")\n# result: 386.40\n\nThe reimbursement is $386.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "386.40", "printed": "386.40", "notation": null} |
nlprog_det-setting-0050087 | Parking is $4 per hour with a daily maximum of $18. What do 3 hours cost?
In code:
```python
rate = 4
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
It prints 12.
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0050088 | The paralegal logged 8 hours at a rate of $250. How much is billed?
Python:
```python
hours = 8
rate = 250
bill = hours * rate # 2000
print(f"{bill:.2f}")
```
Console output — 2000.00
That comes to $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0050089 | Someone works 12 hours at $21.19 per hour. What are the earnings?
Python does the arithmetic:
rate = 21.19
hours = 12
earnings = rate * hours # 254.28000000000003
print(f"{earnings:.2f}")
Output: 254.28
That earns $254.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "254.28", "printed": "254.28", "notation": null} |
nlprog_det-setting-0050090 | A quorum is 3/5 of the 13 members, rounded up. How many members make a quorum?
```python
import math
members = 13
quorum = math.ceil(members * 3 / 5) # 8
print(quorum)
```
(Execution result: 8)
8 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0050091 | How many of 179 votes make 75% (round up)?
import math
voters = 179
needed = math.ceil(voters * 75 / 100) # 135
print(needed)
Printed = 135
At least 135 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0050092 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A party has 30 days to respond to a motion served on September 18, 2026, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 9, 18) # datetime... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on September 18, 2026, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "`... | nlprog_det | setting | original | null | deterministic | [] | [] | 192 | {"gold": "2026-10-21", "printed": "2026-10-21", "notation": null} |
nlprog_det-setting-0050093 | <|start|><|user|>
A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
Executed, it shows: 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 25\n yearly = 252\n savings = monthly * 12 - yearly # 48\n print(savings)\nExecuted, it shows: 48\... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0050094 | A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 30.0
print(f"{each:.2f}")
```
Printed result — 30.00
The share is $30.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0050095 | <|start|><|user|>
After an initial $6,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 14000.0
print(f"{each:.2f}")
```
Python prints 14000.00, as expected.
$14,00... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 3\neach = (grant - up_front) / installments # 14000.0\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0050096 | <|start|><|user|>
A count moves from 2,500 to 3,125. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2500
new = 3125
change = (new - old) / old * 100
print(round(change))
```
On running, it outputs 25.
It changed by 25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,500 to 3,125. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 3125\nchange = (new - old) / old * 100\nprint(round(change))\n```\nOn running, it outputs 25.\n\nIt ch... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0050097 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "define_word", ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_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 | [] | [] | 295 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0050098 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $2,500. How much after 3 days?<|eot|>
<|assistant|>
per_day = 50
days = 3
cap = 2500
fine = min(per_day * days, cap) # 150
print(fine)
Console output: 150
$150 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $2,500. How much after 3 days?"
},
{
"role": "assistant",
"content": " per_day = 50\n days = 3\n cap = 2500\n fine = min(per_day * days, cap) # 150\n print(fine)\nConsole output: 150\n\n$150 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0050099 | <|start|><|user|>
To read 264 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 264
days = 6
per_day = pages // days # 44
print(per_day)
```
Running this gives: 44
44 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 264 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 264\ndays = 6\nper_day = pages // days # 44\nprint(per_day)\n```\nRunning this gives: 44\n\n44 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0050100 | How many of 149 votes make 67% (round up)?
Program:
```python
import math
voters = 149
needed = math.ceil(voters * 67 / 100) # 100
print(needed)
```
Output — 100
100 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0050101 | A measure needs at least 67% of 203 votes. How many votes is that, rounded up?
The program:
import math
voters = 203
needed = math.ceil(voters * 67 / 100)
print(needed)
Program output — 137
At least 137 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "137", "printed": "137", "notation": null} |
nlprog_det-setting-0050102 | <|start|><|user|>
How many meters are in 65.5 kilometers?<|eot|>
<|assistant|>
```python
km = 65.5
meters = km * 1000
print(round(meters))
```
The run gives 65500.
65,500 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 65.5 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 65.5\nmeters = km * 1000\nprint(round(meters))\n```\nThe run gives 65500.\n\n65,500 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "65500", "printed": "65500", "notation": null} |
nlprog_det-setting-0050103 | A 8 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Python version:
```python
import math
length = 8
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 18
print(tiles)
```
Printed = 18
It takes 18 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0050104 | <|start|><|user|>
Starting from $25,000, the team spends $3,714, $2,870, $1,155, $1,036. What remains?<|eot|>
<|assistant|>
The remaining budget is $16,225.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $3,714, $2,870, $1,155, $1,036. What remains?"
},
{
"role": "assistant",
"content": "The remaining budget is $16,225."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "16225", "printed": "16225", "notation": null} |
nlprog_det-setting-0050105 | A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
A short script:
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 28.75
print(f"{each:.2f}")
```
The program outputs: 28.75
Each person pays $28.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "28.75", "printed": "28.75", "notation": null} |
nlprog_det-setting-0050106 | <|start|><|system|>
Tools you may use:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
An invoice lists 17 file boxes at $3 each... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "54.06", "printed": "54.06", "notation": null} |
nlprog_det-setting-0050107 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 399 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0050108 | <|start|><|user|>
A library charges $0.10 per book per day late. What is the fine for 2 books that are 10 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 10
books = 2
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
```
(Run result: 2.00)
$2.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 10 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 10\nbooks = 2\nfine = per_day * days_late * books # 2.0\nprint(f\"{fine:.2f}\")\n```\n(Ru... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0050109 | How long, in days, is it from September 11, 2025 until May 22, 2026?
We write it as a program:
```python
from datetime import date
first = date(2025, 9, 11) # datetime.date(2025, 9, 11)
second = date(2026, 5, 22) # datetime.date(2026, 5, 22)
print((second - first).days)
```
It prints: 253
There are 253 days between... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "253", "printed": "253", "notation": null} |
nlprog_det-setting-0050110 | 90 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
One way, in code:
```python
total = 90
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# result: 10 each, 0 left over
The answer: 10 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "10 each, 0 left over", "printed": "10 each, 0 left over", "notation": null} |
nlprog_det-setting-0050111 | <|start|><|user|>
A meal costs $221.80. How much is a 20% tip?<|eot|>
<|assistant|>
bill = 221.8
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 44.36000000000001
print(f"{tip:.2f}")
Execution result: 44.36
The tip is $44.36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $221.80. How much is a 20% tip?"
},
{
"role": "assistant",
"content": " bill = 221.8\n tip_rate = 20 / 100 # 0.2\n tip = bill * tip_rate # 44.36000000000001\n print(f\"{tip:.2f}\")\nExecution result: 44.36\n\nThe tip is $44.36."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "44.36", "printed": "44.36", "notation": null} |
nlprog_det-setting-0050112 | A film lasted 1 hours and 17 minutes. How many minutes is that?
Computation in Python:
hours = 1
minutes = 17
total_minutes = hours * 60 + minutes # 77
print(total_minutes)
What it prints — 77
That is 77 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "77", "printed": "77", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.