Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-514.html171 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> rank 4 is lower than 6:40.02</h3>25<h3>Ground-truth:</span> FALSE</h3>26<h3>Input Table: rowing at the 2008 summer olympics - men 's lightweight double sculls</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'rank' is 4.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>rank</td>34<td>rowers</td>35<td>country</td>36<td>time</td>37<td>notes</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>41<td>pedro fraga , nuno mendes</td>42<td>portugal</td>43<td>6:39.07</td>44<td>sa / b</td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>48<td>eyder batista , yunior perez</td>49<td>cuba</td>50<td>6:40.15</td>51<td>sa / b</td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>55<td>kazushige ura , daisaku takeda</td>56<td>japan</td>57<td>6:43.03</td>58<td>sc / d</td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zsolt hirling , tamã¡s varga</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hungary</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6:50.48</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sc / d</span></td>66</tr>67<tr>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>69<td>devender kumar khandwal , manjeet singh</td>70<td>india</td>71<td>7:02.06</td>72<td>sc / d</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6</span></td>76<td>jang kang - eun , kim hong - kyun</td>77<td>south korea</td>78<td>7:12.17</td>79<td>sc / d</td>80</tr>81</table>82</div>83<hr>84<div class="step">85<div class="step-title">Step 2: Extract the numerical time from the 'time' column by identifying the number after ':' to add column 'num_time' to existing table.</div>86<div id="step-0" class="content">87<table>88<tr>89<td>rank</td>90<td>rowers</td>91<td>country</td>92<td>time</td>93<td>notes</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zsolt hirling , tamã¡s varga</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">hungary</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6:50.48</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sc / d</span></td>101</tr>102</table>103</div>104</div>105<hr>106<div class="step">107<div class="step-title">Step 3: Select rows where 'num_time' is lower than 6:40.02.</div>108<div id="step-1" class="content">109<table>110<tr>111<td>rank</td>112<td>rowers</td>113<td>country</td>114<td>time</td>115<td>notes</td>116<td>num_time</td>117</tr>118<tr>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zsolt hirling , tamã¡s varga</span></td>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hungary</span></td>122<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6:50.48</span></td>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sc / d</span></td>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">50.48</span></td>125</tr>126</table>127</div>128</div>129<hr>130<div class="step">131<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>132<div id="step-2" class="content">133<table>134<tr>135<td>rank</td>136<td>rowers</td>137<td>country</td>138<td>time</td>139<td>notes</td>140<td>num_time</td>141</tr>142<tr>143<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>144<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zsolt hirling , tamã¡s varga</span></td>145<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">hungary</span></td>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6:50.48</span></td>147<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sc / d</span></td>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">50.48</span></td>149</tr>150</table>151</div>152</div>153<hr>154<div class="step">155<div class="step-title">Final output table:</div>156<div id="step-3" class="content">157<table>158<tr>159<td>verification_result</td>160</tr>161<tr>162<td>TRUE</td>163</tr>164</table>165</div>166</div>167<hr>168<div class="step"><h3><span class="false">Prediction: TRUE </span></h3>169<h3>Ground-truth:</span> FALSE</h3></div>170</body></html>171