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-0077636 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A garage charges $4 an hour, never more than $18 a day. How much for 3 hours?<|eot|>
<|assistant|>
```python
rate = 4
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Result:
12
Parking costs $12.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $18 a day. How much for 3 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 3\ndaily_max = 18\ncost = min(rate * hours, dai... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0077637 | <|start|><|user|>
Rent of $1,800 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1836.0
print(f"{new_rent:.2f}")
```
stdout: 1836.00
It rises to $1,836.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1836.0\nprint(f\"{new_rent:.2f}\")\n```\nstdout: 1836.00\n\nIt rises to $1,836.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1836.00", "printed": "1836.00", "notation": null} |
nlprog_det-setting-0077638 | How many meters are in 44.3 kilometers?
Written as code:
```python
km = 44.3
meters = km * 1000 # 44300.0
print(round(meters))
```
The interpreter prints 44300.
44,300 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "44300", "printed": "44300", "notation": null} |
nlprog_det-setting-0077640 | A $800 security deposit has deductions of $60. How much is refunded?
The Python version:
deposit = 800
deductions = [60]
refund = deposit - sum(deductions) # 740
print(refund)
Execution prints: 740
$740 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "740", "printed": "740", "notation": null} |
nlprog_det-setting-0077641 | <|start|><|user|>
A recipe for 2 people uses 240 grams of rice. How many grams are needed for 6 people?<|eot|>
<|assistant|>
```python
grams = 240
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 720
print(scaled)
```
Result = 720
Use 720 g of rice.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 240 grams of rice. How many grams are needed for 6 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 2\nneeded_for = 6\nscaled = grams * needed_for // serves # 720\nprint(scaled)\n```\nResult = 720\n\nUse 720... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0077642 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
How much sales tax is charged on a $61.35 purchase at 7%?<|eot|>
<|assistant|>
price = 61.35
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 4.2945
print(f"{tax:.2f}")
Executed, it shows: 4.29
$4.29 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "How much sales tax is charged on a $61.35 purchase at 7%?"
},
{
"role": "assistant",
"content": " price = 61.35\n tax_rate = 7 / 100 # 0.07\n tax = price * tax_rate # 4.2945\n print... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4.29", "printed": "4.29", "notation": null} |
nlprog_det-setting-0077643 | $10,000 is invested at 2% compounded yearly. What is it worth after 3 years?
Computing it:
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 10612.080000000002
print(f"{value:.2f}")
```
Running this gives 10612.08.
The balance is $10,612.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "10612.08", "printed": "10612.08", "notation": null} |
nlprog_det-setting-0077644 | A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?
The bill is $99.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "99.80", "printed": "99.80", "notation": null} |
nlprog_det-setting-0077645 | Express 388 hours in days and hours. 388 hours is 16 days and 4 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "16 days and 4 hours", "printed": "16 days and 4 hours", "notation": null} |
nlprog_det-setting-0077646 | <|start|><|user|>
A claim accrued on June 25, 2012. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 6, 25) # datetime.date(2012, 6, 25)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 6, ... | chat | [
{
"role": "user",
"content": "A claim accrued on June 25, 2012. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2012, 6, 25) # datetime.date(2012, 6, 25)\nyears = 6\nexpires = accrued.rep... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2018-06-25", "printed": "2018-06-25", "notation": null} |
nlprog_det-setting-0077647 | <|start|><|user|>
Emeka drove 479 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 479
rate = 0.58
reimbursement = miles * rate # 277.82
print(f"{reimbursement:.2f}")
```
The script prints 277.82.
Emeka is owed $277.82.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Emeka drove 479 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 479\nrate = 0.58\nreimbursement = miles * rate # 277.82\nprint(f\"{reimbursement:.2f}\")\n```\nThe scr... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "277.82", "printed": "277.82", "notation": null} |
nlprog_det-setting-0077649 | <|start|><|system|>
You have access to these functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "code_runner", "description": "Eval... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "86.67", "printed": "86.67", "notation": null} |
nlprog_det-setting-0077650 | A hall has 12 rows of 17 seats, and 19 seats are empty. How many people are seated?
A short script:
rows = 12
per_row = 17
empty = 19
seated = rows * per_row - empty # 185
print(seated)
Execution prints: 185
185 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "185", "printed": "185", "notation": null} |
nlprog_det-setting-0077651 | After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Python version:
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
print(f"{per_client:.2f}")
```
Executed, it shows... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0077652 | <|start|><|user|>
Walls total 874 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 874
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Running it prints 3, as expected.
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 874 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 874\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRunning it prints 3, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0077653 | A $96 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?
Script:
bill = 96
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 36.8
print(f"{each:.2f}")
On running, it outputs 36.80.
Each person pays $36.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36.80", "printed": "36.80", "notation": null} |
nlprog_det-setting-0077654 | The landlord deducts $200 and $45 from a $1,000 deposit. What is returned to the tenant?
$755 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "755", "printed": "755", "notation": null} |
nlprog_det-setting-0077655 | What simple interest does $20,000 earn at 4% a year over 5 years?
Code:
```python
principal = 20000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 4000.0
print(f"{interest:.2f}")
```
The script prints 4000.00.
It earns $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0077657 | A hearing is set for March 4, 2019. What day of the week is that?
A short script:
```python
from datetime import date
hearing = date(2019, 3, 4) # datetime.date(2019, 3, 4)
print(hearing.strftime("%A"))
```
(Result: Monday)
It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0077658 | A $150 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
A short script:
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
```
Out:
36.00
The share is $36.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0077659 | <|start|><|user|>
A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 60-page copy cost?<|eot|>
<|assistant|>
```python
pages = 60
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 16.0
print(f"{cost:.2f}")
```
Run output: 16.00
The tota... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 60-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 60\nbase = 10\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0077661 | 5 boxes hold 8 file boxes each. After 8 are handed out, how many are left?
```python
boxes = 5
per_box = 8
given_away = 8
left = boxes * per_box - given_away # 32
print(left)
```
stdout — 32
32 file boxes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0077662 | At a 6% tax rate, what is the tax on $316.24?
As Python:
```python
price = 316.24
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 18.9744
print(f"{tax:.2f}")
```
It outputs 18.97.
The tax is $18.97. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "18.97", "printed": "18.97", "notation": null} |
nlprog_det-setting-0077663 | An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?
A Python solution:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 150.0
print(f"{interest:.2f}")
```
Out:
150.00
The interest is $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0077664 | Of a $8,000 budget, $6,000 has been spent. What percent is that?
Code:
```python
budget = 8000
spent = 6000
percent = spent / budget * 100 # 75.0
print(round(percent, 1))
```
Printed result — 75.0
75.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0077665 | <|start|><|user|>
Of a $10,000 budget, $200 has been spent. What percent is that?<|eot|>
<|assistant|>
budget = 10000
spent = 200
percent = spent / budget * 100 # 2.0
print(round(percent, 1))
Run it and it prints 2.0.
That is 2.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $200 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": " budget = 10000\n spent = 200\n percent = spent / budget * 100 # 2.0\n print(round(percent, 1))\nRun it and it prints 2.0.\n\nThat is 2.0% of the budg... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "2.0", "printed": "2.0", "notation": null} |
nlprog_det-setting-0077666 | <|start|><|user|>
Convert 3,021 USD to EUR at 1 USD = 0.92 EUR.<|eot|>
<|assistant|>
That is 2,779.32 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3,021 USD to EUR at 1 USD = 0.92 EUR."
},
{
"role": "assistant",
"content": "That is 2,779.32 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2779.32", "printed": "2779.32", "notation": null} |
nlprog_det-setting-0077667 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Prorate $2,400 of monthly rent for 25 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 31
days_occupied = 25
prorated = rent * days_occupied / days_in_month # 1935.483870967742
print(f"{prorated:.2f}")
```
Exec... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 25 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 25\nprorated = ren... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "1935.48", "printed": "1935.48", "notation": null} |
nlprog_det-setting-0077668 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Someone works 36 hours at $15.51 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 15.51
hours = 36
earnings = rate * hours # 558.36
print(f"{earnings:.2f}")
```
(Printed: 558.36)
The pay is $558.36.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Someone works 36 hours at $15.51 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 15.51\nhours = 36\nearnings = rate * hours # 558.36\nprint(f\"{earnings:... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "558.36", "printed": "558.36", "notation": null} |
nlprog_det-setting-0077669 | 23 markers cost $24 apiece. With 7% tax added, what is the total?
One way, in code:
quantity = 23
unit_price = 24
subtotal = quantity * unit_price # 552
total = subtotal * (1 + 7 / 100) # 590.64
print(f"{total:.2f}")
# out: 590.64
The total with tax is $590.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "590.64", "printed": "590.64", "notation": null} |
nlprog_det-setting-0077670 | Shipping costs $12 plus $2.50 per pound. What does a 10-pound parcel cost to ship?
Shipping costs $37.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "37.00", "printed": "37.00", "notation": null} |
nlprog_det-setting-0077671 | How many whole days and leftover hours are in 329 hours?
That is 13 days and 17 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "13 days and 17 hours", "printed": "13 days and 17 hours", "notation": null} |
nlprog_det-setting-0077672 | What day of the week is March 20, 2024?
Python makes this quick:
```python
from datetime import date
hearing = date(2024, 3, 20) # datetime.date(2024, 3, 20)
print(hearing.strftime("%A"))
```
(Printed: Wednesday)
March 20, 2024 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0077673 | <|start|><|user|>
A meal costs $144.46. How much is a 10% tip?<|eot|>
<|assistant|>
Leave $14.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $144.46. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "Leave $14.45."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "14.45", "printed": "14.45", "notation": null} |
nlprog_det-setting-0077674 | An office budget of $8,000 has expenses of $3,786, $1,654, $3,702. How much of the budget is left?
Let's compute it with Python.
```python
budget = 8000
expenses = [3786, 1654, 3702]
left = budget - sum(expenses) # -1142
print(left)
```
Interpreter output — -1142
-$1,142 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "-1142", "printed": "-1142", "notation": null} |
nlprog_det-setting-0077675 | <|start|><|user|>
Express 269 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 269
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run it and it prints: 11 days and 5 hours
That is 11 days and 5 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 269 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 269\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRun it and it prints: 11 days and 5 hours\n\nThat is 11 days and 5 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "11 days and 5 hours", "printed": "11 days and 5 hours", "notation": null} |
nlprog_det-setting-0077676 | <|start|><|user|>
5 walks at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 5
total = per_session * sessions # 1000
print(total)
```
This prints: 1000
That burns 1000 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 walks at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 5\ntotal = per_session * sessions # 1000\nprint(total)\n```\nThis prints: 1000\n\nThat burns 1000 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077678 | Express 238 hours in days and hours.
Code:
```python
hours = 238
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed = 9 days and 22 hours
238 hours is 9 days and 22 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "9 days and 22 hours", "printed": "9 days and 22 hours", "notation": null} |
nlprog_det-setting-0077679 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Prorate $1,200 of monthly rent for 15 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
# result: 58... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Prorate $1,200 of monthly rent for 15 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 15\nprorated = rent * days... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0077680 | Wen and Yusuf share $2,836 in the ratio 1:3. How much does Wen get?
```python
total = 2836
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 709
print(share_a)
```
Console:
709
Wen's share is $709. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "709", "printed": "709", "notation": null} |
nlprog_det-setting-0077681 | <|start|><|user|>
A $96 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 38.4
print(f"{each:.2f}")
```
Python prints 38.40.
Each person pays $38.40.<|eot|... | chat | [
{
"role": "user",
"content": "A $96 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 20 / 100 # 0.2\npeople = 3\neach = bill * (1 + tip_rate) / people # 38.4\nprint(f\"{each:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "38.40", "printed": "38.40", "notation": null} |
nlprog_det-setting-0077682 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $14,400.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $14,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0077683 | <|start|><|user|>
A trial runs from October 22, 2028 to November 7, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 10, 22) # datetime.date(2028, 10, 22)
last = date(2028, 11, 7) # datetime.date(2028, 11, 7)
days = (last - first).da... | chat | [
{
"role": "user",
"content": "A trial runs from October 22, 2028 to November 7, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 10, 22) # datetime.date(2028, 10, 22)\nlast = date(2028, 11, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0077685 | <|start|><|user|>
A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 58-page copy cost?<|eot|>
<|assistant|>
```python
pages = 58
base = 10
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 19.5
print(f"{cost:.2f}")
```
On running, it outputs 1... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 58-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 58\nbase = 10\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "19.50", "printed": "19.50", "notation": null} |
nlprog_det-setting-0077686 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?
Beatriz earns $784.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0077687 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "s... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0077688 | A $96 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
```python
bill = 96
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 18.4
print(f"{each:.2f}")
```
The program outputs: 18.40
The share is $18.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "18.40", "printed": "18.40", "notation": null} |
nlprog_det-setting-0077689 | <|start|><|system|>
Functions:
[{"name": "calc", "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_statute", "description... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"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\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 331 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0077690 | Find the mean of these test scores: 66, 94, 93 and 51.
Computation in Python:
```python
scores = [66, 94, 93, 51]
average = sum(scores) // len(scores) # 76
print(average)
```
The run gives 76, as expected.
The mean is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0077691 | What commission does Rosa make on $85,789 in sales at 5%?
One way, in code:
```python
sales = 85789
rate = 5 / 100 # 0.05
commission = sales * rate # 4289.45
print(f"{commission:.2f}")
```
# console output: 4289.45
Rosa earns $4,289.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4289.45", "printed": "4289.45", "notation": null} |
nlprog_det-setting-0077692 | Goods bought on November 11, 2026 carry a 36-month warranty. When does it expire?
Script:
from datetime import date
start = date(2026, 11, 11)
months = 36
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 | [] | [] | 132 | {"gold": "2029-11-11", "printed": "2029-11-11", "notation": null} |
nlprog_det-setting-0077693 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $3,011, $1,263. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3011, 1263]
left = budget - sum(expenses) # 15726
print(left)
```
The script prints: 15726
The remaining bu... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,011, $1,263. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3011, 1263]\nleft = bud... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "15726", "printed": "15726", "notation": null} |
nlprog_det-setting-0077695 | Prorate $2,400 of monthly rent for 23 days of a 31-day month.
Code:
```python
rent = 2400
days_in_month = 31
days_occupied = 23
prorated = rent * days_occupied / days_in_month # 1780.6451612903227
print(f"{prorated:.2f}")
```
It prints: 1780.65
The tenant owes $1,780.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1780.65", "printed": "1780.65", "notation": null} |
nlprog_det-setting-0077696 | A 20 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Set it up in Python:
```python
import math
length = 20
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 220
print(tiles)
```
Result — 220
220 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0077697 | A library charges $0.25 per book per day late. What is the fine for 2 books that are 12 days late?
Written as code:
```python
per_day = 0.25
days_late = 12
books = 2
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
```
It prints 6.00, as expected.
The fine is $6.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0077698 | <|start|><|system|>
Tool definitions:
{"name": "code_runner", "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"]}}<|eot|>
<|user|>
With 21 row... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"code_runner\", \"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 | [] | [] | 221 | {"gold": "234", "printed": "234", "notation": null} |
nlprog_det-setting-0077699 | <|start|><|user|>
How many units at $20 each (variable cost $16) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 4000
price = 20
variable = 16
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
Run result — 1000
Break-even is 1000 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $16) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 4000\n price = 20\n variable = 16\n units = math.ceil(fixed / (price - variable)) # 1000\n print(units)\nRun ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077700 | Notice was given on October 11, 2027. The notice period is 14 days. When does it run out?
Here is a short program for it.
```python
from datetime import date, timedelta
start = date(2027, 10, 11)
end = start + timedelta(days=14)
print(end.isoformat())
```
The program prints 2027-10-25.
The period ends on October 25, ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2027-10-25", "printed": "2027-10-25", "notation": null} |
nlprog_det-setting-0077701 | Divide 43 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Script:
```python
total = 43
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed:
14 each, 1 left over
The answer: 14 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14 each, 1 left over", "printed": "14 each, 1 left over", "notation": null} |
nlprog_det-setting-0077702 | A 2% increase is applied to $1,800 monthly rent. What is the new amount?
```python
rent = 1800
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1836.0
print(f"{new_rent:.2f}")
```
Interpreter output: 1836.00
The new rent is $1,836.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1836.00", "printed": "1836.00", "notation": null} |
nlprog_det-setting-0077703 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "compute", "description": "Executes a Python program and returns its output.", "para... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"compute\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 374 | {"gold": "11025.00", "printed": "11025.00", "notation": null} |
nlprog_det-setting-0077704 | <|start|><|user|>
What percentage of $5,000 is $3,500?<|eot|>
<|assistant|>
That is 70.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $3,500?"
},
{
"role": "assistant",
"content": "That is 70.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0077706 | Kemal earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?
A Python solution:
```python
rate = 16.0
hours = 53
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 312.0
pay = regular + overtime # 952.0
print(f"{pay:.2f}")
```
# stdout: 952.00
The weekly pay... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "952.00", "printed": "952.00", "notation": null} |
nlprog_det-setting-0077707 | The rules require 2/3 of 34 members (round up) to be present. How many is that?
That is 23 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0077708 | Leon lends $20,000 at 4% simple interest per year for 5 years. How much interest is earned?
Let the code do the arithmetic:
```python
principal = 20000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 4000.0
print(f"{interest:.2f}")
```
Python prints 4000.00.
The interest is $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0077709 | Rent of $1,500 goes up 4%. What is the new rent?
```python
rent = 1500
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
It prints 1560.00.
It rises to $1,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0077710 | Starting from $20,000, the team spends $346, $3,832, $2,047. What remains?
Set it up in Python:
```python
budget = 20000
expenses = [346, 3832, 2047]
left = budget - sum(expenses) # 13775
print(left)
```
This prints 13775, as expected.
The remaining budget is $13,775. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "13775", "printed": "13775", "notation": null} |
nlprog_det-setting-0077711 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "eval_python", "description": "Runs a short Python snippet and... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"eval_p... | nlprog_det | setting | original | null | deterministic | [] | [] | 296 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0077712 | An attorney bills 6.5 hours at $225 per hour. What is the bill?
That comes to $1,462.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1462.50", "printed": "1462.50", "notation": null} |
nlprog_det-setting-0077713 | Each of Wanjiru's runs burns 150 calories. How many calories over 5 runs?
That burns 750 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0077714 | A hall has 18 rows of 22 seats, and 22 seats are empty. How many people are seated?
In code:
```python
rows = 18
per_row = 22
empty = 22
seated = rows * per_row - empty
print(seated)
```
That prints: 374
374 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "374", "printed": "374", "notation": null} |
nlprog_det-setting-0077715 | A 6-day trip pays $74 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?
```python
days = 6
meal_rate = 74
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1319
print(total)
```
Out:
1319
The allowance is $1,319. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1319", "printed": "1319", "notation": null} |
nlprog_det-setting-0077716 | How many days are there from January 27, 2018 to May 23, 2018? It is 116 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0077717 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Copies cost $5 plus $0.50 for each page beyond 0. How much for 55 pages?<|eot|>
<|assistant|>
pages = 55
base = 5
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 32.5
print(f"{cost:.2... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Copies cost $5 plus $0.50 for each page beyond 0. How much for 55 pages?"
},
{
"role": "assistant",
"content": " pages = 55\n base = 5\n per_page = 0.5\n free_pages =... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "32.50", "printed": "32.50", "notation": null} |
nlprog_det-setting-0077718 | Which is cheaper per unit: 8 for $14.60 (A) or 20 for $8.24 (B)?
The computation:
pack_a = 14.6 / 8 # 1.825
pack_b = 8.24 / 20 # 0.41200000000000003
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
(Out: B)
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0077719 | Nikhil drove 276 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
As a program:
```python
miles = 276
rate = 0.62
reimbursement = miles * rate # 171.12
print(f"{reimbursement:.2f}")
```
The program prints 171.12, as expected.
Nikhil is owed $171.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "171.12", "printed": "171.12", "notation": null} |
nlprog_det-setting-0077720 | <|start|><|user|>
A customer buys 4 binders at $11 each, 2 badges at $11 each, 4 flash drives at $14 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
```python
items = [(4, 11), (2, 11), (4, 14)]
total = sum(q * p for q, p in items)
paid = 150
change = paid - total
print(change)
```
(Execution resu... | chat | [
{
"role": "user",
"content": "A customer buys 4 binders at $11 each, 2 badges at $11 each, 4 flash drives at $14 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 11), (2, 11), (4, 14)]\ntotal = sum(q * p for q, p in items)\npaid = 15... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0077721 | What commission does Emeka make on $12,941 in sales at 5%?
A short script:
sales = 12941
rate = 5 / 100 # 0.05
commission = sales * rate # 647.0500000000001
print(f"{commission:.2f}")
Printed:
647.05
The commission is $647.05. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "647.05", "printed": "647.05", "notation": null} |
nlprog_det-setting-0077722 | A $30,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?
Python makes this quick:
```python
grant = 30000
up_front = 0
installments = 3
each = (grant - up_front) / installments # 10000.0
print(f"{each:.2f}")
```
Executed, it shows 10000.00.
$10,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0077723 | <|start|><|user|>
Find the mean of these test scores: 60, 60, 79 and 97.<|eot|>
<|assistant|>
```python
scores = [60, 60, 79, 97]
average = sum(scores) // len(scores) # 74
print(average)
```
# printed: 74
The mean is 74.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 60, 60, 79 and 97."
},
{
"role": "assistant",
"content": "```python\nscores = [60, 60, 79, 97]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\n# printed: 74\n\nThe mean is 74."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0077724 | A 345-mile drive at a steady 60 mph takes how many minutes?
Python does the arithmetic:
```python
distance = 345
speed = 60
minutes = distance / speed * 60 # 345.0
print(round(minutes))
```
The run gives 345.
345 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0077725 | <|start|><|user|>
A hearing is set for November 26, 1990. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1990, 11, 26) # datetime.date(1990, 11, 26)
print(hearing.strftime("%A"))
```
It outputs Monday.
November 26, 1990 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for November 26, 1990. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1990, 11, 26) # datetime.date(1990, 11, 26)\nprint(hearing.strftime(\"%A\"))\n```\nIt outputs Monday.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0077726 | How many whole days and leftover hours are in 115 hours?
Computing it:
```python
hours = 115
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program prints 4 days and 19 hours.
115 hours is 4 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "4 days and 19 hours", "printed": "4 days and 19 hours", "notation": null} |
nlprog_det-setting-0077727 | A meal costs $199.29. How much is a 25% tip?
Let the code do the arithmetic:
```python
bill = 199.29
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 49.8225
print(f"{tip:.2f}")
```
The run gives 49.82.
Leave $49.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "49.82", "printed": "49.82", "notation": null} |
nlprog_det-setting-0077728 | <|start|><|user|>
Attendance was 71 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 71
total = 100
percent = present / total * 100 # 71.0
print(round(percent, 1))
```
Output of the run: 71.0
Attendance was 71.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 71 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 71\ntotal = 100\npercent = present / total * 100 # 71.0\nprint(round(percent, 1))\n```\nOutput of the run: 71.0\n\nAttendance was 71.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "71.0", "printed": "71.0", "notation": null} |
nlprog_det-setting-0077729 | A jacket costs $120. It is 15% off. What is the sale price?
A Python solution:
```python
price = 120
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 102.0
print(f"{sale_price:.2f}")
```
# printed: 102.00
It costs $102.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "102.00", "printed": "102.00", "notation": null} |
nlprog_det-setting-0077730 | <|start|><|system|>
You may call the tools below.
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "python_exec", "description": "Executes a Python program and returns its output.", "para... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"python_exec\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0077731 | <|start|><|user|>
Pack A has 10 items for $10.95. Pack B has 15 items for $8.18. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 10.95 / 10 # 1.095
pack_b = 8.18 / 15 # 0.5453333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It prints B.
Pack B is cheaper pe... | chat | [
{
"role": "user",
"content": "Pack A has 10 items for $10.95. Pack B has 15 items for $8.18. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.95 / 10 # 1.095\npack_b = 8.18 / 15 # 0.5453333333333333\ncheaper = \"A\" if pack_a < pack_b else \"B\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0077732 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A meal costs $178.38. How much is a 18% tip?<|eot|>
<|assistant|>
```python
bill = 178.38
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 32.108399999999996
print(f"{tip:.2f}")
```
The run gives 32.11, as expected.
Leave $32.11.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A meal costs $178.38. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 178.38\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 32.108399999999996\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "32.11", "printed": "32.11", "notation": null} |
nlprog_det-setting-0077733 | <|start|><|user|>
Scale 300 g of rice from 4 servings to 10 servings.<|eot|>
<|assistant|>
```python
grams = 300
serves = 4
needed_for = 10
scaled = grams * needed_for // serves
print(scaled)
```
Shell output: 750
750 grams of rice are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 300 g of rice from 4 servings to 10 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 4\nneeded_for = 10\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nShell output: 750\n\n750 grams of rice are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0077734 | <|start|><|user|>
At an exchange rate of 1.12 USD per EUR, how many USD is 2,115 EUR?<|eot|>
<|assistant|>
```python
amount = 2115
rate = 1.12
converted = amount * rate # 2368.8
print(f"{converted:.2f}")
```
Executing it gives 2368.80, as expected.
That is 2,368.80 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per EUR, how many USD is 2,115 EUR?"
},
{
"role": "assistant",
"content": "```python\namount = 2115\nrate = 1.12\nconverted = amount * rate # 2368.8\nprint(f\"{converted:.2f}\")\n```\nExecuting it gives 2368.80, as expected.\n\nThat ... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2368.80", "printed": "2368.80", "notation": null} |
nlprog_det-setting-0077735 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 9 days?
As Python:
```python
per_day = 25
days = 9
cap = 5000
fine = min(per_day * days, cap) # 225
print(fine)
```
Execution prints 225, as expected.
The fine is $225. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0077736 | A 180-mile drive at a steady 40 mph takes how many minutes?
```python
distance = 180
speed = 40
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
Python prints 270.
The trip takes 270 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0077737 | On which weekday does December 1, 2029 fall?
Here's the code.
```python
from datetime import date
hearing = date(2029, 12, 1) # datetime.date(2029, 12, 1)
print(hearing.strftime("%A"))
```
Output of the run: Saturday
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0077739 | <|start|><|system|>
You have access to these functions:
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "define_word", "descripti... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 265 | {"gold": "82.5", "printed": "82.5", "notation": null} |
nlprog_det-setting-0077740 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Starting from $20,000, the team spends $986, $2,398. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [986, 2398]
left = budget - sum(expenses) # 16616
print(left)
```
Out = 16616
The remaining budget is $16,616.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Starting from $20,000, the team spends $986, $2,398. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [986, 2398]\nleft = budget - sum(expenses) # 16616\nprint(lef... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "16616", "printed": "16616", "notation": null} |
nlprog_det-setting-0077741 | <|start|><|user|>
With 28 rows of 22 chairs and 39 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 28
per_row = 22
empty = 39
seated = rows * per_row - empty # 577
print(seated)
```
# program output: 577
577 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 28 rows of 22 chairs and 39 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 28\nper_row = 22\nempty = 39\nseated = rows * per_row - empty # 577\nprint(seated)\n```\n# program output: 577\n\n577 people are seate... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "577", "printed": "577", "notation": null} |
nlprog_det-setting-0077742 | 8 copies of a 31-page packet are printed at $0.08 per page. What is the cost?
The job costs $19.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "19.84", "printed": "19.84", "notation": null} |
nlprog_det-setting-0077743 | <|start|><|user|>
A settlement of $522 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
(stdout: 87)
Each party receives $87.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $522 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 522\nparties = 6\nshare = settlement // parties # 87\nprint(share)\n```\n(stdout: 87)\n\nEach party receives $87.... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0077744 | <|start|><|system|>
Tools you may use:
{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A recipe for 8 people uses 100 grams of ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "150", "printed": "150", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.