Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-860.html203 linesDownload Raw Back to TN
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> the fewest number of 2005 subscribers for vodafone is 6125 at morocco</h3>24<h3>Input Table: mobile telephony in africa</h3>25<div class="step">26<div class="step">27<div class="step-title">Step 1: Select rows where 'provider' is 'vodafone'.</div>28<div id="step-1" class="content">29<table>30<tr>31<td>provider</td>32<td>country</td>33<td>subscribers__2005___thousands_</td>34<td>subscribers__2006___thousands_</td>35<td>growth__</td>36</tr>37<tr>38<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">airtel</span></td>39<td>kenya , uganda</td>40<td>37600</td>41<td>31800</td>42<td>54.9</td>43</tr>44<tr>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">vodacom</span></td>46<td>south africa</td>47<td>17600</td>48<td>21800</td>49<td>23.9</td>50</tr>51<tr>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mtn</span></td>53<td>south africa</td>54<td>10235</td>55<td>12483</td>56<td>22.0</td>57</tr>58<tr>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mtn</span></td>60<td>nigeria</td>61<td>8370</td>62<td>12281</td>63<td>47.0</td>64</tr>65<tr>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">glo mobile</span></td>67<td>nigeria</td>68<td>9000</td>69<td>11000</td>70<td>22.0</td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">maroc</span></td>74<td>morocco</td>75<td>8237</td>76<td>10707</td>77<td>30.0</td>78</tr>79<tr>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">djezzy</span></td>81<td>algeria</td>82<td>7109</td>83<td>10531</td>84<td>48.0</td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mobinil</span></td>88<td>egypt</td>89<td>66960</td>90<td>9267</td>91<td>38.0</td>92</tr>93<tr>94<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">vodafone</span></td>95<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">egypt</span></td>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6125</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8704</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">42.0</span></td>99</tr>100<tr>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mobilis</span></td>102<td>algeria</td>103<td>4908</td>104<td>7476</td>105<td>52.0</td>106</tr>107</table>108</div>109<hr>110<div class="step">111<div class="step-title">Step 2: Order the table by 'subscribers__2005___thousands_' in ascending order.</div>112<div id="step-0" class="content">113<table>114<tr>115<td>provider</td>116<td>country</td>117<td>subscribers__2005___thousands_</td>118<td>subscribers__2006___thousands_</td>119<td>growth__</td>120</tr>121<tr>122<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">vodafone</span></td>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">egypt</span></td>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6125</span></td>125<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8704</span></td>126<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">42.0</span></td>127</tr>128</table>129</div>130</div>131<hr>132<div class="step">133<div class="step-title">Step 3: Select row number 1.</div>134<div id="step-1" class="content">135<table>136<tr>137<td>provider</td>138<td>country</td>139<td>subscribers__2005___thousands_</td>140<td>subscribers__2006___thousands_</td>141<td>growth__</td>142</tr>143<tr>144<td>vodafone</td>145<td>egypt</td>146<td>6125</td>147<td>8704</td>148<td>42.0</td>149</tr>150</table>151</div>152</div>153<hr>154<div class="step">155<div class="step-title">Step 4: Select rows where 'country' is 'morocco'.</div>156<div id="step-2" class="content">157<table>158<tr>159<td>provider</td>160<td>country</td>161<td>subscribers__2005___thousands_</td>162<td>subscribers__2006___thousands_</td>163<td>growth__</td>164</tr>165<tr>166<td>vodafone</td>167<td>egypt</td>168<td>6125</td>169<td>8704</td>170<td>42.0</td>171</tr>172</table>173</div>174</div>175<hr>176<div class="step">177<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>178<div id="step-3" class="content">179<table>180<tr>181<td>provider</td>182<td>country</td>183<td>subscribers__2005___thousands_</td>184<td>subscribers__2006___thousands_</td>185<td>growth__</td>186</tr>187</table>188</div>189</div>190<hr>191<table>192<tr>193<td>verification_result</td>194</tr>195<tr>196<td>FALSE</td>197</tr>198</table>199</div>200</div>201<hr>202</body></html>203