Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-93.html196 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> vctp 24hp / t (23hp / ton) has a vca 155 of 18hp / t ( 16.5hp / ton) , and not 55 km / h (34 mph)</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: tam (tank)</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'vctp' is '24hp / t (23hp / ton)'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>vctp</td>34<td>vca_155</td>35<td>vctm</td>36<td>vcpc</td>37<td>vclc</td>38<td>vcrt</td>39</tr>40<tr>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.2 t (31.1 tons )</span></td>42<td>40t (44.1tons)</td>43<td>26t (28.7tons)</td>44<td>25t (27.6tons)</td>45<td>32t (35.3tons)</td>46<td>32t (35.3tons)</td>47</tr>48<tr>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">20 mm (79in) rh - 202 autocannon</span></td>50<td>155 mm (6.1in) l / 41 howitzer</td>51<td>120 mm (4.72in) mortar</td>52<td>7.62 mm (0.3in) fn mag 60 - 20 machine gun</td>53<td>160 mm (6.3in) or 350 mm (13.8in) rockets</td>54<td>7.62 mm (0.3in) fn mag 60 - 20 machine gun</td>55</tr>56<tr>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">km (mi)</span></td>58<td>-</td>59<td>km (mi)</td>60<td>-</td>61<td>km (mi)</td>62<td>km (mi)</td>63</tr>64<tr>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">24hp / t (23hp / ton)</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18hp / t ( 16.5hp / ton)</span></td>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">75 km / h (47 mph)</span></td>74<td>55 km / h (34 mph)</td>75<td>75 km / h (47 mph)</td>76<td>75 km / h (47 mph)</td>77<td>75 km / h (47 mph)</td>78<td>75 km / h (47 mph)</td>79</tr>80</table>81</div>82<hr>83<div class="step">84<div class="step-title">Step 2: Select rows where 'vca_155' is '18hp / t ( 16.5hp / ton)'.</div>85<div id="step-0" class="content">86<table>87<tr>88<td>vctp</td>89<td>vca_155</td>90<td>vctm</td>91<td>vcpc</td>92<td>vclc</td>93<td>vcrt</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24hp / t (23hp / ton)</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">18hp / t ( 16.5hp / ton)</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>102</tr>103</table>104</div>105</div>106<hr>107<div class="step">108<div class="step-title">Step 3: Select rows where 'vctp' is '24hp / t (23hp / ton)' and 'vca_155' is '18hp / t ( 16.5hp / ton)'.</div>109<div id="step-1" class="content">110<table>111<tr>112<td>vctp</td>113<td>vca_155</td>114<td>vctm</td>115<td>vcpc</td>116<td>vclc</td>117<td>vcrt</td>118</tr>119<tr>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">24hp / t (23hp / ton)</span></td>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">18hp / t ( 16.5hp / ton)</span></td>122<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>125<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>126</tr>127</table>128</div>129</div>130<hr>131<div class="step">132<div class="step-title">Step 4: Select rows where 'vctp' is '24hp / t (23hp / ton)', 'vca_155' is '18hp / t ( 16.5hp / ton)', and 'vctp' is not '55 km / h (34 mph)'.</div>133<div id="step-2" class="content">134<table>135<tr>136<td>vctp</td>137<td>vca_155</td>138<td>vctm</td>139<td>vcpc</td>140<td>vclc</td>141<td>vcrt</td>142</tr>143<tr>144<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">24hp / t (23hp / ton)</span></td>145<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">18hp / t ( 16.5hp / ton)</span></td>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>147<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">28.8hp / t (25.1hp / ton)</span></td>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.5hp / t (20.4hp / ton)</span></td>150</tr>151</table>152</div>153</div>154<hr>155<div class="step">156<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>157<div id="step-3" class="content">158<table>159<tr>160<td>vctp</td>161<td>vca_155</td>162<td>vctm</td>163<td>vcpc</td>164<td>vclc</td>165<td>vcrt</td>166</tr>167<tr>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">24hp / t (23hp / ton)</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">18hp / t ( 16.5hp / ton)</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">28.8hp / t (25.1hp / ton)</span></td>171<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">28.8hp / t (25.1hp / ton)</span></td>172<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">22.5hp / t (20.4hp / ton)</span></td>173<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">22.5hp / t (20.4hp / ton)</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-4" 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="true">Prediction: TRUE </span></h3>194<h3>Ground-truth:</span> TRUE</h3></div>195</body></html>196