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-0071324 | A customer buys 3 cables at $6 each, 1 flash drives at $6 each, 5 lanyards at $5 each and pays with $50. How much change is due?
```python
items = [(3, 6), (1, 6), (5, 5)]
total = sum(q * p for q, p in items)
paid = 50
change = paid - total
print(change)
```
Execution prints: 1
$1 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0071325 | Divide 256 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here's the code.
```python
total = 256
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints 42 each, 4 left over.
42 each, 4 left... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "42 each, 4 left over", "printed": "42 each, 4 left over", "notation": null} |
nlprog_det-setting-0071326 | 3 boxes hold 25 ink cartridges each. After 4 are handed out, how many are left?
One way, in code:
```python
boxes = 3
per_box = 25
given_away = 4
left = boxes * per_box - given_away
print(left)
```
Console output — 71
71 ink cartridges are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0071327 | Filing fees are $25 per document. What do 14 filings cost?
Here is a short program for it.
```python
fee = 25
filings = 14
total = fee * filings
print(total)
```
The program outputs 350.
The total fee is $350. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0071328 | With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.
Set it up in Python:
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
It prints 38.5.
Profit is 38.5% of revenue... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0071329 | <|start|><|user|>
A 18-month warranty starts on September 28, 2023. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on March 28, 2025.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 18-month warranty starts on September 28, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on March 28, 2025."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2025-03-28", "printed": "2025-03-28", "notation": null} |
nlprog_det-setting-0071330 | <|start|><|user|>
6 boxes hold 10 envelopes each. After 15 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 10
given_away = 15
left = boxes * per_box - given_away # 45
print(left)
```
What it prints — 45
That leaves 45 envelopes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 boxes hold 10 envelopes each. After 15 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 10\ngiven_away = 15\nleft = boxes * per_box - given_away # 45\nprint(left)\n```\nWhat it prints — 45\n\nThat leaves 45... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0071331 | A court charges $15 per request plus $0.25 per page after the first 0 pages. What does a 13-page copy cost?
Script:
```python
pages = 13
base = 15
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 18.25
print(f"{cost:.2f}")
```
(Out: 18.25)
The total is $18.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "18.25", "printed": "18.25", "notation": null} |
nlprog_det-setting-0071332 | <|start|><|user|>
Monthly: $25. Annual: $276. What is saved per year by paying annually?<|eot|>
<|assistant|>
monthly = 25
yearly = 276
savings = monthly * 12 - yearly # 24
print(savings)
Execution result — 24
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $25. Annual: $276. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": " monthly = 25\n yearly = 276\n savings = monthly * 12 - yearly # 24\n print(savings)\nExecution result — 24\n\nThe annual plan saves $24."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071333 | At $18.87 an hour, what does 24 hours of work pay?
Here's the code.
```python
rate = 18.87
hours = 24
earnings = rate * hours # 452.88
print(f"{earnings:.2f}")
```
When run, it prints 452.88, as expected.
That earns $452.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "452.88", "printed": "452.88", "notation": null} |
nlprog_det-setting-0071334 | <|start|><|user|>
Uma was born on October 18, 1958. How old is Uma on December 27, 2022?<|eot|>
<|assistant|>
Uma is 64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Uma was born on October 18, 1958. How old is Uma on December 27, 2022?"
},
{
"role": "assistant",
"content": "Uma is 64."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0071335 | A car travels 169 miles in 0.5 hours. What is its average speed in miles per hour?
We can compute it in Python.
```python
distance = 169
hours = 0.5
speed = distance / hours # 338.0
print(round(speed))
```
# result: 338
It averages 338 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "338", "printed": "338", "notation": null} |
nlprog_det-setting-0071337 | Attendance was 22 out of 40. Express it as a percent.
The computation:
```python
present = 22
total = 40
percent = present / total * 100 # 55.00000000000001
print(round(percent, 1))
```
Python prints 55.0.
Attendance was 55.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0071338 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Of a $10,000 budget, $300 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 300
percent = spent / budget * 100 # 3.0
print(round(percent, 1))
```
(Run result: 3.0)
3.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Of a $10,000 budget, $300 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 300\npercent = spent / budget * 100 # 3.0\nprint(round(pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3.0", "printed": "3.0", "notation": null} |
nlprog_det-setting-0071339 | <|start|><|user|>
Goods bought on April 22, 2020 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
It expires on April 22, 2021.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on April 22, 2020 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "It expires on April 22, 2021."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2021-04-22", "printed": "2021-04-22", "notation": null} |
nlprog_det-setting-0071340 | A settlement of $2,640 is split equally among 6 parties. How much does each party receive?
Here's the code.
```python
settlement = 2640
parties = 6
share = settlement // parties # 440
print(share)
```
Interpreter output — 440
Each share is $440. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "440", "printed": "440", "notation": null} |
nlprog_det-setting-0071341 | A quorum is 3/5 of the 7 members, rounded up. How many members make a quorum?
Here's the code.
import math
members = 7
quorum = math.ceil(members * 3 / 5) # 5
print(quorum)
Run output — 5
5 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0071342 | Walls total 596 sq ft and each can covers 400 sq ft. How many cans should be bought?
A Python solution:
```python
import math
area = 596
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
This prints: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0071343 | How long, in days, is it from June 21, 2020 until June 27, 2021?
Here is a short program for it.
```python
from datetime import date
first = date(2020, 6, 21)
second = date(2021, 6, 27)
print((second - first).days)
```
(Execution result: 371)
There are 371 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0071344 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
447 files go into b... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0071345 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
From 2015 to 2026, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2026
print(end_year - start_year)
```
Interpreter output — 11
11 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "From 2015 to 2026, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2026\nprint(end_year - start_year)\n```\nInterpreter out... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0071346 | <|start|><|user|>
To read 580 pages in 10 days, how many pages per day are needed?<|eot|>
<|assistant|>
58 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 580 pages in 10 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "58 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0071348 | <|start|><|system|>
Tools you may use:
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
How many whole days and l... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "2 days and 23 hours", "printed": "2 days and 23 hours", "notation": null} |
nlprog_det-setting-0071349 | At a 9% tax rate, what is the tax on $222.81?
Program:
```python
price = 222.81
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 20.0529
print(f"{tax:.2f}")
```
On running, it outputs 20.05.
$20.05 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "20.05", "printed": "20.05", "notation": null} |
nlprog_det-setting-0071350 | At an exchange rate of 1.08 USD per EUR, how many USD is 226 EUR?
As a program:
```python
amount = 226
rate = 1.08
converted = amount * rate # 244.08
print(f"{converted:.2f}")
```
Printed result: 244.08
That is 244.08 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "244.08", "printed": "244.08", "notation": null} |
nlprog_det-setting-0071351 | A measure needs at least 67% of 40 votes. How many votes is that, rounded up?
```python
import math
voters = 40
needed = math.ceil(voters * 67 / 100) # 27
print(needed)
```
(Output: 27)
At least 27 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0071352 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 29 copies of a 48-page handout?<|eot|>
<|assistant|>
pages = 48
copies = 29
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 208.79999999999998
print(f"{cost:.2f}")
stdout: 208.80
Printing costs $208.80.<|eot|... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 29 copies of a 48-page handout?"
},
{
"role": "assistant",
"content": " pages = 48\n copies = 29\n cost_per_page = 0.15\n cost = pages * copies * cost_per_page # 208.79999999999998\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "208.80", "printed": "208.80", "notation": null} |
nlprog_det-setting-0071353 | Papers were served by mail on January 13, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Programmatically:
```python
from datetime import date, timedelta
served = date(2028, 1, 13) # datetime.date(2028, 1, 13)
response_days = 14
mail_days = 3
due = served + timedel... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 183 | {"gold": "2028-01-30", "printed": "2028-01-30", "notation": null} |
nlprog_det-setting-0071354 | <|start|><|user|>
How many 2-foot square tiles cover a 15 ft by 5 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 15
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
Shell output: 19
It takes 19 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 15 ft by 5 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 15\n width = 5\n tile = 2\n tiles = math.ceil(length * width / (tile * tile))\n print(tiles)\nShell output: 19\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0071355 | <|start|><|user|>
Starting with 1063 staplers and using 32 per day, how many remain after 18 days?<|eot|>
<|assistant|>
```python
stock = 1063
per_day = 32
days = 18
left = stock - per_day * days # 487
print(left)
```
That prints 487.
487 staplers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1063 staplers and using 32 per day, how many remain after 18 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1063\nper_day = 32\ndays = 18\nleft = stock - per_day * days # 487\nprint(left)\n```\nThat prints 487.\n\n487 staplers are lef... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "487", "printed": "487", "notation": null} |
nlprog_det-setting-0071356 | <|start|><|system|>
Functions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"ty... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calculator\", \"description\": \"Python sandbox fo... | nlprog_det | setting | original | null | deterministic | [] | [] | 274 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0071357 | Monthly: $15. Annual: $156. What is saved per year by paying annually?
Here is a short program for it.
```python
monthly = 15
yearly = 156
savings = monthly * 12 - yearly # 24
print(savings)
```
Program output: 24
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071359 | <|start|><|system|>
Functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "interpreter", "description": "A Python interpreter. Return... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\"name\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 272 | {"gold": "33400", "printed": "33400", "notation": null} |
nlprog_det-setting-0071360 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 12,000 gallons?
Here is a short program for it.
```python
base = 12
rate = 4.2
used = 12
free = 3
bill = base + rate * max(0, used - free) # 49.800000000000004
print(f"{bill:.2f}")
```
The run gives 49.80, as expected.
The bill is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "49.80", "printed": "49.80", "notation": null} |
nlprog_det-setting-0071361 | <|start|><|user|>
Which is cheaper per unit: 6 for $12.51 (A) or 20 for $11.39 (B)?<|eot|>
<|assistant|>
```python
pack_a = 12.51 / 6 # 2.085
pack_b = 11.39 / 20 # 0.5695
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Printed — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $12.51 (A) or 20 for $11.39 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 12.51 / 6 # 2.085\npack_b = 11.39 / 20 # 0.5695\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nPrinted — B\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071362 | <|start|><|user|>
Kemal has 16 documents to file, and each filing costs $350. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 350
filings = 16
total = fee * filings # 5600
print(total)
```
# run result: 5600
The total fee is $5,600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kemal has 16 documents to file, and each filing costs $350. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 350\nfilings = 16\ntotal = fee * filings # 5600\nprint(total)\n```\n# run result: 5600\n\nThe total fee is $5,... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5600", "printed": "5600", "notation": null} |
nlprog_det-setting-0071364 | How many weekdays (Monday to Friday) fall after February 4, 2018 up to and including February 12, 2018?
Here is the program.
```python
from datetime import date, timedelta
start = date(2018, 2, 4)
end = date(2018, 2, 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 | [] | [] | 152 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0071366 | An attorney bills 2.5 hours at $410 per hour. What is the bill?
The bill is $1,025.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1025.00", "printed": "1025.00", "notation": null} |
nlprog_det-setting-0071367 | Counting the first and last day, how many days are there from May 9, 2022 through May 17, 2022?
In code:
```python
from datetime import date
first = date(2022, 5, 9)
last = date(2022, 5, 17)
days = (last - first).days + 1
print(days)
```
(Program output: 9)
9 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0071368 | A training session lasted 5 hours and 5 minutes. How many minutes is that?
Coded up:
```python
hours = 5
minutes = 5
total_minutes = hours * 60 + minutes # 305
print(total_minutes)
```
It prints: 305
The training session lasted 305 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "305", "printed": "305", "notation": null} |
nlprog_det-setting-0071369 | A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 88-page copy cost?
Here is a short program for it.
```python
pages = 88
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 11.8
print(f"{cost:.2f}")
```
The run gives 11.80.
The copy co... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "11.80", "printed": "11.80", "notation": null} |
nlprog_det-setting-0071370 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each client gets $19,200.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each client gets $19,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0071371 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A library charges $0.25 per book per day late. What is the fine for 1 books that are 6 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 6
books = 1
fine = per_day * days_late * books # 1.5
print(f"{fine:.2f}")
```
It prints: 1... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 1 books that are 6 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 6\nbo... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1.50", "printed": "1.50", "notation": null} |
nlprog_det-setting-0071372 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A $2,000 security deposit has deductions of $120, $75 and $150. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [120, 75, 150]
refund = deposit - sum(deductions) # 1655
print(refund)
```
The program prints: 1655
$1,655 is re... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $120, $75 and $150. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [120, 75, 150]\nrefund = dep... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1655", "printed": "1655", "notation": null} |
nlprog_det-setting-0071373 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
69 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 69
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Execution r... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "69 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 69\ngroups = 3\nper_group, remainder = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "23 each, 0 left over", "printed": "23 each, 0 left over", "notation": null} |
nlprog_det-setting-0071374 | <|start|><|user|>
3 books come back 20 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 20
books = 3
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
```
This prints 6.00.
$6.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 20 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 20\nbooks = 3\nfine = per_day * days_late * books # 6.0\nprint(f\"{fine:.2f}\")\n```\nThis prints 6.00.\n\n$6.00 is o... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0071375 | Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Computing it:
```python
revenue = 22500
costs = 20000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
# run result: 11.1
The margin is 11.1%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0071376 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?
Computation in Python:
```python
balance = 4000
monthly_rate = 1.5 / 100
months = 2
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Console output: 120.00
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0071377 | <|start|><|user|>
Marek and Maren share $4,215 in the ratio 2:3. How much does Marek get?<|eot|>
<|assistant|>
```python
total = 4215
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1686
print(share_a)
```
(Out: 1686)
Marek gets $1,686.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Marek and Maren share $4,215 in the ratio 2:3. How much does Marek get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4215\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 1686\nprint(share_a)\n```\n(Out: 1686)\n\nMarek gets... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1686", "printed": "1686", "notation": null} |
nlprog_det-setting-0071378 | <|start|><|user|>
Convert 3 h 26 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 26
total_minutes = hours * 60 + minutes # 206
print(total_minutes)
```
The run gives: 206
The meeting lasted 206 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 26 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 26\ntotal_minutes = hours * 60 + minutes # 206\nprint(total_minutes)\n```\nThe run gives: 206\n\nThe meeting lasted 206 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "206", "printed": "206", "notation": null} |
nlprog_det-setting-0071379 | <|start|><|user|>
Of a $4,000 budget, $2,600 has been spent. What percent is that?<|eot|>
<|assistant|>
budget = 4000
spent = 2600
percent = spent / budget * 100 # 65.0
print(round(percent, 1))
The script prints: 65.0
65.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $4,000 budget, $2,600 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": " budget = 4000\n spent = 2600\n percent = spent / budget * 100 # 65.0\n print(round(percent, 1))\nThe script prints: 65.0\n\n65.0% has been spent."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0071380 | Each storage box holds 12 files. How many boxes are needed for 662 files?
Python version:
import math
files = 662
per_box = 12
boxes = math.ceil(files / per_box) # 56
print(boxes)
Running it prints 56, as expected.
It takes 56 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0071381 | A meal costs $45.35. How much is a 10% tip?
The tip is $4.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "4.54", "printed": "4.54", "notation": null} |
nlprog_det-setting-0071382 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Count 45 days forward from January 7, 2021. What date is that?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2021, 1, 7)
end = start + timedelta(days=45)
print(end.isoformat())
Printed result — 2021-02-21
The p... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Count 45 days forward from January 7, 2021. What date is that?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2021, 1, 7)\n end = st... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2021-02-21", "printed": "2021-02-21", "notation": null} |
nlprog_det-setting-0071383 | From 2015 to 2039, how many years is that?
Script:
```python
start_year = 2015
end_year = 2039
print(end_year - start_year)
```
The interpreter prints: 24
That is 24 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071384 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A penalty of $250 a day accrues, capped at $5,000. What is owed after 48 days?<|eot|>
<|assistant|>
per_day = 250
days = 48
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
Printed = 5000
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 48 days?"
},
{
"role": "assistant",
"content": " per_day = 250\n days = 48\n cap = 5000\n fine = min(per_day * da... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0071385 | 3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Here is the program.
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 3 # 9600.0
print(f"{per_client:.2f}")
```
Output of the run: 9600.00
Ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0071386 | What day of the week is September 10, 2022?
We can compute it in Python.
```python
from datetime import date
hearing = date(2022, 9, 10) # datetime.date(2022, 9, 10)
print(hearing.strftime("%A"))
```
# output: Saturday
September 10, 2022 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0071387 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
After an initial $6,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
$3,500.00 per installment.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "$3,500.00 per installment."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0071388 | What is a 22% tip on a $186.29 bill?
Coded up:
```python
bill = 186.29
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 40.983799999999995
print(f"{tip:.2f}")
```
Execution result — 40.98
Leave $40.98. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "40.98", "printed": "40.98", "notation": null} |
nlprog_det-setting-0071389 | A customer buys 6 chairs at $22 each, 2 binders at $27 each, 5 hard drives at $18 each and pays with $300. How much change is due?
Python code:
items = [(6, 22), (2, 27), (5, 18)]
total = sum(q * p for q, p in items) # 276
paid = 300
change = paid - total # 24
print(change)
Execution result — 24
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0071390 | <|start|><|user|>
A 36-month warranty starts on August 12, 2020. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2020, 8, 12)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on August 12, 2020. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2020, 8, 12)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2023-08-12", "printed": "2023-08-12", "notation": null} |
nlprog_det-setting-0071391 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Express 264 hours in days and hours.<|eot|>
<|assistant|>
hours = 264
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
(Execution result: 11 days and 0 hours)
That is 11 days and 0 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Express 264 hours in days and hours."
},
{
"role": "assistant",
"content": " hours = 264\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\n(Execution... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "11 days and 0 hours", "printed": "11 days and 0 hours", "notation": null} |
nlprog_det-setting-0071392 | A party has 21 days to respond to a motion served on June 13, 2028, with 3 days added because service was by mail. When is the response due?
The response is due on July 7, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2028-07-07", "printed": "2028-07-07", "notation": null} |
nlprog_det-setting-0071393 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after February 19, 2018 through March 20, 2018?<|eot|>
<|assistant|>
21 weekdays.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after February 19, 2018 through March 20, 2018?"
},
{
"role": "assistant",
"content": "21 weekdays."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0071394 | How long, in days, is it from July 22, 2024 until March 22, 2025?
One way, in code:
```python
from datetime import date
first = date(2024, 7, 22) # datetime.date(2024, 7, 22)
second = date(2025, 3, 22) # datetime.date(2025, 3, 22)
print((second - first).days)
```
(stdout: 243)
It is 243 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "243", "printed": "243", "notation": null} |
nlprog_det-setting-0071395 | 5 boxes hold 24 chairs each. After 9 are handed out, how many are left?
Code:
```python
boxes = 5
per_box = 24
given_away = 9
left = boxes * per_box - given_away # 111
print(left)
```
On running, it outputs 111.
That leaves 111 chairs. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0071396 | At 2% a month (simple), what interest builds on $4,000 over 3 months?
Let's compute it with Python.
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
On running, it outputs 240.00.
$240.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0071397 | A $1,500 security deposit has deductions of $120, $150 and $200. How much is refunded?
```python
deposit = 1500
deductions = [120, 150, 200]
refund = deposit - sum(deductions) # 1030
print(refund)
```
# printed result: 1030
$1,030 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1030", "printed": "1030", "notation": null} |
nlprog_det-setting-0071398 | If a 90-minute hearing begins at 2:00 PM, what time does it finish?
Computing it:
```python
start = 14 * 60 + 0
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution prints 3:30 PM, as expected.
The hearing finishes at 3:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "3:30 PM", "printed": "3:30 PM", "notation": null} |
nlprog_det-setting-0071399 | <|start|><|user|>
At $27.54 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 27.54
hours = 12
earnings = rate * hours # 330.48
print(f"{earnings:.2f}")
```
When run, it prints: 330.48
That earns $330.48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $27.54 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 27.54\nhours = 12\nearnings = rate * hours # 330.48\nprint(f\"{earnings:.2f}\")\n```\nWhen run, it prints: 330.48\n\nThat earns $330.48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "330.48", "printed": "330.48", "notation": null} |
nlprog_det-setting-0071400 | A party has 14 days to respond to a motion served on August 27, 2019, with 3 days added because service was by mail. When is the response due?
Set it up in Python:
```python
from datetime import date, timedelta
served = date(2019, 8, 27) # datetime.date(2019, 8, 27)
response_days = 14
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2019-09-13", "printed": "2019-09-13", "notation": null} |
nlprog_det-setting-0071401 | A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?
Here's the code.
```python
base = 15
rate = 3.5
used = 12
free = 0
bill = base + rate * max(0, used - free) # 57.0
print(f"{bill:.2f}")
```
# run result: 57.00
The bill is $57.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "57.00", "printed": "57.00", "notation": null} |
nlprog_det-setting-0071402 | <|start|><|user|>
Count the days between August 3, 2026 and November 24, 2026.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 8, 3) # datetime.date(2026, 8, 3)
second = date(2026, 11, 24) # datetime.date(2026, 11, 24)
print((second - first).days)
```
Running this gives 113.
There are 113... | chat | [
{
"role": "user",
"content": "Count the days between August 3, 2026 and November 24, 2026."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2026, 8, 3) # datetime.date(2026, 8, 3)\nsecond = date(2026, 11, 24) # datetime.date(2026, 11, 24)\nprint((second... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0071403 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?
Written as code:
```python
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 120.0
print(f"{interest:.2f}")
```
Result — 120.00
$120.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0071404 | Equal monthly payments repay $3,600 plus 10% simple yearly interest over 12 months. How large is a payment?
Python:
```python
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interest) / months # 330.0
print(f"{payment:.2f}")
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0071405 | What does $10,000 grow to in 2 years at 5% annual compounding?
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 11025.0
print(f"{value:.2f}")
```
Program output: 11025.00
The balance is $11,025.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "11025.00", "printed": "11025.00", "notation": null} |
nlprog_det-setting-0071406 | To read 882 pages in 18 days, how many pages per day are needed?
```python
pages = 882
days = 18
per_day = pages // days # 49
print(per_day)
```
# execution result: 49
That is 49 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0071407 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Starting from $20,000, the team spends $3,947, $3,161, $729. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3947, 3161, 729]
left = budget - sum(expenses)
print(left)
```
Execution result — 12163
$12,163 is left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Starting from $20,000, the team spends $3,947, $3,161, $729. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3947, 3161, 729]\nleft = budget - s... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12163", "printed": "12163", "notation": null} |
nlprog_det-setting-0071408 | Goods bought on August 22, 2025 carry a 24-month warranty. When does it expire?
Written as code:
```python
from datetime import date
start = date(2025, 8, 22)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Outp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2027-08-22", "printed": "2027-08-22", "notation": null} |
nlprog_det-setting-0071409 | Pack A has 12 items for $9.73. Pack B has 30 items for $21.04. Which has the lower price per item?
The program:
```python
pack_a = 9.73 / 12 # 0.8108333333333334
pack_b = 21.04 / 30 # 0.7013333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The program prints B.
Pack B is cheaper per i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071410 | <|start|><|user|>
Starting with 1790 folders and using 17 per day, how many remain after 18 days?<|eot|>
<|assistant|>
```python
stock = 1790
per_day = 17
days = 18
left = stock - per_day * days # 1484
print(left)
```
# program output: 1484
1484 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1790 folders and using 17 per day, how many remain after 18 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1790\nper_day = 17\ndays = 18\nleft = stock - per_day * days # 1484\nprint(left)\n```\n# program output: 1484\n\n1484 remain."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1484", "printed": "1484", "notation": null} |
nlprog_det-setting-0071412 | <|start|><|user|>
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 75.0
print(f"{interest:.2f}")
The code prints: 7... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": " balance = 2500\n monthly_rate = 1.5 / 100 # 0.015\n months = 2\n interest = balance * monthly_rate * month... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0071413 | <|start|><|user|>
Each of Vera's swims burns 350 calories. How many calories over 7 swims?<|eot|>
<|assistant|>
That burns 2450 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Vera's swims burns 350 calories. How many calories over 7 swims?"
},
{
"role": "assistant",
"content": "That burns 2450 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0071414 | <|start|><|system|>
Functions:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
19 of 25 members attended. What percent at... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 194 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0071415 | If a 75-minute seminar begins at 1:00 PM, what time does it finish?
Set it up in Python:
```python
start = 13 * 60 + 0
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Printed result — 2:15 PM
The seminar finishes at 2:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2:15 PM", "printed": "2:15 PM", "notation": null} |
nlprog_det-setting-0071416 | Which is cheaper per unit: 12 for $8.38 (A) or 15 for $10.70 (B)?
Python does the arithmetic:
pack_a = 8.38 / 12 # 0.6983333333333334
pack_b = 10.7 / 15 # 0.7133333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
The code prints A.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0071417 | A pack of 5 sticky pads sells for $130. What does each cost?
Coded up:
total = 130
count = 5
per_item = total // count # 26
print(per_item)
stdout = 26
The unit price is $26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0071418 | With 12 rows of 16 chairs and 20 empty chairs, how many chairs are taken?
As Python:
```python
rows = 12
per_row = 16
empty = 20
seated = rows * per_row - empty # 172
print(seated)
```
Printed result: 172
172 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "172", "printed": "172", "notation": null} |
nlprog_det-setting-0071419 | <|start|><|user|>
How many 1-foot square tiles cover a 10 ft by 4 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 10
width = 4
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 40
print(tiles)
```
The run gives 40, as expected.
It takes 40 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 10 ft by 4 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 10\nwidth = 4\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 40\nprint(tiles)\n```\nThe run gives 40, as exp... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0071420 | Goods bought on July 28, 2027 carry a 36-month warranty. When does it expire?
Coded up:
```python
from datetime import date
start = date(2027, 7, 28)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run output — ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2030-07-28", "printed": "2030-07-28", "notation": null} |
nlprog_det-setting-0071421 | Straight-line depreciation: cost $18,000, salvage $6,000, 3 years. How much per year?
Let the code do the arithmetic:
```python
cost = 18000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
That prints: 4000.00
$4,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0071422 | A hearing lasted 3 hours and 36 minutes. How many minutes is that? That is 216 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "216", "printed": "216", "notation": null} |
nlprog_det-setting-0071423 | A 24-month warranty starts on February 4, 2022. On what date does it end?
The computation:
```python
from datetime import date
start = date(2022, 2, 4)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Out = 2024-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2024-02-04", "printed": "2024-02-04", "notation": null} |
nlprog_det-setting-0071424 | Walls total 896 sq ft and each can covers 350 sq ft. How many cans should be bought?
Code:
```python
import math
area = 896
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
The program prints: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0071425 | <|start|><|user|>
1 books come back 4 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 4
books = 1
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
```
Printed result: 2.00
$2.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 4 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 4\nbooks = 1\nfine = per_day * days_late * books # 2.0\nprint(f\"{fine:.2f}\")\n```\nPrinted result: 2.00\n\n$2.00 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0071426 | The landlord deducts $200, $60 and $120 from a $2,500 deposit. What is returned to the tenant?
A Python solution:
```python
deposit = 2500
deductions = [200, 60, 120]
refund = deposit - sum(deductions) # 2120
print(refund)
```
Run output: 2120
The refund is $2,120. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2120", "printed": "2120", "notation": null} |
nlprog_det-setting-0071427 | Under a 30% contingency agreement, what fee is owed on a $25,000 award?
Computing it:
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
Run it and it prints 7500.00.
The fee is $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0071428 | A meal costs $149.27. How much is a 20% tip?
```python
bill = 149.27
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 29.854000000000003
print(f"{tip:.2f}")
```
Run result: 29.85
Leave $29.85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "29.85", "printed": "29.85", "notation": null} |
nlprog_det-setting-0071429 | <|start|><|user|>
A car travels 66 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
The average speed is 33 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 66 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "The average speed is 33 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "33", "printed": "33", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.