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-0077313 | A $150 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?
Written as code:
```python
bill = 150
tip_rate = 18 / 100
people = 5
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
Running this gives 35.40.
Each person pays $35.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0077314 | Someone works 32 hours at $18.38 per hour. What are the earnings?
Python does the arithmetic:
```python
rate = 18.38
hours = 32
earnings = rate * hours # 588.16
print(f"{earnings:.2f}")
```
(stdout: 588.16)
That earns $588.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "588.16", "printed": "588.16", "notation": null} |
nlprog_det-setting-0077316 | <|start|><|user|>
Each of Hugo's walks burns 250 calories. How many calories over 5 walks?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 5
total = per_session * sessions # 1250
print(total)
```
Execution prints: 1250
That burns 1250 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Hugo's walks burns 250 calories. How many calories over 5 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions # 1250\nprint(total)\n```\nExecution prints: 1250\n\nThat burns 1250 calories.... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0077317 | A lease runs for 18 months at $975 per month. How much rent is paid over the whole term?
The Python version:
```python
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
```
When run, it prints 17550.
In total, $17,550 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0077318 | <|start|><|user|>
Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 11,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.75
used = 11
free = 2
bill = base + rate * max(0, used - free) # 57.75
print(f"{bill:.2f}")
```
Output = 57.75
$57.75 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 11,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.75\nused = 11\nfree = 2\nbill = base + rate * max(0, used - free) # 57.75\nprint(f\"{bill:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "57.75", "printed": "57.75", "notation": null} |
nlprog_det-setting-0077319 | <|start|><|user|>
A party has 21 days to respond to a motion served on December 23, 2023, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2023, 12, 23) # datetime.date(2023, 12, 23)
response_days = 21
mail_days =... | chat | [
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on December 23, 2023, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 12, 23) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2024-01-16", "printed": "2024-01-16", "notation": null} |
nlprog_det-setting-0077320 | <|start|><|user|>
Attendance was 172 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 172
total = 200
percent = present / total * 100 # 86.0
print(round(percent, 1))
```
Running this gives 86.0.
86.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 172 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 172\ntotal = 200\npercent = present / total * 100 # 86.0\nprint(round(percent, 1))\n```\nRunning this gives 86.0.\n\n86.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "86.0", "printed": "86.0", "notation": null} |
nlprog_det-setting-0077321 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
242 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 242
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "242 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 242\ngroups = 6\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "40 each, 2 left over", "printed": "40 each, 2 left over", "notation": null} |
nlprog_det-setting-0077322 | <|start|><|user|>
Signe's scores were 57, 69, 78 and 76. What is the average score?<|eot|>
<|assistant|>
```python
scores = [57, 69, 78, 76]
average = sum(scores) // len(scores) # 70
print(average)
```
stdout:
70
The mean is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Signe's scores were 57, 69, 78 and 76. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [57, 69, 78, 76]\naverage = sum(scores) // len(scores) # 70\nprint(average)\n```\nstdout:\n70\n\nThe mean is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0077323 | From 2021 to 2053, how many years is that?
Here is the program.
```python
start_year = 2021
end_year = 2053
print(end_year - start_year)
```
Running it prints 32, as expected.
32 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0077324 | A measure needs at least 60% of 221 votes. How many votes is that, rounded up?
Python code:
```python
import math
voters = 221
needed = math.ceil(voters * 60 / 100) # 133
print(needed)
```
The script prints 133, as expected.
At least 133 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "133", "printed": "133", "notation": null} |
nlprog_det-setting-0077325 | <|start|><|user|>
Papers were served by mail on March 5, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
It is due April 7, 2027.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Papers were served by mail on March 5, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "It is due April 7, 2027."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "2027-04-07", "printed": "2027-04-07", "notation": null} |
nlprog_det-setting-0077326 | A trial runs from June 1, 2021 to June 6, 2021, counting both days. How many calendar days is that?
Coded up:
```python
from datetime import date
first = date(2021, 6, 1) # datetime.date(2021, 6, 1)
last = date(2021, 6, 6) # datetime.date(2021, 6, 6)
days = (last - first).days + 1 # 6
print(days)
```
Interpreter ou... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0077327 | <|start|><|user|>
After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 19000.0
print(f"{each:.2f}")
```
# output: 19000.00
$19,000.00 per installme... | chat | [
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 19000.0\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "19000.00", "printed": "19000.00", "notation": null} |
nlprog_det-setting-0077328 | A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?
monthly_rent = 2100
months = 6
total = monthly_rent * months # 12600
print(total)
Printed: 12600
The rent over the term is $12,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "12600", "printed": "12600", "notation": null} |
nlprog_det-setting-0077329 | A library charges $0.15 per book per day late. What is the fine for 3 books that are 17 days late?
Computation in Python:
```python
per_day = 0.15
days_late = 17
books = 3
fine = per_day * days_late * books # 7.6499999999999995
print(f"{fine:.2f}")
```
Executed, it shows 7.65.
The fine is $7.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "7.65", "printed": "7.65", "notation": null} |
nlprog_det-setting-0077331 | From a $10,000 retainer, 11 hours at $200/hour have been drawn. What remains?
The remaining balance is $7,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "7800", "printed": "7800", "notation": null} |
nlprog_det-setting-0077332 | 11 boxes hold 12 binders each. After 11 are handed out, how many are left?
That leaves 121 binders. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0077333 | <|start|><|user|>
A library charges $0.50 per book per day late. What is the fine for 4 books that are 29 days late?<|eot|>
<|assistant|>
The fine is $58.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 29 days late?"
},
{
"role": "assistant",
"content": "The fine is $58.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0077334 | $10,000 is invested at 3% compounded yearly. What is it worth after 3 years?
It is worth $10,927.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "10927.27", "printed": "10927.27", "notation": null} |
nlprog_det-setting-0077335 | <|start|><|system|>
Tool definitions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "eval_python", "description": "Run Python code in a sa... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 382 | {"gold": "372", "printed": "372", "notation": null} |
nlprog_det-setting-0077336 | <|start|><|user|>
Find the mean of these test scores: 95, 93, 51, 96, 86 and 95.<|eot|>
<|assistant|>
```python
scores = [95, 93, 51, 96, 86, 95]
average = sum(scores) // len(scores) # 86
print(average)
```
stdout = 86
The average score is 86.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 95, 93, 51, 96, 86 and 95."
},
{
"role": "assistant",
"content": "```python\nscores = [95, 93, 51, 96, 86, 95]\naverage = sum(scores) // len(scores) # 86\nprint(average)\n```\nstdout = 86\n\nThe average score is 86."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0077337 | How many of 53 votes make 60% (round up)?
Written as code:
```python
import math
voters = 53
needed = math.ceil(voters * 60 / 100) # 32
print(needed)
```
Execution result — 32
32 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0077338 | Divide 232 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python:
```python
total = 232
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Interpreter output: 33 each, 1 left over
33 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "33 each, 1 left over", "printed": "33 each, 1 left over", "notation": null} |
nlprog_det-setting-0077339 | A $2,400 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Computing it:
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 384.0
payment = (principal + interest... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "116.00", "printed": "116.00", "notation": null} |
nlprog_det-setting-0077340 | <|start|><|user|>
Grace lends $2,500 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
The interest is $600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Grace lends $2,500 at 4% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "The interest is $600.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0077341 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 5 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 5
cap = 2500
fine = min(per_day * days, cap) # 125
print(fine)
```
stdout: 125
$125 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 5 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 5\ncap = 2500\nfine = min(per_day * days, cap) # 125\nprint(fine)\n```\nstdout: 125\n\n$125 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0077342 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after March 19, 2019 through April 11, 2019?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2019, 3, 19)
end = date(2019, 4, 11)
count... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after March 19, 2019 through April 11, 2019?"
},
{
"role": "assistant",
"content": " from datetime import... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0077343 | <|start|><|user|>
A library charges $0.20 per book per day late. What is the fine for 3 books that are 24 days late?<|eot|>
<|assistant|>
$14.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.20 per book per day late. What is the fine for 3 books that are 24 days late?"
},
{
"role": "assistant",
"content": "$14.40 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "14.40", "printed": "14.40", "notation": null} |
nlprog_det-setting-0077344 | What is -15 degrees Celsius in Fahrenheit?
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
Executed, it shows: 5
That is 5 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0077345 | <|start|><|user|>
What percentage of $8,000 is $2,800?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 2800
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
The printout reads 35.0.
That is 35.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $2,800?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 2800\npercent = spent / budget * 100 # 35.0\nprint(round(percent, 1))\n```\nThe printout reads 35.0.\n\nThat is 35.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0077346 | At $29.76 an hour, what does 20 hours of work pay?
The pay is $595.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "595.20", "printed": "595.20", "notation": null} |
nlprog_det-setting-0077347 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A pack of 4 file boxes sells for $84. What does each cost?<|eot|>
<|assistant|>
Each one costs $21.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A pack of 4 file boxes sells for $84. What does each cost?"
},
{
"role": "assistant",
"content": "Each one costs $21."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0077348 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each share is $19,200.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each sha... | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0077349 | Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Code:
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
Program output: 1.4
Profit is 1.4% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0077350 | Convert -10 °C to Fahrenheit.
The Python version:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Shell output — 14
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0077351 | <|start|><|user|>
A hall has 14 rows of 23 seats, and 13 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 14
per_row = 23
empty = 13
seated = rows * per_row - empty # 309
print(seated)
```
The script prints 309, as expected.
309 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 14 rows of 23 seats, and 13 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 14\nper_row = 23\nempty = 13\nseated = rows * per_row - empty # 309\nprint(seated)\n```\nThe script prints 309, as expected.... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "309", "printed": "309", "notation": null} |
nlprog_det-setting-0077352 | <|start|><|user|>
A trial runs from June 25, 2020 to July 15, 2020, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 6, 25) # datetime.date(2020, 6, 25)
last = date(2020, 7, 15) # datetime.date(2020, 7, 15)
days = (last - first).days + 1 ... | chat | [
{
"role": "user",
"content": "A trial runs from June 25, 2020 to July 15, 2020, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 6, 25) # datetime.date(2020, 6, 25)\nlast = date(2020, 7, 15) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0077353 | <|start|><|user|>
Split $1,080 between Yoko and Rania in the ratio 1 to 3. What is Yoko's share?<|eot|>
<|assistant|>
Yoko's share is $270.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,080 between Yoko and Rania in the ratio 1 to 3. What is Yoko's share?"
},
{
"role": "assistant",
"content": "Yoko's share is $270."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0077354 | 267 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
The answer: 53 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "53 each, 2 left over", "printed": "53 each, 2 left over", "notation": null} |
nlprog_det-setting-0077355 | A library charges $0.10 per book per day late. What is the fine for 4 books that are 17 days late?
We write it as a program:
```python
per_day = 0.1
days_late = 17
books = 4
fine = per_day * days_late * books # 6.800000000000001
print(f"{fine:.2f}")
```
Running it prints: 6.80
$6.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6.80", "printed": "6.80", "notation": null} |
nlprog_det-setting-0077356 | <|start|><|user|>
A trial runs from April 23, 2021 to May 10, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 4, 23) # datetime.date(2021, 4, 23)
last = date(2021, 5, 10) # datetime.date(2021, 5, 10)
days = (last - first).days + 1 ... | chat | [
{
"role": "user",
"content": "A trial runs from April 23, 2021 to May 10, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 4, 23) # datetime.date(2021, 4, 23)\nlast = date(2021, 5, 10) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0077357 | <|start|><|user|>
The paralegal logged 6.5 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
The bill is $2,275.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 6.5 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "The bill is $2,275.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "2275.00", "printed": "2275.00", "notation": null} |
nlprog_det-setting-0077358 | <|start|><|user|>
Monthly rent is $1,200. A tenant moves in with 7 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 30
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 280.0
print(f"{prorated:.2f}")
```
Running this gives 280.00.
The... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,200. A tenant moves in with 7 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 7\nprorated = rent * days_occupied / days_in_month # 280.0\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "280.00", "printed": "280.00", "notation": null} |
nlprog_det-setting-0077359 | A library charges $0.15 per book per day late. What is the fine for 3 books that are 8 days late?
As Python:
per_day = 0.15
days_late = 8
books = 3
fine = per_day * days_late * books # 3.5999999999999996
print(f"{fine:.2f}")
Out: 3.60
The fine is $3.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3.60", "printed": "3.60", "notation": null} |
nlprog_det-setting-0077360 | A hearing is set for January 27, 2018. What day of the week is that?
One way, in code:
```python
from datetime import date
hearing = date(2018, 1, 27) # datetime.date(2018, 1, 27)
print(hearing.strftime("%A"))
```
The program outputs Saturday.
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0077361 | <|start|><|user|>
Monthly: $12. Annual: $108. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
The script prints 36.
The annual plan saves $36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $12. Annual: $108. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 108\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nThe script prints 36.\n\nThe annual plan saves $36."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0077362 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client =... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 48... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0077363 | <|start|><|user|>
Split $1,328 between Pilar and Liesel in the ratio 1 to 3. What is Pilar's share?<|eot|>
<|assistant|>
```python
total = 1328
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 332
print(share_a)
```
Running this gives: 332
Pilar's share is $332.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,328 between Pilar and Liesel in the ratio 1 to 3. What is Pilar's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1328\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 332\nprint(share_a)\n```\nRunning this giv... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "332", "printed": "332", "notation": null} |
nlprog_det-setting-0077364 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A hearing is s... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0077365 | 205 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
As Python:
```python
total = 205
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Interpreter output: 34 each, 1 left over
The answer: 34 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "34 each, 1 left over", "printed": "34 each, 1 left over", "notation": null} |
nlprog_det-setting-0077366 | At an exchange rate of 1.27 USD per GBP, how many USD is 7,037 GBP?
Python, step by step:
```python
amount = 7037
rate = 1.27
converted = amount * rate # 8936.99
print(f"{converted:.2f}")
```
# result: 8936.99
It converts to 8,936.99 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8936.99", "printed": "8936.99", "notation": null} |
nlprog_det-setting-0077367 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A claim accrued on December 22, 2021. The limitations period is 2 years. On what date does it expire?<|eot|>
<|assistant|>
The period expires on December 22, 2023.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A claim accrued on December 22, 2021. The limitations period is 2 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "The period expires on December 22, 2023."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "2023-12-22", "printed": "2023-12-22", "notation": null} |
nlprog_det-setting-0077368 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 12 days?<|eot|>
<|assistant|>
$300 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 12 days?"
},
{
"role": "assistant",
"content": "$300 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0077369 | What percentage of $5,000 is $1,200?
The computation:
```python
budget = 5000
spent = 1200
percent = spent / budget * 100 # 24.0
print(round(percent, 1))
```
stdout — 24.0
That is 24.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "24.0", "printed": "24.0", "notation": null} |
nlprog_det-setting-0077370 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "convert_units", "description": "Convert a quantity betwee... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 401 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0077371 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
The firm was founded in 2015. How many years had passed by 2052?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2052
print(end_year - start_year)
```
The program prints 37, as expected.
37 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "The firm was founded in 2015. How many years had passed by 2052?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2052\nprint(end_year - start_year)\n```\nThe pro... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0077372 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
97 of 100 membe... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "97.0", "printed": "97.0", "notation": null} |
nlprog_det-setting-0077373 | <|start|><|user|>
Copies cost $15 plus $0.10 for each page beyond 0. How much for 27 pages?<|eot|>
<|assistant|>
The copy costs $17.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.10 for each page beyond 0. How much for 27 pages?"
},
{
"role": "assistant",
"content": "The copy costs $17.70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "17.70", "printed": "17.70", "notation": null} |
nlprog_det-setting-0077374 | <|start|><|user|>
Dara has 6 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 35
filings = 6
total = fee * filings # 210
print(total)
```
Shell output: 210
The filings cost $210 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Dara has 6 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 6\ntotal = fee * filings # 210\nprint(total)\n```\nShell output: 210\n\nThe filings cost $210 in al... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0077375 | A library charges $0.25 per book per day late. What is the fine for 1 books that are 13 days late?
Here's the code.
```python
per_day = 0.25
days_late = 13
books = 1
fine = per_day * days_late * books # 3.25
print(f"{fine:.2f}")
```
The run gives 3.25.
The fine is $3.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "3.25", "printed": "3.25", "notation": null} |
nlprog_det-setting-0077376 | Filing fees are $25 per document. What do 7 filings cost?
One way, in code:
```python
fee = 25
filings = 7
total = fee * filings # 175
print(total)
```
(Run result: 175)
$175 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0077377 | After an initial $2,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part?
One way, in code:
```python
grant = 24000
up_front = 2000
installments = 4
each = (grant - up_front) / installments # 5500.0
print(f"{each:.2f}")
```
stdout: 5500.00
$5,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5500.00", "printed": "5500.00", "notation": null} |
nlprog_det-setting-0077378 | A 3% increase is applied to $1,100 monthly rent. What is the new amount?
Script:
```python
rent = 1100
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1133.0
print(f"{new_rent:.2f}")
```
Running this gives: 1133.00
It rises to $1,133.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1133.00", "printed": "1133.00", "notation": null} |
nlprog_det-setting-0077379 | <|start|><|user|>
A measure needs at least 60% of 203 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 203
needed = math.ceil(voters * 60 / 100) # 122
print(needed)
```
The printout reads 122.
122 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 203 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 203\nneeded = math.ceil(voters * 60 / 100) # 122\nprint(needed)\n```\nThe printout reads 122.\n\n122 votes are nee... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "122", "printed": "122", "notation": null} |
nlprog_det-setting-0077380 | $5,000 is invested at 3% compounded yearly. What is it worth after 4 years?
A few lines of Python do it:
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 5627.54405
print(f"{value:.2f}")
```
Output:
5627.54
The balance is $5,627.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5627.54", "printed": "5627.54", "notation": null} |
nlprog_det-setting-0077381 | A $2,400 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
In code:
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + int... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0077382 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after November 21, 2027 up to and including December 19, 2027?<|eot|>
<|assistant|>
20 weekdays.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after November 21, 2027 up to and including December 19, 2027?"
},
{
"role": "assistant",
"content": "20 weekdays."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0077383 | <|start|><|user|>
162 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
The answer: 54 each, 0 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "162 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "The answer: 54 each, 0 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "54 each, 0 left over", "printed": "54 each, 0 left over", "notation": null} |
nlprog_det-setting-0077384 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "python_exec", "description": "A Py... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0077385 | From 1995 to 2014, how many years is that?
That is 19 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 19 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0077386 | Of a $5,000 budget, $2,700 has been spent. What percent is that?
Here is a short program for it.
```python
budget = 5000
spent = 2700
percent = spent / budget * 100 # 54.0
print(round(percent, 1))
```
The interpreter prints: 54.0
54.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "54.0", "printed": "54.0", "notation": null} |
nlprog_det-setting-0077387 | <|start|><|user|>
Divide 105 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
15 each, 0 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Divide 105 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "15 each, 0 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "15 each, 0 left over", "printed": "15 each, 0 left over", "notation": null} |
nlprog_det-setting-0077388 | <|start|><|system|>
You may call the tools below.
[{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
What is -20 degrees Cel... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0077389 | <|start|><|user|>
What percentage of $8,000 is $6,200?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 6200
percent = spent / budget * 100 # 77.5
print(round(percent, 1))
```
(Result: 77.5)
77.5% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $6,200?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 6200\npercent = spent / budget * 100 # 77.5\nprint(round(percent, 1))\n```\n(Result: 77.5)\n\n77.5% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77.5", "printed": "77.5", "notation": null} |
nlprog_det-setting-0077390 | Someone born April 28, 1972 turns how old by September 5, 2025? Give the age in whole years.
Computing it:
```python
from datetime import date
born = date(1972, 4, 28) # datetime.date(1972, 4, 28)
on = date(2025, 9, 5) # datetime.date(2025, 9, 5)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0077391 | <|start|><|user|>
26 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
The answer: 2 each, 8 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "26 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "The answer: 2 each, 8 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2 each, 8 left over", "printed": "2 each, 8 left over", "notation": null} |
nlprog_det-setting-0077392 | <|start|><|user|>
A trial runs from July 16, 2019 to July 23, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 7, 16) # datetime.date(2019, 7, 16)
last = date(2019, 7, 23) # datetime.date(2019, 7, 23)
days = (last - first).days + 1 ... | chat | [
{
"role": "user",
"content": "A trial runs from July 16, 2019 to July 23, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 7, 16) # datetime.date(2019, 7, 16)\nlast = date(2019, 7, 23) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0077393 | Goods bought on June 8, 2026 carry a 18-month warranty. When does it expire?
Python code:
```python
from datetime import date
start = date(2026, 6, 8)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Output:
2027... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2027-12-08", "printed": "2027-12-08", "notation": null} |
nlprog_det-setting-0077394 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "code_runner", "description": "Executes a Python program a... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0077395 | 8 claimants share a $960 settlement equally. What is each share?
Each share is $120. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0077396 | Count 21 days forward from June 12, 2024. What date is that?
It ends on July 3, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "2024-07-03", "printed": "2024-07-03", "notation": null} |
nlprog_det-setting-0077397 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 377 files?<|eot|>
<|assistant|>
```python
import math
files = 377
per_box = 12
boxes = math.ceil(files / per_box) # 32
print(boxes)
```
# execution result: 32
It takes 32 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 377 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 377\nper_box = 12\nboxes = math.ceil(files / per_box) # 32\nprint(boxes)\n```\n# execution result: 32\n\nIt takes 32 box... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0077398 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Zoe buys 12 boxes of 12 lanyards each and gives away 5 lanyards. How many lanyards are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 12
given_away = 5
left = boxes * per_box - given_away
print(left)
```
This prints 139, as expected.
That leav... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Zoe buys 12 boxes of 12 lanyards each and gives away 5 lanyards. How many lanyards are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 12\ngiven_away = 5\nleft... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "139", "printed": "139", "notation": null} |
nlprog_det-setting-0077401 | Attendance was 48 out of 80. Express it as a percent.
```python
present = 48
total = 80
percent = present / total * 100 # 60.0
print(round(percent, 1))
```
(Output: 60.0)
Attendance was 60.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0077402 | A 17 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
It takes 56 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0077403 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
How much is a $69 daily meal allowance over 6 days?<|eot|>
<|assistant|>
```python
days = 6
meal_rate = 69
total = days * meal_rate # 414
print(total)
```
Execution prints: 414
The allowance is $414.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "How much is a $69 daily meal allowance over 6 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 6\nmeal_rate = 69\ntotal = days * meal_rate # 414\nprint(total)\n```\nExecution print... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "414", "printed": "414", "notation": null} |
nlprog_det-setting-0077404 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 57 days?
Program:
```python
per_day = 100
days = 57
cap = 1000
fine = min(per_day * days, cap)
print(fine)
```
Execution result — 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077405 | <|start|><|user|>
From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 10
rate = 250
left = retainer - hours * rate # 0
print(left)
```
Running this gives: 0
$0 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 10\nrate = 250\nleft = retainer - hours * rate # 0\nprint(left)\n```\nRunning this gives: 0\n\n$0 of the retainer... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0077406 | A settlement of $36,000 is split equally among 5 parties. How much does each party receive?
Set it up in Python:
```python
settlement = 36000
parties = 5
share = settlement // parties # 7200
print(share)
```
(Execution result: 7200)
Each party receives $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0077407 | Revenue is $15,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
Python prints 16.7.
The margin is 16.7%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0077408 | 23 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
Set it up in Python:
```python
total = 23
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The code prints: 2 each, 7 left over
The answer: 2 each, 7 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2 each, 7 left over", "printed": "2 each, 7 left over", "notation": null} |
nlprog_det-setting-0077410 | <|start|><|user|>
Yara earns a 8% commission on $23,337 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 23337
rate = 8 / 100 # 0.08
commission = sales * rate # 1866.96
print(f"{commission:.2f}")
```
On running, it outputs 1866.96.
The commission is $1,866.96.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yara earns a 8% commission on $23,337 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 23337\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 1866.96\nprint(f\"{commission:.2f}\")\n```\nOn running, it outputs 1866.96.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1866.96", "printed": "1866.96", "notation": null} |
nlprog_det-setting-0077411 | <|start|><|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 20
free = 0
bill = base + rate * max(0, used - free) # 99.0
print(f"{bill:.2f}")
```
Python prints: 99.00
The bill is $99.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 20\nfree = 0\nbill = base + rate * max(0, used - free) # 99.0\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "99.00", "printed": "99.00", "notation": null} |
nlprog_det-setting-0077412 | <|start|><|user|>
Convert 1 h 38 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
The meeting lasted 98 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1 h 38 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "The meeting lasted 98 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0077414 | <|start|><|system|>
You have access to these functions:
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "1100", "printed": "1100", "notation": null} |
nlprog_det-setting-0077415 | A client paid a $10,000 retainer. The firm has billed 3 hours at $150 per hour. How much of the retainer is left?
Computing it:
```python
retainer = 10000
hours = 3
rate = 150
left = retainer - hours * rate # 9550
print(left)
```
Printed:
9550
The remaining balance is $9,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "9550", "printed": "9550", "notation": null} |
nlprog_det-setting-0077417 | At a 5% tax rate, what is the tax on $197.74?
The tax is $9.89. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "9.89", "printed": "9.89", "notation": null} |
nlprog_det-setting-0077418 | An attorney bills 8 hours at $180 per hour. What is the bill?
We write it as a program:
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
Executed, it shows 1440.00.
That comes to $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0077419 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.26315... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 38000\ncos... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "5.3", "printed": "5.3", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.