Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-19.html272 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> wrestling is the sport with the latest date in 2007</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: iowa corn cy - hawk series</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'sport' is 'wrestling'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>date</td>34<td>site</td>35<td>sport</td>36<td>winning_team</td>37<td>series</td>38</tr>39<tr>40<td>2007-09-04</td>41<td>cedar rapids</td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">m golf</span></td>43<td>iowa state</td>44<td>iowa state 2 - 0</td>45</tr>46<tr>47<td>2007-09-08</td>48<td>des moines</td>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">volleyball</span></td>50<td>iowa state</td>51<td>iowa state 4 - 0</td>52</tr>53<tr>54<td>2007-09-09</td>55<td>iowa city</td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w soccer</span></td>57<td>tie</td>58<td>iowa state 5 - 1</td>59</tr>60<tr>61<td>2007-09-15</td>62<td>ames</td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">football</span></td>64<td>iowa state</td>65<td>iowa state 8 - 1</td>66</tr>67<tr>68<td>2007-11-10</td>69<td>peoria</td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">m cross country</span></td>71<td>iowa state</td>72<td>iowa state 10 - 1</td>73</tr>74<tr>75<td>2007-11-10</td>76<td>peoria</td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w cross country</span></td>78<td>iowa</td>79<td>iowa state 10 - 3</td>80</tr>81<tr>82<td>2007-12-05</td>83<td>ames</td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w basketball</span></td>85<td>iowa state</td>86<td>iowa state 12 - 3</td>87</tr>88<tr>89<td>2007-12-07</td>90<td>ames</td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w swimming</span></td>92<td>iowa state</td>93<td>iowa state 14 - 3</td>94</tr>95<tr>96<td>2007-12-08</td>97<td>ames</td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">m basketball</span></td>99<td>iowa state</td>100<td>iowa state 16 - 3</td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007-12-09</span></td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ames</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">wrestling</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa state 16 - 5</span></td>108</tr>109<tr>110<td>2008-02-22</td>111<td>ames</td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w gymnastics</span></td>113<td>iowa state</td>114<td>iowa state 18 - 5</td>115</tr>116<tr>117<td>2008-03-07</td>118<td>iowa city</td>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">w gymnastics</span></td>120<td>iowa</td>121<td>iowa state 18 - 7</td>122</tr>123<tr>124<td>2008-04-01</td>125<td>ames</td>126<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">softball</span></td>127<td>iowa</td>128<td>iowa state 18 - 9</td>129</tr>130</table>131</div>132<hr>133<div class="step">134<div class="step-title">Step 2: Extract the numerical year from the 'date' column to add column 'year' to existing table.</div>135<div id="step-0" class="content">136<table>137<tr>138<td>date</td>139<td>site</td>140<td>sport</td>141<td>winning_team</td>142<td>series</td>143</tr>144<tr>145<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-12-09</span></td>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ames</span></td>147<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">wrestling</span></td>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa</span></td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa state 16 - 5</span></td>150</tr>151</table>152</div>153</div>154<hr>155<div class="step">156<div class="step-title">Step 3: Select rows where 'year' is 2007.</div>157<div id="step-1" class="content">158<table>159<tr>160<td>date</td>161<td>site</td>162<td>sport</td>163<td>winning_team</td>164<td>series</td>165<td>year</td>166</tr>167<tr>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007-12-09</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ames</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">wrestling</span></td>171<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa</span></td>172<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa state 16 - 5</span></td>173<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007</span></td>174</tr>175</table>176</div>177</div>178<hr>179<div class="step">180<div class="step-title">Step 4: Cast to DATE and order the table by 'date' in descending order and select the first row.</div>181<div id="step-2" class="content">182<table>183<tr>184<td>date</td>185<td>site</td>186<td>sport</td>187<td>winning_team</td>188<td>series</td>189<td>year</td>190</tr>191<tr>192<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-12-09</span></td>193<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ames</span></td>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">wrestling</span></td>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa</span></td>196<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa state 16 - 5</span></td>197<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007</span></td>198</tr>199</table>200</div>201</div>202<hr>203<div class="step">204<div class="step-title">Step 5: Select rows where 'sport' is 'wrestling' and 'date' is the same as the date in the previous step.</div>205<div id="step-3" class="content">206<table>207<tr>208<td>date</td>209<td>site</td>210<td>sport</td>211<td>winning_team</td>212<td>series</td>213<td>year</td>214<td>formatted_date</td>215</tr>216<tr>217<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-12-09</span></td>218<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ames</span></td>219<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">wrestling</span></td>220<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa</span></td>221<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iowa state 16 - 5</span></td>222<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>223<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>224</tr>225</table>226</div>227</div>228<hr>229<div class="step">230<div class="step-title">Step 6: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>231<div id="step-4" class="content">232<table>233<tr>234<td>date</td>235<td>site</td>236<td>sport</td>237<td>winning_team</td>238<td>series</td>239<td>year</td>240<td>formatted_date</td>241</tr>242<tr>243<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-12-09</span></td>244<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ames</span></td>245<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">wrestling</span></td>246<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa</span></td>247<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">iowa state 16 - 5</span></td>248<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007</span></td>249<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007</span></td>250</tr>251</table>252</div>253</div>254<hr>255<div class="step">256<div class="step-title">Final output table:</div>257<div id="step-5" class="content">258<table>259<tr>260<td>verification_result</td>261</tr>262<tr>263<td>TRUE</td>264</tr>265</table>266</div>267</div>268<hr>269<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>270<h3>Ground-truth:</span> TRUE</h3></div>271</body></html>272