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-0061074 | At $27.76 an hour, what does 40 hours of work pay?
Python code:
```python
rate = 27.76
hours = 40
earnings = rate * hours # 1110.4
print(f"{earnings:.2f}")
```
Output = 1110.40
The pay is $1,110.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1110.40", "printed": "1110.40", "notation": null} |
nlprog_det-setting-0061075 | What does $5,000 grow to in 2 years at 5% annual compounding?
Script:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 5512.5
print(f"{value:.2f}")
```
Running this gives 5512.50.
It is worth $5,512.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5512.50", "printed": "5512.50", "notation": null} |
nlprog_det-setting-0061076 | Convert 4 h 27 min (the length of a workshop) to minutes.
We can compute it in Python.
hours = 4
minutes = 27
total_minutes = hours * 60 + minutes # 267
print(total_minutes)
Executed, it shows 267.
The workshop lasted 267 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "267", "printed": "267", "notation": null} |
nlprog_det-setting-0061077 | Someone born December 9, 1953 turns how old by January 27, 2027? Give the age in whole years.
Python makes this quick:
```python
from datetime import date
born = date(1953, 12, 9) # datetime.date(1953, 12, 9)
on = date(2027, 1, 27) # datetime.date(2027, 1, 27)
age = on.year - born.year - ((on.month, on.day) < (born.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0061078 | <|start|><|user|>
Monthly: $15. Annual: $156. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 156
savings = monthly * 12 - yearly # 24
print(savings)
```
Execution result — 24
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $15. Annual: $156. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 156\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nExecution result — 24\n\nThe annual plan saves $24."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0061079 | <|start|><|user|>
A 15 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 15
width = 10
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
stdout:
150
150 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 15 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 15\nwidth = 10\ntile = 1\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nstdout:\n150\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0061080 | 21 folders cost $6 apiece. With 5% tax added, what is the total?
Code:
quantity = 21
unit_price = 6
subtotal = quantity * unit_price # 126
total = subtotal * (1 + 5 / 100) # 132.3
print(f"{total:.2f}")
The program outputs 132.30.
The total with tax is $132.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "132.30", "printed": "132.30", "notation": null} |
nlprog_det-setting-0061081 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 49 days?
A few lines of Python do it:
```python
per_day = 250
days = 49
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Run result — 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0061082 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
After an ini... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "3666.67", "printed": "3666.67", "notation": null} |
nlprog_det-setting-0061083 | Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 12,000 gallons?
$63.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0061084 | A 5% increase is applied to $1,500 monthly rent. What is the new amount?
Written as code:
```python
rent = 1500
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1575.0
print(f"{new_rent:.2f}")
```
The code prints 1575.00.
It rises to $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0061085 | If a 40-minute shift begins at 8:45 AM, what time does it finish?
We write it as a program:
```python
start = 8 * 60 + 45
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program prints 9:25 AM, as expected.
It ends at 9:25 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "9:25 AM", "printed": "9:25 AM", "notation": null} |
nlprog_det-setting-0061086 | What average speed covers 446 miles in 2 hours? The average speed is 223 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0061087 | <|start|><|user|>
A pack of 10 batteries sells for $500. What does each cost?<|eot|>
<|assistant|>
Each one costs $50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 10 batteries sells for $500. What does each cost?"
},
{
"role": "assistant",
"content": "Each one costs $50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0061088 | <|start|><|user|>
17 toner kits cost $15 apiece. With 6% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 17
unit_price = 15
subtotal = quantity * unit_price # 255
total = subtotal * (1 + 6 / 100) # 270.3
print(f"{total:.2f}")
```
stdout:
270.30
The total with tax is $270.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "17 toner kits cost $15 apiece. With 6% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 17\nunit_price = 15\nsubtotal = quantity * unit_price # 255\ntotal = subtotal * (1 + 6 / 100) # 270.3\nprint(f\"{total:.2f}\")\n```\ns... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "270.30", "printed": "270.30", "notation": null} |
nlprog_det-setting-0061089 | <|start|><|user|>
A 6% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 1800
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1908.0
print(f"{new_rent:.2f}")
Execution result: 1908.00
It rises to $1,908.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6% increase is applied to $1,800 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 1800\n increase = 6 / 100 # 0.06\n new_rent = rent * (1 + increase) # 1908.0\n print(f\"{new_rent:.2f}\")\nExecution result: 1908.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1908.00", "printed": "1908.00", "notation": null} |
nlprog_det-setting-0061091 | How many weekdays (Monday to Friday) fall after May 14, 2027 up to and including June 19, 2027?
The Python version:
```python
from datetime import date, timedelta
start = date(2027, 5, 14)
end = date(2027, 6, 19)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0061092 | <|start|><|system|>
You have access to these functions:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"get_weather\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 371 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0061093 | Someone born December 8, 1973 turns how old by March 22, 2030? Give the age in whole years.
Set it up in Python:
```python
from datetime import date
born = date(1973, 12, 8) # datetime.date(1973, 12, 8)
on = date(2030, 3, 22) # datetime.date(2030, 3, 22)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0061094 | <|start|><|user|>
The firm was founded in 2004. How many years had passed by 2007?<|eot|>
<|assistant|>
```python
start_year = 2004
end_year = 2007
print(end_year - start_year)
```
Run result — 3
That is 3 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 2004. How many years had passed by 2007?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2004\nend_year = 2007\nprint(end_year - start_year)\n```\nRun result — 3\n\nThat is 3 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0061095 | <|start|><|user|>
What is a 15% tip on a $206.60 bill?<|eot|>
<|assistant|>
Leave $30.99.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $206.60 bill?"
},
{
"role": "assistant",
"content": "Leave $30.99."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "30.99", "printed": "30.99", "notation": null} |
nlprog_det-setting-0061096 | Divide 278 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
```python
total = 278
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executed, it shows: 39 each, 5 left over
The answer: 39 each, 5 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "39 each, 5 left over", "printed": "39 each, 5 left over", "notation": null} |
nlprog_det-setting-0061097 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remainin... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee ... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0061098 | <|start|><|user|>
If a 3-year limitations period starts on June 13, 2021, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2021, 6, 13) # datetime.date(2021, 6, 13)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 6, 13)
print(expires.isofor... | chat | [
{
"role": "user",
"content": "If a 3-year limitations period starts on June 13, 2021, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2021, 6, 13) # datetime.date(2021, 6, 13)\nyears = 3\nexpires = accrued.replace(year=accrued.year +... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2024-06-13", "printed": "2024-06-13", "notation": null} |
nlprog_det-setting-0061099 | <|start|><|user|>
A 90-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
The trip takes 180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 90-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "The trip takes 180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0061100 | An invoice lists 7 cables at $15 each, plus 8% sales tax. What is the invoice total?
A Python solution:
```python
quantity = 7
unit_price = 15
subtotal = quantity * unit_price # 105
total = subtotal * (1 + 8 / 100) # 113.4
print(f"{total:.2f}")
```
Executed, it shows: 113.40
The total with tax is $113.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "113.40", "printed": "113.40", "notation": null} |
nlprog_det-setting-0061101 | A customer buys 3 chairs at $26 each, 4 notebooks at $29 each and pays with $200. How much change is due?
We can compute it in Python.
```python
items = [(3, 26), (4, 29)]
total = sum(q * p for q, p in items) # 194
paid = 200
change = paid - total # 6
print(change)
```
(stdout: 6)
The change is $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0061102 | Someone works 16 hours at $16.19 per hour. What are the earnings?
Python does the arithmetic:
```python
rate = 16.19
hours = 16
earnings = rate * hours # 259.04
print(f"{earnings:.2f}")
```
(Printed result: 259.04)
The pay is $259.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "259.04", "printed": "259.04", "notation": null} |
nlprog_det-setting-0061103 | <|start|><|system|>
You can call tools. Available tools:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "python_exec", "description": "Executes Python code and returns stdout.", "param... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python_exec\", \"descrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "88", "printed": "88", "notation": null} |
nlprog_det-setting-0061104 | A 18-month warranty starts on September 10, 2019. On what date does it end? The warranty ends on March 10, 2021. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "2021-03-10", "printed": "2021-03-10", "notation": null} |
nlprog_det-setting-0061105 | <|start|><|user|>
A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 19 thousand gallons?<|eot|>
<|assistant|>
base = 20
rate = 4.2
used = 19
free = 3
bill = base + rate * max(0, used - free) # 87.2
print(f"{bill:.2f}")
Execution result — 87.20... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 19 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 4.2\n used = 19\n free = 3\n bill = base + rate * max(0, used - free)... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "87.20", "printed": "87.20", "notation": null} |
nlprog_det-setting-0061106 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 27, 2021 up to and including April 6, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 3, 27)
end = date(2021, 4, 6)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k))... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 27, 2021 up to and including April 6, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 3, 27)\nend = date(2021, 4, 6)\ncount = 0\nfor k in range(1, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0061107 | Printing costs 5 cents a page. What does it cost to print 19 copies of a 8-page handout?
Let the code do the arithmetic:
```python
pages = 8
copies = 19
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 7.6000000000000005
print(f"{cost:.2f}")
```
# console output: 7.60
The job costs $7.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "7.60", "printed": "7.60", "notation": null} |
nlprog_det-setting-0061108 | 56 of 80 members attended. What percent attended? Attendance was 70.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0061109 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A garage charges $3 an hour, never more than $20 a day. How much for 7 hours?<|eot|>
<|assistant|>
The charge is $20.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $20 a day. How much for 7 hours?"
},
{
"role": "assistant",
"content": "The charge is $20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061110 | A shift runs from 9:33 AM to 10:21 AM. How long is it in minutes?
Script:
```python
start = 9 * 60 + 33 # 573
end = 10 * 60 + 21 # 621
print(end - start)
```
The program prints 48, as expected.
It is 48 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0061111 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A meeting lasted 5 hours and 55 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 55
total_minutes = hours * 60 + minutes # 355
print(total_minutes)
```
The printout reads: 355
The meeting lasted 355 minutes.<... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A meeting lasted 5 hours and 55 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 55\ntotal_minutes = hours * 60 + minutes #... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "355", "printed": "355", "notation": null} |
nlprog_det-setting-0061112 | Convert -5 °C to Fahrenheit.
A few lines of Python do it:
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
Program output: 23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0061113 | <|start|><|user|>
An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 200.0
print(f"{interest:.2f}")
```
Run result — 200.00
The int... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 4\ninterest = balance * monthly_rate * months # 200.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0061114 | 90 of 100 members attended. What percent attended?
Python does the arithmetic:
```python
present = 90
total = 100
percent = present / total * 100 # 90.0
print(round(percent, 1))
```
Run output: 90.0
Attendance was 90.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0061115 | After a 40% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $28,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
nlprog_det-setting-0061116 | Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Programmatically:
```python
revenue = 25000
costs = 20000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
This prints 20.0, as expected.
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0061117 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A $2,500 s... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0061118 | <|start|><|user|>
A claim accrued on September 7, 2022. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2022, 9, 7) # datetime.date(2022, 9, 7)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 9... | chat | [
{
"role": "user",
"content": "A claim accrued on September 7, 2022. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2022, 9, 7) # datetime.date(2022, 9, 7)\nyears = 3\nexpires = accrued.r... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2025-09-07", "printed": "2025-09-07", "notation": null} |
nlprog_det-setting-0061119 | <|start|><|user|>
A hall has 13 rows of 15 seats, and 12 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 13
per_row = 15
empty = 12
seated = rows * per_row - empty # 183
print(seated)
```
Result:
183
183 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 13 rows of 15 seats, and 12 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 13\nper_row = 15\nempty = 12\nseated = rows * per_row - empty # 183\nprint(seated)\n```\nResult:\n183\n\n183 seats are taken... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "183", "printed": "183", "notation": null} |
nlprog_det-setting-0061120 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Joelle lends $2,500 at 8% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 8 / 100
years = 6
interest = principal * rate * years
print(f"{interest:.2f}")
```
It outputs 1200.00.
I... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Joelle lends $2,500 at 8% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 8 / 100\nyears = 6\... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0061121 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?
In code:
rate = 22.4
hours = 41
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 33.599999999999994
pay = regular + overtime # 929.6
print(f"{pay:.2f}")
Interpreter output: 929.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "929.60", "printed": "929.60", "notation": null} |
nlprog_det-setting-0061122 | <|start|><|user|>
133 copies of a 45-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 45
copies = 133
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 598.5
print(f"{cost:.2f}")
```
stdout = 598.50
Printing costs $598.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "133 copies of a 45-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 45\ncopies = 133\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 598.5\nprint(f\"{cost:.2f}\")\n```\nstdout = 598... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "598.50", "printed": "598.50", "notation": null} |
nlprog_det-setting-0061123 | Find the mean of these test scores: 57, 88, 75 and 100.
Python makes this quick:
```python
scores = [57, 88, 75, 100]
average = sum(scores) // len(scores) # 80
print(average)
```
# printed result: 80
The average score is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0061124 | <|start|><|system|>
Functions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "calc", "description": "Executes a Python program and returns its output.", "parameter... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"calc\", \"description\": \"Exe... | nlprog_det | setting | original | null | deterministic | [] | [] | 350 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0061125 | <|start|><|user|>
At a 7% tax rate, what is the tax on $477.21?<|eot|>
<|assistant|>
price = 477.21
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 33.4047
print(f"{tax:.2f}")
Console:
33.40
$33.40 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $477.21?"
},
{
"role": "assistant",
"content": " price = 477.21\n tax_rate = 7 / 100 # 0.07\n tax = price * tax_rate # 33.4047\n print(f\"{tax:.2f}\")\nConsole:\n33.40\n\n$33.40 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "33.40", "printed": "33.40", "notation": null} |
nlprog_det-setting-0061126 | A meal costs $95.46. How much is a 10% tip?
The computation:
```python
bill = 95.46
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 9.546
print(f"{tip:.2f}")
```
# execution result: 9.55
Leave $9.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "9.55", "printed": "9.55", "notation": null} |
nlprog_det-setting-0061127 | Find the mean of these test scores: 61, 61, 80, 71, 59, 66 and 71.
A few lines of Python do it:
```python
scores = [61, 61, 80, 71, 59, 66, 71]
average = sum(scores) // len(scores) # 67
print(average)
```
Interpreter output: 67
The mean is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0061128 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "description": "Transla... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snip... | nlprog_det | setting | original | null | deterministic | [] | [] | 329 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0061129 | A seminar starts at 11:15 AM and lasts 105 minutes. When does it end?
One way, in code:
```python
start = 11 * 60 + 15
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# execution result: 1:00 PM
It ends at 1:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1:00 PM", "printed": "1:00 PM", "notation": null} |
nlprog_det-setting-0061130 | <|start|><|user|>
A customer buys 1 sticky pads at $8 each, 6 scissors at $21 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
```python
items = [(1, 8), (6, 21)]
total = sum(q * p for q, p in items) # 134
paid = 150
change = paid - total # 16
print(change)
```
# out: 16
$16 comes back.<|eot|>
<... | chat | [
{
"role": "user",
"content": "A customer buys 1 sticky pads at $8 each, 6 scissors at $21 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 8), (6, 21)]\ntotal = sum(q * p for q, p in items) # 134\npaid = 150\nchange = paid - total ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0061131 | <|start|><|user|>
A measure needs at least 67% of 116 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
At least 78 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 116 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "At least 78 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0061132 | How many of 188 votes make 60% (round up)?
A Python solution:
```python
import math
voters = 188
needed = math.ceil(voters * 60 / 100) # 113
print(needed)
```
The printout reads: 113
113 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0061133 | A recipe for 4 people uses 240 grams of sugar. How many grams are needed for 12 people?
720 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0061134 | Copies cost $5 plus $0.50 for each page beyond 0. How much for 98 pages?
Let the code do the arithmetic:
```python
pages = 98
base = 5
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 54.0
print(f"{cost:.2f}")
```
Running it prints 54.00, as expected.
The copy costs $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0061135 | <|start|><|user|>
A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?<|eot|>
<|assistant|>
The bill is $94.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?"
},
{
"role": "assistant",
"content": "The bill is $94.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "94.80", "printed": "94.80", "notation": null} |
nlprog_det-setting-0061136 | <|start|><|user|>
A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 95-page copy cost?<|eot|>
<|assistant|>
pages = 95
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 31.25
print(f"{cost:.2f}")
Output:
31.25... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 95-page copy cost?"
},
{
"role": "assistant",
"content": " pages = 95\n base = 10\n per_page = 0.25\n free_pages = 10\n cost = base + max(0, pages - free_pages) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "31.25", "printed": "31.25", "notation": null} |
nlprog_det-setting-0061137 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
At $0.62 per mile, what is the reimbursement for 45 miles?<|eot|>
<|assistant|>
```python
miles = 45
rate = 0.62
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Printed — 27.90
Oskar is owed $27.90.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 45 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 45\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimburseme... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "27.90", "printed": "27.90", "notation": null} |
nlprog_det-setting-0061138 | What does $10,000 grow to in 2 years at 5% annual compounding?
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 11025.0
print(f"{value:.2f}")
```
# stdout: 11025.00
It is worth $11,025.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "11025.00", "printed": "11025.00", "notation": null} |
nlprog_det-setting-0061139 | Prorate $2,400 of monthly rent for 13 days of a 30-day month.
The computation:
```python
rent = 2400
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 1040.0
print(f"{prorated:.2f}")
```
The interpreter prints 1040.00.
The tenant owes $1,040.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1040.00", "printed": "1040.00", "notation": null} |
nlprog_det-setting-0061140 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?
As Python:
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 212.0
print(f"{payment:.2f}")... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0061141 | A settlement of $36,000 is split equally among 5 parties. How much does each party receive?
Each share is $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0061142 | An office budget of $25,000 has expenses of $2,752, $2,292. How much of the budget is left?
Let the code do the arithmetic:
```python
budget = 25000
expenses = [2752, 2292]
left = budget - sum(expenses) # 19956
print(left)
```
Printed — 19956
The remaining budget is $19,956. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "19956", "printed": "19956", "notation": null} |
nlprog_det-setting-0061143 | After a 30% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
```python
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 4 # 16800.0
print(f"{per_client:.2f}")
```
What it prints — 16800.00
Each c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0061144 | 5 runs at 400 calories each burn how many calories in total?
Python, step by step:
```python
per_session = 400
sessions = 5
total = per_session * sessions # 2000
print(total)
```
Result — 2000
2000 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0061145 | <|start|><|user|>
A client paid a $5,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 14
rate = 200
left = retainer - hours * rate # 2200
print(left)
```
The program prints 2200.
$2,200 of the retainer is left.<|eot|>... | chat | [
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 14\nrate = 200\nleft = retainer - hours * rate # 2200\nprint(left)\n```\nThe... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0061146 | A garage charges $2 an hour, never more than $18 a day. How much for 4 hours?
In Python:
```python
rate = 2
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Printed: 8
Parking costs $8. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0061147 | A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 18-page copy cost?
Python version:
```python
pages = 18
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.0
print(f"{cost:.2f}")
```
The interpreter prints: 5.00
The total is $5.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0061148 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
Let the code do the arithmetic:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
The script prints 39000.
In total, $39,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0061149 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $12,000 over 6 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 720.0
print(f"{interest:.2f}")
```
It outputs 720.00.
$... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $12,000 over 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 6\ninterest = bal... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0061150 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
It equals 50 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "It equals 50 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0061151 | At $29.01 an hour, what does 36 hours of work pay?
Programmatically:
```python
rate = 29.01
hours = 36
earnings = rate * hours # 1044.3600000000001
print(f"{earnings:.2f}")
```
Output — 1044.36
The pay is $1,044.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1044.36", "printed": "1044.36", "notation": null} |
nlprog_det-setting-0061152 | 68 of 80 members attended. What percent attended?
Computation in Python:
```python
present = 68
total = 80
percent = present / total * 100 # 85.0
print(round(percent, 1))
```
Execution result — 85.0
85.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0061153 | 3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
The program:
```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}")
```
Out:
14000.00
Each share is $14,000.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0061154 | Divide 39 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here is the program.
```python
total = 39
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Python prints: 4 each, 3 left over
The answer: 4 each... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "4 each, 3 left over", "printed": "4 each, 3 left over", "notation": null} |
nlprog_det-setting-0061155 | At $18.04 an hour, what does 32 hours of work pay?
A few lines of Python do it:
```python
rate = 18.04
hours = 32
earnings = rate * hours # 577.28
print(f"{earnings:.2f}")
```
(Console output: 577.28)
The pay is $577.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "577.28", "printed": "577.28", "notation": null} |
nlprog_det-setting-0061156 | <|start|><|user|>
4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $12,600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $12,600.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "12600.00", "printed": "12600.00", "notation": null} |
nlprog_det-setting-0061157 | <|start|><|user|>
What commission does Noor make on $5,299 in sales at 3%?<|eot|>
<|assistant|>
```python
sales = 5299
rate = 3 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Run output: 158.97
The commission is $158.97.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Noor make on $5,299 in sales at 3%?"
},
{
"role": "assistant",
"content": "```python\nsales = 5299\nrate = 3 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nRun output: 158.97\n\nThe commission is $158.97."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "158.97", "printed": "158.97", "notation": null} |
nlprog_det-setting-0061158 | <|start|><|user|>
What percentage of $8,000 is $6,600?<|eot|>
<|assistant|>
That is 82.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $6,600?"
},
{
"role": "assistant",
"content": "That is 82.5% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "82.5", "printed": "82.5", "notation": null} |
nlprog_det-setting-0061159 | <|start|><|user|>
Papers were served by mail on November 4, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 11, 4) # datetime.date(2022, 11, 4)
response_days = 30
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "Papers were served by mail on November 4, 2022. A response is due 30 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(2022, 11, 4) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2022-12-07", "printed": "2022-12-07", "notation": null} |
nlprog_det-setting-0061160 | Water costs $15 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 24,000 gallons?
Python does the arithmetic:
```python
base = 15
rate = 3.5
used = 24
free = 2
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
Console:
92.00
$92.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "92.00", "printed": "92.00", "notation": null} |
nlprog_det-setting-0061161 | If a 90-minute appointment begins at 1:30 PM, what time does it finish?
The Python version:
```python
start = 13 * 60 + 30
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The script prints 3:00 PM, as expected.
It ends at 3:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "3:00 PM", "printed": "3:00 PM", "notation": null} |
nlprog_det-setting-0061162 | <|start|><|user|>
A claim accrued on March 27, 2018. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
The period expires on March 27, 2022.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A claim accrued on March 27, 2018. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "The period expires on March 27, 2022."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2022-03-27", "printed": "2022-03-27", "notation": null} |
nlprog_det-setting-0061163 | <|start|><|user|>
How many of 118 votes make 60% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 118
needed = math.ceil(voters * 60 / 100) # 71
print(needed)
```
Shell output: 71
71 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 118 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 118\nneeded = math.ceil(voters * 60 / 100) # 71\nprint(needed)\n```\nShell output: 71\n\n71 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0061164 | A party has 28 days to respond to a motion served on January 28, 2028, with 3 days added because service was by mail. When is the response due?
Python makes this quick:
from datetime import date, timedelta
served = date(2028, 1, 28) # datetime.date(2028, 1, 28)
response_days = 28
mail_days = 3
due... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "2028-02-28", "printed": "2028-02-28", "notation": null} |
nlprog_det-setting-0061165 | Jonas's scores were 56, 54, 93, 65, 66 and 68. What is the average score?
```python
scores = [56, 54, 93, 65, 66, 68]
average = sum(scores) // len(scores) # 67
print(average)
```
Out = 67
The average score is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0061166 | <|start|><|user|>
Sales went from 1,000 to 1,250. What is the percent change?<|eot|>
<|assistant|>
old = 1000
new = 1250
change = (new - old) / old * 100 # 25.0
print(round(change))
stdout:
25
The change is 25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,000 to 1,250. What is the percent change?"
},
{
"role": "assistant",
"content": " old = 1000\n new = 1250\n change = (new - old) / old * 100 # 25.0\n print(round(change))\nstdout:\n25\n\nThe change is 25%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0061167 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $7,500 over 5 months?<|eot|>
<|assistant|>
$562.50 accrues.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $7,500 over 5 months?"
},
{
"role": "assistant",
"content": "$562.50 accrues."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0061168 | $10,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Set it up in Python:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 12166.529024000001
print(f"{value:.2f}")
```
Printed:
12166.53
It is worth $12,166.53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "12166.53", "printed": "12166.53", "notation": null} |
nlprog_det-setting-0061169 | 4 bike rides at 350 calories each burn how many calories in total?
In Python:
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
This prints 1400, as expected.
1400 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0061170 | A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?
Python does the arithmetic:
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
Output = 7500.00
The lawyer's fee comes to $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0061171 | Under a 25% contingency agreement, what fee is owed on a $60,000 award?
A Python solution:
```python
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
```
It prints: 15000.00
The fee is $15,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0061172 | 4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 45.0
print(f"{each:.2f}")
```
Output of the run: 45.00
Each person pays $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0061173 | <|start|><|user|>
A trial runs from May 13, 2019 to May 17, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
5 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from May 13, 2019 to May 17, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "5 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0061174 | <|start|><|user|>
A $60,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 0
installments = 3
each = (grant - up_front) / installments # 20000.0
print(f"{each:.2f}")
```
(Printed: 20000.00)
$20,000.00 per installment.... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 0\ninstallments = 3\neach = (grant - up_front) / installments # 20000.0\nprint(f\"{each... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "20000.00", "printed": "20000.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.