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-0074426 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["pr... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descri... | nlprog_det | setting | original | null | deterministic | [] | [] | 334 | {"gold": "93.84", "printed": "93.84", "notation": null} |
nlprog_det-setting-0074427 | <|start|><|user|>
A shift runs from 11:30 AM to 12:59 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 30 # 690
end = 12 * 60 + 59 # 779
print(end - start)
```
Output: 89
It is 89 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 11:30 AM to 12:59 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 30 # 690\nend = 12 * 60 + 59 # 779\nprint(end - start)\n```\nOutput: 89\n\nIt is 89 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0074428 | After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
As a program:
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 4 # 10800.0
print(f"{per_client:.2f}")
```
Run result — 10800.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "10800.00", "printed": "10800.00", "notation": null} |
nlprog_det-setting-0074429 | Each of Yusuf's bike rides burns 400 calories. How many calories over 4 bike rides?
That burns 1600 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0074430 | <|start|><|user|>
4 hours of work at $250 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 4
rate = 250
bill = hours * rate # 1000
print(f"{bill:.2f}")
```
The printout reads 1000.00.
That comes to $1,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 hours of work at $250 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 250\nbill = hours * rate # 1000\nprint(f\"{bill:.2f}\")\n```\nThe printout reads 1000.00.\n\nThat comes to $1,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0074431 | 5 friends split a $96 bill plus a 18% tip evenly. How much does each pay?
A few lines of Python do it:
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 22.656
print(f"{each:.2f}")
```
Run result: 22.66
The share is $22.66 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "22.66", "printed": "22.66", "notation": null} |
nlprog_det-setting-0074432 | 8 boxes hold 8 flash drives each. After 4 are handed out, how many are left?
That leaves 60 flash drives. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0074433 | At $29.16 an hour, what does 12 hours of work pay?
Script:
```python
rate = 29.16
hours = 12
earnings = rate * hours # 349.92
print(f"{earnings:.2f}")
```
Out: 349.92
That earns $349.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "349.92", "printed": "349.92", "notation": null} |
nlprog_det-setting-0074434 | Count the days between September 25, 2028 and December 27, 2028.
Computing it:
```python
from datetime import date
first = date(2028, 9, 25) # datetime.date(2028, 9, 25)
second = date(2028, 12, 27) # datetime.date(2028, 12, 27)
print((second - first).days)
```
# output: 93
There are 93 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0074435 | Each of Abel's runs burns 350 calories. How many calories over 7 runs?
Let's compute it with Python.
per_session = 350
sessions = 7
total = per_session * sessions
print(total)
That prints: 2450
2450 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0074436 | <|start|><|user|>
How many minutes pass from 10:08 AM to 11:28 AM on the same day?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 8 # 608
end = 11 * 60 + 28 # 688
print(end - start)
```
(Out: 80)
80 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:08 AM to 11:28 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 8 # 608\nend = 11 * 60 + 28 # 688\nprint(end - start)\n```\n(Out: 80)\n\n80 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0074437 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
How many whole days and leftover hours are in 53 hours?<|eot|>
<|assistant|>
```python
hours = 53
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# output: 2 days and 5 hours
That is 2 days and 5 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 53 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 53\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2 days and 5 hours", "printed": "2 days and 5 hours", "notation": null} |
nlprog_det-setting-0074439 | The landlord deducts $120 from a $1,000 deposit. What is returned to the tenant?
Here's the code.
```python
deposit = 1000
deductions = [120]
refund = deposit - sum(deductions) # 880
print(refund)
```
# console output: 880
The refund is $880. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "880", "printed": "880", "notation": null} |
nlprog_det-setting-0074440 | Papers were served by mail on April 11, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Here is a short program for it.
from datetime import date, timedelta
served = date(2020, 4, 11) # datetime.date(2020, 4, 11)
response_days = 14
mail_days = 3
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2020-04-28", "printed": "2020-04-28", "notation": null} |
nlprog_det-setting-0074441 | How many 1-foot square tiles cover a 13 ft by 11 ft floor (round up)?
A Python solution:
```python
import math
length = 13
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 143
print(tiles)
```
That prints: 143
It takes 143 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0074442 | A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 85-page copy cost?
```python
pages = 85
base = 10
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 16.5
print(f"{cost:.2f}")
```
The printout reads 16.50.
The total is $16.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "16.50", "printed": "16.50", "notation": null} |
nlprog_det-setting-0074443 | An invoice lists 24 flash drives at $9 each, plus 6% sales tax. What is the invoice total?
Python, step by step:
```python
quantity = 24
unit_price = 9
subtotal = quantity * unit_price # 216
total = subtotal * (1 + 6 / 100) # 228.96
print(f"{total:.2f}")
```
The program prints 228.96.
The total with tax is $228.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "228.96", "printed": "228.96", "notation": null} |
nlprog_det-setting-0074444 | <|start|><|system|>
Tools (call with JSON):
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
With 2... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "135.00", "printed": "135.00", "notation": null} |
nlprog_det-setting-0074445 | <|start|><|user|>
Revenue is $15,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
It prints 16.7.
Pr... | chat | [
{
"role": "user",
"content": "Revenue is $15,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 15000\ncosts = 12500\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 16.66666... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0074446 | <|start|><|user|>
A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 25-page copy cost?<|eot|>
<|assistant|>
```python
pages = 25
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 12.5
print(f"{cost:.2f}")
```
(stdout: 12.50)
The total ... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 25-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 25\nbase = 10\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "12.50", "printed": "12.50", "notation": null} |
nlprog_det-setting-0074447 | <|start|><|user|>
How many whole days and leftover hours are in 362 hours?<|eot|>
<|assistant|>
```python
hours = 362
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives: 15 days and 2 hours
362 hours is 15 days and 2 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 362 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 362\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe run gives: 15 days and 2 hours\n\n362 hours is 15 days and 2 ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "15 days and 2 hours", "printed": "15 days and 2 hours", "notation": null} |
nlprog_det-setting-0074448 | How many units at $30 each (variable cost $24) cover $6,000 of fixed costs?
Python version:
```python
import math
fixed = 6000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
The program prints: 1000
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0074449 | At $20.70 an hour, what does 30 hours of work pay?
Python, step by step:
```python
rate = 20.7
hours = 30
earnings = rate * hours # 621.0
print(f"{earnings:.2f}")
```
(Run result: 621.00)
The pay is $621.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "621.00", "printed": "621.00", "notation": null} |
nlprog_det-setting-0074451 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Convert 0 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Python prints 32, as expected.
That is 32 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Convert 0 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nPython prints 32, as expected.\n\nThat is... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0074452 | <|start|><|user|>
A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
$2,000.00 per installment.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "$2,000.00 per installment."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0074453 | Under a 35% contingency agreement, what fee is owed on a $60,000 award?
The fee is $21,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0074454 | <|start|><|user|>
From 2008 to 2011, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2008
end_year = 2011
print(end_year - start_year)
```
The code prints: 3
3 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2008 to 2011, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2008\nend_year = 2011\nprint(end_year - start_year)\n```\nThe code prints: 3\n\n3 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0074455 | <|start|><|user|>
A 60-day notice period begins on August 15, 2026. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 8, 15) # datetime.date(2026, 8, 15)
end = start + timedelta(days=60) # datetime.date(2026, 10, 14)
print(end.isoformat())
```
Python prin... | chat | [
{
"role": "user",
"content": "A 60-day notice period begins on August 15, 2026. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 8, 15) # datetime.date(2026, 8, 15)\nend = start + timedelta(days=60) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-10-14", "printed": "2026-10-14", "notation": null} |
nlprog_det-setting-0074456 | <|start|><|system|>
Tools (call with JSON):
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_sta... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 466 | {"gold": "2025-03-07", "printed": "2025-03-07", "notation": null} |
nlprog_det-setting-0074457 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
What is the total rent on a 6-month lease at $850 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 6
total = monthly_rent * months # 5100
print(total)
```
This prints 5100.
The rent over the term is $5,100.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 6\ntotal = monthly_rent * months # 5100\nprint(t... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0074458 | <|start|><|user|>
What is the total rent on a 24-month lease at $1,475 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1475
months = 24
total = monthly_rent * months # 35400
print(total)
```
When run, it prints 35400, as expected.
The rent over the term is $35,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $1,475 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1475\nmonths = 24\ntotal = monthly_rent * months # 35400\nprint(total)\n```\nWhen run, it prints 35400, as expected.\n\nThe rent over the ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "35400", "printed": "35400", "notation": null} |
nlprog_det-setting-0074459 | From 2013 to 2031, how many years is that?
Programmatically:
start_year = 2013
end_year = 2031
print(end_year - start_year)
The run gives 18, as expected.
That is 18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074460 | Each of Zoe's swims burns 300 calories. How many calories over 5 swims?
In Python:
```python
per_session = 300
sessions = 5
total = per_session * sessions # 1500
print(total)
```
Printed result — 1500
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0074461 | Meals are $79 per day and lodging $110 per night. What is the allowance for 6 days and 5 nights?
Python makes this quick:
```python
days = 6
meal_rate = 79
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1024
print(total)
```
(Out: 1024)
The allowance is $1,024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1024", "printed": "1024", "notation": null} |
nlprog_det-setting-0074463 | <|start|><|user|>
After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
Each installment is $2,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "Each installment is $2,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0074464 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?
We can compute it in Python.
```python
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}")
```
Output of the run — 360.00
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0074465 | <|start|><|user|>
1 books come back 17 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 17
books = 1
fine = per_day * days_late * books # 3.4000000000000004
print(f"{fine:.2f}")
```
The program outputs 3.40.
$3.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 17 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 17\nbooks = 1\nfine = per_day * days_late * books # 3.4000000000000004\nprint(f\"{fine:.2f}\")\n```\nThe program outp... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3.40", "printed": "3.40", "notation": null} |
nlprog_det-setting-0074466 | Which is cheaper per unit: 8 for $14.85 (A) or 30 for $23.34 (B)?
Python does the arithmetic:
```python
pack_a = 14.85 / 8 # 1.85625
pack_b = 23.34 / 30 # 0.778
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Python prints B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0074467 | Each storage box holds 50 files. How many boxes are needed for 719 files?
A Python solution:
```python
import math
files = 719
per_box = 50
boxes = math.ceil(files / per_box) # 15
print(boxes)
```
On running, it outputs 15.
It takes 15 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0074468 | A pack of 12 chairs sells for $192. What does each cost?
```python
total = 192
count = 12
per_item = total // count
print(per_item)
```
Output: 16
The unit price is $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0074470 | <|start|><|user|>
Notice was given on August 22, 2021. The notice period is 45 days. When does it run out?<|eot|>
<|assistant|>
That date is October 6, 2021.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Notice was given on August 22, 2021. The notice period is 45 days. When does it run out?"
},
{
"role": "assistant",
"content": "That date is October 6, 2021."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2021-10-06", "printed": "2021-10-06", "notation": null} |
nlprog_det-setting-0074471 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "math_engine... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0074472 | <|start|><|user|>
A pack of 5 toner kits sells for $300. What does each cost?<|eot|>
<|assistant|>
The unit price is $60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 5 toner kits sells for $300. What does each cost?"
},
{
"role": "assistant",
"content": "The unit price is $60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0074473 | The rules require 1/3 of 15 members (round up) to be present. How many is that?
We write it as a program:
```python
import math
members = 15
quorum = math.ceil(members * 1 / 3) # 5
print(quorum)
```
Printed:
5
That is 5 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0074474 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0074475 | <|start|><|user|>
With 28 rows of 9 chairs and 7 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 28
per_row = 9
empty = 7
seated = rows * per_row - empty # 245
print(seated)
```
Output of the run — 245
245 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 28 rows of 9 chairs and 7 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 28\nper_row = 9\nempty = 7\nseated = rows * per_row - empty # 245\nprint(seated)\n```\nOutput of the run — 245\n\n245 people are seated.... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "245", "printed": "245", "notation": null} |
nlprog_det-setting-0074476 | 5 friends split a $84 bill plus a 15% tip evenly. How much does each pay?
Here is a short program for it.
```python
bill = 84
tip_rate = 15 / 100
people = 5
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
Output — 19.32
Each person pays $19.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "19.32", "printed": "19.32", "notation": null} |
nlprog_det-setting-0074477 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 138 miles?<|eot|>
<|assistant|>
```python
miles = 138
rate = 0.62
reimbursement = miles * rate # 85.56
print(f"{reimbursement:.2f}")
```
When run, it prints: 85.56
Amir is owed $85.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 138 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 138\nrate = 0.62\nreimbursement = miles * rate # 85.56\nprint(f\"{reimbursement:.2f}\")\n```\nWhen run, it prints: 85.56\n\nAmir is owed $85.56."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "85.56", "printed": "85.56", "notation": null} |
nlprog_det-setting-0074478 | <|start|><|user|>
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
Printed:
45000.00
The lawyer's fee comes to $45,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": " recovery = 150000\n rate = 30 / 100 # 0.3\n fee = recovery * rate # 45000.0\n print(f\"{fee:.2f}\")\nPrinted:\n45000.00\n\nThe lawyer's fee come... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0074479 | Goods bought on October 10, 2019 carry a 12-month warranty. When does it expire?
It expires on October 10, 2020. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2020-10-10", "printed": "2020-10-10", "notation": null} |
nlprog_det-setting-0074480 | From 2002 to 2034, how many years is that?
Python code:
```python
start_year = 2002
end_year = 2034
print(end_year - start_year)
```
Interpreter output — 32
That is 32 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0074481 | Goran drove 597 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
```python
miles = 597
rate = 0.58
reimbursement = miles * rate # 346.26
print(f"{reimbursement:.2f}")
```
Run output — 346.26
Goran is owed $346.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "346.26", "printed": "346.26", "notation": null} |
nlprog_det-setting-0074482 | A client paid a $5,000 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?
Code:
```python
retainer = 5000
hours = 8
rate = 200
left = retainer - hours * rate # 3400
print(left)
```
Printed result: 3400
$3,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3400", "printed": "3400", "notation": null} |
nlprog_det-setting-0074483 | <|start|><|system|>
You may call the tools below.
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"compute\", \"description\": \"A Pyt... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "1188", "printed": "1188", "notation": null} |
nlprog_det-setting-0074484 | A garage charges $3 an hour, never more than $18 a day. How much for 10 hours?
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074485 | 299 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
A Python solution:
```python
total = 299
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Program output: 99 each, 2 left over
The answer: 99 each, 2 left ov... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "99 each, 2 left over", "printed": "99 each, 2 left over", "notation": null} |
nlprog_det-setting-0074486 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
If a 150-minute meeting begins at 11:30 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 30
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
What it prin... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "If a 150-minute meeting begins at 11:30 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 30\nend = start + 150\nhour, minute = divmod(end, 60)\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2:00 PM", "printed": "2:00 PM", "notation": null} |
nlprog_det-setting-0074487 | A 6% increase is applied to $2,200 monthly rent. What is the new amount?
The computation:
```python
rent = 2200
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 2332.0
print(f"{new_rent:.2f}")
```
Printed = 2332.00
The new rent is $2,332.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2332.00", "printed": "2332.00", "notation": null} |
nlprog_det-setting-0074488 | <|start|><|system|>
Functions:
{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Under a 35% contingency agreement... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0074489 | <|start|><|user|>
At an exchange rate of 1.08 CAD per USD, how many CAD is 5,016 USD?<|eot|>
<|assistant|>
```python
amount = 5016
rate = 1.08
converted = amount * rate # 5417.280000000001
print(f"{converted:.2f}")
```
Running this gives: 5417.28
It converts to 5,417.28 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.08 CAD per USD, how many CAD is 5,016 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 5016\nrate = 1.08\nconverted = amount * rate # 5417.280000000001\nprint(f\"{converted:.2f}\")\n```\nRunning this gives: 5417.28\n\nIt conv... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "5417.28", "printed": "5417.28", "notation": null} |
nlprog_det-setting-0074490 | <|start|><|user|>
Buying 1 sticky pads at $5 each, 6 cables at $14 each, 4 water bottles at $17 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 5), (6, 14), (4, 17)]
total = sum(q * p for q, p in items) # 157
paid = 200
change = paid - total # 43
print(change)
```
Th... | chat | [
{
"role": "user",
"content": "Buying 1 sticky pads at $5 each, 6 cables at $14 each, 4 water bottles at $17 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 5), (6, 14), (4, 17)]\ntotal = sum(q * p for q, p in items) # 157\npa... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0074491 | <|start|><|user|>
Kaito lends $5,000 at 2% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 5
interest = principal * rate * years # 500.0
print(f"{interest:.2f}")
```
On running, it outputs: 500.00
It earns $500.00.<|eot|... | chat | [
{
"role": "user",
"content": "Kaito lends $5,000 at 2% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 5\ninterest = principal * rate * years # 500.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0074492 | Ulla earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?
Programmatically:
rate = 25.0
hours = 51
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 412.5
pay = regular + overtime # 1412.5
print(f"{pay:.2f}")
Running this gives: 14... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "1412.50", "printed": "1412.50", "notation": null} |
nlprog_det-setting-0074493 | Divide 78 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python:
```python
total = 78
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# stdout: 15 each, 3 left over
The answer: 15 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "15 each, 3 left over", "printed": "15 each, 3 left over", "notation": null} |
nlprog_det-setting-0074494 | <|start|><|user|>
A 11 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Out — 33
33 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 11 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 12\ntile = 2\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nOut — 33\n\n33 t... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0074495 | Yara buys 12 boxes of 8 rulers each and gives away 3 rulers. How many rulers are left?
Python code:
```python
boxes = 12
per_box = 8
given_away = 3
left = boxes * per_box - given_away # 93
print(left)
```
(Out: 93)
93 rulers are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0074496 | <|start|><|user|>
27 copies of a 47-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 47
copies = 27
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 126.9
print(f"{cost:.2f}")
```
Run result — 126.90
The job costs $126.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "27 copies of a 47-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 47\ncopies = 27\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 126.9\nprint(f\"{cost:.2f}\")\n```\nRun result — 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "126.90", "printed": "126.90", "notation": null} |
nlprog_det-setting-0074497 | A client paid a $5,000 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?
In Python:
```python
retainer = 5000
hours = 11
rate = 250
left = retainer - hours * rate # 2250
print(left)
```
Python prints 2250.
$2,250 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0074498 | A library charges $0.25 per book per day late. What is the fine for 4 books that are 4 days late?
Computation in Python:
```python
per_day = 0.25
days_late = 4
books = 4
fine = per_day * days_late * books # 4.0
print(f"{fine:.2f}")
```
Console output — 4.00
$4.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4.00", "printed": "4.00", "notation": null} |
nlprog_det-setting-0074499 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 16 days? The fine is $400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0074500 | How many meters are in 28.4 kilometers?
As a program:
```python
km = 28.4
meters = km * 1000
print(round(meters))
```
# printed result: 28400
28,400 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "28400", "printed": "28400", "notation": null} |
nlprog_det-setting-0074501 | A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Programmatically:
```python
principal = 2400
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 720.0
payment = (principal + int... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "86.67", "printed": "86.67", "notation": null} |
nlprog_det-setting-0074502 | At 30 miles per hour, how many minutes does a 120-mile trip take?
Program:
```python
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Program output — 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0074503 | What simple interest does $1,000 earn at 4% a year over 5 years?
The interest is $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0074505 | Monthly rent is $2,400. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent?
Python:
```python
rent = 2400
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 696.7741935483871
print(f"{prorated:.2f}")
```
The program prints 696.77, as expected.
The pror... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "696.77", "printed": "696.77", "notation": null} |
nlprog_det-setting-0074506 | A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 21 thousand gallons?
$97.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "97.50", "printed": "97.50", "notation": null} |
nlprog_det-setting-0074507 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Sales went from 2,500 to 2,875. What is the percent change?<|eot|>
<|assistant|>
```python
old = 2500
new = 2875
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Executing it gives 15, as expected.
The change is 15%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Sales went from 2,500 to 2,875. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 2875\nchange = (new - old) / old * 100 # 15.0\nprint(round(chan... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0074508 | A 10-day notice period begins on July 11, 2018. On what date does it end?
Programmatically:
```python
from datetime import date, timedelta
start = date(2018, 7, 11) # datetime.date(2018, 7, 11)
end = start + timedelta(days=10) # datetime.date(2018, 7, 21)
print(end.isoformat())
```
Execution result — 2018-07-21
It ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2018-07-21", "printed": "2018-07-21", "notation": null} |
nlprog_det-setting-0074509 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_word", "de... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "2120", "printed": "2120", "notation": null} |
nlprog_det-setting-0074510 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How many weekdays (Monday to... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sni... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0074511 | Filing fees are $125 per document. What do 13 filings cost?
In code:
```python
fee = 125
filings = 13
total = fee * filings # 1625
print(total)
```
The code prints 1625.
$1,625 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1625", "printed": "1625", "notation": null} |
nlprog_det-setting-0074512 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0074513 | <|start|><|user|>
Yusuf earns a 8% commission on $77,131 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 77131
rate = 8 / 100 # 0.08
commission = sales * rate # 6170.4800000000005
print(f"{commission:.2f}")
```
Run it and it prints: 6170.48
Yusuf earns $6,170.48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yusuf earns a 8% commission on $77,131 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 77131\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 6170.4800000000005\nprint(f\"{commission:.2f}\")\n```\nRun it and it prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6170.48", "printed": "6170.48", "notation": null} |
nlprog_det-setting-0074514 | <|start|><|user|>
2 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 48000
fee = award * 30 / 100 # 14400.0
remaining = award - fee # 33600.0
per_client = remaining / 2 # 16800.0
print(f"{per_client:.2f}")
```
It outputs 1... | chat | [
{
"role": "user",
"content": "2 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 48000\nfee = award * 30 / 100 # 14400.0\nremaining = award - fee # 33600.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0074515 | <|start|><|user|>
A $150 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 60.0
print(f"{each:.2f}")
```
Out — 60.00
The share is $60.00 each.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "A $150 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\npeople = 3\neach = bill * (1 + tip_rate) / people # 60.0\nprint(f\"{each:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0074516 | A garage charges $5 an hour, never more than $15 a day. How much for 1 hours?
Programmatically:
```python
rate = 5
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 5
print(cost)
```
Printed: 5
The charge is $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0074517 | A 45-day notice period begins on August 9, 2026. On what date does it end?
The computation:
```python
from datetime import date, timedelta
start = date(2026, 8, 9) # datetime.date(2026, 8, 9)
end = start + timedelta(days=45) # datetime.date(2026, 9, 23)
print(end.isoformat())
```
Run output: 2026-09-23
The period e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2026-09-23", "printed": "2026-09-23", "notation": null} |
nlprog_det-setting-0074518 | One can of paint covers 300 square feet. How many cans are needed for 743 square feet of wall?
Here is a short program for it.
```python
import math
area = 743
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run output — 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0074519 | 16 staplers cost $3 apiece. With 8% tax added, what is the total?
Written as code:
```python
quantity = 16
unit_price = 3
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
It prints 51.84, as expected.
The total with tax is $51.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "51.84", "printed": "51.84", "notation": null} |
nlprog_det-setting-0074520 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"stri... | nlprog_det | setting | original | null | deterministic | [] | [] | 330 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0074521 | A client paid a $5,000 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?
Computing it:
```python
retainer = 5000
hours = 5
rate = 275
left = retainer - hours * rate # 3625
print(left)
```
The printout reads 3625.
The remaining balance is $3,625. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3625", "printed": "3625", "notation": null} |
nlprog_det-setting-0074522 | <|start|><|user|>
A 78-page report must be reviewed in 3 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 78
days = 3
per_day = pages // days # 26
print(per_day)
```
Console output: 26
26 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 78-page report must be reviewed in 3 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 78\ndays = 3\nper_day = pages // days # 26\nprint(per_day)\n```\nConsole output: 26\n\n26 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0074523 | How many days are there from September 1, 2021 to April 4, 2022?
Computation in Python:
```python
from datetime import date
first = date(2021, 9, 1) # datetime.date(2021, 9, 1)
second = date(2022, 4, 4) # datetime.date(2022, 4, 4)
print((second - first).days)
```
Execution result: 215
It is 215 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "215", "printed": "215", "notation": null} |
nlprog_det-setting-0074524 | Under a 33% contingency agreement, what fee is owed on a $12,000 award?
We can compute it in Python.
```python
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
```
(Printed result: 3960.00)
The lawyer's fee comes to $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0074525 | <|start|><|system|>
Tool definitions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"eval_python\", \"description\": \"Evaluate... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "594", "printed": "594", "notation": null} |
nlprog_det-setting-0074526 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Meals ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "1259", "printed": "1259", "notation": null} |
nlprog_det-setting-0074527 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 5.9%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 5.9%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0074528 | Equal monthly payments repay $9,000 plus 5% simple yearly interest over 24 months. How large is a payment?
Translated to Python:
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 900.0
payment = (principal + interest) / months # 412.5
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "412.50", "printed": "412.50", "notation": null} |
nlprog_det-setting-0074529 | <|start|><|user|>
Copies cost $5 plus $0.25 for each page beyond 20. How much for 39 pages?<|eot|>
<|assistant|>
```python
pages = 39
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 9.75
print(f"{cost:.2f}")
```
(Run result: 9.75)
The copy costs $9.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 20. How much for 39 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 39\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 9.75\nprint(f\"{cost:.2f}\")\n`... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "9.75", "printed": "9.75", "notation": null} |
nlprog_det-setting-0074530 | Uma's scores were 68, 55, 75, 83, 57 and 76. What is the average score?
One way, in code:
```python
scores = [68, 55, 75, 83, 57, 76]
average = sum(scores) // len(scores) # 69
print(average)
```
Executing it gives 69.
The average score is 69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "69", "printed": "69", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.