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<hr>23<h3><span>Statement:</span> kings island opened before 1999</h3>24<h3>Input Table: drop tower : scream zone</h3>25<div class="step">26<div class="step">27<div class="step-title">Step 1: Order the table by 'opened' in ascending order.</div>28<div id="step-1" class="content">29<table>30<tr>31<td>park</td>32<td>tower_height</td>33<td>drop_height</td>34<td>speed</td>35<td>model</td>36<td>opened</td>37<td>height_requirement</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">canada 's wonderland</span></td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">230feet</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">200feet</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">62 mph</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">giant drop</span></td>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1997-01-01</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>47</tr>48<tr>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carowinds</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">174feet</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">100feet</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56 mph</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">giant drop</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1996-03-01</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>56</tr>57<tr>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">california 's great america</span></td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">224feet</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">207feet</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">62 mph</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">giant drop</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1996-03-01</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>65</tr>66<tr>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kings dominion</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">305feet</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">272feet</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">72 mph</span></td>71<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gyro drop</span></td>72<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-03-22</span></td>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>74</tr>75<tr>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kings island</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">315feet</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">264feet</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">67 mph</span></td>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gyro drop</span></td>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1999-01-01</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>83</tr>84</table>85</div>86<hr>87<div class="step">88<div class="step-title">Step 2: Select rows where 'park' is 'kings island'.</div>89<div id="step-0" class="content">90<table>91<tr>92<td>park</td>93<td>tower_height</td>94<td>drop_height</td>95<td>speed</td>96<td>model</td>97<td>opened</td>98<td>height_requirement</td>99</tr>100<tr>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carowinds</span></td>102<td>174feet</td>103<td>100feet</td>104<td>56 mph</td>105<td>giant drop</td>106<td>1996-03-01</td>107<td>inches (cm)</td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">california 's great america</span></td>111<td>224feet</td>112<td>207feet</td>113<td>62 mph</td>114<td>giant drop</td>115<td>1996-03-01</td>116<td>inches (cm)</td>117</tr>118<tr>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">canada 's wonderland</span></td>120<td>230feet</td>121<td>200feet</td>122<td>62 mph</td>123<td>giant drop</td>124<td>1997-01-01</td>125<td>inches (cm)</td>126</tr>127<tr>128<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kings island</span></td>129<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">315feet</span></td>130<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">264feet</span></td>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">67 mph</span></td>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gyro drop</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999-01-01</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">inches (cm)</span></td>135</tr>136<tr>137<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kings dominion</span></td>138<td>305feet</td>139<td>272feet</td>140<td>72 mph</td>141<td>gyro drop</td>142<td>2003-03-22</td>143<td>inches (cm)</td>144</tr>145</table>146</div>147</div>148<hr>149<div class="step">150<div class="step-title">Step 3: Select rows where 'opened' is before 1999-01-01.</div>151<div id="step-1" class="content">152<table>153<tr>154<td>park</td>155<td>tower_height</td>156<td>drop_height</td>157<td>speed</td>158<td>model</td>159<td>opened</td>160<td>height_requirement</td>161</tr>162<tr>163<td>kings island</td>164<td>315feet</td>165<td>264feet</td>166<td>67 mph</td>167<td>gyro drop</td>168<td>1999-01-01</td>169<td>inches (cm)</td>170</tr>171</table>172</div>173</div>174<hr>175<div class="step">176<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>177<div id="step-2" class="content">178<table>179<tr>180<td>park</td>181<td>tower_height</td>182<td>drop_height</td>183<td>speed</td>184<td>model</td>185<td>opened</td>186<td>height_requirement</td>187</tr>188</table>189</div>190</div>191<hr>192<table>193<tr>194<td>verification_result</td>195</tr>196<tr>197<td>FALSE</td>198</tr>199</table>200</div>201</div>202<hr>203</body></html>204 