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-0070463 | <|start|><|user|>
A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.2
used = 20
free = 0
bill = base + rate * max(0, used - free) # 96.0
print(f"{bill:.2f}")
```
Printed — 96.00
The bill is $96.0... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.2\nused = 20\nfree = 0\nbill = base + rate * max(0, used - free) # 96.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "96.00", "printed": "96.00", "notation": null} |
nlprog_det-setting-0070464 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Parking is $2 per hour with a daily maximum of $18. What do 11 hours cost?<|eot|>
<|assistant|>
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 11 hours cost?"
},
{
"role": "assistant",
"content": "The charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0070465 | <|start|><|user|>
A desk lamp costs $60. It is 40% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 60
discount = 40 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
Executed, it shows: 36.00
It costs $36.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A desk lamp costs $60. It is 40% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 60\ndiscount = 40 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows: 36.00\n\nIt costs $36.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0070466 | <|start|><|user|>
Someone born January 11, 1954 turns how old by June 5, 2020? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1954, 1, 11) # datetime.date(1954, 1, 11)
on = date(2020, 6, 5) # datetime.date(2020, 6, 5)
age = on.year - born.year - ((on.month, on.day) <... | chat | [
{
"role": "user",
"content": "Someone born January 11, 1954 turns how old by June 5, 2020? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1954, 1, 11) # datetime.date(1954, 1, 11)\non = date(2020, 6, 5) # datetime.date(2020... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0070467 | 6 friends split a $240 bill plus a 15% tip evenly. How much does each pay?
Here is the program.
```python
bill = 240
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 46.0
print(f"{each:.2f}")
```
What it prints: 46.00
The share is $46.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "46.00", "printed": "46.00", "notation": null} |
nlprog_det-setting-0070468 | <|start|><|user|>
A 270-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
405 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 270-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "405 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0070469 | A 12-month warranty starts on June 24, 2028. On what date does it end?
Here's the code.
```python
from datetime import date
start = date(2028, 6, 24)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
On running, i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2029-06-24", "printed": "2029-06-24", "notation": null} |
nlprog_det-setting-0070470 | How many days are there from October 8, 2024 to September 15, 2025?
As a program:
```python
from datetime import date
first = date(2024, 10, 8) # datetime.date(2024, 10, 8)
second = date(2025, 9, 15) # datetime.date(2025, 9, 15)
print((second - first).days)
```
Printed — 342
It is 342 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "342", "printed": "342", "notation": null} |
nlprog_det-setting-0070471 | <|start|><|system|>
Functions:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
What average speed covers 26... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sni... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "133", "printed": "133", "notation": null} |
nlprog_det-setting-0070472 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Someone works 40 hours at... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "1202.40", "printed": "1202.40", "notation": null} |
nlprog_det-setting-0070473 | How many days are there from April 10, 2019 to June 16, 2019?
There are 67 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0070474 | How long, in days, is it from June 10, 2021 until January 22, 2022?
A Python solution:
```python
from datetime import date
first = date(2021, 6, 10) # datetime.date(2021, 6, 10)
second = date(2022, 1, 22) # datetime.date(2022, 1, 22)
print((second - first).days)
```
Running it prints 226.
There are 226 days between... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "226", "printed": "226", "notation": null} |
nlprog_det-setting-0070475 | <|start|><|system|>
Tools (call with JSON):
[{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "descrip... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 298 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0070476 | A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 10 people?
One way, in code:
```python
grams = 150
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 750
print(scaled)
```
Shell output: 750
750 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0070478 | A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?
A Python solution:
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
# printed: 10000.00
The fee is $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0070479 | How many minutes pass from 10:39 AM to 1:31 PM on the same day?
As a program:
```python
start = 10 * 60 + 39 # 639
end = 13 * 60 + 31 # 811
print(end - start)
```
Run it and it prints 172.
It is 172 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "172", "printed": "172", "notation": null} |
nlprog_det-setting-0070480 | <|start|><|user|>
15 cables cost $9 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
The invoice total is $145.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "15 cables cost $9 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "The invoice total is $145.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "145.80", "printed": "145.80", "notation": null} |
nlprog_det-setting-0070481 | 65 copies of a 45-page packet are printed at $0.05 per page. What is the cost?
Printing costs $146.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "146.25", "printed": "146.25", "notation": null} |
nlprog_det-setting-0070482 | 30 envelopes cost $24 apiece. With 5% tax added, what is the total?
Computing it:
```python
quantity = 30
unit_price = 24
subtotal = quantity * unit_price # 720
total = subtotal * (1 + 5 / 100) # 756.0
print(f"{total:.2f}")
```
Console output — 756.00
The invoice total is $756.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "756.00", "printed": "756.00", "notation": null} |
nlprog_det-setting-0070483 | Cyrus lends $2,500 at 3% simple interest per year for 3 years. How much interest is earned?
As a program:
```python
principal = 2500
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 225.0
print(f"{interest:.2f}")
```
The interpreter prints 225.00.
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0070484 | <|start|><|user|>
Starting with 1655 pens and using 6 per day, how many remain after 12 days?<|eot|>
<|assistant|>
```python
stock = 1655
per_day = 6
days = 12
left = stock - per_day * days # 1583
print(left)
```
What it prints: 1583
1583 pens are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1655 pens and using 6 per day, how many remain after 12 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1655\nper_day = 6\ndays = 12\nleft = stock - per_day * days # 1583\nprint(left)\n```\nWhat it prints: 1583\n\n1583 pens are left."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1583", "printed": "1583", "notation": null} |
nlprog_det-setting-0070485 | 3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 3 # 9600.0
print(f"{per_client:.2f}")
```
Running this gives: 9600.00
Each client gets $9,60... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0070486 | A $1,000 security deposit has deductions of $200. How much is refunded?
In code:
```python
deposit = 1000
deductions = [200]
refund = deposit - sum(deductions) # 800
print(refund)
```
The program outputs: 800
The refund is $800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0070488 | With 25% off, what does a $40 filing cabinet cost?
It costs $30.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0070489 | Printing costs 15 cents a page. What does it cost to print 151 copies of a 4-page handout?
The program:
```python
pages = 4
copies = 151
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 90.6
print(f"{cost:.2f}")
```
Output: 90.60
The job costs $90.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "90.60", "printed": "90.60", "notation": null} |
nlprog_det-setting-0070490 | Meals are $69 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?
```python
days = 7
meal_rate = 69
lodging_rate = 175
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1533
print(total)
```
The run gives 1533, as expected.
The allowance is $1,533. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1533", "printed": "1533", "notation": null} |
nlprog_det-setting-0070491 | 12 boxes hold 24 pens each. After 16 are handed out, how many are left?
Python version:
```python
boxes = 12
per_box = 24
given_away = 16
left = boxes * per_box - given_away # 272
print(left)
```
stdout:
272
272 pens are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "272", "printed": "272", "notation": null} |
nlprog_det-setting-0070492 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $24. What do 3 hours cost?<|eot|>
<|assistant|>
```python
rate = 4
hours = 3
daily_max = 24
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Output = 12
The charge is $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $24. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 3\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nOutput = 12\n\nThe charge is $12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0070493 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Fines run at... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0070494 | <|start|><|user|>
How many minutes pass from 10:11 AM to 4:19 PM on the same day?<|eot|>
<|assistant|>
368 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:11 AM to 4:19 PM on the same day?"
},
{
"role": "assistant",
"content": "368 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "368", "printed": "368", "notation": null} |
nlprog_det-setting-0070495 | How much is a $79 daily meal allowance over 7 days?
```python
days = 7
meal_rate = 79
total = days * meal_rate # 553
print(total)
```
Printed — 553
That comes to $553. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "553", "printed": "553", "notation": null} |
nlprog_det-setting-0070497 | A hall has 25 rows of 8 seats, and 0 seats are empty. How many people are seated?
Python, step by step:
rows = 25
per_row = 8
empty = 0
seated = rows * per_row - empty
print(seated)
This prints: 200
200 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0070498 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
What average speed covers 242 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 242
hours = 2
speed = distance / hours # 121.0
print(round(speed))
```
Run output: 121
It averages 121 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "What average speed covers 242 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 242\nhours = 2\nspeed = distance / hours # 121.0\nprint(round(speed))\n```\nRun out... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0070499 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
What is the total rent on a 36-month lease at $2,875 a month?<|eot|>
<|assistant|>
The rent over the term is $103,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "The rent over the term is $103,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0070500 | From 1996 to 2036, how many years is that?
Set it up in Python:
```python
start_year = 1996
end_year = 2036
print(end_year - start_year)
```
Running this gives 40.
40 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0070501 | A meal costs $27.21. How much is a 25% tip?
Translated to Python:
```python
bill = 27.21
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 6.8025
print(f"{tip:.2f}")
```
Execution result: 6.80
The tip is $6.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6.80", "printed": "6.80", "notation": null} |
nlprog_det-setting-0070502 | 3 claimants share a $2,640 settlement equally. What is each share?
Python does the arithmetic:
```python
settlement = 2640
parties = 3
share = settlement // parties # 880
print(share)
```
Output:
880
Each party receives $880. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "880", "printed": "880", "notation": null} |
nlprog_det-setting-0070503 | Someone born May 21, 2003 turns how old by June 7, 2029? Give the age in whole years.
```python
from datetime import date
born = date(2003, 5, 21) # datetime.date(2003, 5, 21)
on = date(2029, 6, 7) # datetime.date(2029, 6, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 26
print(age)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0070504 | <|start|><|user|>
Scale 450 g of lentils from 4 servings to 10 servings.<|eot|>
<|assistant|>
1125 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of lentils from 4 servings to 10 servings."
},
{
"role": "assistant",
"content": "1125 grams of lentils are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0070505 | 8 hours of work at $225 an hour: what is the total charge?
One way, in code:
```python
hours = 8
rate = 225
bill = hours * rate # 1800
print(f"{bill:.2f}")
```
Run result = 1800.00
That comes to $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0070506 | The landlord deducts $85 from a $2,500 deposit. What is returned to the tenant?
Python version:
```python
deposit = 2500
deductions = [85]
refund = deposit - sum(deductions) # 2415
print(refund)
```
(Program output: 2415)
$2,415 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2415", "printed": "2415", "notation": null} |
nlprog_det-setting-0070507 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calculator", "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"]}}<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 196 | {"gold": "414", "printed": "414", "notation": null} |
nlprog_det-setting-0070508 | Rent of $900 goes up 8%. What is the new rent?
Set it up in Python:
```python
rent = 900
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 972.0000000000001
print(f"{new_rent:.2f}")
```
The run gives 972.00.
It rises to $972.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "972.00", "printed": "972.00", "notation": null} |
nlprog_det-setting-0070509 | Printing costs 10 cents a page. What does it cost to print 46 copies of a 49-page handout?
Let the code do the arithmetic:
```python
pages = 49
copies = 46
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 225.4
print(f"{cost:.2f}")
```
Execution result — 225.40
Printing costs $225.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "225.40", "printed": "225.40", "notation": null} |
nlprog_det-setting-0070510 | How many of 29 votes make 67% (round up)?
Python code:
```python
import math
voters = 29
needed = math.ceil(voters * 67 / 100) # 20
print(needed)
```
# output: 20
At least 20 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0070511 | To read 450 pages in 9 days, how many pages per day are needed?
In Python:
```python
pages = 450
days = 9
per_day = pages // days # 50
print(per_day)
```
(Program output: 50)
50 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0070512 | Walls total 1182 sq ft and each can covers 400 sq ft. How many cans should be bought?
A Python solution:
```python
import math
area = 1182
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Shell output: 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0070513 | A 60-day notice period begins on March 23, 2021. On what date does it end?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2021, 3, 23) # datetime.date(2021, 3, 23)
end = start + timedelta(days=60) # datetime.date(2021, 5, 22)
print(end.isoformat())
```
(Execution result: 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2021-05-22", "printed": "2021-05-22", "notation": null} |
nlprog_det-setting-0070514 | A library charges $0.50 per book per day late. What is the fine for 2 books that are 15 days late?
The fine is $15.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0070515 | Someone born May 5, 2006 turns how old by January 4, 2020? Give the age in whole years.
Emeka is 13. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0070516 | How much sales tax is charged on a $803.57 purchase at 8%?
Computation in Python:
```python
price = 803.57
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 64.2856
print(f"{tax:.2f}")
```
Execution result — 64.29
The tax is $64.29. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "64.29", "printed": "64.29", "notation": null} |
nlprog_det-setting-0070517 | Each storage box holds 40 files. How many boxes are needed for 436 files? It takes 11 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0070518 | <|start|><|user|>
A shift runs from 10:40 AM to 5:26 PM. How long is it in minutes?<|eot|>
<|assistant|>
It is 406 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:40 AM to 5:26 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "It is 406 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "406", "printed": "406", "notation": null} |
nlprog_det-setting-0070519 | <|start|><|user|>
A meal costs $145.15. How much is a 10% tip?<|eot|>
<|assistant|>
```python
bill = 145.15
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 14.515
print(f"{tip:.2f}")
```
Executed, it shows: 14.52
Leave $14.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $145.15. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 145.15\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 14.515\nprint(f\"{tip:.2f}\")\n```\nExecuted, it shows: 14.52\n\nLeave $14.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "14.52", "printed": "14.52", "notation": null} |
nlprog_det-setting-0070520 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 636 files?<|eot|>
<|assistant|>
It takes 43 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 636 files?"
},
{
"role": "assistant",
"content": "It takes 43 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0070521 | How many days are there from October 6, 2026 to May 31, 2027?
There are 237 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0070522 | What commission does Goran make on $75,380 in sales at 3%?
Let's compute it with Python.
```python
sales = 75380
rate = 3 / 100 # 0.03
commission = sales * rate # 2261.4
print(f"{commission:.2f}")
```
Result = 2261.40
Goran earns $2,261.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2261.40", "printed": "2261.40", "notation": null} |
nlprog_det-setting-0070523 | Attendance was 97 out of 100. Express it as a percent.
We can compute it in Python.
```python
present = 97
total = 100
percent = present / total * 100 # 97.0
print(round(percent, 1))
```
Result: 97.0
97.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "97.0", "printed": "97.0", "notation": null} |
nlprog_det-setting-0070524 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A deposition lasted ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "215", "printed": "215", "notation": null} |
nlprog_det-setting-0070525 | An office budget of $8,000 has expenses of $3,776, $3,315, $3,291. How much of the budget is left?
Let the code do the arithmetic:
```python
budget = 8000
expenses = [3776, 3315, 3291]
left = budget - sum(expenses) # -2382
print(left)
```
Out = -2382
The remaining budget is -$2,382. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "-2382", "printed": "-2382", "notation": null} |
nlprog_det-setting-0070526 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 452 square feet of wall?<|eot|>
<|assistant|>
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 452 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 2 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0070527 | The paralegal logged 12 hours at a rate of $225. How much is billed?
Python makes this quick:
```python
hours = 12
rate = 225
bill = hours * rate # 2700
print(f"{bill:.2f}")
```
# program output: 2700.00
That comes to $2,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0070529 | Straight-line depreciation: cost $24,000, salvage $6,000, 6 years. How much per year?
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0070530 | After a 25% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Programmatically:
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 2 # 22500.0
print(f"{per_client:.2f}")
```
The script prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "22500.00", "printed": "22500.00", "notation": null} |
nlprog_det-setting-0070531 | Buying 4 paper reams at $12 each, 2 toner kits at $26 each, 1 headsets at $3 each, 3 water bottles at $4 each, someone hands over $150. What change comes back?
$35 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0070532 | <|start|><|user|>
Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
The margin is 33.3%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "The margin is 33.3%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0070533 | Sales went from 800 to 920. What is the percent change?
Script:
old = 800
new = 920
change = (new - old) / old * 100 # 15.0
print(round(change))
Run output: 15
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0070534 | What is a 10% tip on a $117.66 bill?
The Python version:
```python
bill = 117.66
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 11.766
print(f"{tip:.2f}")
```
Run output: 11.77
Leave $11.77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "11.77", "printed": "11.77", "notation": null} |
nlprog_det-setting-0070535 | A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?
Python does the arithmetic:
days = 6
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 994
print(total)
# output: 994
The allow... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0070536 | A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?
```python
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
```
The program outputs: 16
Parking costs $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0070537 | <|start|><|system|>
Functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python", "description": "Evaluates Python and returns the p... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 354 | {"gold": "2026-11-16", "printed": "2026-11-16", "notation": null} |
nlprog_det-setting-0070538 | 179 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
22 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "22 each, 3 left over", "printed": "22 each, 3 left over", "notation": null} |
nlprog_det-setting-0070539 | The paralegal logged 12 hours at a rate of $410. How much is billed?
Programmatically:
```python
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
```
Execution result — 4920.00
That comes to $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0070540 | <|start|><|user|>
Convert 1 h 37 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
hours = 1
minutes = 37
total_minutes = hours * 60 + minutes # 97
print(total_minutes)
Printed = 97
The workshop lasted 97 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1 h 37 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": " hours = 1\n minutes = 37\n total_minutes = hours * 60 + minutes # 97\n print(total_minutes)\nPrinted = 97\n\nThe workshop lasted 97 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "97", "printed": "97", "notation": null} |
nlprog_det-setting-0070541 | How much sales tax is charged on a $45.07 purchase at 7%?
Programmatically:
```python
price = 45.07
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 3.1549000000000005
print(f"{tax:.2f}")
```
The printout reads: 3.15
$3.15 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3.15", "printed": "3.15", "notation": null} |
nlprog_det-setting-0070542 | Hana earns a 8% commission on $111,846 of sales. What is the commission?
Written as code:
sales = 111846
rate = 8 / 100 # 0.08
commission = sales * rate # 8947.68
print(f"{commission:.2f}")
The program prints: 8947.68
Hana earns $8,947.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8947.68", "printed": "8947.68", "notation": null} |
nlprog_det-setting-0070543 | How many 2-foot square tiles cover a 7 ft by 10 ft floor (round up)?
One way, in code:
```python
import math
length = 7
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 18
print(tiles)
```
Program output — 18
It takes 18 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0070544 | Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Here is the program.
```python
cost = 30000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 7000.0
print(f"{per_year:.2f}")
```
Printed: 7000.00
$7,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0070545 | <|start|><|user|>
If a 3-year limitations period starts on February 21, 2014, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2014, 2, 21) # datetime.date(2014, 2, 21)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 2, 21)
print(expires.is... | chat | [
{
"role": "user",
"content": "If a 3-year limitations period starts on February 21, 2014, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2014, 2, 21) # datetime.date(2014, 2, 21)\nyears = 3\nexpires = accrued.replace(year=accrued.ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2017-02-21", "printed": "2017-02-21", "notation": null} |
nlprog_det-setting-0070546 | Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Python does the arithmetic:
cost = 45000
salvage = 6000
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
It prints 3900.00.
$3,900.00 a yea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "3900.00", "printed": "3900.00", "notation": null} |
nlprog_det-setting-0070547 | <|start|><|user|>
Split $1,072 between Delia and Vera in the ratio 3 to 5. What is Delia's share?<|eot|>
<|assistant|>
```python
total = 1072
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 402
print(share_a)
```
Execution prints 402, as expected.
Delia gets $402.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,072 between Delia and Vera in the ratio 3 to 5. What is Delia's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1072\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 402\nprint(share_a)\n```\nExecution prints 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "402", "printed": "402", "notation": null} |
nlprog_det-setting-0070548 | Split $2,679 between Omar and Ana in the ratio 1 to 2. What is Omar's share?
Python makes this quick:
```python
total = 2679
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 893
print(share_a)
```
Run it and it prints: 893
Omar's share is $893. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "893", "printed": "893", "notation": null} |
nlprog_det-setting-0070549 | What commission does Bruna make on $6,523 in sales at 5%?
Python makes this quick:
```python
sales = 6523
rate = 5 / 100 # 0.05
commission = sales * rate # 326.15000000000003
print(f"{commission:.2f}")
```
When run, it prints 326.15, as expected.
The commission is $326.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "326.15", "printed": "326.15", "notation": null} |
nlprog_det-setting-0070550 | <|start|><|system|>
You have access to these functions:
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
146 volunteers are spl... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "36 each, 2 left over", "printed": "36 each, 2 left over", "notation": null} |
nlprog_det-setting-0070551 | <|start|><|user|>
107 copies of a 7-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 7
copies = 107
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 37.45
print(f"{cost:.2f}")
```
The script prints 37.45.
Printing costs $37.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "107 copies of a 7-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 7\ncopies = 107\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 37.45\nprint(f\"{cost:.2f}\")\n```\nThe script pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "37.45", "printed": "37.45", "notation": null} |
nlprog_det-setting-0070552 | A count moves from 500 to 300. By what percent did it change (use a minus sign for a drop)?
Python does the arithmetic:
```python
old = 500
new = 300
change = (new - old) / old * 100 # -40.0
print(round(change))
```
# out: -40
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0070553 | Fixed costs are $2,500. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even?
```python
import math
fixed = 2500
price = 20
variable = 12
units = math.ceil(fixed / (price - variable)) # 313
print(units)
```
Running this gives 313.
313 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0070554 | <|start|><|user|>
A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 61-page copy cost?<|eot|>
<|assistant|>
pages = 61
base = 15
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 35.5
print(f"{cost:.2f}")
The run gives 3... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 61-page copy cost?"
},
{
"role": "assistant",
"content": " pages = 61\n base = 15\n per_page = 0.5\n free_pages = 20\n cost = base + max(0, pages - free_pages) *... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "35.50", "printed": "35.50", "notation": null} |
nlprog_det-setting-0070555 | <|start|><|user|>
Attendance was 14 out of 20. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
Python prints 70.0.
70.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 14 out of 20. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 14\ntotal = 20\npercent = present / total * 100 # 70.0\nprint(round(percent, 1))\n```\nPython prints 70.0.\n\n70.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0070556 | How many meters are in 94.5 kilometers? That is 94,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "94500", "printed": "94500", "notation": null} |
nlprog_det-setting-0070557 | <|start|><|user|>
A 180-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 180
speed = 40
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
(Execution result: 270)
270 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 180-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 180\nspeed = 40\nminutes = distance / speed * 60 # 270.0\nprint(round(minutes))\n```\n(Execution result: 270)\n\n270 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0070558 | <|start|><|user|>
With 30% off, what does a $60 bicycle helmet cost?<|eot|>
<|assistant|>
The sale price is $42.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $60 bicycle helmet cost?"
},
{
"role": "assistant",
"content": "The sale price is $42.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0070560 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 36 months. How large is a payment?
Set it up in Python:
principal = 1200
annual_rate = 8 / 100
months = 36
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f}")
R... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "41.33", "printed": "41.33", "notation": null} |
nlprog_det-setting-0070561 | Counting the first and last day, how many days are there from April 24, 2021 through May 3, 2021?
We write it as a program:
```python
from datetime import date
first = date(2021, 4, 24) # datetime.date(2021, 4, 24)
last = date(2021, 5, 3) # datetime.date(2021, 5, 3)
days = (last - first).days + 1 # 10
print(days)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0070562 | <|start|><|user|>
Buying 4 tape rolls at $14 each, 1 cables at $29 each, 1 mugs at $23 each, 5 clipboards at $5 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
```python
items = [(4, 14), (1, 29), (1, 23), (5, 5)]
total = sum(q * p for q, p in items) # 133
paid = 150
change = paid - total ... | chat | [
{
"role": "user",
"content": "Buying 4 tape rolls at $14 each, 1 cables at $29 each, 1 mugs at $23 each, 5 clipboards at $5 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 14), (1, 29), (1, 23), (5, 5)]\ntotal = sum(q * p for ... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0070563 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A hall has 27 rows of 24 seats, and 3 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 27
per_row = 24
empty = 3
seated = rows * per_row - empty # 645
print(seated)
Output — 645
645 people are seated.<|eot... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A hall has 27 rows of 24 seats, and 3 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 27\n per_row = 24\n empty = 3\n seated = ro... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "645", "printed": "645", "notation": null} |
nlprog_det-setting-0070564 | <|start|><|user|>
Copies cost $5 plus $0.25 for each page beyond 20. How much for 25 pages?<|eot|>
<|assistant|>
```python
pages = 25
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 6.25
print(f"{cost:.2f}")
```
What it prints — 6.25
The copy costs $6.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 20. How much for 25 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 25\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 6.25\nprint(f\"{cost:.2f}\")\n`... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "6.25", "printed": "6.25", "notation": null} |
nlprog_det-setting-0070565 | Straight-line depreciation: cost $30,000, salvage $6,000, 5 years. How much per year?
A Python solution:
```python
cost = 30000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 4800.0
print(f"{per_year:.2f}")
```
Printed:
4800.00
Depreciation is $4,800.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0070566 | <|start|><|user|>
A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 24-page copy cost?<|eot|>
<|assistant|>
```python
pages = 24
base = 15
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 27.0
print(f"{cost:.2f}")
```
Out: 27.00
The copy costs ... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 24-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 24\nbase = 15\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0070567 | Someone works 32 hours at $23.03 per hour. What are the earnings?
```python
rate = 23.03
hours = 32
earnings = rate * hours # 736.96
print(f"{earnings:.2f}")
```
Output — 736.96
That earns $736.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "736.96", "printed": "736.96", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.