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-0066816 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 34 days?
Here is a short program for it.
```python
per_day = 100
days = 34
cap = 5000
fine = min(per_day * days, cap) # 3400
print(fine)
```
# stdout: 3400
$3,400 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3400", "printed": "3400", "notation": null} |
nlprog_det-setting-0066818 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 122 copies of a 50-page handout?<|eot|>
<|assistant|>
```python
pages = 50
copies = 122
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 610.0
print(f"{cost:.2f}")
```
Executing it gives 610.00.
The job costs $610.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 122 copies of a 50-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 50\ncopies = 122\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 610.0\nprint(f\"{cost:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "610.00", "printed": "610.00", "notation": null} |
nlprog_det-setting-0066819 | <|start|><|user|>
Printing costs 8 cents a page. What does it cost to print 37 copies of a 25-page handout?<|eot|>
<|assistant|>
```python
pages = 25
copies = 37
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 74.0
print(f"{cost:.2f}")
```
# execution result: 74.00
Printing costs $74.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 37 copies of a 25-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 25\ncopies = 37\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 74.0\nprint(f\"{cost:.2f}\")\n```\n# e... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "74.00", "printed": "74.00", "notation": null} |
nlprog_det-setting-0066820 | <|start|><|user|>
Convert 32.2 km to meters.<|eot|>
<|assistant|>
```python
km = 32.2
meters = km * 1000 # 32200.000000000004
print(round(meters))
```
It outputs: 32200
That is 32,200 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 32.2 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 32.2\nmeters = km * 1000 # 32200.000000000004\nprint(round(meters))\n```\nIt outputs: 32200\n\nThat is 32,200 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "32200", "printed": "32200", "notation": null} |
nlprog_det-setting-0066821 | How many days are there from November 3, 2019 to November 15, 2019?
Written as code:
```python
from datetime import date
first = date(2019, 11, 3) # datetime.date(2019, 11, 3)
second = date(2019, 11, 15) # datetime.date(2019, 11, 15)
print((second - first).days)
```
# printed: 12
It is 12 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0066822 | A backpack costs $300. It is 15% off. What is the sale price?
A short script:
```python
price = 300
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 255.0
print(f"{sale_price:.2f}")
```
The run gives 255.00, as expected.
The sale price is $255.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "255.00", "printed": "255.00", "notation": null} |
nlprog_det-setting-0066823 | <|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": "run_python", "description": "Executes Python code and returns stdout.... | 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\"]}}\n{\"name\": \"run_python\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 295 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0066824 | <|start|><|system|>
Tools you may use:
[{"name": "code_runner", "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": "define_word", "descrip... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 353 | {"gold": "2.0", "printed": "2.0", "notation": null} |
nlprog_det-setting-0066825 | A measure needs at least 60% of 176 votes. How many votes is that, rounded up?
A Python solution:
```python
import math
voters = 176
needed = math.ceil(voters * 60 / 100)
print(needed)
```
Execution prints: 106
At least 106 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "106", "printed": "106", "notation": null} |
nlprog_det-setting-0066827 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Here is the program.
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
Running it prints 20.0, as expected.
The margin is 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0066828 | A $96 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?
One way, in code:
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 19.2
print(f"{each:.2f}")
```
Run it and it prints 19.20.
Each person pays $19.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "19.20", "printed": "19.20", "notation": null} |
nlprog_det-setting-0066829 | Attendance was 21 out of 40. Express it as a percent.
In Python:
```python
present = 21
total = 40
percent = present / total * 100 # 52.5
print(round(percent, 1))
```
# console output: 52.5
Attendance was 52.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "52.5", "printed": "52.5", "notation": null} |
nlprog_det-setting-0066830 | Sales went from 400 to 240. What is the percent change? The change is -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0066831 | Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Programmatically:
```python
revenue = 22000
costs = 20000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 9.090909090909092
print(round(margin, 1))
```
Printed:
9.1
The margin is 9.1%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "9.1", "printed": "9.1", "notation": null} |
nlprog_det-setting-0066832 | Buying 3 pens at $20 each, 5 tape rolls at $2 each, someone hands over $100. What change comes back?
Script:
```python
items = [(3, 20), (5, 2)]
total = sum(q * p for q, p in items) # 70
paid = 100
change = paid - total # 30
print(change)
```
Console:
30
$30 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0066834 | Each of Jae's runs burns 150 calories. How many calories over 3 runs?
We can compute it in Python.
per_session = 150
sessions = 3
total = per_session * sessions # 450
print(total)
(Result: 450)
450 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0066835 | A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 40-page copy cost?
Coded up:
```python
pages = 40
base = 5
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 9.0
print(f"{cost:.2f}")
```
Execution prints: 9.00
The total is $9.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "9.00", "printed": "9.00", "notation": null} |
nlprog_det-setting-0066836 | Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?
Program:
```python
rate = 16.0
hours = 43
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 72.0
pay = regular + overtime # 712.0
print(f"{pay:.2f}")
```
The program prints 712.00.
The weekly pay ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "712.00", "printed": "712.00", "notation": null} |
nlprog_det-setting-0066838 | 3 runs at 250 calories each burn how many calories in total?
Here is the program.
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
The program prints 750, as expected.
That burns 750 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0066839 | At 1.5% a month (simple), what interest builds on $2,500 over 5 months?
One way, in code:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 187.5
print(f"{interest:.2f}")
```
Python prints: 187.50
The interest is $187.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "187.50", "printed": "187.50", "notation": null} |
nlprog_det-setting-0066840 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "1413.44", "printed": "1413.44", "notation": null} |
nlprog_det-setting-0066841 | <|start|><|user|>
A service costs $29 a month or $312 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 312
savings = monthly * 12 - yearly # 36
print(savings)
```
# execution result: 36
The annual plan saves $36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $312 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 312\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\n# execution result: 36\... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0066842 | <|start|><|user|>
At an exchange rate of 1.12 USD per CHF, how many USD is 4,148 CHF?<|eot|>
<|assistant|>
amount = 4148
rate = 1.12
converted = amount * rate # 4645.76
print(f"{converted:.2f}")
Run it and it prints: 4645.76
It converts to 4,645.76 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per CHF, how many USD is 4,148 CHF?"
},
{
"role": "assistant",
"content": " amount = 4148\n rate = 1.12\n converted = amount * rate # 4645.76\n print(f\"{converted:.2f}\")\nRun it and it prints: 4645.76\n\nIt converts to ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "4645.76", "printed": "4645.76", "notation": null} |
nlprog_det-setting-0066843 | Starting with 1738 envelopes and using 36 per day, how many remain after 3 days?
Let's compute it with Python.
```python
stock = 1738
per_day = 36
days = 3
left = stock - per_day * days # 1630
print(left)
```
Output of the run — 1630
1630 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1630", "printed": "1630", "notation": null} |
nlprog_det-setting-0066844 | Of a $2,000 budget, $900 has been spent. What percent is that?
A short script:
```python
budget = 2000
spent = 900
percent = spent / budget * 100 # 45.0
print(round(percent, 1))
```
Printed result: 45.0
That is 45.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "45.0", "printed": "45.0", "notation": null} |
nlprog_det-setting-0066846 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
At an exchange rate of 1.31 USD per EUR, how many USD is 4,086 EUR?<|eot|>
<|assistant|>
That is 5,352.66 USD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "At an exchange rate of 1.31 USD per EUR, how many USD is 4,086 EUR?"
},
{
"role": "assistant",
"content": "That is 5,352.66 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "5352.66", "printed": "5352.66", "notation": null} |
nlprog_det-setting-0066847 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
At a 4% tax rate, what is the tax on $608.10?<|eot|>
<|assistant|>
$24.32 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "At a 4% tax rate, what is the tax on $608.10?"
},
{
"role": "assistant",
"content": "$24.32 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "24.32", "printed": "24.32", "notation": null} |
nlprog_det-setting-0066848 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Pack A has 10 items for ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0066849 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 117 copies of a 8-page handout?<|eot|>
<|assistant|>
```python
pages = 8
copies = 117
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Execution prints 112.32, as expected.
Printing costs $112.32.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 117 copies of a 8-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 8\ncopies = 117\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nExecution ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "112.32", "printed": "112.32", "notation": null} |
nlprog_det-setting-0066850 | <|start|><|system|>
Tools (call with JSON):
{"name": "eval_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|>
<|user|>
At a 4% tax r... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "18.61", "printed": "18.61", "notation": null} |
nlprog_det-setting-0066851 | Parking is $4 per hour with a daily maximum of $20. What do 5 hours cost?
```python
rate = 4
hours = 5
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Out = 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0066852 | What is -5 degrees Celsius in Fahrenheit?
Here is a short program for it.
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
This prints 23, as expected.
That is 23 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0066853 | <|start|><|user|>
Someone works 30 hours at $30.73 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 30.73
hours = 30
earnings = rate * hours # 921.9
print(f"{earnings:.2f}")
```
Printed:
921.90
The pay is $921.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 30 hours at $30.73 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.73\nhours = 30\nearnings = rate * hours # 921.9\nprint(f\"{earnings:.2f}\")\n```\nPrinted:\n921.90\n\nThe pay is $921.90."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "921.90", "printed": "921.90", "notation": null} |
nlprog_det-setting-0066855 | <|start|><|system|>
Tools (call with JSON):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"ty... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"business_days\", \"description\": \"C... | nlprog_det | setting | original | null | deterministic | [] | [] | 405 | {"gold": "144.30", "printed": "144.30", "notation": null} |
nlprog_det-setting-0066856 | Monthly: $9. Annual: $78. What is saved per year by paying annually?
Python version:
```python
monthly = 9
yearly = 78
savings = monthly * 12 - yearly # 30
print(savings)
```
# stdout: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0066857 | Under a 35% contingency agreement, what fee is owed on a $90,000 award?
Set it up in Python:
```python
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
```
The code prints: 31500.00
The fee is $31,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0066858 | Express 181 hours in days and hours.
The program:
```python
hours = 181
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out:
7 days and 13 hours
181 hours is 7 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "7 days and 13 hours", "printed": "7 days and 13 hours", "notation": null} |
nlprog_det-setting-0066859 | How many minutes pass from 11:21 AM to 6:02 PM on the same day?
Let's compute it with Python.
```python
start = 11 * 60 + 21 # 681
end = 18 * 60 + 2 # 1082
print(end - start)
```
(Printed: 401)
401 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "401", "printed": "401", "notation": null} |
nlprog_det-setting-0066860 | <|start|><|user|>
Quinn drove 369 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 369
rate = 0.62
reimbursement = miles * rate # 228.78
print(f"{reimbursement:.2f}")
```
Program output: 228.78
The reimbursement is $228.78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn drove 369 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 369\nrate = 0.62\nreimbursement = miles * rate # 228.78\nprint(f\"{reimbursement:.2f}\")\n```\nProgram... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "228.78", "printed": "228.78", "notation": null} |
nlprog_det-setting-0066861 | Equal monthly payments repay $3,600 plus 8% simple yearly interest over 36 months. How large is a payment?
Computation in Python:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 864.0
payment = (principal + interest) / months # 124.0
print(f"{pa... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "124.00", "printed": "124.00", "notation": null} |
nlprog_det-setting-0066862 | <|start|><|user|>
Someone works 38 hours at $24.58 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 24.58
hours = 38
earnings = rate * hours # 934.04
print(f"{earnings:.2f}")
```
Running it prints 934.04.
The pay is $934.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 38 hours at $24.58 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.58\nhours = 38\nearnings = rate * hours # 934.04\nprint(f\"{earnings:.2f}\")\n```\nRunning it prints 934.04.\n\nThe pay is $934.04."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "934.04", "printed": "934.04", "notation": null} |
nlprog_det-setting-0066863 | <|start|><|user|>
Convert 3 h 39 min (the length of a deposition) to minutes.<|eot|>
<|assistant|>
That is 219 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 39 min (the length of a deposition) to minutes."
},
{
"role": "assistant",
"content": "That is 219 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "219", "printed": "219", "notation": null} |
nlprog_det-setting-0066864 | Water costs $12 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 12,000 gallons?
Written as code:
```python
base = 12
rate = 4.75
used = 12
free = 3
bill = base + rate * max(0, used - free) # 54.75
print(f"{bill:.2f}")
```
The program prints 54.75.
$54.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "54.75", "printed": "54.75", "notation": null} |
nlprog_det-setting-0066866 | <|start|><|user|>
A claim accrued on November 25, 2021. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2021, 11, 25) # datetime.date(2021, 11, 25)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(202... | chat | [
{
"role": "user",
"content": "A claim accrued on November 25, 2021. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2021, 11, 25) # datetime.date(2021, 11, 25)\nyears = 6\nexpires = accru... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2027-11-25", "printed": "2027-11-25", "notation": null} |
nlprog_det-setting-0066867 | From 2001 to 2024, how many years is that?
Written as code:
```python
start_year = 2001
end_year = 2024
print(end_year - start_year)
```
The program prints 23.
That is 23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0066868 | Copies cost $10 plus $0.10 for each page beyond 20. How much for 80 pages?
Translated to Python:
```python
pages = 80
base = 10
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 16.0
print(f"{cost:.2f}")
```
The printout reads 16.00.
The total is $16.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0066869 | <|start|><|user|>
Someone born January 6, 1966 turns how old by April 14, 2023? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1966, 1, 6) # datetime.date(1966, 1, 6)
on = date(2023, 4, 14) # datetime.date(2023, 4, 14)
age = on.year - born.year - ((on.month, on.day) ... | chat | [
{
"role": "user",
"content": "Someone born January 6, 1966 turns how old by April 14, 2023? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1966, 1, 6) # datetime.date(1966, 1, 6)\non = date(2023, 4, 14) # datetime.date(2023... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0066870 | A 459-page report must be reviewed in 9 days. How many pages a day is that, evenly?
Computing it:
```python
pages = 459
days = 9
per_day = pages // days # 51
print(per_day)
```
Program output — 51
51 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0066871 | <|start|><|user|>
What percentage of $5,000 is $100?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 100
percent = spent / budget * 100 # 2.0
print(round(percent, 1))
```
This prints: 2.0
2.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $100?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 100\npercent = spent / budget * 100 # 2.0\nprint(round(percent, 1))\n```\nThis prints: 2.0\n\n2.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2.0", "printed": "2.0", "notation": null} |
nlprog_det-setting-0066872 | 4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Set it up in Python:
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 4 # 4500.0
print(f"{per_client:.2f}")
Shell output: 4500.00
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0066873 | 6 claimants share a $2,640 settlement equally. What is each share?
Here is the program.
```python
settlement = 2640
parties = 6
share = settlement // parties # 440
print(share)
```
It outputs 440.
Each party receives $440. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "440", "printed": "440", "notation": null} |
nlprog_det-setting-0066874 | Convert 30 °C to Fahrenheit. That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0066875 | <|start|><|user|>
What day of the week is December 8, 2003?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2003, 12, 8) # datetime.date(2003, 12, 8)
print(hearing.strftime("%A"))
```
The code prints: Monday
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is December 8, 2003?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2003, 12, 8) # datetime.date(2003, 12, 8)\nprint(hearing.strftime(\"%A\"))\n```\nThe code prints: Monday\n\nIt is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0066876 | <|start|><|user|>
Someone works 24 hours at $23.67 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 23.67
hours = 24
earnings = rate * hours
print(f"{earnings:.2f}")
```
Executing it gives: 568.08
The pay is $568.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 24 hours at $23.67 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 23.67\nhours = 24\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives: 568.08\n\nThe pay is $568.08."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "568.08", "printed": "568.08", "notation": null} |
nlprog_det-setting-0066877 | A 13 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
It takes 20 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0066878 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A 9-day ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 258 | {"gold": "1976", "printed": "1976", "notation": null} |
nlprog_det-setting-0066879 | Split $1,200 between Beatriz and Signe in the ratio 1 to 2. What is Beatriz's share?
Beatriz's share is $400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0066880 | <|start|><|user|>
6 friends split a $180 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 34.49999999999999
print(f"{each:.2f}")
```
stdout — 34.50
Each person pays $34.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 friends split a $180 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 6\neach = bill * (1 + tip_rate) / people # 34.49999999999999\nprint(f\"{each:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "34.50", "printed": "34.50", "notation": null} |
nlprog_det-setting-0066881 | <|start|><|user|>
A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1800.0
payme... | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 10 / 100 # 0.1\nmonths = 36\nintere... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "216.67", "printed": "216.67", "notation": null} |
nlprog_det-setting-0066882 | 4 friends split a $96 bill plus a 20% tip evenly. How much does each pay?
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 28.799999999999997
print(f"{each:.2f}")
```
(Result: 28.80)
The share is $28.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0066883 | A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?
In Python:
```python
bill = 96
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 27.599999999999998
print(f"{each:.2f}")
```
Output: 27.60
The share is $27.60 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "27.60", "printed": "27.60", "notation": null} |
nlprog_det-setting-0066884 | At an exchange rate of 1.35 USD per CHF, how many USD is 5,124 CHF?
Written as code:
```python
amount = 5124
rate = 1.35
converted = amount * rate # 6917.400000000001
print(f"{converted:.2f}")
```
Output of the run — 6917.40
It converts to 6,917.40 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "6917.40", "printed": "6917.40", "notation": null} |
nlprog_det-setting-0066885 | <|start|><|user|>
The statute was enacted in 2012. How many years had passed by 2039?<|eot|>
<|assistant|>
```python
start_year = 2012
end_year = 2039
print(end_year - start_year)
```
Execution prints 27, as expected.
27 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2012. How many years had passed by 2039?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2012\nend_year = 2039\nprint(end_year - start_year)\n```\nExecution prints 27, as expected.\n\n27 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0066886 | <|start|><|user|>
Starting from $5,000, the team spends $500, $3,811. What remains?<|eot|>
<|assistant|>
$689 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $500, $3,811. What remains?"
},
{
"role": "assistant",
"content": "$689 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "689", "printed": "689", "notation": null} |
nlprog_det-setting-0066887 | A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 119-page copy cost?
The Python version:
```python
pages = 119
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 26.9
print(f"{cost:.2f}")
```
It outputs: 26.90
The total is $26.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "26.90", "printed": "26.90", "notation": null} |
nlprog_det-setting-0066888 | <|start|><|user|>
Convert 5 °C to Fahrenheit.<|eot|>
<|assistant|>
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "That is 41 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0066889 | Find the mean of these test scores: 101, 95, 80 and 60.
Translated to Python:
```python
scores = [101, 95, 80, 60]
average = sum(scores) // len(scores) # 84
print(average)
```
This prints 84, as expected.
The average score is 84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0066890 | <|start|><|user|>
A $84 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 33.04
print(f"{each:.2f}")
```
Printed result: 33.04
The share is $33.04 each.<|... | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 33.04\nprint(f\"{each:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "33.04", "printed": "33.04", "notation": null} |
nlprog_det-setting-0066891 | If a 150-minute seminar begins at 11:15 AM, what time does it finish?
Let's compute it with Python.
```python
start = 11 * 60 + 15
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Program output — 1:45 PM
The seminar finishes at 1:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "1:45 PM", "printed": "1:45 PM", "notation": null} |
nlprog_det-setting-0066893 | Grace has 5 documents to file, and each filing costs $405. How much are the filing fees in total?
Computation in Python:
```python
fee = 405
filings = 5
total = fee * filings # 2025
print(total)
```
Output of the run: 2025
$2,025 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2025", "printed": "2025", "notation": null} |
nlprog_det-setting-0066894 | Quinn has 3 documents to file, and each filing costs $350. How much are the filing fees in total?
As a program:
```python
fee = 350
filings = 3
total = fee * filings
print(total)
```
Printed result — 1050
The filings cost $1,050 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0066895 | At an exchange rate of 0.92 EUR per USD, how many EUR is 8,226 USD?
A Python solution:
```python
amount = 8226
rate = 0.92
converted = amount * rate # 7567.92
print(f"{converted:.2f}")
```
Out: 7567.92
It converts to 7,567.92 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7567.92", "printed": "7567.92", "notation": null} |
nlprog_det-setting-0066896 | <|start|><|user|>
A meal costs $153.48. How much is a 20% tip?<|eot|>
<|assistant|>
```python
bill = 153.48
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 30.695999999999998
print(f"{tip:.2f}")
```
Output:
30.70
Leave $30.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $153.48. How much is a 20% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 153.48\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 30.695999999999998\nprint(f\"{tip:.2f}\")\n```\nOutput:\n30.70\n\nLeave $30.70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "30.70", "printed": "30.70", "notation": null} |
nlprog_det-setting-0066897 | <|start|><|system|>
Functions:
[{"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"]}}, {"name": "search_ca... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 427 | {"gold": "189.00", "printed": "189.00", "notation": null} |
nlprog_det-setting-0066898 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0066899 | Carmen has 14 documents to file, and each filing costs $35. How much are the filing fees in total?
As Python:
```python
fee = 35
filings = 14
total = fee * filings
print(total)
```
Out = 490
The filings cost $490 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "490", "printed": "490", "notation": null} |
nlprog_det-setting-0066900 | 817 files go into boxes of 20. How many boxes does that take?
```python
import math
files = 817
per_box = 20
boxes = math.ceil(files / per_box) # 41
print(boxes)
```
Shell output — 41
It takes 41 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0066901 | Convert 15 °C to Fahrenheit.
One way, in code:
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
(Printed result: 59)
That is 59 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0066902 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
What simple interest does $12,000 earn at 6% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 12000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 1440.0
print(f"{interest:.2f}")
```
Python prints 1440.00, as expec... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "What simple interest does $12,000 earn at 6% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 12000\nrate = 6 / 100 # 0.06\nyears = 2\ninterest = princip... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0066903 | <|start|><|user|>
A $1,200 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 72.0
payment ... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0066904 | After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Let the code do the arithmetic:
```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}")
```
Exe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0066905 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Sales w... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0066906 | <|start|><|system|>
You have access to these functions:
{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
From 2001 to 2017, how m... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0066907 | Each of Jae's runs burns 400 calories. How many calories over 5 runs?
In Python:
```python
per_session = 400
sessions = 5
total = per_session * sessions # 2000
print(total)
```
It prints 2000.
That burns 2000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0066908 | A library charges $0.50 per book per day late. What is the fine for 4 books that are 7 days late?
Python makes this quick:
```python
per_day = 0.5
days_late = 7
books = 4
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Out: 14.00
The fine is $14.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "14.00", "printed": "14.00", "notation": null} |
nlprog_det-setting-0066909 | At $0.62 per mile, what is the reimbursement for 588 miles?
Here is a short program for it.
miles = 588
rate = 0.62
reimbursement = miles * rate # 364.56
print(f"{reimbursement:.2f}")
Executed, it shows 364.56.
The reimbursement is $364.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "364.56", "printed": "364.56", "notation": null} |
nlprog_det-setting-0066910 | Fines run at $100 per day up to a maximum of $5,000. How much after 3 days?
$300 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0066911 | An invoice lists 30 toner kits at $24 each, plus 5% sales tax. What is the invoice total?
Python, step by step:
```python
quantity = 30
unit_price = 24
subtotal = quantity * unit_price # 720
total = subtotal * (1 + 5 / 100) # 756.0
print(f"{total:.2f}")
```
Printed:
756.00
The total with tax is $756.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "756.00", "printed": "756.00", "notation": null} |
nlprog_det-setting-0066912 | Buying 1 water bottles at $14 each, 5 water bottles at $14 each, 2 scissors at $6 each, 6 file boxes at $9 each, someone hands over $200. What change comes back?
Code:
```python
items = [(1, 14), (5, 14), (2, 6), (6, 9)]
total = sum(q * p for q, p in items) # 150
paid = 200
change = paid - total # 50
print(change)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0066913 | Scale 200 g of oats from 6 servings to 3 servings.
Use 100 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0066914 | A car gets 30 miles per gallon. Gas is $3.89 a gallon. What does fuel cost for a 300-mile trip?
The trip uses $38.90 of gas. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "38.90", "printed": "38.90", "notation": null} |
nlprog_det-setting-0066915 | From 2006 to 2028, how many years is that?
As a program:
```python
start_year = 2006
end_year = 2028
print(end_year - start_year)
```
# run result: 22
That is 22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0066916 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
The paralegal logged 6.5 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 6.5
rate = 350
bill = hours * rate # 2275.0
print(f"{bill:.2f}")
```
# printed: 2275.00
That comes to $2,275.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "The paralegal logged 6.5 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 6.5\nrate = 350\nbill = hours * rate # 2275.0\nprint(f\"{bill:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2275.00", "printed": "2275.00", "notation": null} |
nlprog_det-setting-0066918 | A client paid a $10,000 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?
The remaining balance is $7,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "7900", "printed": "7900", "notation": null} |
nlprog_det-setting-0066919 | With $20,000 in costs and $25,000 in revenue, what percent of revenue is profit? Round to one decimal.
```python
revenue = 25000
costs = 20000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
The run gives 20.0.
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0066920 | How many meters are in 38.5 kilometers?
One way, in code:
```python
km = 38.5
meters = km * 1000 # 38500.0
print(round(meters))
```
Execution prints: 38500
That is 38,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "38500", "printed": "38500", "notation": null} |
nlprog_det-setting-0066921 | Scale 300 g of rice from 6 servings to 12 servings.
The program:
```python
grams = 300
serves = 6
needed_for = 12
scaled = grams * needed_for // serves
print(scaled)
```
Executing it gives 600.
600 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0066922 | A 60-day notice period begins on May 15, 2025. On what date does it end?
It ends on July 14, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2025-07-14", "printed": "2025-07-14", "notation": null} |
nlprog_det-setting-0066923 | The paralegal logged 10.5 hours at a rate of $300. How much is billed?
Python, step by step:
```python
hours = 10.5
rate = 300
bill = hours * rate # 3150.0
print(f"{bill:.2f}")
```
Out = 3150.00
The bill is $3,150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0066924 | Priya lends $1,000 at 4% simple interest per year for 2 years. How much interest is earned?
Python makes this quick:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 80.0
print(f"{interest:.2f}")
```
Output = 80.00
It earns $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "80.00", "printed": "80.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.