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-0082144 | 744 files go into boxes of 25. How many boxes does that take?
We write it as a program:
```python
import math
files = 744
per_box = 25
boxes = math.ceil(files / per_box) # 30
print(boxes)
```
The program outputs 30.
It takes 30 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0082145 | <|start|><|user|>
Prorate $900 of monthly rent for 14 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 406.4516129032258
print(f"{prorated:.2f}")
```
# stdout: 406.45
The tenant owes $406.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 14 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 14\nprorated = rent * days_occupied / days_in_month # 406.4516129032258\nprint(f\"{prorated:.2f}\")\n```\n#... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "406.45", "printed": "406.45", "notation": null} |
nlprog_det-setting-0082146 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Convert 3,903 CHF to USD at 1 CHF = 1.27 USD.<|eot|>
<|assistant|>
```python
amount = 3903
rate = 1.27
converted = amount * rate # 4956.81
print(f"{converted:.2f}")
```
Result:
4956.81
It converts to 4,956.81 USD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Convert 3,903 CHF to USD at 1 CHF = 1.27 USD."
},
{
"role": "assistant",
"content": "```python\namount = 3903\nrate = 1.27\nconverted = amount * rate # 4956.81\nprint(f\"{converted:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4956.81", "printed": "4956.81", "notation": null} |
nlprog_det-setting-0082147 | <|start|><|system|>
You can call tools. Available tools:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "123", "printed": "123", "notation": null} |
nlprog_det-setting-0082148 | Shipping costs $8 plus $2.50 per pound. What does a 37-pound parcel cost to ship?
In Python:
```python
base = 8
per_pound = 2.5
weight = 37
cost = base + per_pound * weight # 100.5
print(f"{cost:.2f}")
```
Interpreter output — 100.50
Shipping costs $100.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "100.50", "printed": "100.50", "notation": null} |
nlprog_det-setting-0082149 | <|start|><|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 47
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 194.25
pay = regular + overtime # 934.25
print(f"{pay:.2f}")
```
Output of the ru... | chat | [
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 47\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 194.25\npay = regular + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "934.25", "printed": "934.25", "notation": null} |
nlprog_det-setting-0082150 | Monthly rent is $1,200. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent?
The prorated rent is $812.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "812.90", "printed": "812.90", "notation": null} |
nlprog_det-setting-0082151 | <|start|><|user|>
Copies cost $10 plus $0.50 for each page beyond 0. How much for 44 pages?<|eot|>
<|assistant|>
pages = 44
base = 10
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 32.0
print(f"{cost:.2f}")
What it prints — 32.00
The total is $32.00.<|eot|>... | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.50 for each page beyond 0. How much for 44 pages?"
},
{
"role": "assistant",
"content": " pages = 44\n base = 10\n per_page = 0.5\n free_pages = 0\n cost = base + max(0, pages - free_pages) * per_page # 32.0\n print(f\"{cos... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0082152 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 8% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 192.0
payment = (principal + interest) / months # 58... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 8% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0082153 | A recipe for 2 people uses 240 grams of pasta. How many grams are needed for 8 people?
Let the code do the arithmetic:
```python
grams = 240
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 960
print(scaled)
```
The printout reads: 960
960 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "960", "printed": "960", "notation": null} |
nlprog_det-setting-0082154 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 32 copies of a 58-page handout?<|eot|>
<|assistant|>
```python
pages = 58
copies = 32
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 185.60000000000002
print(f"{cost:.2f}")
```
Result:
185.60
Printing costs $185.60.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 32 copies of a 58-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 58\ncopies = 32\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 185.60000000000002\nprint(f\"{cost:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "185.60", "printed": "185.60", "notation": null} |
nlprog_det-setting-0082155 | A clerk's office charges $125 for each filing. Rafael submits 5 filings. What is the total fee?
Python, step by step:
```python
fee = 125
filings = 5
total = fee * filings # 625
print(total)
```
On running, it outputs 625.
$625 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0082157 | 8 claimants share a $960 settlement equally. What is each share?
Python code:
```python
settlement = 960
parties = 8
share = settlement // parties # 120
print(share)
```
The script prints: 120
Each share is $120. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0082158 | <|start|><|user|>
The meal allowance is $69 per day. What is it for 8 days?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 69
total = days * meal_rate # 552
print(total)
```
# execution result: 552
That comes to $552.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $69 per day. What is it for 8 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 69\ntotal = days * meal_rate # 552\nprint(total)\n```\n# execution result: 552\n\nThat comes to $552."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "552", "printed": "552", "notation": null} |
nlprog_det-setting-0082159 | Express 325 hours in days and hours.
The Python version:
```python
hours = 325
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# printed: 13 days and 13 hours
That is 13 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "13 days and 13 hours", "printed": "13 days and 13 hours", "notation": null} |
nlprog_det-setting-0082160 | <|start|><|user|>
The landlord deducts $45 from a $2,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [45]
refund = deposit - sum(deductions) # 2455
print(refund)
```
(Console output: 2455)
The refund is $2,455.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $45 from a $2,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [45]\nrefund = deposit - sum(deductions) # 2455\nprint(refund)\n```\n(Console output: 2455)\n\nThe refund ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2455", "printed": "2455", "notation": null} |
nlprog_det-setting-0082161 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Shipping costs $10 plus $1.50 per pound. What does a 40-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.5
weight = 40
cost = base + per_pound * weight # 70.0
print(f"{cost:.2f}")
```
(Output: 70.00)
The charge is $70.00.<|e... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Shipping costs $10 plus $1.50 per pound. What does a 40-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.5\nweight = 40\ncost = base + per_p... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "70.00", "printed": "70.00", "notation": null} |
nlprog_det-setting-0082162 | <|start|><|user|>
How many whole days and leftover hours are in 246 hours?<|eot|>
<|assistant|>
```python
hours = 246
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The script prints 10 days and 6 hours.
That is 10 days and 6 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 246 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 246\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe script prints 10 days and 6 hours.\n\nThat is 10 days and 6 hou... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10 days and 6 hours", "printed": "10 days and 6 hours", "notation": null} |
nlprog_det-setting-0082163 | <|start|><|user|>
Noor earns a 6% commission on $102,443 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 102443
rate = 6 / 100 # 0.06
commission = sales * rate # 6146.58
print(f"{commission:.2f}")
```
Out — 6146.58
Noor earns $6,146.58.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Noor earns a 6% commission on $102,443 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 102443\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 6146.58\nprint(f\"{commission:.2f}\")\n```\nOut — 6146.58\n\nNoor earns $6... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6146.58", "printed": "6146.58", "notation": null} |
nlprog_det-setting-0082164 | <|start|><|user|>
A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 150
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 900
print(scaled)
```
Out:
900
Use 900 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 2\nneeded_for = 12\nscaled = grams * needed_for // serves # 900\nprint(scaled)\n```\nOut:\n900\n\nUse 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0082165 | 1 books come back 4 days late, at $0.25 a day each. What is the fine?
The fine is $1.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1.00", "printed": "1.00", "notation": null} |
nlprog_det-setting-0082166 | A meeting lasted 1 hours and 33 minutes. How many minutes is that?
A short script:
```python
hours = 1
minutes = 33
total_minutes = hours * 60 + minutes # 93
print(total_minutes)
```
Output: 93
The meeting lasted 93 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0082167 | Monthly rent is $2,400. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?
One way, in code:
```python
rent = 2400
days_in_month = 31
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 1316.1290322580646
print(f"{prorated:.2f}")
```
Program output — 1316.13
The tenant... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1316.13", "printed": "1316.13", "notation": null} |
nlprog_det-setting-0082168 | Attendance was 195 out of 200. Express it as a percent.
Computing it:
```python
present = 195
total = 200
percent = present / total * 100 # 97.5
print(round(percent, 1))
```
(stdout: 97.5)
97.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "97.5", "printed": "97.5", "notation": null} |
nlprog_det-setting-0082169 | <|start|><|user|>
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 104-page copy cost?<|eot|>
<|assistant|>
```python
pages = 104
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 14.4
print(f"{cost:.2f}")
```
Output — 14.40
The total... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 104-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 104\nbase = 5\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "14.40", "printed": "14.40", "notation": null} |
nlprog_det-setting-0082170 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "business_days", "description"... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 276 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0082171 | A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?
In total, $25,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0082172 | A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 114-page copy cost?
```python
pages = 114
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 36.0
print(f"{cost:.2f}")
```
It prints 36.00, as expected.
The copy costs $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0082173 | <|start|><|user|>
A settlement of $520 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 520
parties = 8
share = settlement // parties
print(share)
```
The script prints: 65
Each party receives $65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $520 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 520\nparties = 8\nshare = settlement // parties\nprint(share)\n```\nThe script prints: 65\n\nEach party receives $... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0082176 | Straight-line depreciation: cost $12,000, salvage $2,000, 5 years. How much per year?
Depreciation is $2,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0082178 | <|start|><|user|>
Rania and Kemal share $130 in the ratio 2:3. How much does Rania get?<|eot|>
<|assistant|>
```python
total = 130
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 52
print(share_a)
```
The run gives: 52
Rania gets $52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rania and Kemal share $130 in the ratio 2:3. How much does Rania get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 130\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 52\nprint(share_a)\n```\nThe run gives: 52\n\nRania get... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0082179 | Prorate $1,800 of monthly rent for 21 days of a 31-day month.
As a program:
```python
rent = 1800
days_in_month = 31
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 1219.3548387096773
print(f"{prorated:.2f}")
```
Interpreter output: 1219.35
The tenant owes $1,219.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1219.35", "printed": "1219.35", "notation": null} |
nlprog_det-setting-0082180 | Fixed costs are $2,500. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?
As Python:
```python
import math
fixed = 2500
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
stdout = 250
Break-even is 250 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0082181 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Kemal has 8 documents to file, and each filing costs $75. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 75
filings = 8
total = fee * filings # 600
print(total)
```
Executed, it shows 600.
The total fee is $600.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Kemal has 8 documents to file, and each filing costs $75. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 75\nfilings = 8\ntotal = fee * fi... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0082182 | Notice was given on October 25, 2022. The notice period is 14 days. When does it run out?
Programmatically:
from datetime import date, timedelta
start = date(2022, 10, 25) # datetime.date(2022, 10, 25)
end = start + timedelta(days=14) # datetime.date(2022, 11, 8)
print(end.isoformat())
(stdout: 2022-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2022-11-08", "printed": "2022-11-08", "notation": null} |
nlprog_det-setting-0082183 | A 2% increase is applied to $1,250 monthly rent. What is the new amount?
A Python solution:
```python
rent = 1250
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1275.0
print(f"{new_rent:.2f}")
```
(Execution result: 1275.00)
The new rent is $1,275.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1275.00", "printed": "1275.00", "notation": null} |
nlprog_det-setting-0082184 | Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 16,000 gallons?
Python version:
```python
base = 12
rate = 5.1
used = 16
free = 2
bill = base + rate * max(0, used - free) # 83.39999999999999
print(f"{bill:.2f}")
```
Execution prints 83.40.
The bill is $83.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "83.40", "printed": "83.40", "notation": null} |
nlprog_det-setting-0082185 | Count the days between December 2, 2020 and December 28, 2020.
```python
from datetime import date
first = date(2020, 12, 2) # datetime.date(2020, 12, 2)
second = date(2020, 12, 28) # datetime.date(2020, 12, 28)
print((second - first).days)
```
Output = 26
There are 26 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0082186 | <|start|><|user|>
Starting from $8,000, the team spends $1,776, $3,532, $3,537, $3,351. What remains?<|eot|>
<|assistant|>
-$4,196 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $1,776, $3,532, $3,537, $3,351. What remains?"
},
{
"role": "assistant",
"content": "-$4,196 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "-4196", "printed": "-4196", "notation": null} |
nlprog_det-setting-0082187 | <|start|><|user|>
5 swims at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 5
total = per_session * sessions # 1000
print(total)
```
The interpreter prints: 1000
1000 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 swims at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 5\ntotal = per_session * sessions # 1000\nprint(total)\n```\nThe interpreter prints: 1000\n\n1000 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0082188 | <|start|><|user|>
A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?<|eot|>
<|assistant|>
Fuel costs $49.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?"
},
{
"role": "assistant",
"content": "Fuel costs $49.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "49.44", "printed": "49.44", "notation": null} |
nlprog_det-setting-0082189 | How many minutes pass from 7:56 AM to 10:08 AM on the same day?
In Python:
```python
start = 7 * 60 + 56 # 476
end = 10 * 60 + 8 # 608
print(end - start)
```
(stdout: 132)
It is 132 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "132", "printed": "132", "notation": null} |
nlprog_det-setting-0082190 | <|start|><|user|>
A recipe for 4 people uses 100 grams of flour. How many grams are needed for 10 people?<|eot|>
<|assistant|>
```python
grams = 100
serves = 4
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
(stdout: 250)
Use 250 g of flour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 100 grams of flour. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 100\nserves = 4\nneeded_for = 10\nscaled = grams * needed_for // serves # 250\nprint(scaled)\n```\n(stdout: 250)\n\nUse... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0082191 | A trial runs from December 20, 2022 to January 14, 2023, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2022, 12, 20) # datetime.date(2022, 12, 20)
last = date(2023, 1, 14) # datetime.date(2023, 1, 14)
days = (last - first).days + 1 # 26
print(days)
```
Running ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0082192 | Under a 33% contingency agreement, what fee is owed on a $12,000 award?
In code:
```python
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
```
The code prints: 3960.00
The lawyer's fee comes to $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0082193 | <|start|><|user|>
Which is cheaper per unit: 10 for $8.91 (A) or 24 for $27.36 (B)?<|eot|>
<|assistant|>
```python
pack_a = 8.91 / 10 # 0.891
pack_b = 27.36 / 24 # 1.14
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The program outputs: A
Pack A is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $8.91 (A) or 24 for $27.36 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.91 / 10 # 0.891\npack_b = 27.36 / 24 # 1.14\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nThe program outpu... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0082194 | What is the total rent on a 36-month lease at $1,200 a month?
```python
monthly_rent = 1200
months = 36
total = monthly_rent * months # 43200
print(total)
```
Interpreter output — 43200
The rent over the term is $43,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0082195 | Pack A has 6 items for $7.81. Pack B has 15 items for $22.25. Which has the lower price per item?
As a program:
```python
pack_a = 7.81 / 6 # 1.3016666666666665
pack_b = 22.25 / 15 # 1.4833333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The run gives A.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0082196 | <|start|><|user|>
A $800 security deposit has deductions of $75, $60 and $85. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [75, 60, 85]
refund = deposit - sum(deductions) # 580
print(refund)
```
Console:
580
$580 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $75, $60 and $85. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [75, 60, 85]\nrefund = deposit - sum(deductions) # 580\nprint(refund)\n```\nConsole:\n580\n\n$580 is retu... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "580", "printed": "580", "notation": null} |
nlprog_det-setting-0082197 | Starting with 1838 batteries and using 33 per day, how many remain after 13 days?
Python makes this quick:
```python
stock = 1838
per_day = 33
days = 13
left = stock - per_day * days # 1409
print(left)
```
Running it prints 1409.
1409 batteries are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1409", "printed": "1409", "notation": null} |
nlprog_det-setting-0082198 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
`... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 8000\ncosts = 4000\nprofit = re... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0082199 | 176 copies of a 33-page packet are printed at $0.10 per page. What is the cost?
Python makes this quick:
```python
pages = 33
copies = 176
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 580.8000000000001
print(f"{cost:.2f}")
```
Output = 580.80
The job costs $580.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "580.80", "printed": "580.80", "notation": null} |
nlprog_det-setting-0082200 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 2 books that are 3 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 3
books = 2
fine = per_day * days_late * books # 1.5
print(f"{fine:.2f}")
```
Run it and it prints 1.50.
$1.50 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 2 books that are 3 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 3\nbooks = 2\nfine = per_day * days_late * books # 1.5\nprint(f\"{fine:.2f}\")\n```\nRun ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1.50", "printed": "1.50", "notation": null} |
nlprog_det-setting-0082201 | The bridge was finished in 2012. How many years had passed by 2035?
We write it as a program:
```python
start_year = 2012
end_year = 2035
print(end_year - start_year)
```
Python prints: 23
23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0082202 | <|start|><|user|>
To read 304 pages in 8 days, how many pages per day are needed?<|eot|>
<|assistant|>
38 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 304 pages in 8 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "38 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0082203 | Count 90 days forward from October 2, 2021. What date is that?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2021, 10, 2) # datetime.date(2021, 10, 2)
end = start + timedelta(days=90) # datetime.date(2021, 12, 31)
print(end.isoformat())
```
The script prints: 2021-12-31
That ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2021-12-31", "printed": "2021-12-31", "notation": null} |
nlprog_det-setting-0082204 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "get_weather", "description": "Get the weather fo... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"nam... | nlprog_det | setting | original | null | deterministic | [] | [] | 352 | {"gold": "32400", "printed": "32400", "notation": null} |
nlprog_det-setting-0082205 | <|start|><|user|>
At a 8% tax rate, what is the tax on $400.69?<|eot|>
<|assistant|>
```python
price = 400.69
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 32.0552
print(f"{tax:.2f}")
```
The program prints: 32.06
The tax is $32.06.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 8% tax rate, what is the tax on $400.69?"
},
{
"role": "assistant",
"content": "```python\nprice = 400.69\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 32.0552\nprint(f\"{tax:.2f}\")\n```\nThe program prints: 32.06\n\nThe tax is $32.06."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "32.06", "printed": "32.06", "notation": null} |
nlprog_det-setting-0082206 | A measure needs at least 75% of 126 votes. How many votes is that, rounded up?
A Python solution:
```python
import math
voters = 126
needed = math.ceil(voters * 75 / 100) # 95
print(needed)
```
The program prints 95, as expected.
95 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0082207 | A settlement of $960 is split equally among 5 parties. How much does each party receive?
Python version:
```python
settlement = 960
parties = 5
share = settlement // parties
print(share)
```
Run output: 192
Each party receives $192. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0082208 | Divide 152 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python code:
```python
total = 152
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# execution result: 21 each, 5 left over
The answer: 21 eac... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "21 each, 5 left over", "printed": "21 each, 5 left over", "notation": null} |
nlprog_det-setting-0082209 | <|start|><|user|>
A car travels 86 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 86
hours = 2
speed = distance / hours # 43.0
print(round(speed))
```
Result — 43
It averages 43 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 86 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 86\nhours = 2\nspeed = distance / hours # 43.0\nprint(round(speed))\n```\nResult — 43\n\nIt averages 43 miles per hour."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0082210 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Count the days between March 14, 2020 and February 18, 2021.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 3, 14) # datetime.date(2020, 3, 14)
second = date(2021, 2, 18) # datetime.date(2021, 2, 18)
print((second - first).days)
`... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Count the days between March 14, 2020 and February 18, 2021."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 3, 14) # datetime.date(2020, 3, 14)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "341", "printed": "341", "notation": null} |
nlprog_det-setting-0082211 | <|start|><|user|>
Goods bought on March 26, 2026 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2026, 3, 26)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.i... | chat | [
{
"role": "user",
"content": "Goods bought on March 26, 2026 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2026, 3, 26)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2027-09-26", "printed": "2027-09-26", "notation": null} |
nlprog_det-setting-0082212 | A $800 security deposit has deductions of $200. How much is refunded?
```python
deposit = 800
deductions = [200]
refund = deposit - sum(deductions) # 600
print(refund)
```
Python prints 600.
$600 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0082213 | The paralegal logged 1.5 hours at a rate of $350. How much is billed?
Here is the program.
```python
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
```
Run output: 525.00
The bill is $525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0082214 | 192 copies of a 16-page packet are printed at $0.08 per page. What is the cost?
One way, in code:
```python
pages = 16
copies = 192
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 245.76
print(f"{cost:.2f}")
```
The run gives: 245.76
The job costs $245.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "245.76", "printed": "245.76", "notation": null} |
nlprog_det-setting-0082216 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
How many days are there from April 11, 2022 to September 12, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 4, 11) # datetime.date(2022, 4, 11)
second = date(2022, 9, 12) # datetime.date(2022, 9, 12)
print((second - f... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "How many days are there from April 11, 2022 to September 12, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 4, 11) # datetime.date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0082217 | With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.
Python makes this quick:
```python
revenue = 37000
costs = 36000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Interpreter output — 2.7
The margin is 2.7%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0082218 | <|start|><|user|>
Scale 240 g of rice from 8 servings to 6 servings.<|eot|>
<|assistant|>
```python
grams = 240
serves = 8
needed_for = 6
scaled = grams * needed_for // serves # 180
print(scaled)
```
On running, it outputs: 180
Use 180 g of rice.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 240 g of rice from 8 servings to 6 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 8\nneeded_for = 6\nscaled = grams * needed_for // serves # 180\nprint(scaled)\n```\nOn running, it outputs: 180\n\nUse 180 g of rice."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0082219 | A party has 28 days to respond to a motion served on November 19, 2026, with 3 days added because service was by mail. When is the response due?
Python:
```python
from datetime import date, timedelta
served = date(2026, 11, 19) # datetime.date(2026, 11, 19)
response_days = 28
mail_days = 3
due = served + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2026-12-20", "printed": "2026-12-20", "notation": null} |
nlprog_det-setting-0082220 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after March 25, 2023 up to and including April 3, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 3, 25)
end = date(2023, 4, 3)
count = 0
for k in range(1, (end - ... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 25, 2023 up to and including April 3, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta... | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0082221 | How many minutes pass from 8:15 AM to 2:09 PM on the same day?
Computation in Python:
start = 8 * 60 + 15 # 495
end = 14 * 60 + 9 # 849
print(end - start)
Output of the run: 354
It is 354 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "354", "printed": "354", "notation": null} |
nlprog_det-setting-0082222 | <|start|><|system|>
Functions:
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Express 68 hours in days and hours.<|eo... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "2 days and 20 hours", "printed": "2 days and 20 hours", "notation": null} |
nlprog_det-setting-0082223 | Starting with 1790 mugs and using 31 per day, how many remain after 7 days?
Python, step by step:
stock = 1790
per_day = 31
days = 7
left = stock - per_day * days # 1573
print(left)
What it prints: 1573
1573 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1573", "printed": "1573", "notation": null} |
nlprog_det-setting-0082224 | How many of 217 votes make 75% (round up)?
Program:
```python
import math
voters = 217
needed = math.ceil(voters * 75 / 100) # 163
print(needed)
```
This prints 163.
At least 163 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0082225 | <|start|><|user|>
A pack of 10 folders sells for $480. What does each cost?<|eot|>
<|assistant|>
```python
total = 480
count = 10
per_item = total // count # 48
print(per_item)
```
Python prints: 48
Each one costs $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 10 folders sells for $480. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 480\ncount = 10\nper_item = total // count # 48\nprint(per_item)\n```\nPython prints: 48\n\nEach one costs $48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0082226 | Hana's scores were 90, 60, 84 and 94. What is the average score?
Program:
scores = [90, 60, 84, 94]
average = sum(scores) // len(scores) # 82
print(average)
(Execution result: 82)
The average score is 82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0082227 | <|start|><|user|>
Goran lends $12,000 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 12000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
Out:
2880.00
The interest is $2,880.00.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Goran lends $12,000 at 4% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 12000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 2880.0\nprint(f\"{interest:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0082228 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A hearing is set for December 7, 2015. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2015, 12, 7) # datetime.date(2015, 12, 7)
print(hearing.strftime("%A"))
```
stdout — Monday
De... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A hearing is set for December 7, 2015. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2015, 12, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0082229 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after October 16, 2027 through November 1, 2027?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2027, 10, 16)
end = date(2027, 11, 1)
count = 0
for k in range(1, (end - start).days + 1):
... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 16, 2027 through November 1, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2027, 10, 16)\n end = date(2027, 11, 1)\n c... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0082230 | Convert 10 °C to Fahrenheit.
A Python solution:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
Execution prints 50, as expected.
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0082231 | The landlord deducts $60 from a $800 deposit. What is returned to the tenant?
$740 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "740", "printed": "740", "notation": null} |
nlprog_det-setting-0082232 | Kofi was born on December 28, 2000. How old is Kofi on June 13, 2025?
```python
from datetime import date
born = date(2000, 12, 28) # datetime.date(2000, 12, 28)
on = date(2025, 6, 13) # datetime.date(2025, 6, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 24
print(age)
```
On runni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0082233 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|us... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0082234 | A $1,000 security deposit has deductions of $200, $60 and $75. How much is refunded?
Let the code do the arithmetic:
```python
deposit = 1000
deductions = [200, 60, 75]
refund = deposit - sum(deductions) # 665
print(refund)
```
Printed = 665
$665 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "665", "printed": "665", "notation": null} |
nlprog_det-setting-0082235 | <|start|><|user|>
A settlement of $18,000 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 4
share = settlement // parties # 4500
print(share)
```
Run output: 4500
Each party receives $4,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $18,000 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 4\nshare = settlement // parties # 4500\nprint(share)\n```\nRun output: 4500\n\nEach party re... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0082236 | <|start|><|user|>
A pack of 25 keyboards sells for $300. What does each cost?<|eot|>
<|assistant|>
```python
total = 300
count = 25
per_item = total // count # 12
print(per_item)
```
# execution result: 12
The unit price is $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 25 keyboards sells for $300. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 300\ncount = 25\nper_item = total // count # 12\nprint(per_item)\n```\n# execution result: 12\n\nThe unit price is $12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0082237 | How much is a $79 daily meal allowance over 5 days?
Here's the code.
```python
days = 5
meal_rate = 79
total = days * meal_rate # 395
print(total)
```
(Result: 395)
The allowance is $395. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "395", "printed": "395", "notation": null} |
nlprog_det-setting-0082238 | <|start|><|user|>
Express 242 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 242
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives 10 days and 2 hours, as expected.
242 hours is 10 days and 2 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 242 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 242\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe run gives 10 days and 2 hours, as expected.\n\n242 hours is 10 days and 2 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "10 days and 2 hours", "printed": "10 days and 2 hours", "notation": null} |
nlprog_det-setting-0082239 | <|start|><|user|>
Rent of $1,250 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1275.0
print(f"{new_rent:.2f}")
```
The script prints: 1275.00
The new rent is $1,275.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1275.0\nprint(f\"{new_rent:.2f}\")\n```\nThe script prints: 1275.00\n\nThe new rent is $1,... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1275.00", "printed": "1275.00", "notation": null} |
nlprog_det-setting-0082240 | Walls total 1056 sq ft and each can covers 250 sq ft. How many cans should be bought?
We can compute it in Python.
```python
import math
area = 1056
coverage = 250
cans = math.ceil(area / coverage) # 5
print(cans)
```
(Console output: 5)
Buy 5 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0082241 | Divide 199 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
```python
total = 199
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints: 24 each, 7 left over
24 each, 7 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "24 each, 7 left over", "printed": "24 each, 7 left over", "notation": null} |
nlprog_det-setting-0082242 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python", "description": "Runs a short Python snippet and returns wh... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python\", \"d... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "5.31", "printed": "5.31", "notation": null} |
nlprog_det-setting-0082243 | 3 friends split a $150 bill plus a 20% tip evenly. How much does each pay?
As a program:
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 60.0
print(f"{each:.2f}")
```
(Output: 60.00)
Each person pays $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0082244 | A recipe for 6 people uses 200 grams of oats. How many grams are needed for 12 people?
Set it up in Python:
```python
grams = 200
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 400
print(scaled)
```
(Execution result: 400)
Use 400 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0082246 | Scale 200 g of lentils from 8 servings to 4 servings.
Python, step by step:
```python
grams = 200
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 100
print(scaled)
```
Running it prints 100.
Use 100 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0082247 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_uni... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\... | nlprog_det | setting | original | null | deterministic | [] | [] | 348 | {"gold": "12.60", "printed": "12.60", "notation": null} |
nlprog_det-setting-0082248 | <|start|><|system|>
You may call the tools below.
[{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
3 clients win $96... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0082249 | <|start|><|user|>
A 45-day notice period begins on January 27, 2026. On what date does it end?<|eot|>
<|assistant|>
The period ends on March 13, 2026.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 45-day notice period begins on January 27, 2026. On what date does it end?"
},
{
"role": "assistant",
"content": "The period ends on March 13, 2026."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2026-03-13", "printed": "2026-03-13", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.