luulinh90s's picture
update
72d281f
raw
history blame
3.01 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; }
.sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
</style>
</head><body>
<hr>
<h3><span>Statement:</span> season 6.0 has q245 as its format</h3>
<h3>Input Table: none</h3>
<div class="step">
<table>
<tr><td>episode</td><td>season</td><td>format</td><td>title</td><td>original_airdate</td></tr><tr><td>217</td><td>1</td><td>h75</td><td>lost smurf</td><td>1988-09-10</td></tr><tr><td>218</td><td>2</td><td>h76</td><td>archives of evil</td><td>1988-09-10</td></tr><tr><td>219</td><td>3</td><td>q143</td><td>bigmouth 's roommate / bungling babysitters</td><td>1988-09-17</td></tr><tr><td>220</td><td>4</td><td>q144</td><td>clockwork 's powerplay / clumsy in command</td><td>1988-09-17</td></tr><tr><td>221</td><td>5</td><td>h77</td><td>don smurfo 's uninvited guests</td><td>1988-09-24</td></tr><tr><td>222</td><td>6</td><td>q145</td><td>denisa 's greedy doll / denisa 's slumber party</td><td>1988-09-24</td></tr><tr><td>223</td><td>7</td><td>q146</td><td>grandpa 's nemesis / grandpa 's walking stick</td><td>1988-10-01</td></tr><tr><td>224</td><td>8</td><td>h78</td><td>a house for nanny</td><td>1988-10-01</td></tr><tr><td>225</td><td>9</td><td>q147</td><td>it 's a smurfy life / land of lost and found</td><td>1988-10-08</td></tr><tr><td>226</td><td>10</td><td>h79</td><td>long live brainy</td><td>1988-10-08</td></tr><tr><td>227</td><td>11</td><td>h80</td><td>a maze of mirrors</td><td>1988-10-15</td></tr><tr><td>228</td><td>12</td><td>q148</td><td>memory melons / nanny 's way</td><td>1988-10-15</td></tr><tr><td>229</td><td>13</td><td>q149</td><td>pappy 's puppy / shutterbug smurfs</td><td>1988-10-22</td></tr><tr><td>230</td><td>14</td><td>q150</td><td>smoogle sings the blues / a smurf for denisa</td><td>1988-10-22</td></tr><tr><td>231</td><td>15</td><td>h81</td><td>smurf the presses</td><td>1988-10-29</td></tr><tr><td>232</td><td>16</td><td>h82</td><td>stealing grandpa 's thunder</td><td>1988-10-29</td></tr>
</table>
</div>
<h3>SQL Command:</h3>
<div class="sql-command">SELECT
CASE
WHEN format = 'q245' AND season = 6.0 THEN 'TRUE'
ELSE 'FALSE'
END
FROM table_sql;</div>
</body></html>