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-0068524 | Jae and Bilal share $399 in the ratio 2:5. How much does Jae get?
As a program:
```python
total = 399
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 114
print(share_a)
```
Run result: 114
Jae gets $114. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0068525 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Pack A has 6 items for $6.77. Pack B has 20 items for $25.71. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 6.77 / 6 # 1.1283333333333332
pack_b = 25.71 / 20 # 1.2855
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheap... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Pack A has 6 items for $6.77. Pack B has 20 items for $25.71. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.77 / 6 # 1.1283333333333332\npack... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0068526 | Monthly rent is $900. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?
Let's compute it with Python.
```python
rent = 900
days_in_month = 30
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 630.0
print(f"{prorated:.2f}")
```
(Program output: 630.00)
The tenant owe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "630.00", "printed": "630.00", "notation": null} |
nlprog_det-setting-0068527 | <|start|><|user|>
Oskar and Reza share $1,414 in the ratio 2:5. How much does Oskar get?<|eot|>
<|assistant|>
```python
total = 1414
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
(Execution result: 404)
Oskar gets $404.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Oskar and Reza share $1,414 in the ratio 2:5. How much does Oskar get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1414\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\n(Execution result: 404)\n\nOskar g... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "404", "printed": "404", "notation": null} |
nlprog_det-setting-0068528 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "math_engine", "descrip... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 410 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0068529 | <|start|><|user|>
A printer costs $120. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 120
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 96.0
print(f"{sale_price:.2f}")
```
On running, it outputs 96.00.
The sale price is $96.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A printer costs $120. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 96.0\nprint(f\"{sale_price:.2f}\")\n```\nOn running, it outputs 96.00.\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "96.00", "printed": "96.00", "notation": null} |
nlprog_det-setting-0068530 | How much sales tax is charged on a $511.60 purchase at 4%?
Python version:
```python
price = 511.6
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 20.464000000000002
print(f"{tax:.2f}")
```
Output: 20.46
$20.46 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "20.46", "printed": "20.46", "notation": null} |
nlprog_det-setting-0068531 | A appointment starts at 1:40 PM and lasts 25 minutes. When does it end?
Python, step by step:
```python
start = 13 * 60 + 40
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
On running, it outputs 2:05 PM.
It ends at 2:05 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2:05 PM", "printed": "2:05 PM", "notation": null} |
nlprog_det-setting-0068532 | <|start|><|user|>
Pack A has 12 items for $13.57. Pack B has 30 items for $16.53. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 13.57 / 12 # 1.1308333333333334
pack_b = 16.53 / 30 # 0.551
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Out = B
Pack B is cheaper per i... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $13.57. Pack B has 30 items for $16.53. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.57 / 12 # 1.1308333333333334\npack_b = 16.53 / 30 # 0.551\ncheaper = \"A\" if pack_a < pack_b else \"B... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068533 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0068534 | Which is cheaper per unit: 8 for $11.42 (A) or 15 for $19.46 (B)?
Written as code:
```python
pack_a = 11.42 / 8 # 1.4275
pack_b = 19.46 / 15 # 1.2973333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Run result: 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-0068535 | Pack A has 8 items for $4.57. Pack B has 24 items for $11.41. Which has the lower price per item?
We write it as a program:
pack_a = 4.57 / 8 # 0.57125
pack_b = 11.41 / 24 # 0.47541666666666665
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
# output: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068536 | The rules require 3/5 of 50 members (round up) to be present. How many is that?
We write it as a program:
```python
import math
members = 50
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
(Out: 30)
That is 30 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0068537 | A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?
We write it as a program:
```python
monthly_rent = 850
months = 12
total = monthly_rent * months # 10200
print(total)
```
Printed = 10200
The rent over the term is $10,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0068538 | A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?
Python:
```python
monthly = 19
yearly = 198
savings = monthly * 12 - yearly
print(savings)
```
That prints: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0068539 | <|start|><|user|>
Femi's scores were 99, 51, 66 and 80. What is the average score?<|eot|>
<|assistant|>
```python
scores = [99, 51, 66, 80]
average = sum(scores) // len(scores) # 74
print(average)
```
Output:
74
The average score is 74.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Femi's scores were 99, 51, 66 and 80. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [99, 51, 66, 80]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\nOutput:\n74\n\nThe average score is 74."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0068540 | A settlement of $84,000 is split equally among 3 parties. How much does each party receive?
We write it as a program:
settlement = 84000
parties = 3
share = settlement // parties # 28000
print(share)
The script prints 28000.
Each party receives $28,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0068541 | <|start|><|user|>
Convert 5 h 15 min (the length of a training session) to minutes.<|eot|>
<|assistant|>
The training session lasted 315 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 15 min (the length of a training session) to minutes."
},
{
"role": "assistant",
"content": "The training session lasted 315 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0068542 | <|start|><|user|>
Mei and Jamal share $1,008 in the ratio 1:2. How much does Mei get?<|eot|>
<|assistant|>
```python
total = 1008
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 336
print(share_a)
```
The script prints: 336
Mei's share is $336.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mei and Jamal share $1,008 in the ratio 1:2. How much does Mei get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1008\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 336\nprint(share_a)\n```\nThe script prints: 336\n\nMei'... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "336", "printed": "336", "notation": null} |
nlprog_det-setting-0068543 | Divide 244 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python does the arithmetic:
```python
total = 244
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Execution result — 81 each, 1 left over
81 e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "81 each, 1 left over", "printed": "81 each, 1 left over", "notation": null} |
nlprog_det-setting-0068544 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Liesel lends $1,000 at 3% sim... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0068545 | If a 2-year limitations period starts on March 23, 2018, when does it end?
The computation:
```python
from datetime import date
accrued = date(2018, 3, 23) # datetime.date(2018, 3, 23)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 3, 23)
print(expires.isoformat())
```
Out: 2020... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2020-03-23", "printed": "2020-03-23", "notation": null} |
nlprog_det-setting-0068546 | <|start|><|user|>
2 books come back 30 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
$15.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 30 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "$15.00 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0068547 | <|start|><|user|>
How many days are there from September 6, 2027 to October 5, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 9, 6) # datetime.date(2027, 9, 6)
second = date(2028, 10, 5) # datetime.date(2028, 10, 5)
print((second - first).days)
```
# console output: 395
There are 3... | chat | [
{
"role": "user",
"content": "How many days are there from September 6, 2027 to October 5, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 9, 6) # datetime.date(2027, 9, 6)\nsecond = date(2028, 10, 5) # datetime.date(2028, 10, 5)\nprint((se... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "395", "printed": "395", "notation": null} |
nlprog_det-setting-0068548 | Attendance was 16 out of 20. Express it as a percent.
As a program:
```python
present = 16
total = 20
percent = present / total * 100
print(round(percent, 1))
```
Running it prints 80.0.
Attendance was 80.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0068549 | Monthly rent is $1,500. A tenant moves in with 20 days left in a 31-day month. What is the prorated rent?
Written as code:
rent = 1500
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 967.741935483871
print(f"{prorated:.2f}")
Running this gives 967.74.
The t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "967.74", "printed": "967.74", "notation": null} |
nlprog_det-setting-0068550 | <|start|><|system|>
You can call tools. Available tools:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "interpreter", "description": "Runs a short Python snippet and returns what it print... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"interpreter\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 263 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0068551 | Goods bought on May 18, 2019 carry a 6-month warranty. When does it expire?
In code:
```python
from datetime import date
start = date(2019, 5, 18)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The interpreter p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2019-11-18", "printed": "2019-11-18", "notation": null} |
nlprog_det-setting-0068552 | Counting the first and last day, how many days are there from February 13, 2026 through February 28, 2026?
That is 16 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0068553 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $1,000. How much after 27 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 27
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Run output: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $1,000. How much after 27 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 27\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nRun output: 1000\n\nThe fine is $1,000."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0068554 | Shipping costs $10 plus $1.50 per pound. What does a 22-pound parcel cost to ship?
Coded up:
```python
base = 10
per_pound = 1.5
weight = 22
cost = base + per_pound * weight # 43.0
print(f"{cost:.2f}")
```
Output:
43.00
Shipping costs $43.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "43.00", "printed": "43.00", "notation": null} |
nlprog_det-setting-0068555 | <|start|><|user|>
Starting from $5,000, the team spends $3,097, $874. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [3097, 874]
left = budget - sum(expenses) # 1029
print(left)
```
Output of the run: 1029
$1,029 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $3,097, $874. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [3097, 874]\nleft = budget - sum(expenses) # 1029\nprint(left)\n```\nOutput of the run: 1029\n\n$1,029 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1029", "printed": "1029", "notation": null} |
nlprog_det-setting-0068556 | A water bill is $15 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons?
We can compute it in Python.
```python
base = 15
rate = 4.75
used = 18
free = 3
bill = base + rate * max(0, used - free) # 86.25
print(f"{bill:.2f}")
```
The program prints 86.25.
$86.25 is owed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "86.25", "printed": "86.25", "notation": null} |
nlprog_det-setting-0068557 | 4 friends split a $120 bill plus a 18% tip evenly. How much does each pay?
We can compute it in Python.
```python
bill = 120
tip_rate = 18 / 100
people = 4
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
It prints 35.40, as expected.
The share is $35.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0068558 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 18 days?
A short script:
```python
per_day = 100
days = 18
cap = 5000
fine = min(per_day * days, cap) # 1800
print(fine)
```
Shell output — 1800
The fine is $1,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0068559 | 4 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 4 # 11250.0
print(f"{per_client:.2f}")
```
Executing it gives: 11250.00
Each client gets $11... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0068560 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Each storage box holds 12 files. How many boxes are ne... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
},
{
"... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0068561 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
What average speed covers 456 miles in 2 hours?<|eot|>
<|assistant|>
It averages 228 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "What average speed covers 456 miles in 2 hours?"
},
{
"role": "assistant",
"content": "It averages 228 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "228", "printed": "228", "notation": null} |
nlprog_det-setting-0068562 | With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.
Python version:
```python
revenue = 14500
costs = 12500
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 13.793103448275861
print(round(margin, 1))
```
Running this gives 13.8.
Profit is 13.8% of ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0068563 | A 29 lb package ships at $12 base plus $1.50/lb. What is the charge?
Computing it:
```python
base = 12
per_pound = 1.5
weight = 29
cost = base + per_pound * weight # 55.5
print(f"{cost:.2f}")
```
# output: 55.50
The charge is $55.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "55.50", "printed": "55.50", "notation": null} |
nlprog_det-setting-0068564 | <|start|><|user|>
Papers were served by mail on June 10, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2019, 6, 10) # datetime.date(2019, 6, 10)
response_days = 14
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on June 10, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 6, 10) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2019-06-27", "printed": "2019-06-27", "notation": null} |
nlprog_det-setting-0068565 | <|start|><|system|>
Functions:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
3 swims at 200 calories each burn how many calories in ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
{
"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 195 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0068566 | <|start|><|user|>
Find the mean of these test scores: 67, 94 and 67.<|eot|>
<|assistant|>
```python
scores = [67, 94, 67]
average = sum(scores) // len(scores) # 76
print(average)
```
Printed: 76
The average score is 76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 67, 94 and 67."
},
{
"role": "assistant",
"content": "```python\nscores = [67, 94, 67]\naverage = sum(scores) // len(scores) # 76\nprint(average)\n```\nPrinted: 76\n\nThe average score is 76."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0068567 | 83 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
Python version:
total = 83
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# out: 10 each, 3 left over
The answer: 10 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10 each, 3 left over", "printed": "10 each, 3 left over", "notation": null} |
nlprog_det-setting-0068568 | Convert 30 °C to Fahrenheit.
Coded up:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Printed: 86
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0068569 | A 11 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
import math
length = 11
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 77
print(tiles)
That prints: 77
It takes 77 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0068570 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after May 26, 2021 up to and including June 22, 2021?<|eot|>
<|assistant|>
There are 19 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after May 26, 2021 up to and including June 22, 2021?"
},
{
"role": "assistant",
"content": "There are 19 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0068571 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Goods b... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 280 | {"gold": "2022-08-15", "printed": "2022-08-15", "notation": null} |
nlprog_det-setting-0068572 | 3 books come back 6 days late, at $0.15 a day each. What is the fine?
The Python version:
```python
per_day = 0.15
days_late = 6
books = 3
fine = per_day * days_late * books # 2.6999999999999997
print(f"{fine:.2f}")
```
Printed result: 2.70
$2.70 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2.70", "printed": "2.70", "notation": null} |
nlprog_det-setting-0068574 | Buying 6 markers at $11 each, 1 rulers at $15 each, 5 sticky pads at $5 each, someone hands over $150. What change comes back?
Python version:
```python
items = [(6, 11), (1, 15), (5, 5)]
total = sum(q * p for q, p in items) # 106
paid = 150
change = paid - total # 44
print(change)
```
# output: 44
$44 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0068575 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 6 months?
Code:
```python
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 900.0
print(f"{interest:.2f}")
```
Shell output — 900.00
$900.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0068576 | A customer buys 1 markers at $10 each, 3 keyboards at $17 each and pays with $100. How much change is due?
Let the code do the arithmetic:
```python
items = [(1, 10), (3, 17)]
total = sum(q * p for q, p in items) # 61
paid = 100
change = paid - total # 39
print(change)
```
When run, it prints 39, as expected.
The c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0068577 | A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 49-page copy cost?
Computation in Python:
```python
pages = 49
base = 10
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 22.25
print(f"{cost:.2f}")
```
Running it prints 22.25, as expected.
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "22.25", "printed": "22.25", "notation": null} |
nlprog_det-setting-0068578 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Pilar's scores were 91, 93, 86, 95, 95 and 74. What is the average score?<|eot|>
<|assistant|>
```python
scores = [91, 93, 86, 95, 95, 74]
average = sum(scores) // len(scores) # 89
print(average)
```
The run gives: 89
The average score is 89.... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Pilar's scores were 91, 93, 86, 95, 95 and 74. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [91, 93, 86, 95, 95, 74]\naverage = sum(score... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0068579 | What day of the week is April 19, 2026?
Code:
from datetime import date
hearing = date(2026, 4, 19) # datetime.date(2026, 4, 19)
print(hearing.strftime("%A"))
The code prints: Sunday
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0068580 | <|start|><|user|>
A $2,500 security deposit has deductions of $85. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [85]
refund = deposit - sum(deductions) # 2415
print(refund)
```
The program prints 2415.
The refund is $2,415.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,500 security deposit has deductions of $85. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [85]\nrefund = deposit - sum(deductions) # 2415\nprint(refund)\n```\nThe program prints 2415.\n\nThe refund is $2,4... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2415", "printed": "2415", "notation": null} |
nlprog_det-setting-0068581 | <|start|><|user|>
How long, in days, is it from June 26, 2021 until April 20, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 6, 26) # datetime.date(2021, 6, 26)
second = date(2022, 4, 20) # datetime.date(2022, 4, 20)
print((second - first).days)
```
# program output: 298
It is 298 ... | chat | [
{
"role": "user",
"content": "How long, in days, is it from June 26, 2021 until April 20, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 6, 26) # datetime.date(2021, 6, 26)\nsecond = date(2022, 4, 20) # datetime.date(2022, 4, 20)\nprint((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "298", "printed": "298", "notation": null} |
nlprog_det-setting-0068582 | <|start|><|user|>
The paralegal logged 6.5 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 6.5
rate = 350
bill = hours * rate # 2275.0
print(f"{bill:.2f}")
```
stdout = 2275.00
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": "```python\nhours = 6.5\nrate = 350\nbill = hours * rate # 2275.0\nprint(f\"{bill:.2f}\")\n```\nstdout = 2275.00\n\nThe bill is $2,275.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2275.00", "printed": "2275.00", "notation": null} |
nlprog_det-setting-0068583 | <|start|><|user|>
A $30,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
Each installment is $7,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $30,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "Each installment is $7,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0068584 | A 1064-page report must be reviewed in 19 days. How many pages a day is that, evenly?
Program:
```python
pages = 1064
days = 19
per_day = pages // days # 56
print(per_day)
```
(Run result: 56)
That is 56 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0068586 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 7,000 gallons?
Written as code:
```python
base = 15
rate = 4.2
used = 7
free = 3
bill = base + rate * max(0, used - free) # 31.8
print(f"{bill:.2f}")
```
Result: 31.80
$31.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "31.80", "printed": "31.80", "notation": null} |
nlprog_det-setting-0068587 | <|start|><|user|>
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
(Execution result: 1.4... | chat | [
{
"role": "user",
"content": "Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 1.3698630... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0068588 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 150-mile trip take?<|eot|>
<|assistant|>
```python
distance = 150
speed = 30
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Run output: 300
The trip takes 300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 150-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 30\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\nRun output: 300\n\nThe trip takes 300 minutes."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0068589 | A party has 30 days to respond to a motion served on January 28, 2025, with 3 days added because service was by mail. When is the response due?
The computation:
```python
from datetime import date, timedelta
served = date(2025, 1, 28) # datetime.date(2025, 1, 28)
response_days = 30
mail_days = 3
due = served + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2025-03-02", "printed": "2025-03-02", "notation": null} |
nlprog_det-setting-0068590 | Fines run at $100 per day up to a maximum of $5,000. How much after 21 days?
Here is a short program for it.
```python
per_day = 100
days = 21
cap = 5000
fine = min(per_day * days, cap) # 2100
print(fine)
```
# run result: 2100
$2,100 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0068591 | <|start|><|user|>
5 claimants share a $4,500 settlement equally. What is each share?<|eot|>
<|assistant|>
settlement = 4500
parties = 5
share = settlement // parties # 900
print(share)
Executing it gives: 900
Each share is $900.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $4,500 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": " settlement = 4500\n parties = 5\n share = settlement // parties # 900\n print(share)\nExecuting it gives: 900\n\nEach share is $900."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0068592 | <|start|><|user|>
Attendance was 28 out of 40. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 28
total = 40
percent = present / total * 100
print(round(percent, 1))
```
# execution result: 70.0
Attendance was 70.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 28 out of 40. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 28\ntotal = 40\npercent = present / total * 100\nprint(round(percent, 1))\n```\n# execution result: 70.0\n\nAttendance was 70.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0068593 | A measure needs at least 75% of 240 votes. How many votes is that, rounded up?
In Python:
```python
import math
voters = 240
needed = math.ceil(voters * 75 / 100)
print(needed)
```
Running this gives 180.
At least 180 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0068594 | <|start|><|user|>
Split $2,310 between Jonas and Eamon in the ratio 3 to 4. What is Jonas's share?<|eot|>
<|assistant|>
total = 2310
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 990
print(share_a)
Running it prints 990.
Jonas's share is $990.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,310 between Jonas and Eamon in the ratio 3 to 4. What is Jonas's share?"
},
{
"role": "assistant",
"content": " total = 2310\n parts_a = 3\n parts_b = 4\n share_a = total * parts_a // (parts_a + parts_b) # 990\n print(share_a)\nRunning it pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "990", "printed": "990", "notation": null} |
nlprog_det-setting-0068595 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A trial runs from July 26, 2021 to August 20, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
26 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A trial runs from July 26, 2021 to August 20, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "26 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0068596 | If a 40-minute hearing begins at 11:30 AM, what time does it finish?
Coded up:
```python
start = 11 * 60 + 30
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
What it prints: 12:10 PM
It ends at 12:10 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "12:10 PM", "printed": "12:10 PM", "notation": null} |
nlprog_det-setting-0068597 | A 35 lb package ships at $8 base plus $2.00/lb. What is the charge? The charge is $78.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0068599 | Straight-line depreciation: cost $18,000, salvage $3,000, 8 years. How much per year?
The Python version:
```python
cost = 18000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 1875.0
print(f"{per_year:.2f}")
```
It prints: 1875.00
Depreciation is $1,875.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1875.00", "printed": "1875.00", "notation": null} |
nlprog_det-setting-0068600 | Starting with 1459 binders and using 9 per day, how many remain after 19 days? 1288 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "1288", "printed": "1288", "notation": null} |
nlprog_det-setting-0068601 | A 4% increase is applied to $900 monthly rent. What is the new amount?
Coded up:
```python
rent = 900
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 936.0
print(f"{new_rent:.2f}")
```
# stdout: 936.00
It rises to $936.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "936.00", "printed": "936.00", "notation": null} |
nlprog_det-setting-0068602 | 613 files go into boxes of 20. How many boxes does that take?
Python version:
```python
import math
files = 613
per_box = 20
boxes = math.ceil(files / per_box) # 31
print(boxes)
```
# console output: 31
It takes 31 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0068603 | Starting from $20,000, the team spends $3,694, $1,426, $2,028, $2,439. What remains?
Python version:
```python
budget = 20000
expenses = [3694, 1426, 2028, 2439]
left = budget - sum(expenses)
print(left)
```
Out = 10413
$10,413 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "10413", "printed": "10413", "notation": null} |
nlprog_det-setting-0068604 | Counting only Monday through Friday, how many business days are there after November 3, 2019 through December 12, 2019?
A short script:
```python
from datetime import date, timedelta
start = date(2019, 11, 3)
end = date(2019, 12, 12)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0068605 | Each storage box holds 20 files. How many boxes are needed for 331 files?
Set it up in Python:
```python
import math
files = 331
per_box = 20
boxes = math.ceil(files / per_box) # 17
print(boxes)
```
Output — 17
17 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0068606 | A 120-day notice period begins on September 7, 2026. On what date does it end?
One way, in code:
```python
from datetime import date, timedelta
start = date(2026, 9, 7) # datetime.date(2026, 9, 7)
end = start + timedelta(days=120) # datetime.date(2027, 1, 5)
print(end.isoformat())
```
The program prints 2027-01-05.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2027-01-05", "printed": "2027-01-05", "notation": null} |
nlprog_det-setting-0068607 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Rent of $2,200 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
rent = 2200
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 2288.0
print(f"{new_rent:.2f}")
Printed: 2288.00
It rises to $2,288.00.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Rent of $2,200 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": " rent = 2200\n increase = 4 / 100 # 0.04\n new_rent = rent * (1 + increase) # 22... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2288.00", "printed": "2288.00", "notation": null} |
nlprog_det-setting-0068608 | Of a $5,000 budget, $3,800 has been spent. What percent is that?
In code:
budget = 5000
spent = 3800
percent = spent / budget * 100 # 76.0
print(round(percent, 1))
Printed:
76.0
76.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0068609 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?
We write it as a program:
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 212.0
print(f"... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0068610 | Sales went from 200 to 120. What is the percent change?
A short script:
```python
old = 200
new = 120
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Output = -40
The change is -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0068611 | <|start|><|user|>
A shift runs from 11:35 AM to 1:10 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 35 # 695
end = 13 * 60 + 10 # 790
print(end - start)
```
# printed: 95
It is 95 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 11:35 AM to 1:10 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 35 # 695\nend = 13 * 60 + 10 # 790\nprint(end - start)\n```\n# printed: 95\n\nIt is 95 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0068612 | <|start|><|user|>
On which weekday does March 23, 1996 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1996, 3, 23) # datetime.date(1996, 3, 23)
print(hearing.strftime("%A"))
```
# stdout: Saturday
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does March 23, 1996 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1996, 3, 23) # datetime.date(1996, 3, 23)\nprint(hearing.strftime(\"%A\"))\n```\n# stdout: Saturday\n\nIt is a Saturday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0068613 | Pack A has 10 items for $4.89. Pack B has 24 items for $22.86. Which has the lower price per item?
As a program:
```python
pack_a = 4.89 / 10 # 0.489
pack_b = 22.86 / 24 # 0.9525
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Python prints: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0068614 | <|start|><|user|>
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 160.0
print(f"{interest:.2f}")
```
When run, it prints: 160.00
... | chat | [
{
"role": "user",
"content": "An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 4\ninterest = balance * monthly_rate * months # 160.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0068615 | A hearing is set for August 5, 2015. What day of the week is that?
Let the code do the arithmetic:
```python
from datetime import date
hearing = date(2015, 8, 5) # datetime.date(2015, 8, 5)
print(hearing.strftime("%A"))
```
Execution prints Wednesday.
August 5, 2015 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0068616 | Express 87 hours in days and hours.
Written as code:
```python
hours = 87
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program prints: 3 days and 15 hours
That is 3 days and 15 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "3 days and 15 hours", "printed": "3 days and 15 hours", "notation": null} |
nlprog_det-setting-0068617 | <|start|><|user|>
Scale 150 g of pasta from 6 servings to 8 servings.<|eot|>
<|assistant|>
grams = 150
serves = 6
needed_for = 8
scaled = grams * needed_for // serves # 200
print(scaled)
# program output: 200
200 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of pasta from 6 servings to 8 servings."
},
{
"role": "assistant",
"content": " grams = 150\n serves = 6\n needed_for = 8\n scaled = grams * needed_for // serves # 200\n print(scaled)\n# program output: 200\n\n200 grams of pasta are neede... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0068618 | How many meters are in 83.3 kilometers? 83,300 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "83300", "printed": "83300", "notation": null} |
nlprog_det-setting-0068619 | Kaito earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?
Python:
```python
rate = 16.0
hours = 45
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 120.0
pay = regular + overtime # 760.0
print(f"{pay:.2f}")
```
# out: 760.00
Kaito earns $760.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0068621 | 189 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
As Python:
```python
total = 189
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The script prints 37 each, 4 left over.
37 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "37 each, 4 left over", "printed": "37 each, 4 left over", "notation": null} |
nlprog_det-setting-0068622 | <|start|><|user|>
A measure needs at least 67% of 160 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 160
needed = math.ceil(voters * 67 / 100) # 108
print(needed)
```
It outputs: 108
108 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 160 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 160\nneeded = math.ceil(voters * 67 / 100) # 108\nprint(needed)\n```\nIt outputs: 108\n\n108 votes are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0068623 | 6 claimants share a $18,000 settlement equally. What is each share?
Coded up:
```python
settlement = 18000
parties = 6
share = settlement // parties # 3000
print(share)
```
What it prints: 3000
Each party receives $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0068624 | <|start|><|system|>
Tools you may use:
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Prorate $1,500 of monthly rent for ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0068625 | A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments?
Written as code:
```python
monthly = 19
yearly = 216
savings = monthly * 12 - yearly # 12
print(savings)
```
Running it prints: 12
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0068626 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $2,500 over 5 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 250.0
print(f"{interest:.2f}")
```
stdout... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $2,500 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 5\... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "250.00", "printed": "250.00", "notation": null} |
nlprog_det-setting-0068627 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 250-mile trip take?<|eot|>
<|assistant|>
The trip takes 300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 250-mile trip take?"
},
{
"role": "assistant",
"content": "The trip takes 300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "300", "printed": "300", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.