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-0081720 | With 16 rows of 9 chairs and 0 empty chairs, how many chairs are taken?
As Python:
```python
rows = 16
per_row = 9
empty = 0
seated = rows * per_row - empty # 144
print(seated)
```
It prints: 144
144 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0081721 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 180 copies of a 21-page handout?<|eot|>
<|assistant|>
```python
pages = 21
copies = 180
cost_per_page = 0.15
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Running it prints 567.00, as expected.
Printing costs $567.00.<|eot|>
... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 180 copies of a 21-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 21\ncopies = 180\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nRunning ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "567.00", "printed": "567.00", "notation": null} |
nlprog_det-setting-0081723 | What is the total rent on a 24-month lease at $2,875 a month?
Here's the code.
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months # 69000
print(total)
```
# printed: 69000
The rent over the term is $69,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0081724 | $10,000 is invested at 3% compounded yearly. What is it worth after 5 years?
As Python:
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 11592.740743
print(f"{value:.2f}")
```
Shell output: 11592.74
It is worth $11,592.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0081725 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0081726 | The rules require 1/3 of 40 members (round up) to be present. How many is that?
Let's compute it with Python.
```python
import math
members = 40
quorum = math.ceil(members * 1 / 3) # 14
print(quorum)
```
That prints: 14
14 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0081727 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $20. What do 9 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 9
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Run result — 20
Parking costs $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $20. What do 9 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 9\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nRun result — 20\n\nParking costs $20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0081728 | Each of Olga's runs burns 250 calories. How many calories over 4 runs?
Code:
```python
per_session = 250
sessions = 4
total = per_session * sessions
print(total)
```
The program prints 1000, as expected.
That burns 1000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0081730 | Rent of $1,250 goes up 6%. What is the new rent?
Computation in Python:
```python
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
```
When run, it prints 1325.00.
It rises to $1,325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0081731 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "descri... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 413 | {"gold": "1:45 PM", "printed": "1:45 PM", "notation": null} |
nlprog_det-setting-0081732 | <|start|><|user|>
Find the mean of these test scores: 96, 56, 50, 58, 88, 98 and 72.<|eot|>
<|assistant|>
```python
scores = [96, 56, 50, 58, 88, 98, 72]
average = sum(scores) // len(scores) # 74
print(average)
```
This prints 74.
The average score is 74.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 96, 56, 50, 58, 88, 98 and 72."
},
{
"role": "assistant",
"content": "```python\nscores = [96, 56, 50, 58, 88, 98, 72]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\nThis prints 74.\n\nThe average score is 74."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0081733 | A quorum is 1/3 of the 8 members, rounded up. How many members make a quorum?
As a program:
```python
import math
members = 8
quorum = math.ceil(members * 1 / 3) # 3
print(quorum)
```
(stdout: 3)
That is 3 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0081734 | <|start|><|user|>
Convert 213 EUR to USD at 1 EUR = 1.08 USD.<|eot|>
<|assistant|>
```python
amount = 213
rate = 1.08
converted = amount * rate # 230.04000000000002
print(f"{converted:.2f}")
```
# execution result: 230.04
That is 230.04 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 213 EUR to USD at 1 EUR = 1.08 USD."
},
{
"role": "assistant",
"content": "```python\namount = 213\nrate = 1.08\nconverted = amount * rate # 230.04000000000002\nprint(f\"{converted:.2f}\")\n```\n# execution result: 230.04\n\nThat is 230.04 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "230.04", "printed": "230.04", "notation": null} |
nlprog_det-setting-0081735 | With 29 rows of 14 chairs and 33 empty chairs, how many chairs are taken?
In code:
```python
rows = 29
per_row = 14
empty = 33
seated = rows * per_row - empty # 373
print(seated)
```
The printout reads: 373
373 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "373", "printed": "373", "notation": null} |
nlprog_det-setting-0081736 | How many days are there from October 20, 2026 to January 3, 2027?
The computation:
```python
from datetime import date
first = date(2026, 10, 20) # datetime.date(2026, 10, 20)
second = date(2027, 1, 3) # datetime.date(2027, 1, 3)
print((second - first).days)
```
This prints: 75
There are 75 days between the two dat... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0081737 | <|start|><|user|>
A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?<|eot|>
<|assistant|>
```python
rate = 5
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
# out: 18
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\n# out: 18\n\nParking costs $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081738 | Goods bought on September 9, 2028 carry a 36-month warranty. When does it expire?
In code:
from datetime import date
start = date(2028, 9, 9)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
#... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2031-09-09", "printed": "2031-09-09", "notation": null} |
nlprog_det-setting-0081739 | Which is cheaper per unit: 8 for $4.00 (A) or 20 for $22.04 (B)?
Computation in Python:
```python
pack_a = 4.0 / 8 # 0.5
pack_b = 22.04 / 20 # 1.1019999999999999
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The script prints: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0081740 | Fixed costs are $4,000. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?
Programmatically:
```python
import math
fixed = 4000
price = 40
variable = 35
units = math.ceil(fixed / (price - variable))
print(units)
```
Out:
800
Break-even is 800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0081741 | Fixed costs are $1,200. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?
Python does the arithmetic:
```python
import math
fixed = 1200
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
Result:
200
Break-even is 200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0081742 | <|start|><|user|>
Prorate $900 of monthly rent for 20 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 600.0
print(f"{prorated:.2f}")
```
# program output: 600.00
The tenant owes $600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 20 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 600.0\nprint(f\"{prorated:.2f}\")\n```\n# program out... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0081743 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Monthly: $12. Annual: $108. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
(Result: 36)
The annual plan saves $36.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Monthly: $12. Annual: $108. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 108\nsavings = monthly * 12 - yearly # 36\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0081744 | <|start|><|user|>
At $31.66 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 31.66
hours = 30
earnings = rate * hours # 949.8
print(f"{earnings:.2f}")
```
The interpreter prints 949.80.
The pay is $949.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $31.66 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 31.66\nhours = 30\nearnings = rate * hours # 949.8\nprint(f\"{earnings:.2f}\")\n```\nThe interpreter prints 949.80.\n\nThe pay is $949.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "949.80", "printed": "949.80", "notation": null} |
nlprog_det-setting-0081745 | The landlord deducts $75 and $75 from a $2,500 deposit. What is returned to the tenant?
Script:
```python
deposit = 2500
deductions = [75, 75]
refund = deposit - sum(deductions) # 2350
print(refund)
```
The run gives: 2350
$2,350 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2350", "printed": "2350", "notation": null} |
nlprog_det-setting-0081746 | A board has 10 members. A majority is more than half. How many votes make a majority?
Computing it:
```python
members = 10
majority = members // 2 + 1 # 6
print(majority)
```
On running, it outputs: 6
6 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0081747 | 1 books come back 20 days late, at $0.15 a day each. What is the fine?
The computation:
per_day = 0.15
days_late = 20
books = 1
fine = per_day * days_late * books
print(f"{fine:.2f}")
# program output: 3.00
The fine is $3.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0081748 | <|start|><|user|>
What percentage of $5,000 is $2,700?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 2700
percent = spent / budget * 100 # 54.0
print(round(percent, 1))
```
Output = 54.0
54.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $2,700?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 2700\npercent = spent / budget * 100 # 54.0\nprint(round(percent, 1))\n```\nOutput = 54.0\n\n54.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "54.0", "printed": "54.0", "notation": null} |
nlprog_det-setting-0081749 | <|start|><|user|>
Shipping costs $10 plus $1.20 per pound. What does a 33-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 10
per_pound = 1.2
weight = 33
cost = base + per_pound * weight # 49.6
print(f"{cost:.2f}")
(Output: 49.60)
Shipping costs $49.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $1.20 per pound. What does a 33-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 10\n per_pound = 1.2\n weight = 33\n cost = base + per_pound * weight # 49.6\n print(f\"{cost:.2f}\")\n(Output: 49.60)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "49.60", "printed": "49.60", "notation": null} |
nlprog_det-setting-0081750 | At a 6% tax rate, what is the tax on $843.03?
Python, step by step:
```python
price = 843.03
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 50.581799999999994
print(f"{tax:.2f}")
```
(Printed: 50.58)
$50.58 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "50.58", "printed": "50.58", "notation": null} |
nlprog_det-setting-0081751 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 68 copies of a 9-page handout?<|eot|>
<|assistant|>
Printing costs $73.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 68 copies of a 9-page handout?"
},
{
"role": "assistant",
"content": "Printing costs $73.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "73.44", "printed": "73.44", "notation": null} |
nlprog_det-setting-0081752 | <|start|><|system|>
You have access to these functions:
{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
At a 8% tax... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "17.93", "printed": "17.93", "notation": null} |
nlprog_det-setting-0081753 | What simple interest does $1,000 earn at 2% a year over 3 years?
A short script:
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 3
interest = principal * rate * years # 60.0
print(f"{interest:.2f}")
```
Console output: 60.00
The interest is $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0081754 | At 50 miles per hour, how many minutes does a 100-mile trip take?
Here is a short program for it.
```python
distance = 100
speed = 50
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
This prints 120.
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0081755 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A client paid a $7,500 retainer. The firm has billed 7 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
The remaining balance is $5,750.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 7 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "The remaining balance is $5,750."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "5750", "printed": "5750", "notation": null} |
nlprog_det-setting-0081756 | <|start|><|user|>
A hall has 11 rows of 21 seats, and 3 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 11
per_row = 21
empty = 3
seated = rows * per_row - empty # 228
print(seated)
```
The program outputs: 228
228 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 11 rows of 21 seats, and 3 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 11\nper_row = 21\nempty = 3\nseated = rows * per_row - empty # 228\nprint(seated)\n```\nThe program outputs: 228\n\n228 seats... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "228", "printed": "228", "notation": null} |
nlprog_det-setting-0081757 | <|start|><|system|>
Tool definitions:
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Kemal earns a 6% commissio... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "1302.72", "printed": "1302.72", "notation": null} |
nlprog_det-setting-0081758 | <|start|><|user|>
Fixed costs are $4,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
That prints: 667
667 units are needed.... | chat | [
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable)) # 6... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0081759 | <|start|><|user|>
Each storage box holds 40 files. How many boxes are needed for 212 files?<|eot|>
<|assistant|>
```python
import math
files = 212
per_box = 40
boxes = math.ceil(files / per_box) # 6
print(boxes)
```
# stdout: 6
6 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 40 files. How many boxes are needed for 212 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 212\nper_box = 40\nboxes = math.ceil(files / per_box) # 6\nprint(boxes)\n```\n# stdout: 6\n\n6 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0081760 | <|start|><|system|>
You have access to these functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "get_weather", "description": "Get ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 357 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0081761 | <|start|><|user|>
What day of the week is December 5, 1995?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1995, 12, 5) # datetime.date(1995, 12, 5)
print(hearing.strftime("%A"))
```
Running this gives Tuesday.
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is December 5, 1995?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1995, 12, 5) # datetime.date(1995, 12, 5)\nprint(hearing.strftime(\"%A\"))\n```\nRunning this gives Tuesday.\n\nIt is a Tuesday."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0081762 | How many weekdays (Monday to Friday) fall after December 19, 2025 up to and including January 13, 2026?
Python code:
```python
from datetime import date, timedelta
start = date(2025, 12, 19)
end = date(2026, 1, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0081763 | Convert -20 °C to Fahrenheit.
Here's the code.
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
Printed = -4
It equals -4 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0081764 | <|start|><|user|>
A recipe for 2 people uses 300 grams of oats. How many grams are needed for 8 people?<|eot|>
<|assistant|>
```python
grams = 300
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 1200
print(scaled)
```
Execution prints 1200.
Use 1200 g of oats.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 300 grams of oats. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 2\nneeded_for = 8\nscaled = grams * needed_for // serves # 1200\nprint(scaled)\n```\nExecution prints 1200.... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0081765 | <|start|><|user|>
A printer costs $80. It is 25% off. What is the sale price?<|eot|>
<|assistant|>
The sale price is $60.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A printer costs $80. It is 25% off. What is the sale price?"
},
{
"role": "assistant",
"content": "The sale price is $60.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0081766 | <|start|><|system|>
You may call the tools below.
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Scale 200 g of su... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0081767 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Convert 20 °C to Fahrenheit.<|eot|... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0081768 | A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?
The Python version:
recovery = 12000
rate = 33 / 100
fee = recovery * rate
print(f"{fee:.2f}")
stdout: 3960.00
The lawyer's fee comes to $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0081769 | Jonas and Tobias share $1,376 in the ratio 1:3. How much does Jonas get?
Let's compute it with Python.
```python
total = 1376
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 344
print(share_a)
```
Execution prints: 344
Jonas's share is $344. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0081770 | An invoice lists 14 notebooks at $24 each, plus 10% sales tax. What is the invoice total?
We write it as a program:
```python
quantity = 14
unit_price = 24
subtotal = quantity * unit_price # 336
total = subtotal * (1 + 10 / 100) # 369.6
print(f"{total:.2f}")
```
stdout = 369.60
The invoice total is $369.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "369.60", "printed": "369.60", "notation": null} |
nlprog_det-setting-0081771 | 244 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Set it up in Python:
```python
total = 244
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Execution result: 81 each, 1 left over)
The answer: 81 each, 1 l... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "81 each, 1 left over", "printed": "81 each, 1 left over", "notation": null} |
nlprog_det-setting-0081772 | <|start|><|user|>
How many minutes pass from 8:58 AM to 12:24 PM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 58 # 538
end = 12 * 60 + 24 # 744
print(end - start)
```
Printed:
206
It is 206 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:58 AM to 12:24 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 58 # 538\nend = 12 * 60 + 24 # 744\nprint(end - start)\n```\nPrinted:\n206\n\nIt is 206 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "206", "printed": "206", "notation": null} |
nlprog_det-setting-0081773 | Someone works 36 hours at $23.91 per hour. What are the earnings?
We can compute it in Python.
```python
rate = 23.91
hours = 36
earnings = rate * hours # 860.76
print(f"{earnings:.2f}")
```
Interpreter output — 860.76
The pay is $860.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "860.76", "printed": "860.76", "notation": null} |
nlprog_det-setting-0081774 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
6 boxes hold 25 lanyards each. After 4 are handed out, how many are left?<|eot|>
<|assistant|>
146 lanyards are left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "6 boxes hold 25 lanyards each. After 4 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "146 lanyards are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "146", "printed": "146", "notation": null} |
nlprog_det-setting-0081775 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A quorum is 1/3 of the 20 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 20
quorum = math.ceil(members * 1 / 3) # 7
print(quorum)
Executed, it shows 7.
7 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A quorum is 1/3 of the 20 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 20\n quorum = math.ceil(members * 1 / 3) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0081776 | $5,000 is invested at 2% compounded yearly. What is it worth after 5 years?
As Python:
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 5520.404016
print(f"{value:.2f}")
```
Run it and it prints 5520.40.
The balance is $5,520.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5520.40", "printed": "5520.40", "notation": null} |
nlprog_det-setting-0081777 | A count moves from 1,200 to 1,320. By what percent did it change (use a minus sign for a drop)?
Written as code:
```python
old = 1200
new = 1320
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Executed, it shows 10.
It changed by 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0081778 | A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 24 thousand gallons?
Translated to Python:
```python
base = 12
rate = 3.5
used = 24
free = 3
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
It prints: 85.50
The bill is $85.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "85.50", "printed": "85.50", "notation": null} |
nlprog_det-setting-0081779 | At a 5% tax rate, what is the tax on $206.12? The tax is $10.31. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "10.31", "printed": "10.31", "notation": null} |
nlprog_det-setting-0081780 | A settlement of $36,000 is split equally among 6 parties. How much does each party receive?
In Python:
```python
settlement = 36000
parties = 6
share = settlement // parties # 6000
print(share)
```
On running, it outputs: 6000
Each share is $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0081781 | A 780-page report must be reviewed in 15 days. How many pages a day is that, evenly?
Set it up in Python:
```python
pages = 780
days = 15
per_day = pages // days # 52
print(per_day)
```
Execution result: 52
52 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0081782 | <|start|><|user|>
Scale 240 g of pasta from 8 servings to 2 servings.<|eot|>
<|assistant|>
```python
grams = 240
serves = 8
needed_for = 2
scaled = grams * needed_for // serves # 60
print(scaled)
```
Interpreter output — 60
Use 60 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 240 g of pasta from 8 servings to 2 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 8\nneeded_for = 2\nscaled = grams * needed_for // serves # 60\nprint(scaled)\n```\nInterpreter output — 60\n\nUse 60 g of pasta."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0081783 | <|start|><|user|>
At an exchange rate of 1.35 USD per GBP, how many USD is 4,589 GBP?<|eot|>
<|assistant|>
```python
amount = 4589
rate = 1.35
converted = amount * rate # 6195.150000000001
print(f"{converted:.2f}")
```
# printed: 6195.15
It converts to 6,195.15 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.35 USD per GBP, how many USD is 4,589 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 4589\nrate = 1.35\nconverted = amount * rate # 6195.150000000001\nprint(f\"{converted:.2f}\")\n```\n# printed: 6195.15\n\nIt converts to 6... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "6195.15", "printed": "6195.15", "notation": null} |
nlprog_det-setting-0081784 | <|start|><|user|>
A 40 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
Shipping costs $42.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 40 lb package ships at $12 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "Shipping costs $42.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0081785 | Sami buys 12 boxes of 6 labels each and gives away 15 labels. How many labels are left?
The Python version:
```python
boxes = 12
per_box = 6
given_away = 15
left = boxes * per_box - given_away # 57
print(left)
```
What it prints: 57
That leaves 57 labels. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0081786 | Sales went from 2,500 to 1,250. What is the percent change?
Python code:
```python
old = 2500
new = 1250
change = (new - old) / old * 100 # -50.0
print(round(change))
```
(stdout: -50)
The change is -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0081787 | What average speed covers 123 miles in 0.5 hours? The average speed is 246 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "246", "printed": "246", "notation": null} |
nlprog_det-setting-0081789 | Count 21 days forward from January 7, 2019. What date is that?
Python does the arithmetic:
```python
from datetime import date, timedelta
start = date(2019, 1, 7) # datetime.date(2019, 1, 7)
end = start + timedelta(days=21) # datetime.date(2019, 1, 28)
print(end.isoformat())
```
Result = 2019-01-28
That date is Jan... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2019-01-28", "printed": "2019-01-28", "notation": null} |
nlprog_det-setting-0081790 | Amir was born on April 21, 1972. How old is Amir on November 3, 2027?
Python code:
```python
from datetime import date
born = date(1972, 4, 21) # datetime.date(1972, 4, 21)
on = date(2027, 11, 3) # datetime.date(2027, 11, 3)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 55
print(age)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0081792 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $2,500. What is owed after 33 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 33
cap = 2500
fine = min(per_day * days, cap) # 1650
print(fine)
```
The run gives 1650.
The fine is $1,650.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 33 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 33\ncap = 2500\nfine = min(per_day * days, cap) # 1650\nprint(fine)\n```\nThe run gives 1650.\n\nThe fine is $1,650.... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0081793 | A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?
Program:
```python
recovery = 150000
rate = 35 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
The code prints: 52500.00
The fee is $52,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "52500.00", "printed": "52500.00", "notation": null} |
nlprog_det-setting-0081794 | Buying 5 badges at $9 each, 1 headsets at $29 each, 3 water bottles at $4 each, someone hands over $100. What change comes back?
The change is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0081795 | <|start|><|user|>
Find the mean of these test scores: 95, 91, 72 and 66.<|eot|>
<|assistant|>
```python
scores = [95, 91, 72, 66]
average = sum(scores) // len(scores) # 81
print(average)
```
Run output — 81
The average score is 81.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 95, 91, 72 and 66."
},
{
"role": "assistant",
"content": "```python\nscores = [95, 91, 72, 66]\naverage = sum(scores) // len(scores) # 81\nprint(average)\n```\nRun output — 81\n\nThe average score is 81."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0081796 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Written as code:
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
The script prints 20.0.
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0081797 | Pack A has 8 items for $14.41. Pack B has 15 items for $11.05. Which has the lower price per item?
```python
pack_a = 14.41 / 8 # 1.80125
pack_b = 11.05 / 15 # 0.7366666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Python prints: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0081798 | Scale 240 g of sugar from 8 servings to 4 servings.
One way, in code:
```python
grams = 240
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 120
print(scaled)
```
The program prints: 120
Use 120 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0081799 | Sales went from 2,500 to 2,750. What is the percent change?
As a program:
```python
old = 2500
new = 2750
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Run output — 10
It changed by 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0081800 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Nilufar lends $20... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0081801 | 5 walks at 200 calories each burn how many calories in total?
```python
per_session = 200
sessions = 5
total = per_session * sessions # 1000
print(total)
```
It prints 1000.
That burns 1000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0081802 | <|start|><|user|>
2 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
Each person pays $90.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 friends split a $150 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "Each person pays $90.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0081803 | <|start|><|system|>
You have access to these functions:
[{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Parking is $2 per hour with a... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scr... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081804 | Convert 80.4 km to meters.
As Python:
```python
km = 80.4
meters = km * 1000 # 80400.0
print(round(meters))
```
Output:
80400
That is 80,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "80400", "printed": "80400", "notation": null} |
nlprog_det-setting-0081805 | How many meters are in 58 kilometers?
The program:
```python
km = 58
meters = km * 1000 # 58000
print(round(meters))
```
The script prints 58000, as expected.
That is 58,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "58000", "printed": "58000", "notation": null} |
nlprog_det-setting-0081806 | A car travels 368 miles in 2 hours. What is its average speed in miles per hour?
The average speed is 184 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "184", "printed": "184", "notation": null} |
nlprog_det-setting-0081807 | A 10-day notice period begins on July 9, 2022. On what date does it end? It ends on July 19, 2022. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "2022-07-19", "printed": "2022-07-19", "notation": null} |
nlprog_det-setting-0081808 | A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
Code:
```python
grant = 48000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 15000.0
print(f"{each:.2f}")
```
Result — 15000.00
$15,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0081809 | <|start|><|user|>
Filing fees are $35 per document. What do 17 filings cost?<|eot|>
<|assistant|>
The total fee is $595.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $35 per document. What do 17 filings cost?"
},
{
"role": "assistant",
"content": "The total fee is $595."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "595", "printed": "595", "notation": null} |
nlprog_det-setting-0081810 | <|start|><|user|>
Farah was born on November 11, 1959. How old is Farah on July 12, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1959, 11, 11) # datetime.date(1959, 11, 11)
on = date(2026, 7, 12) # datetime.date(2026, 7, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, ... | chat | [
{
"role": "user",
"content": "Farah was born on November 11, 1959. How old is Farah on July 12, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1959, 11, 11) # datetime.date(1959, 11, 11)\non = date(2026, 7, 12) # datetime.date(2026, 7, 12)\nage =... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0081811 | <|start|><|user|>
How many meters are in 2.3 kilometers?<|eot|>
<|assistant|>
```python
km = 2.3
meters = km * 1000 # 2300.0
print(round(meters))
```
Execution prints 2300.
2,300 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 2.3 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 2.3\nmeters = km * 1000 # 2300.0\nprint(round(meters))\n```\nExecution prints 2300.\n\n2,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0081812 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 30 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 30
books = 4
fine = per_day * days_late * books # 30.0
print(f"{fine:.2f}")
```
It prints: 30.00
The fine is $30.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 30 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 30\nbooks = 4\nfine = per_day * days_late * books # 30.0\nprint(f\"{fine:.2f}\")\n```\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0081813 | 10.5 hours of work at $250 an hour: what is the total charge?
Coded up:
hours = 10.5
rate = 250
bill = hours * rate # 2625.0
print(f"{bill:.2f}")
Execution prints 2625.00.
The bill is $2,625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0081814 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
Let's compute it with Python.
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
Result: 3.8
The margin is 3... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0081815 | <|start|><|user|>
Cyrus drove 223 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
miles = 223
rate = 0.65
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
Shell output — 144.95
Cyrus is owed $144.95.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Cyrus drove 223 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": " miles = 223\n rate = 0.65\n reimbursement = miles * rate\n print(f\"{reimbursement:.2f}\")\nShell output — 14... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "144.95", "printed": "144.95", "notation": null} |
nlprog_det-setting-0081816 | <|start|><|user|>
A count moves from 400 to 200. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 400
new = 200
change = (new - old) / old * 100 # -50.0
print(round(change))
```
The script prints -50, as expected.
The change is -50%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 400 to 200. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 400\nnew = 200\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nThe script prints -50, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0081817 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
244 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 244
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Python... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "244 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 244\ngroups = 9\nper_group, remaind... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "27 each, 1 left over", "printed": "27 each, 1 left over", "notation": null} |
nlprog_det-setting-0081818 | <|start|><|user|>
What day of the week is April 16, 2025?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2025, 4, 16) # datetime.date(2025, 4, 16)
print(hearing.strftime("%A"))
```
Executing it gives Wednesday.
April 16, 2025 is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is April 16, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2025, 4, 16) # datetime.date(2025, 4, 16)\nprint(hearing.strftime(\"%A\"))\n```\nExecuting it gives Wednesday.\n\nApril 16, 2025 is a... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0081819 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "1923", "printed": "1923", "notation": null} |
nlprog_det-setting-0081820 | <|start|><|user|>
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
Out = 24
$24 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 204\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nOut = 24\n\n$24 is save... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0081821 | 4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?
As Python:
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 45.0
print(f"{each:.2f}")
```
The code prints 45.00.
The share is $45.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0081822 | <|start|><|user|>
Omar was born on February 7, 1991. How old is Omar on May 8, 2020?<|eot|>
<|assistant|>
The age is 29 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Omar was born on February 7, 1991. How old is Omar on May 8, 2020?"
},
{
"role": "assistant",
"content": "The age is 29 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0081823 | A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Programmatically:
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + inte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "38.33", "printed": "38.33", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.