Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-740.html203 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> susan sarandon was the winner and nominee in 2001</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: nickelodeon movies</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'year' is 2001.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>year</td>34<td>category</td>35<td>film</td>36<td>winner___nominee__s</td>37<td>result</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1997</span></td>41<td>favorite movie actress</td>42<td>harriet the spy</td>43<td>rosie o'donnell</td>44<td>nominated</td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999</span></td>48<td>favorite movie</td>49<td>the rugrats movie</td>50<td>n / a</td>51<td>won</td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2001</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">favorite voice from an animated movie</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rugrats in paris : the movie</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">susan sarandon</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won</span></td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004</span></td>62<td>favorite voice from an animated movie</td>63<td>rugrats go wild</td>64<td>bruce willis</td>65<td>nominated</td>66</tr>67<tr>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005</span></td>69<td>favorite movie actor</td>70<td>lemony snicket 's a series of unfortunate events</td>71<td>jim carrey</td>72<td>nominated</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>76<td>favorite movie actor</td>77<td>nacho libre</td>78<td>jack black</td>79<td>nominated</td>80</tr>81<tr>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>83<td>favorite movie actress</td>84<td>charlotte 's web</td>85<td>dakota fanning</td>86<td>won</td>87</tr>88<tr>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2012</span></td>90<td>favorite voice from an animated movie</td>91<td>rango</td>92<td>johnny depp</td>93<td>nominated</td>94</tr>95</table>96</div>97<hr>98<div class="step">99<div class="step-title">Step 2: Select rows where 'category' is 'favorite voice from an animated movie'.</div>100<div id="step-0" class="content">101<table>102<tr>103<td>year</td>104<td>category</td>105<td>film</td>106<td>winner___nominee__s</td>107<td>result</td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001</span></td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">favorite voice from an animated movie</span></td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rugrats in paris : the movie</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">susan sarandon</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won</span></td>115</tr>116</table>117</div>118</div>119<hr>120<div class="step">121<div class="step-title">Step 3: Select rows where 'film' is 'rugrats in paris</div>122<div id="step-1" class="content">123<table>124<tr>125<td>year</td>126<td>category</td>127<td>film</td>128<td>winner___nominee__s</td>129<td>result</td>130</tr>131<tr>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">favorite voice from an animated movie</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rugrats in paris : the movie</span></td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">susan sarandon</span></td>136<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won</span></td>137</tr>138</table>139</div>140</div>141<hr>142<div class="step">143<div class="step-title">Step 4: Select rows where 'winner___nominee__s' is 'susan sarandon'.</div>144<div id="step-2" class="content">145<table>146<tr>147<td>year</td>148<td>category</td>149<td>film</td>150<td>winner___nominee__s</td>151<td>result</td>152</tr>153<tr>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001</span></td>155<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">favorite voice from an animated movie</span></td>156<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rugrats in paris : the movie</span></td>157<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">susan sarandon</span></td>158<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">won</span></td>159</tr>160</table>161</div>162</div>163<hr>164<div class="step">165<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>166<div id="step-3" class="content">167<table>168<tr>169<td>year</td>170<td>category</td>171<td>film</td>172<td>winner___nominee__s</td>173<td>result</td>174</tr>175<tr>176<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2001</span></td>177<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">favorite voice from an animated movie</span></td>178<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rugrats in paris : the movie</span></td>179<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">susan sarandon</span></td>180<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">won</span></td>181</tr>182</table>183</div>184</div>185<hr>186<div class="step">187<div class="step-title">Final output table:</div>188<div id="step-4" class="content">189<table>190<tr>191<td>verification_result</td>192</tr>193<tr>194<td>TRUE</td>195</tr>196</table>197</div>198</div>199<hr>200<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>201<h3>Ground-truth:</span> TRUE</h3></div>202</body></html>203