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-0046908 | <|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": "get_weath... | 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\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 372 | {"gold": "875.00", "printed": "875.00", "notation": null} |
nlprog_det-setting-0046909 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
3 friends split a $150 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 57.5
print(f"{each:.2f}")
```
Out: 57.50
The share is $57.50 ... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "3 friends split a $150 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 15 / 100 # 0.15\npeople = 3\neach = bill * (... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0046910 | A recipe for 4 people uses 240 grams of lentils. How many grams are needed for 12 people?
Translated to Python:
```python
grams = 240
serves = 4
needed_for = 12
scaled = grams * needed_for // serves # 720
print(scaled)
```
This prints 720.
720 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0046911 | Copies cost $5 plus $0.50 for each page beyond 0. How much for 69 pages?
The copy costs $39.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "39.50", "printed": "39.50", "notation": null} |
nlprog_det-setting-0046912 | <|start|><|user|>
Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 716
print(total)
```
The program outputs: 716
That come... | chat | [
{
"role": "user",
"content": "Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "716", "printed": "716", "notation": null} |
nlprog_det-setting-0046913 | <|start|><|user|>
Prorate $900 of monthly rent for 13 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 390.0
print(f"{prorated:.2f}")
```
(Run result: 390.00)
The tenant owes $390.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 13 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 13\nprorated = rent * days_occupied / days_in_month # 390.0\nprint(f\"{prorated:.2f}\")\n```\n(Run result: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "390.00", "printed": "390.00", "notation": null} |
nlprog_det-setting-0046914 | <|start|><|user|>
A settlement of $524 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 524
parties = 4
share = settlement // parties # 131
print(share)
```
(Result: 131)
Each party receives $131.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $524 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 524\nparties = 4\nshare = settlement // parties # 131\nprint(share)\n```\n(Result: 131)\n\nEach party receives $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0046915 | <|start|><|user|>
4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 4 # 10500.0
print(f"{per_client:.2f}")
```
The script p... | chat | [
{
"role": "user",
"content": "4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0046916 | Notice was given on August 1, 2025. The notice period is 60 days. When does it run out?
Python does the arithmetic:
from datetime import date, timedelta
start = date(2025, 8, 1) # datetime.date(2025, 8, 1)
end = start + timedelta(days=60) # datetime.date(2025, 9, 30)
print(end.isoformat())
The printo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2025-09-30", "printed": "2025-09-30", "notation": null} |
nlprog_det-setting-0046917 | <|start|><|user|>
A hearing lasted 5 hours and 44 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 44
total_minutes = hours * 60 + minutes # 344
print(total_minutes)
```
The run gives 344.
The hearing lasted 344 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 5 hours and 44 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 44\ntotal_minutes = hours * 60 + minutes # 344\nprint(total_minutes)\n```\nThe run gives 344.\n\nThe hearing lasted 344 minutes... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0046918 | With 15% off, what does a $45 bicycle helmet cost?
Python:
price = 45
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 38.25
print(f"{sale_price:.2f}")
The interpreter prints 38.25.
The sale price is $38.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "38.25", "printed": "38.25", "notation": null} |
nlprog_det-setting-0046919 | Goran earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?
Goran earns $1,100.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1100.75", "printed": "1100.75", "notation": null} |
nlprog_det-setting-0046920 | <|start|><|user|>
A hearing is set for August 17, 2012. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2012, 8, 17) # datetime.date(2012, 8, 17)
print(hearing.strftime("%A"))
```
Running this gives Friday.
August 17, 2012 is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for August 17, 2012. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2012, 8, 17) # datetime.date(2012, 8, 17)\nprint(hearing.strftime(\"%A\"))\n```\nRunning this gives Frida... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0046921 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|>
<|assistant|>
rate = 16.0
hours = 55
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 360.0
pay = regular + overtime # 1000.0
print(f"{pay:.2f}")
The scr... | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?"
},
{
"role": "assistant",
"content": " rate = 16.0\n hours = 55\n regular = 40 * rate # 640.0\n overtime = (hours - 40) * rate * 1.5 # 360.0\n pay = re... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0046922 | An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?
A Python solution:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 562.5
print(f"{interest:.2f}")
```
Run output: 562.50
The interest is $562.5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0046923 | A customer buys 4 desk lamps at $18 each, 6 scissors at $21 each, 1 sticky pads at $10 each, 4 rulers at $4 each and pays with $250. How much change is due?
Let's compute it with Python.
```python
items = [(4, 18), (6, 21), (1, 10), (4, 4)]
total = sum(q * p for q, p in items) # 224
paid = 250
change = paid - total ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0046924 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "2022-11-13", "printed": "2022-11-13", "notation": null} |
nlprog_det-setting-0046925 | Sales went from 400 to 240. What is the percent change?
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0046926 | Convert 4 h 29 min (the length of a film) to minutes. The film lasted 269 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "269", "printed": "269", "notation": null} |
nlprog_det-setting-0046927 | $1,000 is invested at 2% compounded yearly. What is it worth after 5 years?
Here is a short program for it.
```python
principal = 1000
rate = 2 / 100
years = 5
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
That prints: 1104.08
It is worth $1,104.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0046928 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 44 days?
We can compute it in Python.
per_day = 25
days = 44
cap = 2500
fine = min(per_day * days, cap) # 1100
print(fine)
Execution prints 1100, as expected.
The fine is $1,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1100", "printed": "1100", "notation": null} |
nlprog_det-setting-0046929 | 785 files go into boxes of 12. How many boxes does that take?
Here is a short program for it.
```python
import math
files = 785
per_box = 12
boxes = math.ceil(files / per_box)
print(boxes)
```
(Program output: 66)
It takes 66 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0046930 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "desc... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 295 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0046931 | <|start|><|user|>
After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 4 # 18000.0
print(f"{per_cli... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": " award = 96000\n fee = award * 25 / 100 # 24000.0\n remaining = award - fee # 72000.0\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0046932 | A measure needs at least 75% of 256 votes. How many votes is that, rounded up?
import math
voters = 256
needed = math.ceil(voters * 75 / 100)
print(needed)
The program prints 192, as expected.
At least 192 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0046933 | <|start|><|user|>
On which weekday does July 5, 2004 fall?<|eot|>
<|assistant|>
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does July 5, 2004 fall?"
},
{
"role": "assistant",
"content": "It is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0046934 | <|start|><|user|>
A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 960.0
payment... | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0046935 | A 24-month warranty starts on October 28, 2018. On what date does it end?
The computation:
```python
from datetime import date
start = date(2018, 10, 28)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
This prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2020-10-28", "printed": "2020-10-28", "notation": null} |
nlprog_det-setting-0046936 | Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?
The program:
```python
cost = 30000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 9333.333333333334
print(f"{per_year:.2f}")
```
The run gives 9333.33.
$9,333.33 a y... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0046937 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "business_days", "descri... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 407 | {"gold": "5512.50", "printed": "5512.50", "notation": null} |
nlprog_det-setting-0046938 | <|start|><|user|>
Emeka drove 468 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 468
rate = 0.65
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Result — 304.20
Emeka is owed $304.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Emeka drove 468 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 468\nrate = 0.65\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\nResult — 304.20\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "304.20", "printed": "304.20", "notation": null} |
nlprog_det-setting-0046939 | Jamal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?
Here is the program.
rate = 22.4
hours = 43
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 100.79999999999998
pay = regular + overtime # 996.8
print(f"{pay:.2f}")
Console... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "996.80", "printed": "996.80", "notation": null} |
nlprog_det-setting-0046940 | <|start|><|user|>
A 7-day trip pays $74 a day for meals and $110 a night for lodging (6 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 7
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1178
print(total)
```
# stdout: 1178
The all... | chat | [
{
"role": "user",
"content": "A 7-day trip pays $74 a day for meals and $110 a night for lodging (6 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 7\nmeal_rate = 74\nlodging_rate = 110\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1178", "printed": "1178", "notation": null} |
nlprog_det-setting-0046941 | <|start|><|user|>
A $150 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 86.25
print(f"{each:.2f}")
```
# output: 86.25
Each person pays $86.25.<|eot|>... | chat | [
{
"role": "user",
"content": "A $150 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 15 / 100 # 0.15\npeople = 2\neach = bill * (1 + tip_rate) / people # 86.25\nprint(f\"{each... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "86.25", "printed": "86.25", "notation": null} |
nlprog_det-setting-0046942 | Cyrus was born on December 12, 1961. How old is Cyrus on January 25, 2024?
In Python:
from datetime import date
born = date(1961, 12, 12) # datetime.date(1961, 12, 12)
on = date(2024, 1, 25) # datetime.date(2024, 1, 25)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 62
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0046943 | 836 files go into boxes of 20. How many boxes does that take?
42 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0046944 | <|start|><|user|>
Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
That prints 50.0.
The margin is 50.0... | chat | [
{
"role": "user",
"content": "Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 8000\ncosts = 4000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 50.0\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0046945 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
At $0.62 per mile, what is the reimbursement for 305 miles?<|eot|>
<|assistant|>
```python
miles = 305
rate = 0.62
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
When run, it prints: 189.10
Bruna is owed $189.10.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 305 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 305\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "189.10", "printed": "189.10", "notation": null} |
nlprog_det-setting-0046946 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $15. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 6
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Printed:
15
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $15. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 6\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nPrinted:\n15\n\nParking costs $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0046947 | A measure needs at least 60% of 171 votes. How many votes is that, rounded up?
Python makes this quick:
```python
import math
voters = 171
needed = math.ceil(voters * 60 / 100) # 103
print(needed)
```
Execution prints 103.
103 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "103", "printed": "103", "notation": null} |
nlprog_det-setting-0046948 | Divide 25 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
```python
total = 25
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It prints 3 each, 4 left over, as expected.
The answer: 3 each, 4 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3 each, 4 left over", "printed": "3 each, 4 left over", "notation": null} |
nlprog_det-setting-0046949 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0046950 | Prorate $900 of monthly rent for 8 days of a 30-day month.
The prorated rent is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0046951 | <|start|><|user|>
Monthly rent is $2,400. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 31
days_occupied = 12
prorated = rent * days_occupied / days_in_month # 929.0322580645161
print(f"{prorated:.2f}")
```
That prints 929.0... | chat | [
{
"role": "user",
"content": "Monthly rent is $2,400. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 12\nprorated = rent * days_occupied / days_in_month # 929.03... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "929.03", "printed": "929.03", "notation": null} |
nlprog_det-setting-0046952 | <|start|><|user|>
An invoice lists 28 tape rolls at $4 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 28
unit_price = 4
subtotal = quantity * unit_price # 112
total = subtotal * (1 + 5 / 100) # 117.60000000000001
print(f"{total:.2f}")
```
Running this gives: 117.60
The ... | chat | [
{
"role": "user",
"content": "An invoice lists 28 tape rolls at $4 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 28\nunit_price = 4\nsubtotal = quantity * unit_price # 112\ntotal = subtotal * (1 + 5 / 100) # 117.60000000000001\... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "117.60", "printed": "117.60", "notation": null} |
nlprog_det-setting-0046953 | Someone born June 6, 1991 turns how old by November 23, 2027? Give the age in whole years.
A Python solution:
```python
from datetime import date
born = date(1991, 6, 6) # datetime.date(1991, 6, 6)
on = date(2027, 11, 23) # datetime.date(2027, 11, 23)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0046954 | From 2014 to 2024, how many years is that?
Computing it:
start_year = 2014
end_year = 2024
print(end_year - start_year)
Running it prints 10.
10 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0046955 | Goods bought on December 8, 2022 carry a 6-month warranty. When does it expire?
Script:
```python
from datetime import date
start = date(2022, 12, 8)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Execution resu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2023-06-08", "printed": "2023-06-08", "notation": null} |
nlprog_det-setting-0046956 | <|start|><|user|>
A 150-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 150
speed = 45
minutes = distance / speed * 60 # 200.0
print(round(minutes))
```
The run gives 200.
The trip takes 200 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 150-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 45\nminutes = distance / speed * 60 # 200.0\nprint(round(minutes))\n```\nThe run gives 200.\n\nThe trip takes 200 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0046957 | <|start|><|user|>
280 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 280
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
It outputs: 31 each, 1 left over
The answer: 3... | chat | [
{
"role": "user",
"content": "280 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 280\n groups = 9\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "31 each, 1 left over", "printed": "31 each, 1 left over", "notation": null} |
nlprog_det-setting-0046958 | A settlement of $522 is split equally among 6 parties. How much does each party receive?
Python version:
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
What it prints — 87
Each party receives $87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0046959 | How much sales tax is charged on a $483.90 purchase at 4%?
The tax is $19.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "19.36", "printed": "19.36", "notation": null} |
nlprog_det-setting-0046960 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
How many of 9 votes make 75% (round up)?<|eot|>
<|assistant|>
At least 7 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "How many of 9 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "At least 7 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0046961 | 284 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
The answer: 35 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "35 each, 4 left over", "printed": "35 each, 4 left over", "notation": null} |
nlprog_det-setting-0046962 | How long, in days, is it from December 6, 2020 until July 7, 2021?
Computation in Python:
from datetime import date
first = date(2020, 12, 6) # datetime.date(2020, 12, 6)
second = date(2021, 7, 7) # datetime.date(2021, 7, 7)
print((second - first).days)
Output: 213
There are 213 days between the two... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "213", "printed": "213", "notation": null} |
nlprog_det-setting-0046963 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Equip... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 260 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0046964 | Xavier earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?
Let the code do the arithmetic:
rate = 18.5
hours = 52
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 333.0
pay = regular + overtime # 1073.0
print(f"{pay:.2f}")
Printed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1073.00", "printed": "1073.00", "notation": null} |
nlprog_det-setting-0046965 | How many whole days and leftover hours are in 93 hours? 93 hours is 3 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "3 days and 21 hours", "printed": "3 days and 21 hours", "notation": null} |
nlprog_det-setting-0046967 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
8 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
It prints: 10500
Each share is $10,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "8 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 8\nshare = settlement // parties # 10500\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0046968 | Convert 10 °C to Fahrenheit.
A short script:
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
The run gives: 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0046969 | A hall has 16 rows of 22 seats, and 38 seats are empty. How many people are seated?
Python, step by step:
rows = 16
per_row = 22
empty = 38
seated = rows * per_row - empty # 314
print(seated)
Execution result — 314
314 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "314", "printed": "314", "notation": null} |
nlprog_det-setting-0046970 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A 4% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
# output: 1560.00
It rises to $1,560.00... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A 4% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + in... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0046971 | <|start|><|user|>
A 6-month warranty starts on September 24, 2026. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2026, 9, 24)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofor... | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on September 24, 2026. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2026, 9, 24)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2027-03-24", "printed": "2027-03-24", "notation": null} |
nlprog_det-setting-0046972 | Priya has 19 documents to file, and each filing costs $90. How much are the filing fees in total?
One way, in code:
```python
fee = 90
filings = 19
total = fee * filings # 1710
print(total)
```
Executed, it shows 1710.
The total fee is $1,710. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1710", "printed": "1710", "notation": null} |
nlprog_det-setting-0046973 | Monthly rent is $2,400. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?
```python
rent = 2400
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
On running, it outputs 1360.00.
The tenant owes $1,360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1360.00", "printed": "1360.00", "notation": null} |
nlprog_det-setting-0046974 | <|start|><|user|>
From a $7,500 retainer, 6 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
retainer = 7500
hours = 6
rate = 250
left = retainer - hours * rate
print(left)
Output: 6000
The remaining balance is $6,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 6 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": " retainer = 7500\n hours = 6\n rate = 250\n left = retainer - hours * rate\n print(left)\nOutput: 6000\n\nThe remaining balance is $6,00... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0046975 | Meals are $69 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?
In Python:
```python
days = 6
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1114
print(total)
```
Executing it gives 1114.
The allowance is $1,114. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1114", "printed": "1114", "notation": null} |
nlprog_det-setting-0046976 | A customer buys 2 toner kits at $21 each, 4 clipboards at $20 each, 2 binders at $13 each and pays with $150. How much change is due?
```python
items = [(2, 21), (4, 20), (2, 13)]
total = sum(q * p for q, p in items) # 148
paid = 150
change = paid - total # 2
print(change)
```
Output:
2
The change is $2. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0046977 | <|start|><|user|>
An invoice lists 10 keyboards at $9 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 10
unit_price = 9
subtotal = quantity * unit_price # 90
total = subtotal * (1 + 5 / 100) # 94.5
print(f"{total:.2f}")
```
(Printed: 94.50)
The invoice total is $94.50.<|... | chat | [
{
"role": "user",
"content": "An invoice lists 10 keyboards at $9 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 10\nunit_price = 9\nsubtotal = quantity * unit_price # 90\ntotal = subtotal * (1 + 5 / 100) # 94.5\nprint(f\"{total... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "94.50", "printed": "94.50", "notation": null} |
nlprog_det-setting-0046978 | Convert 5 h 23 min (the length of a training session) to minutes.
Python makes this quick:
```python
hours = 5
minutes = 23
total_minutes = hours * 60 + minutes # 323
print(total_minutes)
```
Shell output: 323
That is 323 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "323", "printed": "323", "notation": null} |
nlprog_det-setting-0046979 | On which weekday does March 14, 2018 fall?
Python makes this quick:
```python
from datetime import date
hearing = date(2018, 3, 14) # datetime.date(2018, 3, 14)
print(hearing.strftime("%A"))
```
The interpreter prints: Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0046980 | <|start|><|user|>
2.5 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 2.5
rate = 410
bill = hours * rate # 1025.0
print(f"{bill:.2f}")
```
Out = 1025.00
The bill is $1,025.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2.5 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 2.5\nrate = 410\nbill = hours * rate # 1025.0\nprint(f\"{bill:.2f}\")\n```\nOut = 1025.00\n\nThe bill is $1,025.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1025.00", "printed": "1025.00", "notation": null} |
nlprog_det-setting-0046981 | Goods bought on June 4, 2023 carry a 6-month warranty. When does it expire?
Translated to Python:
```python
from datetime import date
start = date(2023, 6, 4)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Resul... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2023-12-04", "printed": "2023-12-04", "notation": null} |
nlprog_det-setting-0046982 | Count the days between August 8, 2021 and June 25, 2022.
Here's the code.
```python
from datetime import date
first = date(2021, 8, 8) # datetime.date(2021, 8, 8)
second = date(2022, 6, 25) # datetime.date(2022, 6, 25)
print((second - first).days)
```
On running, it outputs: 321
It is 321 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "321", "printed": "321", "notation": null} |
nlprog_det-setting-0046983 | <|start|><|user|>
3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 3 # 14000.0
print(f"{per_client:.2f}")
```
stdout: 1400... | chat | [
{
"role": "user",
"content": "3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0046984 | <|start|><|user|>
Starting from $5,000, the team spends $975, $2,521. What remains?<|eot|>
<|assistant|>
budget = 5000
expenses = [975, 2521]
left = budget - sum(expenses) # 1504
print(left)
(Printed: 1504)
$1,504 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $975, $2,521. What remains?"
},
{
"role": "assistant",
"content": " budget = 5000\n expenses = [975, 2521]\n left = budget - sum(expenses) # 1504\n print(left)\n(Printed: 1504)\n\n$1,504 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1504", "printed": "1504", "notation": null} |
nlprog_det-setting-0046985 | A trial runs from August 18, 2023 to September 1, 2023, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2023, 8, 18) # datetime.date(2023, 8, 18)
last = date(2023, 9, 1) # datetime.date(2023, 9, 1)
days = (last - first).days + 1 # 15
print(days)
```
Printed:
15
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0046986 | <|start|><|user|>
Shipping costs $12 plus $2.50 per pound. What does a 14-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 14
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Shell output: 47.00
Shipping costs $47.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $2.50 per pound. What does a 14-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 14\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nShell output: 47.00\n\nShippi... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "47.00", "printed": "47.00", "notation": null} |
nlprog_det-setting-0046987 | A $30,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
We can compute it in Python.
```python
grant = 30000
up_front = 3000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
stdout = 9000.00
Each installment is $9,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0046988 | Papers were served by mail on January 14, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
It is due January 31, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "2028-01-31", "printed": "2028-01-31", "notation": null} |
nlprog_det-setting-0046990 | <|start|><|user|>
On which weekday does April 2, 1995 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1995, 4, 2) # datetime.date(1995, 4, 2)
print(hearing.strftime("%A"))
```
The interpreter prints: Sunday
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does April 2, 1995 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1995, 4, 2) # datetime.date(1995, 4, 2)\nprint(hearing.strftime(\"%A\"))\n```\nThe interpreter prints: Sunday\n\nIt is a Sunday."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0046991 | <|start|><|user|>
Jae earns a 6% commission on $55,947 of sales. What is the commission?<|eot|>
<|assistant|>
The commission is $3,356.82.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jae earns a 6% commission on $55,947 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "The commission is $3,356.82."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "3356.82", "printed": "3356.82", "notation": null} |
nlprog_det-setting-0046992 | Rosa lends $20,000 at 8% simple interest per year for 6 years. How much interest is earned?
Here is the program.
```python
principal = 20000
rate = 8 / 100 # 0.08
years = 6
interest = principal * rate * years # 9600.0
print(f"{interest:.2f}")
```
stdout: 9600.00
It earns $9,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0046993 | The building opened in 1999. How many years had passed by 2017?
18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0046994 | Split $2,412 between Ana and Malik in the ratio 1 to 3. What is Ana's share?
Python code:
```python
total = 2412
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 603
print(share_a)
```
Output of the run: 603
Ana gets $603. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "603", "printed": "603", "notation": null} |
nlprog_det-setting-0046995 | What is a 10% tip on a $161.47 bill?
Let the code do the arithmetic:
```python
bill = 161.47
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 16.147000000000002
print(f"{tip:.2f}")
```
stdout: 16.15
Leave $16.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "16.15", "printed": "16.15", "notation": null} |
nlprog_det-setting-0046996 | A measure needs at least 75% of 69 votes. How many votes is that, rounded up?
A Python solution:
```python
import math
voters = 69
needed = math.ceil(voters * 75 / 100) # 52
print(needed)
```
stdout — 52
52 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0046997 | A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments?
In code:
```python
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
```
The interpreter prints: 12
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046998 | <|start|><|user|>
With 6 rows of 8 chairs and 11 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 6
per_row = 8
empty = 11
seated = rows * per_row - empty # 37
print(seated)
```
Executing it gives 37.
37 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 6 rows of 8 chairs and 11 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 6\nper_row = 8\nempty = 11\nseated = rows * per_row - empty # 37\nprint(seated)\n```\nExecuting it gives 37.\n\n37 people are seated."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0047000 | Divide 236 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
Programmatically:
```python
total = 236
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Result — 59 each, 0 left over
The answer: 59 each, 0 l... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "59 each, 0 left over", "printed": "59 each, 0 left over", "notation": null} |
nlprog_det-setting-0047001 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
The landlord deducts $85, $150 and $85 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [85, 150, 85]
refund = deposit - sum(deductions) # 1680
print(refund)
```
(Printed result: 1680)
$1,... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "The landlord deducts $85, $150 and $85 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [85, 150, 85]\nr... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1680", "printed": "1680", "notation": null} |
nlprog_det-setting-0047002 | <|start|><|user|>
An office budget of $5,000 has expenses of $2,785, $396. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [2785, 396]
left = budget - sum(expenses) # 1819
print(left)
```
Run result — 1819
$1,819 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $2,785, $396. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [2785, 396]\nleft = budget - sum(expenses) # 1819\nprint(left)\n```\nRun result — 1819\n\n$1,819 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1819", "printed": "1819", "notation": null} |
nlprog_det-setting-0047003 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after June 13, 2023 through June 23, 2023?<|eot|>
<|assistant|>
There are 8 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after June 13, 2023 through June 23, 2023?"
},
{
"role": "assistant",
"content": "There are 8 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0047004 | <|start|><|system|>
Tools (call with JSON):
{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Goods bought on January 15, 2020 carr... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 279 | {"gold": "2023-01-15", "printed": "2023-01-15", "notation": null} |
nlprog_det-setting-0047005 | <|start|><|user|>
On which weekday does June 7, 2012 fall?<|eot|>
<|assistant|>
from datetime import date
hearing = date(2012, 6, 7) # datetime.date(2012, 6, 7)
print(hearing.strftime("%A"))
(Program output: Thursday)
June 7, 2012 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does June 7, 2012 fall?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(2012, 6, 7) # datetime.date(2012, 6, 7)\n print(hearing.strftime(\"%A\"))\n(Program output: Thursday)\n\nJune 7, 2012 is a Thursday.... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0047006 | To read 180 pages in 10 days, how many pages per day are needed?
A short script:
```python
pages = 180
days = 10
per_day = pages // days
print(per_day)
```
Output of the run — 18
That is 18 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0047007 | <|start|><|user|>
192 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
The answer: 38 each, 2 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "192 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "The answer: 38 each, 2 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "38 each, 2 left over", "printed": "38 each, 2 left over", "notation": null} |
nlprog_det-setting-0047008 | How much sales tax is charged on a $699.06 purchase at 7%?
Here is a short program for it.
```python
price = 699.06
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 48.934200000000004
print(f"{tax:.2f}")
```
What it prints — 48.93
$48.93 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "48.93", "printed": "48.93", "notation": null} |
nlprog_det-setting-0047009 | <|start|><|user|>
A film lasted 1 hours and 10 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 1
minutes = 10
total_minutes = hours * 60 + minutes # 70
print(total_minutes)
```
That prints: 70
The film lasted 70 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A film lasted 1 hours and 10 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 1\nminutes = 10\ntotal_minutes = hours * 60 + minutes # 70\nprint(total_minutes)\n```\nThat prints: 70\n\nThe film lasted 70 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0047010 | A library charges $0.15 per book per day late. What is the fine for 2 books that are 9 days late?
In code:
per_day = 0.15
days_late = 9
books = 2
fine = per_day * days_late * books # 2.6999999999999997
print(f"{fine:.2f}")
# printed result: 2.70
$2.70 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2.70", "printed": "2.70", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.