NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many hours has passed since patient 016-9636 stayed for the first time in ward 613 on their current hospital encounter? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '016-9636' AND patient.wardid = 613 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
Show total hours per week and number of games played for students under 20. | CREATE TABLE Student (
StuID VARCHAR,
age INTEGER
)
CREATE TABLE Sportsinfo (
StuID VARCHAR
) | SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
584,
4280,
28027,
6,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
9583,
41,
3,
13076,
4309,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
5842,
4339,
8041,
201,
180,
6122,
599,
7261,
7,
4895,
15,
26,
61,
21680,
5716,
9583,
6157,
332,
536,
3,
15355,
3162,
6341,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
332,
4416,
13076,
4309,
... |
What is the 1991 when 1997 is 18? | CREATE TABLE table_name_26 (Id VARCHAR) | SELECT 1991 FROM table_name_26 WHERE 1997 = "18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9957,
116,
6622,
19,
507,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9957,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
6622,
3274,
96,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What constructor has a grid less than 13 with under 9 laps? | CREATE TABLE table_name_19 (
constructor VARCHAR,
grid VARCHAR,
laps VARCHAR
) | SELECT constructor FROM table_name_19 WHERE grid < 13 AND laps < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
6774,
127,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
6774,
127,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
8634,
3,
2,
1179,
3430,
14941,
7,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average of player Matthew Elliott (vic)? | CREATE TABLE table_7695 (
"Rank" text,
"Runs" text,
"Player" text,
"Average" text,
"Season" text
) | SELECT "Average" FROM table_7695 WHERE "Player" = 'matthew elliott (vic)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3301,
41,
96,
22557,
121,
1499,
6,
96,
448,
202,
7,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
188,
624,
545,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
624,
545,
121,
21680,
953,
834,
3959,
3301,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3357,
532,
210,
3,
7999,
32,
17,
17,
41,
7287,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Tournament was played in NH in 2011? | CREATE TABLE table_name_38 (
tournament VARCHAR
) | SELECT tournament FROM table_name_38 WHERE 2011 = "nh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
47,
1944,
16,
3,
15743,
16,
2722,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2722,
3274,
96,
29,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0? | CREATE TABLE table_name_75 (losses INTEGER, season VARCHAR, draws VARCHAR) | SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2298,
2260,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
2260,
19,
8,
7402,
80,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
774,
3,
2,
13978,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was Dale Alford first elected in the Arkansas 5 district? | CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1341897_6 WHERE district = "Arkansas 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4327,
834,
948,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
10729,
15,
901,
2590,
166,
8160,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2606,
4327,
834,
948,
549,
17444,
427,
3939,
3274,
96,
188,
52,
3304,
7,
9,
7,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many friends does Dan have? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) | SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
15504,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
382,
4416,
15504,
61,
21680,
5780,
6157,
332,
536,
3,
15355,
3162,
5780,
17701,
6157,
332,
357,
9191,
332,
5411,
4350,
3274,
332,
4416,
4350,
549,
17444,
427,
332,
5411,
4350,
3274,
3,
31,
308,
152,
... |
Which location has the ecosystem of kelp forest? | CREATE TABLE table_15635768_1 (
place_of_issue VARCHAR,
ecosystem VARCHAR
) | SELECT place_of_issue FROM table_15635768_1 WHERE ecosystem = "Kelp Forest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3891,
3436,
3651,
834,
536,
41,
286,
834,
858,
834,
13159,
584,
4280,
28027,
6,
10789,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1128,
65,
8,
10789,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
834,
858,
834,
13159,
21680,
953,
834,
1808,
3891,
3436,
3651,
834,
536,
549,
17444,
427,
10789,
3274,
96,
439,
15,
40,
102,
6944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which municipality is Barangay Poblacion? | CREATE TABLE table_name_42 (municipality VARCHAR, barangay VARCHAR) | SELECT municipality FROM table_name_42 WHERE barangay = "poblacion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
11760,
3389,
10355,
584,
4280,
28027,
6,
1207,
1468,
9,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
27597,
19,
1386,
1468,
9,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27597,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1207,
1468,
9,
63,
3274,
96,
102,
32,
4605,
20013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which team has dirk nowitski (13) as high rebounds? | CREATE TABLE table_23284271_10 (team VARCHAR, high_rebounds VARCHAR) | SELECT team FROM table_23284271_10 WHERE high_rebounds = "Dirk Nowitski (13)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
4165,
4450,
834,
1714,
41,
11650,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
65,
5141,
157,
230,
155,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2773,
2577,
4165,
4450,
834,
1714,
549,
17444,
427,
306,
834,
23768,
3274,
96,
308,
12546,
852,
155,
4009,
4077,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the least yes votes for yes passed | CREATE TABLE table_3351 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT MIN("YES votes") FROM table_3351 WHERE "passed" = 'YES' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
5553,
41,
96,
526,
9,
7,
5,
3,
5525,
121,
490,
6,
96,
3968,
15,
26,
121,
1499,
6,
96,
476,
3205,
11839,
121,
490,
6,
96,
7400,
11839,
121,
490,
6,
96,
1454,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
3205,
11839,
8512,
21680,
953,
834,
4201,
5553,
549,
17444,
427,
96,
3968,
15,
26,
121,
3274,
3,
31,
476,
3205,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What opponent has april 23 as the date? | CREATE TABLE table_name_81 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_81 WHERE date = "april 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
65,
3,
9,
2246,
40,
1902,
38,
8,
833,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many goals did he score with under 26 appearances for werder bremen? | CREATE TABLE table_71131 (
"Season" text,
"Club" text,
"Country" text,
"Competition" text,
"Apps." real,
"Goals" real
) | SELECT COUNT("Goals") FROM table_71131 WHERE "Apps." < '26' AND "Club" = 'werder bremen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
22048,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
9648,
7,
535,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6221,
5405,
8512,
21680,
953,
834,
4450,
22048,
549,
17444,
427,
96,
9648,
7,
535,
3,
2,
3,
31,
2688,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
3321,
588,
3,
1999,
904,
31,
1,
-100,
-100... |
What place is the player from the United States with a to par of e? | CREATE TABLE table_name_1 (
place VARCHAR,
country VARCHAR,
to_par VARCHAR
) | SELECT place FROM table_name_1 WHERE country = "united states" AND to_par = "e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
19,
8,
1959,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
12,
834,
1893,
3274,
96,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the name of physicians who never took any appointment. | CREATE TABLE trained_in (
physician number,
treatment number,
certificationdate time,
certificationexpires time
)
CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart time,
oncallend time
)
CREATE TABLE department (
departmentid number,
name... | SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.physician = T2.employeeid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4252,
834,
77,
41,
10027,
381,
6,
1058,
381,
6,
5151,
5522,
97,
6,
5151,
994,
2388,
15,
7,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
30,
834,
16482,
41,
10444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
10027,
262,
4,
30416,
3,
23143,
14196,
332,
4416,
4350,
21680,
4141,
6157,
332,
536,
3,
15355,
3162,
10027,
6157,
332,
357,
9191,
332,
5411,
6941,
7,
1294,
152,
3274,
332,
4416,
15,
51,
7379,
63,
15,
15,... |
What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17? | CREATE TABLE table_50477 (
"Player" text,
"Team" text,
"Matches" real,
"Overs" real,
"Economy Rate" real,
"Wickets" real,
"Average" real,
"Strike Rate" real,
"Best Bowling" text
) | SELECT MIN("Overs") FROM table_50477 WHERE "Team" = 'chennai super kings' AND "Best Bowling" = '2/17' AND "Economy Rate" < '5.92' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
4013,
41,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
23847,
7,
121,
490,
6,
96,
427,
12036,
63,
13002,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23847,
7,
8512,
21680,
953,
834,
1752,
591,
4013,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1559,
29,
9,
23,
1355,
3,
1765,
7,
31,
3430,
96,
17278,
9713,
53,
121,
3274,
3,
31,
15896,
2517... |
What is the total for 10th position? | CREATE TABLE table_10705060_1 (
points VARCHAR,
position VARCHAR
) | SELECT COUNT(points) FROM table_10705060_1 WHERE position = "10th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2518,
1752,
3328,
834,
536,
41,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
335,
189,
1102,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
1714,
2518,
1752,
3328,
834,
536,
549,
17444,
427,
1102,
3274,
96,
1714,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the time for 6/6/77 release date and song title of way down | CREATE TABLE table_name_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR) | SELECT time FROM table_name_95 WHERE release_date = "6/6/77" AND song_title = "way down" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
715,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
948,
18656,
87,
4013,
121,
3430,
2324,
834,
21869,
3274,
96,
1343,
323,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the record 2 1? | CREATE TABLE table_name_53 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_53 WHERE record = "2–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1368,
204,
209,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1368,
3274,
96,
357,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11? | CREATE TABLE table_name_85 (
number_of_electorates__2003_ INTEGER,
constituency_number VARCHAR,
district VARCHAR,
reserved_for___sc___st__none_ VARCHAR
) | SELECT MIN(number_of_electorates__2003_) FROM table_name_85 WHERE district = "bhind" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
381,
834,
858,
834,
400,
5317,
6203,
834,
834,
23948,
834,
3,
21342,
17966,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
5525,
1152,
834,
858,
834,
400,
5317,
6203,
834,
834,
23948,
834,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3939,
3274,
96,
115,
2907,
26,
121,
3430,
14040,
834,
1161,
834,
834,
834,
7,
... |
what's the founder where moderate is ether | CREATE TABLE table_11256021_1 (founder VARCHAR, moderate VARCHAR) | SELECT founder FROM table_11256021_1 WHERE moderate = "ether" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1828,
3328,
2658,
834,
536,
41,
14435,
584,
4280,
28027,
6,
8107,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
7174,
213,
8107,
19,
3,
16764,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7174,
21680,
953,
834,
2596,
1828,
3328,
2658,
834,
536,
549,
17444,
427,
8107,
3274,
96,
16764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how did last patient 021-155303 get admitted to the hospital? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
in... | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '021-155303' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
7928,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2658,
18,
20896,
23335,
31,
4674,
11300,
272,
476,
1868,
5,
31386,
20466,
17,
715,
309,
25067,
8729,
12604,
... |
What type of environment is the venue that was built in 2003? | CREATE TABLE table_40340 (
"Venue" text,
"Location" text,
"Capacity" text,
"Owner" text,
"Environment" text,
"Year Built" text
) | SELECT "Environment" FROM table_40340 WHERE "Year Built" = '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
21129,
41,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19566,
9,
6726,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
8532,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8532,
5771,
106,
297,
121,
21680,
953,
834,
2445,
21129,
549,
17444,
427,
96,
476,
2741,
14862,
121,
3274,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the venue that had 5000 m after 2009? | CREATE TABLE table_12556 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Venue" FROM table_12556 WHERE "Year" > '2009' AND "Notes" = '5000 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4834,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
10124,
4834,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
16660,
31,
3430,
96,
10358,
15,
7,
121,
3274,
3,
31,
12814,
3,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of viewers for a rating greater than 9.4? | CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER) | SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
4576,
277,
834,
834,
51,
834,
3,
21342,
17966,
6,
5773,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
13569,
21,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4576,
277,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
5773,
2490,
5835,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times had patient 027-146673 visited icu in 2105? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalpe... | SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-146673') AND STRFTIME('%y', patient.unitadmittime) = '2105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
10061,
15129,
21545,
23,
26,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
... |
Who did the high points of game 5? | CREATE TABLE table_11960196_3 (high_points VARCHAR, game VARCHAR) | SELECT high_points FROM table_11960196_3 WHERE game = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
3328,
26937,
834,
519,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
306,
979,
13,
467,
305,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
19993,
3328,
26937,
834,
519,
549,
17444,
427,
467,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."? | CREATE TABLE table_name_74 (against INTEGER, status VARCHAR, opposing_teams VARCHAR) | SELECT AVG(against) FROM table_name_74 WHERE status = "2007 rugby world cup" AND opposing_teams = "u.s.a." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
2637,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2637,
3274,
96,
20615,
22209,
296,
4119,
121,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
76,
5,
7,
5,
9,
535,
1,
-100,
-100,... |
How many different part 3 verbs are there that mean to freeze? | CREATE TABLE table_1745843_6 (
part_3 VARCHAR,
verb_meaning VARCHAR
) | SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = "to freeze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
948,
41,
294,
834,
519,
584,
4280,
28027,
6,
7375,
834,
27639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
294,
220,
7375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2274,
834,
5268,
21680,
953,
834,
27693,
3449,
4906,
834,
948,
549,
17444,
427,
7375,
834,
27639,
3274,
96,
235,
14038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What tournament has a 2003 of a? | CREATE TABLE table_61499 (
"Tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "Tournament" FROM table_61499 WHERE "2003" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3264,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
23658,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
948,
2534,
3264,
549,
17444,
427,
96,
23948,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Album title has a Title of 滑板? | CREATE TABLE table_name_53 (album_title VARCHAR, title VARCHAR) | SELECT album_title FROM table_name_53 WHERE title = "滑板" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
23703,
834,
21869,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
16135,
2233,
65,
3,
9,
11029,
13,
3,
2,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2306,
834,
21869,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2233,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the System with a freeware License? | CREATE TABLE table_55982 (
"Name" text,
"Current version" text,
"System" text,
"Platform" text,
"License" text
) | SELECT "System" FROM table_55982 WHERE "License" = 'freeware' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3916,
357,
41,
96,
23954,
121,
1499,
6,
96,
254,
450,
5320,
988,
121,
1499,
6,
96,
14342,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
434,
447,
5167,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
14342,
121,
21680,
953,
834,
3769,
3916,
357,
549,
17444,
427,
96,
434,
447,
5167,
121,
3274,
3,
31,
2113,
3404,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position did pick 36 play? | CREATE TABLE table_name_45 (
position VARCHAR,
pick VARCHAR
) | SELECT position FROM table_name_45 WHERE pick = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
1432,
4475,
577,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1432,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What division is Sai Kung in? | CREATE TABLE table_name_29 (league_division VARCHAR, club VARCHAR) | SELECT league_division FROM table_name_29 WHERE club = "sai kung" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
29512,
834,
26,
23,
6610,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4889,
19,
1138,
23,
480,
425,
16,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
834,
26,
23,
6610,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1886,
3274,
96,
7,
9,
23,
3,
157,
425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the length of the version from 2003? | CREATE TABLE table_name_3 (length VARCHAR, year VARCHAR) | SELECT length FROM table_name_3 WHERE year = 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
19457,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2475,
13,
8,
988,
45,
3888,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2475,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
215,
3274,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Dave Rummells's to par? | CREATE TABLE table_12967 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_12967 WHERE "Player" = 'dave rummells' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
3708,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
22174,
3708,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
162,
3,
2781,
2341,
40,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least RD number that has PI GP more than 0 and pick # more than 51 | CREATE TABLE table_55420 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
) | SELECT MIN("Rd #") FROM table_55420 WHERE "Pl GP" > '0' AND "Pick #" > '51' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
21899,
41,
96,
448,
26,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
41,
2796,
9,
5398,
61,
121,
1499,
6,
96,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
26,
1713,
8512,
21680,
953,
834,
3769,
21899,
549,
17444,
427,
96,
345,
40,
3,
8049,
121,
2490,
3,
31,
632,
31,
3430,
96,
345,
3142,
1713,
121,
2490,
3,
31,
5553,
31,
1,
-100,
-100,
-100... |
What is the Name of the Ship attacked on 20February1942? | CREATE TABLE table_name_64 (
name_of_ship VARCHAR,
date VARCHAR
) | SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
564,
834,
858,
834,
2009,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
8,
15508,
17263,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
834,
858,
834,
2009,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
833,
3274,
96,
1755,
89,
15,
9052,
1208,
2294,
4165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Record of 20–4 involved what highest game? | CREATE TABLE table_name_44 (game INTEGER, record VARCHAR) | SELECT MAX(game) FROM table_name_44 WHERE record = "20–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
7261,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
460,
104,
591,
1381,
125,
2030,
467,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1368,
3274,
96,
1755,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Tommy Nobis' position that has fewer than 16 picks? | CREATE TABLE table_38281 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_38281 WHERE "Pick #" < '16' AND "Name" = 'tommy nobis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2577,
536,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3747,
2577,
536,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3,
2,
3,
31,
2938,
31,
3430,
96,
23954,
121,
3274,
3,
31,
235,
635,
63,
150,
11514,
31,
1,
-100,
-100,
-1... |
Name the segment c for ski goggles | CREATE TABLE table_37388 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment C" FROM table_37388 WHERE "Segment A" = 'ski goggles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
4060,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
122,
297,
205,
121,
21680,
953,
834,
4118,
519,
4060,
549,
17444,
427,
96,
134,
15,
122,
297,
71,
121,
3274,
3,
31,
4009,
281,
4102,
965,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the surface on 15 August 2009? | CREATE TABLE table_59443 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_59443 WHERE "Date" = '15 august 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3628,
519,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
3390,
3628,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1808,
14663,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all storms with at least 1 death, show me the dates active and the total number of deaths with a bar chart, and order in ascending by the Y. | CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Number_Deaths | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
6163,
834,
23,
26,
16,
17,
6,
16133,
834,
4309,
16,
17,
6,
7720,
834,
6726,
834,
9,
27488,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
7,
834,
6645,
6,
7720,
834,
2962,
9,
189,
7,
21680,
5536,
549,
17444,
427,
7720,
834,
2962,
9,
189,
7,
2490,
2423,
209,
4674,
11300,
272,
476,
7720,
834,
2962,
9,
189,
7,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of brand where the power is 5kw? | CREATE TABLE table_1767 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | SELECT COUNT("Branding") FROM table_1767 WHERE "Power (kW)" = '5kW' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3708,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
41,
21729,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18304,
727,
53,
8512,
21680,
953,
834,
2517,
3708,
549,
17444,
427,
96,
23553,
41,
21729,
61,
121,
3274,
3,
31,
755,
21729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the market name is Xperia U, what is the weight? | CREATE TABLE table_26143 (
"Code name" text,
"Market name" text,
"Platform" text,
"Release date" text,
"Android version" text,
"System on chip" text,
"RAM" text,
"ROM" text,
"Display" text,
"Weight" text,
"Battery ( mAh )" real,
"Bluetooth" text,
"Wi-Fi" text,
"NF... | SELECT "Weight" FROM table_26143 WHERE "Market name" = 'Xperia U' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25133,
41,
96,
22737,
564,
121,
1499,
6,
96,
22572,
564,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
7175,
8184,
988,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1326,
2632,
121,
21680,
953,
834,
2688,
25133,
549,
17444,
427,
96,
22572,
564,
121,
3274,
3,
31,
4,
4267,
9,
412,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
HOw many no votes were there when there were 45.60% yes votes | CREATE TABLE table_73834 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT MIN("NO votes") FROM table_73834 WHERE "% YES" = '45.60%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4591,
591,
41,
96,
526,
9,
7,
5,
3,
5525,
121,
490,
6,
96,
3968,
15,
26,
121,
1499,
6,
96,
476,
3205,
11839,
121,
490,
6,
96,
7400,
11839,
121,
490,
6,
96,
1454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
7400,
11839,
8512,
21680,
953,
834,
4552,
4591,
591,
549,
17444,
427,
96,
1454,
3,
476,
3205,
121,
3274,
3,
31,
591,
25134,
6932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart about what are the average prices of products, grouped by manufacturer name?, I want to rank by the names in descending. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
71,
17217,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880... |
Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club? | CREATE TABLE table_72700 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Centerfold model" FROM table_72700 WHERE "Pictorials" = 'Kimberly Bell , Bunnies of the New Playboy Club' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
9295,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24382,
10533,
825,
121,
21680,
953,
834,
5865,
9295,
549,
17444,
427,
96,
345,
447,
17,
11929,
7,
121,
3274,
3,
31,
439,
603,
1152,
120,
5377,
3,
6,
6100,
14347,
13,
8,
368,
2911,
7531,
1949,
31,
1,
-100,
-1... |
what is the title when the imprint is dengeki bunko and the artist is kiyotaka haimura? | CREATE TABLE table_9571 (
"Year" real,
"Character" text,
"Title" text,
"Author" text,
"Artist" text,
"Imprint" text
) | SELECT "Title" FROM table_9571 WHERE "Imprint" = 'dengeki bunko' AND "Artist" = 'kiyotaka haimura' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
4450,
41,
96,
476,
2741,
121,
490,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
7754,
343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3301,
4450,
549,
17444,
427,
96,
196,
51,
7260,
121,
3274,
3,
31,
537,
397,
2168,
22855,
32,
31,
3430,
96,
7754,
343,
121,
3274,
3,
31,
2168,
63,
32,
17,
5667,
4244,
603,... |
which examples are pronounced et in australian | CREATE TABLE table_1763 (
"Ending" text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
) | SELECT "Examples" FROM table_1763 WHERE "Australian" = 'et' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3891,
41,
96,
8532,
26,
53,
121,
1499,
6,
96,
8778,
121,
1499,
6,
96,
279,
13224,
7,
107,
121,
1499,
6,
96,
31971,
29,
121,
1499,
6,
96,
5420,
9,
9208,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5420,
9,
9208,
7,
121,
21680,
953,
834,
2517,
3891,
549,
17444,
427,
96,
31971,
29,
121,
3274,
3,
31,
15,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the average silver with total less than 1 | CREATE TABLE table_name_5 (
silver INTEGER,
total INTEGER
) | SELECT AVG(silver) FROM table_name_5 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
4294,
3,
21342,
17966,
6,
792,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
4294,
28,
792,
705,
145,
209,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What year was the first store in India? | CREATE TABLE table_name_20 (first_store VARCHAR, country VARCHAR) | SELECT first_store FROM table_name_20 WHERE country = "india" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
14672,
834,
7154,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
166,
1078,
16,
1547,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
7154,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
684,
3274,
96,
8482,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
whih year did they finish hiher , 1949 or 1961 ? | CREATE TABLE table_204_24 (
id number,
"year" number,
"league" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text,
"notes" text
) | SELECT "year" FROM table_204_24 WHERE "year" IN (1949, 1961) ORDER BY "finish" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2266,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
29512,
121,
1499,
6,
96,
60,
7621,
121,
1499,
6,
96,
25535,
121,
1499,
6,
96,
24185,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
2266,
549,
17444,
427,
96,
1201,
121,
3388,
2863,
3647,
6,
21018,
61,
4674,
11300,
272,
476,
96,
25535,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score on saturday, 26 june 7:10pm? | CREATE TABLE table_29033869_3 (score__collingwoods_score_is_in_bold_ VARCHAR, date VARCHAR) | SELECT score__collingwoods_score_is_in_bold_ FROM table_29033869_3 WHERE date = "Saturday, 26 June 7:10pm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4928,
3747,
3951,
834,
519,
41,
7,
9022,
834,
834,
3297,
697,
2037,
7,
834,
7,
9022,
834,
159,
834,
77,
834,
4243,
26,
834,
584,
4280,
28027,
6,
833,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
834,
834,
3297,
697,
2037,
7,
834,
7,
9022,
834,
159,
834,
77,
834,
4243,
26,
834,
21680,
953,
834,
3166,
4928,
3747,
3951,
834,
519,
549,
17444,
427,
833,
3274,
96,
134,
6010,
1135,
6,
2208,
1515,
489,
10,
... |
What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2? | CREATE TABLE table_name_55 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR,
total VARCHAR
) | SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
2045,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
13467,
3274,
209,
3430,
792,
2490,
204,
3430,
4294,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the birthplace of the person with a weight greater than 88 with NHL rights, 1999 draft eligible and born March 26, 1980? | CREATE TABLE table_7537 (
"Position" text,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"Previous Club/Team" text,
"NHL rights, if any" text
) | SELECT "Birthplace" FROM table_7537 WHERE "Weight (kg)" > '88' AND "NHL rights, if any" = '1999 draft eligible' AND "Birthdate" = 'march 26, 1980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4118,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6,
96,
1326,
2632,
41,
8711,
61,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
23,
52,
189,
4687,
121,
21680,
953,
834,
3072,
4118,
549,
17444,
427,
96,
1326,
2632,
41,
8711,
61,
121,
2490,
3,
31,
4060,
31,
3430,
96,
15743,
434,
2166,
6,
3,
99,
136,
121,
3274,
3,
31,
2294,
3264,
... |
what were the five most common drugs prescribed until 2103? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE STRFTIME('%y', medication.drugstarttime) <= '2103' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26,
13534,
4350,
21680,
41,
23143,
14196,
7757,
5,
26,
13534,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
... |
Show the ids of all employees who don't destroy any document. | CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE ref_locations... | SELECT employee_id FROM employees EXCEPT SELECT destroyed_by_employee_id FROM documents_to_be_destroyed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
28244,
834,
6137,
7,
41,
1708,
834,
6137,
834,
4978,
1499,
6,
1708,
834,
6137,
834,
4350,
1499,
6,
1708,
834,
6137,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3490,
834,
23,
26,
21680,
1652,
262,
4,
30416,
3,
23143,
14196,
10932,
834,
969,
834,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
21680,
2691,
834,
235,
834,
346,
834,
221,
6626,
10093,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri? | CREATE TABLE table_name_89 (
altitude__mslm_ INTEGER,
density__inhabitants_km_2__ VARCHAR,
common_of VARCHAR
) | SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
491,
6592,
834,
834,
51,
7,
40,
51,
834,
3,
21342,
17966,
6,
11048,
834,
834,
77,
29884,
7,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
1017,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
138,
6592,
834,
834,
51,
7,
40,
51,
834,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
11048,
834,
834,
77,
29884,
7,
834,
5848,
834,
357,
834,
834,
3,
2,
3,
24300,
15731,
3430,
1017,
83... |
What is the word count that is named omega dot? | CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR) | SELECT word__number FROM table_name_37 WHERE name = "omega dot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
6051,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1448,
3476,
24,
19,
2650,
27305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1448,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
564,
3274,
96,
7159,
122,
9,
103,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opposing team in the game attended by 65,554? | CREATE TABLE table_name_35 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_35 WHERE attendance = "65,554" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
32,
102,
9977,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
10720,
53,
372,
16,
8,
467,
5526,
57,
7123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
11364,
3274,
96,
4122,
6,
3769,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Stopping pattern has a Platform of [2777] mciver station platforms? | CREATE TABLE table_name_50 (
stopping_pattern VARCHAR,
platform VARCHAR
) | SELECT stopping_pattern FROM table_name_50 WHERE platform = "[2777] mciver station platforms" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
10847,
834,
4665,
2947,
584,
4280,
28027,
6,
1585,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9078,
2462,
3275,
65,
3,
9,
12779,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10847,
834,
4665,
2947,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1585,
3274,
96,
6306,
2555,
4013,
908,
3,
51,
27981,
49,
2478,
5357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Compare the number of chips from different company names for the phone whose screen mode type is 'Graphics' with a bar chart, list by the Company_name in asc please. | CREATE TABLE chip_model (
Model_name text,
Launch_year real,
RAM_MiB real,
ROM_MiB real,
Slots text,
WiFi text,
Bluetooth text
)
CREATE TABLE phone (
Company_name text,
Hardware_Model_name text,
Accreditation_type text,
Accreditation_level text,
Date text,
chip_model... | SELECT Company_name, COUNT(Company_name) FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" GROUP BY Company_name ORDER BY Company_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6591,
834,
21770,
41,
5154,
834,
4350,
1499,
6,
17113,
834,
1201,
490,
6,
12118,
834,
329,
23,
279,
490,
6,
3,
13103,
834,
329,
23,
279,
490,
6,
12094,
7,
1499,
6,
13831,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1958,
834,
4350,
6,
2847,
17161,
599,
5890,
2837,
63,
834,
4350,
61,
21680,
1641,
834,
14930,
6157,
332,
536,
3,
15355,
3162,
951,
6157,
332,
357,
9191,
332,
5411,
21094,
447,
7,
834,
14930,
3274,
332,
4416,
8527,
8... |
what is procedure icd9 code and drug code of subject id 24425? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT procedures.icd9_code, prescriptions.formulary_drug_cd FROM procedures INNER JOIN prescriptions ON procedures.hadm_id = prescriptions.hadm_id WHERE procedures.subject_id = "24425" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4293,
5,
447,
26,
1298,
834,
4978,
6,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
21680,
4293,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
4293,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
83... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
What was the result of the game on October 6, 1974? | CREATE TABLE table_19712 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Result" FROM table_19712 WHERE "Date" = 'October 6, 1974' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
2122,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
27181,
2122,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
8580,
17184,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1? | CREATE TABLE table_63534 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_63534 WHERE "Silver" = '0' AND "Rank" = '17' AND "Gold" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2469,
3710,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
948,
2469,
3710,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
632,
31,
3430,
96,
22557,
121,
3274,
3,
31,
2517,
31,
3430,
96,
23576,
121,
3,
2... |
WHAT IS THE RANK OF MARTIN BREST? | CREATE TABLE table_name_93 (
rank INTEGER,
director VARCHAR
) | SELECT SUM(rank) FROM table_name_93 WHERE director = "martin brest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
11003,
3,
21342,
17966,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
16375,
439,
3347,
3,
13845,
25424,
3,
6934... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2090,
3274,
96,
1635,
17,
77,
6397,
222,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the candidates for felix walker | CREATE TABLE table_2668329_18 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_2668329_18 WHERE incumbent = "Felix Walker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3166,
834,
2606,
41,
4341,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4341,
21,
3110,
2407,
3,
24063,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2688,
3651,
519,
3166,
834,
2606,
549,
17444,
427,
28406,
3274,
96,
17160,
2407,
13521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the name of the product that is cheapest in each product category with their minimum price with a bar graph, and sort by the y-axis in asc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, MIN(Price) FROM Products GROUP BY Name ORDER BY MIN(Price) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3,
17684,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
3,
17684,
599,
345,
4920,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the total number of games with more than 20 points for the 1976 season? | CREATE TABLE table_name_89 (
games VARCHAR,
season VARCHAR,
points VARCHAR
) | SELECT COUNT(games) FROM table_name_89 WHERE season = "1976" AND points > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1031,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
381,
13,
1031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
774,
3274,
96,
2294,
3959,
121,
3430,
979,
2490,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) 13.10 (88)? | CREATE TABLE table_name_10 (
attendance INTEGER,
score VARCHAR,
season VARCHAR,
margin VARCHAR
) | SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
11364,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
774,
3,
2,
12698,
3430,
6346,
3274,
431,
3430,
2604,
3274,
96,
2368,
5,
2938,
14156,
7256,
3,
104,
8808,
1714,
41,
4060,
61,
121,
... |
What is teh average rank of the city of mashhad, which had less than 667770 in 1976? | CREATE TABLE table_name_97 (rank INTEGER, city VARCHAR) | SELECT AVG(rank) FROM table_name_97 WHERE city = "mashhad" AND 1976 < 667770 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
6254,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
17,
15,
107,
1348,
11003,
13,
8,
690,
13,
3,
51,
3198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
690,
3274,
96,
51,
3198,
8399,
121,
3430,
16164,
3,
2,
431,
3708,
26920,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which catalog has a date of 24 march 2006? | CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR) | SELECT catalog FROM table_name_44 WHERE date = "24 march 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
2138,
9,
2152,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
10173,
65,
3,
9,
833,
13,
997,
10556,
3581,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10173,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
833,
3274,
96,
2266,
10556,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which audition city held callbacks at Amelia Island Plantation? | CREATE TABLE table_name_81 (audition_city VARCHAR, callback_venue VARCHAR) | SELECT audition_city FROM table_name_81 WHERE callback_venue = "amelia island plantation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
402,
10569,
834,
6726,
584,
4280,
28027,
6,
580,
1549,
834,
15098,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
21042,
690,
1213,
580,
1549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21042,
834,
6726,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
580,
1549,
834,
15098,
3274,
96,
265,
13240,
3368,
1475,
257,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many contestants had a starting bmi of 33.1? | CREATE TABLE table_4062 (
"Contestant" text,
"Age" real,
"Height" text,
"Starting BMI" text,
"Finale BMI" text,
"Reunion BMI" text,
"Start Weight" text,
"Finale Weight" text,
"Reunion Weight" text,
"lbs lost finale" text,
"lbs lost reunion" real
) | SELECT COUNT("Finale Weight") FROM table_4062 WHERE "Starting BMI" = '33.1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4056,
41,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
121,
1499,
6,
96,
7681,
1222,
272,
7075,
121,
1499,
6,
96,
371,
10270,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
10270,
15,
14230,
8512,
21680,
953,
834,
2445,
4056,
549,
17444,
427,
96,
7681,
1222,
272,
7075,
121,
3274,
3,
31,
519,
18495,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show how many documents are stored and bin by year in a line chart. | CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Pla... | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
434,
32,
75,
1628,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
10450,
834,
22737,
3,
28027,
599,
1808,
201,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
309,
6048,
382... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
28719,
26,
6,
2847,
17161,
599,
308,
342,
834,
28719,
26,
61,
21680,
432,
834,
4135,
1071,
4128,
6157,
332,
536,
3,
15355,
3162,
419,
89,
834,
14318,
35,
3439,
6157,
332,
357,
9191,
332,
5411,
308,
342,
... |
center-to-center distance of 6,900 to 46,300 km involves which orbital period? | CREATE TABLE table_name_69 (
orbital_period VARCHAR,
center_to_center_distance VARCHAR
) | SELECT orbital_period FROM table_name_69 WHERE center_to_center_distance = "6,900 to 46,300 km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
15607,
138,
834,
4267,
32,
26,
584,
4280,
28027,
6,
1530,
834,
235,
834,
13866,
834,
26,
23,
8389,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15607,
138,
834,
4267,
32,
26,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1530,
834,
235,
834,
13866,
834,
26,
23,
8389,
3274,
96,
11071,
7015,
12,
9668,
6,
5426,
2280,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What are the producers of ? | CREATE TABLE table_22704 (
"Producer" text,
"Product" text,
"Samples taken" real,
"Samples failed" real,
"Melamine content(mg/kg)" text
) | SELECT "Producer" FROM table_22704 WHERE "Product" = '磊磊牌嬰幼兒配方乳粉' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
17485,
591,
41,
96,
3174,
4817,
49,
121,
1499,
6,
96,
3174,
7472,
121,
1499,
6,
96,
134,
9,
9208,
7,
1026,
121,
490,
6,
96,
134,
9,
9208,
7,
4567,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
4817,
49,
121,
21680,
953,
834,
357,
17485,
591,
549,
17444,
427,
96,
3174,
7472,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the venue when the away side scores 11.20 (86)? | CREATE TABLE table_33579 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33579 WHERE "Away team score" = '11.20 (86)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4440,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
519,
2469,
4440,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10032,
1755,
41,
3840,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Monument was built after 1887 in Warren County? | CREATE TABLE table_34780 (
"County" text,
"Monument name" text,
"Year built" real,
"City or Town" text,
"Latitude" text,
"Longitude" text
) | SELECT "Monument name" FROM table_34780 WHERE "Year built" > '1887' AND "County" = 'warren' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4177,
2079,
41,
96,
10628,
63,
121,
1499,
6,
96,
9168,
76,
297,
564,
121,
1499,
6,
96,
476,
2741,
1192,
121,
490,
6,
96,
254,
485,
42,
4463,
121,
1499,
6,
96,
3612... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9168,
76,
297,
564,
121,
21680,
953,
834,
519,
4177,
2079,
549,
17444,
427,
96,
476,
2741,
1192,
121,
2490,
3,
31,
2606,
4225,
31,
3430,
96,
10628,
63,
121,
3274,
3,
31,
2910,
1536,
31,
1,
-100,
-100,
-100,
... |
What's the Date of Issue for Design of Katalin Kovats? | CREATE TABLE table_name_46 (
date_of_issue VARCHAR,
design VARCHAR
) | SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
834,
858,
834,
13159,
584,
4280,
28027,
6,
408,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7678,
13,
13235,
21,
1642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
13159,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
408,
3274,
96,
8682,
138,
77,
3,
9789,
144,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent when Footscray played as the home team? | CREATE TABLE table_name_62 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_62 WHERE home_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
15213,
7,
2935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the opponent of the game with a game number larger than 5 on June 22? | CREATE TABLE table_14278 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Opponent" FROM table_14278 WHERE "Game" > '5' AND "Date" = 'june 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
3940,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
24978,
3940,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
755,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year where the result of the election was a retired republican hold? | CREATE TABLE table_1341472_40 (first_elected INTEGER, result VARCHAR) | SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = "Retired Republican hold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
2445,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
213,
8,
741,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
24719,
357,
834,
2445,
549,
17444,
427,
741,
3274,
96,
1649,
11809,
26,
8994,
1520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What finish has a 143.056 qual? | CREATE TABLE table_67314 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Finish" FROM table_67314 WHERE "Qual" = '143.056' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
519,
2534,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
77,
1273,
121,
21680,
953,
834,
3708,
519,
2534,
549,
17444,
427,
96,
5991,
138,
121,
3274,
3,
31,
25133,
5,
3076,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose drug type is main and lab test name is calculated tbg? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "Calculated TBG" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
How many goals were scored on November 22, 1994? | CREATE TABLE table_name_13 (goal INTEGER, date VARCHAR) | SELECT SUM(goal) FROM table_name_13 WHERE date = "november 22, 1994" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
839,
138,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
130,
5799,
30,
1671,
12889,
7520,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
839,
138,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
12889,
7520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the Score of craig stadler? | CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_33 WHERE player = "craig stadler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
17763,
13,
3,
2935,
23,
122,
3342,
12807,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1959,
3274,
96,
2935,
23,
122,
3342,
12807,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all the places where Birgit Fischer competed? | CREATE TABLE table_14884844_2 (location VARCHAR, athletes VARCHAR) | SELECT location FROM table_14884844_2 WHERE athletes = "Birgit Fischer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
41,
14836,
584,
4280,
28027,
6,
9227,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
1747,
213,
10158,
12651,
24095,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
549,
17444,
427,
9227,
3274,
96,
279,
23,
52,
12651,
24095,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the (m 1 cm 1 ) of the red dye? | CREATE TABLE table_28681 (
"Fluorescent dye" text,
"Color" text,
"mass (g/mol)" real,
"Absorb (nm)" real,
"Emit (nm)" real,
"\u03b5 (M \u22121 cm \u22121 )" text
) | SELECT "\u03b5 (M \u22121 cm \u22121 )" FROM table_28681 WHERE "Color" = 'red' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3651,
536,
41,
96,
371,
40,
76,
127,
11719,
15302,
121,
1499,
6,
96,
3881,
322,
121,
1499,
6,
96,
2754,
7,
41,
122,
87,
4641,
61,
121,
490,
6,
96,
8952,
23651,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2,
76,
4928,
115,
755,
41,
329,
3,
2,
76,
2884,
22011,
2446,
3,
2,
76,
2884,
22011,
3,
61,
121,
21680,
953,
834,
2577,
3651,
536,
549,
17444,
427,
96,
3881,
322,
121,
3274,
3,
31,
1271,
31,
1,
-100,
-100,
... |
What is the name, address, and number of students in the departments that have the 3 most students? | CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE course (
crs_code text,
dept_code text,
... | SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
8943,
834,
5525,
381,
6,
8943,
834,
40,
4350,
1499,
6,
8943,
834,
89,
4350,
1499,
6,
8943,
834,
77,
23,
10646,
1499,
6,
8943,
834,
16899,
4978,
1499,
6,
8943,
834,
9288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
26,
6707,
834,
4350,
6,
332,
4416,
26,
6707,
834,
9,
26,
12039,
6,
2847,
17161,
599,
1935,
61,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
3066,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4978,
32... |
What country had the play Cyclops? | CREATE TABLE table_63761 (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
) | SELECT "country" FROM table_63761 WHERE "play" = 'cyclops' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3959,
536,
41,
96,
4895,
121,
1499,
6,
96,
17415,
121,
1499,
6,
96,
29179,
121,
1499,
6,
96,
10925,
121,
1499,
6,
96,
17529,
121,
1499,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
17529,
121,
21680,
953,
834,
3891,
3959,
536,
549,
17444,
427,
96,
4895,
121,
3274,
3,
31,
7132,
9280,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many episodes had the us viewers (millions) figure of 5.0? | CREATE TABLE table_24258 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"US viewers (millions)" text
) | SELECT COUNT("No. in season") FROM table_24258 WHERE "US viewers (millions)" = '5.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
357,
3449,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
2266,
357,
3449,
549,
17444,
427,
96,
3063,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
20734,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Nantyglo RFC had 546 points for and how many points? | CREATE TABLE table_13741576_6 (
points VARCHAR,
points_for VARCHAR
) | SELECT points FROM table_13741576_6 WHERE points_for = "546" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
41,
979,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
445,
288,
63,
9680,
391,
5390,
141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
549,
17444,
427,
979,
834,
1161,
3274,
96,
755,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income? | CREATE TABLE table_name_67 (
investment_income VARCHAR,
other_income_sources VARCHAR,
state_pensions VARCHAR,
self_employed VARCHAR
) | SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1729,
834,
15759,
584,
4280,
28027,
6,
119,
834,
15759,
834,
7928,
7,
584,
4280,
28027,
6,
538,
834,
3801,
2865,
584,
4280,
28027,
6,
1044,
834,
18749,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1729,
834,
15759,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
538,
834,
3801,
2865,
3274,
96,
6170,
121,
3430,
1044,
834,
18749,
3274,
96,
6170,
121,
3430,
119,
834,
15759,
834,
7928,
7,
3274,
96,
5406,
121,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the last_name . | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varch... | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
174... |
What was the nationality of player picked no. 179? | CREATE TABLE table_2679061_9 (
nationality VARCHAR,
pick__number VARCHAR
) | SELECT nationality FROM table_2679061_9 WHERE pick__number = 179 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
2394,
4241,
834,
1298,
41,
1157,
485,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
357,
3708,
2394,
4241,
834,
1298,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
3,
26593,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.