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-0067351 | To read 689 pages in 13 days, how many pages per day are needed?
We write it as a program:
pages = 689
days = 13
per_day = pages // days # 53
print(per_day)
The run gives 53, as expected.
53 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0067352 | A recipe for 8 people uses 200 grams of pasta. How many grams are needed for 4 people?
A short script:
```python
grams = 200
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 100
print(scaled)
```
Shell output — 100
Use 100 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0067353 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 36 months. How large is a payment?
```python
principal = 2400
annual_rate = 6 / 100
months = 36
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f}")
```
Program output — 78.67
Each pay... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "78.67", "printed": "78.67", "notation": null} |
nlprog_det-setting-0067354 | Someone works 24 hours at $21.03 per hour. What are the earnings?
The Python version:
rate = 21.03
hours = 24
earnings = rate * hours # 504.72
print(f"{earnings:.2f}")
Console:
504.72
The pay is $504.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "504.72", "printed": "504.72", "notation": null} |
nlprog_det-setting-0067355 | Filing fees are $350 per document. What do 17 filings cost?
Script:
```python
fee = 350
filings = 17
total = fee * filings # 5950
print(total)
```
The program outputs 5950.
$5,950 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "5950", "printed": "5950", "notation": null} |
nlprog_det-setting-0067356 | <|start|><|user|>
What average speed covers 368 miles in 1 hours?<|eot|>
<|assistant|>
```python
distance = 368
hours = 1
speed = distance / hours # 368.0
print(round(speed))
```
Printed = 368
The average speed is 368 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 368 miles in 1 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 368\nhours = 1\nspeed = distance / hours # 368.0\nprint(round(speed))\n```\nPrinted = 368\n\nThe average speed is 368 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "368", "printed": "368", "notation": null} |
nlprog_det-setting-0067357 | <|start|><|user|>
A $84 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
Each person pays $25.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "Each person pays $25.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "25.20", "printed": "25.20", "notation": null} |
nlprog_det-setting-0067358 | Straight-line depreciation: cost $12,000, salvage $0, 10 years. How much per year?
A Python solution:
```python
cost = 12000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 1200.0
print(f"{per_year:.2f}")
```
It outputs: 1200.00
Depreciation is $1,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0067359 | A claim accrued on November 21, 2023. The limitations period is 5 years. On what date does it expire?
Programmatically:
```python
from datetime import date
accrued = date(2023, 11, 21) # datetime.date(2023, 11, 21)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 11, 21)
print(exp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2028-11-21", "printed": "2028-11-21", "notation": null} |
nlprog_det-setting-0067360 | A clerk's office charges $75 for each filing. Carmen submits 12 filings. What is the total fee?
As a program:
```python
fee = 75
filings = 12
total = fee * filings # 900
print(total)
```
The program outputs 900.
The filings cost $900 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0067361 | <|start|><|user|>
The rules require 1/3 of 56 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 56
quorum = math.ceil(members * 1 / 3) # 19
print(quorum)
```
Printed — 19
19 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 1/3 of 56 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 56\nquorum = math.ceil(members * 1 / 3) # 19\nprint(quorum)\n```\nPrinted — 19\n\n19 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0067362 | <|start|><|user|>
Joelle lends $1,000 at 3% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 5
interest = principal * rate * years # 150.0
print(f"{interest:.2f}")
```
Program output: 150.00
It earns $150.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Joelle lends $1,000 at 3% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 5\ninterest = principal * rate * years # 150.0\nprint(f\"{interest:.2f}\... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0067364 | How many days are there from March 26, 2028 to March 24, 2029?
Here's the code.
```python
from datetime import date
first = date(2028, 3, 26) # datetime.date(2028, 3, 26)
second = date(2029, 3, 24) # datetime.date(2029, 3, 24)
print((second - first).days)
```
The run gives 363.
It is 363 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "363", "printed": "363", "notation": null} |
nlprog_det-setting-0067365 | <|start|><|user|>
Eamon lends $2,500 at 6% simple interest per year for 3 years. How much interest is earned?<|eot|>
<|assistant|>
principal = 2500
rate = 6 / 100 # 0.06
years = 3
interest = principal * rate * years # 450.0
print(f"{interest:.2f}")
It prints: 450.00
The interest is $450.00.<|eot|... | chat | [
{
"role": "user",
"content": "Eamon lends $2,500 at 6% simple interest per year for 3 years. How much interest is earned?"
},
{
"role": "assistant",
"content": " principal = 2500\n rate = 6 / 100 # 0.06\n years = 3\n interest = principal * rate * years # 450.0\n print(f\"{intere... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0067366 | Split $3,436 between Lucia and Emeka in the ratio 1 to 3. What is Lucia's share?
The computation:
```python
total = 3436
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
Execution result — 859
Lucia's share is $859. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "859", "printed": "859", "notation": null} |
nlprog_det-setting-0067367 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Starting from $8,000, the team spends $3,110, $2,170, $313. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [3110, 2170, 313]
left = budget - sum(expenses) # 2407
print(left)
```
The script prints 2407.
$2,407 is left.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Starting from $8,000, the team spends $3,110, $2,170, $313. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [3110, 2170, 313]\nleft = budget - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2407", "printed": "2407", "notation": null} |
nlprog_det-setting-0067368 | <|start|><|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 1216.6529024000001
print(f"{value:.2f}")
```
Running it prints 1216.65.
The balance is $1,216.65.<|eo... | chat | [
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 5\nvalue = principal * (1 + rate) ** years # 1216.6529024000001\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1216.65", "printed": "1216.65", "notation": null} |
nlprog_det-setting-0067369 | Find the mean of these test scores: 83, 67, 71, 67 and 92.
A Python solution:
```python
scores = [83, 67, 71, 67, 92]
average = sum(scores) // len(scores) # 76
print(average)
```
Executed, it shows 76.
The average score is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0067370 | How many minutes pass from 9:08 AM to 2:00 PM on the same day?
The program:
```python
start = 9 * 60 + 8
end = 14 * 60 + 0
print(end - start)
```
When run, it prints 292.
292 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "292", "printed": "292", "notation": null} |
nlprog_det-setting-0067371 | Lucia earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?
In code:
```python
rate = 22.4
hours = 48
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 268.79999999999995
pay = regular + overtime # 1164.8
print(f"{pay:.2f}")
```
The program outputs 1164.80.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "1164.80", "printed": "1164.80", "notation": null} |
nlprog_det-setting-0067373 | Eamon lends $1,000 at 4% simple interest per year for 3 years. How much interest is earned?
In code:
principal = 1000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 120.0
print(f"{interest:.2f}")
The program prints 120.00, as expected.
It earns $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0067374 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons?
The bill is $114.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "114.75", "printed": "114.75", "notation": null} |
nlprog_det-setting-0067375 | With 10% off, what does a $60 desk lamp cost?
Computation in Python:
```python
price = 60
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
```
The program outputs 54.00.
It costs $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0067376 | Monthly: $15. Annual: $156. What is saved per year by paying annually?
Let the code do the arithmetic:
```python
monthly = 15
yearly = 156
savings = monthly * 12 - yearly # 24
print(savings)
```
Out — 24
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067378 | After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
In code:
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 2 # 10500.0
print(f"{per_client:.2f}")
```
Output:
10500.00
Each sh... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0067379 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each client gets $12,600.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each client gets $12,600.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "12600.00", "printed": "12600.00", "notation": null} |
nlprog_det-setting-0067380 | 52 copies of a 31-page packet are printed at $0.08 per page. What is the cost? Printing costs $128.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "128.96", "printed": "128.96", "notation": null} |
nlprog_det-setting-0067381 | How many of 176 votes make 60% (round up)?
```python
import math
voters = 176
needed = math.ceil(voters * 60 / 100) # 106
print(needed)
```
Printed = 106
At least 106 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "106", "printed": "106", "notation": null} |
nlprog_det-setting-0067382 | At 60 miles per hour, how many minutes does a 255-mile trip take?
One way, in code:
```python
distance = 255
speed = 60
minutes = distance / speed * 60 # 255.0
print(round(minutes))
```
stdout = 255
255 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0067383 | At 65 miles per hour, how many minutes does a 325-mile trip take?
Python code:
distance = 325
speed = 65
minutes = distance / speed * 60 # 300.0
print(round(minutes))
Execution prints: 300
The trip takes 300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0067384 | Sara's scores were 51, 69, 53 and 95. What is the average score?
The program:
```python
scores = [51, 69, 53, 95]
average = sum(scores) // len(scores) # 67
print(average)
```
Printed result — 67
The average score is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0067385 | Goods bought on September 25, 2021 carry a 18-month warranty. When does it expire?
Translated to Python:
```python
from datetime import date
start = date(2021, 9, 25)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2023-03-25", "printed": "2023-03-25", "notation": null} |
nlprog_det-setting-0067386 | 5 friends split a $150 bill plus a 15% tip evenly. How much does each pay?
Python code:
bill = 150
tip_rate = 15 / 100 # 0.15
people = 5
each = bill * (1 + tip_rate) / people # 34.5
print(f"{each:.2f}")
The program prints 34.50, as expected.
Each person pays $34.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "34.50", "printed": "34.50", "notation": null} |
nlprog_det-setting-0067387 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A 13 lb package ships at $5 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 1.5
weight = 13
cost = base + per_pound * weight # 24.5
print(f"{cost:.2f}")
```
When run, it prints 24.50.
Shipping costs $24.50.<|eot|>
<... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A 13 lb package ships at $5 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 1.5\nweight = 13\ncost = base + per_pound * weight # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "24.50", "printed": "24.50", "notation": null} |
nlprog_det-setting-0067388 | Rent of $2,200 goes up 3%. What is the new rent?
Here is a short program for it.
```python
rent = 2200
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 2266.0
print(f"{new_rent:.2f}")
```
Running it prints 2266.00.
The new rent is $2,266.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0067389 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons?
Written as code:
```python
base = 12
rate = 4.2
used = 14
free = 3
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
The program prints: 58.20
$58.20 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "58.20", "printed": "58.20", "notation": null} |
nlprog_det-setting-0067390 | <|start|><|user|>
Prorate $1,800 of monthly rent for 13 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 780.0
print(f"{prorated:.2f}")
```
(Printed: 780.00)
The tenant owes $780.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 13 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 13\nprorated = rent * days_occupied / days_in_month # 780.0\nprint(f\"{prorated:.2f}\")\n```\n(Printed: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "780.00", "printed": "780.00", "notation": null} |
nlprog_det-setting-0067391 | <|start|><|user|>
Counting the first and last day, how many days are there from February 22, 2022 through March 12, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 2, 22) # datetime.date(2022, 2, 22)
last = date(2022, 3, 12) # datetime.date(2022, 3, 12)
days = (last - first).days + 1... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from February 22, 2022 through March 12, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 2, 22) # datetime.date(2022, 2, 22)\nlast = date(2022, 3, 12) # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0067392 | <|start|><|user|>
A library charges $0.15 per book per day late. What is the fine for 4 books that are 20 days late?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 20
books = 4
fine = per_day * days_late * books # 12.0
print(f"{fine:.2f}")
```
Shell output — 12.00
The fine is $12.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 4 books that are 20 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 20\nbooks = 4\nfine = per_day * days_late * books # 12.0\nprint(f\"{fine:.2f}\")\n```\nS... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0067393 | <|start|><|system|>
Functions:
{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A car travels 310 miles in 2.5 hours. W... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}"... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "124", "printed": "124", "notation": null} |
nlprog_det-setting-0067394 | A garage charges $5 an hour, never more than $15 a day. How much for 9 hours?
Here's the code.
```python
rate = 5
hours = 9
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Printed: 15
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0067395 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
$3,800 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "$3,800 of the retainer is l... | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "3800", "printed": "3800", "notation": null} |
nlprog_det-setting-0067396 | <|start|><|system|>
Tools you may use:
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
At $0.70 per mile, what is t... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "152.60", "printed": "152.60", "notation": null} |
nlprog_det-setting-0067397 | How much sales tax is charged on a $210.99 purchase at 9%?
A Python solution:
```python
price = 210.99
tax_rate = 9 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
Interpreter output — 18.99
The tax is $18.99. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18.99", "printed": "18.99", "notation": null} |
nlprog_det-setting-0067398 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A customer buys 6 file boxes at $28 each, 5 paper reams at $2 each, 5 scissors at $25 each and pays with $350. How much change is due?<|eot|>
<|assistant|>
```python
items = [(6, 28), (5, 2), (5, 25)]
total = sum(q * p for q, p in items)
paid = 35... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A customer buys 6 file boxes at $28 each, 5 paper reams at $2 each, 5 scissors at $25 each and pays with $350. How much change is due?"
},
{
"role": "assistant",
"content": "```pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0067399 | <|start|><|system|>
Functions:
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": "Translate text in... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 339 | {"gold": "928.00", "printed": "928.00", "notation": null} |
nlprog_det-setting-0067400 | 5 friends split a $96 bill plus a 18% tip evenly. How much does each pay?
In Python:
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 22.656
print(f"{each:.2f}")
```
The code prints: 22.66
The share is $22.66 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "22.66", "printed": "22.66", "notation": null} |
nlprog_det-setting-0067401 | Convert 1,915 EUR to USD at 1 EUR = 1.12 USD.
A short script:
```python
amount = 1915
rate = 1.12
converted = amount * rate
print(f"{converted:.2f}")
```
Console:
2144.80
It converts to 2,144.80 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2144.80", "printed": "2144.80", "notation": null} |
nlprog_det-setting-0067402 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "10404.00", "printed": "10404.00", "notation": null} |
nlprog_det-setting-0067403 | <|start|><|system|>
Tools you may use:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "calculator", "description": "Executes ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "472", "printed": "472", "notation": null} |
nlprog_det-setting-0067404 | How many minutes pass from 11:03 AM to 1:00 PM on the same day?
Written as code:
```python
start = 11 * 60 + 3 # 663
end = 13 * 60 + 0 # 780
print(end - start)
```
(Printed result: 117)
It is 117 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0067405 | <|start|><|user|>
From 2003 to 2014, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2003
end_year = 2014
print(end_year - start_year)
```
The interpreter prints 11.
11 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2003 to 2014, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2003\nend_year = 2014\nprint(end_year - start_year)\n```\nThe interpreter prints 11.\n\n11 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0067406 | How many 1-foot square tiles cover a 8 ft by 4 ft floor (round up)?
Code:
import math
length = 8
width = 4
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
# printed result: 32
It takes 32 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0067407 | <|start|><|user|>
A trial runs from September 14, 2022 to October 4, 2022, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 21 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from September 14, 2022 to October 4, 2022, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 21 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0067408 | <|start|><|user|>
How many units at $20 each (variable cost $15) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 20
variable = 15
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
# printed: 500
Break-even is 500 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $15) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 20\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) # 500\nprint(units)\n```\n# printed: 50... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0067409 | Pack A has 10 items for $5.02. Pack B has 24 items for $29.06. Which has the lower price per item?
Translated to Python:
```python
pack_a = 5.02 / 10 # 0.502
pack_b = 29.06 / 24 # 1.2108333333333332
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Result: A)
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0067411 | Buying 3 ink cartridges at $4 each, 2 pens at $9 each, someone hands over $50. What change comes back?
We can compute it in Python.
```python
items = [(3, 4), (2, 9)]
total = sum(q * p for q, p in items) # 30
paid = 50
change = paid - total # 20
print(change)
```
Python prints 20, as expected.
$20 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0067412 | Attendance was 39 out of 40. Express it as a percent.
Attendance was 97.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "97.5", "printed": "97.5", "notation": null} |
nlprog_det-setting-0067413 | What simple interest does $8,000 earn at 5% a year over 4 years?
As a program:
```python
principal = 8000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
```
# output: 1600.00
The interest is $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0067414 | <|start|><|user|>
Of a $4,000 budget, $800 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 800
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
```
Running this gives 20.0.
That is 20.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $4,000 budget, $800 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 800\npercent = spent / budget * 100 # 20.0\nprint(round(percent, 1))\n```\nRunning this gives 20.0.\n\nThat is 20.0% of the budge... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0067415 | <|start|><|user|>
How many units at $30 each (variable cost $24) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 30
variable = 24
units = math.ceil(fixed / (price - variable))
print(units)
```
The run gives 417.
417 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $30 each (variable cost $24) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 24\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nThe run gives 417.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0067416 | Attendance was 53 out of 80. Express it as a percent.
Coded up:
```python
present = 53
total = 80
percent = present / total * 100 # 66.25
print(round(percent, 1))
```
Console output — 66.2
66.2% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "66.2", "printed": "66.2", "notation": null} |
nlprog_det-setting-0067417 | Attendance was 34 out of 40. Express it as a percent.
Let the code do the arithmetic:
present = 34
total = 40
percent = present / total * 100 # 85.0
print(round(percent, 1))
Running this gives 85.0.
Attendance was 85.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0067418 | <|start|><|user|>
A count moves from 800 to 680. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 800
new = 680
change = (new - old) / old * 100 # -15.0
print(round(change))
```
(Run result: -15)
It changed by -15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 680. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 800\nnew = 680\nchange = (new - old) / old * 100 # -15.0\nprint(round(change))\n```\n(Run result: -15)\n\nIt changed ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0067420 | What commission does Bilal make on $81,822 in sales at 2%?
```python
sales = 81822
rate = 2 / 100 # 0.02
commission = sales * rate # 1636.44
print(f"{commission:.2f}")
```
That prints 1636.44.
Bilal earns $1,636.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1636.44", "printed": "1636.44", "notation": null} |
nlprog_det-setting-0067421 | What percentage of $5,000 is $2,000?
Let the code do the arithmetic:
budget = 5000
spent = 2000
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
The program prints: 40.0
That is 40.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0067422 | What is a 20% tip on a $238.92 bill?
Python:
```python
bill = 238.92
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 47.784
print(f"{tip:.2f}")
```
Run result = 47.78
Leave $47.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "47.78", "printed": "47.78", "notation": null} |
nlprog_det-setting-0067423 | <|start|><|user|>
After a 25% 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 * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 2 # 11250.0
print(f"{per_clie... | chat | [
{
"role": "user",
"content": "After a 25% 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 * 25 / 100 # 7500.0\n remaining = award - fee # 22500.0\n pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0067424 | Prorate $1,500 of monthly rent for 17 days of a 30-day month.
Written as code:
```python
rent = 1500
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 850.0
print(f"{prorated:.2f}")
```
Printed — 850.00
The tenant owes $850.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "850.00", "printed": "850.00", "notation": null} |
nlprog_det-setting-0067425 | <|start|><|user|>
Convert 75.6 km to meters.<|eot|>
<|assistant|>
```python
km = 75.6
meters = km * 1000 # 75600.0
print(round(meters))
```
Output: 75600
75,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 75.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 75.6\nmeters = km * 1000 # 75600.0\nprint(round(meters))\n```\nOutput: 75600\n\n75,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "75600", "printed": "75600", "notation": null} |
nlprog_det-setting-0067426 | How many 2-foot square tiles cover a 10 ft by 9 ft floor (round up)?
Python:
```python
import math
length = 10
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 23
print(tiles)
```
Execution prints: 23
23 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0067427 | How many days are there from February 6, 2018 to January 16, 2019?
We write it as a program:
```python
from datetime import date
first = date(2018, 2, 6) # datetime.date(2018, 2, 6)
second = date(2019, 1, 16) # datetime.date(2019, 1, 16)
print((second - first).days)
```
The program prints 344.
There are 344 days be... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0067428 | <|start|><|user|>
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 75.0
print(f"{interest:.2f}")
```
# stdout: 75.00
The interest... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 75.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0067430 | <|start|><|system|>
You have access to these functions:
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Counting the first... | 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\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0067431 | Kofi's scores were 65, 53, 62 and 100. What is the average score?
Programmatically:
```python
scores = [65, 53, 62, 100]
average = sum(scores) // len(scores) # 70
print(average)
```
(stdout: 70)
The average score is 70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0067432 | <|start|><|user|>
Idris lends $5,000 at 3% simple interest per year for 3 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 450.0
print(f"{interest:.2f}")
```
Program output — 450.00
The interest is $450.00.<|eot|... | chat | [
{
"role": "user",
"content": "Idris lends $5,000 at 3% simple interest per year for 3 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 3\ninterest = principal * rate * years # 450.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0067433 | <|start|><|user|>
Convert 90.3 km to meters.<|eot|>
<|assistant|>
```python
km = 90.3
meters = km * 1000
print(round(meters))
```
Console:
90300
90,300 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 90.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 90.3\nmeters = km * 1000\nprint(round(meters))\n```\nConsole:\n90300\n\n90,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "90300", "printed": "90300", "notation": null} |
nlprog_det-setting-0067434 | <|start|><|user|>
A storeroom has 948 staplers. The office uses 28 a day. How many are left after 15 days?<|eot|>
<|assistant|>
stock = 948
per_day = 28
days = 15
left = stock - per_day * days # 528
print(left)
Console output: 528
528 staplers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 948 staplers. The office uses 28 a day. How many are left after 15 days?"
},
{
"role": "assistant",
"content": " stock = 948\n per_day = 28\n days = 15\n left = stock - per_day * days # 528\n print(left)\nConsole output: 528\n\n528 st... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "528", "printed": "528", "notation": null} |
nlprog_det-setting-0067435 | Convert 28.5 km to meters.
One way, in code:
```python
km = 28.5
meters = km * 1000 # 28500.0
print(round(meters))
```
# execution result: 28500
That is 28,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "28500", "printed": "28500", "notation": null} |
nlprog_det-setting-0067436 | Kaito lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned?
One way, in code:
```python
principal = 5000
rate = 2 / 100
years = 2
interest = principal * rate * years
print(f"{interest:.2f}")
```
The code prints 200.00.
It earns $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0067437 | <|start|><|user|>
A $12,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 12000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
Program output: 2000.00
Each instal... | chat | [
{
"role": "user",
"content": "A $12,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 12000\n up_front = 6000\n installments = 3\n each = (grant - up_front) / installments # 2000.0\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0067438 | A clerk's office charges $350 for each filing. Bruna submits 12 filings. What is the total fee?
Written as code:
fee = 350
filings = 12
total = fee * filings # 4200
print(total)
The code prints: 4200
The filings cost $4,200 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "4200", "printed": "4200", "notation": null} |
nlprog_det-setting-0067439 | 8 hours of work at $410 an hour: what is the total charge?
```python
hours = 8
rate = 410
bill = hours * rate # 3280
print(f"{bill:.2f}")
```
Output of the run: 3280.00
The bill is $3,280.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3280.00", "printed": "3280.00", "notation": null} |
nlprog_det-setting-0067440 | A trial runs from April 5, 2028 to April 15, 2028, counting both days. How many calendar days is that?
Program:
```python
from datetime import date
first = date(2028, 4, 5) # datetime.date(2028, 4, 5)
last = date(2028, 4, 15) # datetime.date(2028, 4, 15)
days = (last - first).days + 1 # 11
print(days)
```
# result:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0067441 | <|start|><|user|>
Meals are $79 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?<|eot|>
<|assistant|>
The allowance is $955.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Meals are $79 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?"
},
{
"role": "assistant",
"content": "The allowance is $955."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0067442 | Flooring at $3/sq ft for a 12 ft × 18 ft room costs how much? It costs $648. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "648", "printed": "648", "notation": null} |
nlprog_det-setting-0067444 | 5 claimants share a $525 settlement equally. What is each share? Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0067445 | <|start|><|user|>
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each client gets $16,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each client gets $16,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0067446 | <|start|><|user|>
A 33 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 33
cost = base + per_pound * weight # 57.5
print(f"{cost:.2f}")
```
This prints 57.50, as expected.
The charge is $57.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 33 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 33\ncost = base + per_pound * weight # 57.5\nprint(f\"{cost:.2f}\")\n```\nThis prints 57.50, as expected.\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0067447 | <|start|><|user|>
An attorney bills 1.5 hours at $150 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 1.5
rate = 150
bill = hours * rate # 225.0
print(f"{bill:.2f}")
```
Output — 225.00
That comes to $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 1.5 hours at $150 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 1.5\nrate = 150\nbill = hours * rate # 225.0\nprint(f\"{bill:.2f}\")\n```\nOutput — 225.00\n\nThat comes to $225.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0067448 | <|start|><|user|>
Starting from $25,000, the team spends $3,575, $3,048, $1,181, $3,762. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [3575, 3048, 1181, 3762]
left = budget - sum(expenses) # 13434
print(left)
```
Execution prints: 13434
$13,434 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $3,575, $3,048, $1,181, $3,762. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [3575, 3048, 1181, 3762]\nleft = budget - sum(expenses) # 13434\nprint(left)\n```\nExecution prints: 13... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "13434", "printed": "13434", "notation": null} |
nlprog_det-setting-0067449 | <|start|><|user|>
A settlement of $36,000 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 36000
parties = 4
share = settlement // parties # 9000
print(share)
```
Execution prints 9000.
Each share is $9,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $36,000 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 36000\nparties = 4\nshare = settlement // parties # 9000\nprint(share)\n```\nExecution prints 9000.\n\nEach sh... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0067450 | <|start|><|user|>
After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
Each installment is $4,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "Each installment is $4,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0067453 | Counting the first and last day, how many days are there from September 6, 2022 through September 26, 2022?
Script:
```python
from datetime import date
first = date(2022, 9, 6) # datetime.date(2022, 9, 6)
last = date(2022, 9, 26) # datetime.date(2022, 9, 26)
days = (last - first).days + 1 # 21
print(days)
```
Run o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0067454 | <|start|><|user|>
Starting from $25,000, the team spends $759, $2,297, $3,016. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [759, 2297, 3016]
left = budget - sum(expenses) # 18928
print(left)
```
It outputs 18928.
The remaining budget is $18,928.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $759, $2,297, $3,016. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [759, 2297, 3016]\nleft = budget - sum(expenses) # 18928\nprint(left)\n```\nIt outputs 18928.\n\nThe remaining bu... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "18928", "printed": "18928", "notation": null} |
nlprog_det-setting-0067455 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 2100
months = 18
total = monthly_rent * months # 37800
print(total)
```
Output — 37800
The rent over the term is $37,80... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2100\nmonths = 18\ntotal = monthly_r... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0067456 | <|start|><|user|>
Which is cheaper per unit: 10 for $14.61 (A) or 20 for $28.37 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.61 / 10
pack_b = 28.37 / 20
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Console output — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $14.61 (A) or 20 for $28.37 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.61 / 10\npack_b = 28.37 / 20\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nConsole output — B\n\nPack B is cheaper... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0067457 | <|start|><|user|>
Walls total 737 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 737
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Output — 3
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 737 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 737\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nOutput — 3\n\n3 cans are needed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0067458 | <|start|><|user|>
Zoe buys 6 boxes of 24 batteries each and gives away 4 batteries. How many batteries are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 24
given_away = 4
left = boxes * per_box - given_away # 140
print(left)
```
stdout — 140
140 batteries are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe buys 6 boxes of 24 batteries each and gives away 4 batteries. How many batteries are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 24\ngiven_away = 4\nleft = boxes * per_box - given_away # 140\nprint(left)\n```\nstdout — 140\n\n14... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0067459 | Meals are $64 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?
Code:
```python
days = 8
meal_rate = 64
lodging_rate = 175
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1737
print(total)
```
Run result: 1737
That comes to $1,737. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1737", "printed": "1737", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.