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-0056032 | How many whole days and leftover hours are in 249 hours?
That is 10 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "10 days and 9 hours", "printed": "10 days and 9 hours", "notation": null} |
nlprog_det-setting-0056033 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Parking is $2 per hour with a daily maximum of $24. What do 12 hours cost?<|eot|>
<|assistant|>
rate = 2
hours = 12
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
Run output — 24
The charge is $24.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $24. What do 12 hours cost?"
},
{
"role": "assistant",
"content": " rate = 2\n hours = 12\n daily_max = 24\n cost = min(rate * h... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0056034 | <|start|><|system|>
You have access to these functions:
{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A measure nee... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0056035 | A garage charges $3 an hour, never more than $24 a day. How much for 2 hours?
Programmatically:
rate = 3
hours = 2
daily_max = 24
cost = min(rate * hours, daily_max) # 6
print(cost)
The program prints 6.
Parking costs $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0056036 | Pack A has 12 items for $6.17. Pack B has 15 items for $20.41. Which has the lower price per item?
Translated to Python:
```python
pack_a = 6.17 / 12 # 0.5141666666666667
pack_b = 20.41 / 15 # 1.3606666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The program outputs: A
Pack A is che... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0056037 | <|start|><|user|>
A 24-month warranty starts on February 9, 2018. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 2, 9)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | chat | [
{
"role": "user",
"content": "A 24-month warranty starts on February 9, 2018. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 2, 9)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2020-02-09", "printed": "2020-02-09", "notation": null} |
nlprog_det-setting-0056038 | A settlement of $84,000 is split equally among 8 parties. How much does each party receive?
In code:
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
The code prints 10500.
Each party receives $10,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0056039 | Counting the first and last day, how many days are there from January 26, 2018 through February 8, 2018?
Python makes this quick:
```python
from datetime import date
first = date(2018, 1, 26) # datetime.date(2018, 1, 26)
last = date(2018, 2, 8) # datetime.date(2018, 2, 8)
days = (last - first).days + 1 # 14
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0056040 | A 19 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Python, step by step:
```python
import math
length = 19
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 43
print(tiles)
```
Executing it gives: 43
It takes 43 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0056042 | <|start|><|user|>
After a 25% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
print(f"{per_clie... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": " award = 48000\n fee = award * 25 / 100 # 12000.0\n remaining = award - fee # 36000.0\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0056043 | A 10-day notice period begins on July 21, 2022. On what date does it end?
```python
from datetime import date, timedelta
start = date(2022, 7, 21) # datetime.date(2022, 7, 21)
end = start + timedelta(days=10) # datetime.date(2022, 7, 31)
print(end.isoformat())
```
The run gives: 2022-07-31
The period ends on July 3... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2022-07-31", "printed": "2022-07-31", "notation": null} |
nlprog_det-setting-0056045 | How many units at $15 each (variable cost $9) cover $9,000 of fixed costs?
One way, in code:
```python
import math
fixed = 9000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
The script prints 1500, as expected.
Break-even is 1500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0056046 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A 12-month warranty starts on January 5, 2025. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on January 5, 2026.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A 12-month warranty starts on January 5, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on January 5, 2026."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "2026-01-05", "printed": "2026-01-05", "notation": null} |
nlprog_det-setting-0056047 | How many units at $30 each (variable cost $25) cover $4,000 of fixed costs?
Python code:
```python
import math
fixed = 4000
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 800
print(units)
```
(Program output: 800)
800 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0056048 | How many 2-foot square tiles cover a 6 ft by 6 ft floor (round up)?
A short script:
```python
import math
length = 6
width = 6
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 9
print(tiles)
```
Printed result: 9
9 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0056049 | If a 3-year limitations period starts on December 2, 2015, when does it end?
It runs out on December 2, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "2018-12-02", "printed": "2018-12-02", "notation": null} |
nlprog_det-setting-0056050 | If a 25-minute seminar begins at 1:15 PM, what time does it finish?
A few lines of Python do it:
```python
start = 13 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Console output — 1:40 PM
The seminar finishes at 1:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1:40 PM", "printed": "1:40 PM", "notation": null} |
nlprog_det-setting-0056051 | <|start|><|user|>
A garage charges $5 an hour, never more than $18 a day. How much for 10 hours?<|eot|>
<|assistant|>
rate = 5
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
The run gives: 18
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $18 a day. How much for 10 hours?"
},
{
"role": "assistant",
"content": " rate = 5\n hours = 10\n daily_max = 18\n cost = min(rate * hours, daily_max) # 18\n print(cost)\nThe run gives: 18\n\nThe charge is... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0056052 | A board has 54 members. A majority is more than half. How many votes make a majority?
```python
members = 54
majority = members // 2 + 1 # 28
print(majority)
```
Console:
28
28 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0056053 | Convert -20 °C to Fahrenheit.
Written as code:
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
Printed: -4
It equals -4 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0056054 | Convert 20 °C to Fahrenheit.
Python makes this quick:
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
The interpreter prints 68.
That is 68 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0056055 | An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 2 months?
Here's the code.
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 50.0
print(f"{interest:.2f}")
Console:
50.00
$50.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0056056 | Prorate $900 of monthly rent for 13 days of a 31-day month.
The computation:
```python
rent = 900
days_in_month = 31
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 377.4193548387097
print(f"{prorated:.2f}")
```
Interpreter output — 377.42
The tenant owes $377.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "377.42", "printed": "377.42", "notation": null} |
nlprog_det-setting-0056057 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $2,500. What is owed after 30 days?<|eot|>
<|assistant|>
per_day = 250
days = 30
cap = 2500
fine = min(per_day * days, cap)
print(fine)
The code prints 2500.
The fine is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 30 days?"
},
{
"role": "assistant",
"content": " per_day = 250\n days = 30\n cap = 2500\n fine = min(per_day * days, cap)\n print(fine)\nThe code prints 2500.\n\nThe fine is $2,500.... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0056058 | <|start|><|user|>
11 boxes hold 8 scissors each. After 16 are handed out, how many are left?<|eot|>
<|assistant|>
72 scissors are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 8 scissors each. After 16 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "72 scissors are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0056059 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $4,000 over 3 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
The code prints:... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $4,000 over 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0056060 | <|start|><|system|>
Functions:
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing b... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\"name... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0056061 | <|start|><|system|>
Tools you may use:
{"name": "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": "define_word", "description"... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"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\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 270 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0056062 | A 4 lb package ships at $12 base plus $0.75/lb. What is the charge?
Written as code:
base = 12
per_pound = 0.75
weight = 4
cost = base + per_pound * weight # 15.0
print(f"{cost:.2f}")
# printed result: 15.00
Shipping costs $15.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0056063 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after January 26, 2021 up to and including March 3, 2021?<|eot|>
<|assistant|>
26 weekdays.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after January 26, 2021 up to and including March 3, 2021?"
},
{
"role": "assistant",
"content": "26 weekdays."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0056064 | <|start|><|user|>
A car travels 33 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 33
hours = 1.5
speed = distance / hours # 22.0
print(round(speed))
```
This prints: 22
The average speed is 22 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 33 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 33\nhours = 1.5\nspeed = distance / hours # 22.0\nprint(round(speed))\n```\nThis prints: 22\n\nThe average speed is 22 mph... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0056065 | <|start|><|system|>
You may call the tools below.
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
30 copies of ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "139.20", "printed": "139.20", "notation": null} |
nlprog_det-setting-0056066 | Papers were served by mail on December 11, 2021. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Python version:
```python
from datetime import date, timedelta
served = date(2021, 12, 11) # datetime.date(2021, 12, 11)
response_days = 28
mail_days = 3
due = served + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2022-01-11", "printed": "2022-01-11", "notation": null} |
nlprog_det-setting-0056067 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 24 months. How large is a payment?
The monthly payment is $58.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0056068 | A board has 42 members. A majority is more than half. How many votes make a majority?
We can compute it in Python.
members = 42
majority = members // 2 + 1 # 22
print(majority)
Running it prints 22.
22 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0056069 | Each of Signe's walks burns 300 calories. How many calories over 4 walks?
Programmatically:
```python
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
```
Execution result: 1200
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0056070 | <|start|><|user|>
A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 216
savings = monthly * 12 - yearly # 12
print(savings)
```
Printed — 12
The annual plan saves $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 216\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nPrinted — 12\n\nThe ann... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0056072 | A 90-day notice period begins on June 14, 2018. On what date does it end?
Programmatically:
```python
from datetime import date, timedelta
start = date(2018, 6, 14) # datetime.date(2018, 6, 14)
end = start + timedelta(days=90) # datetime.date(2018, 9, 12)
print(end.isoformat())
```
It outputs 2018-09-12.
That date ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2018-09-12", "printed": "2018-09-12", "notation": null} |
nlprog_det-setting-0056073 | Rent of $1,800 goes up 3%. What is the new rent?
Python, step by step:
rent = 1800
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1854.0
print(f"{new_rent:.2f}")
That prints: 1854.00
It rises to $1,854.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1854.00", "printed": "1854.00", "notation": null} |
nlprog_det-setting-0056074 | Fiona and Cyrus share $2,664 in the ratio 1:3. How much does Fiona get?
Python makes this quick:
```python
total = 2664
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 666
print(share_a)
```
# out: 666
Fiona's share is $666. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "666", "printed": "666", "notation": null} |
nlprog_det-setting-0056075 | <|start|><|user|>
Of a $10,000 budget, $1,100 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 1100
percent = spent / budget * 100
print(round(percent, 1))
```
# output: 11.0
That is 11.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $1,100 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 1100\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\n# output: 11.0\n\nThat is 11.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "11.0", "printed": "11.0", "notation": null} |
nlprog_det-setting-0056076 | Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 576.0
payment = (principal + interest) / months # 174.0
print(f"{payment:.2f}")
```
(Print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "174.00", "printed": "174.00", "notation": null} |
nlprog_det-setting-0056077 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?
Python code:
```python
rate = 16.0
hours = 48
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 192.0
pay = regular + overtime # 832.0
print(f"{pay:.2f}")
```
# out: 832.00
The weekly pay is $832.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "832.00", "printed": "832.00", "notation": null} |
nlprog_det-setting-0056078 | What percentage of $10,000 is $3,500?
```python
budget = 10000
spent = 3500
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
Out = 35.0
35.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0056079 | 2.5 hours of work at $350 an hour: what is the total charge?
We can compute it in Python.
```python
hours = 2.5
rate = 350
bill = hours * rate # 875.0
print(f"{bill:.2f}")
```
(Output: 875.00)
That comes to $875.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "875.00", "printed": "875.00", "notation": null} |
nlprog_det-setting-0056080 | A 120-day notice period begins on December 27, 2024. On what date does it end?
A few lines of Python do it:
from datetime import date, timedelta
start = date(2024, 12, 27) # datetime.date(2024, 12, 27)
end = start + timedelta(days=120) # datetime.date(2025, 4, 26)
print(end.isoformat())
Printed resul... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2025-04-26", "printed": "2025-04-26", "notation": null} |
nlprog_det-setting-0056081 | How many meters are in 62.2 kilometers?
Here is the program.
```python
km = 62.2
meters = km * 1000 # 62200.0
print(round(meters))
```
Running it prints: 62200
62,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "62200", "printed": "62200", "notation": null} |
nlprog_det-setting-0056082 | A 160-mile drive at a steady 40 mph takes how many minutes?
Computation in Python:
```python
distance = 160
speed = 40
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Run result: 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0056083 | <|start|><|user|>
Hugo lends $1,000 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 240.0
print(f"{interest:.2f}")
```
(Result: 240.00)
It earns $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Hugo lends $1,000 at 4% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 240.0\nprint(f\"{interest:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0056084 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What commission does Lena make on $56,874 in sales at 2%?<|eot|>
<|assistant|>
```python
sales = 56874
rate = 2 / 100 # 0.02
commission = sales * rate # 1137.48
print(f"{commission:.2f}")
```
The code prints 1137.48.
Lena earns $1,137.48.... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What commission does Lena make on $56,874 in sales at 2%?"
},
{
"role": "assistant",
"content": "```python\nsales = 56874\nrate = 2 / 100 # 0.02\ncommission = sales * rate #... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1137.48", "printed": "1137.48", "notation": null} |
nlprog_det-setting-0056085 | Scale 450 g of lentils from 4 servings to 12 servings.
The Python version:
```python
grams = 450
serves = 4
needed_for = 12
scaled = grams * needed_for // serves # 1350
print(scaled)
```
# result: 1350
1350 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0056086 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
At 40 miles per hour, how many minutes does a 120-mile trip take?<|eot|>
<|assistant|>
```python
distance = 120
speed = 40
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Run output: 180
The trip takes 180 minutes.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 120-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 120\nspeed = 40\nminutes = distance / speed * 60 #... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0056087 | A $84 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 32.199999999999996
print(f"{each:.2f}")
```
The run gives: 32.20
Each person pays $32.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "32.20", "printed": "32.20", "notation": null} |
nlprog_det-setting-0056088 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": [... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "807", "printed": "807", "notation": null} |
nlprog_det-setting-0056089 | <|start|><|system|>
Tools (call with JSON):
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0056090 | 3 books come back 6 days late, at $0.50 a day each. What is the fine?
Python, step by step:
```python
per_day = 0.5
days_late = 6
books = 3
fine = per_day * days_late * books # 9.0
print(f"{fine:.2f}")
```
# out: 9.00
$9.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "9.00", "printed": "9.00", "notation": null} |
nlprog_det-setting-0056091 | A library charges $0.50 per book per day late. What is the fine for 1 books that are 4 days late?
We can compute it in Python.
```python
per_day = 0.5
days_late = 4
books = 1
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
```
This prints: 2.00
$2.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0056092 | Each of Reza's swims burns 250 calories. How many calories over 4 swims?
Python does the arithmetic:
```python
per_session = 250
sessions = 4
total = per_session * sessions # 1000
print(total)
```
# stdout: 1000
That burns 1000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0056093 | 9 boxes hold 24 rulers each. After 14 are handed out, how many are left?
A few lines of Python do it:
```python
boxes = 9
per_box = 24
given_away = 14
left = boxes * per_box - given_away # 202
print(left)
```
It outputs: 202
That leaves 202 rulers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "202", "printed": "202", "notation": null} |
nlprog_det-setting-0056094 | <|start|><|system|>
Tools (call with JSON):
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A service costs... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0056095 | <|start|><|user|>
To read 168 pages in 4 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 168
days = 4
per_day = pages // days # 42
print(per_day)
```
(Result: 42)
42 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 168 pages in 4 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 168\ndays = 4\nper_day = pages // days # 42\nprint(per_day)\n```\n(Result: 42)\n\n42 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0056096 | With 29 rows of 20 chairs and 26 empty chairs, how many chairs are taken?
Python code:
rows = 29
per_row = 20
empty = 26
seated = rows * per_row - empty # 554
print(seated)
The printout reads 554.
554 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "554", "printed": "554", "notation": null} |
nlprog_det-setting-0056097 | <|start|><|user|>
To read 300 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 300
days = 6
per_day = pages // days # 50
print(per_day)
```
(Output: 50)
50 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 300 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 300\ndays = 6\nper_day = pages // days # 50\nprint(per_day)\n```\n(Output: 50)\n\n50 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0056098 | A $12,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?
The computation:
```python
grant = 12000
up_front = 2000
installments = 4
each = (grant - up_front) / installments # 2500.0
print(f"{each:.2f}")
```
# execution result: 2500.00
$2,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2500.00", "printed": "2500.00", "notation": null} |
nlprog_det-setting-0056099 | A meal costs $16.79. How much is a 20% tip?
Python makes this quick:
```python
bill = 16.79
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 3.358
print(f"{tip:.2f}")
```
Run result — 3.36
Leave $3.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3.36", "printed": "3.36", "notation": null} |
nlprog_det-setting-0056100 | <|start|><|system|>
You may call the tools below.
[{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Fiona and Dieg... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "768", "printed": "768", "notation": null} |
nlprog_det-setting-0056101 | <|start|><|user|>
Starting with 1544 flash drives and using 7 per day, how many remain after 10 days?<|eot|>
<|assistant|>
```python
stock = 1544
per_day = 7
days = 10
left = stock - per_day * days # 1474
print(left)
```
It outputs: 1474
1474 flash drives are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1544 flash drives and using 7 per day, how many remain after 10 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1544\nper_day = 7\ndays = 10\nleft = stock - per_day * days # 1474\nprint(left)\n```\nIt outputs: 1474\n\n1474 flash drives... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1474", "printed": "1474", "notation": null} |
nlprog_det-setting-0056102 | Buying 1 paper reams at $15 each, 5 toner kits at $25 each, 4 envelopes at $14 each, 3 sticky pads at $18 each, someone hands over $300. What change comes back?
```python
items = [(1, 15), (5, 25), (4, 14), (3, 18)]
total = sum(q * p for q, p in items) # 250
paid = 300
change = paid - total # 50
print(change)
```
Ou... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0056103 | <|start|><|user|>
A measure needs at least 60% of 218 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 218
needed = math.ceil(voters * 60 / 100) # 131
print(needed)
```
(Printed result: 131)
131 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 218 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 218\nneeded = math.ceil(voters * 60 / 100) # 131\nprint(needed)\n```\n(Printed result: 131)\n\n131 votes are neede... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0056104 | An invoice lists 11 water bottles at $9 each, plus 8% sales tax. What is the invoice total?
In code:
```python
quantity = 11
unit_price = 9
subtotal = quantity * unit_price # 99
total = subtotal * (1 + 8 / 100) # 106.92
print(f"{total:.2f}")
```
(Output: 106.92)
The total with tax is $106.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "106.92", "printed": "106.92", "notation": null} |
nlprog_det-setting-0056105 | 413 files go into boxes of 12. How many boxes does that take?
Program:
```python
import math
files = 413
per_box = 12
boxes = math.ceil(files / per_box) # 35
print(boxes)
```
(Run result: 35)
35 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0056106 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0056107 | Jamal buys 9 boxes of 12 flash drives each and gives away 8 flash drives. How many flash drives are left?
Here's the code.
```python
boxes = 9
per_box = 12
given_away = 8
left = boxes * per_box - given_away # 100
print(left)
```
That prints: 100
100 flash drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0056108 | <|start|><|user|>
Papers were served by mail on October 18, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 10, 18) # datetime.date(2025, 10, 18)
response_days = 14
mail_days = 3
... | chat | [
{
"role": "user",
"content": "Papers were served by mail on October 18, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 10, 18) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2025-11-04", "printed": "2025-11-04", "notation": null} |
nlprog_det-setting-0056109 | Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
```python
import math
fixed = 9000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
Out — 1500
1500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0056110 | Count the days between September 23, 2028 and November 23, 2028.
A short script:
```python
from datetime import date
first = date(2028, 9, 23) # datetime.date(2028, 9, 23)
second = date(2028, 11, 23) # datetime.date(2028, 11, 23)
print((second - first).days)
```
Printed = 61
There are 61 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "61", "printed": "61", "notation": null} |
nlprog_det-setting-0056111 | Convert 4 h 47 min (the length of a deposition) to minutes.
Set it up in Python:
hours = 4
minutes = 47
total_minutes = hours * 60 + minutes # 287
print(total_minutes)
Out:
287
The deposition lasted 287 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "287", "printed": "287", "notation": null} |
nlprog_det-setting-0056112 | At 45 miles per hour, how many minutes does a 270-mile trip take?
The computation:
```python
distance = 270
speed = 45
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
# result: 360
360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0056113 | A pack of 8 envelopes sells for $224. What does each cost?
The unit price is $28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0056114 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A storeroom has 1381 toner kits. The office uses 9 a day. How many are left after 6 days?<|eot|>
<|assistant|>
```python
stock = 1381
per_day = 9
days = 6
left = stock - per_day * days # 1327
print(left)
```
(Out: 1327)
1327 remain.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A storeroom has 1381 toner kits. The office uses 9 a day. How many are left after 6 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1381\nper_day = 9\ndays = 6\nleft... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1327", "printed": "1327", "notation": null} |
nlprog_det-setting-0056115 | Monthly rent is $1,200. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?
Written as code:
rent = 1200
days_in_month = 31
days_occupied = 8
prorated = rent * days_occupied / days_in_month # 309.6774193548387
print(f"{prorated:.2f}")
That prints 309.68.
The prorated ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "309.68", "printed": "309.68", "notation": null} |
nlprog_det-setting-0056116 | A 160-page report must be reviewed in 10 days. How many pages a day is that, evenly?
That is 16 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0056117 | 2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
A Python solution:
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")
```
# stdout: 36000.00
Each share ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0056118 | A 159-page report must be reviewed in 3 days. How many pages a day is that, evenly?
53 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0056119 | Someone works 40 hours at $29.41 per hour. What are the earnings?
In Python:
rate = 29.41
hours = 40
earnings = rate * hours # 1176.4
print(f"{earnings:.2f}")
The printout reads: 1176.40
That earns $1,176.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1176.40", "printed": "1176.40", "notation": null} |
nlprog_det-setting-0056120 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Notice was given on September 1, 2022. The notice period is 21 days. When does it run out?<|eot|>
<|assistant|>
That date is September 22, 2022.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Notice was given on September 1, 2022. The notice period is 21 days. When does it run out?"
},
{
"role": "assistant",
"content": "That date is September 22, 2022."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "2022-09-22", "printed": "2022-09-22", "notation": null} |
nlprog_det-setting-0056121 | The meal allowance is $59 per day. What is it for 8 days?
Let's compute it with Python.
```python
days = 8
meal_rate = 59
total = days * meal_rate # 472
print(total)
```
Execution result — 472
That comes to $472. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "472", "printed": "472", "notation": null} |
nlprog_det-setting-0056122 | A $1,000 security deposit has deductions of $150. How much is refunded?
Program:
```python
deposit = 1000
deductions = [150]
refund = deposit - sum(deductions) # 850
print(refund)
```
Executing it gives: 850
The refund is $850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0056123 | <|start|><|user|>
Shipping costs $12 plus $0.75 per pound. What does a 14-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 0.75
weight = 14
cost = base + per_pound * weight # 22.5
print(f"{cost:.2f}")
```
Executing it gives 22.50.
Shipping costs $22.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $0.75 per pound. What does a 14-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 0.75\nweight = 14\ncost = base + per_pound * weight # 22.5\nprint(f\"{cost:.2f}\")\n```\nExecuting it gives 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "22.50", "printed": "22.50", "notation": null} |
nlprog_det-setting-0056124 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "calculator", "description": "Executes... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 | [] | [] | 297 | {"gold": "17.90", "printed": "17.90", "notation": null} |
nlprog_det-setting-0056125 | A recipe for 8 people uses 100 grams of pasta. How many grams are needed for 12 people?
As Python:
```python
grams = 100
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 150
print(scaled)
```
Result: 150
Use 150 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0056126 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 150-mile trip take?<|eot|>
<|assistant|>
```python
distance = 150
speed = 50
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
# printed: 180
The trip takes 180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 150-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 50\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\n# printed: 180\n\nThe trip takes 180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0056127 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
If a 6-year limitations period starts on December 4, 2012, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 12, 4) # datetime.date(2012, 12, 4)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "If a 6-year limitations period starts on December 4, 2012, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2012, 12, 4) # datetime.date(2012, 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2018-12-04", "printed": "2018-12-04", "notation": null} |
nlprog_det-setting-0056129 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "convert_units", "desc... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 416 | {"gold": "167", "printed": "167", "notation": null} |
nlprog_det-setting-0056130 | <|start|><|user|>
An attorney bills 6.5 hours at $150 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 6.5
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
The printout reads 975.00.
That comes to $975.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 6.5 hours at $150 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 6.5\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nThe printout reads 975.00.\n\nThat comes to $975.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "975.00", "printed": "975.00", "notation": null} |
nlprog_det-setting-0056131 | Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Python:
```python
cost = 30000
salvage = 6000
years = 8
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
That prints 3000.00.
Depreciation is $3,000.00 per y... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0056132 | 5 friends split a $210 bill plus a 20% tip evenly. How much does each pay?
We can compute it in Python.
```python
bill = 210
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 50.4
print(f"{each:.2f}")
```
It prints 50.40, as expected.
The share is $50.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "50.40", "printed": "50.40", "notation": null} |
nlprog_det-setting-0056133 | <|start|><|user|>
Convert 36.6 km to meters.<|eot|>
<|assistant|>
```python
km = 36.6
meters = km * 1000 # 36600.0
print(round(meters))
```
stdout: 36600
36,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 36.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 36.6\nmeters = km * 1000 # 36600.0\nprint(round(meters))\n```\nstdout: 36600\n\n36,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "36600", "printed": "36600", "notation": null} |
nlprog_det-setting-0056134 | A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?
In code:
```python
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
```
Running this gives: 12000.00
Each installment is $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0056135 | Filing fees are $75 per document. What do 13 filings cost?
Python makes this quick:
```python
fee = 75
filings = 13
total = fee * filings # 975
print(total)
```
Run result: 975
The total fee is $975. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "975", "printed": "975", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.