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-0061811 | How many of 18 members form a majority (more than half)?
Python does the arithmetic:
```python
members = 18
majority = members // 2 + 1 # 10
print(majority)
```
Result:
10
10 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0061812 | <|start|><|user|>
A count moves from 500 to 525. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
The change is 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 525. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "The change is 5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0061813 | <|start|><|user|>
At an exchange rate of 1.12 USD per EUR, how many USD is 8,640 EUR?<|eot|>
<|assistant|>
```python
amount = 8640
rate = 1.12
converted = amount * rate # 9676.800000000001
print(f"{converted:.2f}")
```
Execution result: 9676.80
That is 9,676.80 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per EUR, how many USD is 8,640 EUR?"
},
{
"role": "assistant",
"content": "```python\namount = 8640\nrate = 1.12\nconverted = amount * rate # 9676.800000000001\nprint(f\"{converted:.2f}\")\n```\nExecution result: 9676.80\n\nThat is 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "9676.80", "printed": "9676.80", "notation": null} |
nlprog_det-setting-0061814 | <|start|><|user|>
What percentage of $8,000 is $1,600?<|eot|>
<|assistant|>
That is 20.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $1,600?"
},
{
"role": "assistant",
"content": "That is 20.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0061815 | After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?
Coded up:
grant = 24000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
Running it prints 6000.00, as expected.
$6,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0061817 | <|start|><|user|>
A meeting starts at 12:40 PM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 12 * 60 + 40
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Python prints: 1:55 PM
The meeting finishes at 1:55 P... | chat | [
{
"role": "user",
"content": "A meeting starts at 12:40 PM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 12 * 60 + 40\nend = start + 75\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 | [] | [] | 133 | {"gold": "1:55 PM", "printed": "1:55 PM", "notation": null} |
nlprog_det-setting-0061818 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A garage c... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0061819 | With 20 rows of 14 chairs and 18 empty chairs, how many chairs are taken?
Computing it:
rows = 20
per_row = 14
empty = 18
seated = rows * per_row - empty # 262
print(seated)
(Execution result: 262)
262 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0061820 | <|start|><|user|>
After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each share is $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each share is $14,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0061821 | <|start|><|user|>
How long, in days, is it from October 11, 2023 until November 9, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 10, 11) # datetime.date(2023, 10, 11)
second = date(2023, 11, 9) # datetime.date(2023, 11, 9)
print((second - first).days)
```
Running it prints: 29
The... | chat | [
{
"role": "user",
"content": "How long, in days, is it from October 11, 2023 until November 9, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 10, 11) # datetime.date(2023, 10, 11)\nsecond = date(2023, 11, 9) # datetime.date(2023, 11, 9)\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0061822 | To read 360 pages in 8 days, how many pages per day are needed?
Coded up:
```python
pages = 360
days = 8
per_day = pages // days # 45
print(per_day)
```
The interpreter prints: 45
That is 45 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0061823 | 103 files go into boxes of 12. How many boxes does that take?
Python, step by step:
```python
import math
files = 103
per_box = 12
boxes = math.ceil(files / per_box) # 9
print(boxes)
```
Interpreter output — 9
9 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0061824 | <|start|><|user|>
51 of 100 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 51
total = 100
percent = present / total * 100 # 51.0
print(round(percent, 1))
```
The program prints 51.0.
51.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "51 of 100 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 51\ntotal = 100\npercent = present / total * 100 # 51.0\nprint(round(percent, 1))\n```\nThe program prints 51.0.\n\n51.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "51.0", "printed": "51.0", "notation": null} |
nlprog_det-setting-0061825 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A library charges $... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "9.50", "printed": "9.50", "notation": null} |
nlprog_det-setting-0061826 | What commission does Oskar make on $45,944 in sales at 8%?
Here is a short program for it.
```python
sales = 45944
rate = 8 / 100 # 0.08
commission = sales * rate # 3675.52
print(f"{commission:.2f}")
```
It outputs 3675.52.
The commission is $3,675.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3675.52", "printed": "3675.52", "notation": null} |
nlprog_det-setting-0061827 | With 15 rows of 18 chairs and 11 empty chairs, how many chairs are taken? 259 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "259", "printed": "259", "notation": null} |
nlprog_det-setting-0061828 | Shipping costs $8 plus $2.00 per pound. What does a 37-pound parcel cost to ship?
Computation in Python:
```python
base = 8
per_pound = 2.0
weight = 37
cost = base + per_pound * weight # 82.0
print(f"{cost:.2f}")
```
Shell output — 82.00
Shipping costs $82.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "82.00", "printed": "82.00", "notation": null} |
nlprog_det-setting-0061829 | <|start|><|user|>
A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 6
each = bill * (1 + tip_rate) / people # 41.3
print(f"{each:.2f}")
```
This prints: 41.30
Each person pays $41.30.<|eot... | chat | [
{
"role": "user",
"content": "A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 6\neach = bill * (1 + tip_rate) / people # 41.3\nprint(f\"{each:... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "41.30", "printed": "41.30", "notation": null} |
nlprog_det-setting-0061830 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $7,500 over 5 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 562.5
print(f"{interest:.2f}")
```
Execution prints: 562.50
The interest is $562.50.<|eot|>
... | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $7,500 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 562.5\nprint(f\"{interest:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0061831 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Goods bought... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "2030-11-01", "printed": "2030-11-01", "notation": null} |
nlprog_det-setting-0061833 | What is the total rent on a 18-month lease at $1,640 a month?
Python:
```python
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
```
# result: 29520
In total, $29,520 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0061834 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "eval_python... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 348 | {"gold": "1525.00", "printed": "1525.00", "notation": null} |
nlprog_det-setting-0061835 | Papers were served by mail on November 23, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
A short script:
```python
from datetime import date, timedelta
served = date(2018, 11, 23) # datetime.date(2018, 11, 23)
response_days = 28
mail_days = 3
due = served + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2018-12-24", "printed": "2018-12-24", "notation": null} |
nlprog_det-setting-0061836 | <|start|><|user|>
Someone born September 25, 1969 turns how old by January 6, 2025? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1969, 9, 25) # datetime.date(1969, 9, 25)
on = date(2025, 1, 6) # datetime.date(2025, 1, 6)
age = on.year - born.year - ((on.month, on.d... | chat | [
{
"role": "user",
"content": "Someone born September 25, 1969 turns how old by January 6, 2025? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1969, 9, 25) # datetime.date(1969, 9, 25)\non = date(2025, 1, 6) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0061837 | <|start|><|system|>
You have access to these functions:
{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Pror... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "660.00", "printed": "660.00", "notation": null} |
nlprog_det-setting-0061838 | A car travels 569 miles in 1 hours. What is its average speed in miles per hour?
Translated to Python:
```python
distance = 569
hours = 1
speed = distance / hours # 569.0
print(round(speed))
```
Executing it gives: 569
It averages 569 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "569", "printed": "569", "notation": null} |
nlprog_det-setting-0061839 | Copies cost $10 plus $0.25 for each page beyond 0. How much for 53 pages?
We write it as a program:
pages = 53
base = 10
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
(Program output: 23.25)
The copy costs $23.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "23.25", "printed": "23.25", "notation": null} |
nlprog_det-setting-0061840 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after December 13, 2025 through December 28, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 12, 13)
end = date(2025, 12, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after December 13, 2025 through December 28, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 12, 13)\nend = date(2025, 12, 28)\ncou... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0061841 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $1,000. How much after 60 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 60
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# out: 1000
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $1,000. How much after 60 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 60\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n# out: 1000\n\n$1,000 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0061842 | Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0061843 | <|start|><|user|>
What does $1,000 grow to in 5 years at 2% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 1104.0808032
print(f"{value:.2f}")
```
The program prints: 1104.08
It is worth $1,104.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 5 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 1104.0808032\nprint(f\"{value:.2f}\")\n```\nThe program pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0061844 | Prorate $2,400 of monthly rent for 10 days of a 31-day month.
Python does the arithmetic:
```python
rent = 2400
days_in_month = 31
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 774.1935483870968
print(f"{prorated:.2f}")
```
It outputs 774.19.
The tenant owes $774.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "774.19", "printed": "774.19", "notation": null} |
nlprog_det-setting-0061845 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 12
inte... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0061846 | Which is cheaper per unit: 10 for $6.95 (A) or 30 for $23.73 (B)?
Program:
```python
pack_a = 6.95 / 10 # 0.6950000000000001
pack_b = 23.73 / 30 # 0.791
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
When run, it prints A, as expected.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0061847 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0061848 | A $1,500 security deposit has deductions of $85, $150 and $45. How much is refunded?
Written as code:
```python
deposit = 1500
deductions = [85, 150, 45]
refund = deposit - sum(deductions) # 1220
print(refund)
```
It outputs: 1220
The refund is $1,220. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1220", "printed": "1220", "notation": null} |
nlprog_det-setting-0061849 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Fines run at $250 per day up to a maximum of $2,500. How much after 50 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 50
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The interpreter prints 2500.
The fine is $2,500.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $2,500. How much after 50 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 50\ncap = 2500\nfine = min(per_day * days, cap)... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0061851 | <|start|><|user|>
Sales went from 500 to 700. What is the percent change?<|eot|>
<|assistant|>
old = 500
new = 700
change = (new - old) / old * 100 # 40.0
print(round(change))
Program output — 40
It changed by 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 500 to 700. What is the percent change?"
},
{
"role": "assistant",
"content": " old = 500\n new = 700\n change = (new - old) / old * 100 # 40.0\n print(round(change))\nProgram output — 40\n\nIt changed by 40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0061852 | <|start|><|user|>
Prorate $2,400 of monthly rent for 17 days of a 30-day month.<|eot|>
<|assistant|>
rent = 2400
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 1360.0
print(f"{prorated:.2f}")
What it prints: 1360.00
The prorated rent is $1,360.00.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 17 days of a 30-day month."
},
{
"role": "assistant",
"content": " rent = 2400\n days_in_month = 30\n days_occupied = 17\n prorated = rent * days_occupied / days_in_month # 1360.0\n print(f\"{prorated:.2f}\")\nWhat ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1360.00", "printed": "1360.00", "notation": null} |
nlprog_det-setting-0061853 | <|start|><|user|>
Someone works 24 hours at $30.55 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 30.55
hours = 24
earnings = rate * hours # 733.2
print(f"{earnings:.2f}")
```
Interpreter output: 733.20
That earns $733.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 24 hours at $30.55 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.55\nhours = 24\nearnings = rate * hours # 733.2\nprint(f\"{earnings:.2f}\")\n```\nInterpreter output: 733.20\n\nThat earns $733.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "733.20", "printed": "733.20", "notation": null} |
nlprog_det-setting-0061854 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?
```python
cost = 12000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
Printed:
1500.00
$1,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0061855 | <|start|><|user|>
4 boxes hold 12 chairs each. After 2 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 12
given_away = 2
left = boxes * per_box - given_away # 46
print(left)
```
Printed result: 46
That leaves 46 chairs.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 boxes hold 12 chairs each. After 2 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_box = 12\ngiven_away = 2\nleft = boxes * per_box - given_away # 46\nprint(left)\n```\nPrinted result: 46\n\nThat leaves 46 chair... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0061856 | A clerk's office charges $50 for each filing. Hana submits 9 filings. What is the total fee?
The program:
```python
fee = 50
filings = 9
total = fee * filings
print(total)
```
When run, it prints: 450
The filings cost $450 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0061857 | <|start|><|user|>
To read 280 pages in 7 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 280
days = 7
per_day = pages // days # 40
print(per_day)
```
Run output — 40
40 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 280 pages in 7 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 280\ndays = 7\nper_day = pages // days # 40\nprint(per_day)\n```\nRun output — 40\n\n40 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0061858 | At an exchange rate of 1.35 USD per EUR, how many USD is 4,253 EUR?
We write it as a program:
amount = 4253
rate = 1.35
converted = amount * rate # 5741.55
print(f"{converted:.2f}")
stdout = 5741.55
That is 5,741.55 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5741.55", "printed": "5741.55", "notation": null} |
nlprog_det-setting-0061859 | Prorate $900 of monthly rent for 9 days of a 31-day month.
Here is the program.
```python
rent = 900
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 261.2903225806452
print(f"{prorated:.2f}")
```
Result:
261.29
The tenant owes $261.29. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "261.29", "printed": "261.29", "notation": null} |
nlprog_det-setting-0061860 | Convert -20 °C to Fahrenheit.
Let the code do the arithmetic:
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
Running it prints -4.
That is -4 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0061861 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining ... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0061862 | <|start|><|user|>
What is the total rent on a 18-month lease at $975 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
```
Python prints: 17550
In total, $17,550 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $975 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 18\ntotal = monthly_rent * months # 17550\nprint(total)\n```\nPython prints: 17550\n\nIn total, $17,550 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0061863 | At $0.70 per mile, what is the reimbursement for 628 miles?
Python version:
```python
miles = 628
rate = 0.7
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
The program outputs: 439.60
The reimbursement is $439.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "439.60", "printed": "439.60", "notation": null} |
nlprog_det-setting-0061864 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Find the mean of these test scores: 73, 78 and 53.<|eot|>
<|assistant|>
scores = [73, 78, 53]
average = sum(scores) // len(scores) # 68
print(average)
Python prints 68, as expected.
The average score is 68.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Find the mean of these test scores: 73, 78 and 53."
},
{
"role": "assistant",
"content": " scores = [73, 78, 53]\n average = sum(scores) // len(scores) # 68\n print(average)\nPython p... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0061865 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "des... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "2021-02-10", "printed": "2021-02-10", "notation": null} |
nlprog_det-setting-0061866 | <|start|><|user|>
Monthly rent is $2,400. A tenant moves in with 10 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 800.0
print(f"{prorated:.2f}")
```
Execution result: 800.00
The... | chat | [
{
"role": "user",
"content": "Monthly rent is $2,400. A tenant moves in with 10 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 10\nprorated = rent * days_occupied / days_in_month # 800.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0061867 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A court cha... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 264 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0061868 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "python_exec", "description": "A Python interpreter. Returns standard ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"python_exec\",... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "1545.00", "printed": "1545.00", "notation": null} |
nlprog_det-setting-0061869 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A q... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"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\... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0061870 | <|start|><|user|>
How many of 168 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 168
needed = math.ceil(voters * 67 / 100) # 113
print(needed)
```
What it prints: 113
At least 113 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 168 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 168\nneeded = math.ceil(voters * 67 / 100) # 113\nprint(needed)\n```\nWhat it prints: 113\n\nAt least 113 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0061871 | Convert 71.5 km to meters.
A short script:
```python
km = 71.5
meters = km * 1000 # 71500.0
print(round(meters))
```
It prints 71500.
71,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "71500", "printed": "71500", "notation": null} |
nlprog_det-setting-0061873 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Goods bought on February 17, 2022 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2022, 2, 17)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Goods bought on February 17, 2022 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2022, 2, 17)\n m... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2022-08-17", "printed": "2022-08-17", "notation": null} |
nlprog_det-setting-0061874 | <|start|><|user|>
With 16 rows of 24 chairs and 5 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 16
per_row = 24
empty = 5
seated = rows * per_row - empty # 379
print(seated)
```
It prints: 379
379 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 16 rows of 24 chairs and 5 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 16\nper_row = 24\nempty = 5\nseated = rows * per_row - empty # 379\nprint(seated)\n```\nIt prints: 379\n\n379 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "379", "printed": "379", "notation": null} |
nlprog_det-setting-0061875 | 10 water bottles cost $6 apiece. With 5% tax added, what is the total? The total with tax is $63.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0061877 | A count moves from 2,500 to 2,125. By what percent did it change (use a minus sign for a drop)?
It changed by -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0061878 | Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
```python
revenue = 8500
costs = 8000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 5.88235294117647
print(round(margin, 1))
```
This prints 5.9, as expected.
The margin is 5.9%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0061879 | 2 claimants share a $1,200 settlement equally. What is each share?
settlement = 1200
parties = 2
share = settlement // parties # 600
print(share)
The printout reads 600.
Each share is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0061880 | <|start|><|user|>
A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 960.0
payment... | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0061881 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 17,000 gallons?
Here is a short program for it.
```python
base = 15
rate = 4.75
used = 17
free = 0
bill = base + rate * max(0, used - free) # 95.75
print(f"{bill:.2f}")
```
This prints 95.75.
$95.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "95.75", "printed": "95.75", "notation": null} |
nlprog_det-setting-0061882 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What is the total rent on a 36-month lease at $975 a month?<|eot|>
<|assistant|>
monthly_rent = 975
months = 36
total = monthly_rent * months # 35100
print(total)
It prints 35100, as expected.
The rent over the term is $35,100.... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $975 a month?"
},
{
"role": "assistant",
"content": " monthly_rent = 975\n months = 36\n total = monthly_rent * months # 35... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "35100", "printed": "35100", "notation": null} |
nlprog_det-setting-0061883 | 137 copies of a 41-page packet are printed at $0.15 per page. What is the cost?
Programmatically:
```python
pages = 41
copies = 137
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 842.55
print(f"{cost:.2f}")
```
What it prints — 842.55
The job costs $842.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "842.55", "printed": "842.55", "notation": null} |
nlprog_det-setting-0061887 | Each of Elena's bike rides burns 400 calories. How many calories over 6 bike rides?
Here is the program.
```python
per_session = 400
sessions = 6
total = per_session * sessions
print(total)
```
Result = 2400
That burns 2400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0061888 | <|start|><|user|>
A 105-page report must be reviewed in 3 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
35 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 105-page report must be reviewed in 3 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "35 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0061889 | <|start|><|user|>
Pilar buys 12 boxes of 24 scissors each and gives away 17 scissors. How many scissors are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 24
given_away = 17
left = boxes * per_box - given_away # 271
print(left)
```
Run result — 271
That leaves 271 scissors.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pilar buys 12 boxes of 24 scissors each and gives away 17 scissors. How many scissors are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 24\ngiven_away = 17\nleft = boxes * per_box - given_away # 271\nprint(left)\n```\nRun result — 27... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "271", "printed": "271", "notation": null} |
nlprog_det-setting-0061890 | Goods bought on March 28, 2025 carry a 24-month warranty. When does it expire?
A Python solution:
```python
from datetime import date
start = date(2025, 3, 28)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Int... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2027-03-28", "printed": "2027-03-28", "notation": null} |
nlprog_det-setting-0061891 | A car travels 285 miles in 2.5 hours. What is its average speed in miles per hour?
Computing it:
```python
distance = 285
hours = 2.5
speed = distance / hours # 114.0
print(round(speed))
```
(Output: 114)
It averages 114 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0061892 | <|start|><|user|>
What percentage of $10,000 is $2,100?<|eot|>
<|assistant|>
budget = 10000
spent = 2100
percent = spent / budget * 100 # 21.0
print(round(percent, 1))
When run, it prints 21.0, as expected.
That is 21.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $10,000 is $2,100?"
},
{
"role": "assistant",
"content": " budget = 10000\n spent = 2100\n percent = spent / budget * 100 # 21.0\n print(round(percent, 1))\nWhen run, it prints 21.0, as expected.\n\nThat is 21.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "21.0", "printed": "21.0", "notation": null} |
nlprog_det-setting-0061893 | <|start|><|user|>
22 rulers cost $8 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 22
unit_price = 8
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
Console output: 190.08
The total with tax is $190.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "22 rulers cost $8 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 22\nunit_price = 8\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 8 / 100)\nprint(f\"{total:.2f}\")\n```\nConsole output: 190.08\... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "190.08", "printed": "190.08", "notation": null} |
nlprog_det-setting-0061894 | <|start|><|user|>
A $1,000 security deposit has deductions of $75. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [75]
refund = deposit - sum(deductions)
print(refund)
```
Output = 925
The refund is $925.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,000 security deposit has deductions of $75. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [75]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nOutput = 925\n\nThe refund is $925."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "925", "printed": "925", "notation": null} |
nlprog_det-setting-0061895 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1230", "printed": "1230", "notation": null} |
nlprog_det-setting-0061896 | A settlement of $522 is split equally among 6 parties. How much does each party receive?
Program:
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
Program output: 87
Each share is $87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0061897 | <|start|><|user|>
A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 37.76
print(f"{each:.2f}")
```
Run result: 37.76
Each person pays $37.76.<|eot|>... | chat | [
{
"role": "user",
"content": "A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 37.76\nprint(f\"{each:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "37.76", "printed": "37.76", "notation": null} |
nlprog_det-setting-0061899 | <|start|><|user|>
Split $5,887 between Diego and Ulla in the ratio 2 to 5. What is Diego's share?<|eot|>
<|assistant|>
```python
total = 5887
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1682
print(share_a)
```
The script prints 1682.
Diego's share is $1,682.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,887 between Diego and Ulla in the ratio 2 to 5. What is Diego's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5887\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1682\nprint(share_a)\n```\nThe script prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1682", "printed": "1682", "notation": null} |
nlprog_det-setting-0061900 | Divide 79 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
Code:
```python
total = 79
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The run gives 8 each, 7 left over, as expected.
8 each, 7 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "8 each, 7 left over", "printed": "8 each, 7 left over", "notation": null} |
nlprog_det-setting-0061901 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 40 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
Output = 9000.00
Each client gets $9,000.00.... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 40 / 100\nremaining = award - fee\nper_client = remaining / 2\nprint(f\"{per_cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0061902 | A garage charges $3 an hour, never more than $18 a day. How much for 2 hours?
Written as code:
```python
rate = 3
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Run output: 6
Parking costs $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0061903 | Someone works 20 hours at $24.43 per hour. What are the earnings?
A Python solution:
rate = 24.43
hours = 20
earnings = rate * hours # 488.6
print(f"{earnings:.2f}")
Executing it gives 488.60, as expected.
The pay is $488.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "488.60", "printed": "488.60", "notation": null} |
nlprog_det-setting-0061904 | 2 books come back 13 days late, at $0.15 a day each. What is the fine?
Translated to Python:
```python
per_day = 0.15
days_late = 13
books = 2
fine = per_day * days_late * books # 3.9
print(f"{fine:.2f}")
```
Interpreter output — 3.90
The fine is $3.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "3.90", "printed": "3.90", "notation": null} |
nlprog_det-setting-0061905 | <|start|><|user|>
Buying 3 hard drives at $25 each, 5 folders at $16 each, 5 water bottles at $18 each, 6 ink cartridges at $2 each, someone hands over $300. What change comes back?<|eot|>
<|assistant|>
```python
items = [(3, 25), (5, 16), (5, 18), (6, 2)]
total = sum(q * p for q, p in items) # 257
paid = 300
change =... | chat | [
{
"role": "user",
"content": "Buying 3 hard drives at $25 each, 5 folders at $16 each, 5 water bottles at $18 each, 6 ink cartridges at $2 each, someone hands over $300. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 25), (5, 16), (5, 18), (6, 2)]\ntotal =... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0061906 | How many whole days and leftover hours are in 237 hours?
Let's compute it with Python.
```python
hours = 237
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution prints 9 days and 21 hours, as expected.
That is 9 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "9 days and 21 hours", "printed": "9 days and 21 hours", "notation": null} |
nlprog_det-setting-0061907 | A settlement of $4,500 is split equally among 4 parties. How much does each party receive?
Python does the arithmetic:
```python
settlement = 4500
parties = 4
share = settlement // parties # 1125
print(share)
```
(Printed result: 1125)
Each share is $1,125. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0061908 | A client paid a $2,500 retainer. The firm has billed 8 hours at $275 per hour. How much of the retainer is left?
Programmatically:
```python
retainer = 2500
hours = 8
rate = 275
left = retainer - hours * rate # 300
print(left)
```
Printed: 300
$300 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0061909 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Each storage box holds 24 files. How many boxes are needed for 722 files?<|eot|>
<|assistant|>
31 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Each storage box holds 24 files. How many boxes are needed for 722 files?"
},
{
"role": "assistant",
"content": "31 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0061910 | Helga has 5 documents to file, and each filing costs $75. How much are the filing fees in total?
Here's the code.
```python
fee = 75
filings = 5
total = fee * filings # 375
print(total)
```
This prints 375, as expected.
$375 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0061911 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 12 thousand gallons?
Let's compute it with Python.
```python
base = 12
rate = 4.2
used = 12
free = 0
bill = base + rate * max(0, used - free) # 62.400000000000006
print(f"{bill:.2f}")
```
Result:
62.40
The bill is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "62.40", "printed": "62.40", "notation": null} |
nlprog_det-setting-0061912 | Convert 1,640 USD to EUR at 1 USD = 1.27 EUR.
Program:
```python
amount = 1640
rate = 1.27
converted = amount * rate # 2082.8
print(f"{converted:.2f}")
```
(Output: 2082.80)
That is 2,082.80 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2082.80", "printed": "2082.80", "notation": null} |
nlprog_det-setting-0061913 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A pack of 12 water bottles sells for $576. What does each cost?<|eot|>
<|assistant|>
total = 576
count = 12
per_item = total // count
print(per_item)
Console output: 48
The unit price is $48.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A pack of 12 water bottles sells for $576. What does each cost?"
},
{
"role": "assistant",
"content": " total = 576\n count = 12\n per_item = total // count\n print(per_item)... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0061914 | Copies cost $5 plus $0.25 for each page beyond 20. How much for 82 pages?
A Python solution:
```python
pages = 82
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 20.5
print(f"{cost:.2f}")
```
Execution prints 20.50, as expected.
The total is $20.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "20.50", "printed": "20.50", "notation": null} |
nlprog_det-setting-0061915 | <|start|><|user|>
A shift runs from 7:24 AM to 9:13 AM. How long is it in minutes?<|eot|>
<|assistant|>
It is 109 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:24 AM to 9:13 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "It is 109 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "109", "printed": "109", "notation": null} |
nlprog_det-setting-0061916 | An invoice lists 6 rulers at $6 each, plus 10% sales tax. What is the invoice total?
Python does the arithmetic:
```python
quantity = 6
unit_price = 6
subtotal = quantity * unit_price
total = subtotal * (1 + 10 / 100)
print(f"{total:.2f}")
```
What it prints — 39.60
The invoice total is $39.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "39.60", "printed": "39.60", "notation": null} |
nlprog_det-setting-0061917 | <|start|><|user|>
3 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0061918 | <|start|><|user|>
What is the total rent on a 24-month lease at $3,250 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 24
total = monthly_rent * months # 78000
print(total)
```
Output of the run — 78000
The rent over the term is $78,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 24\ntotal = monthly_rent * months # 78000\nprint(total)\n```\nOutput of the run — 78000\n\nThe rent over the term is $78,00... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0061919 | Straight-line depreciation: cost $24,000, salvage $2,000, 10 years. How much per year?
Depreciation is $2,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "2200.00", "printed": "2200.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.