Spaces:
Runtime error
Runtime error
<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> | |
<h1 class="pos-title">Plan-of-SQLs (Ours)</h1> | |
<hr> | |
<h3><span>Statement:</span> only one of the viral diseases has not been assigned to a family</h3> | |
<h3>Ground-truth:</span> FALSE</h3> | |
<h3>Input Table: viral disease</h3> | |
<div class="step"> | |
<div class="step"> | |
<div class="step-title">Step 1: Select rows where 'family' is 'unassigned'.</div> | |
<div id="step-1" class="content"> | |
<table> | |
<tr> | |
<td>family</td> | |
<td>baltimore_group</td> | |
<td>envelopment</td> | |
<td>virion_shape</td> | |
<td>replication_site</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">adenoviridae</span></td> | |
<td>group i</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">herpesviridae</span></td> | |
<td>group i</td> | |
<td>enveloped</td> | |
<td>complex</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">papillomaviridae</span></td> | |
<td>group i</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">polyomaviridae</span></td> | |
<td>group i</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">poxviridae</span></td> | |
<td>group i</td> | |
<td>enveloped</td> | |
<td>complex</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hepadnaviridae</span></td> | |
<td>group vii</td> | |
<td>enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">parvoviridae</span></td> | |
<td>group ii</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">astroviridae</span></td> | |
<td>group iv</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">caliciviridae</span></td> | |
<td>group iv</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">picornaviridae</span></td> | |
<td>group iv</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">coronaviridae</span></td> | |
<td>group iv</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">flaviviridae</span></td> | |
<td>group iv</td> | |
<td>enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">togaviridae</span></td> | |
<td>group iv</td> | |
<td>enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hepeviridae</span></td> | |
<td>group iv</td> | |
<td>enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">retroviridae</span></td> | |
<td>group vi</td> | |
<td>enveloped</td> | |
<td>icosahedral</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">orthomyxoviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>nucleus</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arenaviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bunyaviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">filoviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">paramyxoviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rhabdoviridae</span></td> | |
<td>group v</td> | |
<td>enveloped</td> | |
<td>helical , bullet shaped</td> | |
<td>cytoplasm</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">unassigned</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">group v</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">enveloped</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spherical</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nucleus</span></td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">reoviridae</span></td> | |
<td>group iii</td> | |
<td>non - enveloped</td> | |
<td>icosahedral</td> | |
<td>cytoplasm</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>family</td> | |
<td>baltimore_group</td> | |
<td>envelopment</td> | |
<td>virion_shape</td> | |
<td>replication_site</td> | |
</tr> | |
<tr> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">unassigned</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">group v</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">enveloped</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">spherical</span></td> | |
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">nucleus</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>TRUE</td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
<hr> | |
<div class="step"><h3><span class="false">Prediction: TRUE </span></h3> | |
<h3>Ground-truth:</span> FALSE</h3></div> | |
</body></html> | |