|
<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> season 3 of dexter began airing after october of 2008</h3> |
|
<h3>Input Table: dexter (season 3)</h3> |
|
<div class="step"> |
|
<div class="step"> |
|
<div class="step-title">Step 1: Select rows where 'original_air_date' is after October 2008.</div> |
|
<div class="content" id="step-1"> |
|
<table> |
|
<tr> |
|
<td>no_in_series</td> |
|
<td>no_in_season</td> |
|
<td>title</td> |
|
<td>directed_by</td> |
|
<td>written_by</td> |
|
<td>original_air_date</td> |
|
<td>us_viewers__millions_</td> |
|
</tr> |
|
<tr> |
|
<td>25</td> |
|
<td>1</td> |
|
<td>our father</td> |
|
<td>keith gordon</td> |
|
<td>clyde phillips</td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-09-28</span></td> |
|
<td>n / a</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</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">finding freebo</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">melissa rosenberg</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-05</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.79</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</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">the lion sleeps tonight</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">john dahl</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scott buck</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-12</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<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">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">all in the family</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">keith gordon</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">adam e fierro</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-19</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.86</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29</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">turning biminese</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tim schlattmann</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-26</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</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">sã se puede</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ernest dickerson</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">charles h eglee</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-02</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<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">7</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">easy as pie</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">steve shill</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lauren gussis</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-09</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the damage a man can do</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scott buck</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-16</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</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">go your own way</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">john dahl</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tim schlattmann</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-30</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35</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">i had a dream</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">charles h eglee and lauren gussis</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-12-07</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">n / a</span></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 or equal to 1, otherwise return FALSE.</div> |
|
<div class="content" id="step-0"> |
|
<table> |
|
<tr> |
|
<td>no_in_series</td> |
|
<td>no_in_season</td> |
|
<td>title</td> |
|
<td>directed_by</td> |
|
<td>written_by</td> |
|
<td>original_air_date</td> |
|
<td>us_viewers__millions_</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</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:#90EE90;" title="Used in transformation">finding freebo</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">melissa rosenberg</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-05</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0.79</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">the lion sleeps tonight</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">john dahl</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">scott buck</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-12</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">all in the family</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">keith gordon</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">adam e fierro</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-19</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0.86</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29</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:#90EE90;" title="Used in transformation">turning biminese</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tim schlattmann</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-10-26</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">sã se puede</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">ernest dickerson</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">charles h eglee</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-02</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</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:#90EE90;" title="Used in transformation">easy as pie</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">steve shill</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">lauren gussis</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-09</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">8</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">the damage a man can do</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">scott buck</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-16</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">10</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">go your own way</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">john dahl</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tim schlattmann</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-11-30</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">11</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">i had a dream</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">marcos siega</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">charles h eglee and lauren gussis</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-12-07</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">n / a</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
|
|
</div> |
|
</div> |
|
<hr/> |
|
</body></html> |
|
|