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-0048940 | An invoice lists 8 rulers at $9 each, plus 6% sales tax. What is the invoice total?
Script:
```python
quantity = 8
unit_price = 9
subtotal = quantity * unit_price # 72
total = subtotal * (1 + 6 / 100) # 76.32000000000001
print(f"{total:.2f}")
```
Printed: 76.32
The invoice total is $76.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "76.32", "printed": "76.32", "notation": null} |
nlprog_det-setting-0048941 | Prorate $1,200 of monthly rent for 13 days of a 30-day month.
Python version:
```python
rent = 1200
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 520.0
print(f"{prorated:.2f}")
```
# result: 520.00
The tenant owes $520.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "520.00", "printed": "520.00", "notation": null} |
nlprog_det-setting-0048942 | An office budget of $20,000 has expenses of $1,040, $2,553, $3,721, $397. How much of the budget is left?
Programmatically:
```python
budget = 20000
expenses = [1040, 2553, 3721, 397]
left = budget - sum(expenses)
print(left)
```
# execution result: 12289
The remaining budget is $12,289. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "12289", "printed": "12289", "notation": null} |
nlprog_det-setting-0048943 | How many meters are in 35.3 kilometers? That is 35,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "35300", "printed": "35300", "notation": null} |
nlprog_det-setting-0048944 | A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 16-page copy cost?
pages = 16
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 16.6
print(f"{cost:.2f}")
The printout reads 16.60.
The total is $16.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "16.60", "printed": "16.60", "notation": null} |
nlprog_det-setting-0048945 | How many of 241 votes make 67% (round up)?
Translated to Python:
```python
import math
voters = 241
needed = math.ceil(voters * 67 / 100) # 162
print(needed)
```
stdout:
162
At least 162 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "162", "printed": "162", "notation": null} |
nlprog_det-setting-0048946 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?
Here's the code.
```python
base = 12
rate = 4.2
used = 7
free = 2
bill = base + rate * max(0, used - free) # 33.0
print(f"{bill:.2f}")
```
# printed: 33.00
The bill is $33.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0048947 | <|start|><|system|>
Tools you may use:
{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Fines run at $100 per day up to a maxim... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0048948 | Straight-line depreciation: cost $18,000, salvage $6,000, 10 years. How much per year?
Translated to Python:
```python
cost = 18000
salvage = 6000
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
stdout — 1200.00
Depreciation is $1,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0048949 | <|start|><|user|>
Split $1,260 between Lucia and Kemal in the ratio 3 to 4. What is Lucia's share?<|eot|>
<|assistant|>
```python
total = 1260
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 540
print(share_a)
```
Console:
540
Lucia gets $540.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,260 between Lucia and Kemal in the ratio 3 to 4. What is Lucia's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1260\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 540\nprint(share_a)\n```\nConsole:\n540\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0048950 | How many units at $20 each (variable cost $10) cover $9,000 of fixed costs?
Set it up in Python:
```python
import math
fixed = 9000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
Python prints 900.
Break-even is 900 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0048951 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 54 days?
Computing it:
```python
per_day = 25
days = 54
cap = 2500
fine = min(per_day * days, cap) # 1350
print(fine)
```
Result = 1350
The fine is $1,350. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0048952 | A claim accrued on March 9, 2012. The limitations period is 2 years. On what date does it expire?
Python code:
```python
from datetime import date
accrued = date(2012, 3, 9) # datetime.date(2012, 3, 9)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 3, 9)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2014-03-09", "printed": "2014-03-09", "notation": null} |
nlprog_det-setting-0048953 | 3 books come back 23 days late, at $0.15 a day each. What is the fine?
A few lines of Python do it:
```python
per_day = 0.15
days_late = 23
books = 3
fine = per_day * days_late * books # 10.35
print(f"{fine:.2f}")
```
Running this gives 10.35.
$10.35 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "10.35", "printed": "10.35", "notation": null} |
nlprog_det-setting-0048954 | <|start|><|user|>
A settlement of $524 is split equally among 2 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 524
parties = 2
share = settlement // parties # 262
print(share)
```
The code prints 262.
Each share is $262.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $524 is split equally among 2 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 524\nparties = 2\nshare = settlement // parties # 262\nprint(share)\n```\nThe code prints 262.\n\nEach share is $... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0048955 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
How many meters are in 88.3 kilometers?<|eot|>
<|assistant|>
88,300 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "How many meters are in 88.3 kilometers?"
},
{
"role": "assistant",
"content": "88,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "88300", "printed": "88300", "notation": null} |
nlprog_det-setting-0048956 | <|start|><|user|>
What is 5 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
Printed — 41
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 5 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = 5\n fahrenheit = celsius * 9 / 5 + 32 # 41.0\n print(round(fahrenheit))\nPrinted — 41\n\nThat is 41 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0048957 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "define_word", "description": "Return a dictiona... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{... | nlprog_det | setting | original | null | deterministic | [] | [] | 375 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0048958 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Each storage box holds 25 files. How many boxes are needed for 170 files?<|eot|>
<|assistant|>
```python
import math
files = 170
per_box = 25
boxes = math.ceil(files / per_box) # 7
print(boxes)
```
Run result: 7
7 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 170 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 170\nper_box = 25\nboxes = math.ceil(files / per... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0048959 | <|start|><|user|>
A workshop lasted 5 hours and 13 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 13
total_minutes = hours * 60 + minutes
print(total_minutes)
```
Output of the run: 313
That is 313 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 5 hours and 13 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 13\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nOutput of the run: 313\n\nThat is 313 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0048960 | Uma earns a 10% commission on $26,581 of sales. What is the commission?
A few lines of Python do it:
```python
sales = 26581
rate = 10 / 100 # 0.1
commission = sales * rate # 2658.1000000000004
print(f"{commission:.2f}")
```
Execution result: 2658.10
Uma earns $2,658.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2658.10", "printed": "2658.10", "notation": null} |
nlprog_det-setting-0048961 | <|start|><|user|>
From a $2,500 retainer, 12 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 12
rate = 200
left = retainer - hours * rate # 100
print(left)
```
Executing it gives 100.
$100 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 12 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 12\nrate = 200\nleft = retainer - hours * rate # 100\nprint(left)\n```\nExecuting it gives 100.\n\n$100 of the re... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0048963 | <|start|><|user|>
84 copies of a 19-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 19
copies = 84
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 159.60000000000002
print(f"{cost:.2f}")
```
Python prints 159.60.
Printing costs $159.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "84 copies of a 19-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 19\ncopies = 84\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 159.60000000000002\nprint(f\"{cost:.2f}\")\n```\nP... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "159.60", "printed": "159.60", "notation": null} |
nlprog_det-setting-0048964 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"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": "... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"stri... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0048965 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0048966 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Of a $4,000 budg... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0048967 | <|start|><|user|>
187 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 187
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# printed result: 31 each, 1 left over
The ans... | chat | [
{
"role": "user",
"content": "187 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 187\n groups = 6\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "31 each, 1 left over", "printed": "31 each, 1 left over", "notation": null} |
nlprog_det-setting-0048968 | Attendance was 74 out of 80. Express it as a percent.
Here is a short program for it.
```python
present = 74
total = 80
percent = present / total * 100 # 92.5
print(round(percent, 1))
```
Result:
92.5
Attendance was 92.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0048969 | <|start|><|user|>
Monthly: $25. Annual: $288. What is saved per year by paying annually?<|eot|>
<|assistant|>
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
(Program output: 12)
$12 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $25. Annual: $288. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": " monthly = 25\n yearly = 288\n savings = monthly * 12 - yearly # 12\n print(savings)\n(Program output: 12)\n\n$12 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0048970 | <|start|><|user|>
What is the total rent on a 24-month lease at $2,875 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months # 69000
print(total)
```
Python prints 69000.
In total, $69,000 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 24\ntotal = monthly_rent * months # 69000\nprint(total)\n```\nPython prints 69000.\n\nIn total, $69,000 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0048971 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
One can of paint covers 400 square feet. How many cans are needed for 1174 square feet of wall?<|eot|>
<|assistant|>
import math
area = 1174
coverage = 400
cans = math.ceil(area / coverage)
print(cans)
Run it and it prints: 3
Buy 3 ca... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1174 square feet of wall?"
},
{
"role": "assistant",
"content": " import math\n area = 1174\n coverage = 400\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0048972 | A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?
A few lines of Python do it:
```python
old = 400
new = 240
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Running this gives: -40
The change is -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0048973 | What percentage of $5,000 is $3,200?
Here is the program.
```python
budget = 5000
spent = 3200
percent = spent / budget * 100 # 64.0
print(round(percent, 1))
```
(Execution result: 64.0)
64.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "64.0", "printed": "64.0", "notation": null} |
nlprog_det-setting-0048974 | The rules require 3/5 of 17 members (round up) to be present. How many is that?
Here is the program.
```python
import math
members = 17
quorum = math.ceil(members * 3 / 5) # 11
print(quorum)
```
Running it prints 11, as expected.
11 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0048975 | <|start|><|user|>
How many 1-foot square tiles cover a 7 ft by 7 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 7
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 49
print(tiles)
```
Printed — 49
It takes 49 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 7 ft by 7 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 7\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 49\nprint(tiles)\n```\nPrinted — 49\n\nIt takes 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0048976 | A hearing is set for July 2, 2014. What day of the week is that?
A few lines of Python do it:
```python
from datetime import date
hearing = date(2014, 7, 2) # datetime.date(2014, 7, 2)
print(hearing.strftime("%A"))
```
On running, it outputs Wednesday.
July 2, 2014 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0048977 | A 8% increase is applied to $1,500 monthly rent. What is the new amount?
Python, step by step:
```python
rent = 1500
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1620.0
print(f"{new_rent:.2f}")
```
The run gives 1620.00, as expected.
It rises to $1,620.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1620.00", "printed": "1620.00", "notation": null} |
nlprog_det-setting-0048978 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 2 days late?<|eot|>
<|assistant|>
per_day = 0.25
days_late = 2
books = 4
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
This prints 2.00.
$2.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 2 days late?"
},
{
"role": "assistant",
"content": " per_day = 0.25\n days_late = 2\n books = 4\n fine = per_day * days_late * books # 2.0\n print(f\"{fine:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0048979 | <|start|><|user|>
Find the mean of these test scores: 57, 56, 71, 76, 65, 82 and 83.<|eot|>
<|assistant|>
scores = [57, 56, 71, 76, 65, 82, 83]
average = sum(scores) // len(scores) # 70
print(average)
Run it and it prints 70.
The mean is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 57, 56, 71, 76, 65, 82 and 83."
},
{
"role": "assistant",
"content": " scores = [57, 56, 71, 76, 65, 82, 83]\n average = sum(scores) // len(scores) # 70\n print(average)\nRun it and it prints 70.\n\nThe mean is 70."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0048980 | <|start|><|user|>
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 48000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
(Out: 11200.00)
Each client gets $11,2... | chat | [
{
"role": "user",
"content": "3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 48000\n fee = award * 30 / 100\n remaining = award - fee\n per_client = remaining / 3\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "11200.00", "printed": "11200.00", "notation": null} |
nlprog_det-setting-0048981 | 4 boxes hold 8 paper reams each. After 3 are handed out, how many are left?
Python does the arithmetic:
```python
boxes = 4
per_box = 8
given_away = 3
left = boxes * per_box - given_away
print(left)
```
That prints: 29
29 paper reams are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0048983 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Rafael was born on March 8, 1984. How old is Rafael on February 21, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1984, 3, 8) # datetime.date(1984, 3, 8)
on = date(2020, 2, 21) # datetime.date(2020, 2, 21)
age = on.year - ... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Rafael was born on March 8, 1984. How old is Rafael on February 21, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1984, 3, 8) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0048984 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
What is the total rent on a 6-month lease at $2,875 a month?<|eot|>
<|assistant|>
The rent over the term is $17,250.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "The rent over the term is $17,250."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0048985 | A claim accrued on October 17, 2021. The limitations period is 4 years. On what date does it expire?
One way, in code:
```python
from datetime import date
accrued = date(2021, 10, 17) # datetime.date(2021, 10, 17)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 10, 17)
print(expi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2025-10-17", "printed": "2025-10-17", "notation": null} |
nlprog_det-setting-0048986 | Monthly rent is $1,800. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?
Program:
```python
rent = 1800
days_in_month = 31
days_occupied = 23
prorated = rent * days_occupied / days_in_month # 1335.483870967742
print(f"{prorated:.2f}")
```
The printout reads 1335.48.
The tenant owes $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "1335.48", "printed": "1335.48", "notation": null} |
nlprog_det-setting-0048987 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 1200.0
print(f"{per_year:.2f}")
```
Running this gives: 1200.00
Depreciation is $1,200.00 per year.<|eot|>
... | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 1200.0\nprint(f\"{per_year:.2f}\")\n```\nRunning t... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0048989 | From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?
Written as code:
```python
retainer = 2500
hours = 9
rate = 275
left = retainer - hours * rate # 25
print(left)
```
Execution prints: 25
$25 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0048990 | Convert 8,843 EUR to USD at 1 EUR = 1.27 USD.
As Python:
```python
amount = 8843
rate = 1.27
converted = amount * rate # 11230.61
print(f"{converted:.2f}")
```
# stdout: 11230.61
That is 11,230.61 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "11230.61", "printed": "11230.61", "notation": null} |
nlprog_det-setting-0048992 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
How many units at $40 each (variable cost $35) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
240 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "How many units at $40 each (variable cost $35) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": "240 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0048993 | What commission does Liesel make on $48,231 in sales at 3%?
In code:
```python
sales = 48231
rate = 3 / 100 # 0.03
commission = sales * rate # 1446.9299999999998
print(f"{commission:.2f}")
```
Running this gives: 1446.93
Liesel earns $1,446.93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1446.93", "printed": "1446.93", "notation": null} |
nlprog_det-setting-0048994 | Each of Delia's bike rides burns 350 calories. How many calories over 7 bike rides?
The Python version:
```python
per_session = 350
sessions = 7
total = per_session * sessions # 2450
print(total)
```
The printout reads: 2450
2450 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0048995 | <|start|><|user|>
Notice was given on February 14, 2018. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 2, 14)
end = start + timedelta(days=120)
print(end.isoformat())
```
Out = 2018-06-14
It ends on June 14, 2018.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Notice was given on February 14, 2018. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 2, 14)\nend = start + timedelta(days=120)\nprint(end.isoformat())\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2018-06-14", "printed": "2018-06-14", "notation": null} |
nlprog_det-setting-0048996 | <|start|><|user|>
A customer buys 6 badges at $6 each, 6 hard drives at $26 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
```python
items = [(6, 6), (6, 26)]
total = sum(q * p for q, p in items)
paid = 200
change = paid - total
print(change)
```
This prints: 8
$8 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A customer buys 6 badges at $6 each, 6 hard drives at $26 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(6, 6), (6, 26)]\ntotal = sum(q * p for q, p in items)\npaid = 200\nchange = paid - total\nprint(cha... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0048997 | 310 files go into boxes of 24. How many boxes does that take? 13 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0048998 | <|start|><|user|>
Copies cost $10 plus $0.10 for each page beyond 10. How much for 56 pages?<|eot|>
<|assistant|>
```python
pages = 56
base = 10
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 14.600000000000001
print(f"{cost:.2f}")
```
That prints 14.60.
The total is $14.60.<|eot... | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.10 for each page beyond 10. How much for 56 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 56\nbase = 10\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 14.600000000000001\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "14.60", "printed": "14.60", "notation": null} |
nlprog_det-setting-0048999 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Papers were served by mail on June 28, 2026. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
The response is due on July 22, 2026.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Papers were served by mail on June 28, 2026. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "The response is... | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "2026-07-22", "printed": "2026-07-22", "notation": null} |
nlprog_det-setting-0049000 | A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?
A Python solution:
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 42.48
print(f"{each:.2f}")
```
Running it prints 42.48, as expected.
The share is $42.48 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "42.48", "printed": "42.48", "notation": null} |
nlprog_det-setting-0049001 | With 26 rows of 19 chairs and 26 empty chairs, how many chairs are taken?
The Python version:
```python
rows = 26
per_row = 19
empty = 26
seated = rows * per_row - empty # 468
print(seated)
```
Executing it gives: 468
468 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "468", "printed": "468", "notation": null} |
nlprog_det-setting-0049002 | A 12-month warranty starts on July 24, 2028. On what date does it end?
Here is a short program for it.
```python
from datetime import date
start = date(2028, 7, 24)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2029-07-24", "printed": "2029-07-24", "notation": null} |
nlprog_det-setting-0049003 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Express 59 hours in days a... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "2 days and 11 hours", "printed": "2 days and 11 hours", "notation": null} |
nlprog_det-setting-0049004 | <|start|><|user|>
3 claimants share a $525 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 525
parties = 3
share = settlement // parties # 175
print(share)
```
When run, it prints 175, as expected.
Each share is $175.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 claimants share a $525 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 525\nparties = 3\nshare = settlement // parties # 175\nprint(share)\n```\nWhen run, it prints 175, as expected.\n\nEach share is $175."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0049005 | <|start|><|user|>
A count moves from 500 to 550. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
old = 500
new = 550
change = (new - old) / old * 100 # 10.0
print(round(change))
The program prints 10.
The change is 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 550. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": " old = 500\n new = 550\n change = (new - old) / old * 100 # 10.0\n print(round(change))\nThe program prints 10.\n\nThe cha... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0049006 | <|start|><|system|>
You may call the tools below.
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A claim accrued on No... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "2017-11-14", "printed": "2017-11-14", "notation": null} |
nlprog_det-setting-0049007 | <|start|><|user|>
An office budget of $8,000 has expenses of $341, $641, $3,875. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [341, 641, 3875]
left = budget - sum(expenses) # 3143
print(left)
```
When run, it prints 3143, as expected.
The remaining budget is $3,143.<|eot|>
<... | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $341, $641, $3,875. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [341, 641, 3875]\nleft = budget - sum(expenses) # 3143\nprint(left)\n```\nWhen run, it prints ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3143", "printed": "3143", "notation": null} |
nlprog_det-setting-0049008 | <|start|><|user|>
A 30 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.2
weight = 30
cost = base + per_pound * weight # 46.0
print(f"{cost:.2f}")
```
The script prints 46.00, as expected.
Shipping costs $46.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 30 lb package ships at $10 base plus $1.20/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.2\nweight = 30\ncost = base + per_pound * weight # 46.0\nprint(f\"{cost:.2f}\")\n```\nThe script prints 46.00, as expecte... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "46.00", "printed": "46.00", "notation": null} |
nlprog_det-setting-0049009 | <|start|><|user|>
An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 75.0
print(f"{interest:.2f}")
```
Console:
75.00
$75.00 a... | chat | [
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0049010 | A hall has 9 rows of 9 seats, and 30 seats are empty. How many people are seated?
Code:
```python
rows = 9
per_row = 9
empty = 30
seated = rows * per_row - empty # 51
print(seated)
```
# program output: 51
51 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0049011 | How many weekdays (Monday to Friday) fall after October 11, 2024 up to and including November 5, 2024?
Program:
```python
from datetime import date, timedelta
start = date(2024, 10, 11)
end = date(2024, 11, 5)
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 | [] | [] | 152 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0049012 | <|start|><|user|>
If a 150-minute hearing begins at 12:30 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 12 * 60 + 30
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Running this gives: 3:00 PM
The hearing finishes at... | chat | [
{
"role": "user",
"content": "If a 150-minute hearing begins at 12:30 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 12 * 60 + 30\nend = start + 150\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 | [] | [] | 133 | {"gold": "3:00 PM", "printed": "3:00 PM", "notation": null} |
nlprog_det-setting-0049013 | Printing costs 12 cents a page. What does it cost to print 84 copies of a 58-page handout?
The computation:
```python
pages = 58
copies = 84
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 584.64
print(f"{cost:.2f}")
```
The program prints 584.64, as expected.
The job costs $584.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "584.64", "printed": "584.64", "notation": null} |
nlprog_det-setting-0049014 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
How many of 55 members form a majority (more than half)?<|eot|>
<|assistant|>
28 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "How many of 55 members form a majority (more than half)?"
},
{
"role": "assistant",
"content": "28 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0049015 | A $210 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?
A short script:
```python
bill = 210
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 42.0
print(f"{each:.2f}")
```
Result = 42.00
The share is $42.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0049016 | A hall has 5 rows of 21 seats, and 3 seats are empty. How many people are seated?
Python code:
rows = 5
per_row = 21
empty = 3
seated = rows * per_row - empty # 102
print(seated)
Output — 102
102 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0049017 | A party has 28 days to respond to a motion served on July 25, 2024, with 3 days added because service was by mail. When is the response due?
A few lines of Python do it:
```python
from datetime import date, timedelta
served = date(2024, 7, 25) # datetime.date(2024, 7, 25)
response_days = 28
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2024-08-25", "printed": "2024-08-25", "notation": null} |
nlprog_det-setting-0049018 | <|start|><|user|>
Shipping costs $5 plus $2.00 per pound. What does a 16-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $37.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $2.00 per pound. What does a 16-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $37.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "37.00", "printed": "37.00", "notation": null} |
nlprog_det-setting-0049019 | <|start|><|user|>
What does $2,000 grow to in 2 years at 2% annual compounding?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 2080.8
print(f"{value:.2f}")
```
The run gives 2080.80, as expected.
It is worth $2,080.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $2,000 grow to in 2 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 2080.8\nprint(f\"{value:.2f}\")\n```\nThe run gives 2080.8... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2080.80", "printed": "2080.80", "notation": null} |
nlprog_det-setting-0049020 | A 18-month warranty starts on May 13, 2020. On what date does it end?
The computation:
```python
from datetime import date
start = date(2020, 5, 13)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
(Program outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2021-11-13", "printed": "2021-11-13", "notation": null} |
nlprog_det-setting-0049021 | Monthly: $15. Annual: $132. What is saved per year by paying annually?
In code:
```python
monthly = 15
yearly = 132
savings = monthly * 12 - yearly # 48
print(savings)
```
Python prints 48.
$48 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0049022 | <|start|><|user|>
Find the mean of these test scores: 59, 72, 90, 64 and 55.<|eot|>
<|assistant|>
```python
scores = [59, 72, 90, 64, 55]
average = sum(scores) // len(scores) # 68
print(average)
```
Printed:
68
The average score is 68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 59, 72, 90, 64 and 55."
},
{
"role": "assistant",
"content": "```python\nscores = [59, 72, 90, 64, 55]\naverage = sum(scores) // len(scores) # 68\nprint(average)\n```\nPrinted:\n68\n\nThe average score is 68."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0049024 | <|start|><|user|>
Express 52 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 52
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The code prints: 2 days and 4 hours
52 hours is 2 days and 4 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 52 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 52\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe code prints: 2 days and 4 hours\n\n52 hours is 2 days and 4 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2 days and 4 hours", "printed": "2 days and 4 hours", "notation": null} |
nlprog_det-setting-0049025 | <|start|><|user|>
A customer buys 1 envelopes at $30 each, 2 tape rolls at $27 each, 4 chairs at $14 each, 2 chairs at $10 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
```python
items = [(1, 30), (2, 27), (4, 14), (2, 10)]
total = sum(q * p for q, p in items) # 160
paid = 200
change = paid - t... | chat | [
{
"role": "user",
"content": "A customer buys 1 envelopes at $30 each, 2 tape rolls at $27 each, 4 chairs at $14 each, 2 chairs at $10 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 30), (2, 27), (4, 14), (2, 10)]\ntotal = sum(q * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0049026 | At 45 miles per hour, how many minutes does a 180-mile trip take?
The trip takes 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0049027 | A 11 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Written as code:
```python
import math
length = 11
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 33
print(tiles)
```
Executing it gives 33.
It takes 33 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0049028 | A measure needs at least 60% of 164 votes. How many votes is that, rounded up?
99 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0049029 | At an exchange rate of 1.12 EUR per USD, how many EUR is 8,387 USD?
One way, in code:
```python
amount = 8387
rate = 1.12
converted = amount * rate # 9393.44
print(f"{converted:.2f}")
```
It prints 9393.44, as expected.
That is 9,393.44 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "9393.44", "printed": "9393.44", "notation": null} |
nlprog_det-setting-0049030 | A measure needs at least 75% of 260 votes. How many votes is that, rounded up?
Coded up:
import math
voters = 260
needed = math.ceil(voters * 75 / 100)
print(needed)
This prints 195, as expected.
At least 195 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0049031 | The building opened in 2006. How many years had passed by 2023?
Coded up:
```python
start_year = 2006
end_year = 2023
print(end_year - start_year)
```
Out: 17
That is 17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0049032 | A claim accrued on December 16, 2021. The limitations period is 2 years. On what date does it expire?
In Python:
```python
from datetime import date
accrued = date(2021, 12, 16)
years = 2
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Printed:
2023-12-16
It runs out on December 16... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2023-12-16", "printed": "2023-12-16", "notation": null} |
nlprog_det-setting-0049033 | <|start|><|user|>
At a 4% tax rate, what is the tax on $74.48?<|eot|>
<|assistant|>
```python
price = 74.48
tax_rate = 4 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
The run gives: 2.98
The tax is $2.98.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 4% tax rate, what is the tax on $74.48?"
},
{
"role": "assistant",
"content": "```python\nprice = 74.48\ntax_rate = 4 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nThe run gives: 2.98\n\nThe tax is $2.98."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2.98", "printed": "2.98", "notation": null} |
nlprog_det-setting-0049034 | At a 8% tax rate, what is the tax on $746.54?
Set it up in Python:
```python
price = 746.54
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 59.7232
print(f"{tax:.2f}")
```
Out = 59.72
$59.72 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "59.72", "printed": "59.72", "notation": null} |
nlprog_det-setting-0049035 | A 270-mile drive at a steady 45 mph takes how many minutes?
Computation in Python:
distance = 270
speed = 45
minutes = distance / speed * 60 # 360.0
print(round(minutes))
The run gives 360, as expected.
360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0049036 | A 17 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
```python
import math
length = 17
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 119
print(tiles)
```
The code prints 119.
It takes 119 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0049037 | A settlement of $84,000 is split equally among 3 parties. How much does each party receive?
Each party receives $28,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0049039 | Viktor earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?
We write it as a program:
```python
rate = 25.0
hours = 48
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 300.0
pay = regular + overtime # 1300.0
print(f"{pay:.2f}")
```
stdout:
1300.00
Vikto... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0049040 | 2 friends split a $150 bill plus a 15% tip evenly. How much does each pay?
Let's compute it with Python.
bill = 150
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 86.25
print(f"{each:.2f}")
The run gives: 86.25
The share is $86.25 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "86.25", "printed": "86.25", "notation": null} |
nlprog_det-setting-0049041 | The landlord deducts $120 and $85 from a $1,000 deposit. What is returned to the tenant?
Computing it:
```python
deposit = 1000
deductions = [120, 85]
refund = deposit - sum(deductions) # 795
print(refund)
```
When run, it prints: 795
$795 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "795", "printed": "795", "notation": null} |
nlprog_det-setting-0049042 | Monthly: $15. Annual: $156. What is saved per year by paying annually?
Translated to Python:
```python
monthly = 15
yearly = 156
savings = monthly * 12 - yearly # 24
print(savings)
```
On running, it outputs 24.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0049043 | <|start|><|user|>
Of a $8,000 budget, $5,400 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 5400
percent = spent / budget * 100 # 67.5
print(round(percent, 1))
```
Program output — 67.5
That is 67.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $8,000 budget, $5,400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 5400\npercent = spent / budget * 100 # 67.5\nprint(round(percent, 1))\n```\nProgram output — 67.5\n\nThat is 67.5% of the budge... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "67.5", "printed": "67.5", "notation": null} |
nlprog_det-setting-0049044 | How much is a $64 daily meal allowance over 3 days?
Script:
```python
days = 3
meal_rate = 64
total = days * meal_rate
print(total)
```
# console output: 192
The allowance is $192. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0049045 | 5 friends split a $240 bill plus a 18% tip evenly. How much does each pay?
```python
bill = 240
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 56.64
print(f"{each:.2f}")
```
stdout: 56.64
Each person pays $56.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "56.64", "printed": "56.64", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.