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-0048297 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "description": "Ex... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "181.35", "printed": "181.35", "notation": null} |
nlprog_det-setting-0048299 | 6 copies of a 47-page packet are printed at $0.15 per page. What is the cost?
Program:
pages = 47
copies = 6
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 42.3
print(f"{cost:.2f}")
(Execution result: 42.30)
The job costs $42.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "42.30", "printed": "42.30", "notation": null} |
nlprog_det-setting-0048300 | From 1991 to 2020, how many years is that?
```python
start_year = 1991
end_year = 2020
print(end_year - start_year)
```
# stdout: 29
That is 29 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0048303 | <|start|><|user|>
A storeroom has 741 folders. The office uses 19 a day. How many are left after 3 days?<|eot|>
<|assistant|>
```python
stock = 741
per_day = 19
days = 3
left = stock - per_day * days
print(left)
```
stdout:
684
684 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 741 folders. The office uses 19 a day. How many are left after 3 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 741\nper_day = 19\ndays = 3\nleft = stock - per_day * days\nprint(left)\n```\nstdout:\n684\n\n684 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "684", "printed": "684", "notation": null} |
nlprog_det-setting-0048305 | With 15 rows of 24 chairs and 9 empty chairs, how many chairs are taken?
A few lines of Python do it:
```python
rows = 15
per_row = 24
empty = 9
seated = rows * per_row - empty # 351
print(seated)
```
Output — 351
351 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "351", "printed": "351", "notation": null} |
nlprog_det-setting-0048306 | A 45-day notice period begins on May 26, 2020. On what date does it end?
Python:
from datetime import date, timedelta
start = date(2020, 5, 26) # datetime.date(2020, 5, 26)
end = start + timedelta(days=45) # datetime.date(2020, 7, 10)
print(end.isoformat())
When run, it prints: 2020-07-10
That date ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2020-07-10", "printed": "2020-07-10", "notation": null} |
nlprog_det-setting-0048307 | 1.5 hours of work at $180 an hour: what is the total charge?
Here is the program.
```python
hours = 1.5
rate = 180
bill = hours * rate # 270.0
print(f"{bill:.2f}")
```
# result: 270.00
The bill is $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0048308 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0048309 | A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 19-page copy cost?
Computation in Python:
```python
pages = 19
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.0
print(f"{cost:.2f}")
```
stdout: 5.00
The total is $5.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0048310 | <|start|><|user|>
With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
(Output: 16.7)
Profit ... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 15000\ncosts = 12500\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 16.666666666... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0048311 | <|start|><|user|>
The rules require 2/3 of 15 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 15
quorum = math.ceil(members * 2 / 3) # 10
print(quorum)
The program outputs: 10
That is 10 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 15 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 15\n quorum = math.ceil(members * 2 / 3) # 10\n print(quorum)\nThe program outputs: 10\n\nThat is 10 members.... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0048312 | <|start|><|user|>
How much sales tax is charged on a $295.71 purchase at 6%?<|eot|>
<|assistant|>
```python
price = 295.71
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 17.7426
print(f"{tax:.2f}")
```
When run, it prints: 17.74
$17.74 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $295.71 purchase at 6%?"
},
{
"role": "assistant",
"content": "```python\nprice = 295.71\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 17.7426\nprint(f\"{tax:.2f}\")\n```\nWhen run, it prints: 17.74\n\n$17.74 in tax."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "17.74", "printed": "17.74", "notation": null} |
nlprog_det-setting-0048313 | 8 boxes hold 25 sticky pads each. After 5 are handed out, how many are left?
Code:
```python
boxes = 8
per_box = 25
given_away = 5
left = boxes * per_box - given_away # 195
print(left)
```
Execution prints 195, as expected.
That leaves 195 sticky pads. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "195", "printed": "195", "notation": null} |
nlprog_det-setting-0048314 | Scale 450 g of rice from 2 servings to 4 servings.
Program:
grams = 450
serves = 2
needed_for = 4
scaled = grams * needed_for // serves # 900
print(scaled)
Running it prints: 900
900 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0048315 | 7 hours of work at $350 an hour: what is the total charge?
Let's compute it with Python.
```python
hours = 7
rate = 350
bill = hours * rate # 2450
print(f"{bill:.2f}")
```
Running this gives: 2450.00
The bill is $2,450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2450.00", "printed": "2450.00", "notation": null} |
nlprog_det-setting-0048316 | Count the days between August 18, 2018 and March 28, 2019.
Here's the code.
```python
from datetime import date
first = date(2018, 8, 18) # datetime.date(2018, 8, 18)
second = date(2019, 3, 28) # datetime.date(2019, 3, 28)
print((second - first).days)
```
It outputs: 222
It is 222 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "222", "printed": "222", "notation": null} |
nlprog_det-setting-0048317 | <|start|><|user|>
Oskar drove 474 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 474
rate = 0.65
reimbursement = miles * rate # 308.1
print(f"{reimbursement:.2f}")
```
(stdout: 308.10)
Oskar is owed $308.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Oskar drove 474 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 474\nrate = 0.65\nreimbursement = miles * rate # 308.1\nprint(f\"{reimbursement:.2f}\")\n```\n(stdout:... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "308.10", "printed": "308.10", "notation": null} |
nlprog_det-setting-0048318 | <|start|><|user|>
A settlement of $4,500 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 4500
parties = 6
share = settlement // parties # 750
print(share)
```
Python prints: 750
Each party receives $750.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $4,500 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 4500\nparties = 6\nshare = settlement // parties # 750\nprint(share)\n```\nPython prints: 750\n\nEach party rec... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0048319 | Femi lends $5,000 at 4% simple interest per year for 5 years. How much interest is earned?
Computation in Python:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
```
That prints 1000.00.
The interest is $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0048320 | <|start|><|user|>
A 224-page report must be reviewed in 8 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 224
days = 8
per_day = pages // days # 28
print(per_day)
```
Executing it gives 28.
That is 28 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 224-page report must be reviewed in 8 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 224\ndays = 8\nper_day = pages // days # 28\nprint(per_day)\n```\nExecuting it gives 28.\n\nThat is 28 pages per day."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0048321 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 247 | {"gold": "2018-02-09", "printed": "2018-02-09", "notation": null} |
nlprog_det-setting-0048322 | Nadia has 11 documents to file, and each filing costs $90. How much are the filing fees in total?
A Python solution:
```python
fee = 90
filings = 11
total = fee * filings # 990
print(total)
```
(Execution result: 990)
The filings cost $990 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "990", "printed": "990", "notation": null} |
nlprog_det-setting-0048323 | Pack A has 10 items for $12.93. Pack B has 30 items for $11.43. Which has the lower price per item?
As a program:
```python
pack_a = 12.93 / 10 # 1.293
pack_b = 11.43 / 30 # 0.381
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# console output: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048325 | At an exchange rate of 1.35 EUR per USD, how many EUR is 6,709 USD?
Code:
```python
amount = 6709
rate = 1.35
converted = amount * rate # 9057.150000000001
print(f"{converted:.2f}")
```
Output of the run: 9057.15
That is 9,057.15 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "9057.15", "printed": "9057.15", "notation": null} |
nlprog_det-setting-0048326 | Nilufar and Reza share $2,961 in the ratio 2:5. How much does Nilufar get?
We can compute it in Python.
```python
total = 2961
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 846
print(share_a)
```
stdout: 846
Nilufar's share is $846. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "846", "printed": "846", "notation": null} |
nlprog_det-setting-0048327 | Pack A has 6 items for $3.87. Pack B has 30 items for $30.53. Which has the lower price per item?
Computing it:
```python
pack_a = 3.87 / 6 # 0.645
pack_b = 30.53 / 30 # 1.0176666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Run result: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0048328 | <|start|><|system|>
You have access to these functions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calculator", "description": "A Python interpreter. Returns... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calc... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0048329 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 960.0
print(f"{prorated:.2f}")
```
(Run result: 960.00)
The ten... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 16\nprorated = rent * days_occupied / days_in_month # 960.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0048330 | A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
In code:
```python
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1080.0
payment = (principal + interest) /... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "130.00", "printed": "130.00", "notation": null} |
nlprog_det-setting-0048331 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"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_uni... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "742.52", "printed": "742.52", "notation": null} |
nlprog_det-setting-0048332 | Sales went from 2,500 to 3,000. What is the percent change?
Computing it:
```python
old = 2500
new = 3000
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Run output — 20
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0048333 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Monthly: $25. Annual: $264. ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0048335 | <|start|><|system|>
You may call the tools below.
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "get_weather", "description": "Get the wea... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"e... | nlprog_det | setting | original | null | deterministic | [] | [] | 392 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0048336 | To read 170 pages in 5 days, how many pages per day are needed? 34 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0048337 | Someone born June 6, 1987 turns how old by August 8, 2025? Give the age in whole years.
The computation:
```python
from datetime import date
born = date(1987, 6, 6) # datetime.date(1987, 6, 6)
on = date(2025, 8, 8) # datetime.date(2025, 8, 8)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0048338 | Diego earns a 3% commission on $115,869 of sales. What is the commission?
Let the code do the arithmetic:
sales = 115869
rate = 3 / 100 # 0.03
commission = sales * rate # 3476.0699999999997
print(f"{commission:.2f}")
Executing it gives 3476.07, as expected.
Diego earns $3,476.07. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "3476.07", "printed": "3476.07", "notation": null} |
nlprog_det-setting-0048339 | How much sales tax is charged on a $693.76 purchase at 7%?
Program:
price = 693.76
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 48.5632
print(f"{tax:.2f}")
The program outputs: 48.56
$48.56 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "48.56", "printed": "48.56", "notation": null} |
nlprog_det-setting-0048340 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
The landlord deducts $200, $150 and $75 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [200, 150, 75]
refund = deposit - sum(deductions) # 1575
print(refund)
```
This prints 1575.
The ... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "The landlord deducts $200, $150 and $75 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [200, 150, 75... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1575", "printed": "1575", "notation": null} |
nlprog_det-setting-0048342 | The building opened in 2007. How many years had passed by 2017?
In Python:
```python
start_year = 2007
end_year = 2017
print(end_year - start_year)
```
The interpreter prints: 10
10 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0048343 | What simple interest does $12,000 earn at 6% a year over 5 years?
As a program:
```python
principal = 12000
rate = 6 / 100 # 0.06
years = 5
interest = principal * rate * years # 3600.0
print(f"{interest:.2f}")
```
The script prints 3600.00.
The interest is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0048344 | A 150-mile drive at a steady 40 mph takes how many minutes?
Python does the arithmetic:
```python
distance = 150
speed = 40
minutes = distance / speed * 60 # 225.0
print(round(minutes))
```
The program prints 225, as expected.
The trip takes 225 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0048345 | <|start|><|user|>
What is 40 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32 # 104.0
print(round(fahrenheit))
```
Executed, it shows 104.
That is 104 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 40 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nExecuted, it shows 104.\n\nThat is 104 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0048346 | <|start|><|user|>
If a 75-minute class begins at 11:10 AM, what time does it finish?<|eot|>
<|assistant|>
The class finishes at 12:25 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 75-minute class begins at 11:10 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "The class finishes at 12:25 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "12:25 PM", "printed": "12:25 PM", "notation": null} |
nlprog_det-setting-0048347 | <|start|><|user|>
Starting with 333 sticky pads and using 7 per day, how many remain after 17 days?<|eot|>
<|assistant|>
```python
stock = 333
per_day = 7
days = 17
left = stock - per_day * days # 214
print(left)
```
Printed — 214
214 sticky pads are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 333 sticky pads and using 7 per day, how many remain after 17 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 333\nper_day = 7\ndays = 17\nleft = stock - per_day * days # 214\nprint(left)\n```\nPrinted — 214\n\n214 sticky pads are left... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0048348 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years?
Set it up in Python:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
```
Execution result: 1276.28
It is worth $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0048349 | <|start|><|user|>
Arjun was born on July 19, 1951. How old is Arjun on September 12, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1951, 7, 19) # datetime.date(1951, 7, 19)
on = date(2029, 9, 12) # datetime.date(2029, 9, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, b... | chat | [
{
"role": "user",
"content": "Arjun was born on July 19, 1951. How old is Arjun on September 12, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1951, 7, 19) # datetime.date(1951, 7, 19)\non = date(2029, 9, 12) # datetime.date(2029, 9, 12)\nage = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0048350 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Grace has 17 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 405
filings = 17
total = fee * filings # 6885
print(total)
```
Result = 6885
$6,885 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Grace has 17 documents to file, and each filing costs $405. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 17\ntotal = fee * f... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "6885", "printed": "6885", "notation": null} |
nlprog_det-setting-0048351 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
What is -10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
Printed:
14
It equals 14 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "What is -10 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = -10\n fahrenheit = celsius * 9 / 5 + 32 # 14.0\n print(round(fahrenheit))\nPrinted:\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0048352 | <|start|><|user|>
A settlement of $18,000 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 5
share = settlement // parties
print(share)
```
Run output: 3600
Each party receives $3,600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $18,000 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 5\nshare = settlement // parties\nprint(share)\n```\nRun output: 3600\n\nEach party receives $... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "3600", "printed": "3600", "notation": null} |
nlprog_det-setting-0048353 | A $3,600 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
```python
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + interest) / months # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "315.00", "printed": "315.00", "notation": null} |
nlprog_det-setting-0048354 | <|start|><|user|>
7 boxes hold 12 envelopes each. After 13 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 12
given_away = 13
left = boxes * per_box - given_away # 71
print(left)
```
Out — 71
That leaves 71 envelopes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 12 envelopes each. After 13 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 12\ngiven_away = 13\nleft = boxes * per_box - given_away # 71\nprint(left)\n```\nOut — 71\n\nThat leaves 71 envelopes.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0048355 | Prorate $2,400 of monthly rent for 11 days of a 31-day month.
Program:
```python
rent = 2400
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 851.6129032258065
print(f"{prorated:.2f}")
```
(Printed: 851.61)
The tenant owes $851.61. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "851.61", "printed": "851.61", "notation": null} |
nlprog_det-setting-0048356 | $1,000 is invested at 3% compounded yearly. What is it worth after 2 years?
It is worth $1,060.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1060.90", "printed": "1060.90", "notation": null} |
nlprog_det-setting-0048357 | A shift runs from 9:58 AM to 4:55 PM. How long is it in minutes?
We can compute it in Python.
```python
start = 9 * 60 + 58 # 598
end = 16 * 60 + 55 # 1015
print(end - start)
```
Result = 417
It is 417 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0048358 | <|start|><|user|>
The landlord deducts $75 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [75]
refund = deposit - sum(deductions) # 925
print(refund)
```
Run result: 925
$925 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $75 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [75]\nrefund = deposit - sum(deductions) # 925\nprint(refund)\n```\nRun result: 925\n\n$925 is returned."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "925", "printed": "925", "notation": null} |
nlprog_det-setting-0048359 | If a 5-year limitations period starts on April 9, 2024, when does it end?
```python
from datetime import date
accrued = date(2024, 4, 9) # datetime.date(2024, 4, 9)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 4, 9)
print(expires.isoformat())
```
Execution result — 2029-04-09
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2029-04-09", "printed": "2029-04-09", "notation": null} |
nlprog_det-setting-0048360 | <|start|><|user|>
The landlord deducts $120 and $45 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
deposit = 2000
deductions = [120, 45]
refund = deposit - sum(deductions) # 1835
print(refund)
The program prints 1835.
The refund is $1,835.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $120 and $45 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": " deposit = 2000\n deductions = [120, 45]\n refund = deposit - sum(deductions) # 1835\n print(refund)\nThe program prints 1835... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1835", "printed": "1835", "notation": null} |
nlprog_det-setting-0048361 | Starting with 1784 cables and using 23 per day, how many remain after 4 days?
The computation:
```python
stock = 1784
per_day = 23
days = 4
left = stock - per_day * days # 1692
print(left)
```
(Program output: 1692)
1692 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1692", "printed": "1692", "notation": null} |
nlprog_det-setting-0048362 | <|start|><|user|>
Filing fees are $90 per document. What do 16 filings cost?<|eot|>
<|assistant|>
```python
fee = 90
filings = 16
total = fee * filings # 1440
print(total)
```
Run result — 1440
The total fee is $1,440.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $90 per document. What do 16 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 90\nfilings = 16\ntotal = fee * filings # 1440\nprint(total)\n```\nRun result — 1440\n\nThe total fee is $1,440."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0048363 | <|start|><|user|>
How many minutes pass from 10:54 AM to 5:19 PM on the same day?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 54 # 654
end = 17 * 60 + 19 # 1039
print(end - start)
```
The run gives: 385
385 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:54 AM to 5:19 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 54 # 654\nend = 17 * 60 + 19 # 1039\nprint(end - start)\n```\nThe run gives: 385\n\n385 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "385", "printed": "385", "notation": null} |
nlprog_det-setting-0048364 | Which is cheaper per unit: 12 for $13.64 (A) or 20 for $15.45 (B)?
Python, step by step:
```python
pack_a = 13.64 / 12 # 1.1366666666666667
pack_b = 15.45 / 20 # 0.7725
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It prints B.
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048365 | <|start|><|system|>
Tools you may use:
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Pay is $25.00/hour, with ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "1450.00", "printed": "1450.00", "notation": null} |
nlprog_det-setting-0048366 | At 1.5% a month (simple), what interest builds on $7,500 over 2 months?
In Python:
```python
balance = 7500
monthly_rate = 1.5 / 100
months = 2
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
When run, it prints 225.00, as expected.
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0048367 | From 2014 to 2022, how many years is that?
In code:
```python
start_year = 2014
end_year = 2022
print(end_year - start_year)
```
Printed result — 8
8 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0048368 | <|start|><|user|>
A party has 28 days to respond to a motion served on February 26, 2028, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2028, 2, 26) # datetime.date(2028, 2, 26)
response_days = 28
mail_days = 3... | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on February 26, 2028, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 2, 26) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2028-03-28", "printed": "2028-03-28", "notation": null} |
nlprog_det-setting-0048369 | <|start|><|system|>
Tools (call with JSON):
{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
10 boxes hold 25 binders e... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "238", "printed": "238", "notation": null} |
nlprog_det-setting-0048370 | 3 books come back 9 days late, at $0.20 a day each. What is the fine?
Here is a short program for it.
per_day = 0.2
days_late = 9
books = 3
fine = per_day * days_late * books # 5.4
print(f"{fine:.2f}")
Executed, it shows: 5.40
The fine is $5.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5.40", "printed": "5.40", "notation": null} |
nlprog_det-setting-0048372 | 1 books come back 21 days late, at $0.25 a day each. What is the fine?
A Python solution:
```python
per_day = 0.25
days_late = 21
books = 1
fine = per_day * days_late * books # 5.25
print(f"{fine:.2f}")
```
The program outputs 5.25.
The fine is $5.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5.25", "printed": "5.25", "notation": null} |
nlprog_det-setting-0048373 | A hall has 16 rows of 13 seats, and 1 seats are empty. How many people are seated?
Python:
```python
rows = 16
per_row = 13
empty = 1
seated = rows * per_row - empty # 207
print(seated)
```
It outputs 207.
207 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "207", "printed": "207", "notation": null} |
nlprog_det-setting-0048374 | A 60-day notice period begins on April 1, 2018. On what date does it end? The period ends on May 31, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "2018-05-31", "printed": "2018-05-31", "notation": null} |
nlprog_det-setting-0048375 | <|start|><|user|>
Convert 4,893 GBP to USD at 1 GBP = 1.35 USD.<|eot|>
<|assistant|>
```python
amount = 4893
rate = 1.35
converted = amount * rate # 6605.55
print(f"{converted:.2f}")
```
Execution prints 6605.55.
That is 6,605.55 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4,893 GBP to USD at 1 GBP = 1.35 USD."
},
{
"role": "assistant",
"content": "```python\namount = 4893\nrate = 1.35\nconverted = amount * rate # 6605.55\nprint(f\"{converted:.2f}\")\n```\nExecution prints 6605.55.\n\nThat is 6,605.55 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6605.55", "printed": "6605.55", "notation": null} |
nlprog_det-setting-0048376 | <|start|><|system|>
You may call the tools below.
[{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Attendance wa... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "52.5", "printed": "52.5", "notation": null} |
nlprog_det-setting-0048377 | Fines run at $50 per day up to a maximum of $2,500. How much after 56 days?
Python:
per_day = 50
days = 56
cap = 2500
fine = min(per_day * days, cap)
print(fine)
The script prints: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0048378 | A 250-mile drive at a steady 50 mph takes how many minutes?
Python version:
```python
distance = 250
speed = 50
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
(Run result: 300)
The trip takes 300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0048379 | From 2017 to 2040, how many years is that? 23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 16 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0048380 | <|start|><|system|>
Tools (call with JSON):
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "define_word", "description": "Retur... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 270 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0048381 | <|start|><|user|>
A shift runs from 8:07 AM to 2:46 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 7 # 487
end = 14 * 60 + 46 # 886
print(end - start)
```
This prints 399.
It is 399 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 8:07 AM to 2:46 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 7 # 487\nend = 14 * 60 + 46 # 886\nprint(end - start)\n```\nThis prints 399.\n\nIt is 399 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "399", "printed": "399", "notation": null} |
nlprog_det-setting-0048382 | 162 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
As Python:
```python
total = 162
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Output:
32 each, 2 left over
The answer: 32 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "32 each, 2 left over", "printed": "32 each, 2 left over", "notation": null} |
nlprog_det-setting-0048383 | <|start|><|system|>
Tools you may use:
[{"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": "m... | chat | [
{
"role": "system",
"content": "Tools you may use:\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\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 403 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0048384 | <|start|><|user|>
Copies cost $15 plus $0.10 for each page beyond 10. How much for 14 pages?<|eot|>
<|assistant|>
```python
pages = 14
base = 15
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
This prints 15.40, as expected.
The copy costs $15.40.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.10 for each page beyond 10. How much for 14 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 14\nbase = 15\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page\nprint(f\"{cost:.2f}\")\n```\nThi... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "15.40", "printed": "15.40", "notation": null} |
nlprog_det-setting-0048385 | <|start|><|user|>
How many units at $15 each (variable cost $9) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable))
print(units)
```
# output: 1500
Break-even is 1500 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $9) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\n# output: 1500\n\nBrea... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0048386 | 5 claimants share a $18,000 settlement equally. What is each share?
In Python:
settlement = 18000
parties = 5
share = settlement // parties # 3600
print(share)
Run result — 3600
Each party receives $3,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "3600", "printed": "3600", "notation": null} |
nlprog_det-setting-0048387 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Each storage box holds 25 files. How many boxes are needed for 733 files?<|eot|>
<|assistant|>
import math
files = 733
per_box = 25
boxes = math.ceil(files / per_box) # 30
print(boxes)
Run it and it prints: 30
It takes 30 ... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 733 files?"
},
{
"role": "assistant",
"content": " import math\n files = 733\n per_box = 25\n boxes = m... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0048388 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Monthly rent is $900. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
The prorated rent is $720.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "The prorated rent is $720.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0048389 | <|start|><|user|>
Attendance was 140 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 140
total = 200
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
The program prints 70.0, as expected.
70.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 140 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 140\ntotal = 200\npercent = present / total * 100 # 70.0\nprint(round(percent, 1))\n```\nThe program prints 70.0, as expected.\n\n70.0% attended."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0048390 | A 18 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Here's the code.
import math
length = 18
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 126
print(tiles)
The code prints: 126
It takes 126 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0048391 | <|start|><|system|>
You have access to these functions:
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "business_days", "des... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 365 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0048392 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
Out:
360.00
The tenant owes $360.00.<|e... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0048393 | <|start|><|user|>
How many whole days and leftover hours are in 197 hours?<|eot|>
<|assistant|>
That is 8 days and 5 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 197 hours?"
},
{
"role": "assistant",
"content": "That is 8 days and 5 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "8 days and 5 hours", "printed": "8 days and 5 hours", "notation": null} |
nlprog_det-setting-0048395 | Convert 94.6 km to meters.
The program:
```python
km = 94.6
meters = km * 1000 # 94600.0
print(round(meters))
```
(Printed: 94600)
94,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "94600", "printed": "94600", "notation": null} |
nlprog_det-setting-0048396 | A claim accrued on October 21, 2013. The limitations period is 6 years. On what date does it expire?
Python:
```python
from datetime import date
accrued = date(2013, 10, 21) # datetime.date(2013, 10, 21)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 10, 21)
print(expires.isofor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2019-10-21", "printed": "2019-10-21", "notation": null} |
nlprog_det-setting-0048397 | <|start|><|user|>
A penalty of $100 a day accrues, capped at $1,000. What is owed after 44 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 44
cap = 1000
fine = min(per_day * days, cap)
print(fine)
```
When run, it prints: 1000
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 44 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 44\ncap = 1000\nfine = min(per_day * days, cap)\nprint(fine)\n```\nWhen run, it prints: 1000\n\n$1,000 is owed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0048398 | <|start|><|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 52
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 360.0
pay = regular + overtime # 1160.0
print(f"{pay:.2f}")
```
Executed, it show... | chat | [
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 52\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 360.0\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1160.00", "printed": "1160.00", "notation": null} |
nlprog_det-setting-0048399 | 8 claimants share a $36,000 settlement equally. What is each share?
As a program:
```python
settlement = 36000
parties = 8
share = settlement // parties # 4500
print(share)
```
(Result: 4500)
Each share is $4,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0048400 | <|start|><|user|>
2 friends split a $96 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 56.64
print(f"{each:.2f}")
```
(Printed result: 56.64)
Each person pays $56.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 friends split a $96 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 2\neach = bill * (1 + tip_rate) / people # 56.64\nprint(f\"{each:.2f}\")\n```\n(Printed resu... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "56.64", "printed": "56.64", "notation": null} |
nlprog_det-setting-0048401 | A 16 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Translated to Python:
```python
import math
length = 16
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
(Printed: 240)
240 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0048402 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A $1,200 loan carries 5% simple annual inte... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0048403 | A recipe for 2 people uses 300 grams of oats. How many grams are needed for 8 people?
```python
grams = 300
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 1200
print(scaled)
```
(Program output: 1200)
1200 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0048404 | Eamon earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?
As a program:
rate = 22.4
hours = 43
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 100.79999999999998
pay = regular + overtime # 996.8
print(f"{pay:.2f}")
stdout = 996.8... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "996.80", "printed": "996.80", "notation": null} |
nlprog_det-setting-0048405 | <|start|><|user|>
What simple interest does $20,000 earn at 3% a year over 5 years?<|eot|>
<|assistant|>
It earns $3,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $20,000 earn at 3% a year over 5 years?"
},
{
"role": "assistant",
"content": "It earns $3,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.