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-0047750 | <|start|><|user|>
Prorate $1,800 of monthly rent for 22 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 31
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 1277.4193548387098
print(f"{prorated:.2f}")
```
stdout = 1277.42
The tenant owes $1,277.42.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 22 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 1277.4193548387098\nprint(f\"{prorated:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1277.42", "printed": "1277.42", "notation": null} |
nlprog_det-setting-0047751 | <|start|><|user|>
At 2% a month (simple), what interest builds on $2,500 over 5 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 250.0
print(f"{interest:.2f}")
```
This prints 250.00, as expected.
$250.00 accrues.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $2,500 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 5\ninterest = balance * monthly_rate * months # 250.0\nprint(f\"{interest:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0047752 | <|start|><|user|>
Grace was born on September 10, 1992. How old is Grace on August 23, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1992, 9, 10) # datetime.date(1992, 9, 10)
on = date(2021, 8, 23) # datetime.date(2021, 8, 23)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | chat | [
{
"role": "user",
"content": "Grace was born on September 10, 1992. How old is Grace on August 23, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1992, 9, 10) # datetime.date(1992, 9, 10)\non = date(2021, 8, 23) # datetime.date(2021, 8, 23)\nage ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0047753 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
At $0.70 per mile, ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "137.20", "printed": "137.20", "notation": null} |
nlprog_det-setting-0047754 | <|start|><|user|>
Ivan earns a 5% commission on $59,936 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 59936
rate = 5 / 100 # 0.05
commission = sales * rate # 2996.8
print(f"{commission:.2f}")
```
Out:
2996.80
Ivan earns $2,996.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ivan earns a 5% commission on $59,936 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 59936\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 2996.8\nprint(f\"{commission:.2f}\")\n```\nOut:\n2996.80\n\nIvan earns $2,99... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2996.80", "printed": "2996.80", "notation": null} |
nlprog_det-setting-0047755 | <|start|><|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 1169.8585600000001
print(f"{value:.2f}")
```
Output of the run: 1169.86
The balance is $1,169.86.<|eo... | chat | [
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = principal * (1 + rate) ** years # 1169.8585600000001\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1169.86", "printed": "1169.86", "notation": null} |
nlprog_det-setting-0047756 | A 132-page report must be reviewed in 3 days. How many pages a day is that, evenly?
Python makes this quick:
pages = 132
days = 3
per_day = pages // days # 44
print(per_day)
(Printed: 44)
That is 44 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0047757 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 41
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 37.5
pay = regular + overtime # 1037.5
print(f"{pay:.2f}")
```
Output of the run... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 37.5\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1037.50", "printed": "1037.50", "notation": null} |
nlprog_det-setting-0047758 | The bridge was finished in 2022. How many years had passed by 2040?
Written as code:
```python
start_year = 2022
end_year = 2040
print(end_year - start_year)
```
Executing it gives 18, as expected.
18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0047759 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Printing costs 10 cents a page. What does it cost to print 102 copies of a 8-page handout?<|eot|>
<|assistant|>
```python
pages = 8
copies = 102
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 81.60000000000001
print(f"{cost:.2f}")
```
(Execution... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 102 copies of a 8-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 8\ncopies = 102\ncost_per_page = 0.1\ncost =... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "81.60", "printed": "81.60", "notation": null} |
nlprog_det-setting-0047761 | <|start|><|user|>
Rosa earns a 10% commission on $82,979 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 82979
rate = 10 / 100 # 0.1
commission = sales * rate # 8297.9
print(f"{commission:.2f}")
```
The run gives 8297.90, as expected.
Rosa earns $8,297.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rosa earns a 10% commission on $82,979 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 82979\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 8297.9\nprint(f\"{commission:.2f}\")\n```\nThe run gives 8297.90, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "8297.90", "printed": "8297.90", "notation": null} |
nlprog_det-setting-0047762 | <|start|><|user|>
Each of Kemal's walks burns 150 calories. How many calories over 7 walks?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 7
total = per_session * sessions # 1050
print(total)
```
It prints: 1050
1050 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Kemal's walks burns 150 calories. How many calories over 7 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 7\ntotal = per_session * sessions # 1050\nprint(total)\n```\nIt prints: 1050\n\n1050 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0047763 | To read 96 pages in 8 days, how many pages per day are needed?
Here is a short program for it.
```python
pages = 96
days = 8
per_day = pages // days # 12
print(per_day)
```
Execution prints 12, as expected.
That is 12 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0047764 | <|start|><|user|>
3 boxes hold 25 labels each. After 17 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 3
per_box = 25
given_away = 17
left = boxes * per_box - given_away # 58
print(left)
Out: 58
That leaves 58 labels.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 25 labels each. After 17 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 3\n per_box = 25\n given_away = 17\n left = boxes * per_box - given_away # 58\n print(left)\nOut: 58\n\nThat leaves 58 labels."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0047765 | 75 of 80 members attended. What percent attended?
Here is the program.
```python
present = 75
total = 80
percent = present / total * 100 # 93.75
print(round(percent, 1))
```
Console:
93.8
Attendance was 93.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "93.8", "printed": "93.8", "notation": null} |
nlprog_det-setting-0047767 | After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
We write it as a program:
```python
award = 96000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
```
What it prints — 22400.00
Each client g... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "22400.00", "printed": "22400.00", "notation": null} |
nlprog_det-setting-0047768 | <|start|><|user|>
Which is cheaper per unit: 8 for $10.95 (A) or 30 for $20.02 (B)?<|eot|>
<|assistant|>
```python
pack_a = 10.95 / 8
pack_b = 20.02 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Out = B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $10.95 (A) or 30 for $20.02 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.95 / 8\npack_b = 20.02 / 30\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nOut = B\n\nB has the lower unit price."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047769 | <|start|><|user|>
A recipe for 8 people uses 100 grams of rice. How many grams are needed for 10 people?<|eot|>
<|assistant|>
```python
grams = 100
serves = 8
needed_for = 10
scaled = grams * needed_for // serves # 125
print(scaled)
```
Output: 125
Use 125 g of rice.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 8 people uses 100 grams of rice. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 100\nserves = 8\nneeded_for = 10\nscaled = grams * needed_for // serves # 125\nprint(scaled)\n```\nOutput: 125\n\nUse 12... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0047770 | One can of paint covers 350 square feet. How many cans are needed for 1131 square feet of wall?
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0047771 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 8 thousand gallons?
Computing it:
```python
base = 12
rate = 4.2
used = 8
free = 3
bill = base + rate * max(0, used - free) # 33.0
print(f"{bill:.2f}")
```
Out:
33.00
The bill is $33.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0047772 | What average speed covers 104 miles in 1 hours?
Python code:
```python
distance = 104
hours = 1
speed = distance / hours
print(round(speed))
```
The script prints: 104
The average speed is 104 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0047773 | One can of paint covers 400 square feet. How many cans are needed for 1384 square feet of wall?
Computation in Python:
```python
import math
area = 1384
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
It outputs: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0047775 | Flooring at $6/sq ft for a 11 ft × 13 ft room costs how much? The flooring costs $858. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "858", "printed": "858", "notation": null} |
nlprog_det-setting-0047776 | Starting with 1153 toner kits and using 8 per day, how many remain after 20 days?
```python
stock = 1153
per_day = 8
days = 20
left = stock - per_day * days # 993
print(left)
```
It prints: 993
993 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "993", "printed": "993", "notation": null} |
nlprog_det-setting-0047778 | The paralegal logged 10.5 hours at a rate of $410. How much is billed?
hours = 10.5
rate = 410
bill = hours * rate # 4305.0
print(f"{bill:.2f}")
Program output — 4305.00
The bill is $4,305.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "4305.00", "printed": "4305.00", "notation": null} |
nlprog_det-setting-0047779 | Revenue is $9,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
A Python solution:
```python
revenue = 9000
costs = 8000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
# printed: 11.1
The margin is 11.1%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0047780 | <|start|><|user|>
Count 45 days forward from August 22, 2027. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 8, 22) # datetime.date(2027, 8, 22)
end = start + timedelta(days=45) # datetime.date(2027, 10, 6)
print(end.isoformat())
```
stdout: 2027-10-06
The p... | chat | [
{
"role": "user",
"content": "Count 45 days forward from August 22, 2027. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 8, 22) # datetime.date(2027, 8, 22)\nend = start + timedelta(days=45) # datetime.date(2027, 10... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2027-10-06", "printed": "2027-10-06", "notation": null} |
nlprog_det-setting-0047781 | The landlord deducts $200, $75 and $45 from a $2,500 deposit. What is returned to the tenant?
Python code:
```python
deposit = 2500
deductions = [200, 75, 45]
refund = deposit - sum(deductions) # 2180
print(refund)
```
What it prints — 2180
The refund is $2,180. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2180", "printed": "2180", "notation": null} |
nlprog_det-setting-0047782 | <|start|><|user|>
A trial runs from August 28, 2022 to September 13, 2022, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 8, 28) # datetime.date(2022, 8, 28)
last = date(2022, 9, 13) # datetime.date(2022, 9, 13)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "A trial runs from August 28, 2022 to September 13, 2022, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 8, 28) # datetime.date(2022, 8, 28)\nlast = date(2022, 9, 13... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0047783 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A pack of 6 folders sells for $17... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0047784 | <|start|><|system|>
Tools you may use:
{"name": "py_exec", "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"]}}
{"name": "convert_units", "description... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 323 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0047786 | A bicycle helmet costs $75. It is 30% off. What is the sale price?
In Python:
```python
price = 75
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 52.5
print(f"{sale_price:.2f}")
```
Run output: 52.50
The sale price is $52.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "52.50", "printed": "52.50", "notation": null} |
nlprog_det-setting-0047787 | <|start|><|user|>
At an exchange rate of 1.35 USD per GBP, how many USD is 7,557 GBP?<|eot|>
<|assistant|>
```python
amount = 7557
rate = 1.35
converted = amount * rate # 10201.95
print(f"{converted:.2f}")
```
On running, it outputs 10201.95.
It converts to 10,201.95 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.35 USD per GBP, how many USD is 7,557 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 7557\nrate = 1.35\nconverted = amount * rate # 10201.95\nprint(f\"{converted:.2f}\")\n```\nOn running, it outputs 10201.95.\n\nIt converts... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "10201.95", "printed": "10201.95", "notation": null} |
nlprog_det-setting-0047788 | What commission does Delia make on $50,471 in sales at 4%?
Written as code:
```python
sales = 50471
rate = 4 / 100 # 0.04
commission = sales * rate # 2018.8400000000001
print(f"{commission:.2f}")
```
# result: 2018.84
The commission is $2,018.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2018.84", "printed": "2018.84", "notation": null} |
nlprog_det-setting-0047789 | <|start|><|user|>
8 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $10,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $10,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0047790 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Convert 8,501 GBP to USD at 1 GBP = 1.12 USD.<|eot|>
<|assistant|>
```python
amount = 8501
rate = 1.12
converted = amount * rate # 9521.12
print(f"{converted:.2f}")
```
(Printed result: 9521.12)
That is 9,521.12 USD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Convert 8,501 GBP to USD at 1 GBP = 1.12 USD."
},
{
"role": "assistant",
"content": "```python\namount = 8501\nrate = 1.12\nconverted = amount * rate # 9521.12\nprint(f\"{converted:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "9521.12", "printed": "9521.12", "notation": null} |
nlprog_det-setting-0047791 | What average speed covers 182 miles in 2 hours?
We can compute it in Python.
```python
distance = 182
hours = 2
speed = distance / hours # 91.0
print(round(speed))
```
# output: 91
The average speed is 91 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0047792 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "py_exec", "description": "Python ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\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 | [] | [] | 291 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0047793 | A hearing lasted 5 hours and 17 minutes. How many minutes is that?
One way, in code:
```python
hours = 5
minutes = 17
total_minutes = hours * 60 + minutes # 317
print(total_minutes)
```
Console:
317
That is 317 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "317", "printed": "317", "notation": null} |
nlprog_det-setting-0047794 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after August 8, 2028 up to and including August 29, 2028?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2028, 8, 8)
end = date(2028, 8, 29)
count = 0
for k in range(1, (end - start).day... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after August 8, 2028 up to and including August 29, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0047795 | <|start|><|user|>
Emeka earns a 8% commission on $19,553 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 19553
rate = 8 / 100 # 0.08
commission = sales * rate # 1564.24
print(f"{commission:.2f}")
```
(Result: 1564.24)
The commission is $1,564.24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Emeka earns a 8% commission on $19,553 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 19553\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 1564.24\nprint(f\"{commission:.2f}\")\n```\n(Result: 1564.24)\n\nThe commis... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1564.24", "printed": "1564.24", "notation": null} |
nlprog_det-setting-0047796 | <|start|><|user|>
3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 3 # 7500.0
print(f"{per_client:.2f}")
```
Output = 7500.... | chat | [
{
"role": "user",
"content": "3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_client = remaining /... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0047798 | A recipe for 2 people uses 200 grams of rice. How many grams are needed for 10 people?
As a program:
```python
grams = 200
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 1000
print(scaled)
```
# program output: 1000
1000 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0047799 | <|start|><|user|>
A 21-day notice period begins on May 23, 2028. On what date does it end?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2028, 5, 23) # datetime.date(2028, 5, 23)
end = start + timedelta(days=21) # datetime.date(2028, 6, 13)
print(end.isoformat())
It outputs: 2... | chat | [
{
"role": "user",
"content": "A 21-day notice period begins on May 23, 2028. On what date does it end?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2028, 5, 23) # datetime.date(2028, 5, 23)\n end = start + timedelta(days=21) # datetime.da... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2028-06-13", "printed": "2028-06-13", "notation": null} |
nlprog_det-setting-0047800 | Goods bought on January 15, 2024 carry a 12-month warranty. When does it expire?
Python version:
```python
from datetime import date
start = date(2024, 1, 15)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Exec... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2025-01-15", "printed": "2025-01-15", "notation": null} |
nlprog_det-setting-0047801 | To read 676 pages in 13 days, how many pages per day are needed?
In code:
pages = 676
days = 13
per_day = pages // days # 52
print(per_day)
It outputs 52.
52 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0047802 | A 250-mile drive at a steady 40 mph takes how many minutes?
We can compute it in Python.
```python
distance = 250
speed = 40
minutes = distance / speed * 60 # 375.0
print(round(minutes))
```
This prints 375, as expected.
375 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0047803 | <|start|><|system|>
Tool definitions:
{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
At a 4% tax r... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "31.39", "printed": "31.39", "notation": null} |
nlprog_det-setting-0047804 | <|start|><|user|>
At $17.51 an hour, what does 38 hours of work pay?<|eot|>
<|assistant|>
The pay is $665.38.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $17.51 an hour, what does 38 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $665.38."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "665.38", "printed": "665.38", "notation": null} |
nlprog_det-setting-0047805 | <|start|><|system|>
Tool definitions:
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Monthly: $9. Annual: $84. What is save... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0047806 | After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?
We can compute it in Python.
```python
grant = 48000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 7000.0
print(f"{each:.2f}")
```
Executed, it shows: 7000.00
Each installment is $7,00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0047807 | <|start|><|user|>
How many minutes pass from 8:47 AM to 10:41 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 47 # 527
end = 10 * 60 + 41 # 641
print(end - start)
```
This prints 114.
114 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:47 AM to 10:41 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 47 # 527\nend = 10 * 60 + 41 # 641\nprint(end - start)\n```\nThis prints 114.\n\n114 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0047808 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"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",... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 428 | {"gold": "661", "printed": "661", "notation": null} |
nlprog_det-setting-0047809 | <|start|><|user|>
138 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 138
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It outputs 34 each, 2 left over.
The answer: 34 ... | chat | [
{
"role": "user",
"content": "138 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 138\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "34 each, 2 left over", "printed": "34 each, 2 left over", "notation": null} |
nlprog_det-setting-0047810 | Split $2,156 between Oskar and Ulla in the ratio 3 to 4. What is Oskar's share?
We write it as a program:
```python
total = 2156
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 924
print(share_a)
```
# run result: 924
Oskar gets $924. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "924", "printed": "924", "notation": null} |
nlprog_det-setting-0047811 | Printing costs 15 cents a page. What does it cost to print 106 copies of a 19-page handout?
Python:
```python
pages = 19
copies = 106
cost_per_page = 0.15
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
It outputs 302.10.
Printing costs $302.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "302.10", "printed": "302.10", "notation": null} |
nlprog_det-setting-0047812 | <|start|><|user|>
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
# stdout: 11.1
Profit is 11.... | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 4500\ncosts = 4000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 11.11111111111111... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0047813 | <|start|><|system|>
You can call tools. Available 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 for a city.... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"get... | nlprog_det | setting | original | null | deterministic | [] | [] | 380 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0047814 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A kettle costs $45. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 31.499999999999996
print(f"{sale_price:.2f}")
```
On running, it outputs: 31.50
... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A kettle costs $45. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discou... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "31.50", "printed": "31.50", "notation": null} |
nlprog_det-setting-0047815 | 11 boxes hold 6 hard drives each. After 15 are handed out, how many are left?
That leaves 51 hard drives. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0047816 | A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?
Let the code do the arithmetic:
```python
monthly_rent = 975
months = 24
total = monthly_rent * months # 23400
print(total)
```
Run result = 23400
In total, $23,400 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "23400", "printed": "23400", "notation": null} |
nlprog_det-setting-0047817 | A clerk's office charges $50 for each filing. Lena submits 2 filings. What is the total fee?
Here is the program.
```python
fee = 50
filings = 2
total = fee * filings
print(total)
```
# console output: 100
The filings cost $100 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0047818 | <|start|><|user|>
A service costs $19 a month or $180 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 180
savings = monthly * 12 - yearly # 48
print(savings)
```
When run, it prints 48.
The annual plan saves $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $180 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 180\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nWhen run, it prints 48.... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0047820 | 8 hours of work at $350 an hour: what is the total charge?
Coded up:
```python
hours = 8
rate = 350
bill = hours * rate # 2800
print(f"{bill:.2f}")
```
Out = 2800.00
The bill is $2,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0047822 | Which is cheaper per unit: 12 for $11.14 (A) or 18 for $11.90 (B)?
As a program:
pack_a = 11.14 / 12 # 0.9283333333333333
pack_b = 11.9 / 18 # 0.6611111111111111
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
The run gives: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047823 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after January 7, 2023 up to and including January 22, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 1, 7)
end = date(2023, 1, 22)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after January 7, 2023 up to and including January 22, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 7)\nend = date(2023, 1, 22)\ncount = 0\nfor k in range... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0047824 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Tariq was born on October 11, 1950. How old is Tariq on February 11, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1950, 10, 11)
on = date(2027, 2, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Tariq was born on October 11, 1950. How old is Tariq on February 11, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1950, 10, 11)\non = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0047826 | <|start|><|user|>
How many units at $20 each (variable cost $12) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 9000
price = 20
variable = 12
units = math.ceil(fixed / (price - variable))
print(units)
Output — 1125
1125 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $12) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 9000\n price = 20\n variable = 12\n units = math.ceil(fixed / (price - variable))\n print(units)\nOutput — 112... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0047827 | A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?
Script:
```python
monthly_rent = 850
months = 6
total = monthly_rent * months # 5100
print(total)
```
Result — 5100
In total, $5,100 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0047828 | <|start|><|user|>
A 37 lb package ships at $5 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
The charge is $49.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 37 lb package ships at $5 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "The charge is $49.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "49.40", "printed": "49.40", "notation": null} |
nlprog_det-setting-0047829 | <|start|><|user|>
How many days are there from February 24, 2027 to April 13, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 2, 24) # datetime.date(2027, 2, 24)
second = date(2027, 4, 13) # datetime.date(2027, 4, 13)
print((second - first).days)
```
When run, it prints: 48
It is 48... | chat | [
{
"role": "user",
"content": "How many days are there from February 24, 2027 to April 13, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 2, 24) # datetime.date(2027, 2, 24)\nsecond = date(2027, 4, 13) # datetime.date(2027, 4, 13)\nprint((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0047830 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"na... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 280 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0047831 | <|start|><|user|>
A trial runs from March 27, 2018 to April 10, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
from datetime import date
first = date(2018, 3, 27) # datetime.date(2018, 3, 27)
last = date(2018, 4, 10) # datetime.date(2018, 4, 10)
days = (last - first).da... | chat | [
{
"role": "user",
"content": "A trial runs from March 27, 2018 to April 10, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2018, 3, 27) # datetime.date(2018, 3, 27)\n last = date(2018, 4, 10) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0047832 | What day of the week is February 8, 2008?
Here is the program.
```python
from datetime import date
hearing = date(2008, 2, 8) # datetime.date(2008, 2, 8)
print(hearing.strftime("%A"))
```
That prints Friday.
February 8, 2008 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0047833 | <|start|><|user|>
A party has 14 days to respond to a motion served on May 24, 2026, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 5, 24) # datetime.date(2026, 5, 24)
response_days = 14
mail_days = 3
due ... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on May 24, 2026, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2026, 5, 24) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2026-06-10", "printed": "2026-06-10", "notation": null} |
nlprog_det-setting-0047834 | <|start|><|user|>
Omar earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?<|eot|>
<|assistant|>
rate = 20.0
hours = 53
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 390.0
pay = regular + overtime # 1190.0
print(f"{pay:.2f}")
Run... | chat | [
{
"role": "user",
"content": "Omar earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?"
},
{
"role": "assistant",
"content": " rate = 20.0\n hours = 53\n regular = 40 * rate # 800.0\n overtime = (hours - 40) * rate * 1.5 # 390.0\n pay ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1190.00", "printed": "1190.00", "notation": null} |
nlprog_det-setting-0047835 | Find the mean of these test scores: 66, 69, 94, 62, 86 and 67.
In code:
```python
scores = [66, 69, 94, 62, 86, 67]
average = sum(scores) // len(scores) # 74
print(average)
```
# printed: 74
The mean is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0047836 | At a 8% tax rate, what is the tax on $813.72?
```python
price = 813.72
tax_rate = 8 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
stdout:
65.10
$65.10 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "65.10", "printed": "65.10", "notation": null} |
nlprog_det-setting-0047837 | 1 books come back 8 days late, at $0.50 a day each. What is the fine?
Computation in Python:
```python
per_day = 0.5
days_late = 8
books = 1
fine = per_day * days_late * books # 4.0
print(f"{fine:.2f}")
```
Interpreter output — 4.00
The fine is $4.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "4.00", "printed": "4.00", "notation": null} |
nlprog_det-setting-0047838 | Zoe drove 197 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
Python makes this quick:
```python
miles = 197
rate = 0.7
reimbursement = miles * rate # 137.89999999999998
print(f"{reimbursement:.2f}")
```
# stdout: 137.90
The reimbursement is $137.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "137.90", "printed": "137.90", "notation": null} |
nlprog_det-setting-0047839 | A library charges $0.10 per book per day late. What is the fine for 4 books that are 29 days late?
The fine is $11.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "11.60", "printed": "11.60", "notation": null} |
nlprog_det-setting-0047840 | <|start|><|user|>
How many whole days and leftover hours are in 384 hours?<|eot|>
<|assistant|>
```python
hours = 384
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
When run, it prints 16 days and 0 hours.
384 hours is 16 days and 0 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 384 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 384\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhen run, it prints 16 days and 0 hours.\n\n384 hours is 16 days an... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "16 days and 0 hours", "printed": "16 days and 0 hours", "notation": null} |
nlprog_det-setting-0047841 | A pack of 5 paper reams sells for $270. What does each cost?
Here is the program.
```python
total = 270
count = 5
per_item = total // count # 54
print(per_item)
```
What it prints: 54
Each one costs $54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0047842 | Convert 58.6 km to meters.
The Python version:
```python
km = 58.6
meters = km * 1000 # 58600.0
print(round(meters))
```
Running it prints 58600, as expected.
58,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "58600", "printed": "58600", "notation": null} |
nlprog_det-setting-0047844 | Rent of $1,250 goes up 4%. What is the new rent?
In code:
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
Run it and it prints: 1300.00
The new rent is $1,300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0047845 | <|start|><|user|>
3 friends split a $210 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 82.6
print(f"{each:.2f}")
```
(Printed: 82.60)
The share is $82.60 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 friends split a $210 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 82.6\nprint(f\"{each:.2f}\")\n```\n(Printed: 82... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "82.60", "printed": "82.60", "notation": null} |
nlprog_det-setting-0047847 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "convert_units", "des... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 474 | {"gold": "2028-12-26", "printed": "2028-12-26", "notation": null} |
nlprog_det-setting-0047848 | Walls total 399 sq ft and each can covers 250 sq ft. How many cans should be bought?
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0047849 | A 30-day notice period begins on May 26, 2023. On what date does it end?
```python
from datetime import date, timedelta
start = date(2023, 5, 26)
end = start + timedelta(days=30)
print(end.isoformat())
```
The program prints 2023-06-25, as expected.
That date is June 25, 2023. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2023-06-25", "printed": "2023-06-25", "notation": null} |
nlprog_det-setting-0047850 | What simple interest does $20,000 earn at 4% a year over 4 years?
Computation in Python:
principal = 20000
rate = 4 / 100 # 0.04
years = 4
interest = principal * rate * years # 3200.0
print(f"{interest:.2f}")
Console:
3200.00
It earns $3,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0047851 | At $0.58 per mile, what is the reimbursement for 141 miles?
We can compute it in Python.
miles = 141
rate = 0.58
reimbursement = miles * rate # 81.78
print(f"{reimbursement:.2f}")
Program output: 81.78
Pilar is owed $81.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "81.78", "printed": "81.78", "notation": null} |
nlprog_det-setting-0047852 | Omar and Sami share $5,614 in the ratio 3:4. How much does Omar get?
In code:
```python
total = 5614
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2406
print(share_a)
```
stdout:
2406
Omar's share is $2,406. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2406", "printed": "2406", "notation": null} |
nlprog_det-setting-0047854 | Papers were served by mail on December 14, 2025. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Python does the arithmetic:
```python
from datetime import date, timedelta
served = date(2025, 12, 14) # datetime.date(2025, 12, 14)
response_days = 21
mail_days = 3
due = ser... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 185 | {"gold": "2026-01-07", "printed": "2026-01-07", "notation": null} |
nlprog_det-setting-0047855 | What simple interest does $1,000 earn at 2% a year over 6 years?
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0047856 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
$1,875.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "$1,875.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "1875.00", "printed": "1875.00", "notation": null} |
nlprog_det-setting-0047857 | Scale 300 g of rice from 8 servings to 4 servings.
We write it as a program:
```python
grams = 300
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 150
print(scaled)
```
Running it prints: 150
150 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0047859 | How many days are there from December 24, 2021 to November 22, 2022?
Set it up in Python:
from datetime import date
first = date(2021, 12, 24) # datetime.date(2021, 12, 24)
second = date(2022, 11, 22) # datetime.date(2022, 11, 22)
print((second - first).days)
(Run result: 333)
There are 333 days bet... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "333", "printed": "333", "notation": null} |
nlprog_det-setting-0047860 | Zoe's scores were 79, 54, 67, 86, 86 and 54. What is the average score?
As Python:
```python
scores = [79, 54, 67, 86, 86, 54]
average = sum(scores) // len(scores) # 71
print(average)
```
stdout:
71
The mean is 71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0047861 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Walls total 741 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 741
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Console:
3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Walls total 741 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 741\ncoverage = 350\ncans = math.ceil(... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0047862 | A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?
The computation:
```python
monthly_rent = 850
months = 18
total = monthly_rent * months # 15300
print(total)
```
It prints 15300.
In total, $15,300 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15300", "printed": "15300", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.