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-0047970 | The rules require 1/3 of 27 members (round up) to be present. How many is that?
Translated to Python:
```python
import math
members = 27
quorum = math.ceil(members * 1 / 3)
print(quorum)
```
Printed = 9
That is 9 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0047972 | Monthly rent is $1,200. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent?
Written as code:
```python
rent = 1200
days_in_month = 30
days_occupied = 18
prorated = rent * days_occupied / days_in_month # 720.0
print(f"{prorated:.2f}")
```
When run, it prints 720.00.
The tenant owes $720.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0047974 | If a 90-minute hearing begins at 11:30 AM, what time does it finish?
Python version:
start = 11 * 60 + 30
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
# console output: 1:00 PM
It ends at 1:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1:00 PM", "printed": "1:00 PM", "notation": null} |
nlprog_det-setting-0047975 | Copies cost $10 plus $0.50 for each page beyond 10. How much for 33 pages?
Let the code do the arithmetic:
```python
pages = 33
base = 10
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 21.5
print(f"{cost:.2f}")
```
Execution result: 21.50
The total is $21.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0047976 | <|start|><|system|>
Tools (call with JSON):
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
The rules require 1... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0047977 | Convert 0 °C to Fahrenheit.
Written as code:
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
The interpreter prints: 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0047978 | What is 25 degrees Celsius in Fahrenheit?
As a 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 | [] | [] | 91 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0047979 | <|start|><|user|>
How many whole days and leftover hours are in 90 hours?<|eot|>
<|assistant|>
```python
hours = 90
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Shell output — 3 days and 18 hours
That is 3 days and 18 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 90 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 90\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nShell output — 3 days and 18 hours\n\nThat is 3 days and 18 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3 days and 18 hours", "printed": "3 days and 18 hours", "notation": null} |
nlprog_det-setting-0047980 | A party has 14 days to respond to a motion served on May 3, 2022, with 3 days added because service was by mail. When is the response due?
Let the code do the arithmetic:
from datetime import date, timedelta
served = date(2022, 5, 3) # datetime.date(2022, 5, 3)
response_days = 14
mail_days = 3
due... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "2022-05-20", "printed": "2022-05-20", "notation": null} |
nlprog_det-setting-0047981 | What simple interest does $20,000 earn at 8% a year over 6 years?
Python version:
```python
principal = 20000
rate = 8 / 100 # 0.08
years = 6
interest = principal * rate * years # 9600.0
print(f"{interest:.2f}")
```
(Output: 9600.00)
The interest is $9,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0047982 | A workshop lasted 2 hours and 25 minutes. How many minutes is that?
As Python:
```python
hours = 2
minutes = 25
total_minutes = hours * 60 + minutes # 145
print(total_minutes)
```
Program output: 145
That is 145 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "145", "printed": "145", "notation": null} |
nlprog_det-setting-0047983 | <|start|><|user|>
Prorate $900 of monthly rent for 7 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 210.0
print(f"{prorated:.2f}")
```
Executing it gives 210.00, as expected.
The tenant owes $210.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 7 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 7\nprorated = rent * days_occupied / days_in_month # 210.0\nprint(f\"{prorated:.2f}\")\n```\nExecuting it gi... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0047984 | One can of paint covers 400 square feet. How many cans are needed for 583 square feet of wall?
A short script:
```python
import math
area = 583
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
The code prints: 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0047985 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 44
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 134.39999999999998
pay = regular + over... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 44\nregular = 40 * rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "1030.40", "printed": "1030.40", "notation": null} |
nlprog_det-setting-0047986 | A 495-page report must be reviewed in 15 days. How many pages a day is that, evenly?
That is 33 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0047987 | <|start|><|user|>
A 306-page report must be reviewed in 6 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 306
days = 6
per_day = pages // days # 51
print(per_day)
```
Run result — 51
That is 51 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 306-page report must be reviewed in 6 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 306\ndays = 6\nper_day = pages // days # 51\nprint(per_day)\n```\nRun result — 51\n\nThat is 51 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0047988 | <|start|><|user|>
If a 5-year limitations period starts on December 11, 2024, when does it end?<|eot|>
<|assistant|>
It runs out on December 11, 2029.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 5-year limitations period starts on December 11, 2024, when does it end?"
},
{
"role": "assistant",
"content": "It runs out on December 11, 2029."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2029-12-11", "printed": "2029-12-11", "notation": null} |
nlprog_det-setting-0047989 | What simple interest does $12,000 earn at 5% a year over 5 years?
```python
principal = 12000
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 3000.0
print(f"{interest:.2f}")
```
That prints 3000.00.
It earns $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0047990 | <|start|><|system|>
You can call tools. Available tools:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "calc", "description": "A Python int... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\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 | [] | [] | 305 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0047991 | <|start|><|user|>
2 books come back 18 days late, at $0.15 a day each. What is the fine?<|eot|>
<|assistant|>
The fine is $5.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 18 days late, at $0.15 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "The fine is $5.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "5.40", "printed": "5.40", "notation": null} |
nlprog_det-setting-0047992 | A 7 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
The Python version:
import math
length = 7
width = 12
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 84
print(tiles)
Out: 84
84 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0047993 | Which is cheaper per unit: 10 for $7.19 (A) or 30 for $10.02 (B)?
Python version:
```python
pack_a = 7.19 / 10 # 0.7190000000000001
pack_b = 10.02 / 30 # 0.33399999999999996
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# out: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0047994 | With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.
Profit is 55.6% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0047995 | <|start|><|user|>
A storeroom has 1418 clipboards. The office uses 40 a day. How many are left after 12 days?<|eot|>
<|assistant|>
```python
stock = 1418
per_day = 40
days = 12
left = stock - per_day * days # 938
print(left)
```
The program prints: 938
938 clipboards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1418 clipboards. The office uses 40 a day. How many are left after 12 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1418\nper_day = 40\ndays = 12\nleft = stock - per_day * days # 938\nprint(left)\n```\nThe program prints: 938\n\n93... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "938", "printed": "938", "notation": null} |
nlprog_det-setting-0047996 | Of a $10,000 budget, $3,300 has been spent. What percent is that?
The Python version:
```python
budget = 10000
spent = 3300
percent = spent / budget * 100 # 33.0
print(round(percent, 1))
```
Console output — 33.0
33.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "33.0", "printed": "33.0", "notation": null} |
nlprog_det-setting-0047997 | A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 109-page copy cost?
We can compute it in Python.
```python
pages = 109
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 20.9
print(f"{cost:.2f}")
```
Printed: 20.90
The copy costs $20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "20.90", "printed": "20.90", "notation": null} |
nlprog_det-setting-0047998 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0047999 | How many whole days and leftover hours are in 317 hours?
The Python version:
hours = 317
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Result — 13 days and 5 hours
That is 13 days and 5 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "13 days and 5 hours", "printed": "13 days and 5 hours", "notation": null} |
nlprog_det-setting-0048000 | <|start|><|user|>
How many units at $40 each (variable cost $36) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
Break-even is 2250 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $36) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "Break-even is 2250 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0048001 | 3 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
One way, in code:
```python
award = 96000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
```
When run, it prints: 22400.00
Each client gets $22,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "22400.00", "printed": "22400.00", "notation": null} |
nlprog_det-setting-0048002 | How long, in days, is it from March 18, 2023 until December 2, 2023?
Here is a short program for it.
```python
from datetime import date
first = date(2023, 3, 18)
second = date(2023, 12, 2)
print((second - first).days)
```
stdout:
259
It is 259 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "259", "printed": "259", "notation": null} |
nlprog_det-setting-0048003 | What commission does Kofi make on $107,369 in sales at 2%?
```python
sales = 107369
rate = 2 / 100 # 0.02
commission = sales * rate # 2147.38
print(f"{commission:.2f}")
```
When run, it prints 2147.38.
The commission is $2,147.38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2147.38", "printed": "2147.38", "notation": null} |
nlprog_det-setting-0048004 | How many units at $20 each (variable cost $12) cover $6,000 of fixed costs?
Here's the code.
import math
fixed = 6000
price = 20
variable = 12
units = math.ceil(fixed / (price - variable)) # 750
print(units)
When run, it prints 750, as expected.
750 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0048005 | How many minutes pass from 7:18 AM to 9:06 AM on the same day?
As a program:
```python
start = 7 * 60 + 18 # 438
end = 9 * 60 + 6 # 546
print(end - start)
```
The program prints 108, as expected.
It is 108 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0048006 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 180 copies of a 11-page handout?<|eot|>
<|assistant|>
```python
pages = 11
copies = 180
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 237.6
print(f"{cost:.2f}")
```
Running it prints 237.60.
The job costs $237.60.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 180 copies of a 11-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 11\ncopies = 180\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 237.6\nprint(f\"{cost:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "237.60", "printed": "237.60", "notation": null} |
nlprog_det-setting-0048007 | <|start|><|user|>
How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 400
print(units)
```
Running it prints 400.
400 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) # 400\nprint(units)\n```\nRunning it pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0048008 | Water costs $15 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 25,000 gallons?
```python
base = 15
rate = 5.1
used = 25
free = 2
bill = base + rate * max(0, used - free) # 132.3
print(f"{bill:.2f}")
```
Executing it gives 132.30.
$132.30 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "132.30", "printed": "132.30", "notation": null} |
nlprog_det-setting-0048009 | Vera drove 37 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Python does the arithmetic:
```python
miles = 37
rate = 0.67
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
The program outputs 24.79.
Vera is owed $24.79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "24.79", "printed": "24.79", "notation": null} |
nlprog_det-setting-0048010 | <|start|><|user|>
A $1,200 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 288.0
payment... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 8 / 100 # 0.08\nmonths = 36\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "41.33", "printed": "41.33", "notation": null} |
nlprog_det-setting-0048011 | <|start|><|user|>
Papers were served by mail on April 8, 2019. A response is due 28 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, 4, 8) # datetime.date(2019, 4, 8)
response_days = 28
mail_days = 3
due = s... | chat | [
{
"role": "user",
"content": "Papers were served by mail on April 8, 2019. A response is due 28 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, 4, 8) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2019-05-09", "printed": "2019-05-09", "notation": null} |
nlprog_det-setting-0048012 | Nilufar's scores were 58, 57, 65 and 84. What is the average score?
Let's compute it with Python.
```python
scores = [58, 57, 65, 84]
average = sum(scores) // len(scores) # 66
print(average)
```
This prints 66.
The mean is 66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0048013 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Meals are $64 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?<|eot|>
<|assistant|>
The allowance is $1,084.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Meals are $64 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?"
},
{
"role": "assistant",
"content": "The allowance is $1,084."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "1084", "printed": "1084", "notation": null} |
nlprog_det-setting-0048014 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Starting from $8,000, the team spends $2,643, $3,816. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [2643, 3816]
left = budget - sum(expenses) # 1541
print(left)
```
Printed = 1541
The remaining budget is $1,541.<|eot|>... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Starting from $8,000, the team spends $2,643, $3,816. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [2643, 3816]\nleft = budget - sum(e... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1541", "printed": "1541", "notation": null} |
nlprog_det-setting-0048015 | <|start|><|user|>
A storeroom has 669 folders. The office uses 39 a day. How many are left after 4 days?<|eot|>
<|assistant|>
513 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 669 folders. The office uses 39 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "513 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "513", "printed": "513", "notation": null} |
nlprog_det-setting-0048016 | Convert 47.3 km to meters.
```python
km = 47.3
meters = km * 1000 # 47300.0
print(round(meters))
```
(Printed: 47300)
47,300 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "47300", "printed": "47300", "notation": null} |
nlprog_det-setting-0048017 | <|start|><|system|>
Tool definitions:
[{"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": "convert_units", "description": "Convert... | chat | [
{
"role": "system",
"content": "Tool definitions:\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\": [\"title\", \"sect... | nlprog_det | setting | original | null | deterministic | [] | [] | 409 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0048018 | If a 50-minute seminar begins at 1:15 PM, what time does it finish?
Let the code do the arithmetic:
```python
start = 13 * 60 + 15
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# output: 2:05 PM
The seminar finishes at 2:05 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2:05 PM", "printed": "2:05 PM", "notation": null} |
nlprog_det-setting-0048019 | <|start|><|system|>
You may call the tools below.
[{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "search_cases", "descript... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0048020 | A lawyer's fee is 25% of a $40,000 recovery. How large is the fee?
```python
recovery = 40000
rate = 25 / 100 # 0.25
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
(Output: 10000.00)
The lawyer's fee comes to $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0048021 | <|start|><|user|>
With 21 rows of 16 chairs and 35 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 21
per_row = 16
empty = 35
seated = rows * per_row - empty # 301
print(seated)
```
Result = 301
301 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 21 rows of 16 chairs and 35 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 21\nper_row = 16\nempty = 35\nseated = rows * per_row - empty # 301\nprint(seated)\n```\nResult = 301\n\n301 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "301", "printed": "301", "notation": null} |
nlprog_det-setting-0048022 | Lucia buys 11 boxes of 6 headsets each and gives away 10 headsets. How many headsets are left?
Set it up in Python:
```python
boxes = 11
per_box = 6
given_away = 10
left = boxes * per_box - given_away # 56
print(left)
```
(Result: 56)
That leaves 56 headsets. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0048023 | <|start|><|user|>
What commission does Mateo make on $77,273 in sales at 3%?<|eot|>
<|assistant|>
```python
sales = 77273
rate = 3 / 100 # 0.03
commission = sales * rate # 2318.19
print(f"{commission:.2f}")
```
On running, it outputs: 2318.19
The commission is $2,318.19.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Mateo make on $77,273 in sales at 3%?"
},
{
"role": "assistant",
"content": "```python\nsales = 77273\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 2318.19\nprint(f\"{commission:.2f}\")\n```\nOn running, it outputs: 2318.19\n\nThe commis... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2318.19", "printed": "2318.19", "notation": null} |
nlprog_det-setting-0048024 | A $60,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
$19,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "19000.00", "printed": "19000.00", "notation": null} |
nlprog_det-setting-0048025 | <|start|><|user|>
After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 4 # 14400.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0048026 | Fines run at $50 per day up to a maximum of $2,500. How much after 10 days?
Code:
```python
per_day = 50
days = 10
cap = 2500
fine = min(per_day * days, cap)
print(fine)
```
Printed — 500
The fine is $500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0048027 | <|start|><|user|>
Quinn and Ulla share $3,458 in the ratio 3:4. How much does Quinn get?<|eot|>
<|assistant|>
Quinn's share is $1,482.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn and Ulla share $3,458 in the ratio 3:4. How much does Quinn get?"
},
{
"role": "assistant",
"content": "Quinn's share is $1,482."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1482", "printed": "1482", "notation": null} |
nlprog_det-setting-0048028 | <|start|><|user|>
Meals are $79 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 736
print(total)
```
(Printed: 736)
The allowance is $7... | chat | [
{
"role": "user",
"content": "Meals are $79 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 79\nlodging_rate = 140\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "736", "printed": "736", "notation": null} |
nlprog_det-setting-0048029 | <|start|><|user|>
A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 6 thousand gallons?<|eot|>
<|assistant|>
base = 12
rate = 3.5
used = 6
free = 3
bill = base + rate * max(0, used - free) # 22.5
print(f"{bill:.2f}")
This prints 22.50.
$22.50... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 6 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 12\n rate = 3.5\n used = 6\n free = 3\n bill = base + rate * max(0, used - free) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "22.50", "printed": "22.50", "notation": null} |
nlprog_det-setting-0048030 | <|start|><|system|>
Tools you may use:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "ob... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"eval_python\", \"description\": \"Executes Py... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0048031 | <|start|><|user|>
Goods bought on December 21, 2018 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 12, 21)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(e... | chat | [
{
"role": "user",
"content": "Goods bought on December 21, 2018 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 12, 21)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = d... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2020-06-21", "printed": "2020-06-21", "notation": null} |
nlprog_det-setting-0048032 | How much sales tax is charged on a $663.99 purchase at 5%?
Python code:
```python
price = 663.99
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 33.1995
print(f"{tax:.2f}")
```
# run result: 33.20
$33.20 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "33.20", "printed": "33.20", "notation": null} |
nlprog_det-setting-0048034 | <|start|><|user|>
Each of Tariq's bike rides burns 200 calories. How many calories over 7 bike rides?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
```
Run output: 1400
1400 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Tariq's bike rides burns 200 calories. How many calories over 7 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions # 1400\nprint(total)\n```\nRun output: 1400\n\n1400 calories in tot... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0048036 | On which weekday does June 17, 2014 fall?
The Python version:
```python
from datetime import date
hearing = date(2014, 6, 17) # datetime.date(2014, 6, 17)
print(hearing.strftime("%A"))
```
Printed result: Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0048037 | <|start|><|user|>
A measure needs at least 67% of 45 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 45
needed = math.ceil(voters * 67 / 100) # 31
print(needed)
```
stdout — 31
At least 31 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 45 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 45\nneeded = math.ceil(voters * 67 / 100) # 31\nprint(needed)\n```\nstdout — 31\n\nAt least 31 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0048038 | <|start|><|user|>
How many units at $40 each (variable cost $35) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
# stdout: 500
500 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $35) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) # 500\nprint(units)\n```\n# stdout: 500... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0048039 | A 200-mile drive at a steady 50 mph takes how many minutes?
As a program:
distance = 200
speed = 50
minutes = distance / speed * 60 # 240.0
print(round(minutes))
When run, it prints: 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0048040 | 4 hours of work at $410 an hour: what is the total charge?
That comes to $1,640.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0048041 | A 225-mile drive at a steady 50 mph takes how many minutes?
Script:
```python
distance = 225
speed = 50
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
Output: 270
270 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0048042 | A 24-month warranty starts on September 1, 2018. On what date does it end?
Python code:
```python
from datetime import date
start = date(2018, 9, 1)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Output:
2020-0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2020-09-01", "printed": "2020-09-01", "notation": null} |
nlprog_det-setting-0048043 | A storeroom has 548 keyboards. The office uses 6 a day. How many are left after 9 days?
A Python solution:
```python
stock = 548
per_day = 6
days = 9
left = stock - per_day * days # 494
print(left)
```
(Result: 494)
494 keyboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "494", "printed": "494", "notation": null} |
nlprog_det-setting-0048044 | <|start|><|user|>
A hearing is set for February 22, 2020. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2020, 2, 22) # datetime.date(2020, 2, 22)
print(hearing.strftime("%A"))
```
The program outputs: Saturday
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for February 22, 2020. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2020, 2, 22) # datetime.date(2020, 2, 22)\nprint(hearing.strftime(\"%A\"))\n```\nThe program outputs: S... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0048046 | Meals are $79 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?
As a program:
```python
days = 8
meal_rate = 79
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1402
print(total)
```
Result — 1402
That comes to $1,402. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1402", "printed": "1402", "notation": null} |
nlprog_det-setting-0048047 | A $84 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
Python code:
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 20.16
print(f"{each:.2f}")
```
Run it and it prints: 20.16
The share is $20.16 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "20.16", "printed": "20.16", "notation": null} |
nlprog_det-setting-0048048 | Counting only Monday through Friday, how many business days are there after December 12, 2025 through January 1, 2026?
14 weekdays. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0048049 | What simple interest does $8,000 earn at 5% a year over 6 years?
Computing it:
```python
principal = 8000
rate = 5 / 100 # 0.05
years = 6
interest = principal * rate * years # 2400.0
print(f"{interest:.2f}")
```
The program prints 2400.00.
The interest is $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0048051 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?
The program:
```python
rate = 22.4
hours = 46
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
Output = 1097.60
Nilufar earns $1,097.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1097.60", "printed": "1097.60", "notation": null} |
nlprog_det-setting-0048052 | At $25.95 an hour, what does 20 hours of work pay?
A few lines of Python do it:
rate = 25.95
hours = 20
earnings = rate * hours # 519.0
print(f"{earnings:.2f}")
# console output: 519.00
That earns $519.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "519.00", "printed": "519.00", "notation": null} |
nlprog_det-setting-0048053 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 17, 2027 up to and including March 24, 2027?<|eot|>
<|assistant|>
5 weekdays.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 17, 2027 up to and including March 24, 2027?"
},
{
"role": "assistant",
"content": "5 weekdays."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0048054 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $7,500 over 5 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 562.5
print(f"{interest:.2f}")
```
Output — 562.50
The interest is $562.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $7,500 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 562.5\nprint(f\"{interest:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0048055 | <|start|><|user|>
How many minutes pass from 11:26 AM to 12:07 PM on the same day?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 26 # 686
end = 12 * 60 + 7 # 727
print(end - start)
```
This prints 41, as expected.
It is 41 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 11:26 AM to 12:07 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 26 # 686\nend = 12 * 60 + 7 # 727\nprint(end - start)\n```\nThis prints 41, as expected.\n\nIt is 41 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0048056 | <|start|><|user|>
With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Interpreter output — 38.5
... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 13000\ncosts = 8000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 38.46153846153... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0048057 | <|start|><|user|>
With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026
print(round(margin, 1))
Out:
2.7
Profit ... | chat | [
{
"role": "user",
"content": "With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": " revenue = 37000\n costs = 36000\n profit = revenue - costs # 1000\n margin = profit / revenue * 100 # 2.70270... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0048058 | <|start|><|user|>
How many 1-foot square tiles cover a 9 ft by 3 ft floor (round up)?<|eot|>
<|assistant|>
27 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 9 ft by 3 ft floor (round up)?"
},
{
"role": "assistant",
"content": "27 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0048059 | What percentage of $4,000 is $2,100?
In code:
```python
budget = 4000
spent = 2100
percent = spent / budget * 100 # 52.5
print(round(percent, 1))
```
(Program output: 52.5)
That is 52.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "52.5", "printed": "52.5", "notation": null} |
nlprog_det-setting-0048060 | <|start|><|user|>
4 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $4,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $4,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0048061 | Split $3,088 between Bruna and Grace in the ratio 3 to 5. What is Bruna's share?
Program:
```python
total = 3088
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1158
print(share_a)
```
Run it and it prints 1158.
Bruna gets $1,158. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1158", "printed": "1158", "notation": null} |
nlprog_det-setting-0048062 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
The landlord deducts $150, $200 and $85 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [150, 200, 85]
refund = deposit - sum(deductions) # 1565
print(refund)
```
# execution result: 1565
$1,... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "The landlord deducts $150, $200 and $85 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [150, 200, 85]\nref... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1565", "printed": "1565", "notation": null} |
nlprog_det-setting-0048063 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "description": "Fetc... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 341 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0048064 | <|start|><|user|>
Maren buys 8 boxes of 10 mugs each and gives away 20 mugs. How many mugs are left?<|eot|>
<|assistant|>
That leaves 60 mugs.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Maren buys 8 boxes of 10 mugs each and gives away 20 mugs. How many mugs are left?"
},
{
"role": "assistant",
"content": "That leaves 60 mugs."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0048065 | Pack A has 10 items for $12.68. Pack B has 18 items for $16.18. Which has the lower price per item?
```python
pack_a = 12.68 / 10 # 1.268
pack_b = 16.18 / 18 # 0.8988888888888888
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The interpreter prints: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0048066 | Someone born March 14, 2004 turns how old by January 24, 2030? Give the age in whole years.
Programmatically:
```python
from datetime import date
born = date(2004, 3, 14) # datetime.date(2004, 3, 14)
on = date(2030, 1, 24) # datetime.date(2030, 1, 24)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0048067 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A desk lamp costs $180. It is 15% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 180
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 153.0
print(f"{sale_price:.2f}")
```
stdout: 153.00
It costs $153.0... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A desk lamp costs $180. It is 15% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 15 / 100 # 0.15\nsale_price = price *... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "153.00", "printed": "153.00", "notation": null} |
nlprog_det-setting-0048069 | Scale 450 g of sugar from 8 servings to 12 servings.
Use 675 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0048070 | <|start|><|user|>
A quorum is 3/5 of the 26 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 26
quorum = math.ceil(members * 3 / 5) # 16
print(quorum)
(Out: 16)
That is 16 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 3/5 of the 26 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 26\n quorum = math.ceil(members * 3 / 5) # 16\n print(quorum)\n(Out: 16)\n\nThat is 16 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0048071 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
A party has 30 days to respond to a motion served on April 28, 2022, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 4, 28) # datetime.date(2022... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on April 28, 2022, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2022-05-31", "printed": "2022-05-31", "notation": null} |
nlprog_det-setting-0048072 | <|start|><|user|>
A meeting starts at 8:30 AM and lasts 105 minutes. When does it end?<|eot|>
<|assistant|>
The meeting finishes at 10:15 AM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting starts at 8:30 AM and lasts 105 minutes. When does it end?"
},
{
"role": "assistant",
"content": "The meeting finishes at 10:15 AM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "10:15 AM", "printed": "10:15 AM", "notation": null} |
nlprog_det-setting-0048073 | At $0.62 per mile, what is the reimbursement for 218 miles?
The computation:
```python
miles = 218
rate = 0.62
reimbursement = miles * rate # 135.16
print(f"{reimbursement:.2f}")
```
The code prints 135.16.
The reimbursement is $135.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "135.16", "printed": "135.16", "notation": null} |
nlprog_det-setting-0048074 | Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment?
A Python solution:
```python
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 720.0
payment = (principal + interest) / months # 280.0
print(f"{paymen... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "280.00", "printed": "280.00", "notation": null} |
nlprog_det-setting-0048075 | 76 copies of a 6-page packet are printed at $0.05 per page. What is the cost?
Coded up:
pages = 6
copies = 76
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 22.8
print(f"{cost:.2f}")
(Program output: 22.80)
Printing costs $22.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "22.80", "printed": "22.80", "notation": null} |
nlprog_det-setting-0048076 | Each of Jamal's runs burns 350 calories. How many calories over 5 runs? 1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "1750", "printed": "1750", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.