luulinh90s's picture
update
3bed294
raw
history blame
24.6 kB
<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> thirteen is the only season listed</h3>
<h3>Input Table: made (tv series)</h3>
<div class="step">
<div class="step">
<div class="step-title">Step 1: Select rows where 'season' is 13.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>season</td>
<td>episode</td>
<td>episode_summary</td>
<td>premier_date</td>
<td>external_link</td>
<td>coach</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:yellow;">1</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">cara is made into an actress</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-18</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nikki deloach</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:yellow;">2</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">felicia is made into a rapper</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-19</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">killer mike | - |</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:yellow;">3</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rachel is made into a makeup mogul</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-20</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nikki robinson</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:yellow;">4</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">megan is made into a model</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-22</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">whitney thompson</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:yellow;">5</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rita is made into an actress</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-25</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">amanda seales</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:yellow;">6</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">aly is made into a roller derby girl</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-25</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tracy disco akers</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:yellow;">7</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dana is made into having her own show</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-26</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lashan browning</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:yellow;">8</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">amber is made into a recording artist</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-06-29</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">abesi manyando</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:yellow;">9</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">chris is made into a celebrity assistant</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-09</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bj coleman</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:yellow;">10</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">shane is made into a tough mudder</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-10</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">chris</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:yellow;">11</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">shambre is made into a gogo dancer</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-11</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">katie kansas</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:yellow;">12</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richard is made into a drag queen</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-12</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">manila luzon</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:yellow;">13</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ashley is made into a circus performer</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-15</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rebecca star</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:yellow;">14</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">emilly and jeanette are made into actresses</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-10-17</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brian patacca</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:yellow;">15</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">maeve is made into a pageant queen</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012-11-03</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gina cerilli , elena laquatra</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 equal to 1, otherwise return FALSE.</div>
<div id="step-0" class="content">
<table>
<tr>
<td>season</td>
<td>episode</td>
<td>episode_summary</td>
<td>premier_date</td>
<td>external_link</td>
<td>coach</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;">1</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">cara is made into an actress</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-18</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">nikki deloach</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;">2</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">felicia is made into a rapper</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-19</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">killer mike | - |</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;">3</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rachel is made into a makeup mogul</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-20</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">nikki robinson</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;">4</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">megan is made into a model</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-22</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">whitney thompson</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;">5</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rita is made into an actress</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-25</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">amanda seales</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;">6</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">aly is made into a roller derby girl</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-25</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">tracy disco akers</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;">7</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">dana is made into having her own show</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-26</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">lashan browning</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;">8</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">amber is made into a recording artist</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-06-29</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">abesi manyando</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;">9</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">chris is made into a celebrity assistant</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-09</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bj coleman</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;">10</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">shane is made into a tough mudder</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-10</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">chris</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;">11</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">shambre is made into a gogo dancer</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-11</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">katie kansas</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;">12</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">richard is made into a drag queen</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-12</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">manila luzon</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;">13</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ashley is made into a circus performer</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-15</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rebecca star</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;">14</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">emilly and jeanette are made into actresses</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-10-17</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">brian patacca</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;">15</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">maeve is made into a pageant queen</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2012-11-03</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">full episode</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">gina cerilli , elena laquatra</span></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>
<h3>Prediction:</span> FALSE</h3>
</body></html>