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-0055922 | Fines run at $100 per day up to a maximum of $5,000. How much after 52 days?
Computation in Python:
```python
per_day = 100
days = 52
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
Running it prints 5000, as expected.
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0055923 | An attorney bills 2.5 hours at $250 per hour. What is the bill? That comes to $625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0055924 | <|start|><|system|>
You may call the tools below.
[{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How many meters ar... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "30000", "printed": "30000", "notation": null} |
nlprog_det-setting-0055925 | <|start|><|user|>
Convert 30 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Console output — 86
It equals 86 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 30 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nConsole output — 86\n\nIt equals 86 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0055927 | A trial runs from February 16, 2022 to March 1, 2022, counting both days. How many calendar days is that?
Coded up:
```python
from datetime import date
first = date(2022, 2, 16) # datetime.date(2022, 2, 16)
last = date(2022, 3, 1) # datetime.date(2022, 3, 1)
days = (last - first).days + 1 # 14
print(days)
```
Outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0055928 | Kaito was born on March 18, 1992. How old is Kaito on July 15, 2028?
```python
from datetime import date
born = date(1992, 3, 18) # datetime.date(1992, 3, 18)
on = date(2028, 7, 15) # datetime.date(2028, 7, 15)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 36
print(age)
```
# execution... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0055929 | <|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": "interpreter", "description": "Executes Python code and retur... | 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\"]}}\n{\"name\": \"inter... | nlprog_det | setting | original | null | deterministic | [] | [] | 361 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0055930 | A clerk's office charges $350 for each filing. Kemal submits 16 filings. What is the total fee?
Python makes this quick:
```python
fee = 350
filings = 16
total = fee * filings # 5600
print(total)
```
# stdout: 5600
The total fee is $5,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5600", "printed": "5600", "notation": null} |
nlprog_det-setting-0055931 | <|start|><|system|>
You have access to these functions:
[{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A penalty of $2... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0055933 | Xavier and Reza share $2,124 in the ratio 1:2. How much does Xavier get?
The Python version:
total = 2124
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
Result:
708
Xavier's share is $708. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "708", "printed": "708", "notation": null} |
nlprog_det-setting-0055934 | At an exchange rate of 0.74 USD per GBP, how many USD is 5,919 GBP?
Here's the code.
```python
amount = 5919
rate = 0.74
converted = amount * rate # 4380.06
print(f"{converted:.2f}")
```
# printed: 4380.06
That is 4,380.06 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "4380.06", "printed": "4380.06", "notation": null} |
nlprog_det-setting-0055935 | <|start|><|user|>
2 hours of work at $150 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 2
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
It prints 300.00, as expected.
That comes to $300.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 hours of work at $150 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nIt prints 300.00, as expected.\n\nThat comes to $300.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0055936 | <|start|><|user|>
$5,000 is invested at 4% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 6083.264512000001
print(f"{value:.2f}")
```
Result = 6083.26
It is worth $6,083.26.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 4% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 5\nvalue = principal * (1 + rate) ** years # 6083.264512000001\nprint(f\"{value:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6083.26", "printed": "6083.26", "notation": null} |
nlprog_det-setting-0055937 | A library charges $0.10 per book per day late. What is the fine for 2 books that are 5 days late?
The Python version:
```python
per_day = 0.1
days_late = 5
books = 2
fine = per_day * days_late * books # 1.0
print(f"{fine:.2f}")
```
Execution prints: 1.00
The fine is $1.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1.00", "printed": "1.00", "notation": null} |
nlprog_det-setting-0055938 | 4 books come back 7 days late, at $0.25 a day each. What is the fine?
We can compute it in Python.
```python
per_day = 0.25
days_late = 7
books = 4
fine = per_day * days_late * books # 7.0
print(f"{fine:.2f}")
```
Console output — 7.00
The fine is $7.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "7.00", "printed": "7.00", "notation": null} |
nlprog_det-setting-0055939 | <|start|><|user|>
From 1994 to 2026, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1994
end_year = 2026
print(end_year - start_year)
```
Out = 32
That is 32 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1994 to 2026, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1994\nend_year = 2026\nprint(end_year - start_year)\n```\nOut = 32\n\nThat is 32 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0055940 | On which weekday does July 20, 1994 fall?
As Python:
from datetime import date
hearing = date(1994, 7, 20) # datetime.date(1994, 7, 20)
print(hearing.strftime("%A"))
Result — Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0055941 | At 30 miles per hour, how many minutes does a 120-mile trip take?
Python does the arithmetic:
```python
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Python prints 240.
The trip takes 240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0055942 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Yusuf drove 305 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 305
rate = 0.58
reimbursement = miles * rate # 176.89999999999998
print(f"{reimbursement:.2f}")
```
The program outputs 176.90.... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Yusuf drove 305 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 305\nrate = 0.58\nreimbursement = miles * r... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "176.90", "printed": "176.90", "notation": null} |
nlprog_det-setting-0055943 | Marek earns a 2% commission on $84,465 of sales. What is the commission?
Set it up in Python:
```python
sales = 84465
rate = 2 / 100 # 0.02
commission = sales * rate # 1689.3
print(f"{commission:.2f}")
```
The interpreter prints 1689.30.
The commission is $1,689.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1689.30", "printed": "1689.30", "notation": null} |
nlprog_det-setting-0055944 | Find the mean of these test scores: 72, 55, 59, 58 and 86.
scores = [72, 55, 59, 58, 86]
average = sum(scores) // len(scores)
print(average)
The run gives: 66
The mean is 66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0055945 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Meals are $59 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 59
lodging_rate = 140
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Meals are $59 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 59\nlodging_rate... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1452", "printed": "1452", "notation": null} |
nlprog_det-setting-0055946 | <|start|><|system|>
You can call tools. Available tools:
{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A clerk's office c... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0055947 | Attendance was 12 out of 25. Express it as a percent.
The computation:
```python
present = 12
total = 25
percent = present / total * 100 # 48.0
print(round(percent, 1))
```
# printed: 48.0
48.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "48.0", "printed": "48.0", "notation": null} |
nlprog_det-setting-0055948 | <|start|><|user|>
A clerk's office charges $75 for each filing. Lucia submits 7 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 75
filings = 7
total = fee * filings # 525
print(total)
```
Shell output: 525
$525 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $75 for each filing. Lucia submits 7 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 75\nfilings = 7\ntotal = fee * filings # 525\nprint(total)\n```\nShell output: 525\n\n$525 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "525", "printed": "525", "notation": null} |
nlprog_det-setting-0055949 | <|start|><|user|>
How many meters are in 84.2 kilometers?<|eot|>
<|assistant|>
84,200 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 84.2 kilometers?"
},
{
"role": "assistant",
"content": "84,200 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "84200", "printed": "84200", "notation": null} |
nlprog_det-setting-0055950 | Attendance was 10 out of 20. Express it as a percent.
In Python:
```python
present = 10
total = 20
percent = present / total * 100 # 50.0
print(round(percent, 1))
```
Result:
50.0
50.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0055951 | <|start|><|user|>
A meal costs $120.87. How much is a 18% tip?<|eot|>
<|assistant|>
```python
bill = 120.87
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 21.7566
print(f"{tip:.2f}")
```
Execution result — 21.76
The tip is $21.76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $120.87. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 120.87\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 21.7566\nprint(f\"{tip:.2f}\")\n```\nExecution result — 21.76\n\nThe tip is $21.76."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "21.76", "printed": "21.76", "notation": null} |
nlprog_det-setting-0055952 | Straight-line depreciation: cost $18,000, salvage $0, 6 years. How much per year?
Depreciation is $3,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0055953 | After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0055954 | A quorum is 2/3 of the 21 members, rounded up. How many members make a quorum?
As Python:
```python
import math
members = 21
quorum = math.ceil(members * 2 / 3) # 14
print(quorum)
```
Executing it gives: 14
That is 14 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0055955 | Equal monthly payments repay $2,400 plus 8% simple yearly interest over 24 months. How large is a payment?
In Python:
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 384.0
payment = (principal + interest) / months # 116.0
print(f"{payment:.2f}")... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "116.00", "printed": "116.00", "notation": null} |
nlprog_det-setting-0055957 | A pack of 6 pens sells for $30. What does each cost?
The Python version:
```python
total = 30
count = 6
per_item = total // count # 5
print(per_item)
```
Result = 5
Each one costs $5. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055958 | Split $5,136 between Lena and Leon in the ratio 3 to 5. What is Lena's share?
The program:
total = 5136
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1926
print(share_a)
The run gives: 1926
Lena gets $1,926. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1926", "printed": "1926", "notation": null} |
nlprog_det-setting-0055959 | <|start|><|user|>
At a 9% tax rate, what is the tax on $146.14?<|eot|>
<|assistant|>
price = 146.14
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 13.152599999999998
print(f"{tax:.2f}")
The script prints: 13.15
The tax is $13.15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $146.14?"
},
{
"role": "assistant",
"content": " price = 146.14\n tax_rate = 9 / 100 # 0.09\n tax = price * tax_rate # 13.152599999999998\n print(f\"{tax:.2f}\")\nThe script prints: 13.15\n\nThe tax is $13.15."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "13.15", "printed": "13.15", "notation": null} |
nlprog_det-setting-0055960 | To read 950 pages in 19 days, how many pages per day are needed?
As a program:
```python
pages = 950
days = 19
per_day = pages // days # 50
print(per_day)
```
Execution result — 50
50 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0055961 | How much sales tax is charged on a $781.17 purchase at 5%? $39.06 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "39.06", "printed": "39.06", "notation": null} |
nlprog_det-setting-0055962 | Convert 8,771 GBP to USD at 1 GBP = 1.27 USD.
Let's compute it with Python.
amount = 8771
rate = 1.27
converted = amount * rate # 11139.17
print(f"{converted:.2f}")
Output of the run: 11139.17
That is 11,139.17 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "11139.17", "printed": "11139.17", "notation": null} |
nlprog_det-setting-0055963 | A 24 lb package ships at $5 base plus $1.50/lb. What is the charge?
Shipping costs $41.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "41.00", "printed": "41.00", "notation": null} |
nlprog_det-setting-0055964 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A hall has 12 rows of 17 seats, and 17 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 12
per_row = 17
empty = 17
seated = rows * per_row - empty # 187
print(seated)
The program outputs: 187
187 sea... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A hall has 12 rows of 17 seats, and 17 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 12\n per_row = 17\n empty = 17\n sea... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0055965 | A meal costs $155.39. How much is a 22% tip?
The computation:
```python
bill = 155.39
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 34.1858
print(f"{tip:.2f}")
```
Result:
34.19
The tip is $34.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "34.19", "printed": "34.19", "notation": null} |
nlprog_det-setting-0055966 | A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?
One way, in code:
```python
grant = 30000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
Result:
2000.00
Each installment is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0055967 | <|start|><|system|>
You can call tools. Available tools:
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "defi... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "331", "printed": "331", "notation": null} |
nlprog_det-setting-0055968 | <|start|><|user|>
4 claimants share a $15,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 4
share = settlement // parties # 3750
print(share)
```
Run output — 3750
Each party receives $3,750.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 claimants share a $15,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 4\nshare = settlement // parties # 3750\nprint(share)\n```\nRun output — 3750\n\nEach party receives $3,750."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0055969 | <|start|><|user|>
A hall has 12 rows of 21 seats, and 23 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 12
per_row = 21
empty = 23
seated = rows * per_row - empty # 229
print(seated)
```
Execution prints: 229
229 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 12 rows of 21 seats, and 23 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 12\nper_row = 21\nempty = 23\nseated = rows * per_row - empty # 229\nprint(seated)\n```\nExecution prints: 229\n\n229 seats ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "229", "printed": "229", "notation": null} |
nlprog_det-setting-0055970 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 44 days?
Code:
per_day = 25
days = 44
cap = 5000
fine = min(per_day * days, cap) # 1100
print(fine)
(Printed: 1100)
$1,100 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1100", "printed": "1100", "notation": null} |
nlprog_det-setting-0055971 | <|start|><|user|>
A 8-day trip pays $79 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?<|eot|>
<|assistant|>
That comes to $1,612.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 8-day trip pays $79 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "That comes to $1,612."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1612", "printed": "1612", "notation": null} |
nlprog_det-setting-0055972 | 7 bike rides at 250 calories each burn how many calories in total?
Computing it:
```python
per_session = 250
sessions = 7
total = per_session * sessions # 1750
print(total)
```
Output of the run — 1750
1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0055973 | Split $948 between Oskar and Nilufar in the ratio 1 to 2. What is Oskar's share?
Python version:
total = 948
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 316
print(share_a)
Printed result — 316
Oskar gets $316. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "316", "printed": "316", "notation": null} |
nlprog_det-setting-0055974 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A 13 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 13
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 117
print(tiles)
# ou... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A 13 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 13\n width = 9\n tile... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0055975 | Someone born September 17, 1981 turns how old by August 21, 2022? Give the age in whole years.
Code:
```python
from datetime import date
born = date(1981, 9, 17) # datetime.date(1981, 9, 17)
on = date(2022, 8, 21) # datetime.date(2022, 8, 21)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0055976 | <|start|><|user|>
A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 10 people?<|eot|>
<|assistant|>
```python
grams = 300
serves = 6
needed_for = 10
scaled = grams * needed_for // serves # 500
print(scaled)
```
Execution prints: 500
500 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 6\nneeded_for = 10\nscaled = grams * needed_for // serves # 500\nprint(scaled)\n```\nExecution prints: 50... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0055978 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $1,000. What is owed after 38 days?<|eot|>
<|assistant|>
per_day = 50
days = 38
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
Interpreter output: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 38 days?"
},
{
"role": "assistant",
"content": " per_day = 50\n days = 38\n cap = 1000\n fine = min(per_day * days, cap) # 1000\n print(fine)\nInterpreter output: 1000\n\nThe fine i... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0055979 | If a 4-year limitations period starts on January 24, 2022, when does it end?
Computing it:
```python
from datetime import date
accrued = date(2022, 1, 24) # datetime.date(2022, 1, 24)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 1, 24)
print(expires.isoformat())
```
(Printed r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2026-01-24", "printed": "2026-01-24", "notation": null} |
nlprog_det-setting-0055981 | A meal costs $125.64. How much is a 22% tip?
Computation in Python:
```python
bill = 125.64
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 27.6408
print(f"{tip:.2f}")
```
On running, it outputs 27.64.
The tip is $27.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "27.64", "printed": "27.64", "notation": null} |
nlprog_det-setting-0055982 | 5 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 43.2
print(f"{each:.2f}")
```
(Result: 43.20)
Each person pays $43.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "43.20", "printed": "43.20", "notation": null} |
nlprog_det-setting-0055983 | <|start|><|user|>
Kaito and Sara share $1,124 in the ratio 1:3. How much does Kaito get?<|eot|>
<|assistant|>
```python
total = 1124
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 281
print(share_a)
```
(Printed: 281)
Kaito's share is $281.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kaito and Sara share $1,124 in the ratio 1:3. How much does Kaito get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1124\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 281\nprint(share_a)\n```\n(Printed: 281)\n\nKaito's s... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "281", "printed": "281", "notation": null} |
nlprog_det-setting-0055985 | Meals are $74 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights?
Set it up in Python:
```python
days = 6
meal_rate = 74
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
Execution result: 1319
The allowance is $1,319. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1319", "printed": "1319", "notation": null} |
nlprog_det-setting-0055986 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What is the total rent on... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "19680", "printed": "19680", "notation": null} |
nlprog_det-setting-0055987 | Fixed costs are $1,200. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?
The computation:
```python
import math
fixed = 1200
price = 25
variable = 19
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
Running this gives 200.
200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0055988 | At an exchange rate of 1.27 CAD per USD, how many CAD is 3,570 USD?
```python
amount = 3570
rate = 1.27
converted = amount * rate # 4533.9
print(f"{converted:.2f}")
```
Run it and it prints: 4533.90
It converts to 4,533.90 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4533.90", "printed": "4533.90", "notation": null} |
nlprog_det-setting-0055989 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Yara earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 55
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 360.0
pay = regular + overtime # ... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Yara earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 55\nregular = 40 * r... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0055991 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "get_wea... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0055992 | One can of paint covers 400 square feet. How many cans are needed for 1171 square feet of wall?
Code:
```python
import math
area = 1171
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
It prints 3, as expected.
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055993 | <|start|><|user|>
Pack A has 10 items for $11.92. Pack B has 24 items for $16.34. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 11.92 / 10 # 1.192
pack_b = 16.34 / 24 # 0.6808333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The code prints: B
Pack B is ch... | chat | [
{
"role": "user",
"content": "Pack A has 10 items for $11.92. Pack B has 24 items for $16.34. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.92 / 10 # 1.192\npack_b = 16.34 / 24 # 0.6808333333333333\ncheaper = \"A\" if pack_a < pack_b else \"B... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055994 | $2,000 is invested at 2% compounded yearly. What is it worth after 2 years?
Computation in Python:
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 2080.8
print(f"{value:.2f}")
```
What it prints: 2080.80
It is worth $2,080.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2080.80", "printed": "2080.80", "notation": null} |
nlprog_det-setting-0055995 | <|start|><|user|>
A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 720.0
... | chat | [
{
"role": "user",
"content": "A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": " principal = 3600\n annual_rate = 10 / 100 # 0.1\n months = 24\n i... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0055996 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A party has 14 days to respond to a motion served on March 11, 2027, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2027, 3, 11)
respon... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on March 11, 2027, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content... | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "2027-03-28", "printed": "2027-03-28", "notation": null} |
nlprog_det-setting-0055997 | <|start|><|system|>
Tool definitions:
{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A client paid a $7,500 retainer. The... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0055998 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 9333.333333333334
print(f"{per_year:.2f}")
```
(Printed: 93... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years # 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0055999 | If a 5-year limitations period starts on October 24, 2017, when does it end?
Python code:
from datetime import date
accrued = date(2017, 10, 24) # datetime.date(2017, 10, 24)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 10, 24)
print(expires.isoformat())
Wh... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2022-10-24", "printed": "2022-10-24", "notation": null} |
nlprog_det-setting-0056000 | <|start|><|user|>
How many 2-foot square tiles cover a 16 ft by 9 ft floor (round up)?<|eot|>
<|assistant|>
36 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 16 ft by 9 ft floor (round up)?"
},
{
"role": "assistant",
"content": "36 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0056001 | 17 clipboards cost $12 apiece. With 5% tax added, what is the total?
A few lines of Python do it:
```python
quantity = 17
unit_price = 12
subtotal = quantity * unit_price # 204
total = subtotal * (1 + 5 / 100) # 214.20000000000002
print(f"{total:.2f}")
```
# printed result: 214.20
The invoice total is $214.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "214.20", "printed": "214.20", "notation": null} |
nlprog_det-setting-0056002 | Convert 1.2 km to meters.
A Python solution:
```python
km = 1.2
meters = km * 1000 # 1200.0
print(round(meters))
```
Output:
1200
That is 1,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0056003 | Under a 33% contingency agreement, what fee is owed on a $12,000 award?
The lawyer's fee comes to $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0056004 | <|start|><|user|>
Someone born March 4, 2008 turns how old by October 2, 2029? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2008, 3, 4) # datetime.date(2008, 3, 4)
on = date(2029, 10, 2) # datetime.date(2029, 10, 2)
age = on.year - born.year - ((on.month, on.day) <... | chat | [
{
"role": "user",
"content": "Someone born March 4, 2008 turns how old by October 2, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2008, 3, 4) # datetime.date(2008, 3, 4)\non = date(2029, 10, 2) # datetime.date(2029,... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0056006 | A pack of 24 paper reams sells for $456. What does each cost?
In Python:
```python
total = 456
count = 24
per_item = total // count
print(per_item)
```
Executed, it shows 19.
Each one costs $19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0056007 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 975 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 975
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
The code prints 4.
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 975 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 975\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nThe code prints 4.\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056008 | <|start|><|user|>
The landlord deducts $45, $150 and $75 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
$1,230 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $45, $150 and $75 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "$1,230 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1230", "printed": "1230", "notation": null} |
nlprog_det-setting-0056009 | <|start|><|user|>
At a 5% tax rate, what is the tax on $895.69?<|eot|>
<|assistant|>
```python
price = 895.69
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 44.78450000000001
print(f"{tax:.2f}")
```
Printed — 44.78
$44.78 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $895.69?"
},
{
"role": "assistant",
"content": "```python\nprice = 895.69\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 44.78450000000001\nprint(f\"{tax:.2f}\")\n```\nPrinted — 44.78\n\n$44.78 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "44.78", "printed": "44.78", "notation": null} |
nlprog_det-setting-0056010 | <|start|><|user|>
After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 2 # 10500.0
print(f"{per_clie... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": " award = 30000\n fee = award * 30 / 100 # 9000.0\n remaining = award - fee # 21000.0\n pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0056011 | A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 14 thousand gallons?
As a program:
```python
base = 15
rate = 5.1
used = 14
free = 2
bill = base + rate * max(0, used - free) # 76.19999999999999
print(f"{bill:.2f}")
```
stdout:
76.20
The bill is $76.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "76.20", "printed": "76.20", "notation": null} |
nlprog_det-setting-0056012 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|>
<|assistant|>
Quinn earns $1,097.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?"
},
{
"role": "assistant",
"content": "Quinn earns $1,097.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1097.60", "printed": "1097.60", "notation": null} |
nlprog_det-setting-0056013 | <|start|><|user|>
Convert 76.6 km to meters.<|eot|>
<|assistant|>
```python
km = 76.6
meters = km * 1000 # 76600.0
print(round(meters))
```
Output = 76600
76,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 76.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 76.6\nmeters = km * 1000 # 76600.0\nprint(round(meters))\n```\nOutput = 76600\n\n76,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "76600", "printed": "76600", "notation": null} |
nlprog_det-setting-0056014 | A client paid a $2,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?
Here is the program.
retainer = 2500
hours = 6
rate = 150
left = retainer - hours * rate # 1600
print(left)
When run, it prints: 1600
$1,600 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0056015 | <|start|><|user|>
4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $13,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $13,500.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0056016 | A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 19 thousand gallons?
We can compute it in Python.
```python
base = 15
rate = 5.1
used = 19
free = 0
bill = base + rate * max(0, used - free) # 111.89999999999999
print(f"{bill:.2f}")
```
Printed = 111.90
The bill is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "111.90", "printed": "111.90", "notation": null} |
nlprog_det-setting-0056017 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 15
variable = 11
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
```
The script prints 2250, as expected.... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 11\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0056018 | Papers were served by mail on March 19, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
```python
from datetime import date, timedelta
served = date(2025, 3, 19) # datetime.date(2025, 3, 19)
response_days = 28
mail_days = 3
due = served + timedelta(days=response_day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2025-04-19", "printed": "2025-04-19", "notation": null} |
nlprog_det-setting-0056020 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?
Here's the code.
```python
rate = 18.5
hours = 47
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 194.25
pay = regular + overtime # 934.25
print(f"{pay:.2f}")
```
Executed, it shows 934.25.
Pilar ear... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "934.25", "printed": "934.25", "notation": null} |
nlprog_det-setting-0056021 | On which weekday does January 21, 2011 fall?
The program:
```python
from datetime import date
hearing = date(2011, 1, 21)
print(hearing.strftime("%A"))
```
Running this gives Friday.
January 21, 2011 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0056022 | <|start|><|user|>
Papers were served by mail on December 23, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 12, 23) # datetime.date(2025, 12, 23)
response_days = 28
mail_days = 3... | chat | [
{
"role": "user",
"content": "Papers were served by mail on December 23, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 12, 23) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2026-01-23", "printed": "2026-01-23", "notation": null} |
nlprog_det-setting-0056024 | <|start|><|system|>
You have access to these functions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"run_python\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0056025 | <|start|><|system|>
You have access to these functions:
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A measure needs at... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0056026 | <|start|><|user|>
Sales went from 2,500 to 2,625. What is the percent change?<|eot|>
<|assistant|>
```python
old = 2500
new = 2625
change = (new - old) / old * 100 # 5.0
print(round(change))
```
The code prints: 5
It changed by 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 2,500 to 2,625. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 2625\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nThe code prints: 5\n\nIt changed by 5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0056027 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A pack of 10 staplers sells for $550. What does each cost?<|eot|>
<|assistant|>
```python
total = 550
count = 10
per_item = total // count # 55
print(per_item)
```
(Program output: 55)
Each one costs $55.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A pack of 10 staplers sells for $550. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 550\ncount = 10\nper_item = total // count # 55\nprint(per_item)\n```\n(Pro... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0056028 | <|start|><|user|>
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 98-page copy cost?<|eot|>
<|assistant|>
```python
pages = 98
base = 10
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 59.0
print(f"{cost:.2f}")
```
# result: 59.00
The copy c... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 98-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 98\nbase = 10\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "59.00", "printed": "59.00", "notation": null} |
nlprog_det-setting-0056029 | Notice was given on December 10, 2022. The notice period is 45 days. When does it run out?
In code:
```python
from datetime import date, timedelta
start = date(2022, 12, 10) # datetime.date(2022, 12, 10)
end = start + timedelta(days=45) # datetime.date(2023, 1, 24)
print(end.isoformat())
```
Console output: 2023-01-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2023-01-24", "printed": "2023-01-24", "notation": null} |
nlprog_det-setting-0056030 | <|start|><|user|>
A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 9-page copy cost?<|eot|>
<|assistant|>
The total is $10.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 9-page copy cost?"
},
{
"role": "assistant",
"content": "The total is $10.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0056031 | <|start|><|user|>
A pack of 10 notebooks sells for $500. What does each cost?<|eot|>
<|assistant|>
```python
total = 500
count = 10
per_item = total // count
print(per_item)
```
The script prints: 50
The unit price is $50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 10 notebooks sells for $500. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 500\ncount = 10\nper_item = total // count\nprint(per_item)\n```\nThe script prints: 50\n\nThe unit price is $50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "50", "printed": "50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.