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-0052920 | 7 walks at 400 calories each burn how many calories in total?
Let the code do the arithmetic:
```python
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
```
# console output: 2800
That burns 2800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0052921 | Goods bought on April 15, 2024 carry a 24-month warranty. When does it expire?
Python version:
```python
from datetime import date
start = date(2024, 4, 15)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Printe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2026-04-15", "printed": "2026-04-15", "notation": null} |
nlprog_det-setting-0052922 | <|start|><|user|>
A garage charges $2 an hour, never more than $15 a day. How much for 7 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 7
daily_max = 15
cost = min(rate * hours, daily_max) # 14
print(cost)
```
Out:
14
Parking costs $14.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $15 a day. How much for 7 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 7\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 14\nprint(cost)\n```\nOut:\n14\n\nParking costs $14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0052923 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "g... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 295 | {"gold": "244", "printed": "244", "notation": null} |
nlprog_det-setting-0052924 | <|start|><|user|>
Count the days between March 26, 2025 and September 26, 2025.<|eot|>
<|assistant|>
It is 184 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between March 26, 2025 and September 26, 2025."
},
{
"role": "assistant",
"content": "It is 184 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "184", "printed": "184", "notation": null} |
nlprog_det-setting-0052926 | With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal.
Profit is 12.2% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "12.2", "printed": "12.2", "notation": null} |
nlprog_det-setting-0052927 | One can of paint covers 400 square feet. How many cans are needed for 1382 square feet of wall?
A Python solution:
```python
import math
area = 1382
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
Printed result: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0052928 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?
A Python solution:
```python
base = 12
rate = 5.1
used = 12
free = 0
bill = base + rate * max(0, used - free) # 73.19999999999999
print(f"{bill:.2f}")
```
Output:
73.20
The bill is $73.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "73.20", "printed": "73.20", "notation": null} |
nlprog_det-setting-0052929 | 20 headsets cost $2 apiece. With 7% tax added, what is the total?
Here is a short program for it.
```python
quantity = 20
unit_price = 2
subtotal = quantity * unit_price
total = subtotal * (1 + 7 / 100)
print(f"{total:.2f}")
```
The script prints: 42.80
The invoice total is $42.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "42.80", "printed": "42.80", "notation": null} |
nlprog_det-setting-0052930 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A garage charges $2 an hour, never more than $24 a day. How much for 1 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 1
daily_max = 24
cost = min(rate * hours, daily_max) # 2
print(cost)
```
The program prints 2, as expected.
Parking costs $2.<|eot|... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $24 a day. How much for 1 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 1\ndaily_max = 24\ncost = min(rate * hours, dai... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0052931 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
How many of 27 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 27
needed = math.ceil(voters * 75 / 100) # 21
print(needed)
```
This prints 21, as expected.
21 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "How many of 27 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 27\nneeded = math.ceil(voters * 75 / 100) # 21\nprint(needed)\n```\nThis p... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0052932 | <|start|><|user|>
An office budget of $8,000 has expenses of $3,978, $415, $609, $3,745. How much of the budget is left?<|eot|>
<|assistant|>
budget = 8000
expenses = [3978, 415, 609, 3745]
left = budget - sum(expenses) # -747
print(left)
Execution prints: -747
The remaining budget is -$747.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $3,978, $415, $609, $3,745. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [3978, 415, 609, 3745]\n left = budget - sum(expenses) # -747\n print(left)\nExecut... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "-747", "printed": "-747", "notation": null} |
nlprog_det-setting-0052933 | A storeroom has 1713 hard drives. The office uses 11 a day. How many are left after 16 days?
A few lines of Python do it:
```python
stock = 1713
per_day = 11
days = 16
left = stock - per_day * days # 1537
print(left)
```
It prints 1537.
1537 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1537", "printed": "1537", "notation": null} |
nlprog_det-setting-0052934 | How much sales tax is charged on a $775.87 purchase at 9%?
The computation:
```python
price = 775.87
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 69.8283
print(f"{tax:.2f}")
```
Printed — 69.83
$69.83 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "69.83", "printed": "69.83", "notation": null} |
nlprog_det-setting-0052935 | A lease runs for 6 months at $2,875 per month. How much rent is paid over the whole term?
Python does the arithmetic:
```python
monthly_rent = 2875
months = 6
total = monthly_rent * months # 17250
print(total)
```
Run it and it prints 17250.
The rent over the term is $17,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0052936 | <|start|><|user|>
Buying 1 chairs at $16 each, 4 badges at $17 each, 5 tape rolls at $15 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 16), (4, 17), (5, 15)]
total = sum(q * p for q, p in items) # 159
paid = 200
change = paid - total # 41
print(change)
```
Out:
41
... | chat | [
{
"role": "user",
"content": "Buying 1 chairs at $16 each, 4 badges at $17 each, 5 tape rolls at $15 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 16), (4, 17), (5, 15)]\ntotal = sum(q * p for q, p in items) # 159\npaid = 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0052937 | How many whole days and leftover hours are in 47 hours?
```python
hours = 47
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution result — 1 days and 23 hours
47 hours is 1 days and 23 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1 days and 23 hours", "printed": "1 days and 23 hours", "notation": null} |
nlprog_det-setting-0052938 | Which is cheaper per unit: 6 for $9.14 (A) or 20 for $29.80 (B)?
The computation:
```python
pack_a = 9.14 / 6 # 1.5233333333333334
pack_b = 29.8 / 20 # 1.49
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Executing it gives: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052939 | Paula earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?
The weekly pay is $736.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "736.00", "printed": "736.00", "notation": null} |
nlprog_det-setting-0052940 | <|start|><|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|>
```python
grant = 48000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 3500.0
print(f"{each:.2f}")
```
Console output — 3500.00
Each installment ... | chat | [
{
"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": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 3500.0\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0052941 | An invoice lists 12 toner kits at $3 each, plus 8% sales tax. What is the invoice total?
As Python:
quantity = 12
unit_price = 3
subtotal = quantity * unit_price # 36
total = subtotal * (1 + 8 / 100) # 38.88
print(f"{total:.2f}")
(Run result: 38.88)
The invoice total is $38.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "38.88", "printed": "38.88", "notation": null} |
nlprog_det-setting-0052942 | From a $5,000 retainer, 14 hours at $150/hour have been drawn. What remains?
A few lines of Python do it:
```python
retainer = 5000
hours = 14
rate = 150
left = retainer - hours * rate # 2900
print(left)
```
(Execution result: 2900)
The remaining balance is $2,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2900", "printed": "2900", "notation": null} |
nlprog_det-setting-0052943 | A settlement of $7,344 is split equally among 8 parties. How much does each party receive?
Written as code:
```python
settlement = 7344
parties = 8
share = settlement // parties # 918
print(share)
```
The program outputs 918.
Each share is $918. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "918", "printed": "918", "notation": null} |
nlprog_det-setting-0052944 | A garage charges $4 an hour, never more than $18 a day. How much for 12 hours?
The charge is $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0052945 | <|start|><|user|>
At $30.37 an hour, what does 24 hours of work pay?<|eot|>
<|assistant|>
The pay is $728.88.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $30.37 an hour, what does 24 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $728.88."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "728.88", "printed": "728.88", "notation": null} |
nlprog_det-setting-0052946 | <|start|><|system|>
Tool definitions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "convert_units", "description": "Convert a quantity be... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 415 | {"gold": "4312.15", "printed": "4312.15", "notation": null} |
nlprog_det-setting-0052947 | <|start|><|user|>
At an exchange rate of 0.74 USD per CHF, how many USD is 2,026 CHF?<|eot|>
<|assistant|>
That is 1,499.24 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.74 USD per CHF, how many USD is 2,026 CHF?"
},
{
"role": "assistant",
"content": "That is 1,499.24 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1499.24", "printed": "1499.24", "notation": null} |
nlprog_det-setting-0052948 | Filing fees are $35 per document. What do 3 filings cost?
In code:
```python
fee = 35
filings = 3
total = fee * filings # 105
print(total)
```
Program output: 105
The total fee is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0052949 | Someone works 16 hours at $31.49 per hour. What are the earnings?
Let the code do the arithmetic:
rate = 31.49
hours = 16
earnings = rate * hours # 503.84
print(f"{earnings:.2f}")
# printed: 503.84
That earns $503.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "503.84", "printed": "503.84", "notation": null} |
nlprog_det-setting-0052950 | A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?
The computation:
```python
monthly_rent = 1200
months = 24
total = monthly_rent * months # 28800
print(total)
```
# program output: 28800
The rent over the term is $28,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0052952 | <|start|><|user|>
Walls total 608 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 608
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
Result:
3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 608 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 608\ncoverage = 250\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nResult:\n3\n\nBuy 3 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0052953 | Each storage box holds 24 files. How many boxes are needed for 468 files?
Python:
```python
import math
files = 468
per_box = 24
boxes = math.ceil(files / per_box) # 20
print(boxes)
```
This prints 20.
It takes 20 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0052954 | <|start|><|user|>
Water costs $12 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 16,000 gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.2
used = 16
free = 2
bill = base + rate * max(0, used - free) # 70.80000000000001
print(f"{bill:.2f}")
```
Execution result — 70.80
The bill is $70... | chat | [
{
"role": "user",
"content": "Water costs $12 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 16,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.2\nused = 16\nfree = 2\nbill = base + rate * max(0, used - free) # 70.80000000000001\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0052955 | Buying 5 staplers at $16 each, 2 tape rolls at $3 each, 2 tape rolls at $9 each, 5 labels at $15 each, someone hands over $200. What change comes back?
Python makes this quick:
```python
items = [(5, 16), (2, 3), (2, 9), (5, 15)]
total = sum(q * p for q, p in items)
paid = 200
change = paid - total
print(change)
```
(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0052956 | <|start|><|user|>
How many 1-foot square tiles cover a 14 ft by 14 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 14
width = 14
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 196
print(tiles)
Executing it gives: 196
It takes 196 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 14 ft by 14 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 14\n width = 14\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 196\n print(tiles)\nExecuting it ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "196", "printed": "196", "notation": null} |
nlprog_det-setting-0052957 | 4 books come back 19 days late, at $0.25 a day each. What is the fine?
In Python:
```python
per_day = 0.25
days_late = 19
books = 4
fine = per_day * days_late * books # 19.0
print(f"{fine:.2f}")
```
Output of the run — 19.00
$19.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "19.00", "printed": "19.00", "notation": null} |
nlprog_det-setting-0052958 | <|start|><|user|>
How much sales tax is charged on a $781.00 purchase at 5%?<|eot|>
<|assistant|>
```python
price = 781.0
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 39.050000000000004
print(f"{tax:.2f}")
```
# printed: 39.05
The tax is $39.05.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $781.00 purchase at 5%?"
},
{
"role": "assistant",
"content": "```python\nprice = 781.0\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 39.050000000000004\nprint(f\"{tax:.2f}\")\n```\n# printed: 39.05\n\nThe tax is $39.05."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "39.05", "printed": "39.05", "notation": null} |
nlprog_det-setting-0052959 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 1247 square feet of wall?<|eot|>
<|assistant|>
5 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 1247 square feet of wall?"
},
{
"role": "assistant",
"content": "5 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0052960 | <|start|><|user|>
Buying 1 file boxes at $19 each, 3 rulers at $28 each, 2 labels at $27 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 19), (3, 28), (2, 27)]
total = sum(q * p for q, p in items) # 157
paid = 200
change = paid - total # 43
print(change)
```
Executio... | chat | [
{
"role": "user",
"content": "Buying 1 file boxes at $19 each, 3 rulers at $28 each, 2 labels at $27 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 19), (3, 28), (2, 27)]\ntotal = sum(q * p for q, p in items) # 157\npaid = 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0052961 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "business_days", "... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0052962 | <|start|><|user|>
How many meters are in 71 kilometers?<|eot|>
<|assistant|>
```python
km = 71
meters = km * 1000
print(round(meters))
```
Shell output — 71000
71,000 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 71 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 71\nmeters = km * 1000\nprint(round(meters))\n```\nShell output — 71000\n\n71,000 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "71000", "printed": "71000", "notation": null} |
nlprog_det-setting-0052963 | Under a 33% contingency agreement, what fee is owed on a $150,000 award?
Written as code:
```python
recovery = 150000
rate = 33 / 100 # 0.33
fee = recovery * rate # 49500.0
print(f"{fee:.2f}")
```
stdout = 49500.00
The lawyer's fee comes to $49,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0052964 | <|start|><|user|>
Starting from $8,000, the team spends $668, $1,921, $2,927, $2,943. What remains?<|eot|>
<|assistant|>
budget = 8000
expenses = [668, 1921, 2927, 2943]
left = budget - sum(expenses)
print(left)
stdout: -459
The remaining budget is -$459.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $668, $1,921, $2,927, $2,943. What remains?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [668, 1921, 2927, 2943]\n left = budget - sum(expenses)\n print(left)\nstdout: -459\n\nThe remaining budg... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "-459", "printed": "-459", "notation": null} |
nlprog_det-setting-0052965 | 58 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Here is the program.
```python
total = 58
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Python prints 19 each, 1 left over.
The answer: 19 each, 1 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "19 each, 1 left over", "printed": "19 each, 1 left over", "notation": null} |
nlprog_det-setting-0052967 | 8 hours of work at $180 an hour: what is the total charge?
The computation:
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
# execution result: 1440.00
The bill is $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0052968 | A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 104-page copy cost?
Script:
```python
pages = 104
base = 15
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 67.0
print(f"{cost:.2f}")
```
Printed = 67.00
The total is $67.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "67.00", "printed": "67.00", "notation": null} |
nlprog_det-setting-0052969 | <|start|><|user|>
How much sales tax is charged on a $256.74 purchase at 7%?<|eot|>
<|assistant|>
```python
price = 256.74
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 17.9718
print(f"{tax:.2f}")
```
Execution prints: 17.97
The tax is $17.97.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $256.74 purchase at 7%?"
},
{
"role": "assistant",
"content": "```python\nprice = 256.74\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 17.9718\nprint(f\"{tax:.2f}\")\n```\nExecution prints: 17.97\n\nThe tax is $17.97."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "17.97", "printed": "17.97", "notation": null} |
nlprog_det-setting-0052970 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $24,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $24,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0052971 | With 30% off, what does a $60 filing cabinet cost?
We write it as a program:
```python
price = 60
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 42.0
print(f"{sale_price:.2f}")
```
Running it prints: 42.00
The sale price is $42.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0052972 | Attendance was 35 out of 50. Express it as a percent.
Python does the arithmetic:
```python
present = 35
total = 50
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
# result: 70.0
70.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0052973 | What is a 20% tip on a $158.71 bill?
Let's compute it with Python.
```python
bill = 158.71
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 31.742000000000004
print(f"{tip:.2f}")
```
Run output: 31.74
Leave $31.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "31.74", "printed": "31.74", "notation": null} |
nlprog_det-setting-0052974 | <|start|><|user|>
Nikhil earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 54
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 336.0
pay = regular + overtime # 976.0
print(f"{pay:.2f}")
```
# out: 976.0... | chat | [
{
"role": "user",
"content": "Nikhil earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 54\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 336.0\npay = regul... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "976.00", "printed": "976.00", "notation": null} |
nlprog_det-setting-0052975 | Scale 450 g of sugar from 4 servings to 6 servings.
In Python:
grams = 450
serves = 4
needed_for = 6
scaled = grams * needed_for // serves
print(scaled)
Python prints 675.
Use 675 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0052977 | A 60-day notice period begins on May 25, 2023. On what date does it end?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2023, 5, 25) # datetime.date(2023, 5, 25)
end = start + timedelta(days=60) # datetime.date(2023, 7, 24)
print(end.isoformat())
```
When run, it prints 2023-07... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2023-07-24", "printed": "2023-07-24", "notation": null} |
nlprog_det-setting-0052978 | <|start|><|user|>
Walls total 1142 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1142
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
Interpreter output — 4
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1142 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1142\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nInterpreter output — 4\n\n4 ca... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0052979 | A lease runs for 12 months at $1,200 per month. How much rent is paid over the whole term?
The Python version:
```python
monthly_rent = 1200
months = 12
total = monthly_rent * months # 14400
print(total)
```
Result = 14400
In total, $14,400 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "14400", "printed": "14400", "notation": null} |
nlprog_det-setting-0052980 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Jamal was born on J... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 246 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0052981 | Of a $2,000 budget, $100 has been spent. What percent is that?
5.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0052982 | A customer buys 1 rulers at $13 each, 3 cables at $21 each and pays with $100. How much change is due?
Python version:
```python
items = [(1, 13), (3, 21)]
total = sum(q * p for q, p in items) # 76
paid = 100
change = paid - total # 24
print(change)
```
The printout reads: 24
$24 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0052983 | A meal costs $40.17. How much is a 25% tip?
Python does the arithmetic:
```python
bill = 40.17
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 10.0425
print(f"{tip:.2f}")
```
Out = 10.04
The tip is $10.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "10.04", "printed": "10.04", "notation": null} |
nlprog_det-setting-0052984 | A library charges $0.25 per book per day late. What is the fine for 3 books that are 3 days late?
```python
per_day = 0.25
days_late = 3
books = 3
fine = per_day * days_late * books # 2.25
print(f"{fine:.2f}")
```
Execution prints 2.25, as expected.
$2.25 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2.25", "printed": "2.25", "notation": null} |
nlprog_det-setting-0052985 | <|start|><|user|>
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 2160.0
payment = (principal + interest) / months # 3... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 8 / 100 # 0.08\nmonths = 36\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "310.00", "printed": "310.00", "notation": null} |
nlprog_det-setting-0052986 | What simple interest does $20,000 earn at 5% a year over 5 years?
Here is the program.
```python
principal = 20000
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 5000.0
print(f"{interest:.2f}")
```
What it prints: 5000.00
It earns $5,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0052987 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A client paid a $7,500 retainer. The firm has billed 5 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 5
rate = 200
left = retainer - hours * rate # 6500
print(left)
```
The script prints: 6500
... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 5 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 5\nrate... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "6500", "printed": "6500", "notation": null} |
nlprog_det-setting-0052988 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "translate", "description": "Translate text into another language.", "parameter... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"translate\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 403 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0052989 | Find the mean of these test scores: 92, 71, 65 and 64.
Programmatically:
```python
scores = [92, 71, 65, 64]
average = sum(scores) // len(scores) # 73
print(average)
```
Output of the run: 73
The average score is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0052990 | Shipping costs $8 plus $1.20 per pound. What does a 15-pound parcel cost to ship?
Let's compute it with Python.
```python
base = 8
per_pound = 1.2
weight = 15
cost = base + per_pound * weight # 26.0
print(f"{cost:.2f}")
```
Executing it gives 26.00.
Shipping costs $26.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "26.00", "printed": "26.00", "notation": null} |
nlprog_det-setting-0052991 | <|start|><|system|>
Tools (call with JSON):
{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "convert_units", "description": "Conve... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "649.88", "printed": "649.88", "notation": null} |
nlprog_det-setting-0052992 | At 60 miles per hour, how many minutes does a 135-mile trip take?
Python version:
distance = 135
speed = 60
minutes = distance / speed * 60 # 135.0
print(round(minutes))
# program output: 135
The trip takes 135 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0052993 | <|start|><|user|>
Walls total 257 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 257
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
The run gives: 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 257 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 257\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe run gives: 2\n\n2 cans are n... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0052994 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Scale 200 g of pasta from 2 servings to 3 servings.<|eot|>
<|assistant|>
```python
grams = 200
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 300
print(scaled)
```
(Output: 300)
Use 300 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Scale 200 g of pasta from 2 servings to 3 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 2\nneeded_for = 3\nscaled = grams * needed_for // serves # 300\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0052995 | <|start|><|user|>
An invoice lists 25 notebooks at $15 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 25
unit_price = 15
subtotal = quantity * unit_price # 375
total = subtotal * (1 + 6 / 100) # 397.5
print(f"{total:.2f}")
```
Running it prints 397.50, as expected.
The ... | chat | [
{
"role": "user",
"content": "An invoice lists 25 notebooks at $15 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 25\nunit_price = 15\nsubtotal = quantity * unit_price # 375\ntotal = subtotal * (1 + 6 / 100) # 397.5\nprint(f\"{t... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "397.50", "printed": "397.50", "notation": null} |
nlprog_det-setting-0052996 | How much sales tax is charged on a $535.68 purchase at 4%?
We can compute it in Python.
```python
price = 535.68
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 21.4272
print(f"{tax:.2f}")
```
The script prints 21.43.
$21.43 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "21.43", "printed": "21.43", "notation": null} |
nlprog_det-setting-0052997 | <|start|><|user|>
What commission does Ada make on $19,142 in sales at 8%?<|eot|>
<|assistant|>
```python
sales = 19142
rate = 8 / 100 # 0.08
commission = sales * rate # 1531.3600000000001
print(f"{commission:.2f}")
```
It prints 1531.36.
Ada earns $1,531.36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Ada make on $19,142 in sales at 8%?"
},
{
"role": "assistant",
"content": "```python\nsales = 19142\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 1531.3600000000001\nprint(f\"{commission:.2f}\")\n```\nIt prints 1531.36.\n\nAda earns $1,5... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1531.36", "printed": "1531.36", "notation": null} |
nlprog_det-setting-0052998 | 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
The computation:
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 2 # 25200.0
print(f"{per_client:.2f}")
```
What it prints: 25200.00
Each sh... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "25200.00", "printed": "25200.00", "notation": null} |
nlprog_det-setting-0052999 | At $0.70 per mile, what is the reimbursement for 574 miles?
We can compute it in Python.
```python
miles = 574
rate = 0.7
reimbursement = miles * rate # 401.79999999999995
print(f"{reimbursement:.2f}")
```
Result:
401.80
Delia is owed $401.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "401.80", "printed": "401.80", "notation": null} |
nlprog_det-setting-0053000 | From a $7,500 retainer, 12 hours at $200/hour have been drawn. What remains?
Code:
```python
retainer = 7500
hours = 12
rate = 200
left = retainer - hours * rate # 5100
print(left)
```
Run result: 5100
The remaining balance is $5,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0053001 | Prorate $2,400 of monthly rent for 24 days of a 30-day month.
The prorated rent is $1,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1920.00", "printed": "1920.00", "notation": null} |
nlprog_det-setting-0053002 | Goods bought on March 20, 2026 carry a 12-month warranty. When does it expire?
We write it as a program:
```python
from datetime import date
start = date(2026, 3, 20)
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 | [] | [] | 147 | {"gold": "2027-03-20", "printed": "2027-03-20", "notation": null} |
nlprog_det-setting-0053003 | A trial runs from May 11, 2018 to May 30, 2018, counting both days. How many calendar days is that?
Python, step by step:
```python
from datetime import date
first = date(2018, 5, 11) # datetime.date(2018, 5, 11)
last = date(2018, 5, 30) # datetime.date(2018, 5, 30)
days = (last - first).days + 1 # 20
print(days)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0053004 | <|start|><|user|>
61 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 61
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
On running, it outputs: 6 each, 7 left over
6 each... | chat | [
{
"role": "user",
"content": "61 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 61\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6 each, 7 left over", "printed": "6 each, 7 left over", "notation": null} |
nlprog_det-setting-0053005 | <|start|><|user|>
On which weekday does October 2, 2004 fall?<|eot|>
<|assistant|>
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does October 2, 2004 fall?"
},
{
"role": "assistant",
"content": "It is a Saturday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0053006 | <|start|><|user|>
36 of 40 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 36
total = 40
percent = present / total * 100 # 90.0
print(round(percent, 1))
```
Executed, it shows: 90.0
90.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "36 of 40 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 36\ntotal = 40\npercent = present / total * 100 # 90.0\nprint(round(percent, 1))\n```\nExecuted, it shows: 90.0\n\n90.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0053007 | What percentage of $10,000 is $100?
```python
budget = 10000
spent = 100
percent = spent / budget * 100 # 1.0
print(round(percent, 1))
```
Executed, it shows 1.0.
1.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "1.0", "printed": "1.0", "notation": null} |
nlprog_det-setting-0053009 | <|start|><|user|>
What average speed covers 528 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 528
hours = 2
speed = distance / hours # 264.0
print(round(speed))
```
The code prints: 264
The average speed is 264 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 528 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 528\nhours = 2\nspeed = distance / hours # 264.0\nprint(round(speed))\n```\nThe code prints: 264\n\nThe average speed is 264 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0053010 | <|start|><|user|>
What is the total rent on a 24-month lease at $850 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 24
total = monthly_rent * months # 20400
print(total)
```
The code prints 20400.
The rent over the term is $20,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 24\ntotal = monthly_rent * months # 20400\nprint(total)\n```\nThe code prints 20400.\n\nThe rent over the term is $20,400."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0053012 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $1,000 over 2 months?<|eot|>
<|assistant|>
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 40.0
print(f"{interest:.2f}")
The script prin... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $1,000 over 2 months?"
},
{
"role": "assistant",
"content": " balance = 1000\n monthly_rate = 2 / 100 # 0.02\n months = 2\n interest... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0053013 | 4 books come back 19 days late, at $0.25 a day each. What is the fine?
$19.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "19.00", "printed": "19.00", "notation": null} |
nlprog_det-setting-0053014 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0053015 | <|start|><|user|>
With 15% off, what does a $300 backpack cost?<|eot|>
<|assistant|>
```python
price = 300
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 255.0
print(f"{sale_price:.2f}")
```
Executed, it shows: 255.00
The sale price is $255.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 15% off, what does a $300 backpack cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 255.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows: 255.00\n\nThe sale price is... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "255.00", "printed": "255.00", "notation": null} |
nlprog_det-setting-0053016 | A lease runs for 18 months at $1,475 per month. How much rent is paid over the whole term?
Python:
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
Python prints: 26550
The rent over the term is $26,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0053017 | What is 5 degrees Celsius in Fahrenheit?
Python makes this quick:
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
The code prints 41.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0053019 | From 2001 to 2015, how many years is that?
We can compute it in Python.
start_year = 2001
end_year = 2015
print(end_year - start_year)
Output: 14
14 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0053020 | A penalty of $50 a day accrues, capped at $5,000. What is owed after 8 days?
Python:
```python
per_day = 50
days = 8
cap = 5000
fine = min(per_day * days, cap) # 400
print(fine)
```
When run, it prints 400, as expected.
$400 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0053021 | Each storage box holds 15 files. How many boxes are needed for 655 files?
Code:
```python
import math
files = 655
per_box = 15
boxes = math.ceil(files / per_box) # 44
print(boxes)
```
Execution prints 44, as expected.
44 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0053022 | Counting only Monday through Friday, how many business days are there after November 3, 2027 through November 15, 2027?
As Python:
```python
from datetime import date, timedelta
start = date(2027, 11, 3)
end = date(2027, 11, 15)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0053023 | <|start|><|user|>
A 12-month warranty starts on December 10, 2022. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2022, 12, 10)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isof... | chat | [
{
"role": "user",
"content": "A 12-month warranty starts on December 10, 2022. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2022, 12, 10)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-12-10", "printed": "2023-12-10", "notation": null} |
nlprog_det-setting-0053024 | Under a 40% contingency agreement, what fee is owed on a $25,000 award?
One way, in code:
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Printed result — 10000.00
The lawyer's fee comes to $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0053025 | Printing costs 8 cents a page. What does it cost to print 194 copies of a 37-page handout?
As Python:
```python
pages = 37
copies = 194
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 574.24
print(f"{cost:.2f}")
```
(Output: 574.24)
Printing costs $574.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "574.24", "printed": "574.24", "notation": null} |
nlprog_det-setting-0053026 | What simple interest does $2,500 earn at 5% a year over 4 years?
Programmatically:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 500.0
print(f"{interest:.2f}")
```
The interpreter prints: 500.00
It earns $500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "500.00", "printed": "500.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.