Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-856.html245 linesDownload Raw Back to FN
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 maximum numbers of 2006 subscribers for glo mobile is 11000</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: Order the table by 'subscribers__2006___thousands_' in descending order.</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><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kenya , uganda</span></td>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">37600</span></td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">31800</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">54.9</span></td>43</tr>44<tr>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">vodacom</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south africa</span></td>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">17600</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">21800</span></td>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">23.9</span></td>50</tr>51<tr>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mtn</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south africa</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10235</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12483</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.0</span></td>57</tr>58<tr>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mtn</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nigeria</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8370</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12281</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">47.0</span></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><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nigeria</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9000</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">11000</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22.0</span></td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">maroc</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">morocco</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8237</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">10707</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30.0</span></td>78</tr>79<tr>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">djezzy</span></td>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">algeria</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7109</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">10531</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">48.0</span></td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mobinil</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">egypt</span></td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">66960</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">9267</span></td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">38.0</span></td>92</tr>93<tr>94<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">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:#90EE90;">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><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">algeria</span></td>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4908</span></td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">7476</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">52.0</span></td>106</tr>107</table>108</div>109<hr>110<div class="step">111<div class="step-title">Step 2: Select row number 1.</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>airtel</td>123<td>kenya , uganda</td>124<td>37600</td>125<td>31800</td>126<td>54.9</td>127</tr>128<tr>129<td>vodacom</td>130<td>south africa</td>131<td>17600</td>132<td>21800</td>133<td>23.9</td>134</tr>135<tr>136<td>mtn</td>137<td>south africa</td>138<td>10235</td>139<td>12483</td>140<td>22.0</td>141</tr>142<tr>143<td>mtn</td>144<td>nigeria</td>145<td>8370</td>146<td>12281</td>147<td>47.0</td>148</tr>149<tr>150<td>glo mobile</td>151<td>nigeria</td>152<td>9000</td>153<td>11000</td>154<td>22.0</td>155</tr>156<tr>157<td>maroc</td>158<td>morocco</td>159<td>8237</td>160<td>10707</td>161<td>30.0</td>162</tr>163<tr>164<td>djezzy</td>165<td>algeria</td>166<td>7109</td>167<td>10531</td>168<td>48.0</td>169</tr>170<tr>171<td>mobinil</td>172<td>egypt</td>173<td>66960</td>174<td>9267</td>175<td>38.0</td>176</tr>177<tr>178<td>vodafone</td>179<td>egypt</td>180<td>6125</td>181<td>8704</td>182<td>42.0</td>183</tr>184<tr>185<td>mobilis</td>186<td>algeria</td>187<td>4908</td>188<td>7476</td>189<td>52.0</td>190</tr>191</table>192</div>193</div>194<hr>195<div class="step">196<div class="step-title">Step 3: Select rows where 'provider' is 'glo mobile'.</div>197<div id="step-1" class="content">198<table>199<tr>200<td>provider</td>201<td>country</td>202<td>subscribers__2005___thousands_</td>203<td>subscribers__2006___thousands_</td>204<td>growth__</td>205</tr>206<tr>207<td>airtel</td>208<td>kenya , uganda</td>209<td>37600</td>210<td>31800</td>211<td>54.9</td>212</tr>213</table>214</div>215</div>216<hr>217<div class="step">218<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1 and the value of 'subscribers__2006___thousands_' is 11000, otherwise return FALSE.</div>219<div id="step-2" class="content">220<table>221<tr>222<td>provider</td>223<td>country</td>224<td>subscribers__2005___thousands_</td>225<td>subscribers__2006___thousands_</td>226<td>growth__</td>227</tr>228</table>229</div>230</div>231<hr>232<table>233<tr>234<td>verification_result</td>235</tr>236<tr>237<td>FALSE</td>238</tr>239</table>240</div>241</div>242<hr>243<h3>Prediction:</span> FALSE</h3>244</body></html>245