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-0057215 | <|start|><|system|>
Tools you may use:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "convert_units", "description": "Convert a quantity be... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 419 | {"gold": "15.80", "printed": "15.80", "notation": null} |
nlprog_det-setting-0057216 | At a 5% tax rate, what is the tax on $664.27?
Here's the code.
```python
price = 664.27
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 33.2135
print(f"{tax:.2f}")
```
Printed result — 33.21
$33.21 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "33.21", "printed": "33.21", "notation": null} |
nlprog_det-setting-0057217 | 3 friends split a $180 bill plus a 15% tip evenly. How much does each pay?
Coded up:
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 68.99999999999999
print(f"{each:.2f}")
```
Console output — 69.00
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0057218 | At a 8% tax rate, what is the tax on $422.44? The tax is $33.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "33.80", "printed": "33.80", "notation": null} |
nlprog_det-setting-0057219 | <|start|><|user|>
36 toner kits cost $2 apiece. With 5% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 36
unit_price = 2
subtotal = quantity * unit_price # 72
total = subtotal * (1 + 5 / 100) # 75.60000000000001
print(f"{total:.2f}")
```
It outputs 75.60.
The total with tax is $75.60.<|eot|>... | chat | [
{
"role": "user",
"content": "36 toner kits cost $2 apiece. With 5% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 36\nunit_price = 2\nsubtotal = quantity * unit_price # 72\ntotal = subtotal * (1 + 5 / 100) # 75.60000000000001\nprint(f\"{total:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "75.60", "printed": "75.60", "notation": null} |
nlprog_det-setting-0057220 | A hall has 21 rows of 8 seats, and 21 seats are empty. How many people are seated?
In code:
```python
rows = 21
per_row = 8
empty = 21
seated = rows * per_row - empty # 147
print(seated)
```
Program output: 147
147 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "147", "printed": "147", "notation": null} |
nlprog_det-setting-0057221 | <|start|><|system|>
Tools (call with JSON):
{"name": "eval_python", "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"]}}
{"name": "get_weather", "descriptio... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 299 | {"gold": "521.38", "printed": "521.38", "notation": null} |
nlprog_det-setting-0057222 | A count moves from 2,500 to 2,250. By what percent did it change (use a minus sign for a drop)?
In code:
```python
old = 2500
new = 2250
change = (new - old) / old * 100 # -10.0
print(round(change))
```
What it prints — -10
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0057223 | After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $16,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0057224 | 12 boxes hold 12 ink cartridges each. After 18 are handed out, how many are left?
A few lines of Python do it:
```python
boxes = 12
per_box = 12
given_away = 18
left = boxes * per_box - given_away # 126
print(left)
```
(Console output: 126)
That leaves 126 ink cartridges. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0057225 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
What simple interest does $12,000 earn at 4% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 12000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 960.0
print(f"{interest:.2f}")
```
Output — 960.00
The interest is $96... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "What simple interest does $12,000 earn at 4% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 12000\nrate = 4 / 100 # 0.04\nyears = 2\ninterest = principal *... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0057226 | Divide 291 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
```python
total = 291
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints 41 each, 4 left over.
The answer: 41 each, 4 left over... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "41 each, 4 left over", "printed": "41 each, 4 left over", "notation": null} |
nlprog_det-setting-0057227 | The rules require 1/3 of 51 members (round up) to be present. How many is that?
The program:
```python
import math
members = 51
quorum = math.ceil(members * 1 / 3) # 17
print(quorum)
```
stdout = 17
17 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0057228 | <|start|><|user|>
What does $10,000 grow to in 3 years at 2% annual compounding?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 10612.080000000002
print(f"{value:.2f}")
```
Out: 10612.08
It is worth $10,612.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 3 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 10612.080000000002\nprint(f\"{value:.2f}\")\n```\nOut: 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "10612.08", "printed": "10612.08", "notation": null} |
nlprog_det-setting-0057229 | Starting from $8,000, the team spends $2,693, $1,561. What remains?
Computing it:
```python
budget = 8000
expenses = [2693, 1561]
left = budget - sum(expenses) # 3746
print(left)
```
Interpreter output — 3746
The remaining budget is $3,746. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3746", "printed": "3746", "notation": null} |
nlprog_det-setting-0057230 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "description": "Count... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 317 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0057231 | A $1,000 security deposit has deductions of $200. How much is refunded?
$800 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0057232 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|us... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "33600.00", "printed": "33600.00", "notation": null} |
nlprog_det-setting-0057233 | How many days are there from October 2, 2026 to September 20, 2027?
Translated to Python:
from datetime import date
first = date(2026, 10, 2) # datetime.date(2026, 10, 2)
second = date(2027, 9, 20) # datetime.date(2027, 9, 20)
print((second - first).days)
Program output — 353
It is 353 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "353", "printed": "353", "notation": null} |
nlprog_det-setting-0057234 | 4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Python, step by step:
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 4 # 12600.0
print(f"{per_client:.2f}")
```
It outputs: 12600.00
Each s... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "12600.00", "printed": "12600.00", "notation": null} |
nlprog_det-setting-0057235 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed tex... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"sandbox_python\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "81.30", "printed": "81.30", "notation": null} |
nlprog_det-setting-0057236 | What commission does Tobias make on $35,182 in sales at 6%?
sales = 35182
rate = 6 / 100 # 0.06
commission = sales * rate # 2110.92
print(f"{commission:.2f}")
# execution result: 2110.92
Tobias earns $2,110.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2110.92", "printed": "2110.92", "notation": null} |
nlprog_det-setting-0057237 | A garage charges $2 an hour, never more than $18 a day. How much for 4 hours?
A Python solution:
```python
rate = 2
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Out = 8
The charge is $8. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0057238 | Pack A has 10 items for $5.65. Pack B has 18 items for $6.51. Which has the lower price per item?
Coded up:
```python
pack_a = 5.65 / 10 # 0.5650000000000001
pack_b = 6.51 / 18 # 0.36166666666666664
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Running this gives B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057239 | Bruna drove 345 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Python:
```python
miles = 345
rate = 0.58
reimbursement = miles * rate # 200.1
print(f"{reimbursement:.2f}")
```
Result: 200.10
The reimbursement is $200.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "200.10", "printed": "200.10", "notation": null} |
nlprog_det-setting-0057240 | <|start|><|system|>
Tool definitions:
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 280 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0057241 | 124 copies of a 16-page packet are printed at $0.12 per page. What is the cost?
Translated to Python:
```python
pages = 16
copies = 124
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 238.07999999999998
print(f"{cost:.2f}")
```
The printout reads: 238.08
The job costs $238.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "238.08", "printed": "238.08", "notation": null} |
nlprog_det-setting-0057242 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
What percentage of $4,000 is $3,200?<|eot|>
<|assistant|>
That is 80.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "What percentage of $4,000 is $3,200?"
},
{
"role": "assistant",
"content": "That is 80.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0057243 | A meal costs $61.82. How much is a 18% tip?
A Python solution:
```python
bill = 61.82
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 11.1276
print(f"{tip:.2f}")
```
Interpreter output — 11.13
The tip is $11.13. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "11.13", "printed": "11.13", "notation": null} |
nlprog_det-setting-0057244 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 21 thousand gallons?
$91.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "91.80", "printed": "91.80", "notation": null} |
nlprog_det-setting-0057245 | <|start|><|user|>
At $26.68 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
rate = 26.68
hours = 30
earnings = rate * hours # 800.4
print(f"{earnings:.2f}")
The program prints: 800.40
That earns $800.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $26.68 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": " rate = 26.68\n hours = 30\n earnings = rate * hours # 800.4\n print(f\"{earnings:.2f}\")\nThe program prints: 800.40\n\nThat earns $800.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "800.40", "printed": "800.40", "notation": null} |
nlprog_det-setting-0057246 | 4 friends split a $84 bill plus a 18% tip evenly. How much does each pay?
Code:
```python
bill = 84
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 24.779999999999998
print(f"{each:.2f}")
```
(stdout: 24.78)
The share is $24.78 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "24.78", "printed": "24.78", "notation": null} |
nlprog_det-setting-0057247 | Each of Paula's bike rides burns 400 calories. How many calories over 5 bike rides?
That burns 2000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0057248 | Buying 6 sticky pads at $25 each, 5 rulers at $25 each, 5 envelopes at $18 each, someone hands over $400. What change comes back?
The change is $35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0057249 | <|start|><|user|>
Fixed costs are $2,500. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
This prints 250.
250 units are neede... | chat | [
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0057250 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
Computation in Python:
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
The program outputs: 3.8
Profit is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0057251 | <|start|><|user|>
A party has 28 days to respond to a motion served on May 28, 2028, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
It is due June 28, 2028.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on May 28, 2028, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "It is due June 28, 2028."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2028-06-28", "printed": "2028-06-28", "notation": null} |
nlprog_det-setting-0057252 | A hall has 8 rows of 21 seats, and 28 seats are empty. How many people are seated?
Translated to Python:
```python
rows = 8
per_row = 21
empty = 28
seated = rows * per_row - empty # 140
print(seated)
```
It outputs 140.
140 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0057253 | A measure needs at least 75% of 85 votes. How many votes is that, rounded up?
At least 64 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0057254 | $10,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Programmatically:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 12166.529024000001
print(f"{value:.2f}")
```
The script prints 12166.53, as expected.
It is worth $12,166.53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "12166.53", "printed": "12166.53", "notation": null} |
nlprog_det-setting-0057255 | <|start|><|user|>
Tomas was born on June 25, 1958. How old is Tomas on August 12, 2025?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1958, 6, 25) # datetime.date(1958, 6, 25)
on = date(2025, 8, 12) # datetime.date(2025, 8, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, born... | chat | [
{
"role": "user",
"content": "Tomas was born on June 25, 1958. How old is Tomas on August 12, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1958, 6, 25) # datetime.date(1958, 6, 25)\non = date(2025, 8, 12) # datetime.date(2025, 8, 12)\nage = on.... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0057256 | Each storage box holds 40 files. How many boxes are needed for 84 files?
In Python:
```python
import math
files = 84
per_box = 40
boxes = math.ceil(files / per_box) # 3
print(boxes)
```
Running it prints: 3
It takes 3 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0057257 | <|start|><|user|>
A 209-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
That is 11 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 209-page report must be reviewed in 19 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "That is 11 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0057258 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 400 miles?<|eot|>
<|assistant|>
The reimbursement is $268.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 400 miles?"
},
{
"role": "assistant",
"content": "The reimbursement is $268.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "268.00", "printed": "268.00", "notation": null} |
nlprog_det-setting-0057259 | At an exchange rate of 1.31 USD per GBP, how many USD is 3,306 GBP?
Script:
```python
amount = 3306
rate = 1.31
converted = amount * rate # 4330.860000000001
print(f"{converted:.2f}")
```
It outputs: 4330.86
It converts to 4,330.86 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4330.86", "printed": "4330.86", "notation": null} |
nlprog_det-setting-0057260 | A $800 security deposit has deductions of $85. How much is refunded?
$715 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "715", "printed": "715", "notation": null} |
nlprog_det-setting-0057261 | The paralegal logged 2 hours at a rate of $180. How much is billed?
That comes to $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0057262 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 150
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 45.0
print(f"{each:.2f}")
Running it prints 4... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 150\n tip_rate = 20 / 100 # 0.2\n people = 4\n eac... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0057263 | Sales went from 1,200 to 1,020. What is the percent change?
Here is a short program for it.
```python
old = 1200
new = 1020
change = (new - old) / old * 100 # -15.0
print(round(change))
```
Executing it gives -15, as expected.
It changed by -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0057264 | <|start|><|user|>
Papers were served by mail on September 6, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2027, 9, 6) # datetime.date(2027, 9, 6)
response_days = 14
mail_days =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on September 6, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2027, 9, 6) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "2027-09-23", "printed": "2027-09-23", "notation": null} |
nlprog_det-setting-0057265 | Convert 3 h 25 min (the length of a meeting) to minutes.
Here is a short program for it.
```python
hours = 3
minutes = 25
total_minutes = hours * 60 + minutes # 205
print(total_minutes)
```
That prints: 205
That is 205 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "205", "printed": "205", "notation": null} |
nlprog_det-setting-0057266 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?
Here's the code.
rate = 16.0
hours = 54
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 336.0
pay = regular + overtime # 976.0
print(f"{pay:.2f}")
Out: 976.00
The weekly pay i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "976.00", "printed": "976.00", "notation": null} |
nlprog_det-setting-0057267 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 8 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.2
used = 8
free = 0
bill = base + rate * max(0, used - free) # 45.6
print(f"{bill:.2f}")
... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 8 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.2\nu... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "45.60", "printed": "45.60", "notation": null} |
nlprog_det-setting-0057268 | <|start|><|user|>
10 boxes hold 10 headsets each. After 16 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 10
per_box = 10
given_away = 16
left = boxes * per_box - given_away # 84
print(left)
```
It outputs: 84
That leaves 84 headsets.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "10 boxes hold 10 headsets each. After 16 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 10\nper_box = 10\ngiven_away = 16\nleft = boxes * per_box - given_away # 84\nprint(left)\n```\nIt outputs: 84\n\nThat leaves 84 hea... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0057269 | Starting with 1710 file boxes and using 33 per day, how many remain after 9 days?
Translated to Python:
```python
stock = 1710
per_day = 33
days = 9
left = stock - per_day * days # 1413
print(left)
```
stdout — 1413
1413 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1413", "printed": "1413", "notation": null} |
nlprog_det-setting-0057270 | <|start|><|user|>
A 20 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 20
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 140
print(tiles)
```
The code prints 140.
140 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 20 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 20\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 140\nprint(tiles)\n```\nThe code pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0057272 | A class starts at 1:45 PM and lasts 150 minutes. When does it end?
Here is the program.
```python
start = 13 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It prints 4:15 PM.
The class finishes at 4:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "4:15 PM", "printed": "4:15 PM", "notation": null} |
nlprog_det-setting-0057273 | The statute was enacted in 2010. How many years had passed by 2036?
26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0057274 | <|start|><|user|>
Kofi and Beatriz share $469 in the ratio 2:5. How much does Kofi get?<|eot|>
<|assistant|>
```python
total = 469
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 134
print(share_a)
```
The program prints: 134
Kofi's share is $134.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi and Beatriz share $469 in the ratio 2:5. How much does Kofi get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 469\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 134\nprint(share_a)\n```\nThe program prints: 134\n\nKo... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0057275 | <|start|><|user|>
79 of 100 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 79
total = 100
percent = present / total * 100 # 79.0
print(round(percent, 1))
```
The script prints 79.0, as expected.
79.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "79 of 100 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 79\ntotal = 100\npercent = present / total * 100 # 79.0\nprint(round(percent, 1))\n```\nThe script prints 79.0, as expected.\n\n79.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "79.0", "printed": "79.0", "notation": null} |
nlprog_det-setting-0057276 | At 60 miles per hour, how many minutes does a 405-mile trip take?
As Python:
```python
distance = 405
speed = 60
minutes = distance / speed * 60 # 405.0
print(round(minutes))
```
When run, it prints 405.
The trip takes 405 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0057278 | Scale 300 g of rice from 6 servings to 4 servings.
Programmatically:
```python
grams = 300
serves = 6
needed_for = 4
scaled = grams * needed_for // serves # 200
print(scaled)
```
This prints: 200
200 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0057280 | Filing fees are $150 per document. What do 4 filings cost?
Python, step by step:
```python
fee = 150
filings = 4
total = fee * filings # 600
print(total)
```
The printout reads 600.
The total fee is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0057282 | <|start|><|system|>
Tools you may use:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 370 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0057283 | <|start|><|system|>
Functions:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "calculato... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 452 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0057284 | Which is cheaper per unit: 10 for $10.92 (A) or 15 for $31.74 (B)?
```python
pack_a = 10.92 / 10
pack_b = 31.74 / 15
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
# execution result: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0057285 | From 2007 to 2011, how many years is that?
Let's compute it with Python.
```python
start_year = 2007
end_year = 2011
print(end_year - start_year)
```
The script prints: 4
That is 4 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0057286 | Find the mean of these test scores: 78, 79, 61, 75, 58 and 63.
We write it as a program:
```python
scores = [78, 79, 61, 75, 58, 63]
average = sum(scores) // len(scores) # 69
print(average)
```
Program output: 69
The mean is 69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0057287 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Express 148 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 148
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The script prints 6 days and 4 hours, as expected.
148 hours is 6 days and 4 hours.<|eot... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Express 148 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 148\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6 days and 4 hours", "printed": "6 days and 4 hours", "notation": null} |
nlprog_det-setting-0057288 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A lease... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0057289 | What is a 10% tip on a $164.25 bill?
The Python version:
```python
bill = 164.25
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 16.425
print(f"{tip:.2f}")
```
Executing it gives: 16.43
Leave $16.43. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "16.43", "printed": "16.43", "notation": null} |
nlprog_det-setting-0057290 | <|start|><|user|>
A 4% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|>
<|assistant|>
The new rent is $1,872.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $1,800 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "The new rent is $1,872.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0057291 | <|start|><|user|>
A hearing lasted 2 hours and 25 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 2
minutes = 25
total_minutes = hours * 60 + minutes # 145
print(total_minutes)
```
On running, it outputs: 145
The hearing lasted 145 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 2 hours and 25 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 25\ntotal_minutes = hours * 60 + minutes # 145\nprint(total_minutes)\n```\nOn running, it outputs: 145\n\nThe hearing lasted 14... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "145", "printed": "145", "notation": null} |
nlprog_det-setting-0057292 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
On which weekday does June 16, 2018 fall?<|eot|>
<|assistant|>
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "On which weekday does June 16, 2018 fall?"
},
{
"role": "assistant",
"content": "It is a Saturday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0057293 | A 21-day notice period begins on October 5, 2019. On what date does it end?
```python
from datetime import date, timedelta
start = date(2019, 10, 5) # datetime.date(2019, 10, 5)
end = start + timedelta(days=21) # datetime.date(2019, 10, 26)
print(end.isoformat())
```
The script prints: 2019-10-26
It ends on October... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2019-10-26", "printed": "2019-10-26", "notation": null} |
nlprog_det-setting-0057295 | <|start|><|user|>
Straight-line depreciation: cost $30,000, salvage $2,000, 8 years. How much per year?<|eot|>
<|assistant|>
cost = 30000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 3500.0
print(f"{per_year:.2f}")
(Execution result: 3500.00)
Depreciation is $3,500.00 per year.<|... | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $2,000, 8 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 30000\n salvage = 2000\n years = 8\n per_year = (cost - salvage) / years # 3500.0\n print(f\"{per_year:.2f}\")\n(Exec... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0057296 | A 37 lb package ships at $5 base plus $2.00/lb. What is the charge?
Python does the arithmetic:
base = 5
per_pound = 2.0
weight = 37
cost = base + per_pound * weight
print(f"{cost:.2f}")
This prints 79.00.
The charge is $79.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "79.00", "printed": "79.00", "notation": null} |
nlprog_det-setting-0057297 | <|start|><|user|>
A client paid a $2,500 retainer. The firm has billed 2 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
$2,200 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 2 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "$2,200 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0057298 | <|start|><|user|>
A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 200
new = 240
change = (new - old) / old * 100
print(round(change))
```
Interpreter output — 20
It changed by 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 240\nchange = (new - old) / old * 100\nprint(round(change))\n```\nInterpreter output — 20\n\nIt changed by ... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0057299 | A quorum is 3/5 of the 18 members, rounded up. How many members make a quorum?
Python code:
```python
import math
members = 18
quorum = math.ceil(members * 3 / 5) # 11
print(quorum)
```
The code prints: 11
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0057300 | <|start|><|user|>
Count 30 days forward from August 15, 2022. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 8, 15) # datetime.date(2022, 8, 15)
end = start + timedelta(days=30) # datetime.date(2022, 9, 14)
print(end.isoformat())
```
Console output: 2022-09-1... | chat | [
{
"role": "user",
"content": "Count 30 days forward from August 15, 2022. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 8, 15) # datetime.date(2022, 8, 15)\nend = start + timedelta(days=30) # datetime.date(2022, 9,... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2022-09-14", "printed": "2022-09-14", "notation": null} |
nlprog_det-setting-0057301 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $6,000, 8 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 6000
years = 8
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:.2f}")
```
Output of the run: 2250.00
$2,250.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $6,000, 8 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 6000\nyears = 8\nper_year = (cost - salvage) / years # 2250.0\nprint(f\"{per_year:.2f}\")\n```\nOutput of... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0057302 | From a $10,000 retainer, 4 hours at $275/hour have been drawn. What remains?
```python
retainer = 10000
hours = 4
rate = 275
left = retainer - hours * rate # 8900
print(left)
```
The program prints: 8900
The remaining balance is $8,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "8900", "printed": "8900", "notation": null} |
nlprog_det-setting-0057303 | Equipment costs $30,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?
cost = 30000
salvage = 0
years = 4
per_year = (cost - salvage) / years # 7500.0
print(f"{per_year:.2f}")
Interpreter output: 7500.00
$7,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0057305 | <|start|><|user|>
24 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 24
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The code prints: 8 each, 0 left over
8 each, 0 lef... | chat | [
{
"role": "user",
"content": "24 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 24\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "8 each, 0 left over", "printed": "8 each, 0 left over", "notation": null} |
nlprog_det-setting-0057306 | 3 swims at 200 calories each burn how many calories in total?
A Python solution:
```python
per_session = 200
sessions = 3
total = per_session * sessions # 600
print(total)
```
Result = 600
That burns 600 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0057307 | Convert 4 h 17 min (the length of a deposition) to minutes.
```python
hours = 4
minutes = 17
total_minutes = hours * 60 + minutes # 257
print(total_minutes)
```
# printed: 257
That is 257 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "257", "printed": "257", "notation": null} |
nlprog_det-setting-0057308 | A 5% increase is applied to $2,200 monthly rent. What is the new amount?
In Python:
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
Running it prints: 2310.00
The new rent is $2,310.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0057310 | 4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Each client gets $5,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0057311 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Water costs $20 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons?<|eot|>
<|assistant|>
base = 20
rate = 4.2
used = 14
free = 3
bill = base + rate * max(0, used - free) # 66.2
print(f"{bill:.2f}")
P... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Water costs $20 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 4.2\n used = 14\n f... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "66.20", "printed": "66.20", "notation": null} |
nlprog_det-setting-0057313 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|>
<|assistant|>
Zainab earns $928.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?"
},
{
"role": "assistant",
"content": "Zainab earns $928.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "928.00", "printed": "928.00", "notation": null} |
nlprog_det-setting-0057314 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "descr... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"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 | [] | [] | 420 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0057315 | A settlement of $7,350 is split equally among 6 parties. How much does each party receive?
Python makes this quick:
```python
settlement = 7350
parties = 6
share = settlement // parties # 1225
print(share)
```
# program output: 1225
Each share is $1,225. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0057316 | <|start|><|user|>
Monthly rent is $2,400. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
The prorated rent is $1,316.13.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly rent is $2,400. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "The prorated rent is $1,316.13."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "1316.13", "printed": "1316.13", "notation": null} |
nlprog_det-setting-0057317 | A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?
Script:
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
Shell output — 3960.00
The fee is $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0057318 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
7 runs at 300 calories each burn how many calories in total?<|eot|>
<|assistant|>
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
The script prints 2100, as expected.
2100 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "7 runs at 300 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 7\n total = per_session * sessions # 2100\n print(t... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0057319 | From 2021 to 2057, how many years is that?
Here is a short program for it.
```python
start_year = 2021
end_year = 2057
print(end_year - start_year)
```
(Printed result: 36)
That is 36 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0057320 | The rules require 1/3 of 42 members (round up) to be present. How many is that?
We can compute it in Python.
```python
import math
members = 42
quorum = math.ceil(members * 1 / 3) # 14
print(quorum)
```
Running it prints: 14
14 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0057321 | A 3% increase is applied to $2,200 monthly rent. What is the new amount?
Python version:
```python
rent = 2200
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 2266.0
print(f"{new_rent:.2f}")
```
Run output: 2266.00
The new rent is $2,266.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0057322 | Split $1,668 between Quinn and Fiona in the ratio 1 to 3. What is Quinn's share?
A few lines of Python do it:
total = 1668
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 417
print(share_a)
Output:
417
Quinn's share is $417. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "417", "printed": "417", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.