Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1554.html180 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> the zakspeed s4 t / c engine was used on all chassis from 1985 until 1988</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: zakspeed</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'engine__s' is 'zakspeed s4 t / c'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>year</td>34<td>chassis</td>35<td>engine__s</td>36<td>tyres</td>37<td>points</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1985</span></td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 841</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1986</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 861</span></td>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1987</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 861 zakspeed 871</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1988</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 881</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>66</tr>67<tr>68<td>1989</td>69<td>zakspeed 891</td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">yamaha v8</span></td>71<td>p</td>72<td>0</td>73</tr>74</table>75</div>76<hr>77<div class="step">78<div class="step-title">Step 2: Select rows where 'year' is between 1985 and 1988.</div>79<div id="step-0" class="content">80<table>81<tr>82<td>year</td>83<td>chassis</td>84<td>engine__s</td>85<td>tyres</td>86<td>points</td>87</tr>88<tr>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1985</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 841</span></td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed s4 t / c</span></td>92<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1986</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 861</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed s4 t / c</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1987</span></td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 861 zakspeed 871</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed s4 t / c</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1988</span></td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed 881</span></td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">zakspeed s4 t / c</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">g</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>115</tr>116</table>117</div>118</div>119<hr>120<div class="step">121<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 4, otherwise return FALSE.</div>122<div id="step-1" class="content">123<table>124<tr>125<td>year</td>126<td>chassis</td>127<td>engine__s</td>128<td>tyres</td>129<td>points</td>130</tr>131<tr>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1985</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed 841</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">g</span></td>136<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>137</tr>138<tr>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1986</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed 861</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">g</span></td>143<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>144</tr>145<tr>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1987</span></td>147<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed 861 zakspeed 871</span></td>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">g</span></td>150<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>151</tr>152<tr>153<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1988</span></td>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed 881</span></td>155<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">zakspeed s4 t / c</span></td>156<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">g</span></td>157<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>158</tr>159</table>160</div>161</div>162<hr>163<div class="step">164<div class="step-title">Final output table:</div>165<div id="step-2" class="content">166<table>167<tr>168<td>verification_result</td>169</tr>170<tr>171<td>TRUE</td>172</tr>173</table>174</div>175</div>176<hr>177<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>178<h3>Ground-truth:</span> TRUE</h3></div>179</body></html>180