luulinh90s commited on
Commit
68eb98f
1 Parent(s): 073a415

add text2sql vis

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Tabular_LLMs_human_study_vis_6_Text2SQL.json +0 -0
  2. htmls_Text2SQL/FN/Text2SQL_test-1.html +39 -0
  3. htmls_Text2SQL/FN/Text2SQL_test-1000.html +39 -0
  4. htmls_Text2SQL/FN/Text2SQL_test-101.html +39 -0
  5. htmls_Text2SQL/FN/Text2SQL_test-1012.html +42 -0
  6. htmls_Text2SQL/FN/Text2SQL_test-102.html +39 -0
  7. htmls_Text2SQL/FN/Text2SQL_test-1035.html +39 -0
  8. htmls_Text2SQL/FN/Text2SQL_test-1038.html +41 -0
  9. htmls_Text2SQL/FN/Text2SQL_test-1039.html +42 -0
  10. htmls_Text2SQL/FN/Text2SQL_test-1041.html +40 -0
  11. htmls_Text2SQL/FN/Text2SQL_test-1076.html +39 -0
  12. htmls_Text2SQL/FN/Text2SQL_test-1077.html +40 -0
  13. htmls_Text2SQL/FN/Text2SQL_test-1078.html +39 -0
  14. htmls_Text2SQL/FN/Text2SQL_test-1080.html +39 -0
  15. htmls_Text2SQL/FN/Text2SQL_test-1081.html +40 -0
  16. htmls_Text2SQL/FN/Text2SQL_test-1130.html +39 -0
  17. htmls_Text2SQL/FN/Text2SQL_test-1131.html +39 -0
  18. htmls_Text2SQL/FN/Text2SQL_test-1145.html +39 -0
  19. htmls_Text2SQL/FN/Text2SQL_test-1155.html +39 -0
  20. htmls_Text2SQL/FN/Text2SQL_test-1159.html +50 -0
  21. htmls_Text2SQL/FN/Text2SQL_test-1190.html +40 -0
  22. htmls_Text2SQL/FN/Text2SQL_test-1204.html +40 -0
  23. htmls_Text2SQL/FN/Text2SQL_test-1205.html +42 -0
  24. htmls_Text2SQL/FN/Text2SQL_test-1206.html +39 -0
  25. htmls_Text2SQL/FN/Text2SQL_test-1218.html +40 -0
  26. htmls_Text2SQL/FN/Text2SQL_test-1221.html +40 -0
  27. htmls_Text2SQL/FN/Text2SQL_test-1228.html +39 -0
  28. htmls_Text2SQL/FN/Text2SQL_test-1229.html +41 -0
  29. htmls_Text2SQL/FN/Text2SQL_test-1231.html +41 -0
  30. htmls_Text2SQL/FN/Text2SQL_test-1237.html +39 -0
  31. htmls_Text2SQL/FN/Text2SQL_test-1247.html +42 -0
  32. htmls_Text2SQL/FN/Text2SQL_test-1248.html +40 -0
  33. htmls_Text2SQL/FN/Text2SQL_test-1250.html +40 -0
  34. htmls_Text2SQL/FN/Text2SQL_test-1270.html +39 -0
  35. htmls_Text2SQL/FN/Text2SQL_test-1271.html +41 -0
  36. htmls_Text2SQL/FN/Text2SQL_test-1274.html +39 -0
  37. htmls_Text2SQL/FN/Text2SQL_test-128.html +39 -0
  38. htmls_Text2SQL/FN/Text2SQL_test-1295.html +40 -0
  39. htmls_Text2SQL/FN/Text2SQL_test-1296.html +40 -0
  40. htmls_Text2SQL/FN/Text2SQL_test-1297.html +40 -0
  41. htmls_Text2SQL/FN/Text2SQL_test-1330.html +39 -0
  42. htmls_Text2SQL/FN/Text2SQL_test-1331.html +39 -0
  43. htmls_Text2SQL/FN/Text2SQL_test-1332.html +39 -0
  44. htmls_Text2SQL/FN/Text2SQL_test-1333.html +41 -0
  45. htmls_Text2SQL/FN/Text2SQL_test-1334.html +39 -0
  46. htmls_Text2SQL/FN/Text2SQL_test-1341.html +42 -0
  47. htmls_Text2SQL/FN/Text2SQL_test-1342.html +40 -0
  48. htmls_Text2SQL/FN/Text2SQL_test-1344.html +40 -0
  49. htmls_Text2SQL/FN/Text2SQL_test-1348.html +40 -0
  50. htmls_Text2SQL/FN/Text2SQL_test-1356.html +39 -0
Tabular_LLMs_human_study_vis_6_Text2SQL.json ADDED
The diff for this file is too large to render. See raw diff
 
