Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1525.html219 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> carlton scored 20.7 when they played richmond at princes park</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 1969 vfl season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'home_team' is 'carlton'.</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;">geelong</span></td>43<td>16.14 (110)</td>44<td>hawthorn</td>45<td>14.11 (95)</td>46<td>kardinia park</td>47<td>31569</td>48<td>1969-08-23</td>49</tr>50<tr>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">collingwood</span></td>52<td>19.15 (129)</td>53<td>south melbourne</td>54<td>6.22 (58)</td>55<td>victoria park</td>56<td>19428</td>57<td>1969-08-23</td>58</tr>59<tr>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">carlton</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">20.7 (127)</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24.12 (156)</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">princes park</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27657</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1969-08-23</span></td>67</tr>68<tr>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">st kilda</span></td>70<td>21.18 (144)</td>71<td>north melbourne</td>72<td>8.10 (58)</td>73<td>moorabbin oval</td>74<td>11109</td>75<td>1969-08-23</td>76</tr>77<tr>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">melbourne</span></td>79<td>14.13 (97)</td>80<td>fitzroy</td>81<td>14.15 (99)</td>82<td>mcg</td>83<td>17790</td>84<td>1969-08-23</td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">footscray</span></td>88<td>14.10 (94)</td>89<td>essendon</td>90<td>12.10 (82)</td>91<td>western oval</td>92<td>16043</td>93<td>1969-08-23</td>94</tr>95</table>96</div>97<hr>98<div class="step">99<div class="step-title">Step 2: Select rows where 'away_team' is 'richmond'.</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;">carlton</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">20.7 (127)</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">richmond</span></td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24.12 (156)</span></td>116<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">princes park</span></td>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27657</span></td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1969-08-23</span></td>119</tr>120</table>121</div>122</div>123<hr>124<div class="step">125<div class="step-title">Step 3: Select rows where 'venue' is 'princes park'.</div>126<div id="step-1" class="content">127<table>128<tr>129<td>home_team</td>130<td>home_team_score</td>131<td>away_team</td>132<td>away_team_score</td>133<td>venue</td>134<td>crowd</td>135<td>date</td>136</tr>137<tr>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carlton</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">20.7 (127)</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24.12 (156)</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">princes park</span></td>143<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27657</span></td>144<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1969-08-23</span></td>145</tr>146</table>147</div>148</div>149<hr>150<div class="step">151<div class="step-title">Step 4: Select rows where 'home_team_score' is '20.7 (127)'.</div>152<div id="step-2" class="content">153<table>154<tr>155<td>home_team</td>156<td>home_team_score</td>157<td>away_team</td>158<td>away_team_score</td>159<td>venue</td>160<td>crowd</td>161<td>date</td>162</tr>163<tr>164<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carlton</span></td>165<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">20.7 (127)</span></td>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">richmond</span></td>167<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24.12 (156)</span></td>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">princes park</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27657</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1969-08-23</span></td>171</tr>172</table>173</div>174</div>175<hr>176<div class="step">177<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>178<div id="step-3" class="content">179<table>180<tr>181<td>home_team</td>182<td>home_team_score</td>183<td>away_team</td>184<td>away_team_score</td>185<td>venue</td>186<td>crowd</td>187<td>date</td>188</tr>189<tr>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">carlton</span></td>191<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">20.7 (127)</span></td>192<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">richmond</span></td>193<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">24.12 (156)</span></td>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">princes park</span></td>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">27657</span></td>196<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1969-08-23</span></td>197</tr>198</table>199</div>200</div>201<hr>202<div class="step">203<div class="step-title">Final output table:</div>204<div id="step-4" class="content">205<table>206<tr>207<td>verification_result</td>208</tr>209<tr>210<td>TRUE</td>211</tr>212</table>213</div>214</div>215<hr>216<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>217<h3>Ground-truth:</span> TRUE</h3></div>218</body></html>219