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-0051626 | A workshop lasted 3 hours and 21 minutes. How many minutes is that?
As a program:
```python
hours = 3
minutes = 21
total_minutes = hours * 60 + minutes # 201
print(total_minutes)
```
Output — 201
That is 201 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0051627 | Someone born June 12, 1960 turns how old by June 14, 2022? Give the age in whole years.
The age is 62 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0051628 | A $800 security deposit has deductions of $60, $85 and $60. How much is refunded?
Programmatically:
deposit = 800
deductions = [60, 85, 60]
refund = deposit - sum(deductions) # 595
print(refund)
# stdout: 595
$595 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "595", "printed": "595", "notation": null} |
nlprog_det-setting-0051629 | How many units at $15 each (variable cost $5) cover $6,000 of fixed costs?
600 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0051630 | Count 30 days forward from July 13, 2021. What date is that?
The Python version:
```python
from datetime import date, timedelta
start = date(2021, 7, 13) # datetime.date(2021, 7, 13)
end = start + timedelta(days=30) # datetime.date(2021, 8, 12)
print(end.isoformat())
```
What it prints — 2021-08-12
That date is Aug... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2021-08-12", "printed": "2021-08-12", "notation": null} |
nlprog_det-setting-0051631 | How many units at $40 each (variable cost $32) cover $2,500 of fixed costs?
We write it as a program:
```python
import math
fixed = 2500
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 313
print(units)
```
# out: 313
313 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0051632 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 52
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 450.0
pay = regular + overtime # ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 52\nregular = 40 * ra... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "1450.00", "printed": "1450.00", "notation": null} |
nlprog_det-setting-0051633 | <|start|><|system|>
Tools you may use:
[{"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": "compute", "description": "Executes Pyt... | chat | [
{
"role": "system",
"content": "Tools you may use:\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\", \"sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0051634 | A 6 lb package ships at $10 base plus $2.50/lb. What is the charge?
Computing it:
```python
base = 10
per_pound = 2.5
weight = 6
cost = base + per_pound * weight # 25.0
print(f"{cost:.2f}")
```
Output — 25.00
Shipping costs $25.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0051635 | Papers were served by mail on August 16, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
Computation in Python:
from datetime import date, timedelta
served = date(2027, 8, 16) # datetime.date(2027, 8, 16)
response_days = 30
mail_days = 3
due = se... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2027-09-18", "printed": "2027-09-18", "notation": null} |
nlprog_det-setting-0051636 | How many whole days and leftover hours are in 229 hours?
Python version:
```python
hours = 229
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program prints: 9 days and 13 hours
229 hours is 9 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "9 days and 13 hours", "printed": "9 days and 13 hours", "notation": null} |
nlprog_det-setting-0051637 | A seminar starts at 11:00 AM and lasts 25 minutes. When does it end?
As a program:
```python
start = 11 * 60 + 0
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Printed:
11:25 AM
It ends at 11:25 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "11:25 AM", "printed": "11:25 AM", "notation": null} |
nlprog_det-setting-0051638 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
4 friends split a $240 bill pl... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0051639 | Each storage box holds 50 files. How many boxes are needed for 80 files?
Python version:
```python
import math
files = 80
per_box = 50
boxes = math.ceil(files / per_box) # 2
print(boxes)
```
Output — 2
2 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0051640 | 32 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
We write it as a program:
```python
total = 32
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Out: 5 each, 2 left over
The answer: 5 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5 each, 2 left over", "printed": "5 each, 2 left over", "notation": null} |
nlprog_det-setting-0051641 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Bruna and Grace share $3,752 in the ratio 3:5. How much does Bruna get?<|eot|>
<|assistant|>
```python
total = 3752
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1407
print(share_a)
```
Console:
1407
Bruna's share is $1,407.... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Bruna and Grace share $3,752 in the ratio 3:5. How much does Bruna get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 3752\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a /... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1407", "printed": "1407", "notation": null} |
nlprog_det-setting-0051642 | At 45 miles per hour, how many minutes does a 135-mile trip take?
```python
distance = 135
speed = 45
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Running it prints: 180
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0051643 | The rules require 1/3 of 15 members (round up) to be present. How many is that?
5 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0051644 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Rent of $1,100 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
```
The code prints 1155.00.
The new rent is $1,155.00.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Rent of $1,100 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1155.0\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0051645 | How much sales tax is charged on a $766.06 purchase at 7%?
The Python version:
```python
price = 766.06
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 53.6242
print(f"{tax:.2f}")
```
# program output: 53.62
The tax is $53.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "53.62", "printed": "53.62", "notation": null} |
nlprog_det-setting-0051646 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A training session lasted 1 hours and 19 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 1
minutes = 19
total_minutes = hours * 60 + minutes # 79
print(total_minutes)
```
Program output: 79
That is 79 minutes.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A training session lasted 1 hours and 19 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 1\nminutes = 19\ntotal_minutes = hours * 60 + minut... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0051647 | A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 84-page copy cost?
Code:
```python
pages = 84
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 12.4
print(f"{cost:.2f}")
```
Running it prints 12.40.
The copy costs $12.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "12.40", "printed": "12.40", "notation": null} |
nlprog_det-setting-0051648 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "python_exec", "description": "Runs a short Python snippet and returns what it pri... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"python_exec\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0051649 | <|start|><|system|>
Tools you may use:
{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
2 claimants share a $84,000 settl... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "42000", "printed": "42000", "notation": null} |
nlprog_det-setting-0051650 | Shipping costs $12 plus $1.20 per pound. What does a 27-pound parcel cost to ship?
The program:
```python
base = 12
per_pound = 1.2
weight = 27
cost = base + per_pound * weight # 44.4
print(f"{cost:.2f}")
```
What it prints — 44.40
Shipping costs $44.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "44.40", "printed": "44.40", "notation": null} |
nlprog_det-setting-0051651 | <|start|><|user|>
A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 6
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 994
print(total)
```
The program prints 994, ... | chat | [
{
"role": "user",
"content": "A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 6\nmeal_rate = 74\nlodging_rate = 110\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0051652 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
How many of 199 votes make 67% (round up)?<|eot|>
<|assistant|>
At least 134 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "How many of 199 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "At least 134 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0051653 | A room is 25 feet by 7 feet. Flooring costs $5 per square foot. What does it cost to floor the room?
The flooring costs $875. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "875", "printed": "875", "notation": null} |
nlprog_det-setting-0051654 | Equal monthly payments repay $3,600 plus 5% simple yearly interest over 12 months. How large is a payment?
A Python solution:
```python
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + interest) / months # 315.0
print(f"{paymen... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "315.00", "printed": "315.00", "notation": null} |
nlprog_det-setting-0051655 | Starting from $8,000, the team spends $3,900, $3,774. What remains?
As Python:
```python
budget = 8000
expenses = [3900, 3774]
left = budget - sum(expenses)
print(left)
```
Executed, it shows 326.
$326 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "326", "printed": "326", "notation": null} |
nlprog_det-setting-0051656 | <|start|><|system|>
Tools (call with JSON):
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "convert_units", "description": "C... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 346 | {"gold": "1744", "printed": "1744", "notation": null} |
nlprog_det-setting-0051657 | How many weekdays (Monday to Friday) fall after September 13, 2019 up to and including October 12, 2019?
The computation:
```python
from datetime import date, timedelta
start = date(2019, 9, 13)
end = date(2019, 10, 12)
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 | [] | [] | 153 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0051659 | <|start|><|system|>
Tools you may use:
{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A 4-day trip pays $79 a day for meals... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "841", "printed": "841", "notation": null} |
nlprog_det-setting-0051660 | <|start|><|user|>
200 copies of a 48-page packet are printed at $0.08 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 48
copies = 200
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 768.0
print(f"{cost:.2f}")
```
The printout reads: 768.00
The job costs $768.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "200 copies of a 48-page packet are printed at $0.08 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 48\ncopies = 200\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 768.0\nprint(f\"{cost:.2f}\")\n```\nThe printou... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "768.00", "printed": "768.00", "notation": null} |
nlprog_det-setting-0051661 | The firm was founded in 2020. How many years had passed by 2023?
We can compute it in Python.
```python
start_year = 2020
end_year = 2023
print(end_year - start_year)
```
# console output: 3
That is 3 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0051662 | A $60,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?
Translated to Python:
```python
grant = 60000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 13500.0
print(f"{each:.2f}")
```
Out:
13500.00
$13,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0051663 | Each storage box holds 50 files. How many boxes are needed for 253 files?
A Python solution:
```python
import math
files = 253
per_box = 50
boxes = math.ceil(files / per_box) # 6
print(boxes)
```
Interpreter output — 6
It takes 6 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0051664 | <|start|><|user|>
Shipping costs $10 plus $2.50 per pound. What does a 40-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.5
weight = 40
cost = base + per_pound * weight # 110.0
print(f"{cost:.2f}")
```
Output:
110.00
The charge is $110.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.50 per pound. What does a 40-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 2.5\nweight = 40\ncost = base + per_pound * weight # 110.0\nprint(f\"{cost:.2f}\")\n```\nOutput:\n110.00\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "110.00", "printed": "110.00", "notation": null} |
nlprog_det-setting-0051665 | <|start|><|user|>
114 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 114
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run output — 16 each, 2 left over
The answer: 16... | chat | [
{
"role": "user",
"content": "114 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 114\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "16 each, 2 left over", "printed": "16 each, 2 left over", "notation": null} |
nlprog_det-setting-0051666 | <|start|><|user|>
A hearing is set for July 19, 1993. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1993, 7, 19) # datetime.date(1993, 7, 19)
print(hearing.strftime("%A"))
```
That prints: Monday
July 19, 1993 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for July 19, 1993. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1993, 7, 19) # datetime.date(1993, 7, 19)\nprint(hearing.strftime(\"%A\"))\n```\nThat prints: Monday\n\nJul... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0051667 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "business_days", "description": "C... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0051668 | A hall has 15 rows of 12 seats, and 18 seats are empty. How many people are seated?
```python
rows = 15
per_row = 12
empty = 18
seated = rows * per_row - empty # 162
print(seated)
```
Console:
162
162 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "162", "printed": "162", "notation": null} |
nlprog_det-setting-0051669 | <|start|><|user|>
A kettle costs $40. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 40
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 28.0
print(f"{sale_price:.2f}")
```
stdout: 28.00
The sale price is $28.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $40. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 40\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 28.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout: 28.00\n\nThe sale price is $2... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0051670 | Counting the first and last day, how many days are there from January 4, 2024 through January 9, 2024?
from datetime import date
first = date(2024, 1, 4) # datetime.date(2024, 1, 4)
last = date(2024, 1, 9) # datetime.date(2024, 1, 9)
days = (last - first).days + 1 # 6
print(days)
The run gives: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0051671 | 4 hours of work at $410 an hour: what is the total charge?
Script:
```python
hours = 4
rate = 410
bill = hours * rate # 1640
print(f"{bill:.2f}")
```
Running it prints 1640.00, as expected.
That comes to $1,640.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0051672 | <|start|><|user|>
Pack A has 6 items for $3.60. Pack B has 15 items for $25.19. Which has the lower price per item?<|eot|>
<|assistant|>
pack_a = 3.6 / 6 # 0.6
pack_b = 25.19 / 15 # 1.6793333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
Run result = A
A has the lower unit ... | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $3.60. Pack B has 15 items for $25.19. Which has the lower price per item?"
},
{
"role": "assistant",
"content": " pack_a = 3.6 / 6 # 0.6\n pack_b = 25.19 / 15 # 1.6793333333333333\n cheaper = \"A\" if pack_a < pack_b else \"B\" # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0051673 | <|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": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|use... | 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\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 276 | {"gold": "2027-02-07", "printed": "2027-02-07", "notation": null} |
nlprog_det-setting-0051674 | 55 of 80 members attended. What percent attended?
Written as code:
```python
present = 55
total = 80
percent = present / total * 100 # 68.75
print(round(percent, 1))
```
The run gives: 68.8
Attendance was 68.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "68.8", "printed": "68.8", "notation": null} |
nlprog_det-setting-0051675 | The paralegal logged 10.5 hours at a rate of $350. How much is billed?
Script:
hours = 10.5
rate = 350
bill = hours * rate # 3675.0
print(f"{bill:.2f}")
Printed = 3675.00
That comes to $3,675.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3675.00", "printed": "3675.00", "notation": null} |
nlprog_det-setting-0051676 | <|start|><|user|>
Someone works 30 hours at $25.01 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 25.01
hours = 30
earnings = rate * hours # 750.3000000000001
print(f"{earnings:.2f}")
```
Executing it gives: 750.30
That earns $750.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 30 hours at $25.01 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.01\nhours = 30\nearnings = rate * hours # 750.3000000000001\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives: 750.30\n\nThat earns $750... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "750.30", "printed": "750.30", "notation": null} |
nlprog_det-setting-0051677 | If a 150-minute seminar begins at 1:15 PM, what time does it finish?
The program:
```python
start = 13 * 60 + 15
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints 3:45 PM.
It ends at 3:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "3:45 PM", "printed": "3:45 PM", "notation": null} |
nlprog_det-setting-0051678 | How many of 22 members form a majority (more than half)?
Let the code do the arithmetic:
```python
members = 22
majority = members // 2 + 1 # 12
print(majority)
```
The script prints: 12
12 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0051679 | <|start|><|system|>
Functions:
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
With 25% off, what does a $60 b... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0051682 | <|start|><|user|>
What simple interest does $8,000 earn at 2% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 2 / 100 # 0.02
years = 2
interest = principal * rate * years # 320.0
print(f"{interest:.2f}")
```
The code prints 320.00.
The interest is $320.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $8,000 earn at 2% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 320.0\nprint(f\"{interest:.2f}\")\n```\nThe code prints 320... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0051684 | Convert 1,381 EUR to USD at 1 EUR = 0.92 USD.
Programmatically:
amount = 1381
rate = 0.92
converted = amount * rate # 1270.52
print(f"{converted:.2f}")
Output — 1270.52
That is 1,270.52 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1270.52", "printed": "1270.52", "notation": null} |
nlprog_det-setting-0051685 | Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Here is a short program for it.
```python
cost = 24000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 2750.0
print(f"{per_year:.2f}")
```
Run output — 2750.00
$2,750.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2750.00", "printed": "2750.00", "notation": null} |
nlprog_det-setting-0051686 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 626 miles?<|eot|>
<|assistant|>
```python
miles = 626
rate = 0.67
reimbursement = miles * rate # 419.42
print(f"{reimbursement:.2f}")
```
Shell output: 419.42
Ada is owed $419.42.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 626 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 626\nrate = 0.67\nreimbursement = miles * rate # 419.42\nprint(f\"{reimbursement:.2f}\")\n```\nShell output: 419.42\n\nAda is owed $419.42."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "419.42", "printed": "419.42", "notation": null} |
nlprog_det-setting-0051687 | Counting only Monday through Friday, how many business days are there after June 13, 2028 through June 22, 2028?
The computation:
```python
from datetime import date, timedelta
start = date(2028, 6, 13)
end = date(2028, 6, 22)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).week... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0051688 | <|start|><|user|>
A class starts at 11:10 AM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 10
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It prints: 12:25 PM
The class finishes at 12:25 PM.<|eo... | chat | [
{
"role": "user",
"content": "A class starts at 11:10 AM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 10\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "12:25 PM", "printed": "12:25 PM", "notation": null} |
nlprog_det-setting-0051690 | Convert 3 h 23 min (the length of a hearing) to minutes.
Coded up:
```python
hours = 3
minutes = 23
total_minutes = hours * 60 + minutes # 203
print(total_minutes)
```
On running, it outputs 203.
That is 203 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "203", "printed": "203", "notation": null} |
nlprog_det-setting-0051691 | A bicycle helmet costs $45. It is 20% off. What is the sale price?
Script:
price = 45
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 36.0
print(f"{sale_price:.2f}")
Output = 36.00
It costs $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0051692 | <|start|><|user|>
Shipping costs $10 plus $1.20 per pound. What does a 21-pound parcel cost to ship?<|eot|>
<|assistant|>
The charge is $35.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $1.20 per pound. What does a 21-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "The charge is $35.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "35.20", "printed": "35.20", "notation": null} |
nlprog_det-setting-0051693 | A chair costs $120. It is 40% off. What is the sale price?
Let the code do the arithmetic:
```python
price = 120
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 72.0
print(f"{sale_price:.2f}")
```
stdout = 72.00
The sale price is $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0051694 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "lookup_statute", "description": "L... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sn... | nlprog_det | setting | original | null | deterministic | [] | [] | 452 | {"gold": "2021-07-08", "printed": "2021-07-08", "notation": null} |
nlprog_det-setting-0051695 | 300 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
Code:
total = 300
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# console output: 33 each, 3 left over
33 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33 each, 3 left over", "printed": "33 each, 3 left over", "notation": null} |
nlprog_det-setting-0051696 | If a 5-year limitations period starts on May 1, 2024, when does it end?
Code:
from datetime import date
accrued = date(2024, 5, 1) # datetime.date(2024, 5, 1)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 5, 1)
print(expires.isoformat())
stdout = 2029-05-01
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2029-05-01", "printed": "2029-05-01", "notation": null} |
nlprog_det-setting-0051697 | 127 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Here's the code.
```python
total = 127
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# execution result: 42 each, 1 left over
The answer: 42 each, 1 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "42 each, 1 left over", "printed": "42 each, 1 left over", "notation": null} |
nlprog_det-setting-0051698 | A deposition lasted 3 hours and 32 minutes. How many minutes is that?
Python, step by step:
```python
hours = 3
minutes = 32
total_minutes = hours * 60 + minutes # 212
print(total_minutes)
```
Printed result — 212
The deposition lasted 212 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "212", "printed": "212", "notation": null} |
nlprog_det-setting-0051699 | Someone born August 5, 1966 turns how old by April 17, 2030? Give the age in whole years.
Python:
from datetime import date
born = date(1966, 8, 5) # datetime.date(1966, 8, 5)
on = date(2030, 4, 17) # datetime.date(2030, 4, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0051700 | <|start|><|user|>
A 17 lb package ships at $10 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.5
weight = 17
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Output — 35.50
The charge is $35.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 17 lb package ships at $10 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.5\nweight = 17\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nOutput — 35.50\n\nThe charge is $35.50."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "35.50", "printed": "35.50", "notation": null} |
nlprog_det-setting-0051701 | Buying 6 mugs at $27 each, 6 tape rolls at $15 each, 3 mugs at $26 each, someone hands over $350. What change comes back?
Script:
```python
items = [(6, 27), (6, 15), (3, 26)]
total = sum(q * p for q, p in items) # 330
paid = 350
change = paid - total # 20
print(change)
```
Interpreter output: 20
The change is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0051702 | <|start|><|user|>
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 40 / 100 # 0.4
fee = recovery * rate # 16000.0
print(f"{fee:.2f}")
```
Running it prints: 16000.00
The lawyer's fee comes to $16,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 16000.0\nprint(f\"{fee:.2f}\")\n```\nRunning it prints: 16000.00\n\nThe lawyer's f... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0051703 | What percentage of $10,000 is $2,700?
Computing it:
```python
budget = 10000
spent = 2700
percent = spent / budget * 100 # 27.0
print(round(percent, 1))
```
Running it prints 27.0, as expected.
27.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "27.0", "printed": "27.0", "notation": null} |
nlprog_det-setting-0051704 | Starting from $25,000, the team spends $1,809, $3,116, $2,791, $3,813. What remains?
We can compute it in Python.
budget = 25000
expenses = [1809, 3116, 2791, 3813]
left = budget - sum(expenses) # 13471
print(left)
Result — 13471
$13,471 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "13471", "printed": "13471", "notation": null} |
nlprog_det-setting-0051705 | <|start|><|user|>
Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.2
used = 6
free = 0
bill = base + rate * max(0, used - free) # 45.2
print(f"{bill:.2f}")
```
Running it prints: 45.20
$45.20 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.2\nused = 6\nfree = 0\nbill = base + rate * max(0, used - free) # 45.2\nprint(f\"{bill:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "45.20", "printed": "45.20", "notation": null} |
nlprog_det-setting-0051706 | <|start|><|user|>
The building opened in 2007. How many years had passed by 2029?<|eot|>
<|assistant|>
```python
start_year = 2007
end_year = 2029
print(end_year - start_year)
```
Interpreter output — 22
That is 22 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2007. How many years had passed by 2029?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2007\nend_year = 2029\nprint(end_year - start_year)\n```\nInterpreter output — 22\n\nThat is 22 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0051708 | <|start|><|system|>
Tools you may use:
[{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Express 171 hours in days and... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "7 days and 3 hours", "printed": "7 days and 3 hours", "notation": null} |
nlprog_det-setting-0051709 | Jae's scores were 102, 80, 74 and 64. What is the average score?
```python
scores = [102, 80, 74, 64]
average = sum(scores) // len(scores) # 80
print(average)
```
The program prints 80.
The average score is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0051710 | <|start|><|user|>
What is a 22% tip on a $163.53 bill?<|eot|>
<|assistant|>
```python
bill = 163.53
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 35.9766
print(f"{tip:.2f}")
```
The program prints 35.98, as expected.
Leave $35.98.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 22% tip on a $163.53 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 163.53\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 35.9766\nprint(f\"{tip:.2f}\")\n```\nThe program prints 35.98, as expected.\n\nLeave $35.98."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "35.98", "printed": "35.98", "notation": null} |
nlprog_det-setting-0051711 | With 30% off, what does a $300 jacket cost?
The Python version:
```python
price = 300
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 210.0
print(f"{sale_price:.2f}")
```
Run output: 210.00
It costs $210.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0051712 | Ivan drove 487 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
```python
miles = 487
rate = 0.58
reimbursement = miles * rate # 282.46
print(f"{reimbursement:.2f}")
```
(Program output: 282.46)
The reimbursement is $282.46. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "282.46", "printed": "282.46", "notation": null} |
nlprog_det-setting-0051713 | From a $10,000 retainer, 5 hours at $250/hour have been drawn. What remains?
A few lines of Python do it:
```python
retainer = 10000
hours = 5
rate = 250
left = retainer - hours * rate # 8750
print(left)
```
Running it prints 8750.
The remaining balance is $8,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "8750", "printed": "8750", "notation": null} |
nlprog_det-setting-0051714 | What average speed covers 406 miles in 2 hours?
Let the code do the arithmetic:
distance = 406
hours = 2
speed = distance / hours # 203.0
print(round(speed))
When run, it prints 203, as expected.
It averages 203 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "203", "printed": "203", "notation": null} |
nlprog_det-setting-0051715 | <|start|><|user|>
$2,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 2122.416
print(f"{value:.2f}")
```
Printed result: 2122.42
It is worth $2,122.42.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$2,000 is invested at 2% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 2122.416\nprint(f\"{value:.2f}\")\n```\nPrin... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2122.42", "printed": "2122.42", "notation": null} |
nlprog_det-setting-0051716 | Sales went from 500 to 375. What is the percent change?
Here is a short program for it.
```python
old = 500
new = 375
change = (new - old) / old * 100 # -25.0
print(round(change))
```
(Run result: -25)
It changed by -25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0051717 | A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Python:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 864.0
payment = (principal + interest) / mo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "124.00", "printed": "124.00", "notation": null} |
nlprog_det-setting-0051718 | Fiona earns a 5% commission on $55,208 of sales. What is the commission?
Computing it:
```python
sales = 55208
rate = 5 / 100 # 0.05
commission = sales * rate # 2760.4
print(f"{commission:.2f}")
```
Executing it gives: 2760.40
The commission is $2,760.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2760.40", "printed": "2760.40", "notation": null} |
nlprog_det-setting-0051719 | A $150 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
```python
bill = 150
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 88.5
print(f"{each:.2f}")
```
The code prints: 88.50
The share is $88.50 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "88.50", "printed": "88.50", "notation": null} |
nlprog_det-setting-0051720 | Monthly: $9. Annual: $84. What is saved per year by paying annually?
One way, in code:
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
Executed, it shows: 24
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0051721 | A shift runs from 11:52 AM to 4:54 PM. How long is it in minutes?
Set it up in Python:
```python
start = 11 * 60 + 52 # 712
end = 16 * 60 + 54 # 1014
print(end - start)
```
The program prints 302, as expected.
It is 302 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "302", "printed": "302", "notation": null} |
nlprog_det-setting-0051722 | From 2008 to 2026, how many years is that?
The Python version:
```python
start_year = 2008
end_year = 2026
print(end_year - start_year)
```
stdout: 18
That is 18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0051723 | <|start|><|user|>
How many of 273 votes make 67% (round up)?<|eot|>
<|assistant|>
import math
voters = 273
needed = math.ceil(voters * 67 / 100) # 183
print(needed)
Out:
183
183 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 273 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": " import math\n voters = 273\n needed = math.ceil(voters * 67 / 100) # 183\n print(needed)\nOut:\n183\n\n183 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "183", "printed": "183", "notation": null} |
nlprog_det-setting-0051725 | <|start|><|user|>
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
Profit is 10.0% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "Profit is 10.0% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0051726 | <|start|><|system|>
Tools you may use:
[{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Shipping costs $8 plus $1.50 per pound. Wha... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "54.50", "printed": "54.50", "notation": null} |
nlprog_det-setting-0051727 | Count 30 days forward from June 18, 2024. What date is that?
That date is July 18, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "2024-07-18", "printed": "2024-07-18", "notation": null} |
nlprog_det-setting-0051728 | <|start|><|user|>
8 hours of work at $350 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 8
rate = 350
bill = hours * rate # 2800
print(f"{bill:.2f}")
```
The program prints: 2800.00
The bill is $2,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 hours of work at $350 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 350\nbill = hours * rate # 2800\nprint(f\"{bill:.2f}\")\n```\nThe program prints: 2800.00\n\nThe bill is $2,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0051729 | A penalty of $50 a day accrues, capped at $5,000. What is owed after 29 days?
Python code:
per_day = 50
days = 29
cap = 5000
fine = min(per_day * days, cap) # 1450
print(fine)
Executing it gives: 1450
$1,450 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1450", "printed": "1450", "notation": null} |
nlprog_det-setting-0051730 | <|start|><|user|>
Idris was born on April 22, 2005. How old is Idris on May 28, 2028?<|eot|>
<|assistant|>
The age is 23 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Idris was born on April 22, 2005. How old is Idris on May 28, 2028?"
},
{
"role": "assistant",
"content": "The age is 23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0051732 | After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?
Computation in Python:
```python
grant = 60000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 19000.0
print(f"{each:.2f}")
```
Execution result: 19000.00
$19,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "19000.00", "printed": "19000.00", "notation": null} |
nlprog_det-setting-0051733 | A workshop lasted 5 hours and 32 minutes. How many minutes is that?
Script:
```python
hours = 5
minutes = 32
total_minutes = hours * 60 + minutes # 332
print(total_minutes)
```
The program outputs 332.
The workshop lasted 332 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "332", "printed": "332", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.