htmls_Text2SQL/FN/Text2SQL_test-1.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the wildcats never scored more than 7 in any game they lost</h3>
26
+ <h3>Input Table: 1947 kentucky wildcats football team</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>opponent</td><td>result</td><td>wildcats_points</td><td>opponents</td><td>record</td></tr><tr><td>1</td><td>9999-09-20</td><td>ole miss</td><td>loss</td><td>7</td><td>14</td><td>0 - 1</td></tr><tr><td>2</td><td>9999-09-27</td><td>cincinnati</td><td>win</td><td>20</td><td>0</td><td>1 - 1</td></tr><tr><td>3</td><td>9999-10-04</td><td>xavier</td><td>win</td><td>20</td><td>7</td><td>2 - 1</td></tr><tr><td>4</td><td>9999-10-11</td><td>9 georgia</td><td>win</td><td>26</td><td>0</td><td>3 - 1 , 20</td></tr><tr><td>5</td><td>9999-10-18</td><td>10 vanderbilt</td><td>win</td><td>14</td><td>0</td><td>4 - 1 , 14</td></tr><tr><td>6</td><td>9999-10-25</td><td>michigan state</td><td>win</td><td>7</td><td>6</td><td>5 - 1 , 13</td></tr><tr><td>7</td><td>9999-11-01</td><td>18 alabama</td><td>loss</td><td>0</td><td>13</td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-08</td><td>west virginia</td><td>win</td><td>15</td><td>6</td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-15</td><td>evansville</td><td>win</td><td>36</td><td>0</td><td>7 - 2</td></tr><tr><td>10</td><td>9999-11-22</td><td>tennessee</td><td>loss</td><td>6</td><td>13</td><td>7 - 3</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(wildcats_points) FROM table_sql WHERE result = 'loss') <= 7
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1000.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> in tokyo , japan , hikaru sato 's match ended before round 2</h3>
26
+ <h3>Input Table: katsuya inoue</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>res</td><td>record</td><td>opponent</td><td>method</td><td>event</td><td>round</td><td>time</td><td>location</td></tr><tr><td>loss</td><td>19 - 9 - 4</td><td>naoyuki kotani</td><td>submission (armbar)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>19 - 8 - 4</td><td>kota okazawa</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>19 - 7 - 4</td><td>katsuhiko nagata</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>18 - 7 - 4</td><td>maximo blanco</td><td>tko (strikes)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>18 - 6 - 4</td><td>mizuto hirota</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>17 - 6 - 3</td><td>koji oishi</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>18 - 6 - 3</td><td>daisuke hanazawa</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>16 - 6 - 3</td><td>nick diaz</td><td>tko (corner stoppage)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>16 - 5 - 3</td><td>djamal kurbanov</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>16 - 5 - 2</td><td>satoru kitaoka</td><td>decision (split)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>15 - 5 - 2</td><td>shigetoshi iwase</td><td>draw</td><td>2007-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>15 - 5 - 1</td><td>fabricio nascimento</td><td>tko (punches)</td><td>2007-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>14 - 5 - 1</td><td>koji oishi</td><td>ko (punches)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>13 - 5 - 1</td><td>yoshiyuki yoshida</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>13 - 4 - 1</td><td>takefume hanai</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>12 - 4 - 1</td><td>daizo ishige</td><td>decision (unanimous)</td><td>9999-01-06</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>12 - 3 - 1</td><td>kim haeng ki</td><td>tko (punches)</td><td>9999-03-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>11 - 3 - 1</td><td>satoru kitaoka</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>11 - 3</td><td>daisuke hanazawa</td><td>decision (majority)</td><td>9999-01-04</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>10 - 3</td><td>akira kikuchi</td><td>tko (punches)</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>10 - 2</td><td>kenji arai</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>9 - 2</td><td>heath sims</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>8 - 2</td><td>kyle noke</td><td>decision (split)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>7 - 2</td><td>satoru kitaoka</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>6 - 2</td><td>takuya wada</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>5 - 2</td><td>hikaru sato</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>4 - 2</td><td>ichiro kanai</td><td>decision (majority)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>3 - 2</td><td>eiji ishikawa</td><td>decision (majority)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>3 - 1</td><td>taro minato</td><td>decision (unanimous)</td><td>9999-01-12</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>2 - 1</td><td>ichiro kanai</td><td>decision (unanimous)</td><td>9999-01-07</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>1 - 1</td><td>motohiro tachihara</td><td>decision (unanimous)</td><td>9999-01-05</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>0 - 1</td><td>yoshinori oniki</td><td>tko (strikes)</td><td>9999-01-04</td><td>9999-01-01</td><td>9999-01-09</td><td>9999-01-01</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT time FROM table_sql WHERE location = 'tokyo' AND opponent = 'hikaru sato') < '9999-01-02'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-101.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> t9 place has a score of 67 + 68 + 78 + 77 = 290</h3>
26
+ <h3>Input Table: 1975 u.s. open (golf)</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>place</td><td>player</td><td>country</td><td>score</td><td>to_par</td><td>money</td></tr><tr><td>t1</td><td>lou graham</td><td>united states</td><td>74 + 72 + 68 + 73 = 287</td><td>+ 3</td><td>playoff</td></tr><tr><td>t1</td><td>john mahaffey</td><td>united states</td><td>73 + 71 + 72 + 71 = 287</td><td>+ 3</td><td>playoff</td></tr><tr><td>t3</td><td>frank beard</td><td>united states</td><td>74 + 69 + 67 + 78 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>ben crenshaw</td><td>united states</td><td>70 + 68 + 76 + 74 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>hale irwin</td><td>united states</td><td>74 + 71 + 73 + 70 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>bob murphy</td><td>united states</td><td>74 + 73 + 72 + 69 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t7</td><td>jack nicklaus</td><td>united states</td><td>72 + 70 + 75 + 72 = 289</td><td>+ 5</td><td>7500</td></tr><tr><td>t7</td><td>peter oosterhuis</td><td>england</td><td>69 + 73 + 72 + 75 = 289</td><td>+ 5</td><td>7500</td></tr><tr><td>t9</td><td>pat fitzsimons</td><td>united states</td><td>67 + 73 + 73 + 77 = 290</td><td>+ 6</td><td>5000</td></tr><tr><td>t9</td><td>arnold palmer</td><td>united states</td><td>69 + 75 + 73 + 73 = 290</td><td>+ 6</td><td>5000</td></tr><tr><td>t9</td><td>tom watson</td><td>united states</td><td>67 + 68 + 78 + 77 = 290</td><td>+ 6</td><td>5000</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT score FROM table_sql WHERE place = 't9') = '67 + 68 + 78 + 77 = 290'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1012.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the home team scored 17.5 (107) on sunday , january 30th</h3>
26
+ <h3>Input Table: 2000 ansett australia cup</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>ground</td><td>crowd</td><td>date</td></tr><tr><td>adelaide</td><td>17.5 (107)</td><td>melbourne</td><td>19.11 (125)</td><td>football park</td><td>12239</td><td>9999-01-30</td></tr><tr><td>geelong</td><td>10.14 (74)</td><td>st kilda</td><td>11.12 (78)</td><td>waverley park</td><td>7394</td><td>9999-01-30</td></tr><tr><td>st kilda</td><td>9.12 (66)</td><td>melbourne</td><td>13.14 (92)</td><td>waverley park</td><td>10533</td><td>9999-02-05</td></tr><tr><td>adelaide</td><td>19.10 (124)</td><td>geelong</td><td>15.12 (102)</td><td>football park</td><td>11326</td><td>9999-02-06</td></tr><tr><td>adelaide</td><td>14.11 (95)</td><td>st kilda</td><td>15.12 (102)</td><td>football park</td><td>13086</td><td>9999-02-13</td></tr><tr><td>geelong</td><td>17.12 (114)</td><td>melbourne</td><td>11.16 (82)</td><td>waverley park</td><td>4952</td><td>01-14-9999</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 0 THEN 'FALSE'
36
+ ELSE 'TRUE'
37
+ END
38
+ FROM table_sql
39
+ WHERE home_team_score = '17.5 (107)'
40
+ AND date = '9999-01-30'
41
+ AND strftime('%w', date) = '0';</div>
42
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-102.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> t7 is the place of peter oosterhuis , who won 7500</h3>
26
+ <h3>Input Table: 1975 u.s. open (golf)</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>place</td><td>player</td><td>country</td><td>score</td><td>to_par</td><td>money</td></tr><tr><td>t1</td><td>lou graham</td><td>united states</td><td>74 + 72 + 68 + 73 = 287</td><td>+ 3</td><td>playoff</td></tr><tr><td>t1</td><td>john mahaffey</td><td>united states</td><td>73 + 71 + 72 + 71 = 287</td><td>+ 3</td><td>playoff</td></tr><tr><td>t3</td><td>frank beard</td><td>united states</td><td>74 + 69 + 67 + 78 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>ben crenshaw</td><td>united states</td><td>70 + 68 + 76 + 74 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>hale irwin</td><td>united states</td><td>74 + 71 + 73 + 70 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t3</td><td>bob murphy</td><td>united states</td><td>74 + 73 + 72 + 69 = 288</td><td>+ 4</td><td>10875</td></tr><tr><td>t7</td><td>jack nicklaus</td><td>united states</td><td>72 + 70 + 75 + 72 = 289</td><td>+ 5</td><td>7500</td></tr><tr><td>t7</td><td>peter oosterhuis</td><td>england</td><td>69 + 73 + 72 + 75 = 289</td><td>+ 5</td><td>7500</td></tr><tr><td>t9</td><td>pat fitzsimons</td><td>united states</td><td>67 + 73 + 73 + 77 = 290</td><td>+ 6</td><td>5000</td></tr><tr><td>t9</td><td>arnold palmer</td><td>united states</td><td>69 + 75 + 73 + 73 = 290</td><td>+ 6</td><td>5000</td></tr><tr><td>t9</td><td>tom watson</td><td>united states</td><td>67 + 68 + 78 + 77 = 290</td><td>+ 6</td><td>5000</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN place = 't7' AND player = 'peter oosterhuis' AND money = 7500 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1035.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> february 21 had a score of 5 - 4</h3>
26
+ <h3>Input Table: 2003 - 04 philadelphia flyers season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>february</td><td>opponent</td><td>score</td><td>record</td><td>points</td></tr><tr><td>54</td><td>9999-01-02</td><td>tampa bay lightning</td><td>1 - 2</td><td>26 - 12 - 11 - 5</td><td>68</td></tr><tr><td>55</td><td>9999-01-04</td><td>washington capitals</td><td>5 - 1</td><td>27 - 12 - 11 - 5</td><td>70</td></tr><tr><td>56</td><td>9999-01-05</td><td>atlanta thrashers</td><td>5 - 1</td><td>28 - 12 - 11 - 5</td><td>72</td></tr><tr><td>57</td><td>9999-01-10</td><td>new jersey devils</td><td>4 - 1</td><td>29 - 12 - 11 - 5</td><td>74</td></tr><tr><td>58</td><td>9999-01-12</td><td>new york rangers</td><td>2 - 1</td><td>30 - 12 - 11 - 5</td><td>76</td></tr><tr><td>59</td><td>9999-01-14</td><td>new york rangers</td><td>6 - 2</td><td>31 - 12 - 11 - 5</td><td>78</td></tr><tr><td>60</td><td>9999-01-16</td><td>san jose sharks</td><td>2 - 5</td><td>31 - 13 - 11 - 5</td><td>78</td></tr><tr><td>61</td><td>9999-01-17</td><td>tampa bay lightning</td><td>2 - 5</td><td>31 - 14 - 11 - 5</td><td>78</td></tr><tr><td>62</td><td>9999-01-19</td><td>boston bruins</td><td>3 - 4</td><td>31 - 15 - 11 - 5</td><td>78</td></tr><tr><td>63</td><td>9999-01-21</td><td>atlanta thrashers</td><td>5 - 4</td><td>32 - 15 - 11 - 5</td><td>80</td></tr><tr><td>64</td><td>9999-01-24</td><td>chicago blackhawks</td><td>3 - 1</td><td>33 - 15 - 11 - 5</td><td>82</td></tr><tr><td>65</td><td>9999-01-26</td><td>ottawa senators</td><td>1 - 1 ot</td><td>33 - 15 - 12 - 5</td><td>83</td></tr><tr><td>66</td><td>9999-01-28</td><td>boston bruins</td><td>2 - 3 ot</td><td>33 - 15 - 12 - 6</td><td>84</td></tr><tr><td>67</td><td>9999-01-29</td><td>detroit red wings</td><td>2 - 4</td><td>33 - 16 - 12 - 6</td><td>84</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT score FROM table_sql WHERE february = '9999-02-21') = '5 - 4'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1038.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> takamiyama had the longest time range between his first and last record , 13 years</h3>
26
+ <h3>Input Table: list of sumo record holders</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>kotonishiki</td><td>34</td><td>1990-09-01</td><td>1999-09-01</td><td>sekiwake</td></tr><tr><td>kaiō</td><td>32</td><td>1994-05-01</td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>musōyama</td><td>31</td><td>1994-03-01</td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>hasegawa</td><td>30</td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td>30</td><td>2001-01-01</td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>akinoshima</td><td>27</td><td>1988-11-01</td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>takamiyama</td><td>27</td><td>1969-11-01</td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>takatōriki</td><td>26</td><td>1991-05-01</td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>wakanosato</td><td>26</td><td>2000-11-01</td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr><tr><td>tochiazuma ii</td><td>22</td><td>1997-07-01</td><td>2005-01-01</td><td>ōzeki</td></tr><tr><td>kisenosato</td><td>22</td><td>2006-07-01</td><td>2011-09-01</td><td>ōzeki</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (julianday(last) - julianday(first)) >= 4745
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END
39
+ FROM table_sql
40
+ WHERE name = 'takamiyama';</div>
41
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1039.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the only total that appears more than two times is 22</h3>
26
+ <h3>Input Table: list of sumo record holders</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>kotonishiki</td><td>34</td><td>1990-09-01</td><td>1999-09-01</td><td>sekiwake</td></tr><tr><td>kaiō</td><td>32</td><td>1994-05-01</td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>musōyama</td><td>31</td><td>1994-03-01</td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>hasegawa</td><td>30</td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td>30</td><td>2001-01-01</td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>akinoshima</td><td>27</td><td>1988-11-01</td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>takamiyama</td><td>27</td><td>1969-11-01</td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>takatōriki</td><td>26</td><td>1991-05-01</td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>wakanosato</td><td>26</td><td>2000-11-01</td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr><tr><td>tochiazuma ii</td><td>22</td><td>1997-07-01</td><td>2005-01-01</td><td>ōzeki</td></tr><tr><td>kisenosato</td><td>22</td><td>2006-07-01</td><td>2011-09-01</td><td>ōzeki</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) > 2 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM
39
+ (SELECT total, COUNT(*) as count FROM table_sql GROUP BY total)
40
+ WHERE
41
+ count > 2;</div>
42
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1041.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the last record for both the highest totalling name and the lowest totalling name were recorded in the month of september</h3>
26
+ <h3>Input Table: list of sumo record holders</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>kotonishiki</td><td>34</td><td>1990-09-01</td><td>1999-09-01</td><td>sekiwake</td></tr><tr><td>kaiō</td><td>32</td><td>1994-05-01</td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>musōyama</td><td>31</td><td>1994-03-01</td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>hasegawa</td><td>30</td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td>30</td><td>2001-01-01</td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>akinoshima</td><td>27</td><td>1988-11-01</td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>takamiyama</td><td>27</td><td>1969-11-01</td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>takatōriki</td><td>26</td><td>1991-05-01</td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>wakanosato</td><td>26</td><td>2000-11-01</td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr><tr><td>tochiazuma ii</td><td>22</td><td>1997-07-01</td><td>2005-01-01</td><td>ōzeki</td></tr><tr><td>kisenosato</td><td>22</td><td>2006-07-01</td><td>2011-09-01</td><td>ōzeki</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(total) FROM table_sql WHERE total = (SELECT MAX(total) FROM table_sql)) = 'september'
36
+ AND (SELECT MIN(total) FROM table_sql WHERE total = (SELECT MIN(total) FROM table_sql)) = 'september'
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1076.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> detroit had the highest visitor score , with 5 points</h3>
26
+ <h3>Input Table: 2003 - 04 detroit red wings season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(score) FROM table_sql WHERE visitor = 'detroit') = 5
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1077.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> detroit had the highest home team score , at 6 points</h3>
26
+ <h3>Input Table: 2003 - 04 detroit red wings season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN MAX(score) = 6 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE home = 'detroit';</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1078.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the highest score of the season was detroit , on january 5 with 6 points</h3>
26
+ <h3>Input Table: 2003 - 04 detroit red wings season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(score) FROM table_sql WHERE home = 'detroit') = 6
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1080.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the highest point gap was on january 5 , with a spread of 6 points</h3>
26
+ <h3>Input Table: 2003 - 04 detroit red wings season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(record) FROM table_sql) = '26 - 12 - 4 - 1'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1081.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> detroit had one of the lowest visitor scores this season</h3>
26
+ <h3>Input Table: 2003 - 04 detroit red wings season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MIN(score) FROM table_sql WHERE visitor = 'detroit') =
36
+ (SELECT MIN(score) FROM table_sql)
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1130.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the player with the highest number of league goals is ian robins</h3>
26
+ <h3>Input Table: 1979 - 80 huddersfield town f.c. season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr><tr><td>jim branagan</td><td>df</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0 (1)</td><td>0</td><td>0 (1)</td><td>0</td></tr><tr><td>malcolm brown</td><td>df</td><td>46</td><td>2</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>3</td></tr><tr><td>david cowling</td><td>mf</td><td>39 (1)</td><td>10</td><td>1</td><td>0</td><td>4</td><td>0</td><td>44 (1)</td><td>10</td></tr><tr><td>peter fletcher</td><td>fw</td><td>30 (8)</td><td>17</td><td>2</td><td>0</td><td>3</td><td>1</td><td>35 (8)</td><td>18</td></tr><tr><td>keith hanvey</td><td>df</td><td>33</td><td>2</td><td>0</td><td>0</td><td>4</td><td>0</td><td>39</td><td>2</td></tr><tr><td>peter hart</td><td>mf</td><td>46</td><td>4</td><td>1</td><td>1</td><td>4</td><td>0</td><td>51</td><td>5</td></tr><tr><td>ian holmes</td><td>mf</td><td>6 (4)</td><td>3</td><td>0</td><td>0</td><td>4</td><td>1</td><td>10 (4)</td><td>4</td></tr><tr><td>steve kindon</td><td>fw</td><td>22 (1)</td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>22 (1)</td><td>14</td></tr><tr><td>mick laverick</td><td>mf</td><td>45</td><td>4</td><td>2</td><td>0</td><td>4</td><td>0</td><td>51</td><td>4</td></tr><tr><td>bernard purdie</td><td>df</td><td>18 (4)</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>20 (4)</td><td>0</td></tr><tr><td>andy rankin</td><td>gk</td><td>24</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>24</td><td>0</td></tr><tr><td>ian robins</td><td>fw</td><td>45</td><td>25</td><td>2</td><td>0</td><td>4</td><td>2</td><td>51</td><td>27</td></tr><tr><td>fred robinson</td><td>df</td><td>30</td><td>1</td><td>2</td><td>0</td><td>4</td><td>0</td><td>36</td><td>1</td></tr><tr><td>tommy smith</td><td>fw</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>brian stanton</td><td>mf</td><td>41</td><td>9</td><td>2</td><td>0</td><td>0</td><td>0</td><td>43</td><td>9</td></tr><tr><td>alan starling</td><td>gk</td><td>22</td><td>0</td><td>2</td><td>0</td><td>4</td><td>0</td><td>28</td><td>0</td></tr><tr><td>dave sutton</td><td>df</td><td>46</td><td>6</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>7</td></tr><tr><td>chris topping</td><td>df</td><td>13</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>15</td><td>0</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(league_goals) FROM table_sql) = (SELECT league_goals FROM table_sql WHERE name = 'ian robins')
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1131.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the player with the highest number of total goals is ian robins</h3>
26
+ <h3>Input Table: 1979 - 80 huddersfield town f.c. season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr><tr><td>jim branagan</td><td>df</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0 (1)</td><td>0</td><td>0 (1)</td><td>0</td></tr><tr><td>malcolm brown</td><td>df</td><td>46</td><td>2</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>3</td></tr><tr><td>david cowling</td><td>mf</td><td>39 (1)</td><td>10</td><td>1</td><td>0</td><td>4</td><td>0</td><td>44 (1)</td><td>10</td></tr><tr><td>peter fletcher</td><td>fw</td><td>30 (8)</td><td>17</td><td>2</td><td>0</td><td>3</td><td>1</td><td>35 (8)</td><td>18</td></tr><tr><td>keith hanvey</td><td>df</td><td>33</td><td>2</td><td>0</td><td>0</td><td>4</td><td>0</td><td>39</td><td>2</td></tr><tr><td>peter hart</td><td>mf</td><td>46</td><td>4</td><td>1</td><td>1</td><td>4</td><td>0</td><td>51</td><td>5</td></tr><tr><td>ian holmes</td><td>mf</td><td>6 (4)</td><td>3</td><td>0</td><td>0</td><td>4</td><td>1</td><td>10 (4)</td><td>4</td></tr><tr><td>steve kindon</td><td>fw</td><td>22 (1)</td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>22 (1)</td><td>14</td></tr><tr><td>mick laverick</td><td>mf</td><td>45</td><td>4</td><td>2</td><td>0</td><td>4</td><td>0</td><td>51</td><td>4</td></tr><tr><td>bernard purdie</td><td>df</td><td>18 (4)</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>20 (4)</td><td>0</td></tr><tr><td>andy rankin</td><td>gk</td><td>24</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>24</td><td>0</td></tr><tr><td>ian robins</td><td>fw</td><td>45</td><td>25</td><td>2</td><td>0</td><td>4</td><td>2</td><td>51</td><td>27</td></tr><tr><td>fred robinson</td><td>df</td><td>30</td><td>1</td><td>2</td><td>0</td><td>4</td><td>0</td><td>36</td><td>1</td></tr><tr><td>tommy smith</td><td>fw</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>brian stanton</td><td>mf</td><td>41</td><td>9</td><td>2</td><td>0</td><td>0</td><td>0</td><td>43</td><td>9</td></tr><tr><td>alan starling</td><td>gk</td><td>22</td><td>0</td><td>2</td><td>0</td><td>4</td><td>0</td><td>28</td><td>0</td></tr><tr><td>dave sutton</td><td>df</td><td>46</td><td>6</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>7</td></tr><tr><td>chris topping</td><td>df</td><td>13</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>15</td><td>0</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(total_goals) FROM table_sql) = (SELECT total_goals FROM table_sql WHERE name = 'ian robins')
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1145.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the format of season 6 is q145</h3>
26
+ <h3>Input Table: none</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>episode</td><td>season</td><td>format</td><td>title</td><td>original_airdate</td></tr><tr><td>217</td><td>1</td><td>h75</td><td>lost smurf</td><td>1988-09-10</td></tr><tr><td>218</td><td>2</td><td>h76</td><td>archives of evil</td><td>1988-09-10</td></tr><tr><td>219</td><td>3</td><td>q143</td><td>bigmouth 's roommate / bungling babysitters</td><td>1988-09-17</td></tr><tr><td>220</td><td>4</td><td>q144</td><td>clockwork 's powerplay / clumsy in command</td><td>1988-09-17</td></tr><tr><td>221</td><td>5</td><td>h77</td><td>don smurfo 's uninvited guests</td><td>1988-09-24</td></tr><tr><td>222</td><td>6</td><td>q145</td><td>denisa 's greedy doll / denisa 's slumber party</td><td>1988-09-24</td></tr><tr><td>223</td><td>7</td><td>q146</td><td>grandpa 's nemesis / grandpa 's walking stick</td><td>1988-10-01</td></tr><tr><td>224</td><td>8</td><td>h78</td><td>a house for nanny</td><td>1988-10-01</td></tr><tr><td>225</td><td>9</td><td>q147</td><td>it 's a smurfy life / land of lost and found</td><td>1988-10-08</td></tr><tr><td>226</td><td>10</td><td>h79</td><td>long live brainy</td><td>1988-10-08</td></tr><tr><td>227</td><td>11</td><td>h80</td><td>a maze of mirrors</td><td>1988-10-15</td></tr><tr><td>228</td><td>12</td><td>q148</td><td>memory melons / nanny 's way</td><td>1988-10-15</td></tr><tr><td>229</td><td>13</td><td>q149</td><td>pappy 's puppy / shutterbug smurfs</td><td>1988-10-22</td></tr><tr><td>230</td><td>14</td><td>q150</td><td>smoogle sings the blues / a smurf for denisa</td><td>1988-10-22</td></tr><tr><td>231</td><td>15</td><td>h81</td><td>smurf the presses</td><td>1988-10-29</td></tr><tr><td>232</td><td>16</td><td>h82</td><td>stealing grandpa 's thunder</td><td>1988-10-29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN format = 'q145' AND season = 6 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1155.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> rodney stuckey led the detroit pistons in points scored in two games during this period of the 2010 - 2011 season</h3>
26
+ <h3>Input Table: 2010 - 11 detroit pistons season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>62</td><td>9999-03-01</td><td>milwaukee</td><td>l 90 - 92 (ot)</td><td>rodney stuckey (25)</td><td>greg monroe , charlie villanueva (9)</td><td>rodney stuckey (5)</td><td>bradley center 11364</td><td>22 - 40</td></tr><tr><td>63</td><td>9999-03-02</td><td>minnesota</td><td>l 105 - 116 (ot)</td><td>austin daye (22)</td><td>greg monroe (11)</td><td>rodney stuckey (10)</td><td>the palace of auburn hills 13122</td><td>22 - 41</td></tr><tr><td>64</td><td>9999-03-06</td><td>washington</td><td>w 113 - 102 (ot)</td><td>tayshaun prince (20)</td><td>greg monroe , rodney stuckey (7)</td><td>rodney stuckey (9)</td><td>the palace of auburn hills 17506</td><td>23 - 41</td></tr><tr><td>65</td><td>9999-03-09</td><td>san antonio</td><td>l 104 - 111 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>tracy mcgrady (9)</td><td>at&t center 18581</td><td>23 - 42</td></tr><tr><td>66</td><td>9999-03-11</td><td>oklahoma city</td><td>l 94 - 104 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>greg monroe , rodney stuckey (6)</td><td>oklahoma city arena 18203</td><td>23 - 43</td></tr><tr><td>67</td><td>9999-03-12</td><td>denver</td><td>l 101 - 131 (ot)</td><td>chris wilcox (21)</td><td>austin daye , ben gordon , greg monroe (6)</td><td>will bynum (10)</td><td>pepsi center 19155</td><td>23 - 44</td></tr><tr><td>68</td><td>9999-03-16</td><td>toronto</td><td>w 107 - 93 (ot)</td><td>richard hamilton (24)</td><td>greg monroe (10)</td><td>rodney stuckey (14)</td><td>the palace of auburn hills 15166</td><td>24 - 44</td></tr><tr><td>69</td><td>9999-03-18</td><td>new york</td><td>w 99 - 95 (ot)</td><td>tayshaun prince (16)</td><td>chris wilcox (12)</td><td>will bynum (5)</td><td>the palace of auburn hills 22076</td><td>25 - 44</td></tr><tr><td>70</td><td>9999-03-20</td><td>atlanta</td><td>l 96 - 104 (ot)</td><td>rodney stuckey (22)</td><td>greg monroe (10)</td><td>rodney stuckey (8)</td><td>philips arena 17580</td><td>25 - 45</td></tr><tr><td>71</td><td>9999-03-23</td><td>miami</td><td>l 94 - 100 (ot)</td><td>richard hamilton (27)</td><td>greg monroe (12)</td><td>rodney stuckey (6)</td><td>the palace of auburn hills 22076</td><td>25 - 46</td></tr><tr><td>72</td><td>9999-03-25</td><td>cleveland</td><td>l 91 - 97 (ot)</td><td>richard hamilton , tayshaun prince (15)</td><td>chris wilcox , greg monroe (8)</td><td>rodney stuckey (4)</td><td>quicken loans arena 19907</td><td>25 - 47</td></tr><tr><td>73</td><td>9999-03-26</td><td>indiana</td><td>w 100 - 88 (ot)</td><td>richard hamilton (23)</td><td>greg monroe (13)</td><td>richard hamilton , rodney stuckey (6)</td><td>the palace of auburn hills 19216</td><td>26 - 47</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE high_points = (SELECT MAX(high_points) FROM table_sql WHERE team = 'detroit pistons')) = 2
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1159.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> there were four instances where there was a tie for most rebounds by detroit pistons players during this period of the 2010 - 2011 season</h3>
26
+ <h3>Input Table: 2010 - 11 detroit pistons season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>62</td><td>9999-03-01</td><td>milwaukee</td><td>l 90 - 92 (ot)</td><td>rodney stuckey (25)</td><td>greg monroe , charlie villanueva (9)</td><td>rodney stuckey (5)</td><td>bradley center 11364</td><td>22 - 40</td></tr><tr><td>63</td><td>9999-03-02</td><td>minnesota</td><td>l 105 - 116 (ot)</td><td>austin daye (22)</td><td>greg monroe (11)</td><td>rodney stuckey (10)</td><td>the palace of auburn hills 13122</td><td>22 - 41</td></tr><tr><td>64</td><td>9999-03-06</td><td>washington</td><td>w 113 - 102 (ot)</td><td>tayshaun prince (20)</td><td>greg monroe , rodney stuckey (7)</td><td>rodney stuckey (9)</td><td>the palace of auburn hills 17506</td><td>23 - 41</td></tr><tr><td>65</td><td>9999-03-09</td><td>san antonio</td><td>l 104 - 111 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>tracy mcgrady (9)</td><td>at&t center 18581</td><td>23 - 42</td></tr><tr><td>66</td><td>9999-03-11</td><td>oklahoma city</td><td>l 94 - 104 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>greg monroe , rodney stuckey (6)</td><td>oklahoma city arena 18203</td><td>23 - 43</td></tr><tr><td>67</td><td>9999-03-12</td><td>denver</td><td>l 101 - 131 (ot)</td><td>chris wilcox (21)</td><td>austin daye , ben gordon , greg monroe (6)</td><td>will bynum (10)</td><td>pepsi center 19155</td><td>23 - 44</td></tr><tr><td>68</td><td>9999-03-16</td><td>toronto</td><td>w 107 - 93 (ot)</td><td>richard hamilton (24)</td><td>greg monroe (10)</td><td>rodney stuckey (14)</td><td>the palace of auburn hills 15166</td><td>24 - 44</td></tr><tr><td>69</td><td>9999-03-18</td><td>new york</td><td>w 99 - 95 (ot)</td><td>tayshaun prince (16)</td><td>chris wilcox (12)</td><td>will bynum (5)</td><td>the palace of auburn hills 22076</td><td>25 - 44</td></tr><tr><td>70</td><td>9999-03-20</td><td>atlanta</td><td>l 96 - 104 (ot)</td><td>rodney stuckey (22)</td><td>greg monroe (10)</td><td>rodney stuckey (8)</td><td>philips arena 17580</td><td>25 - 45</td></tr><tr><td>71</td><td>9999-03-23</td><td>miami</td><td>l 94 - 100 (ot)</td><td>richard hamilton (27)</td><td>greg monroe (12)</td><td>rodney stuckey (6)</td><td>the palace of auburn hills 22076</td><td>25 - 46</td></tr><tr><td>72</td><td>9999-03-25</td><td>cleveland</td><td>l 91 - 97 (ot)</td><td>richard hamilton , tayshaun prince (15)</td><td>chris wilcox , greg monroe (8)</td><td>rodney stuckey (4)</td><td>quicken loans arena 19907</td><td>25 - 47</td></tr><tr><td>73</td><td>9999-03-26</td><td>indiana</td><td>w 100 - 88 (ot)</td><td>richard hamilton (23)</td><td>greg monroe (13)</td><td>richard hamilton , rodney stuckey (6)</td><td>the palace of auburn hills 19216</td><td>26 - 47</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 4 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM (
39
+ SELECT
40
+ COUNT(*)
41
+ FROM table_sql
42
+ WHERE high_rebounds = (
43
+ SELECT MAX(high_rebounds)
44
+ FROM table_sql
45
+ WHERE team = 'detroit pistons'
46
+ )
47
+ GROUP BY date, high_rebounds
48
+ HAVING COUNT(*) > 1
49
+ ) AS subquery;</div>
50
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1190.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> ettore meini won two races in a row , on may 24th and 25th , during the 1933 giro d'italia</h3>
26
+ <h3>Input Table: 1933 giro d'italia</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td>9999-05-06</td><td>milan to turin</td><td>-</td><td>learco guerra ( ita )</td><td>learco guerra ( ita )</td></tr><tr><td>9999-05-07</td><td>turin to genoa</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-08</td><td>genoa to pisa</td><td>-</td><td>learco guerra ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-09</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-10</td><td>pisa to florence</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-11</td><td>florence to grosseto</td><td>-</td><td>learco guerra ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-12</td><td>grosseto to rome</td><td>-</td><td>mario cipriani ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-13</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-14</td><td>rome to naples</td><td>-</td><td>gerard loncke ( bel )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-15</td><td>naples to foggia</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-16</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-17</td><td>foggia to chieti</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-18</td><td>chieti to ascoli piceno</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-19</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-20</td><td>ascoli piceno to riccione</td><td>-</td><td>fernand cornez ( fra )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-21</td><td>riccione to bologna</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-22</td><td>bologna to ferrara</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-23</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-24</td><td>ferrara to udine</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-25</td><td>udine to bassano del grappa</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-26</td><td>bassano del grappa to bolzano</td><td>-</td><td>gerard loncke ( bel )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-27</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-28</td><td>bolzano to milan</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>2023-09-20</td><td>-</td><td>km (mi)</td><td>-</td><td>km (mi)</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE winner = 'ettore meini' AND date = '9999-05-24') = 1
36
+ AND (SELECT COUNT(*) FROM table_sql WHERE winner = 'ettore meini' AND date = '9999-05-25') = 1
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1204.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the score for the game where birmingham city was the home team on 10 march 1984 was 1 - 3</h3>
26
+ <h3>Input Table: 1983 - 84 fa cup</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr><tr><td>1</td><td>notts county</td><td>1 - 2</td><td>everton</td><td>1984-03-10</td></tr><tr><td>2</td><td>sheffield wednesday</td><td>0 - 0</td><td>southampton</td><td>1984-03-11</td></tr><tr><td>replay</td><td>southampton</td><td>5 - 1</td><td>sheffield wednesday</td><td>1984-03-20</td></tr><tr><td>3</td><td>plymouth argyle</td><td>0 - 0</td><td>derby county</td><td>1984-03-10</td></tr><tr><td>replay</td><td>derby county</td><td>0 - 1</td><td>plymouth argyle</td><td>1984-03-14</td></tr><tr><td>4</td><td>birmingham city</td><td>1 - 3</td><td>watford</td><td>1984-03-10</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN score = '1 - 3' AND home_team = 'birmingham city' AND date = '1984-03-10'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END
39
+ FROM table_sql;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1205.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> on march 19 , 1984 , plymouth argyle played derby county</h3>
26
+ <h3>Input Table: 1983 - 84 fa cup</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr><tr><td>1</td><td>notts county</td><td>1 - 2</td><td>everton</td><td>1984-03-10</td></tr><tr><td>2</td><td>sheffield wednesday</td><td>0 - 0</td><td>southampton</td><td>1984-03-11</td></tr><tr><td>replay</td><td>southampton</td><td>5 - 1</td><td>sheffield wednesday</td><td>1984-03-20</td></tr><tr><td>3</td><td>plymouth argyle</td><td>0 - 0</td><td>derby county</td><td>1984-03-10</td></tr><tr><td>replay</td><td>derby county</td><td>0 - 1</td><td>plymouth argyle</td><td>1984-03-14</td></tr><tr><td>4</td><td>birmingham city</td><td>1 - 3</td><td>watford</td><td>1984-03-10</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 0 THEN 'FALSE'
36
+ ELSE 'TRUE'
37
+ END
38
+ FROM table_sql
39
+ WHERE date = '1984-03-19'
40
+ AND (home_team = 'plymouth argyle' OR away_team = 'plymouth argyle')
41
+ AND (home_team = 'derby county' OR away_team = 'derby county');</div>
42
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1206.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> with a tie no 2 , sheffield wednesday is home team</h3>
26
+ <h3>Input Table: 1983 - 84 fa cup</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr><tr><td>1</td><td>notts county</td><td>1 - 2</td><td>everton</td><td>1984-03-10</td></tr><tr><td>2</td><td>sheffield wednesday</td><td>0 - 0</td><td>southampton</td><td>1984-03-11</td></tr><tr><td>replay</td><td>southampton</td><td>5 - 1</td><td>sheffield wednesday</td><td>1984-03-20</td></tr><tr><td>3</td><td>plymouth argyle</td><td>0 - 0</td><td>derby county</td><td>1984-03-10</td></tr><tr><td>replay</td><td>derby county</td><td>0 - 1</td><td>plymouth argyle</td><td>1984-03-14</td></tr><tr><td>4</td><td>birmingham city</td><td>1 - 3</td><td>watford</td><td>1984-03-10</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN home_team = 'sheffield wednesday' AND tie_no = 2 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1218.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> jonathan legear scored four more goals than matias suarez , the next highest ranked player in the belgian first dvision a league who played in the belgian cup</h3>
26
+ <h3>Input Table: 2008 - 09 r.s.c. anderlecht season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr><tr><td>mbark boussoufa</td><td>11</td><td>0</td><td>0</td><td>11</td></tr><tr><td>tom de sutter</td><td>9</td><td>0</td><td>0</td><td>9</td></tr><tr><td>guillaume gillet</td><td>8</td><td>0</td><td>0</td><td>9</td></tr><tr><td>marcin wasilewski</td><td>8</td><td>0</td><td>0</td><td>8</td></tr><tr><td>jonathan legear</td><td>5</td><td>1</td><td>0</td><td>7</td></tr><tr><td>nicolás frutos</td><td>6</td><td>0</td><td>0</td><td>6</td></tr><tr><td>thomas chatelle</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>roland juhász</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>stanislav vlček</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>lucas biglia</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>dmitri bulykin</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>jan polák</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>matías suárez</td><td>1</td><td>0</td><td>1</td><td>3</td></tr><tr><td>jelle van damme</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>oleksandr iakovenko</td><td>2</td><td>0</td><td>0</td><td>2</td></tr><tr><td>hernán losada</td><td>1</td><td>0</td><td>0</td><td>2</td></tr><tr><td>víctor bernárdez</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>bart goor</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>nemanja rnić</td><td>0</td><td>0</td><td>0</td><td>1</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT league FROM table_sql WHERE player = 'jonathan legear') -
36
+ (SELECT league FROM table_sql WHERE player = 'matías suárez') > 4
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1221.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> though four players from belgian first division a are in the top 19 scorers , the top scorer (matias suarez) has 8 fewer goals than mbark boussoufa , who has 11 goals</h3>
26
+ <h3>Input Table: 2008 - 09 r.s.c. anderlecht season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr><tr><td>mbark boussoufa</td><td>11</td><td>0</td><td>0</td><td>11</td></tr><tr><td>tom de sutter</td><td>9</td><td>0</td><td>0</td><td>9</td></tr><tr><td>guillaume gillet</td><td>8</td><td>0</td><td>0</td><td>9</td></tr><tr><td>marcin wasilewski</td><td>8</td><td>0</td><td>0</td><td>8</td></tr><tr><td>jonathan legear</td><td>5</td><td>1</td><td>0</td><td>7</td></tr><tr><td>nicolás frutos</td><td>6</td><td>0</td><td>0</td><td>6</td></tr><tr><td>thomas chatelle</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>roland juhász</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>stanislav vlček</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>lucas biglia</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>dmitri bulykin</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>jan polák</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>matías suárez</td><td>1</td><td>0</td><td>1</td><td>3</td></tr><tr><td>jelle van damme</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>oleksandr iakovenko</td><td>2</td><td>0</td><td>0</td><td>2</td></tr><tr><td>hernán losada</td><td>1</td><td>0</td><td>0</td><td>2</td></tr><tr><td>víctor bernárdez</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>bart goor</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>nemanja rnić</td><td>0</td><td>0</td><td>0</td><td>1</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT total FROM table_sql WHERE player = 'matías suárez') + 8 <
36
+ (SELECT total FROM table_sql WHERE player = 'mbark boussoufa')
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1228.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the lowest attendance figure for a game was 42048</h3>
26
+ <h3>Input Table: 1976 detroit lions season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td>l 10 - 3</td><td>54125</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td></tr><tr><td>3</td><td>1976-09-26</td><td>minnesota vikings</td><td>l 10 - 9</td><td>77292</td></tr><tr><td>4</td><td>1976-10-03</td><td>green bay packers</td><td>l 24 - 14</td><td>55041</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td></tr><tr><td>6</td><td>1976-10-17</td><td>washington redskins</td><td>l 20 - 7</td><td>45908</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td></tr><tr><td>9</td><td>1976-11-07</td><td>minnesota vikings</td><td>l 31 - 23</td><td>46735</td></tr><tr><td>10</td><td>1976-11-14</td><td>new orleans saints</td><td>l 17 - 16</td><td>42048</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td></tr><tr><td>13</td><td>1976-12-05</td><td>new york giants</td><td>l 24 - 10</td><td>66069</td></tr><tr><td>14</td><td>1976-12-11</td><td>los angeles rams</td><td>l 20 - 17</td><td>73470</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN MIN(attendance) = 42048 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1229.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the minnesota vikings defeated the lions in both games they played</h3>
26
+ <h3>Input Table: 1976 detroit lions season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td>l 10 - 3</td><td>54125</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td></tr><tr><td>3</td><td>1976-09-26</td><td>minnesota vikings</td><td>l 10 - 9</td><td>77292</td></tr><tr><td>4</td><td>1976-10-03</td><td>green bay packers</td><td>l 24 - 14</td><td>55041</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td></tr><tr><td>6</td><td>1976-10-17</td><td>washington redskins</td><td>l 20 - 7</td><td>45908</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td></tr><tr><td>9</td><td>1976-11-07</td><td>minnesota vikings</td><td>l 31 - 23</td><td>46735</td></tr><tr><td>10</td><td>1976-11-14</td><td>new orleans saints</td><td>l 17 - 16</td><td>42048</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td></tr><tr><td>13</td><td>1976-12-05</td><td>new york giants</td><td>l 24 - 10</td><td>66069</td></tr><tr><td>14</td><td>1976-12-11</td><td>los angeles rams</td><td>l 20 - 17</td><td>73470</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 2 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE opponent = 'minnesota vikings'
40
+ AND result LIKE 'w%';</div>
41
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1231.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the packers scored the least amount of points (6) in a game versus the lions</h3>
26
+ <h3>Input Table: 1976 detroit lions season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td>l 10 - 3</td><td>54125</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td></tr><tr><td>3</td><td>1976-09-26</td><td>minnesota vikings</td><td>l 10 - 9</td><td>77292</td></tr><tr><td>4</td><td>1976-10-03</td><td>green bay packers</td><td>l 24 - 14</td><td>55041</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td></tr><tr><td>6</td><td>1976-10-17</td><td>washington redskins</td><td>l 20 - 7</td><td>45908</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td></tr><tr><td>9</td><td>1976-11-07</td><td>minnesota vikings</td><td>l 31 - 23</td><td>46735</td></tr><tr><td>10</td><td>1976-11-14</td><td>new orleans saints</td><td>l 17 - 16</td><td>42048</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td></tr><tr><td>13</td><td>1976-12-05</td><td>new york giants</td><td>l 24 - 10</td><td>66069</td></tr><tr><td>14</td><td>1976-12-11</td><td>los angeles rams</td><td>l 20 - 17</td><td>73470</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MIN(SUBSTR(result, INSTR(result, ' ') + 1, INSTR(result, ' - ') - INSTR(result, ' ') - 1))
36
+ FROM table_sql
37
+ WHERE opponent = 'green bay packers') = 6
38
+ THEN 'TRUE'
39
+ ELSE 'FALSE'
40
+ END;</div>
41
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1237.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> episode no 53 in the series was directed by paul holahan</h3>
26
+ <h3>Input Table: list of white collar episodes</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>no_in_series</td><td>no_in_season</td><td>title</td><td>directed_by</td><td>written_by</td><td>us_viewers_(million)</td><td>original_air_date</td><td>production_code</td></tr><tr><td>47</td><td>1</td><td>wanted</td><td>paul holahan</td><td>jeff eastin</td><td>3.21</td><td>2012-07-10</td><td>bcw401</td></tr><tr><td>48</td><td>2</td><td>most wanted</td><td>paul holahan</td><td>mark goffman</td><td>2.98</td><td>2012-07-17</td><td>bcw402</td></tr><tr><td>49</td><td>3</td><td>diminishing returns</td><td>stefan schwartz</td><td>jim campolongo</td><td>3.01</td><td>2012-07-24</td><td>bcw403</td></tr><tr><td>50</td><td>4</td><td>parting shots</td><td>robert duncan mcneill</td><td>alexandra mcnally</td><td>2.82</td><td>2012-07-31</td><td>bcw404</td></tr><tr><td>51</td><td>5</td><td>honor among thieves</td><td>arlene sanford</td><td>joe henderson</td><td>2.93</td><td>2012-08-14</td><td>bcw405</td></tr><tr><td>52</td><td>6</td><td>identity crisis</td><td>david straiton</td><td>channing powell</td><td>3.89</td><td>2012-08-21</td><td>bcw406</td></tr><tr><td>53</td><td>7</td><td>compromising positions</td><td>paul holahan</td><td>matthew negrete</td><td>3.36</td><td>2012-08-28</td><td>bcw407</td></tr><tr><td>54</td><td>8</td><td>ancient history</td><td>russell lee fine</td><td>daniel shattuck</td><td>3.38</td><td>2012-09-04</td><td>bcw408</td></tr><tr><td>55</td><td>9</td><td>gloves off</td><td>renny harlin</td><td>mark goffman</td><td>3.8</td><td>2012-09-11</td><td>bcw409</td></tr><tr><td>56</td><td>10</td><td>vested interest</td><td>russell lee fine</td><td>jeff eastin</td><td>3.41</td><td>2012-09-18</td><td>bcw410</td></tr><tr><td>57</td><td>11</td><td>family business</td><td>paul holahan</td><td>joe henderson</td><td>2.77</td><td>2013-01-22</td><td>bcw411</td></tr><tr><td>58</td><td>12</td><td>brass tacks</td><td>anton cropper</td><td>jim campolongo & alexandra mcnally</td><td>2.61</td><td>2013-01-29</td><td>bcw412</td></tr><tr><td>59</td><td>13</td><td>empire city</td><td>tim dekay</td><td>channing powell & daniel shattuck</td><td>2.28</td><td>2013-02-05</td><td>bcw413</td></tr><tr><td>60</td><td>14</td><td>shoot the moon</td><td>russell lee fine</td><td>matthew negrete & bob derosa</td><td>2.42</td><td>2013-02-19</td><td>bcw414</td></tr><tr><td>61</td><td>15</td><td>the original</td><td>john kretchmer</td><td>mark goffman</td><td>2.12</td><td>2013-02-26</td><td>bcw415</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN directed_by = 'paul holahan' AND no_in_series = 53 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1247.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> 66189 people attended the new orleans saints game with a record of 6 - 1</h3>
26
+ <h3>Input Table: 2001 st. louis rams season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>record</td><td>tv_time</td><td>attendance</td></tr><tr><td>1</td><td>2001-09-09</td><td>philadelphia eagles</td><td>w 20 - 17 (ot)</td><td>1 - 0</td><td>fox 3:15 pm</td><td>66243.0</td></tr><tr><td>2</td><td>2001-09-23</td><td>san francisco 49ers</td><td>w 30 - 26</td><td>2 - 0</td><td>fox 3:15 pm</td><td>67536.0</td></tr><tr><td>3</td><td>2001-09-30</td><td>miami dolphins</td><td>w 42 - 10</td><td>3 - 0</td><td>cbs 12:00 pm</td><td>66046.0</td></tr><tr><td>4</td><td>2001-10-08</td><td>detroit lions</td><td>w 35 - 0</td><td>4 - 0</td><td>abc 8:00 pm</td><td>77765.0</td></tr><tr><td>5</td><td>2001-10-14</td><td>new york giants</td><td>w 15 - 14</td><td>5 - 0</td><td>fox 12:00 pm</td><td>65992.0</td></tr><tr><td>6</td><td>2001-10-21</td><td>new york jets</td><td>w 34 - 14</td><td>6 - 0</td><td>fox 12:00 pm</td><td>78766.0</td></tr><tr><td>7</td><td>2001-10-28</td><td>new orleans saints</td><td>l 34 - 31</td><td>6 - 1</td><td>fox 12:00 pm</td><td>66189.0</td></tr><tr><td>8</td><td>9999-01-01</td><td>-</td><td>-</td><td>-</td><td>-</td><td>nan</td></tr><tr><td>9</td><td>2001-11-11</td><td>carolina panthers</td><td>w 48 - 14</td><td>7 - 1</td><td>fox 12:00 pm</td><td>66069.0</td></tr><tr><td>10</td><td>2001-11-18</td><td>new england patriots</td><td>w 24 - 17</td><td>8 - 1</td><td>espn 7:30 pm</td><td>60292.0</td></tr><tr><td>11</td><td>2001-11-26</td><td>tampa bay buccaneers</td><td>l 24 - 17</td><td>8 - 2</td><td>abc 8:00 pm</td><td>66198.0</td></tr><tr><td>12</td><td>2001-12-02</td><td>atlanta falcons</td><td>w 35 - 6</td><td>9 - 2</td><td>fox 3:15 pm</td><td>60787.0</td></tr><tr><td>13</td><td>2001-12-09</td><td>san francisco 49ers</td><td>w 27 - 14</td><td>10 - 2</td><td>fox 12:00 pm</td><td>66218.0</td></tr><tr><td>14</td><td>2001-12-17</td><td>new orleans saints</td><td>w 34 - 21</td><td>11 - 2</td><td>abc 8:00 pm</td><td>70332.0</td></tr><tr><td>15</td><td>2001-12-23</td><td>carolina panthers</td><td>w 38 - 32</td><td>12 - 2</td><td>fox 12:00 pm</td><td>72438.0</td></tr><tr><td>16</td><td>2001-12-30</td><td>indianapolis colts</td><td>w 42 - 17</td><td>13 - 2</td><td>cbs 12:00 pm</td><td>66084.0</td></tr><tr><td>17</td><td>2002-01-06</td><td>atlanta falcons</td><td>w 31 - 13</td><td>14 - 2</td><td>fox 3:15 pm</td><td>66033.0</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 1 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE attendance = 66189
40
+ AND record = '6 - 1'
41
+ AND opponent = 'new orleans saints';</div>
42
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1248.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> 66084 people attended the indianapolis colts game on december 30 , 2001</h3>
26
+ <h3>Input Table: 2001 st. louis rams season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>record</td><td>tv_time</td><td>attendance</td></tr><tr><td>1</td><td>2001-09-09</td><td>philadelphia eagles</td><td>w 20 - 17 (ot)</td><td>1 - 0</td><td>fox 3:15 pm</td><td>66243.0</td></tr><tr><td>2</td><td>2001-09-23</td><td>san francisco 49ers</td><td>w 30 - 26</td><td>2 - 0</td><td>fox 3:15 pm</td><td>67536.0</td></tr><tr><td>3</td><td>2001-09-30</td><td>miami dolphins</td><td>w 42 - 10</td><td>3 - 0</td><td>cbs 12:00 pm</td><td>66046.0</td></tr><tr><td>4</td><td>2001-10-08</td><td>detroit lions</td><td>w 35 - 0</td><td>4 - 0</td><td>abc 8:00 pm</td><td>77765.0</td></tr><tr><td>5</td><td>2001-10-14</td><td>new york giants</td><td>w 15 - 14</td><td>5 - 0</td><td>fox 12:00 pm</td><td>65992.0</td></tr><tr><td>6</td><td>2001-10-21</td><td>new york jets</td><td>w 34 - 14</td><td>6 - 0</td><td>fox 12:00 pm</td><td>78766.0</td></tr><tr><td>7</td><td>2001-10-28</td><td>new orleans saints</td><td>l 34 - 31</td><td>6 - 1</td><td>fox 12:00 pm</td><td>66189.0</td></tr><tr><td>8</td><td>9999-01-01</td><td>-</td><td>-</td><td>-</td><td>-</td><td>nan</td></tr><tr><td>9</td><td>2001-11-11</td><td>carolina panthers</td><td>w 48 - 14</td><td>7 - 1</td><td>fox 12:00 pm</td><td>66069.0</td></tr><tr><td>10</td><td>2001-11-18</td><td>new england patriots</td><td>w 24 - 17</td><td>8 - 1</td><td>espn 7:30 pm</td><td>60292.0</td></tr><tr><td>11</td><td>2001-11-26</td><td>tampa bay buccaneers</td><td>l 24 - 17</td><td>8 - 2</td><td>abc 8:00 pm</td><td>66198.0</td></tr><tr><td>12</td><td>2001-12-02</td><td>atlanta falcons</td><td>w 35 - 6</td><td>9 - 2</td><td>fox 3:15 pm</td><td>60787.0</td></tr><tr><td>13</td><td>2001-12-09</td><td>san francisco 49ers</td><td>w 27 - 14</td><td>10 - 2</td><td>fox 12:00 pm</td><td>66218.0</td></tr><tr><td>14</td><td>2001-12-17</td><td>new orleans saints</td><td>w 34 - 21</td><td>11 - 2</td><td>abc 8:00 pm</td><td>70332.0</td></tr><tr><td>15</td><td>2001-12-23</td><td>carolina panthers</td><td>w 38 - 32</td><td>12 - 2</td><td>fox 12:00 pm</td><td>72438.0</td></tr><tr><td>16</td><td>2001-12-30</td><td>indianapolis colts</td><td>w 42 - 17</td><td>13 - 2</td><td>cbs 12:00 pm</td><td>66084.0</td></tr><tr><td>17</td><td>2002-01-06</td><td>atlanta falcons</td><td>w 31 - 13</td><td>14 - 2</td><td>fox 3:15 pm</td><td>66033.0</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN attendance = 66084 AND opponent = 'indianapolis colts' AND date = '2001-12-30'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END
39
+ FROM table_sql;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1250.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> both pakistan and yemen have won one bronze medal for wushu at the asian games</h3>
26
+ <h3>Input Table: wushu at the asian games</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr><tr><td>1</td><td>china (chn)</td><td>43</td><td>7</td><td>3</td><td>53</td></tr><tr><td>2</td><td>iran (iri)</td><td>4</td><td>3</td><td>5</td><td>12</td></tr><tr><td>3</td><td>malaysia (mas)</td><td>3</td><td>1</td><td>5</td><td>9</td></tr><tr><td>4</td><td>hong kong (hkg)</td><td>2</td><td>9</td><td>4</td><td>15</td></tr><tr><td>5</td><td>thailand (tha)</td><td>2</td><td>3</td><td>6</td><td>11</td></tr><tr><td>6</td><td>japan (jpn)</td><td>1</td><td>6</td><td>5</td><td>12</td></tr><tr><td>7</td><td>philippines (phi)</td><td>1</td><td>5</td><td>8</td><td>14</td></tr><tr><td>8</td><td>macau (mac)</td><td>1</td><td>5</td><td>4</td><td>10</td></tr><tr><td>9</td><td>south korea (kor)</td><td>1</td><td>4</td><td>6</td><td>11</td></tr><tr><td>10</td><td>chinese taipei (tpe)</td><td>1</td><td>3</td><td>11</td><td>15</td></tr><tr><td>11</td><td>myanmar (mya)</td><td>1</td><td>1</td><td>2</td><td>4</td></tr><tr><td>12</td><td>vietnam (vie)</td><td>0</td><td>9</td><td>7</td><td>16</td></tr><tr><td>13</td><td>indonesia (ina)</td><td>0</td><td>2</td><td>2</td><td>4</td></tr><tr><td>14</td><td>laos (lao)</td><td>0</td><td>1</td><td>5</td><td>6</td></tr><tr><td>15</td><td>india (ind)</td><td>0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>16</td><td>pakistan (pak)</td><td>0</td><td>1</td><td>1</td><td>2</td></tr><tr><td>17</td><td>singapore (sin)</td><td>0</td><td>0</td><td>5</td><td>5</td></tr><tr><td>18</td><td>mongolia (mgl)</td><td>0</td><td>0</td><td>3</td><td>3</td></tr><tr><td>19</td><td>kazakhstan (kaz)</td><td>0</td><td>0</td><td>2</td><td>2</td></tr><tr><td>20</td><td>yemen (yem)</td><td>0</td><td>0</td><td>1</td><td>1</td></tr><tr><td>total</td><td>total</td><td>60</td><td>61</td><td>87</td><td>208</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT bronze FROM table_sql WHERE nation = 'pakistan') = 1
36
+ AND (SELECT bronze FROM table_sql WHERE nation = 'yemen') = 1
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1270.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> carmelo anthony was the leading scorer on the nuggets for 12 out of the 13 games played in november</h3>
26
+ <h3>Input Table: 2009 - 10 denver nuggets season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>3</td><td>9999-11-01</td><td>grizzlies</td><td>w 133 - 123 (ot)</td><td>carmelo anthony (42)</td><td>nenê (9)</td><td>chauncey billups (12)</td><td>pepsi center 15823</td><td>3 - 0</td></tr><tr><td>4</td><td>9999-11-03</td><td>pacers</td><td>w 111 - 93 (ot)</td><td>carmelo anthony (25)</td><td>nenê (13)</td><td>anthony carter (5)</td><td>conseco fieldhouse 10627</td><td>4 - 0</td></tr><tr><td>5</td><td>9999-11-04</td><td>nets</td><td>w 122 - 94 (ot)</td><td>ty lawson (23)</td><td>kenyon martin (10)</td><td>chauncey billups (5)</td><td>izod center 15319</td><td>5 - 0</td></tr><tr><td>7</td><td>9999-11-07</td><td>hawks</td><td>l 100 - 125 (ot)</td><td>carmelo anthony (30)</td><td>chris andersen (11)</td><td>chauncey billups (7)</td><td>philips arena 17801</td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-10</td><td>bulls</td><td>w 90 - 89 (ot)</td><td>carmelo anthony (20)</td><td>nenê (12)</td><td>chauncey billups (6)</td><td>united center 21409</td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-11</td><td>bucks</td><td>l 102 - 108 (ot)</td><td>carmelo anthony (32)</td><td>carmelo anthony (10)</td><td>chauncey billups , ty lawson (5)</td><td>bradley center 12987</td><td>6 - 3</td></tr><tr><td>10</td><td>9999-11-13</td><td>lakers</td><td>w 105 - 79 (ot)</td><td>carmelo anthony (25)</td><td>chris andersen (11)</td><td>chauncey billups (8)</td><td>pepsi center 19141</td><td>7 - 3</td></tr><tr><td>11</td><td>9999-11-17</td><td>raptors</td><td>w 130 - 112 (ot)</td><td>carmelo anthony (32)</td><td>nenê (10)</td><td>chauncey billups (10)</td><td>pepsi center 16446</td><td>8 - 3</td></tr><tr><td>12</td><td>9999-11-20</td><td>clippers</td><td>l 99 - 106 (ot)</td><td>carmelo anthony (37)</td><td>nenê (12)</td><td>chauncey billups (7)</td><td>staples center 18155</td><td>8 - 4</td></tr><tr><td>13</td><td>9999-11-21</td><td>bulls</td><td>w 112 - 93 (ot)</td><td>carmelo anthony (30)</td><td>carmelo anthony , kenyon martin (11)</td><td>carmelo anthony (7)</td><td>pepsi center 19359</td><td>9 - 4</td></tr><tr><td>14</td><td>9999-11-24</td><td>nets</td><td>w 101 - 87 (ot)</td><td>carmelo anthony (27)</td><td>nenê (9)</td><td>chauncey billups (7)</td><td>pepsi center 16307</td><td>10 - 4</td></tr><tr><td>15</td><td>9999-11-25</td><td>timberwolves</td><td>w 124 - 111 (ot)</td><td>carmelo anthony (22)</td><td>nenê (8)</td><td>nenê , ty lawson (6)</td><td>target center 13101</td><td>11 - 4</td></tr><tr><td>16</td><td>9999-11-27</td><td>knicks</td><td>w 128 - 125 (ot)</td><td>carmelo anthony (50)</td><td>nenê , kenyon martin (11)</td><td>chauncey billups (8)</td><td>pepsi center 19155</td><td>12 - 4</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE high_points = (SELECT MAX(high_points) FROM table_sql WHERE team = 'nuggets' AND date LIKE '9999-11%')) = 12
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1271.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the nuggets won all six games played at the pepsi center during this span</h3>
26
+ <h3>Input Table: 2009 - 10 denver nuggets season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>3</td><td>9999-11-01</td><td>grizzlies</td><td>w 133 - 123 (ot)</td><td>carmelo anthony (42)</td><td>nenê (9)</td><td>chauncey billups (12)</td><td>pepsi center 15823</td><td>3 - 0</td></tr><tr><td>4</td><td>9999-11-03</td><td>pacers</td><td>w 111 - 93 (ot)</td><td>carmelo anthony (25)</td><td>nenê (13)</td><td>anthony carter (5)</td><td>conseco fieldhouse 10627</td><td>4 - 0</td></tr><tr><td>5</td><td>9999-11-04</td><td>nets</td><td>w 122 - 94 (ot)</td><td>ty lawson (23)</td><td>kenyon martin (10)</td><td>chauncey billups (5)</td><td>izod center 15319</td><td>5 - 0</td></tr><tr><td>7</td><td>9999-11-07</td><td>hawks</td><td>l 100 - 125 (ot)</td><td>carmelo anthony (30)</td><td>chris andersen (11)</td><td>chauncey billups (7)</td><td>philips arena 17801</td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-10</td><td>bulls</td><td>w 90 - 89 (ot)</td><td>carmelo anthony (20)</td><td>nenê (12)</td><td>chauncey billups (6)</td><td>united center 21409</td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-11</td><td>bucks</td><td>l 102 - 108 (ot)</td><td>carmelo anthony (32)</td><td>carmelo anthony (10)</td><td>chauncey billups , ty lawson (5)</td><td>bradley center 12987</td><td>6 - 3</td></tr><tr><td>10</td><td>9999-11-13</td><td>lakers</td><td>w 105 - 79 (ot)</td><td>carmelo anthony (25)</td><td>chris andersen (11)</td><td>chauncey billups (8)</td><td>pepsi center 19141</td><td>7 - 3</td></tr><tr><td>11</td><td>9999-11-17</td><td>raptors</td><td>w 130 - 112 (ot)</td><td>carmelo anthony (32)</td><td>nenê (10)</td><td>chauncey billups (10)</td><td>pepsi center 16446</td><td>8 - 3</td></tr><tr><td>12</td><td>9999-11-20</td><td>clippers</td><td>l 99 - 106 (ot)</td><td>carmelo anthony (37)</td><td>nenê (12)</td><td>chauncey billups (7)</td><td>staples center 18155</td><td>8 - 4</td></tr><tr><td>13</td><td>9999-11-21</td><td>bulls</td><td>w 112 - 93 (ot)</td><td>carmelo anthony (30)</td><td>carmelo anthony , kenyon martin (11)</td><td>carmelo anthony (7)</td><td>pepsi center 19359</td><td>9 - 4</td></tr><tr><td>14</td><td>9999-11-24</td><td>nets</td><td>w 101 - 87 (ot)</td><td>carmelo anthony (27)</td><td>nenê (9)</td><td>chauncey billups (7)</td><td>pepsi center 16307</td><td>10 - 4</td></tr><tr><td>15</td><td>9999-11-25</td><td>timberwolves</td><td>w 124 - 111 (ot)</td><td>carmelo anthony (22)</td><td>nenê (8)</td><td>nenê , ty lawson (6)</td><td>target center 13101</td><td>11 - 4</td></tr><tr><td>16</td><td>9999-11-27</td><td>knicks</td><td>w 128 - 125 (ot)</td><td>carmelo anthony (50)</td><td>nenê , kenyon martin (11)</td><td>chauncey billups (8)</td><td>pepsi center 19155</td><td>12 - 4</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 6 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE location_attendance LIKE 'pepsi center%'
40
+ AND record LIKE '% - 0';</div>
41
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1274.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> chauncey billups led or was tied for the lead in assists for 10 out of 13 games</h3>
26
+ <h3>Input Table: 2009 - 10 denver nuggets season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>3</td><td>9999-11-01</td><td>grizzlies</td><td>w 133 - 123 (ot)</td><td>carmelo anthony (42)</td><td>nenê (9)</td><td>chauncey billups (12)</td><td>pepsi center 15823</td><td>3 - 0</td></tr><tr><td>4</td><td>9999-11-03</td><td>pacers</td><td>w 111 - 93 (ot)</td><td>carmelo anthony (25)</td><td>nenê (13)</td><td>anthony carter (5)</td><td>conseco fieldhouse 10627</td><td>4 - 0</td></tr><tr><td>5</td><td>9999-11-04</td><td>nets</td><td>w 122 - 94 (ot)</td><td>ty lawson (23)</td><td>kenyon martin (10)</td><td>chauncey billups (5)</td><td>izod center 15319</td><td>5 - 0</td></tr><tr><td>7</td><td>9999-11-07</td><td>hawks</td><td>l 100 - 125 (ot)</td><td>carmelo anthony (30)</td><td>chris andersen (11)</td><td>chauncey billups (7)</td><td>philips arena 17801</td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-10</td><td>bulls</td><td>w 90 - 89 (ot)</td><td>carmelo anthony (20)</td><td>nenê (12)</td><td>chauncey billups (6)</td><td>united center 21409</td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-11</td><td>bucks</td><td>l 102 - 108 (ot)</td><td>carmelo anthony (32)</td><td>carmelo anthony (10)</td><td>chauncey billups , ty lawson (5)</td><td>bradley center 12987</td><td>6 - 3</td></tr><tr><td>10</td><td>9999-11-13</td><td>lakers</td><td>w 105 - 79 (ot)</td><td>carmelo anthony (25)</td><td>chris andersen (11)</td><td>chauncey billups (8)</td><td>pepsi center 19141</td><td>7 - 3</td></tr><tr><td>11</td><td>9999-11-17</td><td>raptors</td><td>w 130 - 112 (ot)</td><td>carmelo anthony (32)</td><td>nenê (10)</td><td>chauncey billups (10)</td><td>pepsi center 16446</td><td>8 - 3</td></tr><tr><td>12</td><td>9999-11-20</td><td>clippers</td><td>l 99 - 106 (ot)</td><td>carmelo anthony (37)</td><td>nenê (12)</td><td>chauncey billups (7)</td><td>staples center 18155</td><td>8 - 4</td></tr><tr><td>13</td><td>9999-11-21</td><td>bulls</td><td>w 112 - 93 (ot)</td><td>carmelo anthony (30)</td><td>carmelo anthony , kenyon martin (11)</td><td>carmelo anthony (7)</td><td>pepsi center 19359</td><td>9 - 4</td></tr><tr><td>14</td><td>9999-11-24</td><td>nets</td><td>w 101 - 87 (ot)</td><td>carmelo anthony (27)</td><td>nenê (9)</td><td>chauncey billups (7)</td><td>pepsi center 16307</td><td>10 - 4</td></tr><tr><td>15</td><td>9999-11-25</td><td>timberwolves</td><td>w 124 - 111 (ot)</td><td>carmelo anthony (22)</td><td>nenê (8)</td><td>nenê , ty lawson (6)</td><td>target center 13101</td><td>11 - 4</td></tr><tr><td>16</td><td>9999-11-27</td><td>knicks</td><td>w 128 - 125 (ot)</td><td>carmelo anthony (50)</td><td>nenê , kenyon martin (11)</td><td>chauncey billups (8)</td><td>pepsi center 19155</td><td>12 - 4</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE high_assists >= (SELECT MAX(high_assists) FROM table_sql)) = 10
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-128.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> greg ostertag played the center position for the jazz from 1995 to 2004 and then from 2005 to 2006</h3>
26
+ <h3>Input Table: utah jazz all - time roster</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school_/_club_team</td></tr><tr><td>mehmet okur</td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td>efes pilsen ( turkey )</td></tr><tr><td>josã ortiz</td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td>oregon state</td></tr><tr><td>greg ostertag</td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td>kansas</td></tr><tr><td>dan o 'sullivan</td><td>united states</td><td>center</td><td>1990 - 91</td><td>fordham</td></tr><tr><td>andre owens</td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE player = 'greg ostertag' AND position = 'center' AND years_for_jazz = '1995-2004, 2005-2006') > 0
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1295.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> one athlete received a medal for pommel horse</h3>
26
+ <h3>Input Table: list of multiple olympic medalists</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr><tr><td>1</td><td>1896-04-06</td><td>james connolly</td><td>united states</td><td>athletics</td><td>triple jump g</td></tr><tr><td>1</td><td>1896-04-06</td><td>alexandre tuffère</td><td>france</td><td>athletics</td><td>triple jump s</td></tr><tr><td>1</td><td>1896-04-06</td><td>ioannis persakis</td><td>greece</td><td>athletics</td><td>triple jump b</td></tr><tr><td>1</td><td>1896-04-06</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>discus g</td></tr><tr><td>1</td><td>1896-04-06</td><td>panagiotis paraskevopoulos</td><td>greece</td><td>athletics</td><td>discus s</td></tr><tr><td>1</td><td>1896-04-06</td><td>sotirios versis</td><td>greece</td><td>athletics</td><td>discus b</td></tr><tr><td>2</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>long jump s</td></tr><tr><td>2</td><td>1896-04-07</td><td>james connolly</td><td>united states</td><td>athletics</td><td>long jump b</td></tr><tr><td>3</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>shot put g</td></tr><tr><td>3</td><td>1896-04-09</td><td>carl schuhmann</td><td>germany</td><td>gymnastics</td><td>vault g</td></tr><tr><td>3</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>vault b</td></tr><tr><td>4</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>pommel horse s</td></tr><tr><td>5</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>rings s</td></tr><tr><td>6</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>horizontal bar g</td></tr><tr><td>6</td><td>1900-07-16</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>standing triple jump b</td></tr><tr><td>6</td><td>1904-09-03</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing triple jump g</td></tr><tr><td>7</td><td>1908-07-20</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing long jump g</td></tr><tr><td>8</td><td>1908-07-23</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing high jump g</td></tr><tr><td>8</td><td>1920-07-29</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team 300 m / 600 m military rifle , prone g</td></tr><tr><td>9</td><td>1920-07-30</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>300 m military rifle , standing g</td></tr><tr><td>10</td><td>1920-07-31</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team free rifle g</td></tr><tr><td>11</td><td>1924-06-27</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>600 m free rifle s</td></tr><tr><td>11</td><td>1928-08-03</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>5000 m s</td></tr><tr><td>12</td><td>1928-08-04</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>3000 m steeplechase s</td></tr><tr><td>12</td><td>1960-09-02</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team foil s</td></tr><tr><td>13</td><td>1960-09-09</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team épée g</td></tr><tr><td>13</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>team g</td></tr><tr><td>14</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>all - around s</td></tr><tr><td>15</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>vault s</td></tr><tr><td>16</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>uneven bars b</td></tr><tr><td>17</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>balance beam b</td></tr><tr><td>18</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>floor exercise g</td></tr><tr><td>18</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m butterfly s</td></tr><tr><td>19</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 x 200 m freestyle g</td></tr><tr><td>20</td><td>2012-08-02</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m individual medley g</td></tr><tr><td>21</td><td>2012-08-03</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>100 m butterfly g</td></tr><tr><td>22</td><td>2012-08-04</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 100 m medley relay g</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) > 0 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE record_medal_event = 'pommel horse';</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1296.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> three athletes received medals in gymnastics</h3>
26
+ <h3>Input Table: list of multiple olympic medalists</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr><tr><td>1</td><td>1896-04-06</td><td>james connolly</td><td>united states</td><td>athletics</td><td>triple jump g</td></tr><tr><td>1</td><td>1896-04-06</td><td>alexandre tuffère</td><td>france</td><td>athletics</td><td>triple jump s</td></tr><tr><td>1</td><td>1896-04-06</td><td>ioannis persakis</td><td>greece</td><td>athletics</td><td>triple jump b</td></tr><tr><td>1</td><td>1896-04-06</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>discus g</td></tr><tr><td>1</td><td>1896-04-06</td><td>panagiotis paraskevopoulos</td><td>greece</td><td>athletics</td><td>discus s</td></tr><tr><td>1</td><td>1896-04-06</td><td>sotirios versis</td><td>greece</td><td>athletics</td><td>discus b</td></tr><tr><td>2</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>long jump s</td></tr><tr><td>2</td><td>1896-04-07</td><td>james connolly</td><td>united states</td><td>athletics</td><td>long jump b</td></tr><tr><td>3</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>shot put g</td></tr><tr><td>3</td><td>1896-04-09</td><td>carl schuhmann</td><td>germany</td><td>gymnastics</td><td>vault g</td></tr><tr><td>3</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>vault b</td></tr><tr><td>4</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>pommel horse s</td></tr><tr><td>5</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>rings s</td></tr><tr><td>6</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>horizontal bar g</td></tr><tr><td>6</td><td>1900-07-16</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>standing triple jump b</td></tr><tr><td>6</td><td>1904-09-03</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing triple jump g</td></tr><tr><td>7</td><td>1908-07-20</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing long jump g</td></tr><tr><td>8</td><td>1908-07-23</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing high jump g</td></tr><tr><td>8</td><td>1920-07-29</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team 300 m / 600 m military rifle , prone g</td></tr><tr><td>9</td><td>1920-07-30</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>300 m military rifle , standing g</td></tr><tr><td>10</td><td>1920-07-31</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team free rifle g</td></tr><tr><td>11</td><td>1924-06-27</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>600 m free rifle s</td></tr><tr><td>11</td><td>1928-08-03</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>5000 m s</td></tr><tr><td>12</td><td>1928-08-04</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>3000 m steeplechase s</td></tr><tr><td>12</td><td>1960-09-02</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team foil s</td></tr><tr><td>13</td><td>1960-09-09</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team épée g</td></tr><tr><td>13</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>team g</td></tr><tr><td>14</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>all - around s</td></tr><tr><td>15</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>vault s</td></tr><tr><td>16</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>uneven bars b</td></tr><tr><td>17</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>balance beam b</td></tr><tr><td>18</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>floor exercise g</td></tr><tr><td>18</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m butterfly s</td></tr><tr><td>19</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 x 200 m freestyle g</td></tr><tr><td>20</td><td>2012-08-02</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m individual medley g</td></tr><tr><td>21</td><td>2012-08-03</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>100 m butterfly g</td></tr><tr><td>22</td><td>2012-08-04</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 100 m medley relay g</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(DISTINCT athlete) = 3 AND sport = 'gymnastics'
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END
39
+ FROM table_sql;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1297.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> michael phelps has less medals than larisa latyna</h3>
26
+ <h3>Input Table: list of multiple olympic medalists</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr><tr><td>1</td><td>1896-04-06</td><td>james connolly</td><td>united states</td><td>athletics</td><td>triple jump g</td></tr><tr><td>1</td><td>1896-04-06</td><td>alexandre tuffère</td><td>france</td><td>athletics</td><td>triple jump s</td></tr><tr><td>1</td><td>1896-04-06</td><td>ioannis persakis</td><td>greece</td><td>athletics</td><td>triple jump b</td></tr><tr><td>1</td><td>1896-04-06</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>discus g</td></tr><tr><td>1</td><td>1896-04-06</td><td>panagiotis paraskevopoulos</td><td>greece</td><td>athletics</td><td>discus s</td></tr><tr><td>1</td><td>1896-04-06</td><td>sotirios versis</td><td>greece</td><td>athletics</td><td>discus b</td></tr><tr><td>2</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>long jump s</td></tr><tr><td>2</td><td>1896-04-07</td><td>james connolly</td><td>united states</td><td>athletics</td><td>long jump b</td></tr><tr><td>3</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>shot put g</td></tr><tr><td>3</td><td>1896-04-09</td><td>carl schuhmann</td><td>germany</td><td>gymnastics</td><td>vault g</td></tr><tr><td>3</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>vault b</td></tr><tr><td>4</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>pommel horse s</td></tr><tr><td>5</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>rings s</td></tr><tr><td>6</td><td>1896-04-09</td><td>hermann weingärtner</td><td>germany</td><td>gymnastics</td><td>horizontal bar g</td></tr><tr><td>6</td><td>1900-07-16</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>standing triple jump b</td></tr><tr><td>6</td><td>1904-09-03</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing triple jump g</td></tr><tr><td>7</td><td>1908-07-20</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing long jump g</td></tr><tr><td>8</td><td>1908-07-23</td><td>ray ewry</td><td>united states</td><td>athletics</td><td>standing high jump g</td></tr><tr><td>8</td><td>1920-07-29</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team 300 m / 600 m military rifle , prone g</td></tr><tr><td>9</td><td>1920-07-30</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>300 m military rifle , standing g</td></tr><tr><td>10</td><td>1920-07-31</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>team free rifle g</td></tr><tr><td>11</td><td>1924-06-27</td><td>carl osburn</td><td>united states</td><td>shooting</td><td>600 m free rifle s</td></tr><tr><td>11</td><td>1928-08-03</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>5000 m s</td></tr><tr><td>12</td><td>1928-08-04</td><td>paavo nurmi</td><td>finland</td><td>athletics</td><td>3000 m steeplechase s</td></tr><tr><td>12</td><td>1960-09-02</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team foil s</td></tr><tr><td>13</td><td>1960-09-09</td><td>edoardo mangiarotti</td><td>italy</td><td>fencing</td><td>team épée g</td></tr><tr><td>13</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>team g</td></tr><tr><td>14</td><td>1964-10-21</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>all - around s</td></tr><tr><td>15</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>vault s</td></tr><tr><td>16</td><td>1964-10-22</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>uneven bars b</td></tr><tr><td>17</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>balance beam b</td></tr><tr><td>18</td><td>1964-10-23</td><td>larisa latynina</td><td>soviet union</td><td>gymnastics</td><td>floor exercise g</td></tr><tr><td>18</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m butterfly s</td></tr><tr><td>19</td><td>2012-07-31</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 x 200 m freestyle g</td></tr><tr><td>20</td><td>2012-08-02</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>200 m individual medley g</td></tr><tr><td>21</td><td>2012-08-03</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>100 m butterfly g</td></tr><tr><td>22</td><td>2012-08-04</td><td>michael phelps</td><td>united states</td><td>swimming</td><td>4 100 m medley relay g</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT medal_count FROM table_sql WHERE athlete = 'michael phelps') <
36
+ (SELECT medal_count FROM table_sql WHERE athlete = 'larisa latynina')
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1330.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the lowest attendance figure for a game was 12376</h3>
26
+ <h3>Input Table: 2009 - 10 charlotte bobcats season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>47</td><td>01-02-9999</td><td>portland</td><td>l 79 - 98 (ot)</td><td>raymond felton (23)</td><td>gerald wallace (10)</td><td>stephen jackson (4)</td><td>rose garden 20106</td><td>24 - 23</td></tr><tr><td>48</td><td>9999-02-03</td><td>la lakers</td><td>l 97 - 99 (ot)</td><td>stephen jackson (30)</td><td>nazr mohammed (17)</td><td>boris diaw (5)</td><td>staples center 18997</td><td>24 - 24</td></tr><tr><td>49</td><td>9999-02-06</td><td>new orleans</td><td>l 99 - 104 (ot)</td><td>stephen jackson (26)</td><td>boris diaw (8)</td><td>raymond felton (7)</td><td>time warner cable arena 19164</td><td>24 - 25</td></tr><tr><td>50</td><td>9999-02-09</td><td>washington</td><td>w 94 - 92 (ot)</td><td>stephen jackson (22)</td><td>nazr mohammed (10)</td><td>raymond felton (5)</td><td>time warner cable arena 12376</td><td>25 - 25</td></tr><tr><td>51</td><td>01-02-10</td><td>minnesota</td><td>w 93 - 92 (ot)</td><td>stephen jackson (33)</td><td>nazr mohammed (20)</td><td>dj augustin (7)</td><td>target center 13352</td><td>26 - 25</td></tr><tr><td>52</td><td>01-02-16</td><td>new jersey</td><td>l 94 - 103 (ot)</td><td>gerald wallace (21)</td><td>gerald wallace , boris diaw (10)</td><td>stephen jackson (5)</td><td>time warner cable arena 13712</td><td>26 - 26</td></tr><tr><td>53</td><td>9999-02-19</td><td>cleveland</td><td>w 110 - 93 (ot)</td><td>stephen jackson (29)</td><td>tyrus thomas (12)</td><td>boris diaw (9)</td><td>time warner cable arena 19568</td><td>27 - 26</td></tr><tr><td>54</td><td>9999-02-20</td><td>milwaukee</td><td>l 88 - 93 (ot)</td><td>stephen jackson (35)</td><td>tyrus thomas (11)</td><td>stephen jackson (5)</td><td>bradley center 17174</td><td>27 - 27</td></tr><tr><td>55</td><td>9999-02-22</td><td>la clippers</td><td>l 94 - 98 (ot)</td><td>gerald wallace (32)</td><td>gerald wallace (12)</td><td>boris diaw , raymond felton (9)</td><td>staples center 15892</td><td>27 - 28</td></tr><tr><td>56</td><td>9999-02-24</td><td>utah</td><td>l 93 - 102 (ot)</td><td>gerald wallace (27)</td><td>gerald wallace (8)</td><td>raymond felton (5)</td><td>energysolutions arena 19911</td><td>27 - 29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN MIN(location_attendance) = 12376 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1331.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> stephen jackson led the team in points for the most games</h3>
26
+ <h3>Input Table: 2009 - 10 charlotte bobcats season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>47</td><td>01-02-9999</td><td>portland</td><td>l 79 - 98 (ot)</td><td>raymond felton (23)</td><td>gerald wallace (10)</td><td>stephen jackson (4)</td><td>rose garden 20106</td><td>24 - 23</td></tr><tr><td>48</td><td>9999-02-03</td><td>la lakers</td><td>l 97 - 99 (ot)</td><td>stephen jackson (30)</td><td>nazr mohammed (17)</td><td>boris diaw (5)</td><td>staples center 18997</td><td>24 - 24</td></tr><tr><td>49</td><td>9999-02-06</td><td>new orleans</td><td>l 99 - 104 (ot)</td><td>stephen jackson (26)</td><td>boris diaw (8)</td><td>raymond felton (7)</td><td>time warner cable arena 19164</td><td>24 - 25</td></tr><tr><td>50</td><td>9999-02-09</td><td>washington</td><td>w 94 - 92 (ot)</td><td>stephen jackson (22)</td><td>nazr mohammed (10)</td><td>raymond felton (5)</td><td>time warner cable arena 12376</td><td>25 - 25</td></tr><tr><td>51</td><td>01-02-10</td><td>minnesota</td><td>w 93 - 92 (ot)</td><td>stephen jackson (33)</td><td>nazr mohammed (20)</td><td>dj augustin (7)</td><td>target center 13352</td><td>26 - 25</td></tr><tr><td>52</td><td>01-02-16</td><td>new jersey</td><td>l 94 - 103 (ot)</td><td>gerald wallace (21)</td><td>gerald wallace , boris diaw (10)</td><td>stephen jackson (5)</td><td>time warner cable arena 13712</td><td>26 - 26</td></tr><tr><td>53</td><td>9999-02-19</td><td>cleveland</td><td>w 110 - 93 (ot)</td><td>stephen jackson (29)</td><td>tyrus thomas (12)</td><td>boris diaw (9)</td><td>time warner cable arena 19568</td><td>27 - 26</td></tr><tr><td>54</td><td>9999-02-20</td><td>milwaukee</td><td>l 88 - 93 (ot)</td><td>stephen jackson (35)</td><td>tyrus thomas (11)</td><td>stephen jackson (5)</td><td>bradley center 17174</td><td>27 - 27</td></tr><tr><td>55</td><td>9999-02-22</td><td>la clippers</td><td>l 94 - 98 (ot)</td><td>gerald wallace (32)</td><td>gerald wallace (12)</td><td>boris diaw , raymond felton (9)</td><td>staples center 15892</td><td>27 - 28</td></tr><tr><td>56</td><td>9999-02-24</td><td>utah</td><td>l 93 - 102 (ot)</td><td>gerald wallace (27)</td><td>gerald wallace (8)</td><td>raymond felton (5)</td><td>energysolutions arena 19911</td><td>27 - 29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE high_points = (SELECT MAX(high_points) FROM table_sql)) > 1
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1332.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the most rebounds by a bobcats player in one game was 20</h3>
26
+ <h3>Input Table: 2009 - 10 charlotte bobcats season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>47</td><td>01-02-9999</td><td>portland</td><td>l 79 - 98 (ot)</td><td>raymond felton (23)</td><td>gerald wallace (10)</td><td>stephen jackson (4)</td><td>rose garden 20106</td><td>24 - 23</td></tr><tr><td>48</td><td>9999-02-03</td><td>la lakers</td><td>l 97 - 99 (ot)</td><td>stephen jackson (30)</td><td>nazr mohammed (17)</td><td>boris diaw (5)</td><td>staples center 18997</td><td>24 - 24</td></tr><tr><td>49</td><td>9999-02-06</td><td>new orleans</td><td>l 99 - 104 (ot)</td><td>stephen jackson (26)</td><td>boris diaw (8)</td><td>raymond felton (7)</td><td>time warner cable arena 19164</td><td>24 - 25</td></tr><tr><td>50</td><td>9999-02-09</td><td>washington</td><td>w 94 - 92 (ot)</td><td>stephen jackson (22)</td><td>nazr mohammed (10)</td><td>raymond felton (5)</td><td>time warner cable arena 12376</td><td>25 - 25</td></tr><tr><td>51</td><td>01-02-10</td><td>minnesota</td><td>w 93 - 92 (ot)</td><td>stephen jackson (33)</td><td>nazr mohammed (20)</td><td>dj augustin (7)</td><td>target center 13352</td><td>26 - 25</td></tr><tr><td>52</td><td>01-02-16</td><td>new jersey</td><td>l 94 - 103 (ot)</td><td>gerald wallace (21)</td><td>gerald wallace , boris diaw (10)</td><td>stephen jackson (5)</td><td>time warner cable arena 13712</td><td>26 - 26</td></tr><tr><td>53</td><td>9999-02-19</td><td>cleveland</td><td>w 110 - 93 (ot)</td><td>stephen jackson (29)</td><td>tyrus thomas (12)</td><td>boris diaw (9)</td><td>time warner cable arena 19568</td><td>27 - 26</td></tr><tr><td>54</td><td>9999-02-20</td><td>milwaukee</td><td>l 88 - 93 (ot)</td><td>stephen jackson (35)</td><td>tyrus thomas (11)</td><td>stephen jackson (5)</td><td>bradley center 17174</td><td>27 - 27</td></tr><tr><td>55</td><td>9999-02-22</td><td>la clippers</td><td>l 94 - 98 (ot)</td><td>gerald wallace (32)</td><td>gerald wallace (12)</td><td>boris diaw , raymond felton (9)</td><td>staples center 15892</td><td>27 - 28</td></tr><tr><td>56</td><td>9999-02-24</td><td>utah</td><td>l 93 - 102 (ot)</td><td>gerald wallace (27)</td><td>gerald wallace (8)</td><td>raymond felton (5)</td><td>energysolutions arena 19911</td><td>27 - 29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(high_rebounds) FROM table_sql) = 20
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1333.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> raymond felton led the team in assists 4 different times</h3>
26
+ <h3>Input Table: 2009 - 10 charlotte bobcats season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>47</td><td>01-02-9999</td><td>portland</td><td>l 79 - 98 (ot)</td><td>raymond felton (23)</td><td>gerald wallace (10)</td><td>stephen jackson (4)</td><td>rose garden 20106</td><td>24 - 23</td></tr><tr><td>48</td><td>9999-02-03</td><td>la lakers</td><td>l 97 - 99 (ot)</td><td>stephen jackson (30)</td><td>nazr mohammed (17)</td><td>boris diaw (5)</td><td>staples center 18997</td><td>24 - 24</td></tr><tr><td>49</td><td>9999-02-06</td><td>new orleans</td><td>l 99 - 104 (ot)</td><td>stephen jackson (26)</td><td>boris diaw (8)</td><td>raymond felton (7)</td><td>time warner cable arena 19164</td><td>24 - 25</td></tr><tr><td>50</td><td>9999-02-09</td><td>washington</td><td>w 94 - 92 (ot)</td><td>stephen jackson (22)</td><td>nazr mohammed (10)</td><td>raymond felton (5)</td><td>time warner cable arena 12376</td><td>25 - 25</td></tr><tr><td>51</td><td>01-02-10</td><td>minnesota</td><td>w 93 - 92 (ot)</td><td>stephen jackson (33)</td><td>nazr mohammed (20)</td><td>dj augustin (7)</td><td>target center 13352</td><td>26 - 25</td></tr><tr><td>52</td><td>01-02-16</td><td>new jersey</td><td>l 94 - 103 (ot)</td><td>gerald wallace (21)</td><td>gerald wallace , boris diaw (10)</td><td>stephen jackson (5)</td><td>time warner cable arena 13712</td><td>26 - 26</td></tr><tr><td>53</td><td>9999-02-19</td><td>cleveland</td><td>w 110 - 93 (ot)</td><td>stephen jackson (29)</td><td>tyrus thomas (12)</td><td>boris diaw (9)</td><td>time warner cable arena 19568</td><td>27 - 26</td></tr><tr><td>54</td><td>9999-02-20</td><td>milwaukee</td><td>l 88 - 93 (ot)</td><td>stephen jackson (35)</td><td>tyrus thomas (11)</td><td>stephen jackson (5)</td><td>bradley center 17174</td><td>27 - 27</td></tr><tr><td>55</td><td>9999-02-22</td><td>la clippers</td><td>l 94 - 98 (ot)</td><td>gerald wallace (32)</td><td>gerald wallace (12)</td><td>boris diaw , raymond felton (9)</td><td>staples center 15892</td><td>27 - 28</td></tr><tr><td>56</td><td>9999-02-24</td><td>utah</td><td>l 93 - 102 (ot)</td><td>gerald wallace (27)</td><td>gerald wallace (8)</td><td>raymond felton (5)</td><td>energysolutions arena 19911</td><td>27 - 29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 4 THEN 'TRUE'
36
+ ELSE 'FALSE'
37
+ END
38
+ FROM table_sql
39
+ WHERE high_assists = (SELECT MAX(high_assists) FROM table_sql)
40
+ AND high_assists >= 4;</div>
41
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1334.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the bobcats had a record of 3 wins and 7 losses</h3>
26
+ <h3>Input Table: 2009 - 10 charlotte bobcats season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>47</td><td>01-02-9999</td><td>portland</td><td>l 79 - 98 (ot)</td><td>raymond felton (23)</td><td>gerald wallace (10)</td><td>stephen jackson (4)</td><td>rose garden 20106</td><td>24 - 23</td></tr><tr><td>48</td><td>9999-02-03</td><td>la lakers</td><td>l 97 - 99 (ot)</td><td>stephen jackson (30)</td><td>nazr mohammed (17)</td><td>boris diaw (5)</td><td>staples center 18997</td><td>24 - 24</td></tr><tr><td>49</td><td>9999-02-06</td><td>new orleans</td><td>l 99 - 104 (ot)</td><td>stephen jackson (26)</td><td>boris diaw (8)</td><td>raymond felton (7)</td><td>time warner cable arena 19164</td><td>24 - 25</td></tr><tr><td>50</td><td>9999-02-09</td><td>washington</td><td>w 94 - 92 (ot)</td><td>stephen jackson (22)</td><td>nazr mohammed (10)</td><td>raymond felton (5)</td><td>time warner cable arena 12376</td><td>25 - 25</td></tr><tr><td>51</td><td>01-02-10</td><td>minnesota</td><td>w 93 - 92 (ot)</td><td>stephen jackson (33)</td><td>nazr mohammed (20)</td><td>dj augustin (7)</td><td>target center 13352</td><td>26 - 25</td></tr><tr><td>52</td><td>01-02-16</td><td>new jersey</td><td>l 94 - 103 (ot)</td><td>gerald wallace (21)</td><td>gerald wallace , boris diaw (10)</td><td>stephen jackson (5)</td><td>time warner cable arena 13712</td><td>26 - 26</td></tr><tr><td>53</td><td>9999-02-19</td><td>cleveland</td><td>w 110 - 93 (ot)</td><td>stephen jackson (29)</td><td>tyrus thomas (12)</td><td>boris diaw (9)</td><td>time warner cable arena 19568</td><td>27 - 26</td></tr><tr><td>54</td><td>9999-02-20</td><td>milwaukee</td><td>l 88 - 93 (ot)</td><td>stephen jackson (35)</td><td>tyrus thomas (11)</td><td>stephen jackson (5)</td><td>bradley center 17174</td><td>27 - 27</td></tr><tr><td>55</td><td>9999-02-22</td><td>la clippers</td><td>l 94 - 98 (ot)</td><td>gerald wallace (32)</td><td>gerald wallace (12)</td><td>boris diaw , raymond felton (9)</td><td>staples center 15892</td><td>27 - 28</td></tr><tr><td>56</td><td>9999-02-24</td><td>utah</td><td>l 93 - 102 (ot)</td><td>gerald wallace (27)</td><td>gerald wallace (8)</td><td>raymond felton (5)</td><td>energysolutions arena 19911</td><td>27 - 29</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT COUNT(*) FROM table_sql WHERE record = '3 - 7') = 1
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1341.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the game between footscray and carlton was played at princess park</h3>
26
+ <h3>Input Table: 1962 vfl season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td>melbourne</td><td>11.18 (84)</td><td>st kilda</td><td>11.6 (72)</td><td>mcg</td><td>48952</td><td>1962-06-23</td></tr><tr><td>essendon</td><td>15.17 (107)</td><td>geelong</td><td>10.7 (67)</td><td>windy hill</td><td>35000</td><td>1962-06-23</td></tr><tr><td>collingwood</td><td>10.14 (74)</td><td>fitzroy</td><td>9.11 (65)</td><td>victoria park</td><td>26488</td><td>1962-06-23</td></tr><tr><td>carlton</td><td>12.9 (81)</td><td>footscray</td><td>9.10 (64)</td><td>princes park</td><td>32400</td><td>1962-06-23</td></tr><tr><td>south melbourne</td><td>10.13 (73)</td><td>richmond</td><td>11.13 (79)</td><td>lake oval</td><td>17000</td><td>1962-06-23</td></tr><tr><td>north melbourne</td><td>10.8 (68)</td><td>hawthorn</td><td>10.7 (67)</td><td>arden street oval</td><td>8470</td><td>1962-06-23</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN COUNT(*) = 0 THEN 'FALSE'
36
+ ELSE 'TRUE'
37
+ END
38
+ FROM table_sql
39
+ WHERE home_team = 'footscray'
40
+ AND away_team = 'carlton'
41
+ AND venue = 'princes park';</div>
42
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1342.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the match between south melbourne and richmond drew a bigger crowd than the game between hawthorn and north melbourne</h3>
26
+ <h3>Input Table: 1962 vfl season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td>melbourne</td><td>11.18 (84)</td><td>st kilda</td><td>11.6 (72)</td><td>mcg</td><td>48952</td><td>1962-06-23</td></tr><tr><td>essendon</td><td>15.17 (107)</td><td>geelong</td><td>10.7 (67)</td><td>windy hill</td><td>35000</td><td>1962-06-23</td></tr><tr><td>collingwood</td><td>10.14 (74)</td><td>fitzroy</td><td>9.11 (65)</td><td>victoria park</td><td>26488</td><td>1962-06-23</td></tr><tr><td>carlton</td><td>12.9 (81)</td><td>footscray</td><td>9.10 (64)</td><td>princes park</td><td>32400</td><td>1962-06-23</td></tr><tr><td>south melbourne</td><td>10.13 (73)</td><td>richmond</td><td>11.13 (79)</td><td>lake oval</td><td>17000</td><td>1962-06-23</td></tr><tr><td>north melbourne</td><td>10.8 (68)</td><td>hawthorn</td><td>10.7 (67)</td><td>arden street oval</td><td>8470</td><td>1962-06-23</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT crowd FROM table_sql WHERE home_team = 'south melbourne' AND away_team = 'richmond') >
36
+ (SELECT crowd FROM table_sql WHERE home_team = 'north melbourne' AND away_team = 'hawthorn')
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1344.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> collingwood scored more points than fitzroy in their 1962 vfl match</h3>
26
+ <h3>Input Table: 1962 vfl season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td>melbourne</td><td>11.18 (84)</td><td>st kilda</td><td>11.6 (72)</td><td>mcg</td><td>48952</td><td>1962-06-23</td></tr><tr><td>essendon</td><td>15.17 (107)</td><td>geelong</td><td>10.7 (67)</td><td>windy hill</td><td>35000</td><td>1962-06-23</td></tr><tr><td>collingwood</td><td>10.14 (74)</td><td>fitzroy</td><td>9.11 (65)</td><td>victoria park</td><td>26488</td><td>1962-06-23</td></tr><tr><td>carlton</td><td>12.9 (81)</td><td>footscray</td><td>9.10 (64)</td><td>princes park</td><td>32400</td><td>1962-06-23</td></tr><tr><td>south melbourne</td><td>10.13 (73)</td><td>richmond</td><td>11.13 (79)</td><td>lake oval</td><td>17000</td><td>1962-06-23</td></tr><tr><td>north melbourne</td><td>10.8 (68)</td><td>hawthorn</td><td>10.7 (67)</td><td>arden street oval</td><td>8470</td><td>1962-06-23</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT home_team_score FROM table_sql WHERE home_team = 'collingwood' AND date = '1962-06-23') >
36
+ (SELECT away_team_score FROM table_sql WHERE away_team = 'fitzroy' AND date = '1962-06-23')
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1348.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> collingwood scored more points than hawthorn in the 1962 vfl match</h3>
26
+ <h3>Input Table: 1962 vfl season</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td>melbourne</td><td>11.18 (84)</td><td>st kilda</td><td>11.6 (72)</td><td>mcg</td><td>48952</td><td>1962-06-23</td></tr><tr><td>essendon</td><td>15.17 (107)</td><td>geelong</td><td>10.7 (67)</td><td>windy hill</td><td>35000</td><td>1962-06-23</td></tr><tr><td>collingwood</td><td>10.14 (74)</td><td>fitzroy</td><td>9.11 (65)</td><td>victoria park</td><td>26488</td><td>1962-06-23</td></tr><tr><td>carlton</td><td>12.9 (81)</td><td>footscray</td><td>9.10 (64)</td><td>princes park</td><td>32400</td><td>1962-06-23</td></tr><tr><td>south melbourne</td><td>10.13 (73)</td><td>richmond</td><td>11.13 (79)</td><td>lake oval</td><td>17000</td><td>1962-06-23</td></tr><tr><td>north melbourne</td><td>10.8 (68)</td><td>hawthorn</td><td>10.7 (67)</td><td>arden street oval</td><td>8470</td><td>1962-06-23</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT home_team_score FROM table_sql WHERE home_team = 'collingwood') >
36
+ (SELECT away_team_score FROM table_sql WHERE away_team = 'hawthorn')
37
+ THEN 'TRUE'
38
+ ELSE 'FALSE'
39
+ END;</div>
40
+ </body></html>
htmls_Text2SQL/FN/Text2SQL_test-1356.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <html><head>
3
+ <style>
4
+ body { font-family: Arial, sans-serif; margin: 20px; }
5
+ h1 { text-align: center; }
6
+ .cot-title { color: blue; }
7
+ .pos-title { color: green; }
8
+ h2 { color: black; text-align: left; }
9
+ h3 { color: black; text-align: left; }
10
+ h4 { color: darkslategray; }
11
+ table { width: 100%; border-collapse: collapse; margin: 20px 0; }
12
+ table, th, td { border: 1px solid #ddd; padding: 8px; }
13
+ th { background-color: #f2f2f2; }
14
+ tr:nth-child(even) { background-color: #f9f9f9; }
15
+ .highlight { background-color: #ffffcc; }
16
+ .true { color: green; }
17
+ .false { color: red; }
18
+ .highlighted-cell { background-color: yellow; cursor: pointer; }
19
+ .step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
20
+ .step { display: block; }
21
+ .sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
22
+ </style>
23
+ </head><body>
24
+ <hr>
25
+ <h3><span>Statement:</span> the highest average for atletico ciudad was 0.61</h3>
26
+ <h3>Input Table: 2008 - 09 segunda división b</h3>
27
+ <div class="step">
28
+ <table>
29
+ <tr><td>goalkeeper</td><td>goals</td><td>matches</td><td>average</td><td>team</td></tr><tr><td>miguel zapata</td><td>17</td><td>28</td><td>0.61</td><td>atlético ciudad</td></tr><tr><td>rubén martínez</td><td>24</td><td>32</td><td>0.75</td><td>cartagena</td></tr><tr><td>orlando quintana</td><td>29</td><td>34</td><td>0.85</td><td>lorca deportiva</td></tr><tr><td>álvaro campos</td><td>24</td><td>28</td><td>0.86</td><td>real murcia b</td></tr><tr><td>matías garavano</td><td>26</td><td>30</td><td>0.87</td><td>mérida</td></tr>
30
+ </table>
31
+ </div>
32
+ <h3>SQL Command:</h3>
33
+ <div class="sql-command">SELECT
34
+ CASE
35
+ WHEN (SELECT MAX(average) FROM table_sql WHERE team = 'atlético ciudad') = 0.61
36
+ THEN 'TRUE'
37
+ ELSE 'FALSE'
38
+ END;</div>
39
+ </body></html>