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-0049474 | Leon earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?
The weekly pay is $712.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "712.00", "printed": "712.00", "notation": null} |
nlprog_det-setting-0049475 | Someone born July 18, 1992 turns how old by August 3, 2021? Give the age in whole years.
Translated to Python:
from datetime import date
born = date(1992, 7, 18) # datetime.date(1992, 7, 18)
on = date(2021, 8, 3) # datetime.date(2021, 8, 3)
age = on.year - born.year - ((on.month, on.day) < (born.mont... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0049476 | Express 283 hours in days and hours.
Written as code:
```python
hours = 283
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
stdout: 11 days and 19 hours
283 hours is 11 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "11 days and 19 hours", "printed": "11 days and 19 hours", "notation": null} |
nlprog_det-setting-0049477 | <|start|><|system|>
Functions:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name": "interpreter... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 326 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0049478 | After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?
The Python version:
```python
grant = 24000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
Output = 6000.00
$6,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0049479 | Each of Dara's walks burns 250 calories. How many calories over 5 walks?
Written as code:
```python
per_session = 250
sessions = 5
total = per_session * sessions # 1250
print(total)
```
Printed: 1250
1250 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0049480 | A clerk's office charges $125 for each filing. Rania submits 17 filings. What is the total fee?
We write it as a program:
```python
fee = 125
filings = 17
total = fee * filings # 2125
print(total)
```
# program output: 2125
The filings cost $2,125 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2125", "printed": "2125", "notation": null} |
nlprog_det-setting-0049481 | <|start|><|user|>
A car travels 480 miles in 5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 480
hours = 5
speed = distance / hours # 96.0
print(round(speed))
```
Program output: 96
It averages 96 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 480 miles in 5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 480\nhours = 5\nspeed = distance / hours # 96.0\nprint(round(speed))\n```\nProgram output: 96\n\nIt averages 96 miles per h... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "96", "printed": "96", "notation": null} |
nlprog_det-setting-0049482 | With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.
Python, step by step:
```python
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
```
stdout:
4.8
The margin is 4.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0049484 | <|start|><|system|>
Functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "sandbox_python", "description": "Executes Python code and r... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 381 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0049485 | <|start|><|user|>
A hearing starts at 10:45 AM and lasts 150 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The printout reads 1:15 PM.
It ends at 1:15 PM.<|eo... | chat | [
{
"role": "user",
"content": "A hearing starts at 10:45 AM and lasts 150 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 45\nend = start + 150\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1:15 PM", "printed": "1:15 PM", "notation": null} |
nlprog_det-setting-0049486 | A hearing is set for January 23, 2016. What day of the week is that?
In Python:
```python
from datetime import date
hearing = date(2016, 1, 23) # datetime.date(2016, 1, 23)
print(hearing.strftime("%A"))
```
That prints: Saturday
January 23, 2016 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0049487 | Scale 100 g of oats from 2 servings to 3 servings.
As a program:
```python
grams = 100
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 150
print(scaled)
```
The interpreter prints 150.
Use 150 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0049488 | Each storage box holds 12 files. How many boxes are needed for 50 files?
Let's compute it with Python.
```python
import math
files = 50
per_box = 12
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
The program prints: 5
It takes 5 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0049489 | <|start|><|user|>
4 books come back 21 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 21
books = 4
fine = per_day * days_late * books # 8.4
print(f"{fine:.2f}")
```
The program prints: 8.40
$8.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 books come back 21 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 21\nbooks = 4\nfine = per_day * days_late * books # 8.4\nprint(f\"{fine:.2f}\")\n```\nThe program prints: 8.40\n\n$8.... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "8.40", "printed": "8.40", "notation": null} |
nlprog_det-setting-0049490 | After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
The computation:
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")
```
It outputs 36000... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0049492 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Each... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0049493 | Lucia was born on July 13, 1964. How old is Lucia on May 22, 2023?
The computation:
```python
from datetime import date
born = date(1964, 7, 13) # datetime.date(1964, 7, 13)
on = date(2023, 5, 22) # datetime.date(2023, 5, 22)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 58
print(age)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0049494 | <|start|><|system|>
Tools (call with JSON):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"fetch_filing\", \"description\": \"Fetch... | nlprog_det | setting | original | null | deterministic | [] | [] | 376 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0049495 | An invoice lists 37 notebooks at $5 each, plus 7% sales tax. What is the invoice total?
Here is a short program for it.
```python
quantity = 37
unit_price = 5
subtotal = quantity * unit_price # 185
total = subtotal * (1 + 7 / 100) # 197.95000000000002
print(f"{total:.2f}")
```
The run gives: 197.95
The total with t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "197.95", "printed": "197.95", "notation": null} |
nlprog_det-setting-0049496 | 280 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
Here is a short program for it.
```python
total = 280
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# result: 31 each, 1 left over
The answer: 31 each, 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "31 each, 1 left over", "printed": "31 each, 1 left over", "notation": null} |
nlprog_det-setting-0049497 | What simple interest does $2,500 earn at 2% a year over 2 years?
In Python:
```python
principal = 2500
rate = 2 / 100 # 0.02
years = 2
interest = principal * rate * years # 100.0
print(f"{interest:.2f}")
```
(Result: 100.00)
It earns $100.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0049498 | <|start|><|system|>
You may call the tools below.
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the c... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"eval_python\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "28.82", "printed": "28.82", "notation": null} |
nlprog_det-setting-0049500 | <|start|><|user|>
What day of the week is May 20, 2030?<|eot|>
<|assistant|>
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is May 20, 2030?"
},
{
"role": "assistant",
"content": "It is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0049501 | What simple interest does $5,000 earn at 4% a year over 4 years?
As a program:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 4
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
Console:
800.00
The interest is $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0049502 | How many of 118 votes make 67% (round up)?
Set it up in Python:
import math
voters = 118
needed = math.ceil(voters * 67 / 100) # 80
print(needed)
What it prints — 80
80 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0049503 | At an exchange rate of 0.92 EUR per USD, how many EUR is 1,913 USD?
In code:
```python
amount = 1913
rate = 0.92
converted = amount * rate # 1759.96
print(f"{converted:.2f}")
```
Interpreter output — 1759.96
It converts to 1,759.96 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1759.96", "printed": "1759.96", "notation": null} |
nlprog_det-setting-0049504 | <|start|><|system|>
Tools you may use:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name": "san... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 367 | {"gold": "1064.00", "printed": "1064.00", "notation": null} |
nlprog_det-setting-0049505 | <|start|><|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours?<|eot|>
<|assistant|>
rate = 18.5
hours = 51
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 305.25
pay = regular + overtime # 1045.25
print(f"{pay:.2f}")
Run i... | chat | [
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours?"
},
{
"role": "assistant",
"content": " rate = 18.5\n hours = 51\n regular = 40 * rate # 740.0\n overtime = (hours - 40) * rate * 1.5 # 305.25\n pay = r... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "1045.25", "printed": "1045.25", "notation": null} |
nlprog_det-setting-0049506 | What is the total rent on a 6-month lease at $3,250 a month?
We write it as a program:
```python
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
```
Run it and it prints: 19500
The rent over the term is $19,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0049507 | Monthly: $29. Annual: $324. What is saved per year by paying annually? The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0049508 | A shift runs from 9:07 AM to 12:46 PM. How long is it in minutes?
As a program:
```python
start = 9 * 60 + 7 # 547
end = 12 * 60 + 46 # 766
print(end - start)
```
The script prints 219, as expected.
219 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "219", "printed": "219", "notation": null} |
nlprog_det-setting-0049509 | Mei and Ivan share $6,728 in the ratio 3:5. How much does Mei get?
```python
total = 6728
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2523
print(share_a)
```
Out = 2523
Mei gets $2,523. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2523", "printed": "2523", "notation": null} |
nlprog_det-setting-0049511 | Attendance was 47 out of 50. Express it as a percent.
```python
present = 47
total = 50
percent = present / total * 100
print(round(percent, 1))
```
(Output: 94.0)
94.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "94.0", "printed": "94.0", "notation": null} |
nlprog_det-setting-0049512 | What is a 10% tip on a $187.09 bill?
We write it as a program:
```python
bill = 187.09
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 18.709
print(f"{tip:.2f}")
```
Console:
18.71
Leave $18.71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "18.71", "printed": "18.71", "notation": null} |
nlprog_det-setting-0049513 | <|start|><|user|>
2 books come back 25 days late, at $0.15 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 25
books = 2
fine = per_day * days_late * books # 7.5
print(f"{fine:.2f}")
```
The interpreter prints: 7.50
The fine is $7.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 25 days late, at $0.15 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 25\nbooks = 2\nfine = per_day * days_late * books # 7.5\nprint(f\"{fine:.2f}\")\n```\nThe interpreter prints: 7.50\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "7.50", "printed": "7.50", "notation": null} |
nlprog_det-setting-0049514 | Fines run at $100 per day up to a maximum of $2,500. How much after 50 days?
We can compute it in Python.
```python
per_day = 100
days = 50
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Python prints: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0049515 | A filing cabinet costs $180. It is 30% off. What is the sale price?
Set it up in Python:
price = 180
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 125.99999999999999
print(f"{sale_price:.2f}")
# result: 126.00
It costs $126.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0049516 | The rules require 3/5 of 38 members (round up) to be present. How many is that?
Python, step by step:
```python
import math
members = 38
quorum = math.ceil(members * 3 / 5) # 23
print(quorum)
```
Interpreter output: 23
23 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0049517 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
An un... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0049518 | The firm was founded in 1996. How many years had passed by 2002?
Python, step by step:
```python
start_year = 1996
end_year = 2002
print(end_year - start_year)
```
Run result: 6
That is 6 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0049519 | 8 claimants share a $84,000 settlement equally. What is each share?
Python:
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
Program output: 10500
Each share is $10,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0049520 | The rules require 3/5 of 15 members (round up) to be present. How many is that?
In code:
```python
import math
members = 15
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
It prints 9.
9 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0049521 | <|start|><|system|>
Tool definitions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "py_exec", "description": "Run Python code in a sandbo... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "5861.70", "printed": "5861.70", "notation": null} |
nlprog_det-setting-0049522 | <|start|><|user|>
An office budget of $8,000 has expenses of $2,593, $943, $1,034, $477. How much of the budget is left?<|eot|>
<|assistant|>
budget = 8000
expenses = [2593, 943, 1034, 477]
left = budget - sum(expenses) # 2953
print(left)
Result — 2953
The remaining budget is $2,953.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $2,593, $943, $1,034, $477. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [2593, 943, 1034, 477]\n left = budget - sum(expenses) # 2953\n print(left)\nResult... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2953", "printed": "2953", "notation": null} |
nlprog_det-setting-0049523 | <|start|><|user|>
A 90-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 90
speed = 45
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
Output — 120
The trip takes 120 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 90-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 90\nspeed = 45\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nOutput — 120\n\nThe trip takes 120 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0049524 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 105-mile trip take?<|eot|>
<|assistant|>
```python
distance = 105
speed = 30
minutes = distance / speed * 60 # 210.0
print(round(minutes))
```
The script prints: 210
210 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 105-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 105\nspeed = 30\nminutes = distance / speed * 60 # 210.0\nprint(round(minutes))\n```\nThe script prints: 210\n\n210 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0049525 | A claim accrued on August 25, 2021. The limitations period is 5 years. On what date does it expire?
```python
from datetime import date
accrued = date(2021, 8, 25) # datetime.date(2021, 8, 25)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 8, 25)
print(expires.isoformat())
```
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2026-08-25", "printed": "2026-08-25", "notation": null} |
nlprog_det-setting-0049526 | <|start|><|user|>
Convert 30 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Result: 86
It equals 86 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 30 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nResult: 86\n\nIt equals 86 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0049527 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 24.0
print(f"{each:.2f}")
```
Printed: 24.00
The share is ... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 120\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0049528 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statu... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0049529 | The rules require 2/3 of 16 members (round up) to be present. How many is that?
The program:
```python
import math
members = 16
quorum = math.ceil(members * 2 / 3) # 11
print(quorum)
```
Printed:
11
11 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0049530 | <|start|><|user|>
How many whole days and leftover hours are in 119 hours?<|eot|>
<|assistant|>
```python
hours = 119
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
stdout: 4 days and 23 hours
119 hours is 4 days and 23 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 119 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 119\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nstdout: 4 days and 23 hours\n\n119 hours is 4 days and 23 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4 days and 23 hours", "printed": "4 days and 23 hours", "notation": null} |
nlprog_det-setting-0049531 | An attorney bills 2 hours at $300 per hour. What is the bill?
Programmatically:
```python
hours = 2
rate = 300
bill = hours * rate # 600
print(f"{bill:.2f}")
```
Shell output — 600.00
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0049532 | <|start|><|system|>
You can call tools. Available tools:
{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute",... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 327 | {"gold": "13.80", "printed": "13.80", "notation": null} |
nlprog_det-setting-0049533 | <|start|><|system|>
Tool definitions:
{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
What is a 22% tip on a $... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "52.23", "printed": "52.23", "notation": null} |
nlprog_det-setting-0049534 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 385 | {"gold": "3840.00", "printed": "3840.00", "notation": null} |
nlprog_det-setting-0049536 | Each storage box holds 15 files. How many boxes are needed for 724 files?
Computation in Python:
```python
import math
files = 724
per_box = 15
boxes = math.ceil(files / per_box) # 49
print(boxes)
```
When run, it prints 49.
49 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0049537 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|>
<|assistant|>
```python
rate = 16.0
hours = 55
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 360.0
pay = regular + overtime # 1000.0
print(f"{pay:.2f}")
```
(Printed: 1000.00... | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.0\nhours = 55\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 360.0\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0049538 | <|start|><|user|>
What is a 15% tip on a $247.86 bill?<|eot|>
<|assistant|>
```python
bill = 247.86
tip_rate = 15 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
The run gives 37.18, as expected.
The tip is $37.18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $247.86 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 247.86\ntip_rate = 15 / 100\ntip = bill * tip_rate\nprint(f\"{tip:.2f}\")\n```\nThe run gives 37.18, as expected.\n\nThe tip is $37.18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "37.18", "printed": "37.18", "notation": null} |
nlprog_det-setting-0049539 | Chen earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?
Set it up in Python:
```python
rate = 25.0
hours = 50
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 375.0
pay = regular + overtime # 1375.0
print(f"{pay:.2f}")
```
Out = 1375.00
Chen earns $1,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1375.00", "printed": "1375.00", "notation": null} |
nlprog_det-setting-0049540 | <|start|><|user|>
Lena lends $2,500 at 3% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 450.0
print(f"{interest:.2f}")
```
(Execution result: 450.00)
The interest is $450.00.<|eo... | chat | [
{
"role": "user",
"content": "Lena lends $2,500 at 3% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 3 / 100 # 0.03\nyears = 6\ninterest = principal * rate * years # 450.0\nprint(f\"{interest:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0049541 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 20
variable = 14
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Interpreter output — 1000
Break-eve... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 20\nvariable = 14\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0049542 | How many weekdays (Monday to Friday) fall after December 6, 2028 up to and including December 16, 2028?
Programmatically:
```python
from datetime import date, timedelta
start = date(2028, 12, 6)
end = date(2028, 12, 16)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() <... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0049543 | A 1120-page report must be reviewed in 20 days. How many pages a day is that, evenly?
Here is the program.
```python
pages = 1120
days = 20
per_day = pages // days # 56
print(per_day)
```
# program output: 56
That is 56 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0049544 | 15 badges cost $3 apiece. With 5% tax added, what is the total?
Programmatically:
```python
quantity = 15
unit_price = 3
subtotal = quantity * unit_price # 45
total = subtotal * (1 + 5 / 100) # 47.25
print(f"{total:.2f}")
```
The code prints 47.25.
The invoice total is $47.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "47.25", "printed": "47.25", "notation": null} |
nlprog_det-setting-0049545 | <|start|><|user|>
A quorum is 3/5 of the 45 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 45
quorum = math.ceil(members * 3 / 5) # 27
print(quorum)
Run it and it prints: 27
27 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 3/5 of the 45 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 45\n quorum = math.ceil(members * 3 / 5) # 27\n print(quorum)\nRun it and it prints: 27\n\n27 members are need... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0049546 | <|start|><|user|>
What percentage of $5,000 is $2,900?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 2900
percent = spent / budget * 100 # 57.99999999999999
print(round(percent, 1))
```
Printed = 58.0
That is 58.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $2,900?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 2900\npercent = spent / budget * 100 # 57.99999999999999\nprint(round(percent, 1))\n```\nPrinted = 58.0\n\nThat is 58.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0049547 | <|start|><|user|>
A storeroom has 1586 cables. The office uses 27 a day. How many are left after 13 days?<|eot|>
<|assistant|>
```python
stock = 1586
per_day = 27
days = 13
left = stock - per_day * days
print(left)
```
The program prints: 1235
1235 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1586 cables. The office uses 27 a day. How many are left after 13 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1586\nper_day = 27\ndays = 13\nleft = stock - per_day * days\nprint(left)\n```\nThe program prints: 1235\n\n1235 remain.... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1235", "printed": "1235", "notation": null} |
nlprog_det-setting-0049548 | <|start|><|user|>
262 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 262
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
What it prints — 87 each, 1 left over
The answer... | chat | [
{
"role": "user",
"content": "262 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 262\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "87 each, 1 left over", "printed": "87 each, 1 left over", "notation": null} |
nlprog_det-setting-0049549 | A storeroom has 1712 labels. The office uses 13 a day. How many are left after 19 days?
Program:
```python
stock = 1712
per_day = 13
days = 19
left = stock - per_day * days # 1465
print(left)
```
(Out: 1465)
1465 labels are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1465", "printed": "1465", "notation": null} |
nlprog_det-setting-0049550 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "Use for arithmetic and date m... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"eval_... | nlprog_det | setting | original | null | deterministic | [] | [] | 300 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0049551 | 37 of 40 members attended. What percent attended?
The Python version:
```python
present = 37
total = 40
percent = present / total * 100 # 92.5
print(round(percent, 1))
```
(Console output: 92.5)
92.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0049552 | <|start|><|user|>
From a $10,000 retainer, 14 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
retainer = 10000
hours = 14
rate = 275
left = retainer - hours * rate # 6150
print(left)
Running it prints: 6150
The remaining balance is $6,150.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 14 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": " retainer = 10000\n hours = 14\n rate = 275\n left = retainer - hours * rate # 6150\n print(left)\nRunning it prints: 6150\n\nThe rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0049553 | <|start|><|user|>
A settlement of $84,000 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 6
share = settlement // parties # 14000
print(share)
```
Executing it gives 14000.
Each share is $14,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $84,000 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 6\nshare = settlement // parties # 14000\nprint(share)\n```\nExecuting it gives 14000.\n\nEac... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "14000", "printed": "14000", "notation": null} |
nlprog_det-setting-0049554 | A 130-mile drive at a steady 65 mph takes how many minutes? The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0049555 | At an exchange rate of 1.12 USD per GBP, how many USD is 242 GBP?
```python
amount = 242
rate = 1.12
converted = amount * rate # 271.04
print(f"{converted:.2f}")
```
stdout — 271.04
That is 271.04 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "271.04", "printed": "271.04", "notation": null} |
nlprog_det-setting-0049556 | A $96 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?
Coded up:
bill = 96
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 36.8
print(f"{each:.2f}")
Python prints 36.80.
The share is $36.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "36.80", "printed": "36.80", "notation": null} |
nlprog_det-setting-0049557 | <|start|><|user|>
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 40000
costs = 36000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 10.0
print(round(margin, 1))
```
That prints: 10.0
The margin is ... | chat | [
{
"role": "user",
"content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 40000\ncosts = 36000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 10.0\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0049558 | <|start|><|user|>
How long, in days, is it from March 16, 2027 until April 23, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 3, 16) # datetime.date(2027, 3, 16)
second = date(2027, 4, 23) # datetime.date(2027, 4, 23)
print((second - first).days)
```
Result = 38
It is 38 days.<|eot... | chat | [
{
"role": "user",
"content": "How long, in days, is it from March 16, 2027 until April 23, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 3, 16) # datetime.date(2027, 3, 16)\nsecond = date(2027, 4, 23) # datetime.date(2027, 4, 23)\nprint((... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0049559 | <|start|><|user|>
A 150-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 150
speed = 30
minutes = distance / speed * 60
print(round(minutes))
```
The program prints: 300
The trip takes 300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 150-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 30\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nThe program prints: 300\n\nThe trip takes 300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0049560 | A client paid a $2,500 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left?
Programmatically:
retainer = 2500
hours = 2
rate = 275
left = retainer - hours * rate # 1950
print(left)
The run gives: 1950
$1,950 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1950", "printed": "1950", "notation": null} |
nlprog_det-setting-0049561 | A meeting starts at 12:00 PM and lasts 150 minutes. When does it end?
In code:
```python
start = 12 * 60 + 0
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Run result: 2:30 PM
It ends at 2:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2:30 PM", "printed": "2:30 PM", "notation": null} |
nlprog_det-setting-0049562 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A party has 21 days to respond to a motion served on March 13, 2024, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 3, 13) # datetime.date(2024,... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on March 13, 2024, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nf... | nlprog_det | setting | original | null | deterministic | [] | [] | 188 | {"gold": "2024-04-06", "printed": "2024-04-06", "notation": null} |
nlprog_det-setting-0049563 | How many weekdays (Monday to Friday) fall after November 15, 2028 up to and including November 25, 2028?
Python makes this quick:
```python
from datetime import date, timedelta
start = date(2028, 11, 15)
end = date(2028, 11, 25)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).we... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0049564 | Yara has 19 documents to file, and each filing costs $150. How much are the filing fees in total?
Python, step by step:
```python
fee = 150
filings = 19
total = fee * filings # 2850
print(total)
```
stdout — 2850
The filings cost $2,850 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2850", "printed": "2850", "notation": null} |
nlprog_det-setting-0049565 | <|start|><|user|>
What does $1,000 grow to in 3 years at 5% annual compounding?<|eot|>
<|assistant|>
The balance is $1,157.63.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 3 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "The balance is $1,157.63."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1157.63", "printed": "1157.63", "notation": null} |
nlprog_det-setting-0049566 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 120-mile trip take?<|eot|>
<|assistant|>
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
Console:
240
240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 120-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 120\n speed = 30\n minutes = distance / speed * 60 # 240.0\n print(round(minutes))\nConsole:\n240\n\n240 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0049567 | <|start|><|user|>
How many meters are in 51 kilometers?<|eot|>
<|assistant|>
```python
km = 51
meters = km * 1000 # 51000
print(round(meters))
```
stdout:
51000
That is 51,000 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 51 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 51\nmeters = km * 1000 # 51000\nprint(round(meters))\n```\nstdout:\n51000\n\nThat is 51,000 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "51000", "printed": "51000", "notation": null} |
nlprog_det-setting-0049568 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"sandbox_python\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0049569 | <|start|><|user|>
Divide 28 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
3 each, 1 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Divide 28 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "3 each, 1 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "3 each, 1 left over", "printed": "3 each, 1 left over", "notation": null} |
nlprog_det-setting-0049570 | What is the total rent on a 12-month lease at $2,100 a month?
Python makes this quick:
```python
monthly_rent = 2100
months = 12
total = monthly_rent * months # 25200
print(total)
```
(Result: 25200)
In total, $25,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0049571 | How many units at $30 each (variable cost $26) cover $4,000 of fixed costs?
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0049573 | <|start|><|user|>
4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 4 # 14400.0
print(f"{per_client:.2f}")
The in... | chat | [
{
"role": "user",
"content": "4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 96000\n fee = award * 40 / 100 # 38400.0\n remaining = award - fee # 57600.0\n per_client = remai... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0049574 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
How many 1-foot square til... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0049575 | 30 water bottles cost $3 apiece. With 6% tax added, what is the total?
Python does the arithmetic:
```python
quantity = 30
unit_price = 3
subtotal = quantity * unit_price # 90
total = subtotal * (1 + 6 / 100) # 95.4
print(f"{total:.2f}")
```
(Printed: 95.40)
The total with tax is $95.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "95.40", "printed": "95.40", "notation": null} |
nlprog_det-setting-0049576 | Buying 2 ink cartridges at $11 each, 1 labels at $19 each, 1 sticky pads at $27 each, 6 hard drives at $30 each, someone hands over $250. What change comes back?
$2 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0049577 | Printing costs 10 cents a page. What does it cost to print 57 copies of a 6-page handout?
A few lines of Python do it:
```python
pages = 6
copies = 57
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 34.2
print(f"{cost:.2f}")
```
# printed: 34.20
Printing costs $34.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "34.20", "printed": "34.20", "notation": null} |
nlprog_det-setting-0049579 | <|start|><|user|>
50 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 50
total = 80
percent = present / total * 100 # 62.5
print(round(percent, 1))
```
# execution result: 62.5
Attendance was 62.5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "50 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 50\ntotal = 80\npercent = present / total * 100 # 62.5\nprint(round(percent, 1))\n```\n# execution result: 62.5\n\nAttendance was 62.5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "62.5", "printed": "62.5", "notation": null} |
nlprog_det-setting-0049580 | <|start|><|user|>
A trial runs from January 6, 2019 to January 28, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 1, 6) # datetime.date(2019, 1, 6)
last = date(2019, 1, 28) # datetime.date(2019, 1, 28)
days = (last - first).days + ... | chat | [
{
"role": "user",
"content": "A trial runs from January 6, 2019 to January 28, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 1, 6) # datetime.date(2019, 1, 6)\nlast = date(2019, 1, 28) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "23", "printed": "23", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.