Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1052.html264 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> on 7 may 1960 , a crowd of 9000 watched the away team , richmond , score 3.8 (26)</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 1960 vfl season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'date' is '1960-05-07'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>home_team</td>34<td>home_team_score</td>35<td>away_team</td>36<td>away_team_score</td>37<td>venue</td>38<td>crowd</td>39<td>date</td>40</tr>41<tr>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north melbourne</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.12 (42)</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3.8 (26)</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arden street oval</span></td>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9000</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>49</tr>50<tr>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">melbourne</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">16.14 (110)</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south melbourne</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6.10 (46)</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mcg</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">23135</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>58</tr>59<tr>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fitzroy</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.11 (41)</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">geelong</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8.7 (55)</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brunswick street oval</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13802</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>67</tr>68<tr>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hawthorn</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6.9 (45)</span></td>71<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">footscray</span></td>72<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6.17 (53)</span></td>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">glenferrie oval</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">16000</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>76</tr>77<tr>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">essendon</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11.10 (76)</span></td>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">collingwood</span></td>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11.8 (74)</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">windy hill</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30000</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">st kilda</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.11 (41)</span></td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carlton</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7.3 (45)</span></td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">junction oval</span></td>92<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18700</span></td>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>94</tr>95</table>96</div>97<hr>98<div class="step">99<div class="step-title">Step 2: Select rows where 'crowd' is 9000.</div>100<div id="step-0" class="content">101<table>102<tr>103<td>home_team</td>104<td>home_team_score</td>105<td>away_team</td>106<td>away_team_score</td>107<td>venue</td>108<td>crowd</td>109<td>date</td>110</tr>111<tr>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north melbourne</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.12 (42)</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3.8 (26)</span></td>116<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arden street oval</span></td>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">9000</span></td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1960-05-07</span></td>119</tr>120<tr>121<td>melbourne</td>122<td>16.14 (110)</td>123<td>south melbourne</td>124<td>6.10 (46)</td>125<td>mcg</td>126<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">23135</span></td>127<td>1960-05-07</td>128</tr>129<tr>130<td>fitzroy</td>131<td>5.11 (41)</td>132<td>geelong</td>133<td>8.7 (55)</td>134<td>brunswick street oval</td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13802</span></td>136<td>1960-05-07</td>137</tr>138<tr>139<td>hawthorn</td>140<td>6.9 (45)</td>141<td>footscray</td>142<td>6.17 (53)</td>143<td>glenferrie oval</td>144<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">16000</span></td>145<td>1960-05-07</td>146</tr>147<tr>148<td>essendon</td>149<td>11.10 (76)</td>150<td>collingwood</td>151<td>11.8 (74)</td>152<td>windy hill</td>153<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30000</span></td>154<td>1960-05-07</td>155</tr>156<tr>157<td>st kilda</td>158<td>5.11 (41)</td>159<td>carlton</td>160<td>7.3 (45)</td>161<td>junction oval</td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18700</span></td>163<td>1960-05-07</td>164</tr>165</table>166</div>167</div>168<hr>169<div class="step">170<div class="step-title">Step 3: Select rows where 'away_team' is 'richmond'.</div>171<div id="step-1" class="content">172<table>173<tr>174<td>home_team</td>175<td>home_team_score</td>176<td>away_team</td>177<td>away_team_score</td>178<td>venue</td>179<td>crowd</td>180<td>date</td>181</tr>182<tr>183<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north melbourne</span></td>184<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.12 (42)</span></td>185<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">richmond</span></td>186<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3.8 (26)</span></td>187<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arden street oval</span></td>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9000</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1960-05-07</span></td>190</tr>191</table>192</div>193</div>194<hr>195<div class="step">196<div class="step-title">Step 4: Select rows where 'away_team_score' is '3.8 (26)'.</div>197<div id="step-2" class="content">198<table>199<tr>200<td>home_team</td>201<td>home_team_score</td>202<td>away_team</td>203<td>away_team_score</td>204<td>venue</td>205<td>crowd</td>206<td>date</td>207</tr>208<tr>209<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north melbourne</span></td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5.12 (42)</span></td>211<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>212<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">3.8 (26)</span></td>213<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">arden street oval</span></td>214<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9000</span></td>215<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1960-05-07</span></td>216</tr>217</table>218</div>219</div>220<hr>221<div class="step">222<div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>223<div id="step-3" class="content">224<table>225<tr>226<td>home_team</td>227<td>home_team_score</td>228<td>away_team</td>229<td>away_team_score</td>230<td>venue</td>231<td>crowd</td>232<td>date</td>233</tr>234<tr>235<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">north melbourne</span></td>236<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5.12 (42)</span></td>237<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">richmond</span></td>238<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">3.8 (26)</span></td>239<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">arden street oval</span></td>240<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">9000</span></td>241<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1960-05-07</span></td>242</tr>243</table>244</div>245</div>246<hr>247<div class="step">248<div class="step-title">Final output table:</div>249<div id="step-4" class="content">250<table>251<tr>252<td>verification_result</td>253</tr>254<tr>255<td>TRUE</td>256</tr>257</table>258</div>259</div>260<hr>261<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>262<h3>Ground-truth:</span> TRUE</h3></div>263</body></html>264