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-0061920 | After an initial $2,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?
Each installment is $14,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "14500.00", "printed": "14500.00", "notation": null} |
nlprog_det-setting-0061921 | <|start|><|user|>
Meals are $79 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 2111
print(total)
```
Executed, it shows 2111.
The allo... | chat | [
{
"role": "user",
"content": "Meals are $79 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2111", "printed": "2111", "notation": null} |
nlprog_det-setting-0061922 | A garage charges $2 an hour, never more than $24 a day. How much for 5 hours?
Python makes this quick:
```python
rate = 2
hours = 5
daily_max = 24
cost = min(rate * hours, daily_max) # 10
print(cost)
```
Out — 10
Parking costs $10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0061923 | <|start|><|user|>
A hall has 28 rows of 15 seats, and 29 seats are empty. How many people are seated?<|eot|>
<|assistant|>
391 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 28 rows of 15 seats, and 29 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "391 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "391", "printed": "391", "notation": null} |
nlprog_det-setting-0061924 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 272-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 272
days = 17
per_day = pages // days # 16
print(per_day)
```
Output of the run: 16
16 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 272-page report must be reviewed in 17 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 272\ndays = 17\nper_day = pages // days # 16\... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0061925 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
5 friends split a $120 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 28.32
print(f"{each:.2f}")
```
The interpreter p... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "5 friends split a $120 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 120\ntip_rate = 18 / 100 # 0.18\npeople = 5\ne... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "28.32", "printed": "28.32", "notation": null} |
nlprog_det-setting-0061926 | Convert 24.6 km to meters.
```python
km = 24.6
meters = km * 1000 # 24600.0
print(round(meters))
```
Output = 24600
That is 24,600 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "24600", "printed": "24600", "notation": null} |
nlprog_det-setting-0061927 | <|start|><|user|>
How long, in days, is it from June 20, 2022 until June 8, 2023?<|eot|>
<|assistant|>
It is 353 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from June 20, 2022 until June 8, 2023?"
},
{
"role": "assistant",
"content": "It is 353 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "353", "printed": "353", "notation": null} |
nlprog_det-setting-0061928 | Chen was born on September 7, 1998. How old is Chen on December 7, 2027?
Code:
```python
from datetime import date
born = date(1998, 9, 7) # datetime.date(1998, 9, 7)
on = date(2027, 12, 7) # datetime.date(2027, 12, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 29
print(age)
```
Exe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0061929 | <|start|><|user|>
What simple interest does $1,000 earn at 4% a year over 3 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 120.0
print(f"{interest:.2f}")
```
Execution prints 120.00, as expected.
It earns $120.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $1,000 earn at 4% a year over 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 3\ninterest = principal * rate * years # 120.0\nprint(f\"{interest:.2f}\")\n```\nExecution prints 12... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0061930 | 2 claimants share a $4,500 settlement equally. What is each share?
Python makes this quick:
```python
settlement = 4500
parties = 2
share = settlement // parties # 2250
print(share)
```
Execution prints 2250, as expected.
Each party receives $2,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0061931 | <|start|><|user|>
Pilar's scores were 71, 77, 67 and 65. What is the average score?<|eot|>
<|assistant|>
```python
scores = [71, 77, 67, 65]
average = sum(scores) // len(scores) # 70
print(average)
```
When run, it prints: 70
The average score is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pilar's scores were 71, 77, 67 and 65. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [71, 77, 67, 65]\naverage = sum(scores) // len(scores) # 70\nprint(average)\n```\nWhen run, it prints: 70\n\nThe average score is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0061932 | Which is cheaper per unit: 10 for $3.12 (A) or 30 for $27.62 (B)?
As Python:
```python
pack_a = 3.12 / 10
pack_b = 27.62 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Running this gives: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0061933 | At 40 miles per hour, how many minutes does a 210-mile trip take?
Python code:
```python
distance = 210
speed = 40
minutes = distance / speed * 60 # 315.0
print(round(minutes))
```
Printed:
315
315 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0061934 | <|start|><|user|>
Water costs $18 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 19,000 gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 4.2
used = 19
free = 2
bill = base + rate * max(0, used - free) # 89.4
print(f"{bill:.2f}")
```
Result: 89.40
$89.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 19,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 4.2\nused = 19\nfree = 2\nbill = base + rate * max(0, used - free) # 89.4\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "89.40", "printed": "89.40", "notation": null} |
nlprog_det-setting-0061935 | <|start|><|system|>
Tool definitions:
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description": "Convert a qua... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "4 days and 11 hours", "printed": "4 days and 11 hours", "notation": null} |
nlprog_det-setting-0061936 | <|start|><|user|>
A trial runs from May 16, 2026 to June 8, 2026, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 5, 16) # datetime.date(2026, 5, 16)
last = date(2026, 6, 8) # datetime.date(2026, 6, 8)
days = (last - first).days + 1 # 24... | chat | [
{
"role": "user",
"content": "A trial runs from May 16, 2026 to June 8, 2026, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2026, 5, 16) # datetime.date(2026, 5, 16)\nlast = date(2026, 6, 8) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0061937 | Find the mean of these test scores: 88, 59, 58, 61, 91, 87 and 95.
Python, step by step:
```python
scores = [88, 59, 58, 61, 91, 87, 95]
average = sum(scores) // len(scores) # 77
print(average)
```
The program outputs: 77
The average score is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0061938 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "1549", "printed": "1549", "notation": null} |
nlprog_det-setting-0061939 | <|start|><|user|>
The bridge was finished in 2019. How many years had passed by 2039?<|eot|>
<|assistant|>
```python
start_year = 2019
end_year = 2039
print(end_year - start_year)
```
Output:
20
20 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The bridge was finished in 2019. How many years had passed by 2039?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2019\nend_year = 2039\nprint(end_year - start_year)\n```\nOutput:\n20\n\n20 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061940 | <|start|><|user|>
Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.75
used = 18
free = 3
bill = base + rate * max(0, used - free) # 91.25
print(f"{bill:.2f}")
```
stdout = 91.25
The bill is $91.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.75\nused = 18\nfree = 3\nbill = base + rate * max(0, used - free) # 91.25\nprint(f\"{bill:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "91.25", "printed": "91.25", "notation": null} |
nlprog_det-setting-0061941 | A deposition lasted 5 hours and 46 minutes. How many minutes is that?
Translated to Python:
```python
hours = 5
minutes = 46
total_minutes = hours * 60 + minutes # 346
print(total_minutes)
```
# result: 346
The deposition lasted 346 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "346", "printed": "346", "notation": null} |
nlprog_det-setting-0061942 | At $0.67 per mile, what is the reimbursement for 420 miles? Lucia is owed $281.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "281.40", "printed": "281.40", "notation": null} |
nlprog_det-setting-0061943 | How many units at $15 each (variable cost $10) cover $2,500 of fixed costs?
The computation:
import math
fixed = 2500
price = 15
variable = 10
units = math.ceil(fixed / (price - variable))
print(units)
When run, it prints 500, as expected.
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0061944 | 5 copies of a 57-page packet are printed at $0.10 per page. What is the cost?
A few lines of Python do it:
```python
pages = 57
copies = 5
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 28.5
print(f"{cost:.2f}")
```
On running, it outputs: 28.50
Printing costs $28.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "28.50", "printed": "28.50", "notation": null} |
nlprog_det-setting-0061945 | <|start|><|system|>
Tool definitions:
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "business_days", "description": "Count business da... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 383 | {"gold": "0.80", "printed": "0.80", "notation": null} |
nlprog_det-setting-0061946 | <|start|><|user|>
Someone born February 21, 1972 turns how old by March 1, 2027? Give the age in whole years.<|eot|>
<|assistant|>
The age is 55 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone born February 21, 1972 turns how old by March 1, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "The age is 55 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0061947 | <|start|><|user|>
A quorum is 1/3 of the 60 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
20 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 60 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "20 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061948 | <|start|><|user|>
At $30.18 an hour, what does 16 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 30.18
hours = 16
earnings = rate * hours # 482.88
print(f"{earnings:.2f}")
```
Running this gives 482.88.
The pay is $482.88.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $30.18 an hour, what does 16 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.18\nhours = 16\nearnings = rate * hours # 482.88\nprint(f\"{earnings:.2f}\")\n```\nRunning this gives 482.88.\n\nThe pay is $482.88."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "482.88", "printed": "482.88", "notation": null} |
nlprog_det-setting-0061949 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1306 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1306
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
Printed = 5
5 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1306 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1306\ncoverage = 300\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\nPrinted = 5\n\n5 can... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0061950 | <|start|><|user|>
Water costs $18 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 22,000 gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 4.2
used = 22
free = 3
bill = base + rate * max(0, used - free) # 97.8
print(f"{bill:.2f}")
```
Console output — 97.80
The bill is $97.80.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 22,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 4.2\nused = 22\nfree = 3\nbill = base + rate * max(0, used - free) # 97.8\nprint(f\"{bill:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "97.80", "printed": "97.80", "notation": null} |
nlprog_det-setting-0061951 | <|start|><|user|>
Walls total 752 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 752
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Execution result: 3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 752 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 752\ncoverage = 300\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nExecution result: 3\n\nBuy 3 can... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0061952 | <|start|><|user|>
7 boxes hold 25 water bottles each. After 14 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 25
given_away = 14
left = boxes * per_box - given_away # 161
print(left)
```
Out:
161
161 water bottles are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 25 water bottles each. After 14 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 25\ngiven_away = 14\nleft = boxes * per_box - given_away # 161\nprint(left)\n```\nOut:\n161\n\n161 water bottles a... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "161", "printed": "161", "notation": null} |
nlprog_det-setting-0061953 | 7 boxes hold 25 pens each. After 6 are handed out, how many are left?
We can compute it in Python.
```python
boxes = 7
per_box = 25
given_away = 6
left = boxes * per_box - given_away # 169
print(left)
```
# execution result: 169
That leaves 169 pens. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0061954 | A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 29-page copy cost?
As Python:
```python
pages = 29
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.9
print(f"{cost:.2f}")
```
What it prints — 5.90
The copy costs $5.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "5.90", "printed": "5.90", "notation": null} |
nlprog_det-setting-0061956 | Meals are $74 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?
Python does the arithmetic:
```python
days = 8
meal_rate = 74
lodging_rate = 175
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1817
print(total)
```
When run, it prints 1817.
That comes to $1,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1817", "printed": "1817", "notation": null} |
nlprog_det-setting-0061957 | <|start|><|user|>
A 45-day notice period begins on August 18, 2024. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 8, 18) # datetime.date(2024, 8, 18)
end = start + timedelta(days=45) # datetime.date(2024, 10, 2)
print(end.isoformat())
```
Result: 2024... | chat | [
{
"role": "user",
"content": "A 45-day notice period begins on August 18, 2024. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 8, 18) # datetime.date(2024, 8, 18)\nend = start + timedelta(days=45) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2024-10-02", "printed": "2024-10-02", "notation": null} |
nlprog_det-setting-0061958 | An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?
Programmatically:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 187.5
print(f"{interest:.2f}")
```
(Run result: 187.50)
$187.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "187.50", "printed": "187.50", "notation": null} |
nlprog_det-setting-0061959 | <|start|><|user|>
A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 8 people?<|eot|>
<|assistant|>
```python
grams = 200
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 800
print(scaled)
```
The program prints 800.
800 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 2\nneeded_for = 8\nscaled = grams * needed_for // serves # 800\nprint(scaled)\n```\nThe program prints 8... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0061960 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Mei buys 11 boxes of 10 labels each and gives away 8 labels. How many labels are left?<|eot|>
<|assistant|>
boxes = 11
per_box = 10
given_away = 8
left = boxes * per_box - given_away # 102
print(left)
This prints: 102
102 labels are ... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Mei buys 11 boxes of 10 labels each and gives away 8 labels. How many labels are left?"
},
{
"role": "assistant",
"content": " boxes = 11\n per_box = 10\n given_away = 8\n left ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0061961 | <|start|><|user|>
A clerk's office charges $50 for each filing. Leon submits 10 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 50
filings = 10
total = fee * filings
print(total)
```
Run result: 500
The total fee is $500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $50 for each filing. Leon submits 10 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 10\ntotal = fee * filings\nprint(total)\n```\nRun result: 500\n\nThe total fee is $500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0061962 | <|start|><|user|>
A kettle costs $80. It is 25% off. What is the sale price?<|eot|>
<|assistant|>
price = 80
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 60.0
print(f"{sale_price:.2f}")
Execution prints: 60.00
It costs $60.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $80. It is 25% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 80\n discount = 25 / 100 # 0.25\n sale_price = price * (1 - discount) # 60.0\n print(f\"{sale_price:.2f}\")\nExecution prints: 60.00\n\nIt costs ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0061963 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
To read 408 pages in 8 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 408
days = 8
per_day = pages // days # 51
print(per_day)
Run result: 51
51 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "To read 408 pages in 8 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 408\n days = 8\n per_day = pages // days # 51\n prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0061964 | At $22.10 an hour, what does 36 hours of work pay?
Python, step by step:
```python
rate = 22.1
hours = 36
earnings = rate * hours # 795.6
print(f"{earnings:.2f}")
```
It prints: 795.60
The pay is $795.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "795.60", "printed": "795.60", "notation": null} |
nlprog_det-setting-0061965 | <|start|><|user|>
A measure needs at least 67% of 228 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 228
needed = math.ceil(voters * 67 / 100) # 153
print(needed)
```
The interpreter prints 153.
153 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 228 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 228\nneeded = math.ceil(voters * 67 / 100) # 153\nprint(needed)\n```\nThe interpreter prints 153.\n\n153 votes are... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "153", "printed": "153", "notation": null} |
nlprog_det-setting-0061967 | At $0.58 per mile, what is the reimbursement for 548 miles?
```python
miles = 548
rate = 0.58
reimbursement = miles * rate # 317.84
print(f"{reimbursement:.2f}")
```
Console:
317.84
The reimbursement is $317.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "317.84", "printed": "317.84", "notation": null} |
nlprog_det-setting-0061968 | <|start|><|user|>
After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each client gets $15,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each client gets $15,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0061969 | 26 markers cost $4 apiece. With 5% tax added, what is the total?
Script:
```python
quantity = 26
unit_price = 4
subtotal = quantity * unit_price # 104
total = subtotal * (1 + 5 / 100) # 109.2
print(f"{total:.2f}")
```
(Printed: 109.20)
The total with tax is $109.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "109.20", "printed": "109.20", "notation": null} |
nlprog_det-setting-0061970 | What commission does Signe make on $54,733 in sales at 4%?
In code:
sales = 54733
rate = 4 / 100 # 0.04
commission = sales * rate # 2189.32
print(f"{commission:.2f}")
Out = 2189.32
The commission is $2,189.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2189.32", "printed": "2189.32", "notation": null} |
nlprog_det-setting-0061971 | At 45 miles per hour, how many minutes does a 285-mile trip take?
```python
distance = 285
speed = 45
minutes = distance / speed * 60 # 380.0
print(round(minutes))
```
Printed: 380
380 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "380", "printed": "380", "notation": null} |
nlprog_det-setting-0061972 | <|start|><|user|>
Buying 2 staplers at $30 each, 2 file boxes at $10 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(2, 30), (2, 10)]
total = sum(q * p for q, p in items) # 80
paid = 100
change = paid - total # 20
print(change)
```
This prints: 20
$20 comes back.<|eot|... | chat | [
{
"role": "user",
"content": "Buying 2 staplers at $30 each, 2 file boxes at $10 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(2, 30), (2, 10)]\ntotal = sum(q * p for q, p in items) # 80\npaid = 100\nchange = paid - total # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061973 | Counting only Monday through Friday, how many business days are there after October 4, 2026 through October 9, 2026?
A short script:
```python
from datetime import date, timedelta
start = date(2026, 10, 4)
end = date(2026, 10, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0061974 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 298 files?<|eot|>
<|assistant|>
```python
import math
files = 298
per_box = 15
boxes = math.ceil(files / per_box) # 20
print(boxes)
```
Output — 20
It takes 20 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 298 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 298\nper_box = 15\nboxes = math.ceil(files / per_box) # 20\nprint(boxes)\n```\nOutput — 20\n\nIt takes 20 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0061975 | Each of Amir's bike rides burns 150 calories. How many calories over 4 bike rides?
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0061977 | <|start|><|user|>
At 40 miles per hour, how many minutes does a 270-mile trip take?<|eot|>
<|assistant|>
```python
distance = 270
speed = 40
minutes = distance / speed * 60 # 405.0
print(round(minutes))
```
(stdout: 405)
The trip takes 405 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 270-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 270\nspeed = 40\nminutes = distance / speed * 60 # 405.0\nprint(round(minutes))\n```\n(stdout: 405)\n\nThe trip takes 405 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0061978 | Convert 25 °C to Fahrenheit.
The program:
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
Execution result — 77
It equals 77 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0061979 | Counting the first and last day, how many days are there from March 22, 2023 through April 16, 2023?
Set it up in Python:
from datetime import date
first = date(2023, 3, 22) # datetime.date(2023, 3, 22)
last = date(2023, 4, 16) # datetime.date(2023, 4, 16)
days = (last - first).days + 1 # 26
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0061981 | 3 swims at 300 calories each burn how many calories in total?
Python:
```python
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
```
(Printed result: 900)
That burns 900 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0061982 | <|start|><|system|>
You have access to these functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "run_python", "description": "Evalu... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 300 | {"gold": "875.00", "printed": "875.00", "notation": null} |
nlprog_det-setting-0061983 | <|start|><|user|>
717 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
import math
files = 717
per_box = 40
boxes = math.ceil(files / per_box) # 18
print(boxes)
Printed:
18
It takes 18 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "717 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": " import math\n files = 717\n per_box = 40\n boxes = math.ceil(files / per_box) # 18\n print(boxes)\nPrinted:\n18\n\nIt takes 18 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0061984 | After an initial $6,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?
Program:
```python
grant = 60000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 9000.0
print(f"{each:.2f}")
```
stdout:
9000.00
$9,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0061986 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A 285-mile drive at a steady 60 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 285
speed = 60
minutes = distance / speed * 60 # 285.0
print(round(minutes))
```
(Printed result: 285)
285 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A 285-mile drive at a steady 60 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 285\nspeed = 60\nminutes = distance / speed * 60 # 285.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "285", "printed": "285", "notation": null} |
nlprog_det-setting-0061987 | Convert 4 h 12 min (the length of a deposition) to minutes.
```python
hours = 4
minutes = 12
total_minutes = hours * 60 + minutes # 252
print(total_minutes)
```
(Program output: 252)
The deposition lasted 252 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0061988 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Rent of $1,250 goes up 8%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1350.0
print(f"{new_rent:.2f}")
```
Printed result — 1350.00
It rises to $1,350.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Rent of $1,250 goes up 8%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1350.0\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1350.00", "printed": "1350.00", "notation": null} |
nlprog_det-setting-0061989 | Fixed costs are $4,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?
As Python:
```python
import math
fixed = 4000
price = 20
variable = 16
units = math.ceil(fixed / (price - variable))
print(units)
```
Interpreter output — 1000
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0061990 | How many units at $20 each (variable cost $15) cover $4,000 of fixed costs?
Let's compute it with Python.
import math
fixed = 4000
price = 20
variable = 15
units = math.ceil(fixed / (price - variable)) # 800
print(units)
The script prints: 800
Break-even is 800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0061991 | <|start|><|user|>
Someone works 24 hours at $22.66 per hour. What are the earnings?<|eot|>
<|assistant|>
That earns $543.84.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 24 hours at $22.66 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "That earns $543.84."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "543.84", "printed": "543.84", "notation": null} |
nlprog_det-setting-0061992 | A film lasted 4 hours and 13 minutes. How many minutes is that?
As Python:
hours = 4
minutes = 13
total_minutes = hours * 60 + minutes # 253
print(total_minutes)
Out — 253
That is 253 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "253", "printed": "253", "notation": null} |
nlprog_det-setting-0061993 | What is a 15% tip on a $210.45 bill?
Here is the program.
```python
bill = 210.45
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 31.567499999999995
print(f"{tip:.2f}")
```
# out: 31.57
Leave $31.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "31.57", "printed": "31.57", "notation": null} |
nlprog_det-setting-0061994 | A jacket costs $90. It is 20% off. What is the sale price?
The sale price is $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0061995 | Pack A has 10 items for $7.60. Pack B has 18 items for $27.52. Which has the lower price per item?
Python version:
```python
pack_a = 7.6 / 10 # 0.76
pack_b = 27.52 / 18 # 1.528888888888889
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Executing it gives A.
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0061996 | <|start|><|user|>
Convert 4 h 21 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 4
minutes = 21
total_minutes = hours * 60 + minutes # 261
print(total_minutes)
```
The run gives 261, as expected.
The meeting lasted 261 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4 h 21 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 21\ntotal_minutes = hours * 60 + minutes # 261\nprint(total_minutes)\n```\nThe run gives 261, as expected.\n\nThe meeting lasted 261 minu... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "261", "printed": "261", "notation": null} |
nlprog_det-setting-0061997 | Shipping costs $5 plus $0.75 per pound. What does a 16-pound parcel cost to ship?
Shipping costs $17.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0061998 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A party has 30 days to respond to a motion served on September 16, 2021, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2021, 9, 16) # datetime.date(2021,... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on September 16, 2021, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": " from d... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2021-10-19", "printed": "2021-10-19", "notation": null} |
nlprog_det-setting-0061999 | A 6-month warranty starts on November 13, 2021. On what date does it end?
It expires on May 13, 2022. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "2022-05-13", "printed": "2022-05-13", "notation": null} |
nlprog_det-setting-0062000 | The paralegal logged 6.5 hours at a rate of $180. How much is billed?
Written as code:
```python
hours = 6.5
rate = 180
bill = hours * rate # 1170.0
print(f"{bill:.2f}")
```
That prints: 1170.00
The bill is $1,170.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1170.00", "printed": "1170.00", "notation": null} |
nlprog_det-setting-0062001 | A lawyer's fee is 30% of a $60,000 recovery. How large is the fee?
Translated to Python:
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
Executed, it shows: 18000.00
The fee is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0062002 | A service costs $25 a month or $264 a year. How much does the yearly plan save over 12 monthly payments?
A short script:
```python
monthly = 25
yearly = 264
savings = monthly * 12 - yearly # 36
print(savings)
```
The program prints 36.
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0062003 | <|start|><|user|>
4 claimants share a $2,640 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 2640
parties = 4
share = settlement // parties # 660
print(share)
```
The program outputs: 660
Each party receives $660.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 claimants share a $2,640 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 2640\nparties = 4\nshare = settlement // parties # 660\nprint(share)\n```\nThe program outputs: 660\n\nEach party receives $660."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "660", "printed": "660", "notation": null} |
nlprog_det-setting-0062004 | The paralegal logged 12 hours at a rate of $300. How much is billed?
Programmatically:
```python
hours = 12
rate = 300
bill = hours * rate # 3600
print(f"{bill:.2f}")
```
Running it prints 3600.00.
The bill is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0062005 | <|start|><|user|>
Under a 35% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
The fee is $4,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "The fee is $4,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0062006 | <|start|><|user|>
A settlement of $960 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 960
parties = 5
share = settlement // parties # 192
print(share)
```
Output of the run — 192
Each party receives $192.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $960 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 960\nparties = 5\nshare = settlement // parties # 192\nprint(share)\n```\nOutput of the run — 192\n\nEach party r... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0062008 | 9 boxes hold 25 clipboards each. After 14 are handed out, how many are left?
Let's compute it with Python.
```python
boxes = 9
per_box = 25
given_away = 14
left = boxes * per_box - given_away # 211
print(left)
```
Program output — 211
That leaves 211 clipboards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "211", "printed": "211", "notation": null} |
nlprog_det-setting-0062009 | How many weekdays (Monday to Friday) fall after September 3, 2018 up to and including October 11, 2018?
```python
from datetime import date, timedelta
start = date(2018, 9, 3)
end = date(2018, 10, 11)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0062010 | Convert 2 h 42 min (the length of a training session) to minutes.
The Python version:
```python
hours = 2
minutes = 42
total_minutes = hours * 60 + minutes # 162
print(total_minutes)
```
Run result: 162
The training session lasted 162 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "162", "printed": "162", "notation": null} |
nlprog_det-setting-0062011 | Convert 4,413 EUR to USD at 1 EUR = 0.74 USD.
```python
amount = 4413
rate = 0.74
converted = amount * rate # 3265.62
print(f"{converted:.2f}")
```
Printed — 3265.62
It converts to 3,265.62 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3265.62", "printed": "3265.62", "notation": null} |
nlprog_det-setting-0062012 | Printing costs 10 cents a page. What does it cost to print 55 copies of a 40-page handout?
Set it up in Python:
pages = 40
copies = 55
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 220.0
print(f"{cost:.2f}")
Execution result: 220.00
The job costs $220.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "220.00", "printed": "220.00", "notation": null} |
nlprog_det-setting-0062013 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Maren was born on February 25, 1997. How old is Maren on July 16, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1997, 2, 25) # datetime.date(1997, 2, 25)
on = date(2029, 7, 16) # datetime.date(2029, 7, 16)
age = on.year - born.yea... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Maren was born on February 25, 1997. How old is Maren on July 16, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1997, 2, 25) # datetime.date(1997... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0062014 | At $0.58 per mile, what is the reimbursement for 294 miles?
Python does the arithmetic:
```python
miles = 294
rate = 0.58
reimbursement = miles * rate # 170.51999999999998
print(f"{reimbursement:.2f}")
```
Program output — 170.52
The reimbursement is $170.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "170.52", "printed": "170.52", "notation": null} |
nlprog_det-setting-0062015 | How many 1-foot square tiles cover a 18 ft by 14 ft floor (round up)?
Python makes this quick:
```python
import math
length = 18
width = 14
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 252
print(tiles)
```
Running it prints 252, as expected.
It takes 252 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0062016 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?
The weekly pay is $1,562.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "1562.50", "printed": "1562.50", "notation": null} |
nlprog_det-setting-0062017 | 121 copies of a 57-page packet are printed at $0.10 per page. What is the cost?
The program:
```python
pages = 57
copies = 121
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 689.7
print(f"{cost:.2f}")
```
Program output — 689.70
Printing costs $689.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "689.70", "printed": "689.70", "notation": null} |
nlprog_det-setting-0062018 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 18 copies of a 8-page handout?<|eot|>
<|assistant|>
```python
pages = 8
copies = 18
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 21.599999999999998
print(f"{cost:.2f}")
```
# execution result: 21.60
The job costs $21.60.<|eot... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 18 copies of a 8-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 8\ncopies = 18\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 21.599999999999998\nprint(f\"{cost:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "21.60", "printed": "21.60", "notation": null} |
nlprog_det-setting-0062019 | A settlement of $36,000 is split equally among 3 parties. How much does each party receive?
Python makes this quick:
```python
settlement = 36000
parties = 3
share = settlement // parties # 12000
print(share)
```
(Execution result: 12000)
Each party receives $12,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "12000", "printed": "12000", "notation": null} |
nlprog_det-setting-0062020 | <|start|><|user|>
A hearing is set for May 26, 2006. What day of the week is that?<|eot|>
<|assistant|>
It is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for May 26, 2006. What day of the week is that?"
},
{
"role": "assistant",
"content": "It is a Friday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0062021 | <|start|><|user|>
A $2,000 security deposit has deductions of $150 and $120. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [150, 120]
refund = deposit - sum(deductions) # 1730
print(refund)
```
Result:
1730
The refund is $1,730.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $150 and $120. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [150, 120]\nrefund = deposit - sum(deductions) # 1730\nprint(refund)\n```\nResult:\n1730\n\nThe refund is... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1730", "printed": "1730", "notation": null} |
nlprog_det-setting-0062022 | Papers were served by mail on March 10, 2023. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
A Python solution:
```python
from datetime import date, timedelta
served = date(2023, 3, 10) # datetime.date(2023, 3, 10)
response_days = 28
mail_days = 3
due = served + timedelt... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2023-04-10", "printed": "2023-04-10", "notation": null} |
nlprog_det-setting-0062023 | A recipe for 6 people uses 300 grams of flour. How many grams are needed for 2 people?
Code:
```python
grams = 300
serves = 6
needed_for = 2
scaled = grams * needed_for // serves # 100
print(scaled)
```
The program prints 100, as expected.
100 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0062024 | A clerk's office charges $25 for each filing. Wanjiru submits 13 filings. What is the total fee?
The Python version:
```python
fee = 25
filings = 13
total = fee * filings # 325
print(total)
```
# stdout: 325
The filings cost $325 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "325", "printed": "325", "notation": null} |
nlprog_det-setting-0062025 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A 407-page report must be revi... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snipp... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "37", "printed": "37", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.