Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-268.html238 linesDownload Raw Back to TP
1<html><head>2<style>3body { font-family: Arial, sans-serif; margin: 20px; }4h1 { text-align: center; }5.cot-title { color: blue; }6.pos-title { color: green; }7h2 { color: black; text-align: left; }8h3 { color: black; text-align: left; }9h4 { color: darkslategray; }10table { width: 100%; border-collapse: collapse; margin: 20px 0; }11table, th, td { border: 1px solid #ddd; padding: 8px; }12th { background-color: #f2f2f2; }13tr:nth-child(even) { background-color: #f9f9f9; }14.highlight { background-color: #ffffcc; }15.true { color: green; }16.false { color: red; }17.highlighted-cell { background-color: yellow; cursor: pointer; }18.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }19.step { display: block; }20</style>21</head><body>22<h1 class="pos-title">Plan-of-SQLs (Ours)</h1>23<hr>24<h3><span>Statement:</span> the perth wildcats and townsville crocodiles both have the same loss records for the season</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 2008 - 09 nbl season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'team' is 'perth wildcats' or 'townsville crocodiles'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>team</td>34<td>lost</td>35<td>last_5</td>36<td>streak</td>37<td>home</td>38<td>away</td>39<td>pts</td>40<td>won</td>41</tr>42<tr>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south dragons</span></td>44<td>8</td>45<td>4 - 1</td>46<td>won 2</td>47<td>13 - 2</td>48<td>9 - 6</td>49<td>110.25</td>50<td>73.33</td>51</tr>52<tr>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">melbourne tigers</span></td>54<td>10</td>55<td>3 - 2</td>56<td>lost 1</td>57<td>11 - 4</td>58<td>9 - 6</td>59<td>106.47</td>60<td>66.67</td>61</tr>62<tr>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">new zealand breakers</span></td>64<td>12</td>65<td>2 - 3</td>66<td>won 2</td>67<td>10 - 5</td>68<td>8 - 7</td>69<td>106.08</td>70<td>60.0</td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">perth wildcats</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 1</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won 2</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11 - 4</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6 - 9</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">102.06</span></td>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56.67</span></td>81</tr>82<tr>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">townsville crocodiles</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13</span></td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 1</span></td>86<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lost 1</span></td>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12 - 3</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5 - 10</span></td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">99.26</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56.67</span></td>91</tr>92<tr>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">adelaide 36ers</span></td>94<td>15</td>95<td>3 - 2</td>96<td>lost 1</td>97<td>12 - 3</td>98<td>3 - 12</td>99<td>100.92</td>100<td>50.0</td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">wollongong hawks</span></td>104<td>19</td>105<td>2 - 3</td>106<td>lost 1</td>107<td>9 - 6</td>108<td>2 - 13</td>109<td>95.03</td>110<td>36.67</td>111</tr>112<tr>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sydney spirit</span></td>114<td>19</td>115<td>0 - 5</td>116<td>lost 8</td>117<td>9 - 6</td>118<td>2 - 13</td>119<td>94.51</td>120<td>36.67</td>121</tr>122<tr>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">cairns taipans</span></td>124<td>19</td>125<td>1 - 4</td>126<td>lost 3</td>127<td>5 - 10</td>128<td>6 - 9</td>129<td>93.57</td>130<td>36.67</td>131</tr>132<tr>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gold coast blaze</span></td>134<td>22</td>135<td>3 - 2</td>136<td>won 3</td>137<td>6 - 9</td>138<td>2 - 13</td>139<td>93.45</td>140<td>26.67</td>141</tr>142</table>143</div>144<hr>145<div class="step">146<div class="step-title">Step 2: Select rows where 'lost' is the same for both teams.</div>147<div id="step-0" class="content">148<table>149<tr>150<td>team</td>151<td>lost</td>152<td>last_5</td>153<td>streak</td>154<td>home</td>155<td>away</td>156<td>pts</td>157<td>won</td>158</tr>159<tr>160<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">perth wildcats</span></td>161<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">13</span></td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 1</span></td>163<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won 2</span></td>164<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11 - 4</span></td>165<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6 - 9</span></td>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">102.06</span></td>167<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56.67</span></td>168</tr>169<tr>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">townsville crocodiles</span></td>171<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">13</span></td>172<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 1</span></td>173<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lost 1</span></td>174<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12 - 3</span></td>175<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5 - 10</span></td>176<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">99.26</span></td>177<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56.67</span></td>178</tr>179</table>180</div>181</div>182<hr>183<div class="step">184<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>185<div id="step-1" class="content">186<table>187<tr>188<td>team</td>189<td>lost</td>190<td>last_5</td>191<td>streak</td>192<td>home</td>193<td>away</td>194<td>pts</td>195<td>won</td>196</tr>197<tr>198<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">perth wildcats</span></td>199<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">13</span></td>200<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4 - 1</span></td>201<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">won 2</span></td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">11 - 4</span></td>203<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6 - 9</span></td>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">102.06</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">56.67</span></td>206</tr>207<tr>208<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">townsville crocodiles</span></td>209<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">13</span></td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4 - 1</span></td>211<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">lost 1</span></td>212<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12 - 3</span></td>213<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5 - 10</span></td>214<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">99.26</span></td>215<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">56.67</span></td>216</tr>217</table>218</div>219</div>220<hr>221<div class="step">222<div class="step-title">Final output table:</div>223<div id="step-2" class="content">224<table>225<tr>226<td>verification_result</td>227</tr>228<tr>229<td>TRUE</td>230</tr>231</table>232</div>233</div>234<hr>235<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>236<h3>Ground-truth:</span> TRUE</h3></div>237</body></html>238