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-0074744 | An office budget of $5,000 has expenses of $1,225, $2,247. How much of the budget is left?
As a program:
```python
budget = 5000
expenses = [1225, 2247]
left = budget - sum(expenses) # 1528
print(left)
```
That prints: 1528
$1,528 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1528", "printed": "1528", "notation": null} |
nlprog_det-setting-0074745 | A $120 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?
Python:
```python
bill = 120
tip_rate = 15 / 100
people = 2
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
What it prints — 69.00
Each person pays $69.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0074746 | 178 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
The program:
```python
total = 178
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
That prints: 29 each, 4 left over
The answer: 29 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "29 each, 4 left over", "printed": "29 each, 4 left over", "notation": null} |
nlprog_det-setting-0074747 | <|start|><|user|>
To read 760 pages in 19 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 760
days = 19
per_day = pages // days # 40
print(per_day)
```
Execution prints 40.
That is 40 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 760 pages in 19 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 760\ndays = 19\nper_day = pages // days # 40\nprint(per_day)\n```\nExecution prints 40.\n\nThat is 40 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0074748 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Convert 0 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
On running, it outputs: 32
That is 32 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Convert 0 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nOn running, it outputs: 32\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0074749 | An invoice lists 27 tape rolls at $6 each, plus 5% sales tax. What is the invoice total?
Program:
quantity = 27
unit_price = 6
subtotal = quantity * unit_price # 162
total = subtotal * (1 + 5 / 100) # 170.1
print(f"{total:.2f}")
This prints 170.10.
The invoice total is $170.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "170.10", "printed": "170.10", "notation": null} |
nlprog_det-setting-0074750 | What average speed covers 272 miles in 2 hours?
A few lines of Python do it:
```python
distance = 272
hours = 2
speed = distance / hours # 136.0
print(round(speed))
```
When run, it prints 136.
The average speed is 136 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0074751 | How long, in days, is it from May 23, 2025 until May 29, 2026?
As Python:
from datetime import date
first = date(2025, 5, 23) # datetime.date(2025, 5, 23)
second = date(2026, 5, 29) # datetime.date(2026, 5, 29)
print((second - first).days)
Python prints: 371
There are 371 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0074752 | Fixed costs are $6,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?
```python
import math
fixed = 6000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable))
print(units)
```
Running this gives: 1000
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0074753 | <|start|><|user|>
A workshop lasted 3 hours and 16 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 16
total_minutes = hours * 60 + minutes # 196
print(total_minutes)
```
Output = 196
That is 196 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 3 hours and 16 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 16\ntotal_minutes = hours * 60 + minutes # 196\nprint(total_minutes)\n```\nOutput = 196\n\nThat is 196 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "196", "printed": "196", "notation": null} |
nlprog_det-setting-0074754 | <|start|><|user|>
68 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 68
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints 13 each, 3 left over, as expected... | chat | [
{
"role": "user",
"content": "68 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 68\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "13 each, 3 left over", "printed": "13 each, 3 left over", "notation": null} |
nlprog_det-setting-0074755 | A desk lamp costs $40. It is 30% off. What is the sale price?
Python does the arithmetic:
```python
price = 40
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 28.0
print(f"{sale_price:.2f}")
```
Execution result: 28.00
It costs $28.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0074756 | A pack of 5 binders sells for $185. What does each cost?
We can compute it in Python.
```python
total = 185
count = 5
per_item = total // count # 37
print(per_item)
```
stdout: 37
The unit price is $37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0074757 | 28 sticky pads cost $15 apiece. With 10% tax added, what is the total?
Computing it:
```python
quantity = 28
unit_price = 15
subtotal = quantity * unit_price # 420
total = subtotal * (1 + 10 / 100) # 462.00000000000006
print(f"{total:.2f}")
```
# out: 462.00
The total with tax is $462.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "462.00", "printed": "462.00", "notation": null} |
nlprog_det-setting-0074758 | How many weekdays (Monday to Friday) fall after March 21, 2026 up to and including April 7, 2026?
The computation:
from datetime import date, timedelta
start = date(2026, 3, 21)
end = date(2026, 4, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekda... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074759 | A library charges $0.10 per book per day late. What is the fine for 3 books that are 10 days late?
Coded up:
```python
per_day = 0.1
days_late = 10
books = 3
fine = per_day * days_late * books # 3.0
print(f"{fine:.2f}")
```
stdout: 3.00
$3.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0074760 | 6 bike rides at 350 calories each burn how many calories in total?
The computation:
```python
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
```
Executed, it shows 2100.
That burns 2100 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0074761 | 3 books come back 13 days late, at $0.20 a day each. What is the fine?
A few lines of Python do it:
per_day = 0.2
days_late = 13
books = 3
fine = per_day * days_late * books # 7.800000000000001
print(f"{fine:.2f}")
The code prints 7.80.
The fine is $7.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "7.80", "printed": "7.80", "notation": null} |
nlprog_det-setting-0074762 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Executed, it shows 18.
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $18. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nExecuted, it shows 18.\n\nParking costs $18.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074763 | Counting the first and last day, how many days are there from May 14, 2018 through May 18, 2018?
Here is the program.
from datetime import date
first = date(2018, 5, 14) # datetime.date(2018, 5, 14)
last = date(2018, 5, 18) # datetime.date(2018, 5, 18)
days = (last - first).days + 1 # 5
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0074764 | <|start|><|system|>
Tools you may use:
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Olga was born on August 6, 1... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0074765 | A settlement of $4,500 is split equally among 5 parties. How much does each party receive?
Script:
```python
settlement = 4500
parties = 5
share = settlement // parties # 900
print(share)
```
stdout: 900
Each share is $900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0074766 | A meeting starts at 12:20 PM and lasts 150 minutes. When does it end?
It ends at 2:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2:50 PM", "printed": "2:50 PM", "notation": null} |
nlprog_det-setting-0074767 | <|start|><|user|>
What percentage of $4,000 is $3,400?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 3400
percent = spent / budget * 100 # 85.0
print(round(percent, 1))
```
Out: 85.0
85.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $3,400?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 3400\npercent = spent / budget * 100 # 85.0\nprint(round(percent, 1))\n```\nOut: 85.0\n\n85.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0074768 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A 31 lb... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "31.25", "printed": "31.25", "notation": null} |
nlprog_det-setting-0074769 | <|start|><|user|>
Convert 4 h 37 min (the length of a deposition) to minutes.<|eot|>
<|assistant|>
```python
hours = 4
minutes = 37
total_minutes = hours * 60 + minutes # 277
print(total_minutes)
```
# output: 277
That is 277 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4 h 37 min (the length of a deposition) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 37\ntotal_minutes = hours * 60 + minutes # 277\nprint(total_minutes)\n```\n# output: 277\n\nThat is 277 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "277", "printed": "277", "notation": null} |
nlprog_det-setting-0074770 | Dara was born on September 23, 1961. How old is Dara on December 17, 2020?
```python
from datetime import date
born = date(1961, 9, 23) # datetime.date(1961, 9, 23)
on = date(2020, 12, 17) # datetime.date(2020, 12, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 59
print(age)
```
Exe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0074771 | <|start|><|user|>
38 copies of a 5-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 5
copies = 38
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 19.0
print(f"{cost:.2f}")
```
(Result: 19.00)
Printing costs $19.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "38 copies of a 5-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 5\ncopies = 38\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 19.0\nprint(f\"{cost:.2f}\")\n```\n(Result: 19.00)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "19.00", "printed": "19.00", "notation": null} |
nlprog_det-setting-0074772 | <|start|><|user|>
From 2021 to 2036, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2021
end_year = 2036
print(end_year - start_year)
```
(Out: 15)
That is 15 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2021 to 2036, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2021\nend_year = 2036\nprint(end_year - start_year)\n```\n(Out: 15)\n\nThat is 15 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0074773 | The paralegal logged 4 hours at a rate of $150. How much is billed?
A Python solution:
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
Printed result: 600.00
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0074774 | <|start|><|user|>
Each of Jamal's runs burns 200 calories. How many calories over 7 runs?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
```
When run, it prints 1400.
That burns 1400 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Jamal's runs burns 200 calories. How many calories over 7 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions # 1400\nprint(total)\n```\nWhen run, it prints 1400.\n\nThat burns 1400 calorie... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0074775 | <|start|><|user|>
A quorum is 1/3 of the 58 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 58
quorum = math.ceil(members * 1 / 3) # 20
print(quorum)
```
Run output: 20
20 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 58 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 58\nquorum = math.ceil(members * 1 / 3) # 20\nprint(quorum)\n```\nRun output: 20\n\n20 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0074776 | <|start|><|user|>
11 boxes hold 12 calendars each. After 16 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 11
per_box = 12
given_away = 16
left = boxes * per_box - given_away
print(left)
```
The code prints 116.
That leaves 116 calendars.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 12 calendars each. After 16 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 11\nper_box = 12\ngiven_away = 16\nleft = boxes * per_box - given_away\nprint(left)\n```\nThe code prints 116.\n\nThat leaves 116 c... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0074777 | <|start|><|user|>
What does $2,000 grow to in 5 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 2552.5631250000006
print(f"{value:.2f}")
```
Execution prints 2552.56.
It is worth $2,552.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $2,000 grow to in 5 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 5 / 100 # 0.05\nyears = 5\nvalue = principal * (1 + rate) ** years # 2552.5631250000006\nprint(f\"{value:.2f}\")\n```\nExecutio... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2552.56", "printed": "2552.56", "notation": null} |
nlprog_det-setting-0074778 | At 30 miles per hour, how many minutes does a 45-mile trip take?
90 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0074780 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after August 16, 2018 through August 30, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 8, 16)
end = date(2018, 8, 30)
count = 0
for k in range(1, (end - start).days + 1):
if (start ... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after August 16, 2018 through August 30, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 8, 16)\nend = date(2018, 8, 30)\ncount = 0... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0074781 | <|start|><|user|>
A board has 7 members. A majority is more than half. How many votes make a majority?<|eot|>
<|assistant|>
```python
members = 7
majority = members // 2 + 1 # 4
print(majority)
```
stdout:
4
4 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A board has 7 members. A majority is more than half. How many votes make a majority?"
},
{
"role": "assistant",
"content": "```python\nmembers = 7\nmajority = members // 2 + 1 # 4\nprint(majority)\n```\nstdout:\n4\n\n4 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0074783 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Prorate $1,500 of monthly rent for 16 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 774.1935483870968
print(f"{prorated:.2f}")
```
Output of the ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Prorate $1,500 of monthly rent for 16 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 16\nprorated = rent * days_o... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "774.19", "printed": "774.19", "notation": null} |
nlprog_det-setting-0074784 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
The paralegal logged 4 hours at a rate of $150. How much is billed?<|eot|>
<|assistant|>
That comes to $600.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "The paralegal logged 4 hours at a rate of $150. How much is billed?"
},
{
"role": "assistant",
"content": "That comes to $600.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0074786 | <|start|><|user|>
The statute was enacted in 2020. How many years had passed by 2027?<|eot|>
<|assistant|>
7 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2020. How many years had passed by 2027?"
},
{
"role": "assistant",
"content": "7 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0074787 | <|start|><|system|>
Tools (call with JSON):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "get_weather", "description": "Get the weather ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 369 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0074788 | Shipping costs $12 plus $0.75 per pound. What does a 8-pound parcel cost to ship?
We write it as a program:
```python
base = 12
per_pound = 0.75
weight = 8
cost = base + per_pound * weight # 18.0
print(f"{cost:.2f}")
```
# output: 18.00
The charge is $18.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0074790 | With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal.
As Python:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
Printed — 50.0
The margin is 50.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0074791 | <|start|><|user|>
A 17 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 17
width = 12
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 204
print(tiles)
```
# output: 204
It takes 204 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 17 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 17\nwidth = 12\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 204\nprint(tiles)\n```\n# output:... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "204", "printed": "204", "notation": null} |
nlprog_det-setting-0074792 | Ada earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?
Translated to Python:
rate = 16.0
hours = 45
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 120.0
pay = regular + overtime # 760.0
print(f"{pay:.2f}")
The program prints: 7... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0074793 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Monthly: $12. Annual: $96. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
```
Run it and it prints: 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Monthly: $12. Annual: $96. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 96\nsavings = monthly * 12 - yearly # 48\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0074794 | <|start|><|user|>
What day of the week is December 14, 2027?<|eot|>
<|assistant|>
from datetime import date
hearing = date(2027, 12, 14) # datetime.date(2027, 12, 14)
print(hearing.strftime("%A"))
On running, it outputs: Tuesday
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is December 14, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(2027, 12, 14) # datetime.date(2027, 12, 14)\n print(hearing.strftime(\"%A\"))\nOn running, it outputs: Tuesday\n\nIt is a Tuesday.... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0074795 | <|start|><|user|>
A 4% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 2200
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
The script prints 2288.00.
The new rent is $2,288.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 2200\n increase = 4 / 100\n new_rent = rent * (1 + increase)\n print(f\"{new_rent:.2f}\")\nThe script prints 2288.00.\n\nThe new rent ... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2288.00", "printed": "2288.00", "notation": null} |
nlprog_det-setting-0074797 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0074798 | <|start|><|user|>
A 10 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
It takes 80 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 10 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "It takes 80 tiles."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0074799 | <|start|><|system|>
Tool definitions:
[{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "description":... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 385 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0074800 | <|start|><|user|>
Kofi and Joelle share $441 in the ratio 1:2. How much does Kofi get?<|eot|>
<|assistant|>
total = 441
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 147
print(share_a)
Execution result: 147
Kofi's share is $147.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi and Joelle share $441 in the ratio 1:2. How much does Kofi get?"
},
{
"role": "assistant",
"content": " total = 441\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (parts_a + parts_b) # 147\n print(share_a)\nExecution result: 147\n\nK... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "147", "printed": "147", "notation": null} |
nlprog_det-setting-0074801 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Under a 35% contingency agreement, what fee is owed on a $90,000 award?<|eot|>
<|assistant|>
The fee is $31,500.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $90,000 award?"
},
{
"role": "assistant",
"content": "The fee is $31,500.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0074802 | A 11 lb package ships at $5 base plus $1.20/lb. What is the charge?
Coded up:
```python
base = 5
per_pound = 1.2
weight = 11
cost = base + per_pound * weight # 18.2
print(f"{cost:.2f}")
```
Run result = 18.20
The charge is $18.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "18.20", "printed": "18.20", "notation": null} |
nlprog_det-setting-0074803 | <|start|><|user|>
A clerk's office charges $90 for each filing. Kaito submits 4 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 90
filings = 4
total = fee * filings # 360
print(total)
```
Executing it gives 360.
$360 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $90 for each filing. Kaito submits 4 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 90\nfilings = 4\ntotal = fee * filings # 360\nprint(total)\n```\nExecuting it gives 360.\n\n$360 in filing fees."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0074804 | Fixed costs are $2,500. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?
A Python solution:
```python
import math
fixed = 2500
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
That prints 500.
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0074805 | <|start|><|user|>
If a 40-minute hearing begins at 3:45 PM, what time does it finish?<|eot|>
<|assistant|>
It ends at 4:25 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 40-minute hearing begins at 3:45 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "It ends at 4:25 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "4:25 PM", "printed": "4:25 PM", "notation": null} |
nlprog_det-setting-0074806 | Copies cost $10 plus $0.10 for each page beyond 0. How much for 56 pages?
Python makes this quick:
```python
pages = 56
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 15.600000000000001
print(f"{cost:.2f}")
```
The run gives 15.60, as expected.
The total is $15.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "15.60", "printed": "15.60", "notation": null} |
nlprog_det-setting-0074807 | A service costs $12 a month or $126 a year. How much does the yearly plan save over 12 monthly payments?
A Python solution:
```python
monthly = 12
yearly = 126
savings = monthly * 12 - yearly # 18
print(savings)
```
Result — 18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074808 | Each storage box holds 25 files. How many boxes are needed for 157 files?
In code:
```python
import math
files = 157
per_box = 25
boxes = math.ceil(files / per_box) # 7
print(boxes)
```
Out: 7
It takes 7 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0074809 | Counting the first and last day, how many days are there from January 12, 2020 through January 21, 2020?
In Python:
```python
from datetime import date
first = date(2020, 1, 12) # datetime.date(2020, 1, 12)
last = date(2020, 1, 21) # datetime.date(2020, 1, 21)
days = (last - first).days + 1 # 10
print(days)
```
Pro... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0074812 | <|start|><|user|>
Of a $8,000 budget, $6,200 has been spent. What percent is that?<|eot|>
<|assistant|>
That is 77.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $8,000 budget, $6,200 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "That is 77.5% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "77.5", "printed": "77.5", "notation": null} |
nlprog_det-setting-0074813 | <|start|><|user|>
A hall has 30 rows of 23 seats, and 17 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 30
per_row = 23
empty = 17
seated = rows * per_row - empty # 673
print(seated)
```
Output of the run: 673
673 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 30 rows of 23 seats, and 17 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 30\nper_row = 23\nempty = 17\nseated = rows * per_row - empty # 673\nprint(seated)\n```\nOutput of the run: 673\n\n673 peopl... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "673", "printed": "673", "notation": null} |
nlprog_det-setting-0074814 | <|start|><|system|>
Functions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properti... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"define_word\", \"description\": \"Return a dictiona... | nlprog_det | setting | original | null | deterministic | [] | [] | 352 | {"gold": "278", "printed": "278", "notation": null} |
nlprog_det-setting-0074815 | 105 files go into boxes of 12. How many boxes does that take?
The computation:
```python
import math
files = 105
per_box = 12
boxes = math.ceil(files / per_box) # 9
print(boxes)
```
Execution result — 9
9 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0074816 | <|start|><|user|>
How many of 34 members form a majority (more than half)?<|eot|>
<|assistant|>
```python
members = 34
majority = members // 2 + 1 # 18
print(majority)
```
The run gives: 18
18 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 34 members form a majority (more than half)?"
},
{
"role": "assistant",
"content": "```python\nmembers = 34\nmajority = members // 2 + 1 # 18\nprint(majority)\n```\nThe run gives: 18\n\n18 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074817 | Prorate $900 of monthly rent for 8 days of a 30-day month.
One way, in code:
```python
rent = 900
days_in_month = 30
days_occupied = 8
prorated = rent * days_occupied / days_in_month # 240.0
print(f"{prorated:.2f}")
```
# printed: 240.00
The prorated rent is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0074818 | What average speed covers 480 miles in 1 hours?
As Python:
```python
distance = 480
hours = 1
speed = distance / hours # 480.0
print(round(speed))
```
Execution result — 480
The average speed is 480 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0074819 | Sales went from 200 to 280. What is the percent change?
Python:
old = 200
new = 280
change = (new - old) / old * 100 # 40.0
print(round(change))
The script prints 40, as expected.
It changed by 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0074820 | Abel lends $8,000 at 6% simple interest per year for 6 years. How much interest is earned?
In Python:
```python
principal = 8000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
The script prints 2880.00.
It earns $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0074821 | Printing costs 10 cents a page. What does it cost to print 115 copies of a 25-page handout?
Computing it:
```python
pages = 25
copies = 115
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 287.5
print(f"{cost:.2f}")
```
The run gives 287.50, as expected.
Printing costs $287.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "287.50", "printed": "287.50", "notation": null} |
nlprog_det-setting-0074822 | A meeting lasted 3 hours and 6 minutes. How many minutes is that?
Computation in Python:
```python
hours = 3
minutes = 6
total_minutes = hours * 60 + minutes # 186
print(total_minutes)
```
Executed, it shows: 186
The meeting lasted 186 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "186", "printed": "186", "notation": null} |
nlprog_det-setting-0074823 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A client paid a $10,000 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 10
rate = 200
left = retainer - hours * rate # 8000
print(left)
```
Printed — ... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nh... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "8000", "printed": "8000", "notation": null} |
nlprog_det-setting-0074824 | An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 3 months?
The interest is $30.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0074825 | <|start|><|user|>
Each storage box holds 25 files. How many boxes are needed for 761 files?<|eot|>
<|assistant|>
import math
files = 761
per_box = 25
boxes = math.ceil(files / per_box) # 31
print(boxes)
(Result: 31)
It takes 31 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 761 files?"
},
{
"role": "assistant",
"content": " import math\n files = 761\n per_box = 25\n boxes = math.ceil(files / per_box) # 31\n print(boxes)\n(Result: 31)\n\nIt takes 31 boxes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0074826 | A 3-day trip pays $74 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?
We write it as a program:
```python
days = 3
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 502
print(total)
```
The script prints 502, as expected.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "502", "printed": "502", "notation": null} |
nlprog_det-setting-0074827 | Someone works 36 hours at $22.93 per hour. What are the earnings?
That earns $825.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "825.48", "printed": "825.48", "notation": null} |
nlprog_det-setting-0074828 | <|start|><|user|>
If a 5-year limitations period starts on May 5, 2012, when does it end?<|eot|>
<|assistant|>
The period expires on May 5, 2017.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 5-year limitations period starts on May 5, 2012, when does it end?"
},
{
"role": "assistant",
"content": "The period expires on May 5, 2017."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2017-05-05", "printed": "2017-05-05", "notation": null} |
nlprog_det-setting-0074829 | Dara drove 461 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
A Python solution:
```python
miles = 461
rate = 0.65
reimbursement = miles * rate # 299.65000000000003
print(f"{reimbursement:.2f}")
```
The code prints: 299.65
The reimbursement is $299.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "299.65", "printed": "299.65", "notation": null} |
nlprog_det-setting-0074830 | <|start|><|system|>
Functions:
{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Convert 2 h 22 min (the length of a me... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "142", "printed": "142", "notation": null} |
nlprog_det-setting-0074831 | Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Python code:
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026
print(round(margin, 1))
Output of the run — 2.7
Profit is 2.7... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0074832 | Printing costs 5 cents a page. What does it cost to print 62 copies of a 21-page handout?
As a program:
pages = 21
copies = 62
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 65.10000000000001
print(f"{cost:.2f}")
Console:
65.10
Printing costs $65.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "65.10", "printed": "65.10", "notation": null} |
nlprog_det-setting-0074834 | Starting with 1692 markers and using 25 per day, how many remain after 12 days?
The computation:
```python
stock = 1692
per_day = 25
days = 12
left = stock - per_day * days # 1392
print(left)
```
(Program output: 1392)
1392 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1392", "printed": "1392", "notation": null} |
nlprog_det-setting-0074835 | <|start|><|user|>
Uma lends $8,000 at 8% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
The interest is $3,840.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Uma lends $8,000 at 8% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "The interest is $3,840.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "3840.00", "printed": "3840.00", "notation": null} |
nlprog_det-setting-0074836 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
How many 1-foot square... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0074837 | An attorney bills 2.5 hours at $350 per hour. What is the bill?
Here is the program.
```python
hours = 2.5
rate = 350
bill = hours * rate # 875.0
print(f"{bill:.2f}")
```
Execution prints 875.00, as expected.
That comes to $875.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "875.00", "printed": "875.00", "notation": null} |
nlprog_det-setting-0074838 | <|start|><|user|>
With 30% off, what does a $120 jacket cost?<|eot|>
<|assistant|>
```python
price = 120
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 84.0
print(f"{sale_price:.2f}")
```
The interpreter prints: 84.00
It costs $84.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $120 jacket cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 84.0\nprint(f\"{sale_price:.2f}\")\n```\nThe interpreter prints: 84.00\n\nIt costs $84.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0074839 | Split $5,896 between Arjun and Ada in the ratio 3 to 5. What is Arjun's share?
In Python:
```python
total = 5896
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
# execution result: 2211
Arjun gets $2,211. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2211", "printed": "2211", "notation": null} |
nlprog_det-setting-0074840 | Liesel and Oskar share $2,502 in the ratio 1:2. How much does Liesel get?
```python
total = 2502
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 834
print(share_a)
```
Output:
834
Liesel gets $834. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "834", "printed": "834", "notation": null} |
nlprog_det-setting-0074841 | What average speed covers 378 miles in 2 hours?
Python makes this quick:
```python
distance = 378
hours = 2
speed = distance / hours # 189.0
print(round(speed))
```
Result:
189
It averages 189 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "189", "printed": "189", "notation": null} |
nlprog_det-setting-0074842 | Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?
Python makes this quick:
days = 4
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 841
print(total)
This prints 841.
That comes to $841. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "841", "printed": "841", "notation": null} |
nlprog_det-setting-0074843 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
With 20% off, what does a $180 bicycle helmet cost?<|eot|>
<|assistant|>
```python
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
```
Printed:
144.00
The sale price is $144.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "With 20% off, what does a $180 bicycle helmet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 144.0\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0074844 | 5 runs at 200 calories each burn how many calories in total?
per_session = 200
sessions = 5
total = per_session * sessions # 1000
print(total)
Running this gives 1000.
1000 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0074845 | A hearing is set for January 27, 2013. What day of the week is that?
Code:
```python
from datetime import date
hearing = date(2013, 1, 27) # datetime.date(2013, 1, 27)
print(hearing.strftime("%A"))
```
The program outputs: Sunday
January 27, 2013 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0074846 | <|start|><|user|>
Revenue is $9,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 9000
costs = 8000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
stdout:
11.1
Profit is ... | chat | [
{
"role": "user",
"content": "Revenue is $9,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 9000\ncosts = 8000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 11.111111111... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0074847 | A settlement of $84,000 is split equally among 2 parties. How much does each party receive?
In code:
```python
settlement = 84000
parties = 2
share = settlement // parties # 42000
print(share)
```
Executing it gives 42000, as expected.
Each party receives $42,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "42000", "printed": "42000", "notation": null} |
nlprog_det-setting-0074848 | <|start|><|user|>
A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1200
months = 24
total = monthly_rent * months # 28800
print(total)
```
(Out: 28800)
The rent over the term is $28,800.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1200\nmonths = 24\ntotal = monthly_rent * months # 28800\nprint(total)\n```\n(Out: 28800)\n\nThe rent over th... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0074849 | Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?
Programmatically:
```python
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 240.0
payment = (principal + interest) / months # 60.0
print(f"{payment... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0074850 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 36-month warranty starts on June 11, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 6, 11)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, ... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 36-month warranty starts on June 11, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 6, 11)\nmonths = 36\ny... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2022-06-11", "printed": "2022-06-11", "notation": null} |
nlprog_det-setting-0074851 | <|start|><|user|>
What is 15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
(Out: 59)
That is 59 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = 15\n fahrenheit = celsius * 9 / 5 + 32 # 59.0\n print(round(fahrenheit))\n(Out: 59)\n\nThat is 59 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "59", "printed": "59", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.