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-0068211 | <|start|><|user|>
A storeroom has 248 toner kits. The office uses 31 a day. How many are left after 8 days?<|eot|>
<|assistant|>
stock = 248
per_day = 31
days = 8
left = stock - per_day * days # 0
print(left)
Execution prints 0.
0 toner kits are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 248 toner kits. The office uses 31 a day. How many are left after 8 days?"
},
{
"role": "assistant",
"content": " stock = 248\n per_day = 31\n days = 8\n left = stock - per_day * days # 0\n print(left)\nExecution prints 0.\n\n0 toner ... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0068212 | Someone works 38 hours at $20.29 per hour. What are the earnings?
Here is the program.
```python
rate = 20.29
hours = 38
earnings = rate * hours # 771.02
print(f"{earnings:.2f}")
```
(Console output: 771.02)
The pay is $771.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "771.02", "printed": "771.02", "notation": null} |
nlprog_det-setting-0068213 | Dara and Viktor share $2,283 in the ratio 1:2. How much does Dara get?
We write it as a program:
```python
total = 2283
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 761
print(share_a)
```
What it prints — 761
Dara gets $761. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "761", "printed": "761", "notation": null} |
nlprog_det-setting-0068215 | Each of Viktor's swims burns 400 calories. How many calories over 7 swims?
Script:
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
Execution prints 2800, as expected.
That burns 2800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0068216 | <|start|><|user|>
Rent of $2,200 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
It rises to $2,244.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $2,200 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "It rises to $2,244.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0068217 | <|start|><|user|>
278 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 278
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints 39 each, 5 left over.
The a... | chat | [
{
"role": "user",
"content": "278 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 278\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "39 each, 5 left over", "printed": "39 each, 5 left over", "notation": null} |
nlprog_det-setting-0068218 | Count 21 days forward from January 10, 2022. What date is that?
It ends on January 31, 2022. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "2022-01-31", "printed": "2022-01-31", "notation": null} |
nlprog_det-setting-0068219 | Nikhil lends $2,500 at 5% simple interest per year for 2 years. How much interest is earned?
We write it as a program:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 250.0
print(f"{interest:.2f}")
```
It outputs: 250.00
The interest is $250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0068220 | After an initial $3,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?
A short script:
```python
grant = 48000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 15000.0
print(f"{each:.2f}")
```
# printed: 15000.00
$15,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0068221 | A 8-day trip pays $69 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?
The Python version:
```python
days = 8
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1777
print(total)
```
Run output — 1777
That comes to $1,777. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1777", "printed": "1777", "notation": null} |
nlprog_det-setting-0068222 | What simple interest does $8,000 earn at 8% a year over 6 years?
Script:
```python
principal = 8000
rate = 8 / 100 # 0.08
years = 6
interest = principal * rate * years # 3840.0
print(f"{interest:.2f}")
```
stdout — 3840.00
It earns $3,840.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3840.00", "printed": "3840.00", "notation": null} |
nlprog_det-setting-0068223 | <|start|><|system|>
Tool definitions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "business_days", "description": "Count business days between two dates.", "pa... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"business_days\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 370 | {"gold": "52.5", "printed": "52.5", "notation": null} |
nlprog_det-setting-0068224 | From 2016 to 2038, how many years is that?
Set it up in Python:
```python
start_year = 2016
end_year = 2038
print(end_year - start_year)
```
On running, it outputs: 22
That is 22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0068225 | Under a 30% contingency agreement, what fee is owed on a $150,000 award?
The computation:
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
# run result: 45000.00
The lawyer's fee comes to $45,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0068226 | An invoice lists 11 sticky pads at $12 each, plus 8% sales tax. What is the invoice total?
One way, in code:
```python
quantity = 11
unit_price = 12
subtotal = quantity * unit_price # 132
total = subtotal * (1 + 8 / 100) # 142.56
print(f"{total:.2f}")
```
Out:
142.56
The total with tax is $142.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "142.56", "printed": "142.56", "notation": null} |
nlprog_det-setting-0068227 | 235 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
The program:
total = 235
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Output of the run: 33 each, 4 left over
The answer: 33 each, 4 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "33 each, 4 left over", "printed": "33 each, 4 left over", "notation": null} |
nlprog_det-setting-0068228 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "1456", "printed": "1456", "notation": null} |
nlprog_det-setting-0068229 | A count moves from 800 to 1,120. By what percent did it change (use a minus sign for a drop)?
```python
old = 800
new = 1120
change = (new - old) / old * 100 # 40.0
print(round(change))
```
It outputs 40.
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0068230 | Convert 1 h 8 min (the length of a film) to minutes.
The Python version:
hours = 1
minutes = 8
total_minutes = hours * 60 + minutes # 68
print(total_minutes)
(Run result: 68)
That is 68 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0068231 | Meals are $64 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?
The Python version:
```python
days = 6
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1084
print(total)
```
Output:
1084
The allowance is $1,084. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1084", "printed": "1084", "notation": null} |
nlprog_det-setting-0068232 | <|start|><|user|>
What day of the week is April 25, 2017?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2017, 4, 25) # datetime.date(2017, 4, 25)
print(hearing.strftime("%A"))
```
Executing it gives Tuesday, as expected.
April 25, 2017 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is April 25, 2017?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2017, 4, 25) # datetime.date(2017, 4, 25)\nprint(hearing.strftime(\"%A\"))\n```\nExecuting it gives Tuesday, as expected.\n\nApril 25... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0068233 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Convert 0 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Python prints 32.
That is 32 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Convert 0 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nPython prints 32.\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0068234 | <|start|><|user|>
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
The run gives 24.
$24 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 204\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe run gives 24.\n\n$2... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0068235 | What simple interest does $1,000 earn at 6% a year over 6 years?
The computation:
```python
principal = 1000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 360.0
print(f"{interest:.2f}")
```
# out: 360.00
It earns $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0068236 | 7 hours of work at $250 an hour: what is the total charge?
Python does the arithmetic:
```python
hours = 7
rate = 250
bill = hours * rate # 1750
print(f"{bill:.2f}")
```
Out:
1750.00
The bill is $1,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1750.00", "printed": "1750.00", "notation": null} |
nlprog_det-setting-0068237 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "2024-06-23", "printed": "2024-06-23", "notation": null} |
nlprog_det-setting-0068238 | <|start|><|user|>
How many of 28 members form a majority (more than half)?<|eot|>
<|assistant|>
members = 28
majority = members // 2 + 1 # 15
print(majority)
The run gives 15.
15 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 28 members form a majority (more than half)?"
},
{
"role": "assistant",
"content": " members = 28\n majority = members // 2 + 1 # 15\n print(majority)\nThe run gives 15.\n\n15 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0068239 | A client paid a $5,000 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?
Python version:
```python
retainer = 5000
hours = 5
rate = 275
left = retainer - hours * rate # 3625
print(left)
```
Shell output: 3625
The remaining balance is $3,625. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3625", "printed": "3625", "notation": null} |
nlprog_det-setting-0068240 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A $1,0... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "730", "printed": "730", "notation": null} |
nlprog_det-setting-0068241 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years?
Translated to Python:
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
This prints 1276.28, as expected.
It is worth $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0068242 | <|start|><|user|>
A kettle costs $300. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
Execution result — 240.00
It costs $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $300. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 240.0\nprint(f\"{sale_price:.2f}\")\n```\nExecution result — 240.00\n\nIt co... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0068243 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"py_exec\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "1171.94", "printed": "1171.94", "notation": null} |
nlprog_det-setting-0068244 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Convert -5 °C to Fahrenheit.<|eot|>
<|assistant|>
It equals 23 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Convert -5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "It equals 23 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0068245 | 100 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
Script:
```python
total = 100
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
stdout: 20 each, 0 left over
The answer: 20 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "20 each, 0 left over", "printed": "20 each, 0 left over", "notation": null} |
nlprog_det-setting-0068246 | <|start|><|user|>
With 30 rows of 14 chairs and 34 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 30
per_row = 14
empty = 34
seated = rows * per_row - empty # 386
print(seated)
```
Running it prints: 386
386 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30 rows of 14 chairs and 34 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 30\nper_row = 14\nempty = 34\nseated = rows * per_row - empty # 386\nprint(seated)\n```\nRunning it prints: 386\n\n386 people are seat... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "386", "printed": "386", "notation": null} |
nlprog_det-setting-0068247 | A 120-day notice period begins on April 19, 2025. On what date does it end?
We can compute it in Python.
```python
from datetime import date, timedelta
start = date(2025, 4, 19) # datetime.date(2025, 4, 19)
end = start + timedelta(days=120) # datetime.date(2025, 8, 17)
print(end.isoformat())
```
Console output — 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2025-08-17", "printed": "2025-08-17", "notation": null} |
nlprog_det-setting-0068248 | Starting from $20,000, the team spends $3,134, $3,658, $2,425. What remains?
The program:
budget = 20000
expenses = [3134, 3658, 2425]
left = budget - sum(expenses) # 10783
print(left)
The run gives 10783, as expected.
The remaining budget is $10,783. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "10783", "printed": "10783", "notation": null} |
nlprog_det-setting-0068250 | At 1.5% a month (simple), what interest builds on $7,500 over 3 months?
Python does the arithmetic:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print(f"{interest:.2f}")
```
# stdout: 337.50
$337.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0068251 | Counting only Monday through Friday, how many business days are there after November 4, 2022 through November 27, 2022?
The computation:
```python
from datetime import date, timedelta
start = date(2022, 11, 4)
end = date(2022, 11, 27)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0068252 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 5 months?
The program:
```python
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 750.0
print(f"{interest:.2f}")
```
The printout reads: 750.00
The interest is $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0068253 | What commission does Wanjiru make on $93,145 in sales at 6%?
Wanjiru earns $5,588.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5588.70", "printed": "5588.70", "notation": null} |
nlprog_det-setting-0068254 | A library charges $0.25 per book per day late. What is the fine for 1 books that are 29 days late?
Python makes this quick:
per_day = 0.25
days_late = 29
books = 1
fine = per_day * days_late * books # 7.25
print(f"{fine:.2f}")
This prints 7.25, as expected.
The fine is $7.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "7.25", "printed": "7.25", "notation": null} |
nlprog_det-setting-0068256 | <|start|><|system|>
Functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "math_engine", "description": "Python sandbox for calculations... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 364 | {"gold": "3 days and 0 hours", "printed": "3 days and 0 hours", "notation": null} |
nlprog_det-setting-0068257 | <|start|><|system|>
Tool definitions:
[{"name": "compute", "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|>
A 3% increase is appl... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"compute\", \"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 | [] | [] | 209 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0068258 | <|start|><|user|>
Pack A has 8 items for $9.86. Pack B has 24 items for $14.11. Which has the lower price per item?<|eot|>
<|assistant|>
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $9.86. Pack B has 24 items for $14.11. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "Pack B is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068259 | Papers were served by mail on June 1, 2023. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
In code:
```python
from datetime import date, timedelta
served = date(2023, 6, 1) # datetime.date(2023, 6, 1)
response_days = 28
mail_days = 3
due = served + timedelta(days=respons... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2023-07-02", "printed": "2023-07-02", "notation": null} |
nlprog_det-setting-0068260 | Cyrus drove 566 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Let the code do the arithmetic:
```python
miles = 566
rate = 0.65
reimbursement = miles * rate # 367.90000000000003
print(f"{reimbursement:.2f}")
```
Out:
367.90
Cyrus is owed $367.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "367.90", "printed": "367.90", "notation": null} |
nlprog_det-setting-0068261 | <|start|><|system|>
Tool definitions:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python\", \"description\": \"Python sandbox for... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "12600.00", "printed": "12600.00", "notation": null} |
nlprog_det-setting-0068262 | At a 4% tax rate, what is the tax on $11.08?
```python
price = 11.08
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 0.44320000000000004
print(f"{tax:.2f}")
```
Run it and it prints: 0.44
The tax is $0.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "0.44", "printed": "0.44", "notation": null} |
nlprog_det-setting-0068263 | How many 2-foot square tiles cover a 18 ft by 10 ft floor (round up)?
A few lines of Python do it:
```python
import math
length = 18
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 45
print(tiles)
```
The code prints: 45
45 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0068264 | A storeroom has 986 toner kits. The office uses 35 a day. How many are left after 3 days?
Written as code:
```python
stock = 986
per_day = 35
days = 3
left = stock - per_day * days # 881
print(left)
```
Run output — 881
881 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "881", "printed": "881", "notation": null} |
nlprog_det-setting-0068265 | Express 237 hours in days and hours. That is 9 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "9 days and 21 hours", "printed": "9 days and 21 hours", "notation": null} |
nlprog_det-setting-0068266 | Convert 2 h 30 min (the length of a deposition) to minutes.
The Python version:
```python
hours = 2
minutes = 30
total_minutes = hours * 60 + minutes # 150
print(total_minutes)
```
The run gives: 150
That is 150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0068267 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["sourc... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0068268 | Convert 15 °C to Fahrenheit.
The program:
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
The program prints 59.
That is 59 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0068269 | Straight-line depreciation: cost $45,000, salvage $2,000, 4 years. How much per year?
The Python version:
```python
cost = 45000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 10750.0
print(f"{per_year:.2f}")
```
Output of the run — 10750.00
$10,750.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "10750.00", "printed": "10750.00", "notation": null} |
nlprog_det-setting-0068270 | From a $7,500 retainer, 2 hours at $275/hour have been drawn. What remains?
Code:
retainer = 7500
hours = 2
rate = 275
left = retainer - hours * rate
print(left)
Output:
6950
The remaining balance is $6,950. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "6950", "printed": "6950", "notation": null} |
nlprog_det-setting-0068271 | <|start|><|user|>
Each storage box holds 25 files. How many boxes are needed for 477 files?<|eot|>
<|assistant|>
```python
import math
files = 477
per_box = 25
boxes = math.ceil(files / per_box) # 20
print(boxes)
```
Execution prints: 20
It takes 20 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 477 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 477\nper_box = 25\nboxes = math.ceil(files / per_box) # 20\nprint(boxes)\n```\nExecution prints: 20\n\nIt takes 20 boxes... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0068272 | <|start|><|user|>
A customer buys 5 clipboards at $29 each, 1 scissors at $29 each, 3 toner kits at $17 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(5, 29), (1, 29), (3, 17)]
total = sum(q * p for q, p in items) # 225
paid = 250
change = paid - total # 25
print(change)
```... | chat | [
{
"role": "user",
"content": "A customer buys 5 clipboards at $29 each, 1 scissors at $29 each, 3 toner kits at $17 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 29), (1, 29), (3, 17)]\ntotal = sum(q * p for q, p in items) # 225\... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0068273 | Counting the first and last day, how many days are there from June 6, 2024 through June 14, 2024?
Written as code:
```python
from datetime import date
first = date(2024, 6, 6) # datetime.date(2024, 6, 6)
last = date(2024, 6, 14) # datetime.date(2024, 6, 14)
days = (last - first).days + 1 # 9
print(days)
```
Executi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0068274 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
From 2004 to 2011, how many years is that?<|eot|>
<|assistant|>
7 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "From 2004 to 2011, how many years is that?"
},
{
"role": "assistant",
"content": "7 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0068275 | <|start|><|user|>
Grace buys 7 boxes of 12 notebooks each and gives away 19 notebooks. How many notebooks are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 12
given_away = 19
left = boxes * per_box - given_away # 65
print(left)
```
(Out: 65)
That leaves 65 notebooks.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Grace buys 7 boxes of 12 notebooks each and gives away 19 notebooks. How many notebooks are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 12\ngiven_away = 19\nleft = boxes * per_box - given_away # 65\nprint(left)\n```\n(Out: 65)\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0068276 | <|start|><|user|>
A hall has 19 rows of 11 seats, and 16 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 19
per_row = 11
empty = 16
seated = rows * per_row - empty # 193
print(seated)
```
Printed:
193
193 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 19 rows of 11 seats, and 16 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 19\nper_row = 11\nempty = 16\nseated = rows * per_row - empty # 193\nprint(seated)\n```\nPrinted:\n193\n\n193 seats are take... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "193", "printed": "193", "notation": null} |
nlprog_det-setting-0068277 | An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?
A Python solution:
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 150.0
print(f"{interest:.2f}")
Printed result: 150.00
The interest... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0068278 | On which weekday does April 6, 1997 fall?
Written as code:
```python
from datetime import date
hearing = date(1997, 4, 6) # datetime.date(1997, 4, 6)
print(hearing.strftime("%A"))
```
Running it prints Sunday, as expected.
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0068279 | <|start|><|user|>
Split $4,744 between Abel and Sami in the ratio 3 to 5. What is Abel's share?<|eot|>
<|assistant|>
Abel gets $1,779.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $4,744 between Abel and Sami in the ratio 3 to 5. What is Abel's share?"
},
{
"role": "assistant",
"content": "Abel gets $1,779."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1779", "printed": "1779", "notation": null} |
nlprog_det-setting-0068280 | A workshop lasted 3 hours and 53 minutes. How many minutes is that?
Python does the arithmetic:
```python
hours = 3
minutes = 53
total_minutes = hours * 60 + minutes # 233
print(total_minutes)
```
Printed: 233
That is 233 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "233", "printed": "233", "notation": null} |
nlprog_det-setting-0068281 | At $19.50 an hour, what does 20 hours of work pay?
Python:
```python
rate = 19.5
hours = 20
earnings = rate * hours # 390.0
print(f"{earnings:.2f}")
```
# out: 390.00
That earns $390.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "390.00", "printed": "390.00", "notation": null} |
nlprog_det-setting-0068282 | <|start|><|user|>
Split $2,252 between Sara and Mateo in the ratio 1 to 3. What is Sara's share?<|eot|>
<|assistant|>
total = 2252
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 563
print(share_a)
That prints 563.
Sara's share is $563.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,252 between Sara and Mateo in the ratio 1 to 3. What is Sara's share?"
},
{
"role": "assistant",
"content": " total = 2252\n parts_a = 1\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 563\n print(share_a)\nThat prints 563... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "563", "printed": "563", "notation": null} |
nlprog_det-setting-0068283 | <|start|><|user|>
Split $5,864 between Mei and Maren in the ratio 3 to 5. What is Mei's share?<|eot|>
<|assistant|>
Mei gets $2,199.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,864 between Mei and Maren in the ratio 3 to 5. What is Mei's share?"
},
{
"role": "assistant",
"content": "Mei gets $2,199."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "2199", "printed": "2199", "notation": null} |
nlprog_det-setting-0068284 | <|start|><|user|>
A party has 28 days to respond to a motion served on September 24, 2022, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 9, 24) # datetime.date(2022, 9, 24)
response_days = 28
mail_days = ... | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on September 24, 2022, 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(2022, 9, 24) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2022-10-25", "printed": "2022-10-25", "notation": null} |
nlprog_det-setting-0068285 | A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?
Python code:
```python
base = 15
rate = 5.1
used = 14
free = 0
bill = base + rate * max(0, used - free) # 86.39999999999999
print(f"{bill:.2f}")
```
# out: 86.40
$86.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "86.40", "printed": "86.40", "notation": null} |
nlprog_det-setting-0068286 | What simple interest does $8,000 earn at 8% a year over 4 years?
Script:
```python
principal = 8000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 2560.0
print(f"{interest:.2f}")
```
Run result = 2560.00
It earns $2,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2560.00", "printed": "2560.00", "notation": null} |
nlprog_det-setting-0068287 | A claim accrued on March 10, 2015. The limitations period is 3 years. On what date does it expire?
The period expires on March 10, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2018-03-10", "printed": "2018-03-10", "notation": null} |
nlprog_det-setting-0068288 | Eamon earns a 4% commission on $52,780 of sales. What is the commission?
Python version:
```python
sales = 52780
rate = 4 / 100 # 0.04
commission = sales * rate # 2111.2
print(f"{commission:.2f}")
```
(Out: 2111.20)
The commission is $2,111.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2111.20", "printed": "2111.20", "notation": null} |
nlprog_det-setting-0068289 | <|start|><|user|>
Each storage box holds 20 files. How many boxes are needed for 629 files?<|eot|>
<|assistant|>
32 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 629 files?"
},
{
"role": "assistant",
"content": "32 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0068290 | What percentage of $10,000 is $1,100? That is 11.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "11.0", "printed": "11.0", "notation": null} |
nlprog_det-setting-0068291 | Printing costs 12 cents a page. What does it cost to print 45 copies of a 19-page handout?
Program:
```python
pages = 19
copies = 45
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 102.6
print(f"{cost:.2f}")
```
Output of the run — 102.60
Printing costs $102.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "102.60", "printed": "102.60", "notation": null} |
nlprog_det-setting-0068292 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
How many meters are in 37.3 kilometers?<|eot|>
<|assistant|>
```python
km = 37.3
meters = km * 1000 # 37300.0
print(round(meters))
```
Interpreter output — 37300
That is 37,300 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "How many meters are in 37.3 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 37.3\nmeters = km * 1000 # 37300.0\nprint(round(meters))\n```\nInterpreter output — 37300... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "37300", "printed": "37300", "notation": null} |
nlprog_det-setting-0068293 | Which is cheaper per unit: 8 for $12.07 (A) or 20 for $24.64 (B)?
A few lines of Python do it:
```python
pack_a = 12.07 / 8 # 1.50875
pack_b = 24.64 / 20 # 1.232
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The run gives B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068294 | An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 4 months?
Python code:
```python
balance = 1000
monthly_rate = 1 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Output = 40.00
The interest is $40.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0068295 | 98 of 100 members attended. What percent attended?
A Python solution:
present = 98
total = 100
percent = present / total * 100 # 98.0
print(round(percent, 1))
Output of the run — 98.0
98.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "98.0", "printed": "98.0", "notation": null} |
nlprog_det-setting-0068296 | <|start|><|user|>
A trial runs from October 16, 2024 to October 27, 2024, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 10, 16)
last = date(2024, 10, 27)
days = (last - first).days + 1
print(days)
```
Executing it gives 12.
12 calendar d... | chat | [
{
"role": "user",
"content": "A trial runs from October 16, 2024 to October 27, 2024, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 10, 16)\nlast = date(2024, 10, 27)\ndays = (last - first).days... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0068297 | At 60 miles per hour, how many minutes does a 120-mile trip take?
The computation:
```python
distance = 120
speed = 60
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
# printed: 120
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0068298 | At $0.62 per mile, what is the reimbursement for 67 miles?
Coded up:
```python
miles = 67
rate = 0.62
reimbursement = miles * rate # 41.54
print(f"{reimbursement:.2f}")
```
Printed result: 41.54
Mateo is owed $41.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "41.54", "printed": "41.54", "notation": null} |
nlprog_det-setting-0068299 | <|start|><|system|>
Available functions (JSON Schema):
[{"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|>
... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 co... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0068300 | <|start|><|user|>
At $20.26 an hour, what does 32 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 20.26
hours = 32
earnings = rate * hours # 648.32
print(f"{earnings:.2f}")
```
It prints 648.32.
That earns $648.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $20.26 an hour, what does 32 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.26\nhours = 32\nearnings = rate * hours # 648.32\nprint(f\"{earnings:.2f}\")\n```\nIt prints 648.32.\n\nThat earns $648.32."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "648.32", "printed": "648.32", "notation": null} |
nlprog_det-setting-0068301 | At $0.62 per mile, what is the reimbursement for 338 miles?
A few lines of Python do it:
```python
miles = 338
rate = 0.62
reimbursement = miles * rate # 209.56
print(f"{reimbursement:.2f}")
```
Out — 209.56
The reimbursement is $209.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "209.56", "printed": "209.56", "notation": null} |
nlprog_det-setting-0068302 | The rules require 2/3 of 56 members (round up) to be present. How many is that?
Python does the arithmetic:
```python
import math
members = 56
quorum = math.ceil(members * 2 / 3) # 38
print(quorum)
```
Out: 38
That is 38 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0068303 | With 7 rows of 18 chairs and 23 empty chairs, how many chairs are taken? 103 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "103", "printed": "103", "notation": null} |
nlprog_det-setting-0068304 | 3 swims at 400 calories each burn how many calories in total?
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0068305 | Papers were served by mail on January 16, 2019. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
Computation in Python:
```python
from datetime import date, timedelta
served = date(2019, 1, 16) # datetime.date(2019, 1, 16)
response_days = 30
mail_days = 3
due = served + ti... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2019-02-18", "printed": "2019-02-18", "notation": null} |
nlprog_det-setting-0068306 | How much is a $79 daily meal allowance over 8 days?
We write it as a program:
```python
days = 8
meal_rate = 79
total = days * meal_rate # 632
print(total)
```
Console:
632
That comes to $632. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "632", "printed": "632", "notation": null} |
nlprog_det-setting-0068307 | <|start|><|system|>
You have access to these functions:
[{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A client paid a $10,000 ret... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "8625", "printed": "8625", "notation": null} |
nlprog_det-setting-0068308 | Dara was born on August 26, 1956. How old is Dara on December 1, 2030?
The age is 74 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0068309 | <|start|><|system|>
Tools (call with JSON):
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type":... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"fetch_filing\", \"description\": \"Fetch ... | nlprog_det | setting | original | null | deterministic | [] | [] | 367 | {"gold": "40.63", "printed": "40.63", "notation": null} |
nlprog_det-setting-0068311 | <|start|><|user|>
What average speed covers 512 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 512
hours = 2
speed = distance / hours # 256.0
print(round(speed))
```
The run gives 256.
It averages 256 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 512 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 512\nhours = 2\nspeed = distance / hours # 256.0\nprint(round(speed))\n```\nThe run gives 256.\n\nIt averages 256 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "256", "printed": "256", "notation": null} |
nlprog_det-setting-0068312 | <|start|><|user|>
Straight-line depreciation: cost $30,000, salvage $6,000, 10 years. How much per year?<|eot|>
<|assistant|>
cost = 30000
salvage = 6000
years = 10
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
Out:
2400.00
$2,400.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $6,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 30000\n salvage = 6000\n years = 10\n per_year = (cost - salvage) / years # 2400.0\n print(f\"{per_year:.2f}\")\nOut... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0068313 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A 6% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1166.0
print(f"{new_rent:.2f}")
```
(Printed result: 1166.00)
The... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A 6% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 6 / 100 # 0.06\nnew_rent = rent... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1166.00", "printed": "1166.00", "notation": null} |
nlprog_det-setting-0068314 | At an exchange rate of 0.92 EUR per USD, how many EUR is 5,757 USD?
A Python solution:
```python
amount = 5757
rate = 0.92
converted = amount * rate # 5296.4400000000005
print(f"{converted:.2f}")
```
Output:
5296.44
It converts to 5,296.44 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5296.44", "printed": "5296.44", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.