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-0074098 | A meeting starts at 9:40 AM and lasts 25 minutes. When does it end?
As a program:
```python
start = 9 * 60 + 40
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Python prints 10:05 AM, as expected.
It ends at 10:05 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "10:05 AM", "printed": "10:05 AM", "notation": null} |
nlprog_det-setting-0074099 | Convert 56.2 km to meters.
Program:
```python
km = 56.2
meters = km * 1000 # 56200.0
print(round(meters))
```
This prints: 56200
That is 56,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "56200", "printed": "56200", "notation": null} |
nlprog_det-setting-0074100 | Under a 25% contingency agreement, what fee is owed on a $40,000 award?
Here is a short program for it.
```python
recovery = 40000
rate = 25 / 100 # 0.25
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Execution prints 10000.00.
The lawyer's fee comes to $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0074101 | At $16.01 an hour, what does 38 hours of work pay?
Python, step by step:
```python
rate = 16.01
hours = 38
earnings = rate * hours
print(f"{earnings:.2f}")
```
Console output: 608.38
That earns $608.38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "608.38", "printed": "608.38", "notation": null} |
nlprog_det-setting-0074102 | <|start|><|user|>
$10,000 is invested at 4% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 11698.585600000002
print(f"{value:.2f}")
```
stdout — 11698.59
It is worth $11,698.59.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 4% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = principal * (1 + rate) ** years # 11698.585600000002\nprint(f\"{value:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0074103 | <|start|><|user|>
Divide 91 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
The answer: 30 each, 1 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Divide 91 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "The answer: 30 each, 1 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "30 each, 1 left over", "printed": "30 each, 1 left over", "notation": null} |
nlprog_det-setting-0074104 | Express 195 hours in days and hours.
Here is a short program for it.
```python
hours = 195
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output = 8 days and 3 hours
That is 8 days and 3 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "8 days and 3 hours", "printed": "8 days and 3 hours", "notation": null} |
nlprog_det-setting-0074105 | <|start|><|system|>
Tool definitions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python", "description": "Python sandbox for calculat... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "2019-03-26", "printed": "2019-03-26", "notation": null} |
nlprog_det-setting-0074106 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A trial runs from July 17, 2019 to July 24, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 8 days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A trial runs from July 17, 2019 to July 24, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 8 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0074107 | <|start|><|system|>
Functions:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type":... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"run_python\", \"description\": \"Runs a short Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074108 | Fines run at $100 per day up to a maximum of $2,500. How much after 35 days?
```python
per_day = 100
days = 35
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Result — 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0074109 | <|start|><|user|>
Mei's scores were 98, 93, 55, 56, 50 and 62. What is the average score?<|eot|>
<|assistant|>
```python
scores = [98, 93, 55, 56, 50, 62]
average = sum(scores) // len(scores) # 69
print(average)
```
It prints 69, as expected.
The mean is 69.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mei's scores were 98, 93, 55, 56, 50 and 62. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [98, 93, 55, 56, 50, 62]\naverage = sum(scores) // len(scores) # 69\nprint(average)\n```\nIt prints 69, as expected.\n\nThe mean is 69... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0074110 | Pack A has 6 items for $10.22. Pack B has 18 items for $11.09. Which has the lower price per item?
In Python:
```python
pack_a = 10.22 / 6 # 1.7033333333333334
pack_b = 11.09 / 18 # 0.616111111111111
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The interpreter prints: B
B has the lower unit p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0074111 | Jonas earns a 3% commission on $95,660 of sales. What is the commission?
We write it as a program:
```python
sales = 95660
rate = 3 / 100 # 0.03
commission = sales * rate # 2869.7999999999997
print(f"{commission:.2f}")
```
This prints: 2869.80
The commission is $2,869.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2869.80", "printed": "2869.80", "notation": null} |
nlprog_det-setting-0074112 | 2 claimants share a $524 settlement equally. What is each share?
One way, in code:
settlement = 524
parties = 2
share = settlement // parties # 262
print(share)
Interpreter output: 262
Each share is $262. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0074113 | $10,000 is invested at 5% compounded yearly. What is it worth after 3 years?
Python, step by step:
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 3
value = principal * (1 + rate) ** years # 11576.250000000002
print(f"{value:.2f}")
```
Run it and it prints 11576.25.
The balance is $11,576.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "11576.25", "printed": "11576.25", "notation": null} |
nlprog_det-setting-0074114 | If a 5-year limitations period starts on November 9, 2022, when does it end?
Computing it:
```python
from datetime import date
accrued = date(2022, 11, 9) # datetime.date(2022, 11, 9)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 11, 9)
print(expires.isoformat())
```
stdout — 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2027-11-09", "printed": "2027-11-09", "notation": null} |
nlprog_det-setting-0074115 | Pack A has 12 items for $5.42. Pack B has 24 items for $28.81. Which has the lower price per item?
Here's the code.
```python
pack_a = 5.42 / 12 # 0.45166666666666666
pack_b = 28.81 / 24 # 1.2004166666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The program prints: A
A has the lower un... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0074116 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Each storage box holds 12 files. How many boxes are needed for 347 files?<|eot|>
<|assistant|>
```python
import math
files = 347
per_box = 12
boxes = math.ceil(files / per_box) # 29
print(boxes)
```
Run output — 29
29 boxes are needed.<|eo... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 347 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 347\nper_box = 12\nboxes = mat... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0074117 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 42 days?
In code:
```python
per_day = 25
days = 42
cap = 2500
fine = min(per_day * days, cap)
print(fine)
```
It prints: 1050
The fine is $1,050. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0074118 | With 13 rows of 18 chairs and 16 empty chairs, how many chairs are taken?
```python
rows = 13
per_row = 18
empty = 16
seated = rows * per_row - empty # 218
print(seated)
```
It outputs: 218
218 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "218", "printed": "218", "notation": null} |
nlprog_det-setting-0074119 | A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?
Python, step by step:
grant = 12000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
Output: 1000.00
$1,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0074120 | Abel's scores were 98, 84, 96, 50, 99 and 89. What is the average score?
We can compute it in Python.
```python
scores = [98, 84, 96, 50, 99, 89]
average = sum(scores) // len(scores) # 86
print(average)
```
Executed, it shows 86.
The mean is 86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0074121 | <|start|><|system|>
You have access to these functions:
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "business_days... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 361 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0074123 | <|start|><|user|>
Which is cheaper per unit: 6 for $6.40 (A) or 18 for $29.30 (B)?<|eot|>
<|assistant|>
Pack A is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $6.40 (A) or 18 for $29.30 (B)?"
},
{
"role": "assistant",
"content": "Pack A is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0074124 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Buying 1 batteries at $18 each, 4 desk lamps at $25 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 18), (4, 25)]
total = sum(q * p for q, p in items)
paid = 150
change = paid - total
print(change)
```... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Buying 1 batteries at $18 each, 4 desk lamps at $25 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 18), (4, 25)]\nt... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0074125 | Malik was born on February 19, 1987. How old is Malik on January 12, 2024?
As Python:
from datetime import date
born = date(1987, 2, 19) # datetime.date(1987, 2, 19)
on = date(2024, 1, 12) # datetime.date(2024, 1, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 36
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0074127 | A clerk's office charges $50 for each filing. Mateo submits 13 filings. What is the total fee?
In Python:
```python
fee = 50
filings = 13
total = fee * filings # 650
print(total)
```
Running it prints: 650
$650 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0074128 | A library charges $0.25 per book per day late. What is the fine for 4 books that are 23 days late?
Computation in Python:
per_day = 0.25
days_late = 23
books = 4
fine = per_day * days_late * books # 23.0
print(f"{fine:.2f}")
Python prints: 23.00
The fine is $23.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0074129 | Counting the first and last day, how many days are there from May 23, 2020 through June 17, 2020?
The Python version:
from datetime import date
first = date(2020, 5, 23) # datetime.date(2020, 5, 23)
last = date(2020, 6, 17) # datetime.date(2020, 6, 17)
days = (last - first).days + 1 # 26
print(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0074130 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
21 of 25 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 21
total = 25
percent = present / total * 100 # 84.0
print(round(percent, 1))
```
Output of the run — 84.0
84.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "21 of 25 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 21\ntotal = 25\npercent = present / total * 100 # 84.0\nprint(round(percent, 1))\... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "84.0", "printed": "84.0", "notation": null} |
nlprog_det-setting-0074131 | <|start|><|system|>
Functions:
{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
What simple interest does $1,000 earn at 5%... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0074132 | After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?
As a program:
```python
grant = 60000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 4750.0
print(f"{each:.2f}")
```
(Out: 4750.00)
$4,750.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "4750.00", "printed": "4750.00", "notation": null} |
nlprog_det-setting-0074133 | Fines run at $100 per day up to a maximum of $1,000. How much after 47 days?
Here's the code.
```python
per_day = 100
days = 47
cap = 1000
fine = min(per_day * days, cap)
print(fine)
```
The printout reads 1000.
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0074134 | A 100-mile drive at a steady 40 mph takes how many minutes?
Here is a short program for it.
```python
distance = 100
speed = 40
minutes = distance / speed * 60 # 150.0
print(round(minutes))
```
Run output — 150
The trip takes 150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0074135 | Rent of $1,800 goes up 4%. What is the new rent?
rent = 1800
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1872.0
print(f"{new_rent:.2f}")
The printout reads 1872.00.
The new rent is $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0074137 | <|start|><|user|>
A trial runs from February 25, 2028 to March 4, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
from datetime import date
first = date(2028, 2, 25)
last = date(2028, 3, 4)
days = (last - first).days + 1
print(days)
Execution prints: 9
That is 9 days.... | chat | [
{
"role": "user",
"content": "A trial runs from February 25, 2028 to March 4, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2028, 2, 25)\n last = date(2028, 3, 4)\n days = (last - first).days... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0074138 | How many days are there from January 10, 2026 to April 9, 2026?
Here's the code.
```python
from datetime import date
first = date(2026, 1, 10) # datetime.date(2026, 1, 10)
second = date(2026, 4, 9) # datetime.date(2026, 4, 9)
print((second - first).days)
```
# run result: 89
There are 89 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0074139 | A trial runs from October 17, 2019 to October 28, 2019, counting both days. How many calendar days is that?
As a program:
```python
from datetime import date
first = date(2019, 10, 17) # datetime.date(2019, 10, 17)
last = date(2019, 10, 28) # datetime.date(2019, 10, 28)
days = (last - first).days + 1 # 12
print(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074140 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A 120-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
That prints 240.
240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A 120-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 120\nspeed = 30\nminutes = distance / speed * 60 # 240.0\nprint(round(min... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0074141 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What simple interest does $8,000 earn at 5% a year over 6 years?<|eot|>
<|assistant|>
It earns $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What simple interest does $8,000 earn at 5% a year over 6 years?"
},
{
"role": "assistant",
"content": "It earns $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0074142 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
```
(stdout: 16)
Parking costs $16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 8\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 16\nprint(cost)\n```\n(stdout: 16)\n\nParking costs $16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0074143 | Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Let the code do the arithmetic:
```python
revenue = 6500
costs = 4000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Python prints 38.5, as expected.
Profit is 38.5% of revenu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0074144 | Find the mean of these test scores: 92, 95, 93, 97 and 83.
A few lines of Python do it:
```python
scores = [92, 95, 93, 97, 83]
average = sum(scores) // len(scores) # 92
print(average)
```
Running this gives: 92
The average score is 92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0074146 | <|start|><|user|>
The rules require 2/3 of 17 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
12 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 17 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "12 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0074147 | Monthly rent is $2,400. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?
```python
rent = 2400
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 1083.8709677419354
print(f"{prorated:.2f}")
```
Run it and it prints: 1083.87
The tenant owes $1,083.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "1083.87", "printed": "1083.87", "notation": null} |
nlprog_det-setting-0074148 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
A hall has 6 rows of 19 seats, and 14 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 6
per_row = 19
empty = 14
seated = rows * per_row - empty # 100
print(seated)
Out: 100
100 seats are taken.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "A hall has 6 rows of 19 seats, and 14 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 6\n per_row = 19\n empty = 14\n seated = rows... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0074149 | A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?
Computation in Python:
```python
recovery = 150000
rate = 35 / 100 # 0.35
fee = recovery * rate # 52500.0
print(f"{fee:.2f}")
```
(Program output: 52500.00)
The lawyer's fee comes to $52,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "52500.00", "printed": "52500.00", "notation": null} |
nlprog_det-setting-0074150 | <|start|><|user|>
A car gets 25 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?<|eot|>
<|assistant|>
The trip uses $39.55 of gas.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car gets 25 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?"
},
{
"role": "assistant",
"content": "The trip uses $39.55 of gas."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "39.55", "printed": "39.55", "notation": null} |
nlprog_det-setting-0074151 | <|start|><|user|>
Jae lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
principal = 5000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 600.0
print(f"{interest:.2f}")
Printed = 600.00
The interest is $600.00.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Jae lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": " principal = 5000\n rate = 6 / 100 # 0.06\n years = 2\n interest = principal * rate * years # 600.0\n print(f\"{interest... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0074152 | A library charges $0.15 per book per day late. What is the fine for 1 books that are 6 days late?
In code:
```python
per_day = 0.15
days_late = 6
books = 1
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Output of the run: 0.90
$0.90 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "0.90", "printed": "0.90", "notation": null} |
nlprog_det-setting-0074153 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $6,000, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 10
per_year = (cost - salvage) / years # 600.0
print(f"{per_year:.2f}")
```
Out — 600.00
Depreciation is $600.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $6,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 10\nper_year = (cost - salvage) / years # 600.0\nprint(f\"{per_year:.2f}\")\n```\nOut — 60... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0074154 | How many days are there from May 23, 2025 to April 4, 2026?
Set it up in Python:
```python
from datetime import date
first = date(2025, 5, 23) # datetime.date(2025, 5, 23)
second = date(2026, 4, 4) # datetime.date(2026, 4, 4)
print((second - first).days)
```
Run result = 316
It is 316 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "316", "printed": "316", "notation": null} |
nlprog_det-setting-0074155 | Walls total 897 sq ft and each can covers 350 sq ft. How many cans should be bought?
As a program:
```python
import math
area = 897
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
stdout — 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0074156 | Sales went from 1,000 to 1,100. What is the percent change?
Python makes this quick:
```python
old = 1000
new = 1100
change = (new - old) / old * 100
print(round(change))
```
The script prints 10, as expected.
The change is 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0074157 | Paula lends $12,000 at 5% simple interest per year for 4 years. How much interest is earned?
Python makes this quick:
```python
principal = 12000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 2400.0
print(f"{interest:.2f}")
```
(Out: 2400.00)
The interest is $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0074158 | <|start|><|user|>
A 6-month warranty starts on January 8, 2024. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on July 8, 2024.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on January 8, 2024. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on July 8, 2024."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2024-07-08", "printed": "2024-07-08", "notation": null} |
nlprog_det-setting-0074159 | <|start|><|user|>
A 1180-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 1180
days = 20
per_day = pages // days # 59
print(per_day)
```
The run gives 59, as expected.
59 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 1180-page report must be reviewed in 20 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 1180\ndays = 20\nper_day = pages // days # 59\nprint(per_day)\n```\nThe run gives 59, as expected.\n\n59 pages a day."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0074161 | Filing fees are $405 per document. What do 14 filings cost?
Python, step by step:
fee = 405
filings = 14
total = fee * filings # 5670
print(total)
Printed:
5670
The filings cost $5,670 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "5670", "printed": "5670", "notation": null} |
nlprog_det-setting-0074162 | A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?
Here's the code.
```python
grant = 48000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 11250.0
print(f"{each:.2f}")
```
Running this gives 11250.00.
Each installment is $11,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0074163 | Which is cheaper per unit: 6 for $5.30 (A) or 18 for $15.50 (B)?
A few lines of Python do it:
```python
pack_a = 5.3 / 6 # 0.8833333333333333
pack_b = 15.5 / 18 # 0.8611111111111112
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Result: B)
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0074164 | <|start|><|user|>
What percentage of $4,000 is $3,200?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 3200
percent = spent / budget * 100 # 80.0
print(round(percent, 1))
```
Python prints 80.0.
That is 80.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $3,200?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 3200\npercent = spent / budget * 100 # 80.0\nprint(round(percent, 1))\n```\nPython prints 80.0.\n\nThat is 80.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0074165 | <|start|><|user|>
A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?<|eot|>
<|assistant|>
The allowance is $995.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "The allowance is $995."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "995", "printed": "995", "notation": null} |
nlprog_det-setting-0074166 | What does $1,000 grow to in 4 years at 5% annual compounding?
Written as code:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 1215.5062500000001
print(f"{value:.2f}")
```
It prints: 1215.51
The balance is $1,215.51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1215.51", "printed": "1215.51", "notation": null} |
nlprog_det-setting-0074168 | How many weekdays (Monday to Friday) fall after August 5, 2027 up to and including August 29, 2027?
Here is a short program for it.
```python
from datetime import date, timedelta
start = date(2027, 8, 5)
end = date(2027, 8, 29)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).wee... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0074169 | <|start|><|user|>
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 21... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0074170 | A service costs $15 a month or $150 a year. How much does the yearly plan save over 12 monthly payments?
Here is the program.
```python
monthly = 15
yearly = 150
savings = monthly * 12 - yearly
print(savings)
```
The interpreter prints: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0074171 | From a $2,500 retainer, 9 hours at $200/hour have been drawn. What remains?
```python
retainer = 2500
hours = 9
rate = 200
left = retainer - hours * rate # 700
print(left)
```
Printed:
700
$700 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0074172 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_uni... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0074173 | <|start|><|user|>
What day of the week is August 5, 2006?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2006, 8, 5) # datetime.date(2006, 8, 5)
print(hearing.strftime("%A"))
```
The program outputs Saturday.
August 5, 2006 is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is August 5, 2006?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2006, 8, 5) # datetime.date(2006, 8, 5)\nprint(hearing.strftime(\"%A\"))\n```\nThe program outputs Saturday.\n\nAugust 5, 2006 is a S... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0074174 | The building opened in 2014. How many years had passed by 2052?
Let the code do the arithmetic:
```python
start_year = 2014
end_year = 2052
print(end_year - start_year)
```
(Printed: 38)
That is 38 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0074175 | <|start|><|user|>
What day of the week is May 22, 2018?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2018, 5, 22) # datetime.date(2018, 5, 22)
print(hearing.strftime("%A"))
```
Execution prints Tuesday, as expected.
May 22, 2018 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is May 22, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2018, 5, 22) # datetime.date(2018, 5, 22)\nprint(hearing.strftime(\"%A\"))\n```\nExecution prints Tuesday, as expected.\n\nMay 22, 2018... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0074176 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
What is a 10% tip on a $77.23 bill?<|eot|>
<|assistant|>
```python
bill = 77.23
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 7.723000000000001
print(f"{tip:.2f}")
```
Python prints 7.72, as expected.
Leave $7.72.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "What is a 10% tip on a $77.23 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 77.23\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 7.723000000000001\nprint(f\"{tip:.2f}\")\n```\nPython... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "7.72", "printed": "7.72", "notation": null} |
nlprog_det-setting-0074177 | <|start|><|system|>
Tool definitions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"fetch_filing\", \"description\": \"Fetch an... | nlprog_det | setting | original | null | deterministic | [] | [] | 360 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0074178 | A trial runs from August 17, 2022 to September 1, 2022, counting both days. How many calendar days is that?
from datetime import date
first = date(2022, 8, 17) # datetime.date(2022, 8, 17)
last = date(2022, 9, 1) # datetime.date(2022, 9, 1)
days = (last - first).days + 1 # 16
print(days)
That pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0074179 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Notice was given on August 20, 2025. The notice period is 14 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 8, 20) # datetime.date(2025, 8, 20)
end = start + timedelta(days=14) ... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Notice was given on August 20, 2025. The notice period is 14 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstar... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "2025-09-03", "printed": "2025-09-03", "notation": null} |
nlprog_det-setting-0074180 | At 65 miles per hour, how many minutes does a 195-mile trip take?
A Python solution:
```python
distance = 195
speed = 65
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Printed result: 180
180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0074181 | 838 files go into boxes of 20. How many boxes does that take?
Python:
```python
import math
files = 838
per_box = 20
boxes = math.ceil(files / per_box) # 42
print(boxes)
```
Result — 42
42 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0074182 | <|start|><|user|>
A measure needs at least 60% of 187 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 187
needed = math.ceil(voters * 60 / 100)
print(needed)
```
# stdout: 113
At least 113 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 187 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 187\nneeded = math.ceil(voters * 60 / 100)\nprint(needed)\n```\n# stdout: 113\n\nAt least 113 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0074183 | <|start|><|user|>
At 60 miles per hour, how many minutes does a 380-mile trip take?<|eot|>
<|assistant|>
```python
distance = 380
speed = 60
minutes = distance / speed * 60
print(round(minutes))
```
The code prints 380.
380 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 60 miles per hour, how many minutes does a 380-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 380\nspeed = 60\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nThe code prints 380.\n\n380 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "380", "printed": "380", "notation": null} |
nlprog_det-setting-0074184 | How many weekdays (Monday to Friday) fall after April 22, 2018 up to and including May 1, 2018?
Let the code do the arithmetic:
from datetime import date, timedelta
start = date(2018, 4, 22)
end = date(2018, 5, 1)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0074185 | <|start|><|user|>
With 16 rows of 18 chairs and 1 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 16
per_row = 18
empty = 1
seated = rows * per_row - empty # 287
print(seated)
```
stdout: 287
287 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 16 rows of 18 chairs and 1 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 16\nper_row = 18\nempty = 1\nseated = rows * per_row - empty # 287\nprint(seated)\n```\nstdout: 287\n\n287 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "287", "printed": "287", "notation": null} |
nlprog_det-setting-0074186 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 7 thousand gallons?
Computation in Python:
```python
base = 18
rate = 5.1
used = 7
free = 2
bill = base + rate * max(0, used - free) # 43.5
print(f"{bill:.2f}")
```
Run it and it prints 43.50.
$43.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "43.50", "printed": "43.50", "notation": null} |
nlprog_det-setting-0074187 | Attendance was 13 out of 25. Express it as a percent.
Program:
present = 13
total = 25
percent = present / total * 100 # 52.0
print(round(percent, 1))
# run result: 52.0
Attendance was 52.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "52.0", "printed": "52.0", "notation": null} |
nlprog_det-setting-0074188 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
810 files go into boxe... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0074189 | A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 59-page copy cost?
In Python:
```python
pages = 59
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 20.9
print(f"{cost:.2f}")
```
Program output — 20.90
The copy costs $20.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "20.90", "printed": "20.90", "notation": null} |
nlprog_det-setting-0074190 | <|start|><|user|>
The bridge was finished in 2013. How many years had passed by 2032?<|eot|>
<|assistant|>
```python
start_year = 2013
end_year = 2032
print(end_year - start_year)
```
Program output: 19
That is 19 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The bridge was finished in 2013. How many years had passed by 2032?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2013\nend_year = 2032\nprint(end_year - start_year)\n```\nProgram output: 19\n\nThat is 19 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0074192 | Convert 10 °C to Fahrenheit.
A few lines of Python do it:
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
The interpreter prints: 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0074193 | How long, in days, is it from June 20, 2018 until November 27, 2018?
We can compute it in Python.
```python
from datetime import date
first = date(2018, 6, 20) # datetime.date(2018, 6, 20)
second = date(2018, 11, 27) # datetime.date(2018, 11, 27)
print((second - first).days)
```
The printout reads 160.
There are 16... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0074194 | Goods bought on October 12, 2020 carry a 18-month warranty. When does it expire?
In Python:
```python
from datetime import date
start = date(2020, 10, 12)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Python p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2022-04-12", "printed": "2022-04-12", "notation": null} |
nlprog_det-setting-0074195 | At $28.96 an hour, what does 38 hours of work pay?
Python, step by step:
```python
rate = 28.96
hours = 38
earnings = rate * hours # 1100.48
print(f"{earnings:.2f}")
```
Output: 1100.48
That earns $1,100.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1100.48", "printed": "1100.48", "notation": null} |
nlprog_det-setting-0074196 | How many units at $30 each (variable cost $24) cover $4,000 of fixed costs?
Python, step by step:
```python
import math
fixed = 4000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
Printed: 667
667 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0074197 | <|start|><|user|>
To read 860 pages in 20 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 860
days = 20
per_day = pages // days # 43
print(per_day)
```
The program prints 43, as expected.
That is 43 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 860 pages in 20 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 860\ndays = 20\nper_day = pages // days # 43\nprint(per_day)\n```\nThe program prints 43, as expected.\n\nThat is 43 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0074198 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "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": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"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 | [] | [] | 247 | {"gold": "11248.64", "printed": "11248.64", "notation": null} |
nlprog_det-setting-0074199 | An office budget of $5,000 has expenses of $1,364, $1,552. How much of the budget is left?
One way, in code:
```python
budget = 5000
expenses = [1364, 1552]
left = budget - sum(expenses) # 2084
print(left)
```
On running, it outputs: 2084
$2,084 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2084", "printed": "2084", "notation": null} |
nlprog_det-setting-0074200 | If a 150-minute shift begins at 2:20 PM, what time does it finish?
Python, step by step:
```python
start = 14 * 60 + 20
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution result: 4:50 PM
The shift finishes at 4:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "4:50 PM", "printed": "4:50 PM", "notation": null} |
nlprog_det-setting-0074201 | <|start|><|user|>
Walls total 691 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 691
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
Execution prints: 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 691 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 691\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nExecution prints: 2\n\n2 cans ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0074202 | <|start|><|user|>
A hall has 10 rows of 19 seats, and 29 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 10
per_row = 19
empty = 29
seated = rows * per_row - empty # 161
print(seated)
```
Program output — 161
161 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 10 rows of 19 seats, and 29 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 10\nper_row = 19\nempty = 29\nseated = rows * per_row - empty # 161\nprint(seated)\n```\nProgram output — 161\n\n161 people ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "161", "printed": "161", "notation": null} |
nlprog_det-setting-0074203 | <|start|><|user|>
Find the mean of these test scores: 69, 80 and 61.<|eot|>
<|assistant|>
```python
scores = [69, 80, 61]
average = sum(scores) // len(scores) # 70
print(average)
```
Printed result: 70
The average score is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 69, 80 and 61."
},
{
"role": "assistant",
"content": "```python\nscores = [69, 80, 61]\naverage = sum(scores) // len(scores) # 70\nprint(average)\n```\nPrinted result: 70\n\nThe average score is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0074204 | <|start|><|user|>
Goods bought on November 16, 2024 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on May 16, 2026.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on November 16, 2024 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on May 16, 2026."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2026-05-16", "printed": "2026-05-16", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.