|
<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> |
|
<h1 class="pos-title">Plan-of-SQLs (Ours)</h1> |
|
<hr> |
|
<h3><span>Statement:</span> shane hall had placed top 5 more than he placed top 10</h3> |
|
<h3>Ground-truth:</span> FALSE</h3> |
|
<h3>Input Table: shane hall</h3> |
|
<div class="step"> |
|
<div class="step"> |
|
<div class="step-title">Step 1: Select rows where 'top_5' is greater than 'top_10'.</div> |
|
<div id="step-1" class="content"> |
|
<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>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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</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> |
|
</tr> |
|
</table> |
|
</div> |
|
<hr> |
|
<div class="step"> |
|
<div class="step-title">Step 2: Use a `CASE` statement to return TRUE if the number of rows is greater than 0, otherwise return FALSE.</div> |
|
<div id="step-0" class="content"> |
|
<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> |
|
</table> |
|
</div> |
|
</div> |
|
<hr> |
|
<div class="step"> |
|
<div class="step-title">Final output table:</div> |
|
<div id="step-1" class="content"> |
|
<table> |
|
<tr> |
|
<td>verification_result</td> |
|
</tr> |
|
<tr> |
|
<td>FALSE</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr> |
|
<div class="step"><h3><span class="true">Prediction: FALSE </span></h3> |
|
<h3>Ground-truth:</span> FALSE</h3></div> |
|
</body></html> |
|
|