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-0067135 | <|start|><|user|>
Convert 40 °C to Fahrenheit.<|eot|>
<|assistant|>
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
Python prints 104, as expected.
That is 104 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 40 °C to Fahrenheit."
},
{
"role": "assistant",
"content": " celsius = 40\n fahrenheit = celsius * 9 / 5 + 32 # 104.0\n print(round(fahrenheit))\nPython prints 104, as expected.\n\nThat is 104 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0067136 | An office budget of $8,000 has expenses of $3,745, $1,157, $3,561, $2,308. How much of the budget is left?
Python version:
```python
budget = 8000
expenses = [3745, 1157, 3561, 2308]
left = budget - sum(expenses) # -2771
print(left)
```
Execution result: -2771
-$2,771 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "-2771", "printed": "-2771", "notation": null} |
nlprog_det-setting-0067137 | What percentage of $10,000 is $3,700?
Set it up in Python:
```python
budget = 10000
spent = 3700
percent = spent / budget * 100 # 37.0
print(round(percent, 1))
```
Console output: 37.0
37.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "37.0", "printed": "37.0", "notation": null} |
nlprog_det-setting-0067138 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "d... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "90400", "printed": "90400", "notation": null} |
nlprog_det-setting-0067139 | Amir has 9 documents to file, and each filing costs $90. How much are the filing fees in total?
Python:
```python
fee = 90
filings = 9
total = fee * filings # 810
print(total)
```
The printout reads 810.
$810 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "810", "printed": "810", "notation": null} |
nlprog_det-setting-0067140 | <|start|><|user|>
What is a 18% tip on a $69.14 bill?<|eot|>
<|assistant|>
The tip is $12.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 18% tip on a $69.14 bill?"
},
{
"role": "assistant",
"content": "The tip is $12.45."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "12.45", "printed": "12.45", "notation": null} |
nlprog_det-setting-0067141 | <|start|><|user|>
Which is cheaper per unit: 10 for $12.65 (A) or 18 for $18.52 (B)?<|eot|>
<|assistant|>
pack_a = 12.65 / 10
pack_b = 18.52 / 18
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
This prints B.
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $12.65 (A) or 18 for $18.52 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 12.65 / 10\n pack_b = 18.52 / 18\n cheaper = \"A\" if pack_a < pack_b else \"B\"\n print(cheaper)\nThis prints B.\n\nPack B is cheaper per... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0067142 | A hall has 26 rows of 13 seats, and 39 seats are empty. How many people are seated?
Computing it:
```python
rows = 26
per_row = 13
empty = 39
seated = rows * per_row - empty # 299
print(seated)
```
Program output — 299
299 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "299", "printed": "299", "notation": null} |
nlprog_det-setting-0067143 | A meal costs $22.96. How much is a 10% tip?
Code:
```python
bill = 22.96
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 2.2960000000000003
print(f"{tip:.2f}")
```
This prints 2.30, as expected.
The tip is $2.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2.30", "printed": "2.30", "notation": null} |
nlprog_det-setting-0067144 | Count the days between November 6, 2026 and June 17, 2027.
In Python:
```python
from datetime import date
first = date(2026, 11, 6) # datetime.date(2026, 11, 6)
second = date(2027, 6, 17) # datetime.date(2027, 6, 17)
print((second - first).days)
```
Printed — 223
It is 223 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0067145 | <|start|><|user|>
8 claimants share a $36,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 36000
parties = 8
share = settlement // parties # 4500
print(share)
```
# result: 4500
Each party receives $4,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 claimants share a $36,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 36000\nparties = 8\nshare = settlement // parties # 4500\nprint(share)\n```\n# result: 4500\n\nEach party receives $4,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0067146 | <|start|><|user|>
Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 22000
costs = 20000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 9.090909090909092
print(round(margin, 1))
```
Output of the run — ... | chat | [
{
"role": "user",
"content": "Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 22000\ncosts = 20000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 9.090909... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "9.1", "printed": "9.1", "notation": null} |
nlprog_det-setting-0067147 | 287 files go into boxes of 20. How many boxes does that take?
A short script:
```python
import math
files = 287
per_box = 20
boxes = math.ceil(files / per_box)
print(boxes)
```
stdout — 15
15 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0067148 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A 255-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 255
speed = 45
minutes = distance / speed * 60 # 340.0
print(round(minutes))
```
The run gives 340, as expected.
340 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A 255-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 255\nspeed = 45\nminutes = distance / speed * 60 # 340.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "340", "printed": "340", "notation": null} |
nlprog_det-setting-0067149 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Attendance was 22 out of 40. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 22
total = 40
percent = present / total * 100 # 55.00000000000001
print(round(percent, 1))
```
(Execution result: 55.0)
Attendance was 55.0%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Attendance was 22 out of 40. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 22\ntotal = 40\npercent = present / total * 100 # 55.00000000000001\nprint(round... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0067150 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A penalty of $25 a day accrues, capped at $1,000. What is owed after 55 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 55
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# stdout: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 55 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 55\ncap = 1000\nfine = min(per_day * days, c... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0067151 | Goods bought on March 20, 2028 carry a 12-month warranty. When does it expire?
In code:
```python
from datetime import date
start = date(2028, 3, 20)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
When run, it ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2029-03-20", "printed": "2029-03-20", "notation": null} |
nlprog_det-setting-0067152 | How much sales tax is charged on a $886.53 purchase at 8%?
Program:
```python
price = 886.53
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 70.9224
print(f"{tax:.2f}")
```
Result: 70.92
The tax is $70.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "70.92", "printed": "70.92", "notation": null} |
nlprog_det-setting-0067154 | A meal costs $85.30. How much is a 18% tip?
Let the code do the arithmetic:
```python
bill = 85.3
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 15.354
print(f"{tip:.2f}")
```
When run, it prints 15.35.
The tip is $15.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "15.35", "printed": "15.35", "notation": null} |
nlprog_det-setting-0067155 | A shift runs from 7:47 AM to 1:32 PM. How long is it in minutes?
We write it as a program:
```python
start = 7 * 60 + 47 # 467
end = 13 * 60 + 32 # 812
print(end - start)
```
The printout reads: 345
345 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0067156 | <|start|><|user|>
Walls total 1212 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
Buy 5 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1212 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "Buy 5 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0067157 | Rent of $1,100 goes up 8%. What is the new rent?
In code:
```python
rent = 1100
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1188.0
print(f"{new_rent:.2f}")
```
Executed, it shows: 1188.00
The new rent is $1,188.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0067159 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Fixed costs... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0067160 | <|start|><|system|>
You may call the tools below.
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0067161 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $5,000. What is owed after 29 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 29
cap = 5000
fine = min(per_day * days, cap) # 725
print(fine)
```
What it prints: 725
The fine is $725.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 29 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 29\ncap = 5000\nfine = min(per_day * days, cap) # 725\nprint(fine)\n```\nWhat it prints: 725\n\nThe fine is $725."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "725", "printed": "725", "notation": null} |
nlprog_det-setting-0067162 | A 6-day trip pays $64 a day for meals and $140 a night for lodging (5 nights). What is the total allowance?
Python code:
```python
days = 6
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1084
print(total)
```
(Printed result: 1084)
That comes to $1,084. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "1084", "printed": "1084", "notation": null} |
nlprog_det-setting-0067163 | Starting with 530 scissors and using 34 per day, how many remain after 4 days? 394 scissors are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "394", "printed": "394", "notation": null} |
nlprog_det-setting-0067164 | 170 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
Programmatically:
```python
total = 170
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints: 28 each, 2 left over
28 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "28 each, 2 left over", "printed": "28 each, 2 left over", "notation": null} |
nlprog_det-setting-0067165 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 2 months?
Computing it:
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
The code prints 240.00.
$240.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0067166 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Split $4,020 between Yara and Priya in the ratio 2 to 3. What is Yara's share?<|eot|>
<|assistant|>
Yara gets $1,608.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Split $4,020 between Yara and Priya in the ratio 2 to 3. What is Yara's share?"
},
{
"role": "assistant",
"content": "Yara gets $1,608."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "1608", "printed": "1608", "notation": null} |
nlprog_det-setting-0067167 | Counting the first and last day, how many days are there from July 11, 2022 through August 3, 2022?
Python makes this quick:
```python
from datetime import date
first = date(2022, 7, 11) # datetime.date(2022, 7, 11)
last = date(2022, 8, 3) # datetime.date(2022, 8, 3)
days = (last - first).days + 1 # 24
print(days)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067168 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
From 1998 to 2005, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1998
end_year = 2005
print(end_year - start_year)
```
Executing it gives 7.
7 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "From 1998 to 2005, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1998\nend_year = 2005\nprint(end_year - start_year)\n```\nExecuting it gives 7... | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0067169 | A 170-page report must be reviewed in 5 days. How many pages a day is that, evenly?
Translated to Python:
```python
pages = 170
days = 5
per_day = pages // days # 34
print(per_day)
```
Python prints 34, as expected.
34 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0067170 | If a 150-minute class begins at 1:10 PM, what time does it finish?
In Python:
```python
start = 13 * 60 + 10
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Program output — 3:40 PM
The class finishes at 3:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "3:40 PM", "printed": "3:40 PM", "notation": null} |
nlprog_det-setting-0067171 | A hall has 9 rows of 11 seats, and 39 seats are empty. How many people are seated?
In Python:
```python
rows = 9
per_row = 11
empty = 39
seated = rows * per_row - empty
print(seated)
```
Executing it gives 60.
60 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0067172 | <|start|><|user|>
How many meters are in 44 kilometers?<|eot|>
<|assistant|>
That is 44,000 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 44 kilometers?"
},
{
"role": "assistant",
"content": "That is 44,000 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "44000", "printed": "44000", "notation": null} |
nlprog_det-setting-0067173 | What is 0 degrees Celsius in Fahrenheit?
Computation in Python:
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Printed result — 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0067174 | <|start|><|user|>
$1,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
It is worth $1,092.73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 3% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "It is worth $1,092.73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1092.73", "printed": "1092.73", "notation": null} |
nlprog_det-setting-0067176 | Copies cost $10 plus $0.50 for each page beyond 20. How much for 75 pages?
Python makes this quick:
```python
pages = 75
base = 10
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 37.5
print(f"{cost:.2f}")
```
The script prints 37.50.
The copy costs $37.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "37.50", "printed": "37.50", "notation": null} |
nlprog_det-setting-0067177 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
A car travels 542 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
The average speed is 271 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "A car travels 542 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "The average speed is 271 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "271", "printed": "271", "notation": null} |
nlprog_det-setting-0067178 | A training session lasted 1 hours and 18 minutes. How many minutes is that?
As Python:
```python
hours = 1
minutes = 18
total_minutes = hours * 60 + minutes # 78
print(total_minutes)
```
The script prints: 78
That is 78 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0067180 | <|start|><|system|>
You have access to these functions:
{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
What is... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0067181 | Convert 85.9 km to meters.
Computing it:
```python
km = 85.9
meters = km * 1000 # 85900.0
print(round(meters))
```
Execution result — 85900
That is 85,900 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "85900", "printed": "85900", "notation": null} |
nlprog_det-setting-0067182 | <|start|><|user|>
Monthly: $25. Annual: $252. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
Output — 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $25. Annual: $252. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nOutput — 48\n\n$48 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0067183 | Counting only Monday through Friday, how many business days are there after February 26, 2021 through April 2, 2021?
A few lines of Python do it:
```python
from datetime import date, timedelta
start = date(2021, 2, 26)
end = date(2021, 4, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelt... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0067184 | A client paid a $7,500 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left?
retainer = 7500
hours = 14
rate = 275
left = retainer - hours * rate # 3650
print(left)
The program prints: 3650
The remaining balance is $3,650. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3650", "printed": "3650", "notation": null} |
nlprog_det-setting-0067185 | What simple interest does $12,000 earn at 4% a year over 5 years?
Here is the program.
```python
principal = 12000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 2400.0
print(f"{interest:.2f}")
```
Result:
2400.00
It earns $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0067186 | <|start|><|system|>
You have access to these functions:
{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
On which weekday... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0067187 | A storeroom has 1349 lanyards. The office uses 19 a day. How many are left after 14 days?
We can compute it in Python.
```python
stock = 1349
per_day = 19
days = 14
left = stock - per_day * days # 1083
print(left)
```
The interpreter prints: 1083
1083 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1083", "printed": "1083", "notation": null} |
nlprog_det-setting-0067188 | How many meters are in 81.9 kilometers?
Computation in Python:
```python
km = 81.9
meters = km * 1000 # 81900.0
print(round(meters))
```
On running, it outputs 81900.
81,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "81900", "printed": "81900", "notation": null} |
nlprog_det-setting-0067189 | Convert 5,852 CHF to USD at 1 CHF = 1.12 USD.
As Python:
```python
amount = 5852
rate = 1.12
converted = amount * rate # 6554.240000000001
print(f"{converted:.2f}")
```
Running this gives 6554.24.
It converts to 6,554.24 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "6554.24", "printed": "6554.24", "notation": null} |
nlprog_det-setting-0067190 | <|start|><|user|>
An office budget of $25,000 has expenses of $2,935, $502, $891, $1,333. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [2935, 502, 891, 1333]
left = budget - sum(expenses) # 19339
print(left)
```
Program output — 19339
$19,339 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $25,000 has expenses of $2,935, $502, $891, $1,333. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [2935, 502, 891, 1333]\nleft = budget - sum(expenses) # 19339\nprint(left)\n```\nPro... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "19339", "printed": "19339", "notation": null} |
nlprog_det-setting-0067192 | Fines run at $100 per day up to a maximum of $5,000. How much after 22 days?
Here is a short program for it.
```python
per_day = 100
days = 22
cap = 5000
fine = min(per_day * days, cap) # 2200
print(fine)
```
Program output — 2200
$2,200 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0067193 | How much is a $74 daily meal allowance over 8 days?
The Python version:
```python
days = 8
meal_rate = 74
total = days * meal_rate # 592
print(total)
```
On running, it outputs 592.
That comes to $592. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "592", "printed": "592", "notation": null} |
nlprog_det-setting-0067194 | <|start|><|user|>
The building opened in 2009. How many years had passed by 2049?<|eot|>
<|assistant|>
```python
start_year = 2009
end_year = 2049
print(end_year - start_year)
```
Program output — 40
That is 40 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2009. How many years had passed by 2049?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2009\nend_year = 2049\nprint(end_year - start_year)\n```\nProgram output — 40\n\nThat is 40 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0067195 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "interpreter", "description": "Python sandbox for calculations. Return... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"interpreter\",... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "16 days and 14 hours", "printed": "16 days and 14 hours", "notation": null} |
nlprog_det-setting-0067196 | At 1% a month (simple), what interest builds on $12,000 over 4 months?
Here is the program.
```python
balance = 12000
monthly_rate = 1 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Execution prints 480.00, as expected.
$480.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0067197 | Filing fees are $405 per document. What do 4 filings cost?
Python code:
```python
fee = 405
filings = 4
total = fee * filings # 1620
print(total)
```
Output of the run — 1620
$1,620 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1620", "printed": "1620", "notation": null} |
nlprog_det-setting-0067198 | What is the total rent on a 18-month lease at $1,640 a month?
Computing it:
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
Printed — 29520
In total, $29,520 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0067199 | <|start|><|user|>
If a 25-minute class begins at 11:10 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 10
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
On running, it outputs 11:35 AM.
It ends at 11:35 AM.<|... | chat | [
{
"role": "user",
"content": "If a 25-minute class begins at 11:10 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 10\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "11:35 AM", "printed": "11:35 AM", "notation": null} |
nlprog_det-setting-0067200 | Pack A has 6 items for $11.77. Pack B has 18 items for $29.62. Which has the lower price per item?
Translated to Python:
```python
pack_a = 11.77 / 6 # 1.9616666666666667
pack_b = 29.62 / 18 # 1.6455555555555557
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# output: B
B has the lower unit pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0067201 | <|start|><|user|>
A 90-day notice period begins on January 5, 2026. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 1, 5)
end = start + timedelta(days=90)
print(end.isoformat())
```
When run, it prints: 2026-04-05
The period ends on April 5, 2026.<|eot|>... | chat | [
{
"role": "user",
"content": "A 90-day notice period begins on January 5, 2026. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 1, 5)\nend = start + timedelta(days=90)\nprint(end.isoformat())\n```\nWhen run, it ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2026-04-05", "printed": "2026-04-05", "notation": null} |
nlprog_det-setting-0067202 | <|start|><|user|>
The rules require 2/3 of 24 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 24
quorum = math.ceil(members * 2 / 3)
print(quorum)
```
Shell output — 16
16 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 24 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 24\nquorum = math.ceil(members * 2 / 3)\nprint(quorum)\n```\nShell output — 16\n\n16 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0067203 | After an initial $3,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part?
Computation in Python:
```python
grant = 24000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 5250.0
print(f"{each:.2f}")
```
# output: 5250.00
Each installment is $5,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0067204 | Split $1,535 between Elena and Jonas in the ratio 2 to 3. What is Elena's share?
Translated to Python:
total = 1535
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
Executing it gives: 614
Elena gets $614. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "614", "printed": "614", "notation": null} |
nlprog_det-setting-0067205 | What percentage of $8,000 is $3,000?
The Python version:
budget = 8000
spent = 3000
percent = spent / budget * 100 # 37.5
print(round(percent, 1))
Result = 37.5
37.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "37.5", "printed": "37.5", "notation": null} |
nlprog_det-setting-0067206 | <|start|><|user|>
A car travels 141 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 141
hours = 1.5
speed = distance / hours # 94.0
print(round(speed))
```
This prints 94.
The average speed is 94 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 141 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 141\nhours = 1.5\nspeed = distance / hours # 94.0\nprint(round(speed))\n```\nThis prints 94.\n\nThe average speed is 94 m... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "94", "printed": "94", "notation": null} |
nlprog_det-setting-0067207 | Fixed costs are $9,000. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even?
Python does the arithmetic:
```python
import math
fixed = 9000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
What it prints: 900
900 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0067208 | From 2004 to 2007, how many years is that?
Let's compute it with Python.
```python
start_year = 2004
end_year = 2007
print(end_year - start_year)
```
Run result = 3
That is 3 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0067209 | <|start|><|user|>
270 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 270
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
The run gives: 54 each, 0 left over
The answer... | chat | [
{
"role": "user",
"content": "270 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 270\n groups = 5\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "54 each, 0 left over", "printed": "54 each, 0 left over", "notation": null} |
nlprog_det-setting-0067210 | <|start|><|user|>
18 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 18
total = 20
percent = present / total * 100 # 90.0
print(round(percent, 1))
```
stdout = 90.0
Attendance was 90.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "18 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 18\ntotal = 20\npercent = present / total * 100 # 90.0\nprint(round(percent, 1))\n```\nstdout = 90.0\n\nAttendance was 90.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0067211 | A hall has 10 rows of 18 seats, and 1 seats are empty. How many people are seated?
The computation:
```python
rows = 10
per_row = 18
empty = 1
seated = rows * per_row - empty # 179
print(seated)
```
Out: 179
179 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "179", "printed": "179", "notation": null} |
nlprog_det-setting-0067212 | <|start|><|user|>
Counting the first and last day, how many days are there from April 2, 2019 through April 19, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 4, 2)
last = date(2019, 4, 19)
days = (last - first).days + 1
print(days)
```
(Result: 18)
That is 18 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from April 2, 2019 through April 19, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 4, 2)\nlast = date(2019, 4, 19)\ndays = (last - first).days + 1\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0067213 | How many minutes pass from 7:49 AM to 9:34 AM on the same day?
Let the code do the arithmetic:
```python
start = 7 * 60 + 49 # 469
end = 9 * 60 + 34 # 574
print(end - start)
```
Output — 105
It is 105 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0067214 | How long, in days, is it from October 3, 2018 until April 6, 2019?
Program:
```python
from datetime import date
first = date(2018, 10, 3) # datetime.date(2018, 10, 3)
second = date(2019, 4, 6) # datetime.date(2019, 4, 6)
print((second - first).days)
```
Printed:
185
There are 185 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "185", "printed": "185", "notation": null} |
nlprog_det-setting-0067215 | Printing costs 12 cents a page. What does it cost to print 31 copies of a 11-page handout?
Computation in Python:
```python
pages = 11
copies = 31
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 40.92
print(f"{cost:.2f}")
```
Printed result — 40.92
Printing costs $40.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "40.92", "printed": "40.92", "notation": null} |
nlprog_det-setting-0067216 | <|start|><|user|>
A workshop lasted 5 hours and 25 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 25
total_minutes = hours * 60 + minutes # 325
print(total_minutes)
```
Executed, it shows: 325
That is 325 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 5 hours and 25 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 25\ntotal_minutes = hours * 60 + minutes # 325\nprint(total_minutes)\n```\nExecuted, it shows: 325\n\nThat is 325 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "325", "printed": "325", "notation": null} |
nlprog_det-setting-0067217 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What is a 20% tip on a $197.16 bill?<|eot|>
<|assistant|>
bill = 197.16
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 39.432
print(f"{tip:.2f}")
The interpreter prints: 39.43
Leave $39.43.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What is a 20% tip on a $197.16 bill?"
},
{
"role": "assistant",
"content": " bill = 197.16\n tip_rate = 20 / 100 # 0.2\n tip = bill * tip_rate # 39.432\n print(f\"{t... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "39.43", "printed": "39.43", "notation": null} |
nlprog_det-setting-0067218 | A pack of 8 staplers sells for $88. What does each cost?
Computing it:
```python
total = 88
count = 8
per_item = total // count # 11
print(per_item)
```
Result = 11
Each one costs $11. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0067219 | What average speed covers 282 miles in 0.5 hours?
Coded up:
```python
distance = 282
hours = 0.5
speed = distance / hours # 564.0
print(round(speed))
```
Python prints 564, as expected.
The average speed is 564 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "564", "printed": "564", "notation": null} |
nlprog_det-setting-0067220 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?
As Python:
```python
balance = 12000
monthly_rate = 1 / 100
months = 5
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
The script prints: 600.00
$600.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0067222 | Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
We can compute it in Python.
revenue = 40000
costs = 36000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 10.0
print(round(margin, 1))
The run gives 10.0.
Profit is 10.0%... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0067223 | A $1,500 security deposit has deductions of $120, $75 and $85. How much is refunded?
Set it up in Python:
```python
deposit = 1500
deductions = [120, 75, 85]
refund = deposit - sum(deductions) # 1220
print(refund)
```
Result — 1220
$1,220 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1220", "printed": "1220", "notation": null} |
nlprog_det-setting-0067224 | A garage charges $3 an hour, never more than $24 a day. How much for 9 hours?
In Python:
```python
rate = 3
hours = 9
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Running it prints 24.
Parking costs $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067225 | After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Python:
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")
```
Run output — 18000.00
Ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0067226 | <|start|><|user|>
What is a 15% tip on a $220.30 bill?<|eot|>
<|assistant|>
Leave $33.05.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $220.30 bill?"
},
{
"role": "assistant",
"content": "Leave $33.05."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "33.05", "printed": "33.05", "notation": null} |
nlprog_det-setting-0067227 | A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?
The bill is $15.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0067228 | 46 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
Python makes this quick:
```python
total = 46
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
stdout: 9 each, 1 left over
The answer: 9 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "9 each, 1 left over", "printed": "9 each, 1 left over", "notation": null} |
nlprog_det-setting-0067229 | <|start|><|user|>
A 6-month warranty starts on July 20, 2023. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2023, 7, 20)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat()... | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on July 20, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2023, 7, 20)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2024-01-20", "printed": "2024-01-20", "notation": null} |
nlprog_det-setting-0067231 | <|start|><|user|>
Someone born September 8, 1986 turns how old by June 11, 2020? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1986, 9, 8) # datetime.date(1986, 9, 8)
on = date(2020, 6, 11) # datetime.date(2020, 6, 11)
age = on.year - born.year - ((on.month, on.day)... | chat | [
{
"role": "user",
"content": "Someone born September 8, 1986 turns how old by June 11, 2020? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1986, 9, 8) # datetime.date(1986, 9, 8)\non = date(2020, 6, 11) # datetime.date(202... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0067232 | Find the mean of these test scores: 94, 78, 58, 58 and 97. The average score is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0067233 | <|start|><|user|>
From 2024 to 2035, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2024
end_year = 2035
print(end_year - start_year)
```
It outputs: 11
That is 11 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2024 to 2035, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2024\nend_year = 2035\nprint(end_year - start_year)\n```\nIt outputs: 11\n\nThat is 11 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0067234 | Each of Yusuf's bike rides burns 350 calories. How many calories over 4 bike rides?
Programmatically:
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
Executing it gives 1400.
That burns 1400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0067235 | <|start|><|user|>
At a 4% tax rate, what is the tax on $459.88?<|eot|>
<|assistant|>
```python
price = 459.88
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 18.3952
print(f"{tax:.2f}")
```
Output:
18.40
The tax is $18.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 4% tax rate, what is the tax on $459.88?"
},
{
"role": "assistant",
"content": "```python\nprice = 459.88\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 18.3952\nprint(f\"{tax:.2f}\")\n```\nOutput:\n18.40\n\nThe tax is $18.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18.40", "printed": "18.40", "notation": null} |
nlprog_det-setting-0067236 | <|start|><|user|>
If a 6-year limitations period starts on March 19, 2012, when does it end?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2012, 3, 19) # datetime.date(2012, 3, 19)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 3, 19)
print(exp... | chat | [
{
"role": "user",
"content": "If a 6-year limitations period starts on March 19, 2012, when does it end?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2012, 3, 19) # datetime.date(2012, 3, 19)\n years = 6\n expires = accrued.replace(year=accrued.... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2018-03-19", "printed": "2018-03-19", "notation": null} |
nlprog_det-setting-0067237 | A recipe for 4 people uses 200 grams of rice. How many grams are needed for 6 people?
In Python:
```python
grams = 200
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 300
print(scaled)
```
# execution result: 300
300 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0067238 | <|start|><|user|>
383 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
It takes 26 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "383 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "It takes 26 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0067239 | <|start|><|user|>
6.5 hours of work at $300 an hour: what is the total charge?<|eot|>
<|assistant|>
The bill is $1,950.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6.5 hours of work at $300 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "The bill is $1,950.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1950.00", "printed": "1950.00", "notation": null} |
nlprog_det-setting-0067240 | A hall has 18 rows of 8 seats, and 13 seats are empty. How many people are seated?
Python:
rows = 18
per_row = 8
empty = 13
seated = rows * per_row - empty # 131
print(seated)
Output:
131
131 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0067241 | Divide 179 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
In Python:
```python
total = 179
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed: 29 each, 5 left over
The answer: 29 each, 5 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "29 each, 5 left over", "printed": "29 each, 5 left over", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.