luulinh90s's picture
add materials
fa53be0
raw
history blame
8.09 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> porto was 1st in the liga for the 2003 - 2004 season , followed by benfica</h3>
<h3>Input Table: 2004 - 05 primeira liga</h3>
<div class="step">
<div class="step">
<div class="step-title">Step 1: Select rows where 'c_2003___2004_season' is '1st in the liga'.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>club</td>
<td>head_coach</td>
<td>city</td>
<td>stadium</td>
<td>c_2003___2004_season</td>
</tr>
<tr>
<td>académica de coimbra</td>
<td>joão carlos pereira</td>
<td>coimbra</td>
<td>estádio cidade de coimbra</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13th in the liga</span></td>
</tr>
<tr>
<td>belenenses</td>
<td>carlos carvalhal</td>
<td>lisbon</td>
<td>estádio do restelo</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">15th in the liga</span></td>
</tr>
<tr>
<td>benfica</td>
<td>giovanni trapattoni</td>
<td>lisbon</td>
<td>estádio da luz</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2nd in the liga</span></td>
</tr>
<tr>
<td>boavista</td>
<td>jaime pacheco</td>
<td>porto</td>
<td>estádio do bessa - século xxi</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8th in the liga</span></td>
</tr>
<tr>
<td>braga</td>
<td>jesualdo ferreira</td>
<td>braga</td>
<td>estádio municipal de braga - axa</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5th in the liga</span></td>
</tr>
<tr>
<td>estoril - praia</td>
<td>litos</td>
<td>estoril</td>
<td>estádio antónio coimbra da mota</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1st in the liga de honra</span></td>
</tr>
<tr>
<td>gil vicente</td>
<td>luís campos</td>
<td>barcelos</td>
<td>estádio cidade de barcelos</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12th in the liga</span></td>
</tr>
<tr>
<td>união de leiria</td>
<td>vítor pontes</td>
<td>leiria</td>
<td>estádio dr magalhães pessoa</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10th in the liga</span></td>
</tr>
<tr>
<td>penafiel</td>
<td>manuel fernandes</td>
<td>penafiel</td>
<td>estádio municipal 25 de abril</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3rd in the liga de honra</span></td>
</tr>
<tr>
<td>marítimo</td>
<td>manuel cajuda</td>
<td>funchal</td>
<td>estádio dos barreiros</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6th in the liga</span></td>
</tr>
<tr>
<td>nacional</td>
<td>casemiro mior</td>
<td>funchal</td>
<td>estádio da madeira</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4th in the liga</span></td>
</tr>
<tr>
<td>beira - mar</td>
<td>mick wadsworth</td>
<td>aveiro</td>
<td>estádio municipal de aveiro</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11th in the liga</span></td>
</tr>
<tr>
<td>moreirense</td>
<td>vítor oliveira</td>
<td>guimarães</td>
<td>estádio do moreirense</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9th in the liga</span></td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">luigi delneri</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">estádio do dragão</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1st in the liga</span></td>
</tr>
<tr>
<td>sporting cp</td>
<td>josé peseiro</td>
<td>lisbon</td>
<td>estádio josé alvalade - século xxi</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3rd in the liga</span></td>
</tr>
<tr>
<td>rio ave</td>
<td>carlos brito</td>
<td>vila do conde</td>
<td>estádio dos arcos</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7th in the liga</span></td>
</tr>
<tr>
<td>vitória de guimarães</td>
<td>manuel machado</td>
<td>guimarães</td>
<td>estádio d afonso henriques</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14th in the liga</span></td>
</tr>
<tr>
<td>vitória de setúbal</td>
<td>josé couceiro</td>
<td>setúbal</td>
<td>estádio do bonfim</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2nd in the liga de honra</span></td>
</tr>
</table>
</div>
<hr>
<div class="step">
<div class="step-title">Step 2: Select rows where 'club' is 'porto' or 'benfica'.</div>
<div id="step-0" class="content">
<table>
<tr>
<td>club</td>
<td>head_coach</td>
<td>city</td>
<td>stadium</td>
<td>c_2003___2004_season</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">luigi delneri</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">estádio do dragão</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1st in the liga</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 2, otherwise return FALSE.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>club</td>
<td>head_coach</td>
<td>city</td>
<td>stadium</td>
<td>c_2003___2004_season</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">luigi delneri</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">porto</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">estádio do dragão</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1st in the liga</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>