|
<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> sergio luis henao was given the general classification award and the points classification award</h3> |
|
<h3>Input Table: 2010 vuelta a colombia</h3> |
|
<div class="step"> |
|
<div class="step"> |
|
<div class="step-title">Step 1: Select rows where 'general_classification' is 'sergio luis henao'.</div> |
|
<div id="step-1" class="content"> |
|
<table> |
|
<tr> |
|
<td>stage</td> |
|
<td>winner</td> |
|
<td>general_classification</td> |
|
<td>points_classification</td> |
|
<td>mountains_classification</td> |
|
<td>sprints_classification</td> |
|
<td>team_classification</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ind ant - idea - fla - lot de medellín</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">no award</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">no award</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">no award</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ind ant - idea - fla - lot de medellín</span></td> |
|
</tr> |
|
<tr> |
|
<td>2</td> |
|
<td>jaime castañeda</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>jaime castañeda</td> |
|
<td>jaime vergara</td> |
|
<td>camilo gómez</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td>3</td> |
|
<td>jairo pérez</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jairo pérez</span></td> |
|
<td>jaime castañeda</td> |
|
<td>jaime vergara</td> |
|
<td>julian lopez</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td>4</td> |
|
<td>sergio luis henao</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>óscar sevilla</td> |
|
<td>jaime vergara</td> |
|
<td>julian lopez</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td>5</td> |
|
<td>fabio duarte</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>óscar sevilla</td> |
|
<td>jaime vergara</td> |
|
<td>julian lopez</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td>6</td> |
|
<td>luis felipe laverde</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>óscar sevilla</td> |
|
<td>jaime vergara</td> |
|
<td>jaime suaza</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td>7</td> |
|
<td>freddy gonzalez</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>óscar sevilla</td> |
|
<td>jaime vergara</td> |
|
<td>camilo gómez</td> |
|
<td>col es pasion café de colombia 472</td> |
|
</tr> |
|
<tr> |
|
<td>8</td> |
|
<td>diego calderón</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">óscar sevilla</span></td> |
|
<td>óscar sevilla</td> |
|
<td>oscar solis</td> |
|
<td>juan alejandro garcia</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ind ant - idea - fla - lot de medellín</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jaime vergara</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fabio duarte</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">col es pasion café de colombia 472</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">javier gonzalez</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
<hr> |
|
<div class="step"> |
|
<div class="step-title">Step 2: Select rows where 'points_classification' is 'sergio luis henao'.</div> |
|
<div id="step-0" class="content"> |
|
<table> |
|
<tr> |
|
<td>stage</td> |
|
<td>winner</td> |
|
<td>general_classification</td> |
|
<td>points_classification</td> |
|
<td>mountains_classification</td> |
|
<td>sprints_classification</td> |
|
<td>team_classification</td> |
|
</tr> |
|
<tr> |
|
<td>1</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
<td>sergio luis henao</td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">no award</span></td> |
|
<td>no award</td> |
|
<td>no award</td> |
|
<td>ind ant - idea - fla - lot de medellín</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ind ant - idea - fla - lot de medellín</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jaime vergara</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fabio duarte</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">col es pasion café de colombia 472</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">javier gonzalez</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">epm - une</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr> |
|
<div class="step"> |
|
<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div> |
|
<div id="step-1" class="content"> |
|
<table> |
|
<tr> |
|
<td>stage</td> |
|
<td>winner</td> |
|
<td>general_classification</td> |
|
<td>points_classification</td> |
|
<td>mountains_classification</td> |
|
<td>sprints_classification</td> |
|
<td>team_classification</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">9</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ind ant - idea - fla - lot de medellín</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">10</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">11</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">jaime vergara</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">epm - une</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fabio duarte</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">oscar solis</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">col es pasion café de colombia 472</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">13</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">javier gonzalez</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sergio luis henao</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">josé rujano</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">juan alejandro garcia</span></td> |
|
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">epm - une</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr> |
|
<div class="step"> |
|
<div class="step-title">Final output table:</div> |
|
<div id="step-2" class="content"> |
|
<table> |
|
<tr> |
|
<td>verification_result</td> |
|
</tr> |
|
<tr> |
|
<td>FALSE</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr> |
|
<h3>Prediction:</span> FALSE</h3> |
|
</body></html> |
|
|