|
<html><head> |
|
<style> |
|
body { font-family: Arial, sans-serif; margin: 20px; } |
|
h1 { text-align: center; } |
|
.cot-title { color: blue; } |
|
.pos-title { color: green; } |
|
h2 { color: black; text-align: left; } |
|
h3 { color: black; text-align: left; } |
|
h4 { color: darkslategray; } |
|
table { width: 100%; border-collapse: collapse; margin: 20px 0; } |
|
table, th, td { border: 1px solid #ddd; padding: 8px; } |
|
th { background-color: #f2f2f2; } |
|
tr:nth-child(even) { background-color: #f9f9f9; } |
|
.highlight { background-color: #ffffcc; } |
|
.true { color: green; } |
|
.false { color: red; } |
|
.highlighted-cell { background-color: yellow; cursor: pointer; } |
|
.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; } |
|
.step { display: block; } |
|
</style> |
|
</head><body> |
|
<hr/> |
|
<h3><span>Statement:</span> shane hall had an average finish of 31.39 between 1995 - 2008</h3> |
|
<h3>Input Table: shane hall</h3> |
|
<div class="step"> |
|
<div class="step"> |
|
<div class="step-title">Step 1: Calculate the average finish for each year by dividing the sum of the 'finish' column by the number of races in that year. Add a column 'avg_finish' to the existing table.</div> |
|
<div class="content" id="step-1"> |
|
<table> |
|
<tr> |
|
<td>year</td> |
|
<td>races</td> |
|
<td>wins</td> |
|
<td>poles</td> |
|
<td>top_5</td> |
|
<td>top_10</td> |
|
<td>dnf</td> |
|
<td>finish</td> |
|
<td>start</td> |
|
<td>winnings</td> |
|
<td>season_rank</td> |
|
<td>team__s_</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26.4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31.4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 2: Select rows where the 'year' is between 1995 and 2008 (inclusive).</div> |
|
<div class="content" id="step-0"> |
|
<table> |
|
<tr> |
|
<td>year</td> |
|
<td>races</td> |
|
<td>wins</td> |
|
<td>poles</td> |
|
<td>top_5</td> |
|
<td>top_10</td> |
|
<td>dnf</td> |
|
<td>finish</td> |
|
<td>start</td> |
|
<td>winnings</td> |
|
<td>season_rank</td> |
|
<td>team__s_</td> |
|
<td>avg_finish</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1995</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12.0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1996</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26.4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.8857142857142857</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1997</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.9678571428571429</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1998</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.8032258064516129</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1999</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.032</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2000</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17.5</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2001</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.8454545454545455</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2002</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.125</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2003</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7.159999999999999</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2004</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31.4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3.488888888888889</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5.8428571428571425</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38.9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4.322222222222222</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 3: Calculate the overall average finish by dividing the sum of the 'avg_finish' column by the number of rows.</div> |
|
<div class="content" id="step-1"> |
|
<table> |
|
<tr> |
|
<td>year</td> |
|
<td>races</td> |
|
<td>wins</td> |
|
<td>poles</td> |
|
<td>top_5</td> |
|
<td>top_10</td> |
|
<td>dnf</td> |
|
<td>finish</td> |
|
<td>start</td> |
|
<td>winnings</td> |
|
<td>season_rank</td> |
|
<td>team__s_</td> |
|
<td>avg_finish</td> |
|
</tr> |
|
<tr> |
|
<td>1995</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>24.0</td> |
|
<td>37.0</td> |
|
<td>5225</td> |
|
<td>75th</td> |
|
<td>stegell motorsports</td> |
|
<td>12.0</td> |
|
</tr> |
|
<tr> |
|
<td>1996</td> |
|
<td>14</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>6</td> |
|
<td>26.4</td> |
|
<td>25.1</td> |
|
<td>63865</td> |
|
<td>42nd</td> |
|
<td>stegell motorsports</td> |
|
<td>1.8857142857142857</td> |
|
</tr> |
|
<tr> |
|
<td>1997</td> |
|
<td>28</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>10</td> |
|
<td>27.1</td> |
|
<td>21.6</td> |
|
<td>196656</td> |
|
<td>23rd</td> |
|
<td>stegell motorsports</td> |
|
<td>0.9678571428571429</td> |
|
</tr> |
|
<tr> |
|
<td>1998</td> |
|
<td>31</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>0</td> |
|
<td>3</td> |
|
<td>5</td> |
|
<td>24.9</td> |
|
<td>25.5</td> |
|
<td>335163</td> |
|
<td>19th</td> |
|
<td>stegell motorsports</td> |
|
<td>0.8032258064516129</td> |
|
</tr> |
|
<tr> |
|
<td>1999</td> |
|
<td>25</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>1</td> |
|
<td>9</td> |
|
<td>25.8</td> |
|
<td>18.2</td> |
|
<td>243810</td> |
|
<td>24th</td> |
|
<td>curb - agajanian performance group</td> |
|
<td>1.032</td> |
|
</tr> |
|
<tr> |
|
<td>2000</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>35.0</td> |
|
<td>28.5</td> |
|
<td>15900</td> |
|
<td>90th</td> |
|
<td>alumni motorsports</td> |
|
<td>17.5</td> |
|
</tr> |
|
<tr> |
|
<td>2001</td> |
|
<td>33</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>6</td> |
|
<td>27.9</td> |
|
<td>32.7</td> |
|
<td>491977</td> |
|
<td>23rd</td> |
|
<td>hensley racing</td> |
|
<td>0.8454545454545455</td> |
|
</tr> |
|
<tr> |
|
<td>2002</td> |
|
<td>24</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>11</td> |
|
<td>27.0</td> |
|
<td>33.0</td> |
|
<td>288325</td> |
|
<td>29th</td> |
|
<td>hensley racing</td> |
|
<td>1.125</td> |
|
</tr> |
|
<tr> |
|
<td>2003</td> |
|
<td>5</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>35.8</td> |
|
<td>25.6</td> |
|
<td>68360</td> |
|
<td>85th</td> |
|
<td>jay robinson racing</td> |
|
<td>7.159999999999999</td> |
|
</tr> |
|
<tr> |
|
<td>2004</td> |
|
<td>9</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>6</td> |
|
<td>31.4</td> |
|
<td>37.2</td> |
|
<td>139685</td> |
|
<td>54th</td> |
|
<td>moy racing / jay robinson racing</td> |
|
<td>3.488888888888889</td> |
|
</tr> |
|
<tr> |
|
<td>2005</td> |
|
<td>7</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>7</td> |
|
<td>40.9</td> |
|
<td>32.6</td> |
|
<td>108921</td> |
|
<td>83rd</td> |
|
<td>jay robinson racing</td> |
|
<td>5.8428571428571425</td> |
|
</tr> |
|
<tr> |
|
<td>2006</td> |
|
<td>9</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>7</td> |
|
<td>38.9</td> |
|
<td>39.1</td> |
|
<td>151184</td> |
|
<td>70th</td> |
|
<td>jay robinson racing</td> |
|
<td>4.322222222222222</td> |
|
</tr> |
|
<tr> |
|
<td>2008</td> |
|
<td>1</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>43.0</td> |
|
<td>34.0</td> |
|
<td>15674</td> |
|
<td>149th</td> |
|
<td>jay robinson racing</td> |
|
<td>43.0</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the overall average finish is equal to 31.39, otherwise return FALSE.</div> |
|
<div class="content" id="step-2"> |
|
<table> |
|
<tr> |
|
<td>overall_avg_finish</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.690247694957372</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
|
|
</div> |
|
</div> |
|
<hr/> |
|
</body></html> |
|
|