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-0062026 | <|start|><|user|>
A library charges $0.20 per book per day late. What is the fine for 4 books that are 17 days late?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 17
books = 4
fine = per_day * days_late * books # 13.600000000000001
print(f"{fine:.2f}")
```
It prints 13.60.
$13.60 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.20 per book per day late. What is the fine for 4 books that are 17 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 17\nbooks = 4\nfine = per_day * days_late * books # 13.600000000000001\nprint(f\"{fine:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "13.60", "printed": "13.60", "notation": null} |
nlprog_det-setting-0062027 | A shift runs from 9:16 AM to 10:21 AM. How long is it in minutes?
Here's the code.
```python
start = 9 * 60 + 16 # 556
end = 10 * 60 + 21 # 621
print(end - start)
```
Printed result: 65
It is 65 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0062028 | Which is cheaper per unit: 6 for $13.65 (A) or 24 for $16.34 (B)?
The program:
pack_a = 13.65 / 6 # 2.275
pack_b = 16.34 / 24 # 0.6808333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
# execution result: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0062029 | <|start|><|user|>
What is a 25% tip on a $16.19 bill?<|eot|>
<|assistant|>
bill = 16.19
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 4.0475
print(f"{tip:.2f}")
The interpreter prints: 4.05
Leave $4.05.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $16.19 bill?"
},
{
"role": "assistant",
"content": " bill = 16.19\n tip_rate = 25 / 100 # 0.25\n tip = bill * tip_rate # 4.0475\n print(f\"{tip:.2f}\")\nThe interpreter prints: 4.05\n\nLeave $4.05."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4.05", "printed": "4.05", "notation": null} |
nlprog_det-setting-0062030 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
What simple interest d... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0062031 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Someone works 38 hours at $30.32 per hour. What are the earnings?<|eot|>
<|assistant|>
The pay is $1,152.16.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Someone works 38 hours at $30.32 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "The pay is $1,152.16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "1152.16", "printed": "1152.16", "notation": null} |
nlprog_det-setting-0062032 | Shipping costs $10 plus $1.20 per pound. What does a 31-pound parcel cost to ship?
A Python solution:
base = 10
per_pound = 1.2
weight = 31
cost = base + per_pound * weight # 47.199999999999996
print(f"{cost:.2f}")
It outputs 47.20.
Shipping costs $47.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "47.20", "printed": "47.20", "notation": null} |
nlprog_det-setting-0062033 | <|start|><|user|>
To read 144 pages in 12 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 144
days = 12
per_day = pages // days # 12
print(per_day)
```
The script prints 12, as expected.
That is 12 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 144 pages in 12 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 144\ndays = 12\nper_day = pages // days # 12\nprint(per_day)\n```\nThe script prints 12, as expected.\n\nThat is 12 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0062034 | Walls total 592 sq ft and each can covers 250 sq ft. How many cans should be bought?
We write it as a program:
```python
import math
area = 592
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
The run gives: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062035 | A backpack costs $90. It is 10% off. What is the sale price?
Here's the code.
```python
price = 90
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 81.0
print(f"{sale_price:.2f}")
```
(Result: 81.00)
It costs $81.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0062036 | What percentage of $10,000 is $800?
The computation:
budget = 10000
spent = 800
percent = spent / budget * 100 # 8.0
print(round(percent, 1))
Running it prints 8.0.
That is 8.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0062037 | A garage charges $4 an hour, never more than $18 a day. How much for 4 hours?
Python code:
```python
rate = 4
hours = 4
daily_max = 18
cost = min(rate * hours, daily_max) # 16
print(cost)
```
The run gives 16.
The charge is $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0062038 | <|start|><|user|>
Convert 2 h 18 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 2
minutes = 18
total_minutes = hours * 60 + minutes # 138
print(total_minutes)
```
Execution result: 138
That is 138 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2 h 18 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 18\ntotal_minutes = hours * 60 + minutes # 138\nprint(total_minutes)\n```\nExecution result: 138\n\nThat is 138 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "138", "printed": "138", "notation": null} |
nlprog_det-setting-0062039 | <|start|><|user|>
5 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 5
share = settlement // parties # 16800
print(share)
```
Execution prints 16800.
Each share is $16,800.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 5\nshare = settlement // parties # 16800\nprint(share)\n```\nExecution prints 16800.\n\nEach share is $16,800."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "16800", "printed": "16800", "notation": null} |
nlprog_det-setting-0062040 | <|start|><|system|>
Tools (call with JSON):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "eval_python", "description": "Use... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 306 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0062041 | The building opened in 2025. How many years had passed by 2028?
```python
start_year = 2025
end_year = 2028
print(end_year - start_year)
```
Python prints 3.
3 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062042 | Fixed costs are $9,000. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?
Code:
```python
import math
fixed = 9000
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
```
stdout: 1800
1800 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0062043 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
At $21.58 an hour, what does 24 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 21.58
hours = 24
earnings = rate * hours # 517.92
print(f"{earnings:.2f}")
```
Running it prints: 517.92
That earns $517.92.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "At $21.58 an hour, what does 24 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 21.58\nhours = 24\nearnings = rate * hours # 517.92\nprint(f\"{earnings:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "517.92", "printed": "517.92", "notation": null} |
nlprog_det-setting-0062044 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 36 days?
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0062045 | A measure needs at least 75% of 12 votes. How many votes is that, rounded up?
```python
import math
voters = 12
needed = math.ceil(voters * 75 / 100) # 9
print(needed)
```
This prints: 9
At least 9 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0062046 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Scale 150 g of flour from 4 servings to 2 servings.<|eot|>
<|assistant|>
```python
grams = 150
serves = 4
needed_for = 2
scaled = grams * needed_for // serves # 75
print(scaled)
```
(Execution result: 75)
Use 75 g of flour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Scale 150 g of flour from 4 servings to 2 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 4\nneeded_for = 2\nscaled = grams * needed_for // serves # 75\nprint(s... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0062047 | Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Set it up in Python:
revenue = 25000
costs = 20000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
The script prints 20.0, as expected.
Profit... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0062048 | A 14 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Set it up in Python:
```python
import math
length = 14
width = 6
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 21
print(tiles)
```
(Printed result: 21)
It takes 21 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0062049 | <|start|><|user|>
What commission does Viktor make on $6,455 in sales at 5%?<|eot|>
<|assistant|>
sales = 6455
rate = 5 / 100 # 0.05
commission = sales * rate # 322.75
print(f"{commission:.2f}")
Running this gives 322.75.
The commission is $322.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Viktor make on $6,455 in sales at 5%?"
},
{
"role": "assistant",
"content": " sales = 6455\n rate = 5 / 100 # 0.05\n commission = sales * rate # 322.75\n print(f\"{commission:.2f}\")\nRunning this gives 322.75.\n\nThe commission is... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "322.75", "printed": "322.75", "notation": null} |
nlprog_det-setting-0062050 | <|start|><|user|>
A party has 28 days to respond to a motion served on May 9, 2023, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
It is due June 9, 2023.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on May 9, 2023, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "It is due June 9, 2023."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "2023-06-09", "printed": "2023-06-09", "notation": null} |
nlprog_det-setting-0062052 | <|start|><|user|>
What is the total rent on a 18-month lease at $1,640 a month?<|eot|>
<|assistant|>
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
Output:
29520
The rent over the term is $29,520.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": " monthly_rent = 1640\n months = 18\n total = monthly_rent * months # 29520\n print(total)\nOutput:\n29520\n\nThe rent over the term is $29,520."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0062054 | <|start|><|user|>
A car travels 562 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
It averages 281 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 562 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "It averages 281 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "281", "printed": "281", "notation": null} |
nlprog_det-setting-0062055 | <|start|><|user|>
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
Run output: 1.4
The m... | chat | [
{
"role": "user",
"content": "Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 1.3698630... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0062057 | Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 10,000 gallons?
base = 20
rate = 4.75
used = 10
free = 2
bill = base + rate * max(0, used - free) # 58.0
print(f"{bill:.2f}")
The script prints: 58.00
$58.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0062058 | Convert 3 h 22 min (the length of a hearing) to minutes.
Here is the program.
```python
hours = 3
minutes = 22
total_minutes = hours * 60 + minutes # 202
print(total_minutes)
```
Execution prints: 202
The hearing lasted 202 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "202", "printed": "202", "notation": null} |
nlprog_det-setting-0062059 | What does $1,000 grow to in 5 years at 5% annual compounding?
Python does the arithmetic:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
```
It prints 1276.28.
It is worth $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0062060 | <|start|><|user|>
With 16 rows of 22 chairs and 33 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 16
per_row = 22
empty = 33
seated = rows * per_row - empty # 319
print(seated)
```
The run gives 319.
319 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 16 rows of 22 chairs and 33 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 16\nper_row = 22\nempty = 33\nseated = rows * per_row - empty # 319\nprint(seated)\n```\nThe run gives 319.\n\n319 people are seated."... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "319", "printed": "319", "notation": null} |
nlprog_det-setting-0062061 | A customer buys 6 toner kits at $8 each, 3 rulers at $12 each, 6 labels at $11 each and pays with $200. How much change is due?
$50 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0062062 | The bridge was finished in 2025. How many years had passed by 2053?
Python version:
```python
start_year = 2025
end_year = 2053
print(end_year - start_year)
```
Running it prints 28, as expected.
28 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0062063 | A measure needs at least 75% of 80 votes. How many votes is that, rounded up?
We write it as a program:
```python
import math
voters = 80
needed = math.ceil(voters * 75 / 100) # 60
print(needed)
```
(Printed result: 60)
60 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0062064 | Split $3,717 between Sami and Nilufar in the ratio 3 to 4. What is Sami's share?
Python:
```python
total = 3717
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1593
print(share_a)
```
# printed result: 1593
Sami gets $1,593. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1593", "printed": "1593", "notation": null} |
nlprog_det-setting-0062065 | Count the days between February 7, 2024 and May 17, 2024.
```python
from datetime import date
first = date(2024, 2, 7) # datetime.date(2024, 2, 7)
second = date(2024, 5, 17) # datetime.date(2024, 5, 17)
print((second - first).days)
```
It outputs: 100
It is 100 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0062066 | An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 6 months?
Program:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
When run, it prints 225.00, as expected.
The intere... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0062067 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "109.50", "printed": "109.50", "notation": null} |
nlprog_det-setting-0062068 | What average speed covers 502 miles in 2 hours?
Programmatically:
```python
distance = 502
hours = 2
speed = distance / hours # 251.0
print(round(speed))
```
Interpreter output: 251
The average speed is 251 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0062069 | <|start|><|user|>
Walls total 307 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 307 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "Buy 1 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0062070 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Under a 33% contingency agreement, what fee is owed on a $150,000 award?<|eot|>
<|assistant|>
recovery = 150000
rate = 33 / 100 # 0.33
fee = recovery * rate # 49500.0
print(f"{fee:.2f}")
Output of the run — 49500.00
The lawyer's fee... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $150,000 award?"
},
{
"role": "assistant",
"content": " recovery = 150000\n rate = 33 / 100 # 0.33\n fee = recovery * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0062071 | Goran's scores were 96, 88, 93, 86, 66 and 81. What is the average score?
In Python:
```python
scores = [96, 88, 93, 86, 66, 81]
average = sum(scores) // len(scores)
print(average)
```
That prints: 85
The mean is 85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0062072 | Convert 53.2 km to meters.
We can compute it in Python.
km = 53.2
meters = km * 1000 # 53200.0
print(round(meters))
The program prints 53200.
That is 53,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "53200", "printed": "53200", "notation": null} |
nlprog_det-setting-0062073 | How many minutes pass from 7:54 AM to 8:46 AM on the same day?
We can compute it in Python.
start = 7 * 60 + 54 # 474
end = 8 * 60 + 46 # 526
print(end - start)
The printout reads 52.
It is 52 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0062074 | A measure needs at least 75% of 107 votes. How many votes is that, rounded up?
Python:
```python
import math
voters = 107
needed = math.ceil(voters * 75 / 100) # 81
print(needed)
```
The run gives 81, as expected.
At least 81 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0062075 | A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 24-page copy cost?
Here is a short program for it.
```python
pages = 24
base = 5
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 12.0
print(f"{cost:.2f}")
```
Execution result: 12.00
The tota... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0062076 | <|start|><|user|>
Printing costs 8 cents a page. What does it cost to print 10 copies of a 35-page handout?<|eot|>
<|assistant|>
```python
pages = 35
copies = 10
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 28.0
print(f"{cost:.2f}")
```
Out = 28.00
Printing costs $28.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 10 copies of a 35-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 35\ncopies = 10\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 28.0\nprint(f\"{cost:.2f}\")\n```\nOut... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0062077 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A water bill is $18 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 4 thousand gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 3.5
used = 4
free = 3
bill = base + rate * max(0, used - free) # 21.5
print(f"{bill:.2f}")
```
# stdo... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A water bill is $18 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 4 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 3.5\nused = 4\nf... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0062078 | A customer buys 4 labels at $27 each, 4 keyboards at $15 each, 3 headsets at $6 each, 2 clipboards at $10 each and pays with $250. How much change is due?
Python:
items = [(4, 27), (4, 15), (3, 6), (2, 10)]
total = sum(q * p for q, p in items) # 206
paid = 250
change = paid - total # 44
print(cha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0062079 | Water costs $18 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 17,000 gallons?
Written as code:
```python
base = 18
rate = 3.5
used = 17
free = 3
bill = base + rate * max(0, used - free) # 67.0
print(f"{bill:.2f}")
```
Execution result — 67.00
The bill is $67.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "67.00", "printed": "67.00", "notation": null} |
nlprog_det-setting-0062080 | Amir drove 171 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Coded up:
```python
miles = 171
rate = 0.67
reimbursement = miles * rate # 114.57000000000001
print(f"{reimbursement:.2f}")
```
Executed, it shows: 114.57
The reimbursement is $114.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "114.57", "printed": "114.57", "notation": null} |
nlprog_det-setting-0062081 | If a 25-minute hearing begins at 10:20 AM, what time does it finish? It ends at 10:45 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "10:45 AM", "printed": "10:45 AM", "notation": null} |
nlprog_det-setting-0062082 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 2000
years = 6
per_year = (cost - salvage) / years # 2666.6666666666665
print(f"{per_year:.2f}")
```
Output — 26... | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 2000\nyears = 6\nper_year = (cost - salvage) / years # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2666.67", "printed": "2666.67", "notation": null} |
nlprog_det-setting-0062083 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
At a 5% tax rate, what is th... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "4.17", "printed": "4.17", "notation": null} |
nlprog_det-setting-0062084 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "lookup_sta... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "141", "printed": "141", "notation": null} |
nlprog_det-setting-0062085 | Under a 35% contingency agreement, what fee is owed on a $90,000 award?
Here is the program.
```python
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
```
Running this gives 31500.00.
The fee is $31,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0062086 | Pack A has 10 items for $7.49. Pack B has 15 items for $9.88. Which has the lower price per item?
Here's the code.
```python
pack_a = 7.49 / 10 # 0.749
pack_b = 9.88 / 15 # 0.6586666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
It outputs B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0062087 | A storeroom has 212 hard drives. The office uses 24 a day. How many are left after 8 days?
Python:
```python
stock = 212
per_day = 24
days = 8
left = stock - per_day * days # 20
print(left)
```
When run, it prints 20.
20 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0062088 | <|start|><|user|>
Goods bought on May 11, 2026 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on May 11, 2029.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on May 11, 2026 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on May 11, 2029."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "2029-05-11", "printed": "2029-05-11", "notation": null} |
nlprog_det-setting-0062089 | <|start|><|user|>
What percentage of $4,000 is $1,100?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 1100
percent = spent / budget * 100 # 27.500000000000004
print(round(percent, 1))
```
The script prints: 27.5
That is 27.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $1,100?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 1100\npercent = spent / budget * 100 # 27.500000000000004\nprint(round(percent, 1))\n```\nThe script prints: 27.5\n\nThat is 27.5% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "27.5", "printed": "27.5", "notation": null} |
nlprog_det-setting-0062090 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Starting from $25,000, the team spends $1,382, $1,440, $1,272, $2,697. What remains?<|eot|>
<|assistant|>
budget = 25000
expenses = [1382, 1440, 1272, 2697]
left = budget - sum(expenses) # 18209
print(left)
# out: 18209
The remaining budget ... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Starting from $25,000, the team spends $1,382, $1,440, $1,272, $2,697. What remains?"
},
{
"role": "assistant",
"content": " budget = 25000\n expenses = [1382, 1440, 1272, 2697]\n left... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "18209", "printed": "18209", "notation": null} |
nlprog_det-setting-0062091 | Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?
The program:
```python
cost = 45000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 7800.0
print(f"{per_year:.2f}")
```
Run it and it prints: 7800.00
Depreciation is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "7800.00", "printed": "7800.00", "notation": null} |
nlprog_det-setting-0062092 | <|start|><|user|>
156 of 200 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 156
total = 200
percent = present / total * 100 # 78.0
print(round(percent, 1))
```
Printed result: 78.0
78.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "156 of 200 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 156\ntotal = 200\npercent = present / total * 100 # 78.0\nprint(round(percent, 1))\n```\nPrinted result: 78.0\n\n78.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "78.0", "printed": "78.0", "notation": null} |
nlprog_det-setting-0062093 | <|start|><|user|>
A meeting starts at 1:30 PM and lasts 25 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 13 * 60 + 30
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
stdout — 1:55 PM
It ends at 1:55 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting starts at 1:30 PM and lasts 25 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 13 * 60 + 30\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1:55 PM", "printed": "1:55 PM", "notation": null} |
nlprog_det-setting-0062094 | <|start|><|user|>
Bruna's scores were 58, 52, 52 and 90. What is the average score?<|eot|>
<|assistant|>
```python
scores = [58, 52, 52, 90]
average = sum(scores) // len(scores)
print(average)
```
Execution prints 63, as expected.
The mean is 63.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Bruna's scores were 58, 52, 52 and 90. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [58, 52, 52, 90]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nExecution prints 63, as expected.\n\nThe mean is 63."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0062095 | A 360-mile drive at a steady 60 mph takes how many minutes?
Set it up in Python:
```python
distance = 360
speed = 60
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
Output:
360
360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0062096 | Each of Nikhil's bike rides burns 300 calories. How many calories over 3 bike rides?
That burns 900 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0062097 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A 2% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 2200
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 2244.0
print(f"{new_rent:.2f}")
# console output: 2244.00
It ... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A 2% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 2200\n increase = 2 / 100 # 0.02\n new_rent = rent ... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0062098 | Vera has 11 documents to file, and each filing costs $45. How much are the filing fees in total?
$495 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "495", "printed": "495", "notation": null} |
nlprog_det-setting-0062099 | What is -15 degrees Celsius in Fahrenheit?
In Python:
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
Result:
5
That is 5 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0062100 | A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
# printed result: 6250.00
The lawyer's fee comes to $6,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0062101 | A 14-day notice period begins on December 16, 2026. On what date does it end?
Written as code:
```python
from datetime import date, timedelta
start = date(2026, 12, 16) # datetime.date(2026, 12, 16)
end = start + timedelta(days=14) # datetime.date(2026, 12, 30)
print(end.isoformat())
```
(Printed: 2026-12-30)
The p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-12-30", "printed": "2026-12-30", "notation": null} |
nlprog_det-setting-0062102 | At $26.75 an hour, what does 38 hours of work pay?
```python
rate = 26.75
hours = 38
earnings = rate * hours # 1016.5
print(f"{earnings:.2f}")
```
Executing it gives 1016.50.
The pay is $1,016.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1016.50", "printed": "1016.50", "notation": null} |
nlprog_det-setting-0062103 | <|start|><|user|>
What average speed covers 336 miles in 1 hours?<|eot|>
<|assistant|>
distance = 336
hours = 1
speed = distance / hours # 336.0
print(round(speed))
(Program output: 336)
It averages 336 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 336 miles in 1 hours?"
},
{
"role": "assistant",
"content": " distance = 336\n hours = 1\n speed = distance / hours # 336.0\n print(round(speed))\n(Program output: 336)\n\nIt averages 336 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "336", "printed": "336", "notation": null} |
nlprog_det-setting-0062104 | 45 copies of a 25-page packet are printed at $0.05 per page. What is the cost?
pages = 25
copies = 45
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 56.25
print(f"{cost:.2f}")
Output: 56.25
The job costs $56.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "56.25", "printed": "56.25", "notation": null} |
nlprog_det-setting-0062105 | A $48,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?
Coded up:
```python
grant = 48000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 10500.0
print(f"{each:.2f}")
```
Running it prints: 10500.00
$10,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0062106 | What commission does Vera make on $66,501 in sales at 3%?
Set it up in Python:
```python
sales = 66501
rate = 3 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Output:
1995.03
The commission is $1,995.03. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1995.03", "printed": "1995.03", "notation": null} |
nlprog_det-setting-0062108 | Notice was given on April 28, 2026. The notice period is 14 days. When does it run out?
A Python solution:
```python
from datetime import date, timedelta
start = date(2026, 4, 28) # datetime.date(2026, 4, 28)
end = start + timedelta(days=14) # datetime.date(2026, 5, 12)
print(end.isoformat())
```
Printed result — 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2026-05-12", "printed": "2026-05-12", "notation": null} |
nlprog_det-setting-0062109 | A recipe for 2 people uses 100 grams of rice. How many grams are needed for 6 people?
Set it up in Python:
```python
grams = 100
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 300
print(scaled)
```
stdout:
300
300 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0062110 | <|start|><|user|>
Straight-line depreciation: cost $30,000, salvage $0, 10 years. How much per year?<|eot|>
<|assistant|>
cost = 30000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
(Output: 3000.00)
Depreciation is $3,000.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $0, 10 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 30000\n salvage = 0\n years = 10\n per_year = (cost - salvage) / years # 3000.0\n print(f\"{per_year:.2f}\")\n(Output: 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0062111 | <|start|><|user|>
Monthly: $19. Annual: $210. What is saved per year by paying annually?<|eot|>
<|assistant|>
monthly = 19
yearly = 210
savings = monthly * 12 - yearly # 18
print(savings)
Running it prints: 18
$18 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $19. Annual: $210. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": " monthly = 19\n yearly = 210\n savings = monthly * 12 - yearly # 18\n print(savings)\nRunning it prints: 18\n\n$18 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062112 | <|start|><|system|>
Tool definitions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"ty... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"get_weather\", \"descri... | nlprog_det | setting | original | null | deterministic | [] | [] | 363 | {"gold": "8.42", "printed": "8.42", "notation": null} |
nlprog_det-setting-0062114 | How many meters are in 39 kilometers?
Set it up in Python:
```python
km = 39
meters = km * 1000
print(round(meters))
```
Python prints 39000.
39,000 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0062115 | A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 36-page copy cost?
Python version:
```python
pages = 36
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 7.6
print(f"{cost:.2f}")
```
Console output — 7.60
The copy costs $7.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "7.60", "printed": "7.60", "notation": null} |
nlprog_det-setting-0062116 | <|start|><|user|>
Rent of $1,250 goes up 3%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1287.5
print(f"{new_rent:.2f}")
```
This prints 1287.50, as expected.
The new rent is $1,287.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 3%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1287.5\nprint(f\"{new_rent:.2f}\")\n```\nThis prints 1287.50, as expected.\n\nThe new rent... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1287.50", "printed": "1287.50", "notation": null} |
nlprog_det-setting-0062117 | An office budget of $20,000 has expenses of $856, $2,445, $1,716. How much of the budget is left?
We write it as a program:
```python
budget = 20000
expenses = [856, 2445, 1716]
left = budget - sum(expenses) # 14983
print(left)
```
Output:
14983
$14,983 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "14983", "printed": "14983", "notation": null} |
nlprog_det-setting-0062118 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
What commission does Leon make on $79,950 in sales at 4%?<|eot|>
<|assistant|>
```python
sales = 79950
rate = 4 / 100 # 0.04
commission = sales * rate # 3198.0
print(f"{commission:.2f}")
```
Execution result: 3198.00
Leon earns $3,198.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "What commission does Leon make on $79,950 in sales at 4%?"
},
{
"role": "assistant",
"content": "```python\nsales = 79950\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 3198.0\nprint(f\"{c... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "3198.00", "printed": "3198.00", "notation": null} |
nlprog_det-setting-0062119 | Convert 2,530 GBP to USD at 1 GBP = 1.27 USD.
As a program:
```python
amount = 2530
rate = 1.27
converted = amount * rate # 3213.1
print(f"{converted:.2f}")
```
On running, it outputs: 3213.10
That is 3,213.10 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "3213.10", "printed": "3213.10", "notation": null} |
nlprog_det-setting-0062120 | <|start|><|user|>
A pack of 24 cables sells for $384. What does each cost?<|eot|>
<|assistant|>
total = 384
count = 24
per_item = total // count # 16
print(per_item)
Execution result — 16
Each one costs $16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 cables sells for $384. What does each cost?"
},
{
"role": "assistant",
"content": " total = 384\n count = 24\n per_item = total // count # 16\n print(per_item)\nExecution result — 16\n\nEach one costs $16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0062121 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Prorate $2,400 of monthly rent for 14 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 1120.0
print(f"{prorated:.2f}")
```
The program prints: 1120.00
... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 14 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 14\nprorated = rent * days_occup... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1120.00", "printed": "1120.00", "notation": null} |
nlprog_det-setting-0062122 | <|start|><|user|>
Kofi earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 52
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 333.0
pay = regular + overtime # 1073.0
print(f"{pay:.2f}")
```
Out — 1073.00... | chat | [
{
"role": "user",
"content": "Kofi earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 52\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 333.0\npay = regular... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1073.00", "printed": "1073.00", "notation": null} |
nlprog_det-setting-0062123 | <|start|><|user|>
$5,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
The balance is $5,306.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 2% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "The balance is $5,306.04."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "5306.04", "printed": "5306.04", "notation": null} |
nlprog_det-setting-0062124 | <|start|><|user|>
A 2% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 1500
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1530.0
print(f"{new_rent:.2f}")
It outputs: 1530.00
It rises to $1,530.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 2% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 1500\n increase = 2 / 100 # 0.02\n new_rent = rent * (1 + increase) # 1530.0\n print(f\"{new_rent:.2f}\")\nIt outputs: 1530.00\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1530.00", "printed": "1530.00", "notation": null} |
nlprog_det-setting-0062125 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $5,000. How much after 44 days?<|eot|>
<|assistant|>
$4,400 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $5,000. How much after 44 days?"
},
{
"role": "assistant",
"content": "$4,400 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "4400", "printed": "4400", "notation": null} |
nlprog_det-setting-0062126 | <|start|><|user|>
What does $5,000 grow to in 3 years at 3% annual compounding?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 5463.635
print(f"{value:.2f}")
```
Output = 5463.64
The balance is $5,463.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $5,000 grow to in 3 years at 3% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 5463.635\nprint(f\"{value:.2f}\")\n```\nOutput = 5463.64\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5463.64", "printed": "5463.64", "notation": null} |
nlprog_det-setting-0062127 | Yusuf drove 191 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
The Python version:
```python
miles = 191
rate = 0.65
reimbursement = miles * rate # 124.15
print(f"{reimbursement:.2f}")
```
(Out: 124.15)
The reimbursement is $124.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "124.15", "printed": "124.15", "notation": null} |
nlprog_det-setting-0062128 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Of a $10,000 budget, $3,300 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 3300
percent = spent / budget * 100
print(round(percent, 1))
```
Printed — 33.0
33.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Of a $10,000 budget, $3,300 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 3300\npercent = spent / budget * 10... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "33.0", "printed": "33.0", "notation": null} |
nlprog_det-setting-0062129 | An attorney bills 10.5 hours at $225 per hour. What is the bill?
Set it up in Python:
```python
hours = 10.5
rate = 225
bill = hours * rate
print(f"{bill:.2f}")
```
# output: 2362.50
That comes to $2,362.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2362.50", "printed": "2362.50", "notation": null} |
nlprog_det-setting-0062130 | 97 copies of a 16-page packet are printed at $0.12 per page. What is the cost?
The job costs $186.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "186.24", "printed": "186.24", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.