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-0047539 | At 50 miles per hour, how many minutes does a 250-mile trip take?
Set it up in Python:
```python
distance = 250
speed = 50
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
What it prints: 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0047540 | <|start|><|user|>
Monthly: $29. Annual: $300. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 300
savings = monthly * 12 - yearly # 48
print(savings)
```
Interpreter output — 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $29. Annual: $300. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 300\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nInterpreter output — 48\n\n$48 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0047541 | <|start|><|system|>
Functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by accessi... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 379 | {"gold": "32.19", "printed": "32.19", "notation": null} |
nlprog_det-setting-0047542 | 4 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Computing it:
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
print(f"{per_client:.2f}")
Output — 9000.00
Each share is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0047543 | After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
One way, in code:
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
print(f"{per_client:.2f}")
Printed: 9... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0047544 | How much sales tax is charged on a $388.02 purchase at 4%?
$15.52 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "15.52", "printed": "15.52", "notation": null} |
nlprog_det-setting-0047545 | How many whole days and leftover hours are in 103 hours?
The program:
hours = 103
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Python prints 4 days and 7 hours.
103 hours is 4 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "4 days and 7 hours", "printed": "4 days and 7 hours", "notation": null} |
nlprog_det-setting-0047546 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 70-page copy cost?<|eot|>
<|assistant|>
The copy costs $45.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 70-page copy cost?"
},
{
"role": "assistant",
"content": "The copy costs $45.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0047547 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Buying 5 cables at $12 each, 6 pens at $7 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
```python
items = [(5, 12), (6, 7)]
total = sum(q * p for q, p in items) # 102
paid = 150
change = paid - total # 48
print(change)... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Buying 5 cables at $12 each, 6 pens at $7 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 12), (6, 7)]\ntotal = su... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0047548 | <|start|><|user|>
A car travels 180 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 180
hours = 1.5
speed = distance / hours # 120.0
print(round(speed))
```
Console output: 120
It averages 120 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 180 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 180\nhours = 1.5\nspeed = distance / hours # 120.0\nprint(round(speed))\n```\nConsole output: 120\n\nIt averages 120 mile... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0047549 | A count moves from 2,000 to 1,600. By what percent did it change (use a minus sign for a drop)?
In code:
```python
old = 2000
new = 1600
change = (new - old) / old * 100 # -20.0
print(round(change))
```
Run result: -20
It changed by -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0047550 | With 12 rows of 9 chairs and 27 empty chairs, how many chairs are taken?
Code:
```python
rows = 12
per_row = 9
empty = 27
seated = rows * per_row - empty # 81
print(seated)
```
Run result — 81
81 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0047551 | A shift runs from 7:30 AM to 2:15 PM. How long is it in minutes?
Python version:
start = 7 * 60 + 30 # 450
end = 14 * 60 + 15 # 855
print(end - start)
Executing it gives: 405
405 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0047552 | Pack A has 12 items for $12.92. Pack B has 30 items for $22.12. Which has the lower price per item?
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047553 | After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?
Python does the arithmetic:
```python
grant = 60000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 15000.0
print(f"{each:.2f}")
```
Executing it gives 15000.00.
$15,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0047554 | Malik has 5 documents to file, and each filing costs $50. How much are the filing fees in total?
One way, in code:
```python
fee = 50
filings = 5
total = fee * filings # 250
print(total)
```
The program prints 250.
$250 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0047555 | <|start|><|user|>
Which is cheaper per unit: 8 for $14.62 (A) or 18 for $15.72 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.62 / 8 # 1.8275
pack_b = 15.72 / 18 # 0.8733333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Python prints B, as expected.
B has the lower unit price.<|eot|>
... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $14.62 (A) or 18 for $15.72 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.62 / 8 # 1.8275\npack_b = 15.72 / 18 # 0.8733333333333334\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nPy... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047556 | <|start|><|user|>
A penalty of $100 a day accrues, capped at $2,500. What is owed after 21 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 21
cap = 2500
fine = min(per_day * days, cap) # 2100
print(fine)
```
Program output — 2100
The fine is $2,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 21 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 21\ncap = 2500\nfine = min(per_day * days, cap) # 2100\nprint(fine)\n```\nProgram output — 2100\n\nThe fine is $2,... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0047557 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
How many wee... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 275 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0047558 | A library charges $0.20 per book per day late. What is the fine for 3 books that are 5 days late?
```python
per_day = 0.2
days_late = 5
books = 3
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
# output: 3.00
The fine is $3.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0047559 | <|start|><|user|>
A customer buys 6 tape rolls at $16 each, 2 hard drives at $2 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
items = [(6, 16), (2, 2)]
total = sum(q * p for q, p in items) # 100
paid = 150
change = paid - total # 50
print(change)
stdout — 50
$50 comes back... | chat | [
{
"role": "user",
"content": "A customer buys 6 tape rolls at $16 each, 2 hard drives at $2 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": " items = [(6, 16), (2, 2)]\n total = sum(q * p for q, p in items) # 100\n paid = 150\n change = paid - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0047560 | Each storage box holds 50 files. How many boxes are needed for 785 files?
Program:
```python
import math
files = 785
per_box = 50
boxes = math.ceil(files / per_box) # 16
print(boxes)
```
# execution result: 16
16 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0047561 | Express 115 hours in days and hours.
```python
hours = 115
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution prints: 4 days and 19 hours
115 hours is 4 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "4 days and 19 hours", "printed": "4 days and 19 hours", "notation": null} |
nlprog_det-setting-0047562 | <|start|><|user|>
Someone works 38 hours at $29.43 per hour. What are the earnings?<|eot|>
<|assistant|>
That earns $1,118.34.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 38 hours at $29.43 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "That earns $1,118.34."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "1118.34", "printed": "1118.34", "notation": null} |
nlprog_det-setting-0047563 | <|start|><|user|>
How many meters are in 32.7 kilometers?<|eot|>
<|assistant|>
```python
km = 32.7
meters = km * 1000 # 32700.000000000004
print(round(meters))
```
Execution prints 32700, as expected.
32,700 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 32.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 32.7\nmeters = km * 1000 # 32700.000000000004\nprint(round(meters))\n```\nExecution prints 32700, as expected.\n\n32,700 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "32700", "printed": "32700", "notation": null} |
nlprog_det-setting-0047564 | Fixed costs are $4,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?
```python
import math
fixed = 4000
price = 30
variable = 22
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
Out: 500
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0047565 | <|start|><|user|>
Starting with 1007 lanyards and using 29 per day, how many remain after 5 days?<|eot|>
<|assistant|>
862 lanyards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1007 lanyards and using 29 per day, how many remain after 5 days?"
},
{
"role": "assistant",
"content": "862 lanyards are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "862", "printed": "862", "notation": null} |
nlprog_det-setting-0047566 | <|start|><|user|>
How many minutes pass from 7:14 AM to 1:20 PM on the same day?<|eot|>
<|assistant|>
start = 7 * 60 + 14 # 434
end = 13 * 60 + 20 # 800
print(end - start)
Console:
366
It is 366 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:14 AM to 1:20 PM on the same day?"
},
{
"role": "assistant",
"content": " start = 7 * 60 + 14 # 434\n end = 13 * 60 + 20 # 800\n print(end - start)\nConsole:\n366\n\nIt is 366 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "366", "printed": "366", "notation": null} |
nlprog_det-setting-0047567 | A car travels 375 miles in 2.5 hours. What is its average speed in miles per hour?
A Python solution:
```python
distance = 375
hours = 2.5
speed = distance / hours # 150.0
print(round(speed))
```
Output: 150
It averages 150 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0047568 | The building opened in 2001. How many years had passed by 2040?
Programmatically:
```python
start_year = 2001
end_year = 2040
print(end_year - start_year)
```
# printed: 39
39 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0047569 | A 3-day trip pays $74 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?
In code:
```python
days = 3
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 502
print(total)
```
Running it prints: 502
The allowance is $502. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "502", "printed": "502", "notation": null} |
nlprog_det-setting-0047570 | <|start|><|system|>
Tools (call with JSON):
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A court... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 260 | {"gold": "17.50", "printed": "17.50", "notation": null} |
nlprog_det-setting-0047571 | How many 2-foot square tiles cover a 4 ft by 13 ft floor (round up)?
In code:
```python
import math
length = 4
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 13
print(tiles)
```
(Console output: 13)
It takes 13 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0047572 | At an exchange rate of 1.08 EUR per USD, how many EUR is 667 USD?
```python
amount = 667
rate = 1.08
converted = amount * rate # 720.36
print(f"{converted:.2f}")
```
Python prints 720.36, as expected.
It converts to 720.36 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "720.36", "printed": "720.36", "notation": null} |
nlprog_det-setting-0047573 | <|start|><|user|>
Find the mean of these test scores: 89, 64 and 90.<|eot|>
<|assistant|>
```python
scores = [89, 64, 90]
average = sum(scores) // len(scores) # 81
print(average)
```
The code prints 81.
The average score is 81.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 89, 64 and 90."
},
{
"role": "assistant",
"content": "```python\nscores = [89, 64, 90]\naverage = sum(scores) // len(scores) # 81\nprint(average)\n```\nThe code prints 81.\n\nThe average score is 81."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0047575 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python_exec", "description": "Use for arithmetic and date math; returns stdou... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python_exec\", \"descri... | nlprog_det | setting | original | null | deterministic | [] | [] | 320 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0047576 | What is 30 degrees Celsius in Fahrenheit?
Python does the arithmetic:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Execution prints 86.
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0047577 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 36
total = monthly_rent * months # 117000
print(total)
```
Result — 117000
The rent over t... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 36\nto... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0047578 | Copies cost $15 plus $0.10 for each page beyond 20. How much for 8 pages?
The total is $15.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0047579 | <|start|><|user|>
Rent of $1,250 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
The interpreter prints: 1325.00
The new rent is $1,325.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": " rent = 1250\n increase = 6 / 100 # 0.06\n new_rent = rent * (1 + increase) # 1325.0\n print(f\"{new_rent:.2f}\")\nThe interpreter prints: 1325.00\n\nThe new rent i... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0047581 | Count the days between July 1, 2026 and October 4, 2026.
Let's compute it with Python.
```python
from datetime import date
first = date(2026, 7, 1) # datetime.date(2026, 7, 1)
second = date(2026, 10, 4) # datetime.date(2026, 10, 4)
print((second - first).days)
```
Program output: 95
It is 95 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0047582 | A 3-day trip pays $79 a day for meals and $110 a night for lodging (2 nights). What is the total allowance?
We can compute it in Python.
```python
days = 3
meal_rate = 79
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 457
print(total)
```
The program prints 457.
The allo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "457", "printed": "457", "notation": null} |
nlprog_det-setting-0047583 | Meals are $79 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights?
Programmatically:
```python
days = 6
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1349
print(total)
```
Out:
1349
That comes to $1,349. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1349", "printed": "1349", "notation": null} |
nlprog_det-setting-0047584 | A $60,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?
Let's compute it with Python.
```python
grant = 60000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
The run gives: 4500.00
Each installment is $4,5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0047585 | A recipe for 4 people uses 200 grams of oats. How many grams are needed for 3 people?
150 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0047586 | Each of Arjun's walks burns 350 calories. How many calories over 5 walks?
Written as code:
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
The program prints: 1750
1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0047587 | Equipment costs $45,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?
Python, step by step:
```python
cost = 45000
salvage = 0
years = 3
per_year = (cost - salvage) / years # 15000.0
print(f"{per_year:.2f}")
```
The program outputs 15000.00.
$15,000.00 a y... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0047588 | Each storage box holds 50 files. How many boxes are needed for 380 files?
import math
files = 380
per_box = 50
boxes = math.ceil(files / per_box) # 8
print(boxes)
The script prints 8, as expected.
8 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0047589 | <|start|><|user|>
A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 51.74999999999999
print(f"{each:.2f}")
```
Interpreter output — 51.75
The shar... | chat | [
{
"role": "user",
"content": "A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 4\neach = bill * (1 + tip_rate) / people # 51.74999999999999\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "51.75", "printed": "51.75", "notation": null} |
nlprog_det-setting-0047590 | <|start|><|user|>
Dara earns a 10% commission on $36,929 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 36929
rate = 10 / 100 # 0.1
commission = sales * rate # 3692.9
print(f"{commission:.2f}")
```
The script prints: 3692.90
Dara earns $3,692.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Dara earns a 10% commission on $36,929 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 36929\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 3692.9\nprint(f\"{commission:.2f}\")\n```\nThe script prints: 3692.90\n\nDa... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3692.90", "printed": "3692.90", "notation": null} |
nlprog_det-setting-0047591 | <|start|><|user|>
The paralegal logged 8 hours at a rate of $300. How much is billed?<|eot|>
<|assistant|>
```python
hours = 8
rate = 300
bill = hours * rate
print(f"{bill:.2f}")
```
# run result: 2400.00
The bill is $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 8 hours at a rate of $300. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 300\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\n# run result: 2400.00\n\nThe bill is $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0047592 | <|start|><|user|>
A room is 24 feet by 18 feet. Flooring costs $5 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
It costs $2,160.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A room is 24 feet by 18 feet. Flooring costs $5 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "It costs $2,160."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2160", "printed": "2160", "notation": null} |
nlprog_det-setting-0047593 | Scale 240 g of flour from 4 servings to 2 servings.
Translated to Python:
```python
grams = 240
serves = 4
needed_for = 2
scaled = grams * needed_for // serves # 120
print(scaled)
```
Run it and it prints: 120
120 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0047594 | <|start|><|user|>
Under a 35% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
(stdout: 8750.00)
The fee is $8,750.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 8750.0\nprint(f\"{fee:.2f}\")\n```\n(stdout: 8750.00)\n\nThe fee is $8,750.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0047596 | A $1,200 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
A few lines of Python do it:
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 144.0
payment = (princ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0047597 | A 100-mile drive at a steady 50 mph takes how many minutes?
The Python version:
```python
distance = 100
speed = 50
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
The script prints 120, as expected.
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0047598 | What does $2,000 grow to in 2 years at 4% annual compounding?
The Python version:
principal = 2000
rate = 4 / 100
years = 2
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
(Run result: 2163.20)
It is worth $2,163.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2163.20", "printed": "2163.20", "notation": null} |
nlprog_det-setting-0047599 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Pay is $22.40/... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0047600 | Notice was given on September 18, 2023. The notice period is 120 days. When does it run out?
Coded up:
```python
from datetime import date, timedelta
start = date(2023, 9, 18) # datetime.date(2023, 9, 18)
end = start + timedelta(days=120) # datetime.date(2024, 1, 16)
print(end.isoformat())
```
(Program output: 2024-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2024-01-16", "printed": "2024-01-16", "notation": null} |
nlprog_det-setting-0047601 | <|start|><|user|>
10 boxes hold 12 chairs each. After 9 are handed out, how many are left?<|eot|>
<|assistant|>
111 chairs are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "10 boxes hold 12 chairs each. After 9 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "111 chairs are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0047602 | Signe has 5 documents to file, and each filing costs $150. How much are the filing fees in total?
Written as code:
```python
fee = 150
filings = 5
total = fee * filings
print(total)
```
# execution result: 750
The total fee is $750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0047603 | A 18-month warranty starts on March 7, 2028. On what date does it end?
Programmatically:
```python
from datetime import date
start = date(2028, 3, 7)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run result = ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2029-09-07", "printed": "2029-09-07", "notation": null} |
nlprog_det-setting-0047604 | <|start|><|user|>
A 14 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
53 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 14 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "53 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0047605 | <|start|><|user|>
A $2,500 security deposit has deductions of $60, $200 and $120. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [60, 200, 120]
refund = deposit - sum(deductions) # 2120
print(refund)
```
(Printed result: 2120)
The refund is $2,120.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,500 security deposit has deductions of $60, $200 and $120. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [60, 200, 120]\nrefund = deposit - sum(deductions) # 2120\nprint(refund)\n```\n(Printed result: 2120... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2120", "printed": "2120", "notation": null} |
nlprog_det-setting-0047606 | A 6% increase is applied to $1,250 monthly rent. What is the new amount?
Program:
```python
rent = 1250
increase = 6 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
Result: 1325.00
It rises to $1,325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0047607 | <|start|><|user|>
An attorney bills 4 hours at $410 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 4
rate = 410
bill = hours * rate
print(f"{bill:.2f}")
```
The printout reads 1640.00.
That comes to $1,640.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 4 hours at $410 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 410\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nThe printout reads 1640.00.\n\nThat comes to $1,640.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0047608 | <|start|><|user|>
A claim accrued on March 26, 2021. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2021, 3, 26)
years = 4
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Printed = 2025-03-26
It... | chat | [
{
"role": "user",
"content": "A claim accrued on March 26, 2021. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2021, 3, 26)\nyears = 4\nexpires = accrued.replace(year=accrued.year + year... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2025-03-26", "printed": "2025-03-26", "notation": null} |
nlprog_det-setting-0047609 | A client paid a $7,500 retainer. The firm has billed 13 hours at $150 per hour. How much of the retainer is left?
$5,550 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "5550", "printed": "5550", "notation": null} |
nlprog_det-setting-0047610 | Attendance was 75 out of 100. Express it as a percent.
Let's compute it with Python.
```python
present = 75
total = 100
percent = present / total * 100 # 75.0
print(round(percent, 1))
```
The printout reads: 75.0
Attendance was 75.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0047611 | <|start|><|user|>
A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
The code prints: 10000.00
The lawyer's fee comes to $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nThe code prints: 10000.00\n\nThe lawyer's fee... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0047612 | <|start|><|user|>
How many 1-foot square tiles cover a 7 ft by 5 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 7
width = 5
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 35
print(tiles)
The program prints 35.
35 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 7 ft by 5 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 7\n width = 5\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 35\n print(tiles)\nThe program prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0047613 | Monthly: $15. Annual: $150. What is saved per year by paying annually?
In Python:
```python
monthly = 15
yearly = 150
savings = monthly * 12 - yearly # 30
print(savings)
```
When run, it prints 30, as expected.
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0047614 | Someone born January 1, 1981 turns how old by May 12, 2021? Give the age in whole years.
A few lines of Python do it:
from datetime import date
born = date(1981, 1, 1) # datetime.date(1981, 1, 1)
on = date(2021, 5, 12) # datetime.date(2021, 5, 12)
age = on.year - born.year - ((on.month, on.day) < (bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0047616 | A 200-mile drive at a steady 40 mph takes how many minutes?
Here is the program.
```python
distance = 200
speed = 40
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Result — 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0047618 | Monthly rent is $900. A tenant moves in with 20 days left in a 31-day month. What is the prorated rent?
Set it up in Python:
```python
rent = 900
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
stdout: 580.65
The prorated rent is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0047619 | How many meters are in 79 kilometers?
```python
km = 79
meters = km * 1000 # 79000
print(round(meters))
```
Execution prints 79000.
That is 79,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "79000", "printed": "79000", "notation": null} |
nlprog_det-setting-0047620 | The landlord deducts $75 and $75 from a $1,500 deposit. What is returned to the tenant?
Program:
```python
deposit = 1500
deductions = [75, 75]
refund = deposit - sum(deductions) # 1350
print(refund)
```
The printout reads: 1350
$1,350 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0047621 | A claim accrued on November 13, 2024. The limitations period is 2 years. On what date does it expire?
The period expires on November 13, 2026. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2026-11-13", "printed": "2026-11-13", "notation": null} |
nlprog_det-setting-0047622 | Notice was given on January 9, 2020. The notice period is 14 days. When does it run out?
Python, step by step:
```python
from datetime import date, timedelta
start = date(2020, 1, 9) # datetime.date(2020, 1, 9)
end = start + timedelta(days=14) # datetime.date(2020, 1, 23)
print(end.isoformat())
```
Running it prints... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2020-01-23", "printed": "2020-01-23", "notation": null} |
nlprog_det-setting-0047623 | An office budget of $20,000 has expenses of $1,350, $3,888, $781. How much of the budget is left?
Programmatically:
```python
budget = 20000
expenses = [1350, 3888, 781]
left = budget - sum(expenses) # 13981
print(left)
```
Program output: 13981
$13,981 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "13981", "printed": "13981", "notation": null} |
nlprog_det-setting-0047624 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 1124.864
print(f"{value:.2f}")
```
The program outputs 1124.8... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = principa... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1124.86", "printed": "1124.86", "notation": null} |
nlprog_det-setting-0047625 | <|start|><|user|>
Jonas lends $2,500 at 5% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 250.0
print(f"{interest:.2f}")
```
# printed: 250.00
It earns $250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jonas lends $2,500 at 5% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 5 / 100 # 0.05\nyears = 2\ninterest = principal * rate * years # 250.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0047626 | <|start|><|system|>
Tools you may use:
[{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
4 books come ba... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0047627 | Someone works 24 hours at $21.26 per hour. What are the earnings?
Programmatically:
rate = 21.26
hours = 24
earnings = rate * hours # 510.24
print(f"{earnings:.2f}")
Out = 510.24
The pay is $510.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "510.24", "printed": "510.24", "notation": null} |
nlprog_det-setting-0047628 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 22 copies of a 11-page handout?<|eot|>
<|assistant|>
Printing costs $12.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 22 copies of a 11-page handout?"
},
{
"role": "assistant",
"content": "Printing costs $12.10."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "12.10", "printed": "12.10", "notation": null} |
nlprog_det-setting-0047629 | Pack A has 8 items for $3.81. Pack B has 30 items for $15.89. Which has the lower price per item?
We write it as a program:
```python
pack_a = 3.81 / 8 # 0.47625
pack_b = 15.89 / 30 # 0.5296666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The program prints: A
Pack A is cheaper per i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0047630 | <|start|><|user|>
Sales went from 800 to 760. What is the percent change?<|eot|>
<|assistant|>
It changed by -5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 800 to 760. What is the percent change?"
},
{
"role": "assistant",
"content": "It changed by -5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0047631 | Each storage box holds 40 files. How many boxes are needed for 568 files?
15 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0047632 | <|start|><|user|>
With 40% off, what does a $40 kettle cost?<|eot|>
<|assistant|>
price = 40
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 24.0
print(f"{sale_price:.2f}")
Out:
24.00
It costs $24.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 40% off, what does a $40 kettle cost?"
},
{
"role": "assistant",
"content": " price = 40\n discount = 40 / 100 # 0.4\n sale_price = price * (1 - discount) # 24.0\n print(f\"{sale_price:.2f}\")\nOut:\n24.00\n\nIt costs $24.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0047634 | Split $2,177 between Emeka and Quinn in the ratio 3 to 4. What is Emeka's share?
Let the code do the arithmetic:
total = 2177
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 933
print(share_a)
Python prints: 933
Emeka gets $933. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "933", "printed": "933", "notation": null} |
nlprog_det-setting-0047635 | Revenue is $10,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
Coded up:
```python
revenue = 10000
costs = 8000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
The program outputs: 20.0
Profit is 20.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0047636 | <|start|><|user|>
How many of 199 votes make 60% (round up)?<|eot|>
<|assistant|>
import math
voters = 199
needed = math.ceil(voters * 60 / 100) # 120
print(needed)
That prints: 120
At least 120 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 199 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": " import math\n voters = 199\n needed = math.ceil(voters * 60 / 100) # 120\n print(needed)\nThat prints: 120\n\nAt least 120 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0047637 | <|start|><|user|>
A party has 28 days to respond to a motion served on January 13, 2025, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2025, 1, 13) # datetime.date(2025, 1, 13)
response_days = 28
mail_day... | chat | [
{
"role": "user",
"content": "A party has 28 days to respond to a motion served on January 13, 2025, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2025, 1, 13) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "2025-02-13", "printed": "2025-02-13", "notation": null} |
nlprog_det-setting-0047638 | Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 23,000 gallons?
A Python solution:
```python
base = 18
rate = 3.5
used = 23
free = 0
bill = base + rate * max(0, used - free) # 98.5
print(f"{bill:.2f}")
```
The interpreter prints 98.50.
$98.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "98.50", "printed": "98.50", "notation": null} |
nlprog_det-setting-0047639 | Counting only Monday through Friday, how many business days are there after February 14, 2022 through March 14, 2022?
As a program:
```python
from datetime import date, timedelta
start = date(2022, 2, 14)
end = date(2022, 3, 14)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0047640 | <|start|><|user|>
What is a 25% tip on a $218.58 bill?<|eot|>
<|assistant|>
```python
bill = 218.58
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 54.645
print(f"{tip:.2f}")
```
The program prints 54.65.
Leave $54.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $218.58 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 218.58\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 54.645\nprint(f\"{tip:.2f}\")\n```\nThe program prints 54.65.\n\nLeave $54.65."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "54.65", "printed": "54.65", "notation": null} |
nlprog_det-setting-0047642 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Elena lends $12,000 at 8% simple interest per year for 3 years. How much interest is earned?<|eot|>
<|assistant|>
principal = 12000
rate = 8 / 100
years = 3
interest = principal * rate * years
print(f"{interest:.2f}")
Printed = 2880.0... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Elena lends $12,000 at 8% simple interest per year for 3 years. How much interest is earned?"
},
{
"role": "assistant",
"content": " principal = 12000\n rate = 8 / 100\n years = 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0047643 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
To read 460 pages in 20 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 460
days = 20
per_day = pages // days
print(per_day)
```
Output — 23
23 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "To read 460 pages in 20 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 460\ndays = 20\nper_day = pages // days\nprint(per_day)\n```\nOutput — 23... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0047644 | <|start|><|user|>
A quorum is 1/3 of the 13 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 13
quorum = math.ceil(members * 1 / 3) # 5
print(quorum)
```
# output: 5
That is 5 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 13 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 13\nquorum = math.ceil(members * 1 / 3) # 5\nprint(quorum)\n```\n# output: 5\n\nThat is 5 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0047645 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "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|>
Monthly: $19. Ann... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "24", "printed": "24", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.