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-0059583 | How many 2-foot square tiles cover a 16 ft by 13 ft floor (round up)?
Python version:
```python
import math
length = 16
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
The run gives: 52
It takes 52 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0059584 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons?
```python
base = 15
rate = 4.2
used = 19
free = 3
bill = base + rate * max(0, used - free) # 82.2
print(f"{bill:.2f}")
```
Out:
82.20
$82.20 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "82.20", "printed": "82.20", "notation": null} |
nlprog_det-setting-0059585 | A 30-day notice period begins on June 24, 2020. On what date does it end?
```python
from datetime import date, timedelta
start = date(2020, 6, 24) # datetime.date(2020, 6, 24)
end = start + timedelta(days=30) # datetime.date(2020, 7, 24)
print(end.isoformat())
```
Executing it gives 2020-07-24, as expected.
It ends... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2020-07-24", "printed": "2020-07-24", "notation": null} |
nlprog_det-setting-0059586 | What commission does Amir make on $57,884 in sales at 2%?
Set it up in Python:
```python
sales = 57884
rate = 2 / 100 # 0.02
commission = sales * rate # 1157.68
print(f"{commission:.2f}")
```
Out: 1157.68
The commission is $1,157.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1157.68", "printed": "1157.68", "notation": null} |
nlprog_det-setting-0059587 | Convert 5 h 42 min (the length of a workshop) to minutes.
Here's the code.
```python
hours = 5
minutes = 42
total_minutes = hours * 60 + minutes # 342
print(total_minutes)
```
Running this gives: 342
The workshop lasted 342 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "342", "printed": "342", "notation": null} |
nlprog_det-setting-0059588 | <|start|><|user|>
Of a $5,000 budget, $3,600 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 3600
percent = spent / budget * 100 # 72.0
print(round(percent, 1))
```
Run output: 72.0
That is 72.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $3,600 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 3600\npercent = spent / budget * 100 # 72.0\nprint(round(percent, 1))\n```\nRun output: 72.0\n\nThat is 72.0% of the budget."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "72.0", "printed": "72.0", "notation": null} |
nlprog_det-setting-0059589 | <|start|><|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
Result: 300.00
$300.0... | chat | [
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": " balance = 7500\n monthly_rate = 1 / 100 # 0.01\n months = 4\n interest = balance * monthly_rate * months # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0059590 | What average speed covers 124 miles in 2 hours? The average speed is 62 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0059591 | Walls total 1255 sq ft and each can covers 250 sq ft. How many cans should be bought?
Program:
```python
import math
area = 1255
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
```
(Out: 6)
6 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0059592 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A settlement of $84,000 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 84000
parties = 6
share = settlement // parties # 14000
print(share)
It outputs 14000.
Each share is $14,000.<... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A settlement of $84,000 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 84000\n parties = 6\n share = sett... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "14000", "printed": "14000", "notation": null} |
nlprog_det-setting-0059593 | <|start|><|system|>
Tools (call with JSON):
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "run_python", "description": "Executes Python code and returns stdout.", ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"run_python\", \"d... | nlprog_det | setting | original | null | deterministic | [] | [] | 397 | {"gold": "2022-01-16", "printed": "2022-01-16", "notation": null} |
nlprog_det-setting-0059594 | A 3% increase is applied to $1,800 monthly rent. What is the new amount?
Let's compute it with Python.
rent = 1800
increase = 3 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
The program prints: 1854.00
It rises to $1,854.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1854.00", "printed": "1854.00", "notation": null} |
nlprog_det-setting-0059595 | What percentage of $4,000 is $1,800?
That is 45.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "45.0", "printed": "45.0", "notation": null} |
nlprog_det-setting-0059596 | Fixed costs are $6,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?
As a program:
```python
import math
fixed = 6000
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
Interpreter output: 1500
Break-even is 1500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0059597 | If a 3-year limitations period starts on May 6, 2016, when does it end?
Python version:
```python
from datetime import date
accrued = date(2016, 5, 6) # datetime.date(2016, 5, 6)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 5, 6)
print(expires.isoformat())
```
Executing it giv... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2019-05-06", "printed": "2019-05-06", "notation": null} |
nlprog_det-setting-0059598 | What simple interest does $1,000 earn at 3% a year over 3 years?
Python makes this quick:
principal = 1000
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 90.0
print(f"{interest:.2f}")
(Output: 90.00)
It earns $90.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0059600 | Scale 240 g of rice from 8 servings to 3 servings.
Translated to Python:
```python
grams = 240
serves = 8
needed_for = 3
scaled = grams * needed_for // serves # 90
print(scaled)
```
Out = 90
Use 90 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0059601 | <|start|><|user|>
Shipping costs $5 plus $1.20 per pound. What does a 16-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $24.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $1.20 per pound. What does a 16-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $24.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "24.20", "printed": "24.20", "notation": null} |
nlprog_det-setting-0059602 | A 24-month warranty starts on November 27, 2026. On what date does it end?
Here's the code.
```python
from datetime import date
start = date(2026, 11, 27)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Executin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2028-11-27", "printed": "2028-11-27", "notation": null} |
nlprog_det-setting-0059603 | <|start|><|user|>
If a 2-year limitations period starts on January 2, 2012, when does it end?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2012, 1, 2) # datetime.date(2012, 1, 2)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 1, 2)
print(expir... | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on January 2, 2012, when does it end?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2012, 1, 2) # datetime.date(2012, 1, 2)\n years = 2\n expires = accrued.replace(year=accrued.y... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2014-01-02", "printed": "2014-01-02", "notation": null} |
nlprog_det-setting-0059604 | <|start|><|user|>
Convert 59 km to meters.<|eot|>
<|assistant|>
```python
km = 59
meters = km * 1000 # 59000
print(round(meters))
```
Run it and it prints 59000.
59,000 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 59 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 59\nmeters = km * 1000 # 59000\nprint(round(meters))\n```\nRun it and it prints 59000.\n\n59,000 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "59000", "printed": "59000", "notation": null} |
nlprog_det-setting-0059605 | At an exchange rate of 1.08 USD per GBP, how many USD is 7,395 GBP?
Let the code do the arithmetic:
```python
amount = 7395
rate = 1.08
converted = amount * rate # 7986.6
print(f"{converted:.2f}")
```
# printed: 7986.60
It converts to 7,986.60 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "7986.60", "printed": "7986.60", "notation": null} |
nlprog_det-setting-0059606 | <|start|><|system|>
You have access to these functions:
{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "fetch_filing", "descri... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"python_exec\", \"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 | [] | [] | 291 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0059607 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Divide 90 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 90
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {rem... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Divide 90 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 90\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "22 each, 2 left over", "printed": "22 each, 2 left over", "notation": null} |
nlprog_det-setting-0059608 | Which is cheaper per unit: 12 for $12.71 (A) or 20 for $29.72 (B)?
A few lines of Python do it:
```python
pack_a = 12.71 / 12 # 1.0591666666666668
pack_b = 29.72 / 20 # 1.486
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Out = A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0059609 | Starting with 1542 keyboards and using 21 per day, how many remain after 14 days?
Set it up in Python:
stock = 1542
per_day = 21
days = 14
left = stock - per_day * days # 1248
print(left)
# run result: 1248
1248 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1248", "printed": "1248", "notation": null} |
nlprog_det-setting-0059610 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $20. What do 8 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 8
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
The script prints 20, as expected.
The charge is $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $20. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 8\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nThe script prints 20, as expected.\n\nThe ch... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0059611 | Counting the first and last day, how many days are there from October 15, 2026 through October 25, 2026?
A few lines of Python do it:
```python
from datetime import date
first = date(2026, 10, 15) # datetime.date(2026, 10, 15)
last = date(2026, 10, 25) # datetime.date(2026, 10, 25)
days = (last - first).days + 1 # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0059612 | Goods bought on February 1, 2020 carry a 24-month warranty. When does it expire?
Python, step by step:
```python
from datetime import date
start = date(2020, 2, 1)
months = 24
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 | [] | [] | 152 | {"gold": "2022-02-01", "printed": "2022-02-01", "notation": null} |
nlprog_det-setting-0059613 | A library charges $0.25 per book per day late. What is the fine for 2 books that are 19 days late?
A Python solution:
```python
per_day = 0.25
days_late = 19
books = 2
fine = per_day * days_late * books # 9.5
print(f"{fine:.2f}")
```
What it prints — 9.50
$9.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "9.50", "printed": "9.50", "notation": null} |
nlprog_det-setting-0059614 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 5
per_year = (cost - salvage) / years # 5400.0
print(f"{per_year:.2f}")
```
(Program output: 5400.0... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 5\nper_year = (cost - salvage) / years # 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "5400.00", "printed": "5400.00", "notation": null} |
nlprog_det-setting-0059615 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
How long, in days, is it from July 19, 2018 until August 10, 2018?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 7, 19) # datetime.date(2018, 7, 19)
second = date(2018, 8, 10) # datetime.date(2018, 8, 10)
print((second - first).d... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "How long, in days, is it from July 19, 2018 until August 10, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 7, 19) # datetime.date(2018, 7,... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0059616 | <|start|><|system|>
Tool definitions:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "param... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"eval_python\", \"description\": \"Use for arit... | nlprog_det | setting | original | null | deterministic | [] | [] | 280 | {"gold": "350.88", "printed": "350.88", "notation": null} |
nlprog_det-setting-0059618 | A hall has 27 rows of 20 seats, and 31 seats are empty. How many people are seated?
Translated to Python:
```python
rows = 27
per_row = 20
empty = 31
seated = rows * per_row - empty # 509
print(seated)
```
Out:
509
509 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "509", "printed": "509", "notation": null} |
nlprog_det-setting-0059619 | How many minutes pass from 7:00 AM to 12:34 PM on the same day?
Python code:
start = 7 * 60 + 0 # 420
end = 12 * 60 + 34 # 754
print(end - start)
The interpreter prints: 334
It is 334 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "334", "printed": "334", "notation": null} |
nlprog_det-setting-0059620 | <|start|><|user|>
Prorate $1,200 of monthly rent for 19 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 760.0
print(f"{prorated:.2f}")
```
Run it and it prints: 760.00
The tenant owes $760.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,200 of monthly rent for 19 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 19\nprorated = rent * days_occupied / days_in_month # 760.0\nprint(f\"{prorated:.2f}\")\n```\nRun it and... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0059621 | A meal costs $99.53. How much is a 15% tip?
```python
bill = 99.53
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 14.929499999999999
print(f"{tip:.2f}")
```
# console output: 14.93
Leave $14.93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "14.93", "printed": "14.93", "notation": null} |
nlprog_det-setting-0059622 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
1 books come back 29 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 29
books = 1
fine = per_day * days_late * books # 5.800000000000001
print(f"{fine:.2f}")
```
Console:
5.80
$5.80 is owed.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "1 books come back 29 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 29\nbooks = 1\nfine = per_day * days_late * book... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "5.80", "printed": "5.80", "notation": null} |
nlprog_det-setting-0059623 | A quorum is 2/3 of the 16 members, rounded up. How many members make a quorum?
```python
import math
members = 16
quorum = math.ceil(members * 2 / 3) # 11
print(quorum)
```
Result:
11
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0059624 | Count the days between April 26, 2025 and February 14, 2026.
We write it as a program:
```python
from datetime import date
first = date(2025, 4, 26) # datetime.date(2025, 4, 26)
second = date(2026, 2, 14) # datetime.date(2026, 2, 14)
print((second - first).days)
```
When run, it prints 294, as expected.
There are 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "294", "printed": "294", "notation": null} |
nlprog_det-setting-0059625 | <|start|><|system|>
Tools you may use:
{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "translate", "description": "... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0059626 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
43 of 80 members attended. What ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "53.8", "printed": "53.8", "notation": null} |
nlprog_det-setting-0059627 | <|start|><|system|>
Functions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0059628 | A recipe for 8 people uses 240 grams of sugar. How many grams are needed for 10 people?
Let's compute it with Python.
```python
grams = 240
serves = 8
needed_for = 10
scaled = grams * needed_for // serves # 300
print(scaled)
```
(Printed result: 300)
Use 300 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0059629 | An office budget of $8,000 has expenses of $2,833, $616, $1,685. How much of the budget is left?
We write it as a program:
```python
budget = 8000
expenses = [2833, 616, 1685]
left = budget - sum(expenses) # 2866
print(left)
```
The program outputs: 2866
$2,866 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2866", "printed": "2866", "notation": null} |
nlprog_det-setting-0059630 | Someone works 36 hours at $31.70 per hour. What are the earnings?
```python
rate = 31.7
hours = 36
earnings = rate * hours # 1141.2
print(f"{earnings:.2f}")
```
Execution result — 1141.20
That earns $1,141.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1141.20", "printed": "1141.20", "notation": null} |
nlprog_det-setting-0059631 | Marek lends $20,000 at 3% simple interest per year for 6 years. How much interest is earned?
The interest is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0059632 | <|start|><|system|>
You may call the tools below.
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A client paid a $5... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0059633 | <|start|><|user|>
A meeting starts at 10:20 AM and lasts 40 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 20
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output of the run — 11:00 AM
It ends at 11:00 AM.<|eo... | chat | [
{
"role": "user",
"content": "A meeting starts at 10:20 AM and lasts 40 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 20\nend = start + 40\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "11:00 AM", "printed": "11:00 AM", "notation": null} |
nlprog_det-setting-0059634 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
7 boxe... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0059635 | Buying 6 scissors at $6 each, 1 chairs at $19 each, 6 batteries at $22 each, someone hands over $200. What change comes back?
Computation in Python:
```python
items = [(6, 6), (1, 19), (6, 22)]
total = sum(q * p for q, p in items) # 187
paid = 200
change = paid - total # 13
print(change)
```
Run it and it prints: 13... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0059636 | Copies cost $15 plus $0.25 for each page beyond 0. How much for 67 pages?
We write it as a program:
```python
pages = 67
base = 15
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
It prints 31.75, as expected.
The total is $31.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "31.75", "printed": "31.75", "notation": null} |
nlprog_det-setting-0059637 | How much sales tax is charged on a $77.35 purchase at 8%?
Python code:
```python
price = 77.35
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 6.188
print(f"{tax:.2f}")
```
It outputs 6.19.
$6.19 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "6.19", "printed": "6.19", "notation": null} |
nlprog_det-setting-0059638 | 2 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
We write it as a program:
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")
Out:
18000.00
Eac... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0059639 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $2,075, $3,623, $3,617, $2,460. How much of the budget is left?<|eot|>
<|assistant|>
$8,225 is left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $2,075, $3,623, $3,617, $2,460. How much of the budget is left?"
},
{
"role": "assistant",
"content": "$8,225 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "8225", "printed": "8225", "notation": null} |
nlprog_det-setting-0059640 | <|start|><|user|>
An invoice lists 3 paper reams at $15 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 3
unit_price = 15
subtotal = quantity * unit_price # 45
total = subtotal * (1 + 7 / 100) # 48.150000000000006
print(f"{total:.2f}")
The program outputs 48.15.... | chat | [
{
"role": "user",
"content": "An invoice lists 3 paper reams at $15 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 3\n unit_price = 15\n subtotal = quantity * unit_price # 45\n total = subtotal * (1 + 7 / 100) # 48.15000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "48.15", "printed": "48.15", "notation": null} |
nlprog_det-setting-0059641 | <|start|><|user|>
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 40 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
# result: 4800.00
The fee is $4,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 40 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\n# result: 4800.00\n\nThe fee is $4,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0059642 | <|start|><|system|>
Tools (call with JSON):
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Under a 33% contingency agre... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0059643 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 1440.0
print(f"{prorated:.2f}")
```
It outputs 1440.00.
The pro... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1440.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0059644 | A 30-day notice period begins on March 26, 2024. On what date does it end?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2024, 3, 26) # datetime.date(2024, 3, 26)
end = start + timedelta(days=30) # datetime.date(2024, 4, 25)
print(end.isoformat())
```
The interpreter print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2024-04-25", "printed": "2024-04-25", "notation": null} |
nlprog_det-setting-0059645 | <|start|><|user|>
Buying 2 clipboards at $2 each, 5 sticky pads at $23 each, 5 chairs at $27 each, someone hands over $300. What change comes back?<|eot|>
<|assistant|>
The change is $46.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 2 clipboards at $2 each, 5 sticky pads at $23 each, 5 chairs at $27 each, someone hands over $300. What change comes back?"
},
{
"role": "assistant",
"content": "The change is $46."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0059646 | The paralegal logged 8 hours at a rate of $300. How much is billed?
Let's compute it with Python.
```python
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
```
Shell output: 2400.00
That comes to $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0059647 | Kaito was born on March 14, 1991. How old is Kaito on July 9, 2028?
Kaito is 37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0059648 | 131 copies of a 16-page packet are printed at $0.05 per page. What is the cost?
Python makes this quick:
```python
pages = 16
copies = 131
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 104.80000000000001
print(f"{cost:.2f}")
```
Shell output: 104.80
The job costs $104.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "104.80", "printed": "104.80", "notation": null} |
nlprog_det-setting-0059649 | Shipping costs $5 plus $1.20 per pound. What does a 39-pound parcel cost to ship?
```python
base = 5
per_pound = 1.2
weight = 39
cost = base + per_pound * weight # 51.8
print(f"{cost:.2f}")
```
# output: 51.80
Shipping costs $51.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "51.80", "printed": "51.80", "notation": null} |
nlprog_det-setting-0059650 | A quorum is 1/3 of the 32 members, rounded up. How many members make a quorum?
Python code:
import math
members = 32
quorum = math.ceil(members * 1 / 3) # 11
print(quorum)
Out: 11
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0059651 | Count 30 days forward from June 5, 2024. What date is that?
from datetime import date, timedelta
start = date(2024, 6, 5) # datetime.date(2024, 6, 5)
end = start + timedelta(days=30) # datetime.date(2024, 7, 5)
print(end.isoformat())
Running it prints 2024-07-05.
It ends on July 5, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2024-07-05", "printed": "2024-07-05", "notation": null} |
nlprog_det-setting-0059652 | <|start|><|system|>
Available functions (JSON Schema):
[{"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": "convert_units", "descr... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 477 | {"gold": "2024-11-29", "printed": "2024-11-29", "notation": null} |
nlprog_det-setting-0059653 | <|start|><|user|>
Rent of $1,800 goes up 8%. What is the new rent?<|eot|>
<|assistant|>
The new rent is $1,944.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 8%. What is the new rent?"
},
{
"role": "assistant",
"content": "The new rent is $1,944.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0059655 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Convert 4 h 48 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
That is 288 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Convert 4 h 48 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": "That is 288 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "288", "printed": "288", "notation": null} |
nlprog_det-setting-0059656 | Each of Rosa's runs burns 400 calories. How many calories over 6 runs?
The computation:
```python
per_session = 400
sessions = 6
total = per_session * sessions # 2400
print(total)
```
The script prints 2400.
That burns 2400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0059657 | A meal costs $166.43. How much is a 18% tip?
Set it up in Python:
```python
bill = 166.43
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 29.9574
print(f"{tip:.2f}")
```
# output: 29.96
The tip is $29.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "29.96", "printed": "29.96", "notation": null} |
nlprog_det-setting-0059658 | Convert 81.7 km to meters.
Computing it:
```python
km = 81.7
meters = km * 1000 # 81700.0
print(round(meters))
```
Run it and it prints 81700.
That is 81,700 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "81700", "printed": "81700", "notation": null} |
nlprog_det-setting-0059659 | 27 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
Python version:
```python
total = 27
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
stdout:
3 each, 3 left over
3 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3 each, 3 left over", "printed": "3 each, 3 left over", "notation": null} |
nlprog_det-setting-0059660 | A claim accrued on March 22, 2012. The limitations period is 2 years. On what date does it expire?
A few lines of Python do it:
```python
from datetime import date
accrued = date(2012, 3, 22) # datetime.date(2012, 3, 22)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 3, 22)
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2014-03-22", "printed": "2014-03-22", "notation": null} |
nlprog_det-setting-0059661 | <|start|><|user|>
How many days are there from February 14, 2024 to May 5, 2024?<|eot|>
<|assistant|>
from datetime import date
first = date(2024, 2, 14) # datetime.date(2024, 2, 14)
second = date(2024, 5, 5) # datetime.date(2024, 5, 5)
print((second - first).days)
Run result — 81
It is 81 days.<|eot... | chat | [
{
"role": "user",
"content": "How many days are there from February 14, 2024 to May 5, 2024?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2024, 2, 14) # datetime.date(2024, 2, 14)\n second = date(2024, 5, 5) # datetime.date(2024, 5, 5)\n print((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0059662 | <|start|><|user|>
To read 480 pages in 15 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 480
days = 15
per_day = pages // days # 32
print(per_day)
```
Interpreter output: 32
That is 32 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 480 pages in 15 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 480\ndays = 15\nper_day = pages // days # 32\nprint(per_day)\n```\nInterpreter output: 32\n\nThat is 32 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0059663 | A trial runs from January 7, 2027 to January 11, 2027, counting both days. How many calendar days is that?
The Python version:
```python
from datetime import date
first = date(2027, 1, 7) # datetime.date(2027, 1, 7)
last = date(2027, 1, 11) # datetime.date(2027, 1, 11)
days = (last - first).days + 1 # 5
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0059665 | Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?
A Python solution:
```python
cost = 12000
salvage = 2000
years = 6
per_year = (cost - salvage) / years # 1666.6666666666667
print(f"{per_year:.2f}")
```
It prints 1666.67.
Depreciati... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "1666.67", "printed": "1666.67", "notation": null} |
nlprog_det-setting-0059666 | <|start|><|system|>
You can call tools. Available tools:
{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 257 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0059667 | <|start|><|user|>
Water costs $18 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons?<|eot|>
<|assistant|>
$68.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons?"
},
{
"role": "assistant",
"content": "$68.40 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "68.40", "printed": "68.40", "notation": null} |
nlprog_det-setting-0059668 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Someone born June 3, 1956 turns how old by May 20, 2029? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1956, 6, 3) # datetime.date(1956, 6, 3)
on = date(2029, 5, 20) # datetime.date(2029, 5, 20)
age = on.y... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Someone born June 3, 1956 turns how old by May 20, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1956, 6, 3) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0059669 | Attendance was 16 out of 20. Express it as a percent.
Here is a short program for it.
present = 16
total = 20
percent = present / total * 100 # 80.0
print(round(percent, 1))
Python prints 80.0, as expected.
Attendance was 80.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0059670 | A 28 lb package ships at $8 base plus $2.50/lb. What is the charge?
base = 8
per_pound = 2.5
weight = 28
cost = base + per_pound * weight
print(f"{cost:.2f}")
It prints: 78.00
The charge is $78.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0059671 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Starting f... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "3530", "printed": "3530", "notation": null} |
nlprog_det-setting-0059672 | An invoice lists 31 pens at $6 each, plus 10% sales tax. What is the invoice total?
Program:
```python
quantity = 31
unit_price = 6
subtotal = quantity * unit_price # 186
total = subtotal * (1 + 10 / 100) # 204.60000000000002
print(f"{total:.2f}")
```
Output:
204.60
The total with tax is $204.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "204.60", "printed": "204.60", "notation": null} |
nlprog_det-setting-0059673 | At $0.70 per mile, what is the reimbursement for 290 miles?
The program:
```python
miles = 290
rate = 0.7
reimbursement = miles * rate # 203.0
print(f"{reimbursement:.2f}")
```
That prints 203.00.
The reimbursement is $203.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "203.00", "printed": "203.00", "notation": null} |
nlprog_det-setting-0059674 | <|start|><|user|>
What average speed covers 410 miles in 2.5 hours?<|eot|>
<|assistant|>
```python
distance = 410
hours = 2.5
speed = distance / hours # 164.0
print(round(speed))
```
It prints: 164
The average speed is 164 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 410 miles in 2.5 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 410\nhours = 2.5\nspeed = distance / hours # 164.0\nprint(round(speed))\n```\nIt prints: 164\n\nThe average speed is 164 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0059675 | <|start|><|user|>
Tariq was born on December 8, 1999. How old is Tariq on April 26, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1999, 12, 8) # datetime.date(1999, 12, 8)
on = date(2026, 4, 26) # datetime.date(2026, 4, 26)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | chat | [
{
"role": "user",
"content": "Tariq was born on December 8, 1999. How old is Tariq on April 26, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1999, 12, 8) # datetime.date(1999, 12, 8)\non = date(2026, 4, 26) # datetime.date(2026, 4, 26)\nage = o... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0059676 | 2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Let's compute it with Python.
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")
```
Interpreter output —... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0059677 | At $15.39 an hour, what does 20 hours of work pay?
Python does the arithmetic:
```python
rate = 15.39
hours = 20
earnings = rate * hours # 307.8
print(f"{earnings:.2f}")
```
Running it prints 307.80, as expected.
That earns $307.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "307.80", "printed": "307.80", "notation": null} |
nlprog_det-setting-0059678 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Walls total 1391 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1391
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
Result:
5
Buy 5 cans.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Walls total 1391 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1391\ncoverage = 300\ncans = math.ce... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0059679 | Wanjiru's scores were 69, 57, 56, 65, 75 and 50. What is the average score?
scores = [69, 57, 56, 65, 75, 50]
average = sum(scores) // len(scores) # 62
print(average)
Printed result — 62
The mean is 62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0059680 | Sales went from 200 to 300. What is the percent change? The change is 50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0059681 | A party has 21 days to respond to a motion served on May 5, 2027, with 3 days added because service was by mail. When is the response due?
The response is due on May 29, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "2027-05-29", "printed": "2027-05-29", "notation": null} |
nlprog_det-setting-0059682 | A 5-day trip pays $69 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?
Python makes this quick:
```python
days = 5
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 905
print(total)
```
Printed:
905
The allowance is $905. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "905", "printed": "905", "notation": null} |
nlprog_det-setting-0059683 | <|start|><|user|>
A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 32-page copy cost?<|eot|>
<|assistant|>
```python
pages = 32
base = 5
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 21.0
print(f"{cost:.2f}")
```
(Out: 21.00)
The total is $2... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 32-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 32\nbase = 5\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0059684 | What simple interest does $2,500 earn at 5% a year over 5 years?
Python, step by step:
principal = 2500
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 625.0
print(f"{interest:.2f}")
What it prints: 625.00
It earns $625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0059685 | <|start|><|user|>
4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 4 # 16800.0
print(f"{per_client:.2f}")
```
Printed:
168... | chat | [
{
"role": "user",
"content": "4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0059686 | A settlement of $7,350 is split equally among 2 parties. How much does each party receive?
```python
settlement = 7350
parties = 2
share = settlement // parties # 3675
print(share)
```
Execution result: 3675
Each share is $3,675. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "3675", "printed": "3675", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.