luulinh90s/Tabular-LLM-Study-Preference-Ranking
0
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> in 1998 , n / a won the lifetime achievement award</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: ned kelly awards</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'year' is '1998-01-01'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>year</td>34<td>best_teenage___young_adult</td>35<td>reader__s_vote</td>36<td>best_non___fiction</td>37<td>lifetime_achievement</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1996-01-01</span></td>41<td>na</td>42<td>na</td>43<td>na</td>44<td>jon cleary</td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1997-01-01</span></td>48<td>na</td>49<td>na</td>50<td>how to write crime edited by marele day</td>51<td>alan yates (aka carter brown )</td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1998-01-01</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999-01-01</span></td>62<td>na</td>63<td>na</td>64<td>na</td>65<td>peter corris</td>66</tr>67<tr>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2000-01-01</span></td>69<td>na</td>70<td>na</td>71<td>na</td>72<td>na</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001-01-01</span></td>76<td>na</td>77<td>bleeding hearts by lindy cameron</td>78<td>na</td>79<td>professor stephen knight</td>80</tr>81<tr>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-01-01</span></td>83<td>blue murder by ken catran</td>84<td>apartment 255 by bunty avieson</td>85<td>na</td>86<td>patrick gallagher</td>87</tr>88<tr>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2003-01-01</span></td>90<td>na</td>91<td>na</td>92<td>na</td>93<td>kerry greenwood</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004-01-01</span></td>97<td>na</td>98<td>na</td>99<td>na</td>100<td>bob bottom</td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-01-01</span></td>104<td>na</td>105<td>na</td>106<td>na</td>107<td>stuart coupe</td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2006-01-01</span></td>111<td>na</td>112<td>na</td>113<td>na</td>114<td>andrew rule and john silvester</td>115</tr>116<tr>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007-01-01</span></td>118<td>na</td>119<td>na</td>120<td>na</td>121<td>sandra harvey and lindsay simpson</td>122</tr>123<tr>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2008-01-01</span></td>125<td>na</td>126<td>na</td>127<td>na</td>128<td>marele day</td>129</tr>130<tr>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2009-01-01</span></td>132<td>na</td>133<td>na</td>134<td>na</td>135<td>shane maloney</td>136</tr>137<tr>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2010-01-01</span></td>139<td>na</td>140<td>na</td>141<td>na</td>142<td>peter doyle</td>143</tr>144<tr>145<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2011-01-01</span></td>146<td>na</td>147<td>na</td>148<td>na</td>149<td>na</td>150</tr>151</table>152</div>153<hr>154<div class="step">155<div class="step-title">Step 2: Select rows where 'lifetime_achievement' is 'na'.</div>156<div id="step-0" class="content">157<table>158<tr>159<td>year</td>160<td>best_teenage___young_adult</td>161<td>reader__s_vote</td>162<td>best_non___fiction</td>163<td>lifetime_achievement</td>164</tr>165<tr>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1998-01-01</span></td>167<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>171</tr>172</table>173</div>174</div>175<hr>176<div class="step">177<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>178<div id="step-1" class="content">179<table>180<tr>181<td>year</td>182<td>best_teenage___young_adult</td>183<td>reader__s_vote</td>184<td>best_non___fiction</td>185<td>lifetime_achievement</td>186</tr>187<tr>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1998-01-01</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>191<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>192<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>193</tr>194</table>195</div>196</div>197<hr>198<div class="step">199<div class="step-title">Final output table:</div>200<div id="step-2" class="content">201<table>202<tr>203<td>verification_result</td>204</tr>205<tr>206<td>TRUE</td>207</tr>208</table>209</div>210</div>211<hr>212<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>213<h3>Ground-truth:</span> TRUE</h3></div>214</body></html>215 