Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-600.html196 linesDownload Raw Back to FP
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> multiple people were prison escapists and each left the cube alive</h3>25<h3>Ground-truth:</span> FALSE</h3>26<h3>Input Table: cube (film series)</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'prison_connection' is not null.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>name</td>34<td>occupation</td>35<td>gender</td>36<td>prison_connection</td>37<td>played_by</td>38<td>status</td>39</tr>40<tr>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kazan</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">autistic savant</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">male</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kazan prison (russia)</span></td>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">andrew miller</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">alive after exiting the cube</span></td>47</tr>48<tr>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">david worth</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">architect</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">male</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">leavenworth prison (usa)</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">david hewlett</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>55</tr>56<tr>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">quentin</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">police officer</span></td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">male</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">san quentin state prison (usa)</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">maurice dean wint</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>63</tr>64<tr>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">joan leaven</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mathematics student</span></td>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">female</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">leavenworth prison (usa)</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nicole de boer</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dr helen holloway</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">free clinic doctor</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">female</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">holloway women 's prison (uk)</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nicky guadagni</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>79</tr>80<tr>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rennes</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">prison escapist</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">male</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">centre pãnitentiaire de rennes (france)</span></td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">wayne robson</span></td>86<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>87</tr>88</table>89</div>90<hr>91<div class="step">92<div class="step-title">Step 2: Select rows where 'status' is 'alive after exiting the cube'.</div>93<div id="step-0" class="content">94<table>95<tr>96<td>name</td>97<td>occupation</td>98<td>gender</td>99<td>prison_connection</td>100<td>played_by</td>101<td>status</td>102</tr>103<tr>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kazan</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">autistic savant</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">male</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kazan prison (russia)</span></td>108<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">andrew miller</span></td>109<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">alive after exiting the cube</span></td>110</tr>111<tr>112<td>david worth</td>113<td>architect</td>114<td>male</td>115<td>leavenworth prison (usa)</td>116<td>david hewlett</td>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>118</tr>119<tr>120<td>quentin</td>121<td>police officer</td>122<td>male</td>123<td>san quentin state prison (usa)</td>124<td>maurice dean wint</td>125<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>126</tr>127<tr>128<td>joan leaven</td>129<td>mathematics student</td>130<td>female</td>131<td>leavenworth prison (usa)</td>132<td>nicole de boer</td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>134</tr>135<tr>136<td>dr helen holloway</td>137<td>free clinic doctor</td>138<td>female</td>139<td>holloway women 's prison (uk)</td>140<td>nicky guadagni</td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>142</tr>143<tr>144<td>rennes</td>145<td>prison escapist</td>146<td>male</td>147<td>centre pãnitentiaire de rennes (france)</td>148<td>wayne robson</td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dead</span></td>150</tr>151</table>152</div>153</div>154<hr>155<div class="step">156<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to the number of rows in the previous step, otherwise return FALSE.</div>157<div id="step-1" class="content">158<table>159<tr>160<td>name</td>161<td>occupation</td>162<td>gender</td>163<td>prison_connection</td>164<td>played_by</td>165<td>status</td>166</tr>167<tr>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kazan</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">autistic savant</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">male</span></td>171<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kazan prison (russia)</span></td>172<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">andrew miller</span></td>173<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">alive after exiting the cube</span></td>174</tr>175</table>176</div>177</div>178<hr>179<div class="step">180<div class="step-title">Final output table:</div>181<div id="step-2" class="content">182<table>183<tr>184<td>verification_result</td>185</tr>186<tr>187<td>TRUE</td>188</tr>189</table>190</div>191</div>192<hr>193<div class="step"><h3><span class="false">Prediction: TRUE </span></h3>194<h3>Ground-truth:</span> FALSE</h3></div>195</body></html>196