NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
who was the top pick of the 1989 major league baseball draft ? | CREATE TABLE table_203_149 (
id number,
"pick" number,
"player" text,
"team" text,
"position" text,
"school" text
) | SELECT "player" FROM table_203_149 ORDER BY "pick" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24816,
41,
3,
23,
26,
381,
6,
96,
17967,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
6646,
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,
20846,
121,
21680,
953,
834,
23330,
834,
24816,
4674,
11300,
272,
476,
96,
17967,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the venue of the 1990 Asian games? | CREATE TABLE table_name_77 (
venue VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_77 WHERE competition = "1990 asian games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
13,
8,
5541,
6578,
1031,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2259,
3274,
96,
2294,
2394,
3,
9,
10488,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the position of the player from the college of western michigan? | CREATE TABLE table_name_92 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_92 WHERE college = "western michigan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
4718,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
1959,
45,
8,
1900,
13,
8282,
2278,
12588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1900,
3274,
96,
24411,
2278,
12588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In the Year Yugoslavia won 1 Silver, how many Gold medals did they win? | CREATE TABLE table_5985 (
"Year" text,
"Sports" text,
"Competitors" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text
) | SELECT "Gold" FROM table_5985 WHERE "Silver" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4433,
41,
96,
476,
2741,
121,
1499,
6,
96,
17682,
7,
121,
1499,
6,
96,
5890,
19427,
127,
7,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
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,
23576,
121,
21680,
953,
834,
3390,
4433,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the power provided for transfer speed mb/s is 1250 | CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR) | SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "1250" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
26578,
834,
755,
41,
6740,
834,
29189,
26,
584,
4280,
28027,
6,
2025,
834,
9993,
834,
834,
51,
115,
834,
7,
834,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
579,
834,
29189,
26,
21680,
953,
834,
27693,
26578,
834,
755,
549,
17444,
427,
2025,
834,
9993,
834,
834,
51,
115,
834,
7,
834,
3274,
96,
2122,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what did patient 027-178495 receive for his or her first procedure? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-178495')) ORDER BY treatment.treatmenttime 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,
1058,
5,
26889,
4350,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
What was the game edition when they played on the clay (i) surface and the outcome was a winner? | CREATE TABLE table_18183850_12 (
edition VARCHAR,
surface VARCHAR,
outcome VARCHAR
) | SELECT edition FROM table_18183850_12 WHERE surface = "Clay (i)" AND outcome = "Winner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
24361,
17246,
834,
2122,
41,
4182,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
467,
4182,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4182,
21680,
953,
834,
2606,
24361,
17246,
834,
2122,
549,
17444,
427,
1774,
3274,
96,
254,
5595,
41,
23,
61,
121,
3430,
6138,
3274,
96,
18455,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of points for the team with 49 tries against and 14 lost? | CREATE TABLE table_34173 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points against" FROM table_34173 WHERE "Tries against" = '49' AND "Lost" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
2517,
519,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
22512,
7,
581,
121,
21680,
953,
834,
3710,
2517,
519,
549,
17444,
427,
96,
382,
2593,
581,
121,
3274,
3,
31,
3647,
31,
3430,
96,
434,
3481,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r? | CREATE TABLE table_65399 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2009" FROM table_65399 WHERE "2008" = 'a' AND "2012" = '1r' AND "2010" = 'q2' AND "2011" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
519,
3264,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16660,
121,
21680,
953,
834,
4122,
519,
3264,
549,
17444,
427,
96,
16128,
121,
3274,
3,
31,
9,
31,
3430,
96,
12172,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
14926,
121,
3274,
3,
31,
1824,
357,
31,
3430,
96,
... |
How many different players got drafted for the Ottawa Renegades? | CREATE TABLE table_23619005_3 (
player VARCHAR,
cfl_team VARCHAR
) | SELECT COUNT(player) FROM table_23619005_3 WHERE cfl_team = "Ottawa Renegades" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
11776,
3076,
834,
519,
41,
1959,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
1508,
530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
357,
3420,
11776,
3076,
834,
519,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
667,
17,
17,
7396,
4965,
12029,
1395,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the tie number for Middlesbrough? | CREATE TABLE table_name_46 (
tie_no VARCHAR,
home_team VARCHAR
) | SELECT tie_no FROM table_name_46 WHERE home_team = "middlesbrough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
6177,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6177,
381,
21,
4551,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6983,
26,
965,
115,
13245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of the grid for mika h kkinen and more than 45 laps? | CREATE TABLE table_51666 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Grid") FROM table_51666 WHERE "Driver" = 'mika häkkinen' AND "Laps" > '45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2938,
3539,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
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,
2847,
17161,
599,
121,
13313,
26,
8512,
21680,
953,
834,
755,
2938,
3539,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
20068,
9,
3,
10926,
157,
2917,
35,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
2128,
... |
What is the lowest asst of the player with a def reb of 1 and a 3FG pct less than 33.3? | CREATE TABLE table_7429 (
"Player" text,
"FG Pct" real,
"3FGM" real,
"3FGA" real,
"3FG Pct" real,
"FT Pct" real,
"Off Reb" real,
"Def Reb" real,
"Total Reb" real,
"Asst" real
) | SELECT MIN("Asst") FROM table_7429 WHERE "Def Reb" = '1' AND "3FG Pct" < '33.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3166,
41,
96,
15800,
49,
121,
1499,
6,
96,
22807,
276,
75,
17,
121,
490,
6,
96,
519,
371,
7381,
121,
490,
6,
96,
519,
371,
6302,
121,
490,
6,
96,
519,
22807,
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,
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,
188,
7,
7,
17,
8512,
21680,
953,
834,
4581,
3166,
549,
17444,
427,
96,
16196,
22789,
121,
3274,
3,
31,
536,
31,
3430,
96,
519,
22807,
276,
75,
17,
121,
3,
2,
3,
31,
519,
19660,
31,
1,
-100,... |
Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991. | CREATE TABLE table_10798421_1 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR) | SELECT MIN(number_of_people_1991) FROM table_10798421_1 WHERE percent_of_slovenes_1991 = "92.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
41,
5525,
1152,
834,
858,
834,
16588,
834,
2294,
4729,
3,
21342,
17966,
6,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
4729,
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,
17684,
599,
5525,
1152,
834,
858,
834,
16588,
834,
19479,
6982,
21680,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
549,
17444,
427,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
4729,
3274,
96,
4508,
5,
2... |
What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold? | CREATE TABLE table_35128 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Rank") FROM table_35128 WHERE "Bronze" = '0' AND "Silver" = '1' AND "Gold" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
536,
2577,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
2469,
536,
2577,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
632,
31,
3430,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
3430,
96,
23576,
121,
2490,
... |
How many accounts have a savings balance above the average savings balance? | CREATE TABLE savings (balance INTEGER) | SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5051,
41,
3849,
663,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3744,
43,
3,
9,
5051,
2109,
756,
8,
1348,
5051,
2109,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
5051,
549,
17444,
427,
2109,
2490,
41,
23143,
14196,
71,
17217,
599,
3849,
663,
61,
21680,
5051,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was brian rafuse's pf? | CREATE TABLE table_20171 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT "PF" FROM table_20171 WHERE "Skip" = 'Brian Rafuse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9887,
536,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12017,
121,
21680,
953,
834,
9887,
536,
549,
17444,
427,
96,
134,
2168,
102,
121,
3274,
3,
31,
279,
5288,
2922,
89,
1074,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank? | CREATE TABLE table_64963 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
) | SELECT AVG("Rank") FROM table_64963 WHERE "1st run" = '53.300 (7)' AND "Total" > '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4314,
519,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
536,
7,
17,
661,
121,
1499,
6,
96,
357,
727,
661,
121,
1499,
6,
96,
519,
52,
26,
661,
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,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
4389,
4314,
519,
549,
17444,
427,
96,
536,
7,
17,
661,
121,
3274,
3,
31,
4867,
5,
5426,
3,
24358,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
2658,
31,
1,
-100,... |
ACL papers in 2012 on Parsing | CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE field (
fieldid int
)
CREATE TA... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'Parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2012 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
23,
26,
16,
17,
6,
6378,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
2291,
23,
26,
16,
17,
6,
2291,
4350,
3,
4331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1040,
5,
19587,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
6,
5669,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
13212,
7,
53,
31,
3430,
1040,
4397,
27111,
... |
Which Year Left is the highest one that has a Location of east chicago, and a Year Joined of 1969, and a School of east chicago roosevelt? | CREATE TABLE table_5611 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference Joined" text
) | SELECT MAX("Year Left") FROM table_5611 WHERE "Location" = 'east chicago' AND "Year Joined" = '1969' AND "School" = 'east chicago roosevelt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2596,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
476,
2741,
5279,
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,
4800,
4,
599,
121,
476,
2741,
14298,
8512,
21680,
953,
834,
4834,
2596,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
11535,
8780,
9,
839,
31,
3430,
96,
476,
2741,
5279,
15,
26,
121,
3274,
3,
31,
2294... |
What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal? | CREATE TABLE table_name_86 (
silver INTEGER,
bronze VARCHAR,
gold VARCHAR
) | SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
4294,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
4294,
9365,
3476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
13467,
3274,
209,
3430,
2045,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of Nationality and the sum of meter_100 , and group by attribute Nationality. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
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... | SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
485,
6,
180,
6122,
599,
4401,
834,
2915,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many patients having coronary artery disease or coronary artery bypass graft with mvr maze as their primary disease stayed for more than 16 days at the hospital? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE" AND demographic.days_stay > "16" | [
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5911,
13044,
24721,
11155,
5946,
476,
309,
19056,
17892,
2,
5911,
13044,... |
What is the english title of the film before 1999 with a role of kim da-rim? | CREATE TABLE table_name_80 (
english_title VARCHAR,
year VARCHAR,
role VARCHAR
) | SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
22269,
834,
21869,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22269,
2233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22269,
834,
21869,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
215,
3,
2,
5247,
3430,
1075,
3274,
96,
19754,
836,
18,
5397,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission type is elective and drug name is magnesium sulfate? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Magnesium Sulfate" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about salary over the first_name by a bar chart, and could you show X-axis in descending order? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT FIRST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
834,... |
How many days were the station of Soyuz 35 in flight down were in orbit? | CREATE TABLE table_26970 (
"Expedition" text,
"Crew" text,
"Launch date" text,
"Flight up" text,
"Landing date" text,
"Flight down" text,
"Duration (days)" text
) | SELECT "Duration (days)" FROM table_26970 WHERE "Flight down" = 'Soyuz 35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
2518,
41,
96,
12882,
15,
10569,
121,
1499,
6,
96,
254,
60,
210,
121,
1499,
6,
96,
3612,
202,
524,
833,
121,
1499,
6,
96,
371,
2242,
95,
121,
1499,
6,
96,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12998,
2661,
41,
1135,
7,
61,
121,
21680,
953,
834,
357,
3951,
2518,
549,
17444,
427,
96,
371,
2242,
323,
121,
3274,
3,
31,
5231,
63,
76,
172,
3097,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)? | CREATE TABLE table_name_83 (
gross_revenue__1986_ VARCHAR,
tickets_sold___available VARCHAR
) | SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
8690,
834,
60,
15098,
834,
834,
2294,
3840,
834,
584,
4280,
28027,
6,
3500,
834,
7,
1490,
834,
834,
834,
28843,
584,
4280,
28027,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8690,
834,
60,
15098,
834,
834,
2294,
3840,
834,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3500,
834,
7,
1490,
834,
834,
834,
28843,
3274,
96,
357,
13161,
3,
87,
204,
13161,
41,
2915,
6210,
121,
1,
-100,
... |
What is the highest goal for a GEO nat., that ended after 2010? | CREATE TABLE table_name_6 (
goals INTEGER,
nat VARCHAR,
ends VARCHAR
) | SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1766,
3,
21342,
17966,
6,
3,
29,
144,
584,
4280,
28027,
6,
5542,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1288,
21,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3,
29,
144,
3274,
96,
397,
32,
121,
3430,
5542,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player from Oregon used the number 12? | CREATE TABLE table_name_16 (
player VARCHAR,
no_s_ VARCHAR,
school_club_team_country VARCHAR
) | SELECT player FROM table_name_16 WHERE no_s_ = "12" AND school_club_team_country = "oregon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1959,
584,
4280,
28027,
6,
150,
834,
7,
834,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
150,
834,
7,
834,
3274,
96,
2122,
121,
3430,
496,
834,
13442,
834,
11650,
834,
17529,
3274,
96,
127,
15,
5307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which office was Richard M. Griffin vying for on the Greenback ticket? | CREATE TABLE table_name_97 (
office VARCHAR,
greenback_ticket VARCHAR
) | SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
828,
584,
4280,
28027,
6,
1442,
1549,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
828,
47,
4117,
283,
5,
27451,
3,
208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
828,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1442,
1549,
834,
26639,
3274,
96,
3723,
986,
3,
51,
5,
3,
11442,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the GDP (nominal) for Uzbekistan? | CREATE TABLE table_11780179_1 (
gdp__nominal_ VARCHAR,
country VARCHAR
) | SELECT gdp__nominal_ FROM table_11780179_1 WHERE country = "Uzbekistan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
2079,
26593,
834,
536,
41,
3,
122,
26,
102,
834,
834,
3114,
10270,
834,
584,
4280,
28027,
6,
684,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
26,
102,
834,
834,
3114,
10270,
834,
21680,
953,
834,
20275,
2079,
26593,
834,
536,
549,
17444,
427,
684,
3274,
96,
1265,
172,
346,
2168,
5627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the names of players coached by the rank 1 coach. | CREATE TABLE coach (
Coach_ID VARCHAR,
Rank VARCHAR
)
CREATE TABLE player_coach (
Coach_ID VARCHAR,
Player_ID VARCHAR
)
CREATE TABLE player (
Player_name VARCHAR,
Player_ID VARCHAR
) | SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
9493,
834,
4309,
584,
4280,
28027,
6,
3,
22557,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
509,
1836,
41,
9493,
834,
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,
332,
5787,
15800,
49,
834,
4350,
21680,
1959,
834,
509,
1836,
6157,
332,
536,
3,
15355,
3162,
3763,
6157,
332,
357,
9191,
332,
5411,
3881,
1836,
834,
4309,
3274,
332,
4416,
3881,
1836,
834,
4309,
3,
15355,
3162,
1959,... |
What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6? | CREATE TABLE table_name_94 (barrow_island_australia INTEGER, draugen_north_sea VARCHAR, mutineer_exeter_australia VARCHAR) | SELECT AVG(barrow_island_australia) FROM table_name_94 WHERE draugen_north_sea = 17 AND mutineer_exeter_australia < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
115,
6770,
834,
159,
40,
232,
834,
2064,
8792,
23,
9,
3,
21342,
17966,
6,
3,
26,
4565,
729,
834,
29,
127,
189,
834,
7,
15,
9,
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,
71,
17217,
599,
115,
6770,
834,
159,
40,
232,
834,
2064,
8792,
23,
9,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
3,
26,
4565,
729,
834,
29,
127,
189,
834,
7,
15,
9,
3274,
1003,
3430,
4035,
4070,
49,
... |
Who was the home team when the opposition was Buller? | CREATE TABLE table_26847237_1 (home_team VARCHAR, opposition VARCHAR) | SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4608,
5865,
4118,
834,
536,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
8,
8263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
2688,
4608,
5865,
4118,
834,
536,
549,
17444,
427,
8263,
3274,
96,
279,
83,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Release Date, when Format is CD, and when Title is Tsar Wars? | CREATE TABLE table_name_84 (release_date VARCHAR, format VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_84 WHERE format = "cd" AND title = "tsar wars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
13048,
7678,
6,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1910,
3274,
96,
75,
26,
121,
3430,
2233,
3274,
96,
17,
7,
291,
615,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients of black/african american ethnicity are born before 2078? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2078" | [
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,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430... |
Who was the visitor on March 17? | CREATE TABLE table_name_53 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_53 WHERE date = "march 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
7019,
30,
1332,
1003,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
833,
3274,
96,
51,
7064,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent before week 3 and a result of w 28-6? | CREATE TABLE table_name_57 (
opponent VARCHAR,
week VARCHAR,
result VARCHAR
) | SELECT opponent FROM table_name_57 WHERE week < 3 AND result = "w 28-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
274,
471,
220,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
471,
3,
2,
220,
3430,
741,
3274,
96,
210,
2059,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis building y axis maximal capacity, I want to show in asc by the total number please. | CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE section... | SELECT building, MAX(capacity) FROM classroom GROUP BY building ORDER BY MAX(capacity) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
2233,
3,
4331,
4059,
599,
1752,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
11893,
206,
17552,
599,
4482,
632,
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,
740,
6,
4800,
4,
599,
4010,
9,
6726,
61,
21680,
4858,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
4800,
4,
599,
4010,
9,
6726,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the timeslot for calls of whyn | CREATE TABLE table_name_74 (timeslot VARCHAR, calls VARCHAR) | SELECT timeslot FROM table_name_74 WHERE calls = "whyn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
715,
7,
3171,
584,
4280,
28027,
6,
3088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
648,
3171,
21,
3088,
13,
572,
29,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
648,
3171,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
3088,
3274,
96,
24443,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose primary disease is upper gi bleed and year of death is less than or equal to 2126? | CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "UPPER GI BLEED" AND demographic.dod_year <= "2126.0" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
6880,
8742,
3,
7214,
272,
3765,
2326,
121,
3430,
14798,
5,
26,
32,
2... |
What is the lowest Jianshu number for Liu Yang ( hkg )? | CREATE TABLE table_12360 (
"Rank" real,
"Athlete" text,
"Qiangshu" real,
"Jianshu" real,
"Total" real
) | SELECT MIN("Jianshu") FROM table_12360 WHERE "Athlete" = 'liu yang ( hkg )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
19208,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
2247,
23,
1468,
14279,
121,
490,
6,
96,
683,
23,
152,
14279,
121,
490,
6,
96,
3696,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
23,
152,
14279,
8512,
21680,
953,
834,
2122,
19208,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
40,
23,
76,
3,
63,
1468,
41,
3,
107,
8711,
3,
61,
31,
1,
-100,
-100,
-100... |
What is the gayndah when perry is 304? | CREATE TABLE table_17706 (
"Year" real,
"Total Region" real,
"Biggenden" real,
"Eidsvold" real,
"Gayndah" real,
"Monto" real,
"Mundubbera" real,
"Perry" real
) | SELECT MAX("Gayndah") FROM table_17706 WHERE "Perry" = '304' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
5176,
41,
96,
476,
2741,
121,
490,
6,
96,
3696,
1947,
6163,
121,
490,
6,
96,
23805,
729,
537,
121,
490,
6,
96,
427,
23,
26,
7,
4571,
26,
121,
490,
6,
96,
517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
121,
517,
9,
63,
727,
9,
107,
8512,
21680,
953,
834,
26793,
5176,
549,
17444,
427,
96,
12988,
651,
121,
3274,
3,
31,
23702,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose diagnoses icd9 code is v1083 and lab test fluid is other body fluid? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | 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 = "V1083" AND lab.fluid = "Other Body Fluid" | [
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,
3... |
what are the tries where the game was lost by 4? | CREATE TABLE table_13564637_3 (
tries_against VARCHAR,
lost VARCHAR
) | SELECT tries_against FROM table_13564637_3 WHERE lost = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4834,
4448,
4118,
834,
519,
41,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
8,
3,
900... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
9000,
834,
9,
16720,
7,
17,
21680,
953,
834,
2368,
4834,
4448,
4118,
834,
519,
549,
17444,
427,
1513,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2010 when the 2009 is 1r, and a 2008 is 1r? | CREATE TABLE table_name_87 (
Id VARCHAR
) | SELECT 2010 FROM table_name_87 WHERE 2009 = "1r" AND 2008 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2735,
116,
8,
2464,
19,
209,
52,
6,
11,
3,
9,
2628,
19,
209,
52,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2464,
3274,
96,
536,
52,
121,
3430,
2628,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which cities' temperature in March is lower than that in July or higher than that in Oct? | CREATE TABLE temperature (
city_id number,
jan number,
feb number,
mar number,
apr number,
jun number,
jul number,
aug number,
sep number,
oct number,
nov number,
dec number
)
CREATE TABLE city (
city_id number,
city text,
hanzi text,
hanyu_pinyin text,
... | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.mar < T2.jul OR T2.mar > T2.oct | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2912,
41,
690,
834,
23,
26,
381,
6,
3,
7066,
381,
6,
3,
89,
15,
115,
381,
6,
3157,
381,
6,
3,
9,
102,
52,
381,
6,
3,
6959,
381,
6,
3,
354,
83,
381,
6,
185,
122,
381,
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,
1... | [
3,
23143,
14196,
332,
5411,
6726,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
2912,
6157,
332,
357,
9191,
332,
5411,
6726,
834,
23,
26,
3274,
332,
4416,
6726,
834,
23,
26,
549,
17444,
427,
332,
4416,
1635,
3,
2,
332,
4416,
354,
83... |
What is the result when the round shows 34? | CREATE TABLE table_45409 (
"Round" real,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text
) | SELECT "Result" FROM table_45409 WHERE "Round" = '34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
4198,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
2128,
591,
4198,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the target for the brand mylotarg? | CREATE TABLE table_45022 (
"Antibody" text,
"Brand name" text,
"Approval date" real,
"Type" text,
"Target" text
) | SELECT "Target" FROM table_45022 WHERE "Brand name" = 'mylotarg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10593,
2884,
41,
96,
27355,
6965,
121,
1499,
6,
96,
18304,
727,
564,
121,
1499,
6,
96,
9648,
8843,
138,
833,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
382,
291,
2782,
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,
382,
291,
2782,
121,
21680,
953,
834,
10593,
2884,
549,
17444,
427,
96,
18304,
727,
564,
121,
3274,
3,
31,
2258,
3171,
8240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of Bulgaria's TV network? | CREATE TABLE table_name_92 (
tv_network_s_ VARCHAR,
country VARCHAR
) | SELECT tv_network_s_ FROM table_name_92 WHERE country = "bulgaria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
3,
17,
208,
834,
1582,
1981,
834,
7,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
1553... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
208,
834,
1582,
1981,
834,
7,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
684,
3274,
96,
6724,
122,
6286,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the top-10 with top-5 less than 1 | CREATE TABLE table_35859 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT "Top-10" FROM table_35859 WHERE "Top-5" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
3390,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
22481,
4536,
121,
21680,
953,
834,
519,
3449,
3390,
549,
17444,
427,
96,
22481,
18,
17395,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the name is Timo Higgins, what is the total date of birth amount? | CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, name VARCHAR) | SELECT COUNT(date_of_birth) FROM table_22344463_2 WHERE name = "Timo Higgins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3710,
3628,
3891,
834,
357,
41,
5522,
834,
858,
834,
20663,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
564,
19,
4485,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5522,
834,
858,
834,
20663,
61,
21680,
953,
834,
2884,
3710,
3628,
3891,
834,
357,
549,
17444,
427,
564,
3274,
96,
382,
603,
32,
2018,
122,
19655,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the flight number, origin, and destination for all flights in alphabetical order by departure cities? | CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
... | SELECT flno, origin, destination FROM flight ORDER BY origin | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3,
15,
23,
26,
381,
6,
564,
1499,
6,
9090,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6017,
41,
3,
15,
23,
26,
381,
6,
3052,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
40,
29,
32,
6,
5233,
6,
3954,
21680,
3777,
4674,
11300,
272,
476,
5233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what surface was the game played with a score of 6 4, 6 4? | CREATE TABLE table_21892 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_21892 WHERE "Score" = '6–4, 6–4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3914,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2658,
3914,
357,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
8525,
431,
104,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients with drug code amid200 had blood as lab test fluid? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "AMID200" AND lab.fluid = "Blood" | [
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
Which Rank has a Name of tsvetelina kirilova, and a Result smaller than 55.97? | CREATE TABLE table_79344 (
"Rank" real,
"Heat" real,
"Name" text,
"Nationality" text,
"Result" real
) | SELECT MAX("Rank") FROM table_79344 WHERE "Name" = 'tsvetelina kirilova' AND "Result" < '55.97' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
519,
3628,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
20119,
121,
490,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
4440,
519,
3628,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
7,
162,
1625,
77,
9,
3,
18413,
173,
6194,
31,
3430,
96,
20119,
121,
3,
2,
3,
31,
3769,
5,
432... |
What is the market value of every comapny in the banking industry? Return a pie chart. | CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_N... | SELECT Company, Market_Value FROM company WHERE Main_Industry = 'Banking' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
1958,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
6,
1958,
1499,
6,
31282,
1499,
6,
5140,
834,
1570,
8655,
8224,
1499,
6,
7107,
834,
115,
14916,
490,
6,
14717,
7,
834,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1958,
6,
3611,
834,
18392,
76,
15,
21680,
349,
549,
17444,
427,
5140,
834,
1570,
8655,
8224,
3274,
3,
31,
21347,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what were the hospital hospital admission times of patient 006-157753 this year? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-157753' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
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,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
948,
10106,
4013,
4867,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
... |
let me know the number of patients who had other open incisional hernia repair with graft or prosthesis and blood lab test. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Other open incisional hernia repair with graft or prosthesis" AND lab.fluid = "Blood" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
what is icu stay id of subject id 3343? | CREATE TABLE diagnoses (
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
)
C... | SELECT prescriptions.icustay_id FROM prescriptions WHERE prescriptions.subject_id = "3343" | [
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,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the enemy aircraft on 14.09.1942, when the Soviet Unit was 437 iap? | CREATE TABLE table_name_46 (enemy_aircraft VARCHAR, soviet_unit VARCHAR, date__ddmmyyyy_ VARCHAR) | SELECT enemy_aircraft FROM table_name_46 WHERE soviet_unit = "437 iap" AND date__ddmmyyyy_ = "14.09.1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
35,
15,
2258,
834,
2256,
6696,
584,
4280,
28027,
6,
78,
5914,
17,
834,
15129,
584,
4280,
28027,
6,
833,
834,
834,
26,
26,
635,
63,
63,
63,
63,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10101,
834,
2256,
6696,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
78,
5914,
17,
834,
15129,
3274,
96,
591,
4118,
3,
23,
9,
102,
121,
3430,
833,
834,
834,
26,
26,
635,
63,
63,
63,
63,
834,
3274,
96,
2534... |
What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team? | CREATE TABLE table_name_1 (
year INTEGER,
finish VARCHAR,
start VARCHAR,
team VARCHAR
) | SELECT MAX(year) FROM table_name_1 WHERE start = "3" AND team = "morgan-mcclure" AND finish = "40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
215,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
456,
3274,
96,
519,
121,
3430,
372,
3274,
96,
51,
11127,
18,
51,
75,
10562,
60,
121,
3430,
1992,
3274,
96,
2445,
121,
1,
-100,
-100,
-100,
... |
In what venue was the event held on 14 February 2009? | CREATE TABLE table_name_95 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_95 WHERE date = "14 february 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5669,
47,
8,
605,
1213,
30,
968,
2083,
2464,
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,
5669,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
833,
3274,
96,
2534,
29976,
76,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Representative has a Presentation of Credentials on september 8, 2005? | CREATE TABLE table_name_93 (
representative VARCHAR,
presentation_of_credentials VARCHAR
) | SELECT representative FROM table_name_93 WHERE presentation_of_credentials = "september 8, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
6978,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13517,
65,
3,
9,
25885,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6978,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
7,
6707,
18247,
9478,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE COUNTRY WITH NAME OF KANU? | CREATE TABLE table_name_48 (
country VARCHAR,
name VARCHAR
) | SELECT country FROM table_name_48 WHERE name = "kanu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
684,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
2847,
17161,
11824,
11951,
445,
17683,
3347,
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,
0,
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,
3707,
549,
17444,
427,
564,
3274,
96,
3304,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the biggest issue date Madonna, who had less than 1,060,000 sales, had? | CREATE TABLE table_38373 (
"Issue Date" real,
"Album Title" text,
"Artist" text,
"Sales" real,
"Highest Position" real
) | SELECT MAX("Issue Date") FROM table_38373 WHERE "Artist" = 'madonna' AND "Sales" < '1,060,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
4118,
519,
41,
96,
196,
7,
7,
76,
15,
7678,
121,
490,
6,
96,
25691,
440,
11029,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
4529,
121,
490,
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,
4800,
4,
599,
121,
196,
7,
7,
76,
15,
7678,
8512,
21680,
953,
834,
3747,
4118,
519,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
11374,
15822,
31,
3430,
96,
134,
4529,
121,
3,
2,
3,
31,
4347,
632,
24620,
... |
Tell me the name with points of 151.66 | CREATE TABLE table_name_7 (
name VARCHAR,
points VARCHAR
) | SELECT name FROM table_name_7 WHERE points = 151.66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
564,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
564,
28,
979,
13,
3,
26578,
5,
3539,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
979,
3274,
3,
26578,
5,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER? | CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR) | SELECT result FROM table_name_1 WHERE category = "best urban/alternative performance" AND year > 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
4083,
4138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3295,
3274,
96,
9606,
4150,
87,
8818,
29,
1528,
821,
121,
3430,
215,
2490,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the cover model(s) on the 4-05 issue? | CREATE TABLE table_1566852_6 (cover_model VARCHAR, date VARCHAR) | SELECT cover_model FROM table_1566852_6 WHERE date = "4-05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
948,
41,
9817,
834,
21770,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
1189,
825,
599,
7,
61,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1189,
834,
21770,
21680,
953,
834,
25463,
3651,
5373,
834,
948,
549,
17444,
427,
833,
3274,
96,
26814,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Goal in Stade Roi Baudouin, Brussels? | CREATE TABLE table_68952 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT AVG("Goal") FROM table_68952 WHERE "Venue" = 'stade roi baudouin, brussels' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3301,
357,
41,
96,
6221,
138,
121,
490,
6,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6221,
138,
8512,
21680,
953,
834,
3651,
3301,
357,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2427,
221,
3,
52,
32,
23,
3,
2635,
26,
1063,
77,
6,
3,
9052,
9816,
7,
31,
1,
-1... |
What is the release date of I Wanna Play House? | CREATE TABLE table_name_95 (
release_date VARCHAR,
title VARCHAR
) | SELECT release_date FROM table_name_95 WHERE title = "i wanna play house" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
13,
27,
22984,
9,
2911,
1384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2233,
3274,
96,
23,
14371,
9,
577,
629,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4? | CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR) | SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
883,
2032,
49,
834,
591,
584,
4280,
28027,
6,
1912,
49,
834,
536,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
22871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1912,
49,
834,
591,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1912,
49,
834,
536,
3274,
96,
18301,
813,
9280,
121,
3430,
833,
3274,
96,
1828,
14663,
7273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Chinese name of the player in Index F10? | CREATE TABLE table_name_73 (
Chinese VARCHAR,
index VARCHAR
) | SELECT Chinese AS name FROM table_name_73 WHERE index = "f10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2830,
584,
4280,
28027,
6,
5538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2830,
564,
13,
8,
1959,
16,
11507,
377,
1714,
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,
2830,
6157,
564,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5538,
3274,
96,
89,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients above the age of 63 or more were admitted in or after the year 2150? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "63" AND demographic.admityear >= "2150" | [
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,
3891,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
357,
12278,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
which club entered competition the same year as eltham football club ? | CREATE TABLE table_204_959 (
id number,
"club" text,
"founded" number,
"nickname" text,
"location" text,
"home ground" text,
"entered competition" number,
"most recent promotion" number
) | SELECT "club" FROM table_204_959 WHERE "club" <> 'eltham football club' AND "entered competition" = (SELECT "entered competition" FROM table_204_959 WHERE "club" = 'eltham football club') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
1298,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
11191,
4350,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
5515,
1591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13442,
121,
21680,
953,
834,
26363,
834,
3301,
1298,
549,
17444,
427,
96,
13442,
121,
3,
2,
3155,
3,
31,
15,
40,
17,
1483,
3370,
1886,
31,
3430,
96,
35,
11196,
2259,
121,
3274,
41,
23143,
14196,
96,
35,
11196,... |
Show the ids of all employees who have destroyed a document. | CREATE TABLE Documents_to_be_destroyed (
Destroyed_by_Employee_ID VARCHAR
) | SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
221,
6626,
10093,
41,
374,
6626,
10093,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
584,
4280,
28027,
3,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
374,
6626,
10093,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
21680,
11167,
7,
834,
235,
834,
346,
834,
221,
6626,
10093,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15? | CREATE TABLE table_69993 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_69993 WHERE "Home" = 'boston bruins' AND "Date" = 'november 15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3264,
519,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
3951,
3264,
519,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
115,
32,
4411,
3,
115,
23162,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
627,
31,
1,
-100,... |
Which junior high school has male and female genders? | CREATE TABLE table_5332 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
) | SELECT "Junior High School (12\u201315 yrs)" FROM table_5332 WHERE "Gender" = 'male and female' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
2668,
41,
96,
7727,
2420,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61,
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,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61,
121,
21680,
953,
834,
4867,
2668,
549,
17444,
427,
96,
517,
3868,
121,
3274,
3,
31,
13513,
11,
3955,
31,
1,
-100,
-100,
-100,
-100,... |
What driver shows grid as 18? | CREATE TABLE table_11013 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Driver" FROM table_11013 WHERE "Grid" = '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
2368,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
20982,
52,
121,
21680,
953,
834,
19277,
2368,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the game number that took place on April 27? | CREATE TABLE table_6186 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | SELECT "Game" FROM table_6186 WHERE "Date" = 'april 27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3840,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
12106,
7,
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,
0,
0... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
4241,
3840,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
2307,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many heavy attacks did the 450 Luftflotte 2 conduct? | CREATE TABLE table_name_29 (
heavy_attacks VARCHAR,
luftflotte_2_sorties VARCHAR
) | SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
2437,
834,
27673,
7,
584,
4280,
28027,
6,
3,
20620,
89,
21538,
834,
357,
834,
9309,
725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
88,
19649,
834,
27673,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3,
20620,
89,
21538,
834,
357,
834,
9309,
725,
3274,
3,
10593,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is episode 2 of garfield when episode 1 is 'the horror hostess (part 1)'? | CREATE TABLE table_22410 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) | SELECT "Garfield Episode 2" FROM table_22410 WHERE "Garfield Episode 1" = 'The Horror Hostess (Part 1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
1714,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
21846,
1846,
16112,
209,
121,
1499,
6,
96,
1265,
5,
134,
5,
4292,
60,
7,
16112,
121,
1499,
6,
96,
21846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21846,
1846,
16112,
204,
121,
21680,
953,
834,
24622,
1714,
549,
17444,
427,
96,
21846,
1846,
16112,
209,
121,
3274,
3,
31,
634,
29792,
1546,
849,
7,
7,
41,
13725,
8925,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
When did the away team score at Punt Road Oval? | CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_25 WHERE venue = "punt road oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
550,
372,
2604,
44,
18266,
17,
2409,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
5669,
3274,
96,
6225,
17,
1373,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what surface was the Australian Open (6) played on? | CREATE TABLE table_29163303_1 (
surface VARCHAR,
championship VARCHAR
) | SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2938,
17225,
519,
834,
536,
41,
1774,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
1774,
47,
8,
3746,
2384,
3,
18669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
3166,
2938,
17225,
519,
834,
536,
549,
17444,
427,
10183,
3274,
96,
31971,
29,
2384,
3,
18669,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if the economy is 3.63 what is the bbi | CREATE TABLE table_4111 (
"Player" text,
"County" text,
"Balls" real,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real,
"5wi" real
) | SELECT "BBI" FROM table_4111 WHERE "Economy" = '3.63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
15866,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
279,
1748,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
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,
1... | [
3,
23143,
14196,
96,
7640,
196,
121,
21680,
953,
834,
591,
15866,
549,
17444,
427,
96,
427,
12036,
63,
121,
3274,
3,
31,
23074,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor | CREATE TABLE table_51589 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | SELECT "Prothrombin time" FROM table_51589 WHERE "Partial thromboplastin time" = 'prolonged' AND "Bleeding time" = 'unaffected' AND "Condition" = 'factor xii deficiency' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1808,
3914,
41,
96,
4302,
10569,
121,
1499,
6,
96,
3174,
8514,
51,
4517,
97,
121,
1499,
6,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
1499,
6,
96,
279,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
8514,
51,
4517,
97,
121,
21680,
953,
834,
755,
1808,
3914,
549,
17444,
427,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
3274,
3,
31,
1409,
23629,
31,
3430,
96,
279,
40,
6958,
53,
97,
121,
3274,
... |
What is Opposing Teams, when Against is less than 6? | CREATE TABLE table_name_86 (
opposing_teams VARCHAR,
against INTEGER
) | SELECT opposing_teams FROM table_name_86 WHERE against < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4495,
2748,
53,
16651,
6,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10720,
53,
834,
11650,
7,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
581,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Apps did Player Gilberto with more than 1 Goals have? | CREATE TABLE table_42252 (
"Pos." text,
"Nationality" text,
"Player" text,
"Apps" real,
"Goals" real
) | SELECT AVG("Apps") FROM table_42252 WHERE "Player" = 'gilberto' AND "Goals" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
1828,
357,
41,
96,
345,
32,
7,
535,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
9648,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
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,
71,
17217,
599,
121,
9648,
7,
8512,
21680,
953,
834,
4165,
1828,
357,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
122,
173,
7041,
32,
31,
3430,
96,
6221,
5405,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-10... |
Who was the opponent when there was a loss of Francisco (1-1)? | CREATE TABLE table_name_7 (
opponent VARCHAR,
loss VARCHAR
) | SELECT opponent FROM table_name_7 WHERE loss = "francisco (1-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
15264,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
132,
47,
3,
9,
1453,
13,
5901,
4077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1453,
3274,
96,
6296,
75,
23,
3523,
4077,
18,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Best Actor has a Best Film of mystery? | CREATE TABLE table_name_93 (
best_actor VARCHAR,
best_film VARCHAR
) | SELECT best_actor FROM table_name_93 WHERE best_film = "mystery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
200,
834,
9,
5317,
584,
4280,
28027,
6,
200,
834,
9988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1648,
1983,
127,
65,
3,
9,
1648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
200,
834,
9,
5317,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
200,
834,
9988,
3274,
96,
2258,
1370,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which home team had the away team Southport? | CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_9 WHERE away_team = "southport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
141,
8,
550,
372,
1013,
1493... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
1493,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What signal quality does the KCAL-DT channel have? | CREATE TABLE table_name_96 (
signal_quality VARCHAR,
station_call_letters VARCHAR
) | SELECT signal_quality FROM table_name_96 WHERE station_call_letters = "kcal-dt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
3240,
834,
4497,
584,
4280,
28027,
6,
2478,
834,
16482,
834,
16024,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3240,
463,
405,
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,
3240,
834,
4497,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2478,
834,
16482,
834,
16024,
7,
3274,
96,
157,
1489,
18,
26,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the last public middle school founded in hawaii ? | CREATE TABLE table_203_416 (
id number,
"school name" text,
"city" text,
"grades" text,
"establishment" number,
"charter" text
) | SELECT "school name" FROM table_203_416 ORDER BY "establishment" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
2938,
41,
3,
23,
26,
381,
6,
96,
6646,
564,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
6801,
7,
121,
1499,
6,
96,
222,
15403,
1273,
297,
121,
381,
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,
6646,
564,
121,
21680,
953,
834,
23330,
834,
591,
2938,
4674,
11300,
272,
476,
96,
222,
15403,
1273,
297,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score for Billy Andrade? | CREATE TABLE table_name_73 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_73 WHERE player = "billy andrade" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
17724,
275,
15530,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1959,
3274,
96,
3727,
120,
11,
15530,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has? | CREATE TABLE table_name_87 (silver INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT AVG(silver) FROM table_name_87 WHERE bronze < 15 AND nation = "montenegro" AND total > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
7,
173,
624,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
13467,
3,
2,
627,
3430,
2982,
3274,
96,
4662,
35,
15,
3844,
121,
3430,
792,
2490,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What player played in 2000? | CREATE TABLE table_name_66 (
player VARCHAR,
year VARCHAR
) | SELECT player FROM table_name_66 WHERE year = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1959,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
1944,
16,
2766,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
215,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Population of the Rural Community | CREATE TABLE table_name_75 (population VARCHAR, status VARCHAR) | SELECT population FROM table_name_75 WHERE status = "rural community" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
9791,
7830,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29659,
13,
8,
22183,
3092,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2637,
3274,
96,
52,
9709,
573,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the total number of goals in 1945/1946 ? | CREATE TABLE table_203_692 (
id number,
"name" text,
"pos." text,
"caps" number,
"goals" number,
"club" text
) | SELECT SUM("goals") FROM table_203_692 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3951,
357,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
2748,
535,
1499,
6,
96,
4010,
7,
121,
381,
6,
96,
839,
5405,
121,
381,
6,
96,
13442,
121,
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,
180,
6122,
599,
121,
839,
5405,
8512,
21680,
953,
834,
23330,
834,
3951,
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,
... |
The canadian airdate of 11 february 2008 applied to what series number? | CREATE TABLE table_72137 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Canadian airdate" text,
"US airdate" text,
"Production code" real
) | SELECT COUNT("No. in series") FROM table_72137 WHERE "Canadian airdate" = '11 February 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
24636,
41,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
14050,
9,
8603,
799,
5522,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
5865,
24636,
549,
17444,
427,
96,
14050,
9,
8603,
799,
5522,
121,
3274,
3,
31,
2596,
2083,
2628,
31,
1,
-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.