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-0056136 | Fines run at $50 per day up to a maximum of $5,000. How much after 33 days? $1,650 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0056137 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
The landlord deducts $45, $200 and $150 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
deposit = 1500
deductions = [45, 200, 150]
refund = deposit - sum(deductions) # 1105
print(refund)
The run gives... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "The landlord deducts $45, $200 and $150 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": " deposit = 1500\n deductions = [45, 200... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1105", "printed": "1105", "notation": null} |
nlprog_det-setting-0056138 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
At 40 miles per hour, how many minutes does a 40-mile trip take?<|eot|>
<|assistant|>
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 40-mile trip take?"
},
{
"role": "assistant",
"content": "60 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0056139 | <|start|><|user|>
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 11... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0056140 | <|start|><|user|>
An attorney bills 7 hours at $410 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 7
rate = 410
bill = hours * rate # 2870
print(f"{bill:.2f}")
```
It outputs 2870.00.
That comes to $2,870.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 7 hours at $410 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 410\nbill = hours * rate # 2870\nprint(f\"{bill:.2f}\")\n```\nIt outputs 2870.00.\n\nThat comes to $2,870.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2870.00", "printed": "2870.00", "notation": null} |
nlprog_det-setting-0056141 | <|start|><|user|>
How much sales tax is charged on a $598.57 purchase at 7%?<|eot|>
<|assistant|>
price = 598.57
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 41.89990000000001
print(f"{tax:.2f}")
# output: 41.90
The tax is $41.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $598.57 purchase at 7%?"
},
{
"role": "assistant",
"content": " price = 598.57\n tax_rate = 7 / 100 # 0.07\n tax = price * tax_rate # 41.89990000000001\n print(f\"{tax:.2f}\")\n# output: 41.90\n\nThe tax is $41.90."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "41.90", "printed": "41.90", "notation": null} |
nlprog_det-setting-0056142 | Count 60 days forward from January 16, 2022. What date is that?
The program:
```python
from datetime import date, timedelta
start = date(2022, 1, 16) # datetime.date(2022, 1, 16)
end = start + timedelta(days=60) # datetime.date(2022, 3, 17)
print(end.isoformat())
```
When run, it prints: 2022-03-17
The period ends ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2022-03-17", "printed": "2022-03-17", "notation": null} |
nlprog_det-setting-0056143 | At $0.70 per mile, what is the reimbursement for 176 miles?
We can compute it in Python.
```python
miles = 176
rate = 0.7
reimbursement = miles * rate # 123.19999999999999
print(f"{reimbursement:.2f}")
```
This prints 123.20, as expected.
Carmen is owed $123.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "123.20", "printed": "123.20", "notation": null} |
nlprog_det-setting-0056144 | <|start|><|user|>
The bridge was finished in 2013. How many years had passed by 2035?<|eot|>
<|assistant|>
```python
start_year = 2013
end_year = 2035
print(end_year - start_year)
```
On running, it outputs: 22
22 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The bridge was finished in 2013. How many years had passed by 2035?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2013\nend_year = 2035\nprint(end_year - start_year)\n```\nOn running, it outputs: 22\n\n22 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0056145 | <|start|><|user|>
Buying 3 chairs at $27 each, 5 lanyards at $4 each, 4 mugs at $4 each, 4 rulers at $27 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
$25 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 3 chairs at $27 each, 5 lanyards at $4 each, 4 mugs at $4 each, 4 rulers at $27 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "$25 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0056146 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
What percentage of $5,000 is $500?<|eot|>
<|assistant|>
budget = 5000
spent = 500
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
Running this gives: 10.0
10.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "What percentage of $5,000 is $500?"
},
{
"role": "assistant",
"content": " budget = 5000\n spent = 500\n percent = spent / budget * 100 # 10.0\n print(round(p... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0056148 | A shift runs from 7:45 AM to 8:50 AM. How long is it in minutes?
Coded up:
```python
start = 7 * 60 + 45 # 465
end = 8 * 60 + 50 # 530
print(end - start)
```
Output: 65
It is 65 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0056149 | A hearing lasted 1 hours and 44 minutes. How many minutes is that?
Written as code:
```python
hours = 1
minutes = 44
total_minutes = hours * 60 + minutes # 104
print(total_minutes)
```
Printed = 104
That is 104 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0056150 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "de... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0056152 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $18. What do 9 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 9
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Console output — 18
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $18. What do 9 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 9\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nConsole output — 18\n\nParking costs $18."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0056153 | <|start|><|user|>
A bicycle helmet costs $60. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 60
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
```
(Console output: 54.00)
It costs $54.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A bicycle helmet costs $60. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\n(Console output: 54.00)\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0056154 | <|start|><|user|>
5 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
```
Python prints 36.00, as expected.
The share is $36.00 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 friends split a $150 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\npeople = 5\neach = bill * (1 + tip_rate) / people # 36.0\nprint(f\"{each:.2f}\")\n```\nPython prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0056155 | <|start|><|user|>
How many whole days and leftover hours are in 255 hours?<|eot|>
<|assistant|>
hours = 255
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Executing it gives 10 days and 15 hours.
That is 10 days and 15 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 255 hours?"
},
{
"role": "assistant",
"content": " hours = 255\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nExecuting it gives 10 days and 15 hours.\n\nThat is 10 days and 15 hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10 days and 15 hours", "printed": "10 days and 15 hours", "notation": null} |
nlprog_det-setting-0056156 | A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?
Code:
```python
monthly_rent = 2875
months = 18
total = monthly_rent * months # 51750
print(total)
```
Run result: 51750
The rent over the term is $51,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0056157 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
2 books come back 12 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.5
days_late = 12
books = 2
fine = per_day * days_late * books # 12.0
print(f"{fine:.2f}")
Result — 12.00
$12.00 is owed.<|eot|>
... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "2 books come back 12 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.5\n days_late = 12\n books = 2\n fine = per_day * day... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0056158 | Each of Kaito's runs burns 150 calories. How many calories over 6 runs? 900 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0056159 | <|start|><|user|>
Express 370 hours in days and hours.<|eot|>
<|assistant|>
hours = 370
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
The program outputs 15 days and 10 hours.
That is 15 days and 10 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 370 hours in days and hours."
},
{
"role": "assistant",
"content": " hours = 370\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nThe program outputs 15 days and 10 hours.\n\nThat is 15 days and 10 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "15 days and 10 hours", "printed": "15 days and 10 hours", "notation": null} |
nlprog_det-setting-0056160 | Someone works 16 hours at $23.51 per hour. What are the earnings?
Here is the program.
```python
rate = 23.51
hours = 16
earnings = rate * hours # 376.16
print(f"{earnings:.2f}")
```
# printed: 376.16
That earns $376.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "376.16", "printed": "376.16", "notation": null} |
nlprog_det-setting-0056161 | The rules require 3/5 of 53 members (round up) to be present. How many is that?
```python
import math
members = 53
quorum = math.ceil(members * 3 / 5) # 32
print(quorum)
```
The code prints: 32
32 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0056162 | <|start|><|user|>
Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 3.5
used = 20
free = 0
bill = base + rate * max(0, used - free) # 85.0
print(f"{bill:.2f}")
```
The program outputs 85.00.
The bill is $85.00.<|eot|>... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 3.5\nused = 20\nfree = 0\nbill = base + rate * max(0, used - free) # 85.0\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "85.00", "printed": "85.00", "notation": null} |
nlprog_det-setting-0056163 | Parking is $3 per hour with a daily maximum of $15. What do 8 hours cost?
Set it up in Python:
rate = 3
hours = 8
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
Running this gives 15.
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0056164 | How many days are there from June 8, 2028 to July 4, 2029?
Computing it:
```python
from datetime import date
first = date(2028, 6, 8) # datetime.date(2028, 6, 8)
second = date(2029, 7, 4) # datetime.date(2029, 7, 4)
print((second - first).days)
```
The program prints 391, as expected.
There are 391 days between the... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "391", "printed": "391", "notation": null} |
nlprog_det-setting-0056165 | A $120 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
We write it as a program:
```python
bill = 120
tip_rate = 15 / 100
people = 6
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
Executed, it shows: 23.00
Each person pays $23.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0056166 | Fines run at $100 per day up to a maximum of $2,500. How much after 40 days?
One way, in code:
per_day = 100
days = 40
cap = 2500
fine = min(per_day * days, cap)
print(fine)
Executed, it shows 2500.
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0056167 | Pack A has 10 items for $6.01. Pack B has 18 items for $12.16. Which has the lower price per item?
Programmatically:
```python
pack_a = 6.01 / 10 # 0.601
pack_b = 12.16 / 18 # 0.6755555555555556
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Out:
A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0056168 | <|start|><|user|>
At 2% a month (simple), what interest builds on $4,000 over 3 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 2 / 100
months = 3
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Running this gives: 240.00
The interest is $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $4,000 over 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100\nmonths = 3\ninterest = balance * monthly_rate * months\nprint(f\"{interest:.2f}\")\n```\nRunning this give... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0056169 | At an exchange rate of 1.31 USD per EUR, how many USD is 151 EUR?
A Python solution:
```python
amount = 151
rate = 1.31
converted = amount * rate # 197.81
print(f"{converted:.2f}")
```
The program prints 197.81, as expected.
It converts to 197.81 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "197.81", "printed": "197.81", "notation": null} |
nlprog_det-setting-0056170 | 268 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
In Python:
```python
total = 268
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run output: 33 each, 4 left over
The answer: 33 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "33 each, 4 left over", "printed": "33 each, 4 left over", "notation": null} |
nlprog_det-setting-0056171 | Walls total 1206 sq ft and each can covers 350 sq ft. How many cans should be bought?
Coded up:
```python
import math
area = 1206
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
# program output: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056172 | At 1% a month (simple), what interest builds on $4,000 over 3 months?
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 120.0
print(f"{interest:.2f}")
Run result — 120.00
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0056173 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
An office... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "-1976", "printed": "-1976", "notation": null} |
nlprog_det-setting-0056174 | Each of Pilar's runs burns 300 calories. How many calories over 3 runs?
As a program:
```python
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
```
This prints: 900
900 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0056175 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $18. What do 5 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 5
daily_max = 18
cost = min(rate * hours, daily_max) # 10
print(cost)
```
Run result — 10
Parking costs $10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 5 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 5\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 10\nprint(cost)\n```\nRun result — 10\n\nParking costs $10."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0056176 | If a 6-year limitations period starts on October 7, 2015, when does it end?
We can compute it in Python.
```python
from datetime import date
accrued = date(2015, 10, 7) # datetime.date(2015, 10, 7)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 10, 7)
print(expires.isoformat())
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2021-10-07", "printed": "2021-10-07", "notation": null} |
nlprog_det-setting-0056177 | A $120 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?
A few lines of Python do it:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 48.0
print(f"{each:.2f}")
```
The script prints: 48.00
The share is $48.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "48.00", "printed": "48.00", "notation": null} |
nlprog_det-setting-0056178 | Attendance was 14 out of 25. Express it as a percent.
Python, step by step:
```python
present = 14
total = 25
percent = present / total * 100
print(round(percent, 1))
```
Execution prints 56.0.
Attendance was 56.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "56.0", "printed": "56.0", "notation": null} |
nlprog_det-setting-0056180 | A 6-month warranty starts on March 25, 2028. On what date does it end?
The program:
```python
from datetime import date
start = date(2028, 3, 25)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
(Output: 2028-09-2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2028-09-25", "printed": "2028-09-25", "notation": null} |
nlprog_det-setting-0056181 | <|start|><|user|>
A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1200
months = 18
total = monthly_rent * months # 21600
print(total)
```
The script prints: 21600
In total, $21,600 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1200\nmonths = 18\ntotal = monthly_rent * months # 21600\nprint(total)\n```\nThe script prints: 21600\n\nIn t... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "21600", "printed": "21600", "notation": null} |
nlprog_det-setting-0056182 | <|start|><|user|>
Liesel buys 11 boxes of 12 desk lamps each and gives away 20 desk lamps. How many desk lamps are left?<|eot|>
<|assistant|>
112 desk lamps are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Liesel buys 11 boxes of 12 desk lamps each and gives away 20 desk lamps. How many desk lamps are left?"
},
{
"role": "assistant",
"content": "112 desk lamps are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0056183 | <|start|><|system|>
Tools (call with JSON):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "get_weather", "description": "Get the weather fo... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 359 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0056184 | To read 152 pages in 4 days, how many pages per day are needed?
That is 38 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0056185 | A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?
Here is a short program for it.
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
(Run result: 24)
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0056186 | <|start|><|user|>
At an exchange rate of 0.92 EUR per USD, how many EUR is 6,139 USD?<|eot|>
<|assistant|>
```python
amount = 6139
rate = 0.92
converted = amount * rate # 5647.88
print(f"{converted:.2f}")
```
The code prints: 5647.88
It converts to 5,647.88 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.92 EUR per USD, how many EUR is 6,139 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 6139\nrate = 0.92\nconverted = amount * rate # 5647.88\nprint(f\"{converted:.2f}\")\n```\nThe code prints: 5647.88\n\nIt converts to 5,647... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "5647.88", "printed": "5647.88", "notation": null} |
nlprog_det-setting-0056187 | A 4% increase is applied to $1,250 monthly rent. What is the new amount?
Python makes this quick:
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
The code prints 1300.00.
The new rent is $1,300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0056188 | On which weekday does July 25, 1995 fall?
Set it up in Python:
```python
from datetime import date
hearing = date(1995, 7, 25) # datetime.date(1995, 7, 25)
print(hearing.strftime("%A"))
```
Executed, it shows Tuesday.
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0056190 | <|start|><|user|>
Convert 4 h 44 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
```python
hours = 4
minutes = 44
total_minutes = hours * 60 + minutes # 284
print(total_minutes)
```
Console output: 284
That is 284 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4 h 44 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 44\ntotal_minutes = hours * 60 + minutes # 284\nprint(total_minutes)\n```\nConsole output: 284\n\nThat is 284 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0056191 | If a 3-year limitations period starts on June 12, 2021, when does it end?
We write it as a program:
```python
from datetime import date
accrued = date(2021, 6, 12) # datetime.date(2021, 6, 12)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 6, 12)
print(expires.isoformat())
```
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2024-06-12", "printed": "2024-06-12", "notation": null} |
nlprog_det-setting-0056192 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A court charges $10 per request plus $0.50 per page after the first 20 pages. What does a 47-page copy cost?<|eot|>
<|assistant|>
The copy costs $23.50.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A court charges $10 per request plus $0.50 per page after the first 20 pages. What does a 47-page copy cost?"
},
{
"role": "assistant",
"content": "The copy costs $23.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "23.50", "printed": "23.50", "notation": null} |
nlprog_det-setting-0056193 | Filing fees are $405 per document. What do 7 filings cost?
A few lines of Python do it:
```python
fee = 405
filings = 7
total = fee * filings # 2835
print(total)
```
What it prints — 2835
$2,835 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2835", "printed": "2835", "notation": null} |
nlprog_det-setting-0056194 | <|start|><|user|>
Lucia earns a 3% commission on $59,090 of sales. What is the commission?<|eot|>
<|assistant|>
sales = 59090
rate = 3 / 100 # 0.03
commission = sales * rate # 1772.7
print(f"{commission:.2f}")
The script prints 1772.70, as expected.
Lucia earns $1,772.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lucia earns a 3% commission on $59,090 of sales. What is the commission?"
},
{
"role": "assistant",
"content": " sales = 59090\n rate = 3 / 100 # 0.03\n commission = sales * rate # 1772.7\n print(f\"{commission:.2f}\")\nThe script prints 1772.70, as ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1772.70", "printed": "1772.70", "notation": null} |
nlprog_det-setting-0056195 | <|start|><|system|>
You can call tools. Available tools:
{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Shipping cost... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0056196 | A penalty of $250 a day accrues, capped at $5,000. What is owed after 34 days?
The Python version:
```python
per_day = 250
days = 34
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
What it prints: 5000
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0056197 | <|start|><|user|>
At an exchange rate of 1.31 USD per EUR, how many USD is 4,611 EUR?<|eot|>
<|assistant|>
```python
amount = 4611
rate = 1.31
converted = amount * rate # 6040.41
print(f"{converted:.2f}")
```
The script prints 6040.41, as expected.
That is 6,040.41 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.31 USD per EUR, how many USD is 4,611 EUR?"
},
{
"role": "assistant",
"content": "```python\namount = 4611\nrate = 1.31\nconverted = amount * rate # 6040.41\nprint(f\"{converted:.2f}\")\n```\nThe script prints 6040.41, as expected.\n\nThat ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "6040.41", "printed": "6040.41", "notation": null} |
nlprog_det-setting-0056198 | <|start|><|system|>
Tool definitions:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name": "tran... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 391 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0056199 | <|start|><|user|>
Olga's scores were 51, 69, 73, 93, 75 and 77. What is the average score?<|eot|>
<|assistant|>
```python
scores = [51, 69, 73, 93, 75, 77]
average = sum(scores) // len(scores) # 73
print(average)
```
On running, it outputs 73.
The average score is 73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Olga's scores were 51, 69, 73, 93, 75 and 77. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [51, 69, 73, 93, 75, 77]\naverage = sum(scores) // len(scores) # 73\nprint(average)\n```\nOn running, it outputs 73.\n\nThe average s... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0056200 | Convert 1,762 USD to CAD at 1 USD = 1.12 CAD.
Set it up in Python:
```python
amount = 1762
rate = 1.12
converted = amount * rate # 1973.4400000000003
print(f"{converted:.2f}")
```
The printout reads 1973.44.
It converts to 1,973.44 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1973.44", "printed": "1973.44", "notation": null} |
nlprog_det-setting-0056201 | With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.
The computation:
```python
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.493506493506493
print(round(margin, 1))
```
This prints 6.5, as expected.
Profit is 6.5%... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0056202 | An office budget of $25,000 has expenses of $3,810, $573, $1,773. How much of the budget is left?
```python
budget = 25000
expenses = [3810, 573, 1773]
left = budget - sum(expenses) # 18844
print(left)
```
Out:
18844
The remaining budget is $18,844. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "18844", "printed": "18844", "notation": null} |
nlprog_det-setting-0056204 | <|start|><|system|>
You may call the tools below.
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "eval_python", "description": "A Python interpreter. Returns standa... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"eval_python... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "15.60", "printed": "15.60", "notation": null} |
nlprog_det-setting-0056206 | How many meters are in 91.5 kilometers?
Here's the code.
```python
km = 91.5
meters = km * 1000 # 91500.0
print(round(meters))
```
The code prints: 91500
91,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "91500", "printed": "91500", "notation": null} |
nlprog_det-setting-0056207 | A measure needs at least 60% of 185 votes. How many votes is that, rounded up?
The computation:
```python
import math
voters = 185
needed = math.ceil(voters * 60 / 100) # 111
print(needed)
```
Program output — 111
111 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0056208 | <|start|><|user|>
590 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 590
per_box = 15
boxes = math.ceil(files / per_box) # 40
print(boxes)
```
(Console output: 40)
It takes 40 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "590 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 590\nper_box = 15\nboxes = math.ceil(files / per_box) # 40\nprint(boxes)\n```\n(Console output: 40)\n\nIt takes 40 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0056209 | Ana earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?
We can compute it in Python.
```python
rate = 20.0
hours = 53
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 390.0
pay = regular + overtime # 1190.0
print(f"{pay:.2f}")
```
When run, it prints: 11... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "1190.00", "printed": "1190.00", "notation": null} |
nlprog_det-setting-0056210 | Attendance was 47 out of 50. Express it as a percent.
The program:
present = 47
total = 50
percent = present / total * 100 # 94.0
print(round(percent, 1))
# printed result: 94.0
Attendance was 94.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "94.0", "printed": "94.0", "notation": null} |
nlprog_det-setting-0056212 | Starting with 765 calendars and using 39 per day, how many remain after 18 days?
Python, step by step:
stock = 765
per_day = 39
days = 18
left = stock - per_day * days # 63
print(left)
On running, it outputs 63.
63 calendars are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0056213 | How many minutes pass from 10:45 AM to 1:28 PM on the same day?
Translated to Python:
```python
start = 10 * 60 + 45 # 645
end = 13 * 60 + 28 # 808
print(end - start)
```
The script prints: 163
163 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0056214 | Pack A has 10 items for $9.24. Pack B has 24 items for $20.76. Which has the lower price per item?
```python
pack_a = 9.24 / 10 # 0.924
pack_b = 20.76 / 24 # 0.8650000000000001
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Running it prints: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056215 | Split $1,424 between Liesel and Zainab in the ratio 3 to 5. What is Liesel's share?
A Python solution:
```python
total = 1424
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 534
print(share_a)
```
The run gives 534, as expected.
Liesel gets $534. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "534", "printed": "534", "notation": null} |
nlprog_det-setting-0056216 | A recipe for 8 people uses 300 grams of pasta. How many grams are needed for 6 people?
Code:
```python
grams = 300
serves = 8
needed_for = 6
scaled = grams * needed_for // serves # 225
print(scaled)
```
# stdout: 225
225 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0056217 | Rent of $1,100 goes up 4%. What is the new rent?
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
When run, it prints 1144.00.
It rises to $1,144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0056219 | <|start|><|user|>
Starting with 1110 paper reams and using 37 per day, how many remain after 7 days?<|eot|>
<|assistant|>
```python
stock = 1110
per_day = 37
days = 7
left = stock - per_day * days # 851
print(left)
```
The code prints 851.
851 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1110 paper reams and using 37 per day, how many remain after 7 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1110\nper_day = 37\ndays = 7\nleft = stock - per_day * days # 851\nprint(left)\n```\nThe code prints 851.\n\n851 remain."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "851", "printed": "851", "notation": null} |
nlprog_det-setting-0056221 | How many minutes pass from 11:07 AM to 1:31 PM on the same day?
A few lines of Python do it:
```python
start = 11 * 60 + 7 # 667
end = 13 * 60 + 31 # 811
print(end - start)
```
The run gives: 144
It is 144 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0056222 | $10,000 is invested at 2% compounded yearly. What is it worth after 2 years?
Program:
principal = 10000
rate = 2 / 100
years = 2
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
Shell output — 10404.00
It is worth $10,404.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "10404.00", "printed": "10404.00", "notation": null} |
nlprog_det-setting-0056223 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Fines run at $50 per day up to a maximum of $2,500. How much after 58 days?<|eot|>
<|assistant|>
$2,500 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $2,500. How much after 58 days?"
},
{
"role": "assistant",
"content": "$2,500 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0056224 | If a 3-year limitations period starts on December 11, 2018, when does it end?
In Python:
```python
from datetime import date
accrued = date(2018, 12, 11) # datetime.date(2018, 12, 11)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 12, 11)
print(expires.isoformat())
```
Shell out... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2021-12-11", "printed": "2021-12-11", "notation": null} |
nlprog_det-setting-0056225 | <|start|><|user|>
How many units at $20 each (variable cost $10) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
600 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $10) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "600 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0056226 | If a 5-year limitations period starts on March 12, 2024, when does it end?
Python does the arithmetic:
```python
from datetime import date
accrued = date(2024, 3, 12) # datetime.date(2024, 3, 12)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 3, 12)
print(expires.isoformat())
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2029-03-12", "printed": "2029-03-12", "notation": null} |
nlprog_det-setting-0056227 | If a 4-year limitations period starts on February 8, 2014, when does it end?
It runs out on February 8, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2018-02-08", "printed": "2018-02-08", "notation": null} |
nlprog_det-setting-0056228 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
From a $5,000 retainer, 2 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 2
rate = 250
left = retainer - hours * rate # 4500
print(left)
```
Execution prints 4500.
The remaining balance is $4,500... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "From a $5,000 retainer, 2 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 2\nrate = 250\nleft = retainer - hour... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0056229 | An office budget of $20,000 has expenses of $1,129, $2,018, $489, $394. How much of the budget is left?
A short script:
```python
budget = 20000
expenses = [1129, 2018, 489, 394]
left = budget - sum(expenses) # 15970
print(left)
```
Run it and it prints 15970.
$15,970 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "15970", "printed": "15970", "notation": null} |
nlprog_det-setting-0056230 | <|start|><|user|>
4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 4 # 4500.0
print(f"{per_client:.2f}")
```
Python prints... | chat | [
{
"role": "user",
"content": "4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0056231 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $6,000, 3 years. How much per year?<|eot|>
<|assistant|>
$13,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $6,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "$13,000.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "13000.00", "printed": "13000.00", "notation": null} |
nlprog_det-setting-0056232 | A 6-month warranty starts on January 13, 2023. On what date does it end?
Programmatically:
```python
from datetime import date
start = date(2023, 1, 13)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Executing i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-07-13", "printed": "2023-07-13", "notation": null} |
nlprog_det-setting-0056233 | A garage charges $3 an hour, never more than $20 a day. How much for 2 hours?
Parking costs $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0056234 | 10 boxes hold 25 scissors each. After 19 are handed out, how many are left?
The computation:
```python
boxes = 10
per_box = 25
given_away = 19
left = boxes * per_box - given_away # 231
print(left)
```
What it prints: 231
231 scissors are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "231", "printed": "231", "notation": null} |
nlprog_det-setting-0056235 | <|start|><|system|>
Tool definitions:
[{"name": "python_exec", "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"]}}, {"name": "lookup_statute", ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python_exec\", \"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\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 408 | {"gold": "2024-09-01", "printed": "2024-09-01", "notation": null} |
nlprog_det-setting-0056236 | What simple interest does $8,000 earn at 8% a year over 2 years?
Python, step by step:
```python
principal = 8000
rate = 8 / 100 # 0.08
years = 2
interest = principal * rate * years # 1280.0
print(f"{interest:.2f}")
```
(Execution result: 1280.00)
It earns $1,280.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1280.00", "printed": "1280.00", "notation": null} |
nlprog_det-setting-0056237 | A lease runs for 6 months at $1,200 per month. How much rent is paid over the whole term?
The rent over the term is $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0056238 | Convert 3,315 USD to CAD at 1 USD = 1.12 CAD.
A short script:
```python
amount = 3315
rate = 1.12
converted = amount * rate
print(f"{converted:.2f}")
```
Console output — 3712.80
It converts to 3,712.80 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3712.80", "printed": "3712.80", "notation": null} |
nlprog_det-setting-0056239 | An attorney bills 2.5 hours at $180 per hour. What is the bill?
Set it up in Python:
```python
hours = 2.5
rate = 180
bill = hours * rate # 450.0
print(f"{bill:.2f}")
```
Printed result: 450.00
That comes to $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0056240 | How much sales tax is charged on a $845.86 purchase at 7%?
Code:
price = 845.86
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 59.21020000000001
print(f"{tax:.2f}")
What it prints: 59.21
$59.21 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "59.21", "printed": "59.21", "notation": null} |
nlprog_det-setting-0056242 | <|start|><|user|>
What does $2,000 grow to in 2 years at 4% annual compounding?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 2163.2000000000003
print(f"{value:.2f}")
```
It prints: 2163.20
The balance is $2,163.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $2,000 grow to in 2 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 2163.2000000000003\nprint(f\"{value:.2f}\")\n```\nIt print... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2163.20", "printed": "2163.20", "notation": null} |
nlprog_det-setting-0056243 | Straight-line depreciation: cost $30,000, salvage $2,000, 5 years. How much per year?
Python, step by step:
```python
cost = 30000
salvage = 2000
years = 5
per_year = (cost - salvage) / years # 5600.0
print(f"{per_year:.2f}")
```
The code prints 5600.00.
$5,600.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5600.00", "printed": "5600.00", "notation": null} |
nlprog_det-setting-0056244 | A kettle costs $90. It is 40% off. What is the sale price?
Computation in Python:
price = 90
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
Console output: 54.00
The sale price is $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0056246 | A $30,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
Computation in Python:
```python
grant = 30000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 9000.0
print(f"{each:.2f}")
```
(stdout: 9000.00)
Each installment is $9,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.