NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Find the names of nurses who are nursing an undergoing treatment. | CREATE TABLE undergoes (
AssistingNurse VARCHAR
)
CREATE TABLE nurse (
name VARCHAR,
EmployeeID VARCHAR
) | SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17601,
15,
7,
41,
282,
7,
343,
53,
567,
3589,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
564,
584,
4280,
28027,
6,
15871,
4309,
584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15438,
25424,
6227,
332,
4416,
4350,
21680,
17601,
15,
7,
6157,
332,
536,
3,
15355,
3162,
10444,
6157,
332,
357,
9191,
332,
5411,
188,
7,
7,
343,
53,
567,
3589,
15,
3274,
332,
4416,
427,
51,
7379,
63,
15,
15,
... |
How many high points occur with the team Umass? | CREATE TABLE table_29556461_9 (
high_points VARCHAR,
team VARCHAR
) | SELECT COUNT(high_points) FROM table_29556461_9 WHERE team = "UMass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3769,
4389,
4241,
834,
1298,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
306,
979,
4093,
28,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
834,
2700,
7,
61,
21680,
953,
834,
3166,
3769,
4389,
4241,
834,
1298,
549,
17444,
427,
372,
3274,
96,
1265,
27189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When did nswrfl has a score of 8-21? | CREATE TABLE table_68972 (
"Year" real,
"Opponent" text,
"Competition" text,
"Score" text,
"Venue" text,
"Attendance" real
) | SELECT "Year" FROM table_68972 WHERE "Competition" = 'nswrfl' AND "Score" = '8-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4327,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
553,
35,
76,
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,
476,
2741,
121,
21680,
953,
834,
3651,
4327,
357,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
29,
7,
210,
52,
89,
40,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
927,
16539,
31,
1,
-100,
-100,
... |
Can you tell me the lowest Played that has the Position larger than 2, and the Draws smaller than 2, and the Goals against smaller than 18? | CREATE TABLE table_76290 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Played") FROM table_76290 WHERE "Position" > '2' AND "Draws" < '2' AND "Goals against" < '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
23838,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
15,
26,
8512,
21680,
953,
834,
3959,
23838,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
357,
31,
3430,
96,
308,
10936,
7,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
6221,
5405... |
What was the result of the open cup when they finished 4th in the regular season? | CREATE TABLE table_12002388_1 (
open_cup VARCHAR,
reg_season VARCHAR
) | SELECT open_cup FROM table_12002388_1 WHERE reg_season = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3632,
2773,
4060,
834,
536,
41,
539,
834,
4658,
584,
4280,
28027,
6,
5925,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
539,
834,
4658,
21680,
953,
834,
536,
3632,
2773,
4060,
834,
536,
549,
17444,
427,
5925,
834,
9476,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Tournament has a Winner and score of goran ivani evi 6 4, 6 2, 7 6(2)? | CREATE TABLE table_8540 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
) | SELECT "Tournament" FROM table_8540 WHERE "Winner and score" = 'goran ivanišević 6–4, 6–2, 7–6(2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4433,
2445,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
518,
10266,
121,
1499,
6,
96,
18455,
687,
11,
2604,
121,
1499,
6,
96,
371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4433,
2445,
549,
17444,
427,
96,
18455,
687,
11,
2604,
121,
3274,
3,
31,
839,
2002,
3,
23,
16658,
2,
15,
2099,
2,
431,
104,
8525,
431,
104,
4482,
489,
104,
948,
16... |
Which country was the player from who scored 66-72-70=207? | CREATE TABLE table_name_45 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
47,
8,
1959,
45,
113,
5799,
431,
25302,
7412,
2518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2604,
3274,
3,
3539,
3,
18,
9455,
3,
18,
2861,
3274,
3,
26426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which weight class had a time of 4:59? | CREATE TABLE table_name_65 (
weight_class VARCHAR,
time VARCHAR
) | SELECT weight_class FROM table_name_65 WHERE time = "4:59" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1293,
834,
4057,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1293,
853,
141,
3,
9,
97,
13,
314,
10,
3390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1293,
834,
4057,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
97,
3274,
96,
591,
10,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8? | CREATE TABLE table_53268 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
) | SELECT AVG("Total (kg)") FROM table_53268 WHERE "Snatch" > '87.5' AND "Bodyweight" > '74.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
357,
3651,
41,
96,
23954,
121,
1499,
6,
96,
279,
9666,
9378,
121,
490,
6,
96,
134,
29,
14547,
121,
490,
6,
96,
254,
109,
152,
3,
184,
3,
12488,
157,
121,
490,
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,
71,
17217,
599,
121,
3696,
1947,
41,
8711,
61,
8512,
21680,
953,
834,
4867,
357,
3651,
549,
17444,
427,
96,
134,
29,
14547,
121,
2490,
3,
31,
927,
15731,
31,
3430,
96,
279,
9666,
9378,
121,
2490,
3,
31,
940,
27441... |
What team scored 4 points? | CREATE TABLE table_20396_1 (
team VARCHAR,
points VARCHAR
) | SELECT team FROM table_20396_1 WHERE points = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
4314,
834,
536,
41,
372,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
5799,
314,
979,
58,
1,
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,
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,
372,
21680,
953,
834,
23330,
4314,
834,
536,
549,
17444,
427,
979,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school? | CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR) | SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
6739,
834,
6646,
584,
4280,
28027,
6,
3,
76,
17,
9,
107,
834,
51,
52,
834,
4883,
8044,
3184,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6646,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3,
76,
17,
9,
107,
834,
51,
52,
834,
4883,
8044,
3184,
3274,
96,
17,
63,
1171,
4244,
210,
7,
121,
3430,
215,
3274,
2464,
1,
-100,
-100,
-100,
-1... |
What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30? | CREATE TABLE table_46736 (
"Letter" text,
"IPv6 address" text,
"AS-number" text,
"Operator" text,
"Location #sites (global/local)" text,
"Software" text
) | SELECT "Location #sites (global/local)" FROM table_46736 WHERE "Software" = 'bind' AND "IPv6 address" = '2001:503:c27::2:30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
3420,
41,
96,
434,
15583,
121,
1499,
6,
96,
4629,
208,
948,
1115,
121,
1499,
6,
96,
3291,
18,
5525,
1152,
121,
1499,
6,
96,
667,
883,
1016,
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,
434,
32,
75,
257,
1713,
3585,
7,
41,
14063,
138,
87,
16882,
61,
121,
21680,
953,
834,
591,
3708,
3420,
549,
17444,
427,
96,
29944,
121,
3274,
3,
31,
8610,
31,
3430,
96,
4629,
208,
948,
1115,
121,
3274,
3,
31... |
List all of the shows with Alice Levine Jamie East is the Sunday presenter. | CREATE TABLE table_11748792_2 (
series VARCHAR,
sunday VARCHAR
) | SELECT series FROM table_11748792_2 WHERE sunday = "Alice Levine Jamie East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
3707,
4440,
357,
834,
357,
41,
939,
584,
4280,
28027,
6,
1997,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
13,
8,
1267,
28,
13390,
312,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
21680,
953,
834,
20275,
3707,
4440,
357,
834,
357,
549,
17444,
427,
1997,
1135,
3274,
96,
188,
2176,
15,
312,
8402,
17845,
1932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average age at appointment of those attached to security? | CREATE TABLE table_60898 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Foreign nationality" text,
"Portfolio attachment" text,
"Govt salary" text
) | SELECT AVG("age at appointment") FROM table_60898 WHERE "Portfolio attachment" = 'security' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3914,
927,
41,
96,
25139,
3375,
564,
121,
1499,
6,
96,
3541,
4477,
15,
564,
121,
1499,
6,
96,
545,
44,
4141,
121,
490,
6,
96,
3809,
15,
3191,
1157,
485,
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,
71,
17217,
599,
121,
545,
44,
4141,
8512,
21680,
953,
834,
3328,
3914,
927,
549,
17444,
427,
96,
14714,
8047,
32,
11352,
121,
3274,
3,
31,
19361,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If first elected on 2003 (appt.), when was the term limited? | CREATE TABLE table_3476 (
"District" real,
"Representative" text,
"Party" text,
"Residence" text,
"First Elected" text,
"Term Limited" real
) | SELECT MIN("Term Limited") FROM table_3476 WHERE "First Elected" = '2003 (Appt.)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
3959,
41,
96,
308,
23,
20066,
121,
490,
6,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
1649,
1583,
3772,
121,
1499,
6,
96,
25171,
1289,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11679,
7363,
8512,
21680,
953,
834,
3710,
3959,
549,
17444,
427,
96,
25171,
1289,
7633,
121,
3274,
3,
31,
23948,
41,
9648,
17,
5,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for the row with a new entries this round of 44? | CREATE TABLE table_name_71 (
date VARCHAR,
new_entries_this_round VARCHAR
) | SELECT date FROM table_name_71 WHERE new_entries_this_round = "44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
833,
584,
4280,
28027,
6,
126,
834,
35,
9000,
834,
8048,
834,
7775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
126,
834,
35,
9000,
834,
8048,
834,
7775,
3274,
96,
3628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz? | CREATE TABLE table_name_66 (sampling_memory_upgrade_able VARCHAR, sampling_rate VARCHAR) | SELECT sampling_memory_upgrade_able FROM table_name_66 WHERE sampling_rate = "16-bit 44.1khz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
7,
4624,
697,
834,
526,
2528,
63,
834,
413,
6801,
834,
179,
584,
4280,
28027,
6,
17222,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17222,
834,
526,
2528,
63,
834,
413,
6801,
834,
179,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
17222,
834,
2206,
3274,
96,
2938,
18,
2360,
314,
19708,
157,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patient whose age is below 36 and diagnosed for abrassion trunk? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "36" AND diagnoses.short_title = "Abrasion trunk" | [
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which School has a Enrollment of 908? | CREATE TABLE table_66057 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "School" FROM table_66057 WHERE "Enrollment" = '908' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
3436,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29364,
121,
21680,
953,
834,
27720,
3436,
549,
17444,
427,
96,
8532,
4046,
297,
121,
3274,
3,
31,
2394,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which position has an Overall smaller than 64, and a Round of 1? | CREATE TABLE table_48523 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_48523 WHERE "Overall" < '64' AND "Round" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4433,
2773,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
4433,
2773,
549,
17444,
427,
96,
23847,
1748,
121,
3,
2,
3,
31,
4389,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What MLS team picked Babayele Sodade? | CREATE TABLE table_74435 (
"Pick #" real,
"MLS team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT "MLS team" FROM table_74435 WHERE "Player" = 'Babayele Sodade' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
2469,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
372,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17976,
372,
121,
21680,
953,
834,
4581,
591,
2469,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
279,
9,
11119,
400,
264,
14677,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the name of the next spec ops mission release after arctic recon ? | CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
) | SELECT "spec ops mission(s)" FROM table_204_587 WHERE id = (SELECT id FROM table_204_587 WHERE "spec ops mission(s)" = 'arctic recon') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
4225,
41,
3,
23,
26,
381,
6,
96,
15946,
599,
7,
61,
121,
1499,
6,
96,
23829,
20846,
2828,
599,
7,
61,
121,
1499,
6,
96,
7576,
3,
9280,
2253,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7576,
3,
9280,
2253,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
755,
4225,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
755,
4225,
549,
17444,
427,
96,
7576,
... |
Who was the womens doubles when the mixed doubles is jacco arends selena piek? | CREATE TABLE table_12171145_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR) | SELECT womens_doubles FROM table_12171145_1 WHERE mixed_doubles = "Jacco Arends Selena Piek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
4450,
20987,
834,
536,
41,
210,
32,
904,
7,
834,
25761,
7,
584,
4280,
28027,
6,
4838,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
887,
7,
834,
25761,
7,
21680,
953,
834,
22011,
4450,
20987,
834,
536,
549,
17444,
427,
4838,
834,
25761,
7,
3274,
96,
683,
21007,
1521,
727,
7,
11471,
35,
9,
11591,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many enrollment figures are provided for Roosevelt High School? | CREATE TABLE table_13759592_1 (enrollment VARCHAR, high_school VARCHAR) | SELECT COUNT(enrollment) FROM table_13759592_1 WHERE high_school = "Roosevelt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3072,
3301,
4508,
834,
536,
41,
35,
4046,
297,
584,
4280,
28027,
6,
306,
834,
6646,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
17938,
5638,
33,
937,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
35,
4046,
297,
61,
21680,
953,
834,
2368,
3072,
3301,
4508,
834,
536,
549,
17444,
427,
306,
834,
6646,
3274,
96,
22778,
7,
15,
4911,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose diagnoses icd9 code is 78909 and lab test abnormal status is delta? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "78909" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the To par of the T5 Place Player with a Score of 71-68-76=215? | CREATE TABLE table_name_33 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_33 WHERE place = "t5" AND score = 71 - 68 - 76 = 215 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
286,
3274,
96,
17,
17395,
3430,
2604,
3274,
3,
4450,
3,
18,
3,
3651,
3,
18,
3,
3959,
3274,
204,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names of the three most recent festivals. | CREATE TABLE festival_detail (
Festival_Name VARCHAR,
YEAR VARCHAR
) | SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3397,
834,
23954,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3056,
13,
8,
386,
167,
1100,
14856,
5,
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,
3397,
834,
23954,
21680,
3994,
834,
221,
5756,
4674,
11300,
272,
476,
30431,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the qual 2 when the best is 1:45.172? | CREATE TABLE table_name_32 (
qual_2 VARCHAR,
best VARCHAR
) | SELECT qual_2 FROM table_name_32 WHERE best = "1:45.172" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3,
11433,
834,
357,
584,
4280,
28027,
6,
200,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
11433,
204,
116,
8,
200,
19,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
11433,
834,
357,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
200,
3274,
96,
536,
10,
2128,
5,
27156,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose discharge location is long term care hospital and primary disease is coronary artery disease? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND demographic.diagnosis = "CORONARY ARTERY DISEASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
434,
15628,
3,
5946,
329,
3,
22443,
454,
3638,
4111,
16359,
... |
calculate the duration of patient 010-23252's last hospital stay. | 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 STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '010-23252' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC 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,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
Give me the comparison about meter_100 over the meter_600 . | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE... | SELECT meter_600, meter_100 FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
3,
4401,
834,
6007,
6,
3,
4401,
834,
2915,
21680,
27424,
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,
-100,
-100,
-... |
what are the top three most common diagnoses of people in 20s? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 3 | [
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,
3,
17,
5411,
25930,
4844,
159,
4350,
21680,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
6... |
Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178? | CREATE TABLE table_39254 (
"Rank" real,
"Town" text,
"Population" real,
"Year" real,
"Borough" text,
"Definition" text
) | SELECT MIN("Rank") FROM table_39254 WHERE "Borough" = 'richmondshire' AND "Population" > '8,178' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
1828,
591,
41,
96,
22557,
121,
490,
6,
96,
382,
9197,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
476,
2741,
121,
490,
6,
96,
279,
32,
13245,
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,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
3288,
1828,
591,
549,
17444,
427,
96,
279,
32,
13245,
121,
3274,
3,
31,
3723,
6764,
5718,
31,
3430,
96,
27773,
7830,
121,
2490,
3,
31,
11864,
27640,
31,
1,
-100,
-... |
What are all the round 3's after 1982? | CREATE TABLE table_20043 (
"From" real,
"To" real,
"Goal" real,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
) | SELECT "Round 3" FROM table_20043 WHERE "From" = '1982' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21653,
519,
41,
96,
22674,
121,
490,
6,
96,
3696,
121,
490,
6,
96,
6221,
138,
121,
490,
6,
96,
448,
32,
1106,
209,
121,
1499,
6,
96,
448,
32,
1106,
204,
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,
448,
32,
1106,
220,
121,
21680,
953,
834,
21653,
519,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
2294,
4613,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Create a bar chart showing the total number across bedtype, and I want to show y axis from low to high order please. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
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,
1953,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many patients who stayed in the hospital for more than 7 days have a bilirubin lab test done? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab.label = "Bilirubin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)? | CREATE TABLE table_2282444_1 (t_c__ VARCHAR, magnet VARCHAR) | SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2266,
3628,
834,
536,
41,
17,
834,
75,
834,
834,
584,
4280,
28027,
6,
12212,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
727,
204,
3,
89,
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,
17,
834,
75,
834,
834,
61,
6157,
3,
1956,
75,
834,
21680,
953,
834,
357,
2577,
2266,
3628,
834,
536,
549,
17444,
427,
12212,
3274,
96,
567,
26,
204,
4163,
968,
272,
41,
25357,
61,
121,
1,
-100,
... |
provide the number of patients whose lab test name is wbc, other fluid? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC, Other Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which team hired Gary Megson as the replacement manager? | CREATE TABLE table_name_63 (team VARCHAR, replaced_by VARCHAR) | SELECT team FROM table_name_63 WHERE replaced_by = "gary megson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11650,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
10626,
13439,
1212,
122,
739,
38,
8,
3709,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
5821,
834,
969,
3274,
96,
1478,
63,
140,
122,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many parishes are named st. anthony ? | CREATE TABLE table_204_540 (
id number,
"name" text,
"town" text,
"deanery" text,
"vicariate" text,
"founded" number,
"original ethnic community" text
) | SELECT COUNT("name") FROM table_204_540 WHERE "name" = 'st. anthony' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25379,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
3540,
121,
1499,
6,
96,
221,
152,
4203,
121,
1499,
6,
96,
7287,
1665,
342,
121,
1499,
6,
96,
23329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
8512,
21680,
953,
834,
26363,
834,
25379,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
7,
17,
5,
46,
189,
106,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which rider went 18 laps ending +25.165 behind the leader? | CREATE TABLE table_31857 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Rider" FROM table_31857 WHERE "Laps" = '18' AND "Time" = '+25.165' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
3436,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
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,
96,
448,
23,
588,
121,
21680,
953,
834,
519,
2606,
3436,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
2606,
31,
3430,
96,
13368,
121,
3274,
3,
31,
1220,
1828,
5,
22823,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What is the average age of patients who are equal or more than 74 years and were admitted to the hospital in or after year 2105? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "74" AND demographic.admityear >= "2105" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
4581,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
15239,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
country with the most bronze medals . | CREATE TABLE table_204_308 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_308 ORDER BY "bronze" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1458,
927,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
1458,
927,
4674,
11300,
272,
476,
96,
13711,
776,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is date of birth and procedure icd9 code of subject name jerry deberry? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.dob, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14798,
5,
26,
32,
115,
6,
4293,
5,
447,
26,
1298,
834,
4978,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
... |
what event is listed previous to the pole vault ? | CREATE TABLE table_204_766 (
id number,
"event" text,
"meeting gaz de france\nparis" text,
"golden gala\nrome" text,
"bislett games\noslo" text,
"weltklasse zurich" text,
"memorial van damme\nbrussels" text,
"istaf\nberlin" text
) | SELECT "event" FROM table_204_766 WHERE id = (SELECT id FROM table_204_766 WHERE "event" = 'pole vault') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3539,
41,
3,
23,
26,
381,
6,
96,
15,
2169,
121,
1499,
6,
96,
526,
15,
1222,
7424,
20,
2515,
663,
2,
29,
1893,
159,
121,
1499,
6,
96,
14910,
35,
7466,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
2169,
121,
21680,
953,
834,
26363,
834,
940,
3539,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
940,
3539,
549,
17444,
427,
96,
15,
2169,
121,
3274,
3,
31,
... |
the most recent version to be released was in 1989 , what was it called ? | CREATE TABLE table_204_309 (
id number,
"model" text,
"released" number,
"usage" text,
"features" text,
"storage" text
) | SELECT "model" FROM table_204_309 WHERE "released" = 1989 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1458,
1298,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
21019,
26,
121,
381,
6,
96,
18672,
121,
1499,
6,
96,
30844,
7,
121,
1499,
6,
96,
7279,
545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21770,
121,
21680,
953,
834,
26363,
834,
1458,
1298,
549,
17444,
427,
96,
21019,
26,
121,
3274,
9975,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What location was listed on 1977-11-23? | CREATE TABLE table_name_25 (location VARCHAR, listed VARCHAR) | SELECT location FROM table_name_25 WHERE listed = "1977-11-23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
14836,
584,
4280,
28027,
6,
2616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
47,
2616,
30,
16433,
9169,
18,
2773,
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,
1128,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2616,
3274,
96,
2294,
4013,
9169,
18,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many customers using email as the contact channel? Group by customer name and bin active date by weekday in a stacked bar chart, show from high to low by the y-axis. | CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(15),
order_date DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
addres... | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name ORDER BY COUNT(active_from_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
7395,
588,
7,
41,
455,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
455,
834,
8547,
302,
584,
4280,
28027,
599,
1808,
201,
455,
834,
5522,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1676,
834,
7152,
834,
5522,
6,
2847,
17161,
599,
6645,
834,
7152,
834,
5522,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697... |
how many patients whose admission year is less than 2125 and item id is 51484? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2125" AND lab.itemid = "51484" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Director for Star Wars Episode II: attack of the clones? | CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR) | SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
25982,
834,
7,
834,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2578,
21,
2042,
10265,
16112,
2466,
10,
3211,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2233,
3274,
96,
3624,
615,
7,
5640,
3,
23,
23,
10,
3211,
13,
8,
3,
3903,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5? | CREATE TABLE table_name_49 (
pd_per_game INTEGER,
pa_per_game VARCHAR,
streak VARCHAR,
rank VARCHAR,
winning__percentage VARCHAR
) | SELECT MIN(pd_per_game) FROM table_name_49 WHERE rank < 4 AND winning__percentage = "78.6%" AND streak = "w1" AND pa_per_game < 81.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
3,
102,
26,
834,
883,
834,
7261,
3,
21342,
17966,
6,
2576,
834,
883,
834,
7261,
584,
4280,
28027,
6,
18631,
584,
4280,
28027,
6,
11003,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
26,
834,
883,
834,
7261,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
11003,
3,
2,
314,
3430,
3447,
834,
834,
883,
3728,
545,
3274,
96,
3940,
5,
6370,
121,
3430,
18631,
3274,
96,
210,... |
What is the average match when the singapore armed forces played away against perak fa (malaysia)? | CREATE TABLE table_name_65 (
match INTEGER,
home_away VARCHAR,
opponent_team VARCHAR
) | SELECT AVG(match) FROM table_name_65 WHERE home_away = "away" AND opponent_team = "perak fa (malaysia)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1588,
3,
21342,
17966,
6,
234,
834,
8006,
584,
4280,
28027,
6,
15264,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19515,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
234,
834,
8006,
3274,
96,
8006,
121,
3430,
15264,
834,
11650,
3274,
96,
883,
1639,
3,
89,
9,
41,
51,
9,
20244,
23,
9,
61,
121,
1,
-10... |
what year was their top performance ? | CREATE TABLE table_204_117 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) | SELECT "season" FROM table_204_117 ORDER BY "position" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20275,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
4563,
121,
1499,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
14309,
121,
1499,
6,
96,
4718,
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,
9476,
121,
21680,
953,
834,
26363,
834,
20275,
4674,
11300,
272,
476,
96,
4718,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date had a result of 8-0? | CREATE TABLE table_69677 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_69677 WHERE "Result" = '8-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3708,
940,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
342,
121,
21680,
953,
834,
3951,
3708,
940,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
927,
18,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the player with a 75-68-70=213 score? | CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
3,
9,
6374,
18,
3651,
18,
2518,
2423,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2604,
3274,
6374,
3,
18,
3,
3651,
3,
18,
2861,
3274,
204,
2368,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Winning score in 1965? | CREATE TABLE table_name_90 (
winning_score VARCHAR,
year VARCHAR
) | SELECT winning_score FROM table_name_90 WHERE year = 1965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
549,
10503,
2604,
16,
19201,
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,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
3274,
19201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the presenter of the episode broadcast in the UK on 1996-09-25? | CREATE TABLE table_name_45 (presenter VARCHAR, uk_broadcast_date VARCHAR) | SELECT presenter FROM table_name_45 WHERE uk_broadcast_date = "1996-09-25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
12640,
49,
584,
4280,
28027,
6,
3,
1598,
834,
115,
8635,
5254,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
915,
49,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
915,
49,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
1598,
834,
115,
8635,
5254,
834,
5522,
3274,
96,
19479,
28625,
1298,
14855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the finale for | CREATE TABLE table_16355 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) | SELECT "Finale" FROM table_16355 WHERE "Chinese title" = '潮爆大狀' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2469,
755,
41,
96,
22557,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
345,
15,
1639,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10270,
15,
121,
21680,
953,
834,
2938,
2469,
755,
549,
17444,
427,
96,
3541,
4477,
15,
2233,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the incident in Pol-E Khomri? | CREATE TABLE table_name_17 (
date VARCHAR,
location VARCHAR
) | SELECT date FROM table_name_17 WHERE location = "pol-e khomri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
833,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
5415,
16,
3,
8931,
18,
427,
480,
10207,
52,
23,
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,
833,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1128,
3274,
96,
3233,
18,
15,
3,
157,
10207,
52,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21? | CREATE TABLE table_47323 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_47323 WHERE "Round" > '7' AND "Pick" = '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2668,
519,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
4177,
2668,
519,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
940,
31,
3430,
96,
345,
3142,
121,
3274,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100... |
What is the dot value when the ellipsis is 0.012345679 ? | CREATE TABLE table_name_29 (
dots VARCHAR,
ellipsis VARCHAR
) | SELECT dots FROM table_name_29 WHERE ellipsis = "0.012345679…" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
21940,
584,
4280,
28027,
6,
3,
7999,
102,
7,
159,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
103,
17,
701,
116,
8,
3,
7999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21940,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3,
7999,
102,
7,
159,
3274,
96,
11739,
14574,
2128,
948,
4440,
10011,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Floors have a Location of ljubljana, and a Name of tr3? | CREATE TABLE table_name_61 (
floors VARCHAR,
location VARCHAR,
name VARCHAR
) | SELECT floors FROM table_name_61 WHERE location = "ljubljana" AND name = "tr3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
8242,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
12324,
7,
43,
3,
9,
10450,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
8242,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
1128,
3274,
96,
40,
2047,
115,
40,
7066,
9,
121,
3430,
564,
3274,
96,
17,
52,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu? | CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR) | SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Dr. Kozaburo Nambu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
20579,
4177,
536,
834,
519,
41,
15,
9,
3537,
834,
4055,
277,
584,
4280,
28027,
6,
3,
6194,
834,
834,
3272,
21208,
834,
14910,
834,
1259,
115,
834,
584,
4280,
28027,
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,
3,
15,
9,
3537,
834,
4055,
277,
21680,
953,
834,
2517,
20579,
4177,
536,
834,
519,
549,
17444,
427,
3,
6194,
834,
834,
3272,
21208,
834,
14910,
834,
1259,
115,
834,
3274,
96,
14561,
5,
1793,
1629,
5808,
32,
18740,
... |
Which Branding has a frequency of 1080khz? | CREATE TABLE table_name_27 (branding VARCHAR, frequency VARCHAR) | SELECT branding FROM table_name_27 WHERE frequency = "1080khz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
12164,
53,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4688,
53,
65,
3,
9,
7321,
13,
335,
2079,
157,
107,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14282,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
7321,
3274,
96,
1714,
2079,
157,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose language is ptun and year of birth is less than 2066? | 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 WHERE demographic.language = "PTUN" AND demographic.dob_year < "2066" | [
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,
549,
17444,
427,
14798,
5,
24925,
3274,
96,
6383,
7443,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
1755,
3539,
... |
What is the Date of the game with a Record of 8 10 6? | CREATE TABLE table_47169 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_47169 WHERE "Record" = '8–10–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
27096,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
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,
308,
342,
121,
21680,
953,
834,
4177,
27096,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
927,
104,
1714,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the table for the team Blackburn Rovers? | CREATE TABLE table_24172157_3 (
table VARCHAR,
team VARCHAR
) | SELECT table FROM table_24172157_3 WHERE team = "Blackburn Rovers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27156,
27452,
834,
519,
41,
953,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
953,
21,
8,
372,
1589,
7223,
21608,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
953,
21680,
953,
834,
2266,
27156,
27452,
834,
519,
549,
17444,
427,
372,
3274,
96,
20096,
7223,
21608,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Week, when Result is W 34-21? | CREATE TABLE table_name_89 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
8041,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
6551,
6,
116,
3,
20119,
19,
549,
6154,
16539,
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... | [
3,
23143,
14196,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
741,
3274,
96,
210,
6154,
16539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the type if the organization name is Gamma RHO Lambda 1? | CREATE TABLE table_2538117_7 (
type VARCHAR,
organization VARCHAR
) | SELECT type FROM table_2538117_7 WHERE organization = "Gamma Rho Lambda 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3747,
20275,
834,
940,
41,
686,
584,
4280,
28027,
6,
1470,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,
3,
99,
8,
1470,
564,
19,
19871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
1828,
3747,
20275,
834,
940,
549,
17444,
427,
1470,
3274,
96,
517,
9,
635,
9,
11092,
32,
19211,
26,
9,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the 2014 which has a 2003-04 of did not participate and a 2005 of did not participate | CREATE TABLE table_67074 (
"Competition" text,
"1993\u2013 94" text,
"1994\u2013 95" text,
"1995\u2013 96" text,
"1996\u2013 97" text,
"1997\u2013 98" text,
"1998\u2013 99" text,
"1999\u2013 2000" text,
"2000\u2013 01" text,
"2001\u2013 02" text,
"2002\u2013 03" text,
"20... | SELECT "2014" FROM table_67074 WHERE "2003\u2013 04" = 'did not participate' AND "2005" = 'did not participate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4560,
591,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
2294,
4271,
2,
76,
11138,
3,
4240,
121,
1499,
6,
96,
2294,
4240,
2,
76,
11138,
11923,
121,
1499,
6,
96,
2294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10218,
121,
21680,
953,
834,
3708,
4560,
591,
549,
17444,
427,
96,
23948,
2,
76,
11138,
11484,
121,
3274,
3,
31,
12416,
59,
3716,
31,
3430,
96,
22594,
121,
3274,
3,
31,
12416,
59,
3716,
31,
1,
-100,
-100,
-100... |
Name the tv time for attendance of 69,551 | CREATE TABLE table_name_84 (
tv_time VARCHAR,
attendance VARCHAR
) | SELECT tv_time FROM table_name_84 WHERE attendance = "69,551" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
3,
17,
208,
834,
715,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
17,
208,
97,
21,
11364,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
715,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
11364,
3274,
96,
3951,
6,
3769,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the original air date for series number 15 | CREATE TABLE table_26261072_1 (original_air_date VARCHAR, series__number VARCHAR) | SELECT original_air_date FROM table_26261072_1 WHERE series__number = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2688,
18057,
357,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2688,
2688,
18057,
357,
834,
536,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the date of stade des martyrs, dr congo | CREATE TABLE table_name_89 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
833,
13,
3342,
221,
93,
29717,
7,
6,
3,
26,
52,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
5669,
3274,
96,
2427,
221,
93,
29717,
7,
6,
3,
26,
52,
975,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the winner when the trofeo fast team is carrera jeans-vagabond in stage 5? | CREATE TABLE table_name_55 (winner VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR) | SELECT winner FROM table_name_55 WHERE trofeo_fast_team = "carrera jeans-vagabond" AND stage = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
3757,
687,
584,
4280,
28027,
6,
10968,
89,
15,
32,
834,
11584,
834,
11650,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
10968,
89,
15,
32,
834,
11584,
834,
11650,
3274,
96,
1720,
52,
1498,
14118,
18,
208,
4711,
18414,
121,
3430,
1726,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
... |
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications? | CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, maximum_term VARCHAR, pct_route_available VARCHAR) | SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = "10 years" AND pct_route_available = "Yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
4240,
2368,
834,
536,
41,
1018,
8674,
834,
7152,
834,
4665,
295,
834,
12251,
584,
4280,
28027,
6,
2411,
834,
1987,
584,
4280,
28027,
6,
3,
102,
75,
17,
834,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6113,
834,
7152,
834,
4665,
295,
834,
12251,
21680,
953,
834,
357,
2555,
4240,
2368,
834,
536,
549,
17444,
427,
2411,
834,
1987,
3274,
96,
1714,
203,
121,
3430,
3,
102,
75,
17,
834,
20300,
834,
28843,
3274,
96,
1973... |
What is the Lane of the swimmer with a Time of 8:34.25? | CREATE TABLE table_63681 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Lane" FROM table_63681 WHERE "Time" = '8:34.25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3651,
536,
41,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
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,
96,
434,
152,
15,
121,
21680,
953,
834,
3891,
3651,
536,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
927,
10,
3710,
5,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many assists did the player who scored 251 points make | CREATE TABLE table_19722233_5 (assists VARCHAR, points VARCHAR) | SELECT assists FROM table_19722233_5 WHERE points = 251 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
2884,
20879,
834,
755,
41,
6500,
7,
17,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
13041,
410,
8,
1959,
113,
5799,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13041,
21680,
953,
834,
27181,
2884,
20879,
834,
755,
549,
17444,
427,
979,
3274,
944,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the details for all chip models. | CREATE TABLE chip_model (Id VARCHAR) | SELECT * FROM chip_model | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6591,
834,
21770,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1030,
21,
66,
6591,
2250,
5,
1,
0,
0,
0,
0,
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,
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,
0,
0,
0... | [
3,
23143,
14196,
1429,
21680,
6591,
834,
21770,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and revenue , and group by attribute name, and order in asc by the y axis. | 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 T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T2.Revenue | [
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,
5411,
23954,
6,
332,
4416,
1649,
15098,
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,
272,
476,
332,
5... |
Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express? | CREATE TABLE table_name_18 (
evening VARCHAR,
sunday VARCHAR,
name VARCHAR
) | SELECT evening FROM table_name_18 WHERE sunday = "no" AND name = "s. vidal/plant express" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
2272,
584,
4280,
28027,
6,
1997,
1135,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1441,
53,
24,
65,
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,
2272,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1997,
1135,
3274,
96,
29,
32,
121,
3430,
564,
3274,
96,
7,
5,
3,
6961,
138,
87,
14925,
3980,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the minimum population canada 2011 census with seat of rcm being cowansville | CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR) | SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
19993,
5176,
834,
536,
41,
9791,
7830,
834,
658,
18089,
834,
13907,
834,
75,
35,
7,
302,
3,
21342,
17966,
6,
3143,
834,
858,
834,
52,
75,
51,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
834,
658,
18089,
834,
13907,
834,
75,
35,
7,
302,
61,
21680,
953,
834,
1714,
19993,
5176,
834,
536,
549,
17444,
427,
3143,
834,
858,
834,
52,
75,
51,
3274,
96,
3881,
3877,
9727,
121,
1,
... |
What was the result in the Tennessee 6 district election? | CREATE TABLE table_18625 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18625 WHERE "District" = 'Tennessee 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
1828,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
25398,
1828,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
382,
35,
655,
15,
15,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients who have received a microbiology test for sputum, tracheal specimen. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'sputum, tracheal specimen') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
21680,
2179,
... |
When was the most recent year that kathy whitworth was the runner-up? | CREATE TABLE table_name_49 (
year INTEGER,
runner_s__up VARCHAR
) | SELECT MAX(year) FROM table_name_49 WHERE runner_s__up = "kathy whitworth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
215,
3,
21342,
17966,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
167,
1100,
215,
24,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
1258,
189,
63,
3,
12124,
17,
7048,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year ranked larger than 5? | CREATE TABLE table_name_18 (
year VARCHAR,
rank INTEGER
) | SELECT year FROM table_name_18 WHERE rank > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
215,
584,
4280,
28027,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
3,
8232,
2186,
145,
305,
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,
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... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
11003,
2490,
305,
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's the record where score is w 105 92 (ot) | CREATE TABLE table_17355 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_17355 WHERE "Score" = 'W 105–92 (OT)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
755,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
7621,
121,
21680,
953,
834,
2517,
2469,
755,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
518,
3,
12869,
104,
4508,
41,
6951,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What teams finished 3rd when limoges finished 4th? | CREATE TABLE table_20548 (
"Season" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text
) | SELECT "3rd Place" FROM table_20548 WHERE "4th Place" = 'Limoges' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
3707,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
536,
7,
17,
3399,
121,
1499,
6,
96,
357,
727,
3399,
121,
1499,
6,
96,
519,
52,
26,
3399,
121,
1499,
6,
96,
591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
52,
26,
3399,
121,
21680,
953,
834,
23201,
3707,
549,
17444,
427,
96,
591,
189,
3399,
121,
3274,
3,
31,
434,
603,
32,
2897,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total Until when the Titles was 5? | CREATE TABLE table_name_80 (
until INTEGER,
titles VARCHAR
) | SELECT SUM(until) FROM table_name_80 WHERE titles = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
552,
3,
21342,
17966,
6,
8342,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
3,
12282,
116,
8,
11029,
7,
47,
305,
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,
180,
6122,
599,
202,
17,
173,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
8342,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was ron-robert zieler loaned out until ? | CREATE TABLE table_62207 (
"Date From" text,
"Date To" text,
"Pos." text,
"Name" text,
"Moving To" text
) | SELECT "Date To" FROM table_62207 WHERE "Name" = 'ron-robert zieler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
26426,
41,
96,
308,
342,
1029,
121,
1499,
6,
96,
308,
342,
304,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
304,
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,
308,
342,
304,
121,
21680,
953,
834,
4056,
26426,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
52,
106,
18,
5840,
49,
17,
3,
13187,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the worlds smallest population? | CREATE TABLE table_22772 (
"Year" real,
"World" real,
"Asia" text,
"Africa" text,
"Europe" text,
"Latin America/Caribbean" text,
"Northern America" text,
"Oceania" text
) | SELECT MIN("World") FROM table_22772 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4013,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
17954,
121,
490,
6,
96,
188,
7,
23,
9,
121,
1499,
6,
96,
29596,
121,
1499,
6,
96,
11351,
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,
3,
17684,
599,
121,
17954,
8512,
21680,
953,
834,
2884,
4013,
357,
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,
-100,... |
What was the date of the game when Atlanta was the home team? | CREATE TABLE table_name_81 (
date VARCHAR,
home VARCHAR
) | SELECT date FROM table_name_81 WHERE home = "atlanta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
833,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
116,
9673,
47,
8,
234,
372,
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... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
234,
3274,
96,
144,
6761,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is listed as the Place of birth for the Elector of Soffredo? | CREATE TABLE table_name_31 (place_of_birth VARCHAR, elector VARCHAR) | SELECT place_of_birth FROM table_name_31 WHERE elector = "soffredo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
4687,
834,
858,
834,
20663,
584,
4280,
28027,
6,
11924,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
38,
8,
3399,
13,
3879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
834,
858,
834,
20663,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
11924,
127,
3274,
96,
7,
15007,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the distance from north | CREATE TABLE table_197286_4 (
distance VARCHAR,
direction VARCHAR
) | SELECT distance FROM table_197286_4 WHERE direction = "North" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
5865,
3840,
834,
591,
41,
2357,
584,
4280,
28027,
6,
2212,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2357,
45,
3457,
1,
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,
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,
2357,
21680,
953,
834,
2294,
5865,
3840,
834,
591,
549,
17444,
427,
2212,
3274,
96,
22969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does the player who played for butler cc (ks) play? | CREATE TABLE table_10015132_11 (
position VARCHAR,
school_club_team VARCHAR
) | SELECT position FROM table_10015132_11 WHERE school_club_team = "Butler CC (KS)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
2596,
41,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
2915,
1808,
23757,
834,
2596,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
11836,
1171,
3,
2823,
41,
13383,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When Fred Funk had a to par of E, what was the score? | CREATE TABLE table_name_95 (
score VARCHAR,
to_par VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_95 WHERE to_par = "e" AND player = "fred funk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2604,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
12264,
21867,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
1959,
3274,
96,
89,
1271,
3,
15668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8? | CREATE TABLE table_name_60 (
gold INTEGER,
silver VARCHAR,
rank VARCHAR
) | SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2045,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2540,
65,
3,
9,
9273,
2186,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
96,
235,
1947,
121,
2490,
220,
3430,
11003,
3274,
96,
235,
1947,
121,
3430,
4294,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the tournament played 13 November 2000? | CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_35 WHERE date = "13 november 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
5892,
1944,
1179,
1671,
276... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
833,
3274,
96,
2368,
3,
5326,
18247,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In how many years did Pat Bradley became the champion? | CREATE TABLE table_229059_2 (
year VARCHAR,
champion VARCHAR
) | SELECT COUNT(year) FROM table_229059_2 WHERE champion = "Pat Bradley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
3390,
834,
357,
41,
215,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
203,
410,
5192,
23097,
1632,
8,
6336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
2884,
2394,
3390,
834,
357,
549,
17444,
427,
6336,
3274,
96,
345,
144,
23097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the height of the player who went to oak hill academy? | CREATE TABLE table_53574 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Height" FROM table_53574 WHERE "School" = 'oak hill academy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
4581,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
2632,
121,
21680,
953,
834,
755,
2469,
4581,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
32,
1639,
9956,
25990,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Category in Brown has a Frequency of 0.08%? | CREATE TABLE table_name_84 (
brown VARCHAR,
frequency VARCHAR
) | SELECT brown FROM table_name_84 WHERE frequency = "0.08%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
4216,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17459,
16,
3899,
65,
3,
9,
5532,
835,
11298,
13,
3,
1173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4216,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
7321,
3274,
96,
11739,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-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.