luulinh90s's picture
update
8873a5c
raw
history blame
9.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> spy vs spy is in the arcade genre with amstrad cpc</h3>
<h3>Input Table: beyond software</h3>
<div class="step">
<div class="step">
<div class="step-title">Step 1: Select rows where 'title' is 'spy vs spy'.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">goodness gracious</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kriegspiel</span></td>
<td>strategy</td>
<td>n / a</td>
<td>n / a</td>
<td>dragon 32</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">space station zebra</span></td>
<td>arcade</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">up periscope</span></td>
<td>strategy</td>
<td>n / a</td>
<td>n / a</td>
<td>dragon 32</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ankh</span></td>
<td>puzzle</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">aztec</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lords of midnight</span></td>
<td>graphic adventure</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1984-01-01</td>
<td>tape , disk</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mr robot</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">my chess ii</span></td>
<td>board game</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape , disk</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">psytron</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spellbound</span></td>
<td>arcade</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">spy vs spy</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arcade</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">c64</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zx spectrum</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">amstrad cpc</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1984-01-01</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tape</span></td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bounces</span></td>
<td>arcade</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">doomdark 's revenge</span></td>
<td>graphic adventure</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">psi warrior</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">shadowfire</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">shadowfire tuner</span></td>
<td>game editor</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sorderon 's shadow</span></td>
<td>graphic adventure</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">quake minus one</span></td>
<td>rts</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">superman : the game</span></td>
<td>arcade / strategy</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">enigma force</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dante 's inferno</span></td>
<td>arcade adventure</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">infodroid</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">romper room</span></td>
<td>educational</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
</table>
</div>
<hr>
<div class="step">
<div class="step-title">Step 2: Select rows where 'genre' is 'arcade'.</div>
<div id="step-0" class="content">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spy vs spy</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">arcade</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">c64</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zx spectrum</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">amstrad cpc</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1984-01-01</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tape</span></td>
</tr>
</table>
</div>
</div>
<hr>
<div class="step">
<div class="step-title">Step 3: Select rows where 'format' is 'amstrad cpc'.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td>spy vs spy</td>
<td>arcade</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
</table>
</div>
</div>
<hr>
<div class="step">
<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>
<div id="step-2" class="content">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
</table>
</div>
</div>
<hr>
<table>
<tr>
<td>verification_result</td>
</tr>
<tr>
<td>FALSE</td>
</tr>
</table>
</div>
</div>
<hr>
</body></html>