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-0058516 | What is 40 degrees Celsius in Fahrenheit?
Computation in Python:
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
Execution result: 104
That is 104 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0058517 | <|start|><|user|>
Split $6,152 between Hana and Reza in the ratio 3 to 5. What is Hana's share?<|eot|>
<|assistant|>
```python
total = 6152
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2307
print(share_a)
```
# output: 2307
Hana's share is $2,307.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $6,152 between Hana and Reza in the ratio 3 to 5. What is Hana's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 6152\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2307\nprint(share_a)\n```\n# output: 2307\n\nH... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2307", "printed": "2307", "notation": null} |
nlprog_det-setting-0058518 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
How many whole days and leftover hours are in 88 hours?<|eot|>
<|assistant|>
```python
hours = 88
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output of the run — 3 days and 16 hours
88 hours is 3 days and 16 hours.<|eot|... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 88 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 88\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hou... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "3 days and 16 hours", "printed": "3 days and 16 hours", "notation": null} |
nlprog_det-setting-0058519 | <|start|><|user|>
A film lasted 4 hours and 8 minutes. How many minutes is that?<|eot|>
<|assistant|>
The film lasted 248 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A film lasted 4 hours and 8 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "The film lasted 248 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "248", "printed": "248", "notation": null} |
nlprog_det-setting-0058520 | Which is cheaper per unit: 8 for $13.05 (A) or 20 for $8.97 (B)?
Set it up in Python:
pack_a = 13.05 / 8 # 1.63125
pack_b = 8.97 / 20 # 0.4485
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
stdout = B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0058521 | A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Written as code:
```python
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + inte... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "110.00", "printed": "110.00", "notation": null} |
nlprog_det-setting-0058522 | Printing costs 8 cents a page. What does it cost to print 174 copies of a 9-page handout?
```python
pages = 9
copies = 174
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 125.28
print(f"{cost:.2f}")
```
The code prints: 125.28
The job costs $125.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "125.28", "printed": "125.28", "notation": null} |
nlprog_det-setting-0058523 | Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Python code:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
It outputs 50.0.
Profit is 50.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0058524 | A car travels 572 miles in 2 hours. What is its average speed in miles per hour?
A short script:
```python
distance = 572
hours = 2
speed = distance / hours # 286.0
print(round(speed))
```
Executing it gives 286, as expected.
It averages 286 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "286", "printed": "286", "notation": null} |
nlprog_det-setting-0058525 | <|start|><|user|>
A $1,500 security deposit has deductions of $45. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [45]
refund = deposit - sum(deductions) # 1455
print(refund)
```
Output of the run: 1455
The refund is $1,455.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $45. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [45]\nrefund = deposit - sum(deductions) # 1455\nprint(refund)\n```\nOutput of the run: 1455\n\nThe refund is $1,45... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1455", "printed": "1455", "notation": null} |
nlprog_det-setting-0058527 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after April 25, 2020 through May 8, 2020?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 4, 25)
end = date(2020, 5, 8)
count = 0
for k in range(1, (end - start).days + 1):
if (start + time... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after April 25, 2020 through May 8, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 4, 25)\nend = date(2020, 5, 8)\ncount = 0\nfor ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0058528 | A car travels 170 miles in 0.5 hours. What is its average speed in miles per hour?
The computation:
```python
distance = 170
hours = 0.5
speed = distance / hours # 340.0
print(round(speed))
```
It prints 340, as expected.
It averages 340 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "340", "printed": "340", "notation": null} |
nlprog_det-setting-0058529 | A recipe for 8 people uses 100 grams of rice. How many grams are needed for 12 people?
We can compute it in Python.
```python
grams = 100
serves = 8
needed_for = 12
scaled = grams * needed_for // serves
print(scaled)
```
That prints 150.
Use 150 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0058530 | <|start|><|user|>
What commission does Nilufar make on $117,124 in sales at 8%?<|eot|>
<|assistant|>
```python
sales = 117124
rate = 8 / 100 # 0.08
commission = sales * rate # 9369.92
print(f"{commission:.2f}")
```
stdout — 9369.92
The commission is $9,369.92.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Nilufar make on $117,124 in sales at 8%?"
},
{
"role": "assistant",
"content": "```python\nsales = 117124\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 9369.92\nprint(f\"{commission:.2f}\")\n```\nstdout — 9369.92\n\nThe commission is $9,... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "9369.92", "printed": "9369.92", "notation": null} |
nlprog_det-setting-0058531 | At a 9% tax rate, what is the tax on $172.72?
Program:
```python
price = 172.72
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 15.544799999999999
print(f"{tax:.2f}")
```
# console output: 15.54
$15.54 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "15.54", "printed": "15.54", "notation": null} |
nlprog_det-setting-0058532 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "Executes a Python pr... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"na... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "229", "printed": "229", "notation": null} |
nlprog_det-setting-0058533 | Convert 6,081 USD to CAD at 1 USD = 0.92 CAD.
Here's the code.
```python
amount = 6081
rate = 0.92
converted = amount * rate # 5594.52
print(f"{converted:.2f}")
```
The run gives 5594.52.
That is 5,594.52 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "5594.52", "printed": "5594.52", "notation": null} |
nlprog_det-setting-0058534 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0058535 | Fixed costs are $4,000. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even?
Set it up in Python:
```python
import math
fixed = 4000
price = 25
variable = 17
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
Printed = 500
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0058537 | <|start|><|user|>
What commission does Dara make on $40,776 in sales at 3%?<|eot|>
<|assistant|>
The commission is $1,223.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Dara make on $40,776 in sales at 3%?"
},
{
"role": "assistant",
"content": "The commission is $1,223.28."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1223.28", "printed": "1223.28", "notation": null} |
nlprog_det-setting-0058538 | 7 boxes hold 6 staplers each. After 9 are handed out, how many are left?
Script:
```python
boxes = 7
per_box = 6
given_away = 9
left = boxes * per_box - given_away # 33
print(left)
```
Output of the run — 33
That leaves 33 staplers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0058539 | <|start|><|user|>
A customer buys 4 scissors at $23 each, 6 binders at $20 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(4, 23), (6, 20)]
total = sum(q * p for q, p in items) # 212
paid = 250
change = paid - total # 38
print(change)
```
This prints: 38
$38 comes back.<|eot... | chat | [
{
"role": "user",
"content": "A customer buys 4 scissors at $23 each, 6 binders at $20 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 23), (6, 20)]\ntotal = sum(q * p for q, p in items) # 212\npaid = 250\nchange = paid - total # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0058540 | <|start|><|user|>
A party has 28 days to respond to a motion served on March 14, 2022, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
The response is due on April 14, 2022.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on March 14, 2022, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "The response is due on April 14, 2022."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "2022-04-14", "printed": "2022-04-14", "notation": null} |
nlprog_det-setting-0058541 | How many meters are in 29.2 kilometers?
Let the code do the arithmetic:
km = 29.2
meters = km * 1000 # 29200.0
print(round(meters))
It outputs: 29200
29,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "29200", "printed": "29200", "notation": null} |
nlprog_det-setting-0058542 | What percentage of $10,000 is $700?
We can compute it in Python.
```python
budget = 10000
spent = 700
percent = spent / budget * 100 # 7.000000000000001
print(round(percent, 1))
```
Executing it gives: 7.0
7.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7.0", "printed": "7.0", "notation": null} |
nlprog_det-setting-0058543 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0058544 | A 6-month warranty starts on October 14, 2023. On what date does it end?
It expires on April 14, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2024-04-14", "printed": "2024-04-14", "notation": null} |
nlprog_det-setting-0058545 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 6
rate = 275
left = retainer - hours * rate # 8350
print(left)
```
This prints 8350.
The remaining balance is $8,350.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 6\nrate = 275\nleft = retainer - hours * rate # 8350\nprint(left)\n```\nThi... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "8350", "printed": "8350", "notation": null} |
nlprog_det-setting-0058546 | A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share?
Written as code:
```python
bill = 210
tip_rate = 18 / 100
people = 6
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
Console:
41.30
Each person pays $41.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "41.30", "printed": "41.30", "notation": null} |
nlprog_det-setting-0058547 | How many units at $25 each (variable cost $15) cover $6,000 of fixed costs?
Here's the code.
```python
import math
fixed = 6000
price = 25
variable = 15
units = math.ceil(fixed / (price - variable)) # 600
print(units)
```
Printed result: 600
Break-even is 600 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0058548 | If a 4-year limitations period starts on February 22, 2020, when does it end?
```python
from datetime import date
accrued = date(2020, 2, 22) # datetime.date(2020, 2, 22)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 2, 22)
print(expires.isoformat())
```
The program prints: 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2024-02-22", "printed": "2024-02-22", "notation": null} |
nlprog_det-setting-0058549 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 361 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0058550 | <|start|><|system|>
You can call tools. Available tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "param... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"fetch_filing\", \"descrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 349 | {"gold": "483", "printed": "483", "notation": null} |
nlprog_det-setting-0058551 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "convert_units", "desc... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 412 | {"gold": "159", "printed": "159", "notation": null} |
nlprog_det-setting-0058552 | Starting with 854 file boxes and using 38 per day, how many remain after 13 days?
The Python version:
```python
stock = 854
per_day = 38
days = 13
left = stock - per_day * days # 360
print(left)
```
# output: 360
360 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0058553 | <|start|><|system|>
You may call the tools below.
[{"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"]}}, {"name": "fetch_filing", ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\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\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 350 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0058554 | Signe earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?
Python makes this quick:
```python
rate = 22.4
hours = 41
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 33.599999999999994
pay = regular + overtime # 929.6
print(f"{pay:.2f}")
```
Output = 929.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "929.60", "printed": "929.60", "notation": null} |
nlprog_det-setting-0058555 | <|start|><|system|>
Tools (call with JSON):
[{"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": "Executes Python ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 371 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0058556 | <|start|><|user|>
What is 35 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
# program output: 95
That is 95 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 35 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 35\nfahrenheit = celsius * 9 / 5 + 32 # 95.0\nprint(round(fahrenheit))\n```\n# program output: 95\n\nThat is 95 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0058557 | <|start|><|user|>
Counting the first and last day, how many days are there from September 19, 2022 through October 5, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 9, 19) # datetime.date(2022, 9, 19)
last = date(2022, 10, 5) # datetime.date(2022, 10, 5)
days = (last - first).days +... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from September 19, 2022 through October 5, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 9, 19) # datetime.date(2022, 9, 19)\nlast = date(2022, 10, 5) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0058558 | A shift runs from 8:58 AM to 1:55 PM. How long is it in minutes?
Computation in Python:
```python
start = 8 * 60 + 58 # 538
end = 13 * 60 + 55 # 835
print(end - start)
```
Result: 297
It is 297 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "297", "printed": "297", "notation": null} |
nlprog_det-setting-0058559 | <|start|><|user|>
Someone works 12 hours at $31.29 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 31.29
hours = 12
earnings = rate * hours # 375.48
print(f"{earnings:.2f}")
```
What it prints — 375.48
The pay is $375.48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 12 hours at $31.29 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 31.29\nhours = 12\nearnings = rate * hours # 375.48\nprint(f\"{earnings:.2f}\")\n```\nWhat it prints — 375.48\n\nThe pay is $375.48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "375.48", "printed": "375.48", "notation": null} |
nlprog_det-setting-0058560 | <|start|><|system|>
Functions:
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Buying 5 pens at $20 each, 1 badges at $13 each, s... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0058561 | How many of 205 votes make 75% (round up)?
154 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0058562 | Fiona buys 10 boxes of 10 file boxes each and gives away 9 file boxes. How many file boxes are left?
boxes = 10
per_box = 10
given_away = 9
left = boxes * per_box - given_away # 91
print(left)
Out:
91
That leaves 91 file boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0058563 | How many weekdays (Monday to Friday) fall after May 18, 2026 up to and including June 2, 2026?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2026, 5, 18)
end = date(2026, 6, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0058564 | From 2006 to 2010, how many years is that?
Python version:
```python
start_year = 2006
end_year = 2010
print(end_year - start_year)
```
Out = 4
4 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0058565 | With 7 rows of 19 chairs and 40 empty chairs, how many chairs are taken?
A Python solution:
```python
rows = 7
per_row = 19
empty = 40
seated = rows * per_row - empty # 93
print(seated)
```
# console output: 93
93 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0058566 | How many weekdays (Monday to Friday) fall after October 9, 2020 up to and including November 2, 2020?
A Python solution:
```python
from datetime import date, timedelta
start = date(2020, 10, 9)
end = date(2020, 11, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0058567 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
At an exchange rate of 0.7... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"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 | [] | [] | 229 | {"gold": "4496.98", "printed": "4496.98", "notation": null} |
nlprog_det-setting-0058568 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days", "d... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 378 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0058569 | <|start|><|user|>
Convert 2,810 EUR to USD at 1 EUR = 1.35 USD.<|eot|>
<|assistant|>
```python
amount = 2810
rate = 1.35
converted = amount * rate # 3793.5000000000005
print(f"{converted:.2f}")
```
What it prints — 3793.50
That is 3,793.50 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2,810 EUR to USD at 1 EUR = 1.35 USD."
},
{
"role": "assistant",
"content": "```python\namount = 2810\nrate = 1.35\nconverted = amount * rate # 3793.5000000000005\nprint(f\"{converted:.2f}\")\n```\nWhat it prints — 3793.50\n\nThat is 3,793.50 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "3793.50", "printed": "3793.50", "notation": null} |
nlprog_det-setting-0058570 | <|start|><|user|>
A car travels 368 miles in 4 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 368
hours = 4
speed = distance / hours # 92.0
print(round(speed))
```
It prints: 92
It averages 92 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 368 miles in 4 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 368\nhours = 4\nspeed = distance / hours # 92.0\nprint(round(speed))\n```\nIt prints: 92\n\nIt averages 92 miles per hour."... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0058571 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "define... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "2027-07-22", "printed": "2027-07-22", "notation": null} |
nlprog_det-setting-0058572 | A lawyer's fee is 35% of a $90,000 recovery. How large is the fee?
Here's the code.
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
It prints 31500.00, as expected.
The lawyer's fee comes to $31,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0058573 | Counting the first and last day, how many days are there from December 9, 2019 through December 21, 2019?
As Python:
from datetime import date
first = date(2019, 12, 9) # datetime.date(2019, 12, 9)
last = date(2019, 12, 21) # datetime.date(2019, 12, 21)
days = (last - first).days + 1 # 13
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0058574 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Each of Fiona's walks burns 200 calories. How many calories over 3 walks?<|eot|>
<|assistant|>
That burns 600 calories.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Each of Fiona's walks burns 200 calories. How many calories over 3 walks?"
},
{
"role": "assistant",
"content": "That burns 600 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0058575 | Scale 200 g of oats from 2 servings to 8 servings.
Python does the arithmetic:
```python
grams = 200
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 800
print(scaled)
```
Printed — 800
800 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0058576 | A storeroom has 1037 notebooks. The office uses 17 a day. How many are left after 15 days?
In code:
```python
stock = 1037
per_day = 17
days = 15
left = stock - per_day * days # 782
print(left)
```
Printed — 782
782 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "782", "printed": "782", "notation": null} |
nlprog_det-setting-0058577 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $18. What do 8 hours cost?<|eot|>
<|assistant|>
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $18. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "The charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0058578 | Goods bought on March 27, 2019 carry a 12-month warranty. When does it expire?
Written as code:
```python
from datetime import date
start = date(2019, 3, 27)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2020-03-27", "printed": "2020-03-27", "notation": null} |
nlprog_det-setting-0058579 | $1,000 is invested at 2% compounded yearly. What is it worth after 4 years?
Set it up in Python:
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 4
value = principal * (1 + rate) ** years # 1082.43216
print(f"{value:.2f}")
```
Output: 1082.43
The balance is $1,082.43. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1082.43", "printed": "1082.43", "notation": null} |
nlprog_det-setting-0058580 | A storeroom has 1591 toner kits. The office uses 8 a day. How many are left after 19 days?
Let the code do the arithmetic:
```python
stock = 1591
per_day = 8
days = 19
left = stock - per_day * days # 1439
print(left)
```
Run result — 1439
1439 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1439", "printed": "1439", "notation": null} |
nlprog_det-setting-0058581 | <|start|><|user|>
Equipment costs $24,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
cost = 24000
salvage = 0
years = 3
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
It prints 8000.00.
Depreciation i... | chat | [
{
"role": "user",
"content": "Equipment costs $24,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": " cost = 24000\n salvage = 0\n years = 3\n per_year = (cost - salvage) / years\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0058582 | A 110-page report must be reviewed in 10 days. How many pages a day is that, evenly?
In Python:
```python
pages = 110
days = 10
per_day = pages // days
print(per_day)
```
Running it prints: 11
11 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0058583 | A garage charges $2 an hour, never more than $15 a day. How much for 8 hours?
```python
rate = 2
hours = 8
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Run it and it prints 15.
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0058584 | A customer buys 1 rulers at $14 each, 2 headsets at $30 each, 3 headsets at $15 each, 6 labels at $2 each and pays with $150. How much change is due?
In Python:
```python
items = [(1, 14), (2, 30), (3, 15), (6, 2)]
total = sum(q * p for q, p in items) # 131
paid = 150
change = paid - total # 19
print(change)
```
Run... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0058586 | What does $1,000 grow to in 3 years at 4% annual compounding? The balance is $1,124.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1124.86", "printed": "1124.86", "notation": null} |
nlprog_det-setting-0058587 | An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Running this gives: 225.00
$225.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0058588 | <|start|><|user|>
Convert 85.9 km to meters.<|eot|>
<|assistant|>
```python
km = 85.9
meters = km * 1000
print(round(meters))
```
The program prints 85900.
85,900 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 85.9 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 85.9\nmeters = km * 1000\nprint(round(meters))\n```\nThe program prints 85900.\n\n85,900 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "85900", "printed": "85900", "notation": null} |
nlprog_det-setting-0058589 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|>
<|assistant|>
```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}")
```
stdout: 712.00
The... | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 43\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 72.0\npay = regular + ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "712.00", "printed": "712.00", "notation": null} |
nlprog_det-setting-0058590 | <|start|><|user|>
A claim accrued on November 25, 2023. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2023, 11, 25) # datetime.date(2023, 11, 25)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(202... | chat | [
{
"role": "user",
"content": "A claim accrued on November 25, 2023. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2023, 11, 25) # datetime.date(2023, 11, 25)\nyears = 3\nexpires = accru... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2026-11-25", "printed": "2026-11-25", "notation": null} |
nlprog_det-setting-0058591 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons?
Program:
```python
base = 15
rate = 4.75
used = 10
free = 0
bill = base + rate * max(0, used - free) # 62.5
print(f"{bill:.2f}")
```
Executed, it shows: 62.50
The bill is $62.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "62.50", "printed": "62.50", "notation": null} |
nlprog_det-setting-0058592 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 300
print(units)
```
(Out: 300)
300 units are needed.<|eo... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 25\nvariable = 21\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0058593 | <|start|><|user|>
How many units at $40 each (variable cost $35) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 1200
print(units)
```
(Run result: 1200)
1200 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $35) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) # 1200\nprint(units)\n```\n(Run result:... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0058595 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?
Here is the program.
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 212.0
print(f"{paym... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0058596 | The meal allowance is $79 per day. What is it for 8 days?
The program:
```python
days = 8
meal_rate = 79
total = days * meal_rate # 632
print(total)
```
Out — 632
The allowance is $632. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "632", "printed": "632", "notation": null} |
nlprog_det-setting-0058597 | A 11 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Here is a short program for it.
```python
import math
length = 11
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 42
print(tiles)
```
Python prints 42.
42 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0058598 | A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 38-page copy cost?
The computation:
```python
pages = 38
base = 5
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 14.5
print(f"{cost:.2f}")
```
(Output: 14.50)
The total is $14.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "14.50", "printed": "14.50", "notation": null} |
nlprog_det-setting-0058599 | Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
Shell output — 1.4
The margin is 1.4%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0058600 | Mateo was born on October 3, 1995. How old is Mateo on September 7, 2028?
The Python version:
from datetime import date
born = date(1995, 10, 3) # datetime.date(1995, 10, 3)
on = date(2028, 9, 7) # datetime.date(2028, 9, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0058601 | <|start|><|user|>
How much is a $74 daily meal allowance over 8 days?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 74
total = days * meal_rate # 592
print(total)
```
# run result: 592
That comes to $592.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $74 daily meal allowance over 8 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 74\ntotal = days * meal_rate # 592\nprint(total)\n```\n# run result: 592\n\nThat comes to $592."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "592", "printed": "592", "notation": null} |
nlprog_det-setting-0058602 | After an initial $3,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?
Python version:
```python
grant = 30000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 6750.0
print(f"{each:.2f}")
```
Run result — 6750.00
Each installment is $6,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6750.00", "printed": "6750.00", "notation": null} |
nlprog_det-setting-0058603 | A pack of 5 flash drives sells for $205. What does each cost?
A Python solution:
```python
total = 205
count = 5
per_item = total // count # 41
print(per_item)
```
The code prints: 41
The unit price is $41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0058604 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
If a 4-year limitations period starts on July 27, 2018, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2018, 7, 27) # datetime.date(2018, 7, 27)
years = 4
expires = accrued.replace(year=accrued.year + ye... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "If a 4-year limitations period starts on July 27, 2018, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2018, 7, 27) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2022-07-27", "printed": "2022-07-27", "notation": null} |
nlprog_det-setting-0058605 | A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?
```python
recovery = 60000
rate = 33 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
The program outputs: 19800.00
The fee is $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0058606 | A garage charges $3 an hour, never more than $24 a day. How much for 12 hours?
Here is a short program for it.
```python
rate = 3
hours = 12
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
(Output: 24)
Parking costs $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0058607 | Convert -10 °C to Fahrenheit.
In code:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
(Run result: 14)
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0058608 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
How long, in days, is it from December 2, 2028 until February 9, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 12, 2) # datetime.date(2028, 12, 2)
second = date(2029, 2, 9) # datetime.date(2029, 2, 9)
print((second... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "How long, in days, is it from December 2, 2028 until February 9, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 12, 2) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0058609 | <|start|><|user|>
A meal costs $173.12. How much is a 10% tip?<|eot|>
<|assistant|>
```python
bill = 173.12
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 17.312
print(f"{tip:.2f}")
```
(Printed: 17.31)
Leave $17.31.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $173.12. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 173.12\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 17.312\nprint(f\"{tip:.2f}\")\n```\n(Printed: 17.31)\n\nLeave $17.31."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "17.31", "printed": "17.31", "notation": null} |
nlprog_det-setting-0058610 | A lawyer's fee is 35% of a $25,000 recovery. How large is the fee?
The computation:
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
Shell output: 8750.00
The fee is $8,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0058611 | Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?
As a program:
```python
cost = 12000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 3333.3333333333335
print(f"{per_year:.2f}")
```
Running it prints 3333.33.
Depreciation is $3,333.33 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "3333.33", "printed": "3333.33", "notation": null} |
nlprog_det-setting-0058612 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
How much sales tax is charged on a $377.34 purchase at 7%?<|eot|>
<|assistant|>
```python
price = 377.34
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 26.413800000000002
print(f"{tax:.2f}")
```
(Execution result: 26.41)
$26.41 in tax.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "How much sales tax is charged on a $377.34 purchase at 7%?"
},
{
"role": "assistant",
"content": "```python\nprice = 377.34\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 26.413... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "26.41", "printed": "26.41", "notation": null} |
nlprog_det-setting-0058613 | What is the total rent on a 24-month lease at $2,100 a month?
We can compute it in Python.
```python
monthly_rent = 2100
months = 24
total = monthly_rent * months
print(total)
```
On running, it outputs 50400.
The rent over the term is $50,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0058615 | At 1% a month (simple), what interest builds on $7,500 over 5 months?
Let's compute it with Python.
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 375.0
print(f"{interest:.2f}")
```
The code prints 375.00.
$375.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0058616 | Split $1,083 between Rosa and Viktor in the ratio 1 to 2. What is Rosa's share?
```python
total = 1083
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 361
print(share_a)
```
The script prints: 361
Rosa's share is $361. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "361", "printed": "361", "notation": null} |
nlprog_det-setting-0058617 | 1 books come back 17 days late, at $0.15 a day each. What is the fine?
$2.55 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2.55", "printed": "2.55", "notation": null} |
nlprog_det-setting-0058618 | <|start|><|system|>
Tools (call with JSON):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "calc", "description": "Executes P... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 335 | {"gold": "2022-04-25", "printed": "2022-04-25", "notation": null} |
nlprog_det-setting-0058620 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Goods bought on Novemb... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 271 | {"gold": "2019-11-25", "printed": "2019-11-25", "notation": null} |
nlprog_det-setting-0058621 | At an exchange rate of 1.35 USD per GBP, how many USD is 8,982 GBP?
Python makes this quick:
```python
amount = 8982
rate = 1.35
converted = amount * rate
print(f"{converted:.2f}")
```
Output = 12125.70
That is 12,125.70 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "12125.70", "printed": "12125.70", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.