NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is every value for rushing yards per game if the season is 1984? | CREATE TABLE table_27487336_1 (rushing_yards_per_game VARCHAR, season VARCHAR) | SELECT rushing_yards_per_game FROM table_27487336_1 WHERE season = "1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3707,
4552,
3420,
834,
536,
41,
15842,
834,
6636,
7,
834,
883,
834,
7261,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15842,
834,
6636,
7,
834,
883,
834,
7261,
21680,
953,
834,
2555,
3707,
4552,
3420,
834,
536,
549,
17444,
427,
774,
3274,
96,
24151,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank of the film directed by Kevin Costner? | CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR) | SELECT COUNT(rank) FROM table_name_14 WHERE director = "kevin costner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
6254,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
814,
6640,
57,
8595,
6409,
687,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2090,
3274,
96,
1050,
2494,
583,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Score with a Date with may 2? | CREATE TABLE table_57751 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Series" text
) | SELECT "Score" FROM table_57751 WHERE "Date" = 'may 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3072,
536,
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,
12106,
7,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3436,
3072,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many manhunt beauty contets have been held in france? | CREATE TABLE table_31428 (
"Rank" real,
"Country/Territory" text,
"Manhunt International" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
) | SELECT "Manhunt International" FROM table_31428 WHERE "Country/Territory" = 'France' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2534,
2577,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
87,
382,
21301,
10972,
121,
1499,
6,
96,
7296,
24963,
1331,
121,
490,
6,
96,
536,
7,
17,
3,
10806,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7296,
24963,
1331,
121,
21680,
953,
834,
519,
2534,
2577,
549,
17444,
427,
96,
10628,
651,
87,
382,
21301,
10972,
121,
3274,
3,
31,
371,
5219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which audio has a Title of a storm of swords? | CREATE TABLE table_79867 (
"Title" text,
"Pages" text,
"Chapters" text,
"Audio" text,
"US release" text
) | SELECT "Audio" FROM table_79867 WHERE "Title" = 'a storm of swords' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
3708,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
345,
2568,
121,
1499,
6,
96,
3541,
6789,
277,
121,
1499,
6,
96,
188,
5291,
32,
121,
1499,
6,
96,
3063,
1576,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
5291,
32,
121,
21680,
953,
834,
940,
3916,
3708,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
9,
5536,
13,
16600,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score on december 10? | CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_98 WHERE date = "december 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
30,
20,
75,
18247,
335,
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,
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,
2604,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result for the fil Paljas? | CREATE TABLE table_name_1 (result VARCHAR, film_title VARCHAR) | SELECT result FROM table_name_1 WHERE film_title = "paljas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
814,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
5375,
4826,
1191,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
814,
834,
21869,
3274,
96,
6459,
1191,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
left ventricular ejection fraction < 35 % | CREATE TABLE table_test_7 (
"id" int,
"bleeding" int,
"left_ventricular_ejection_fraction_lvef" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"dialysis" bool,
"intravenous_pressors" bool,
"non_infarct_related_vessel" bool,
"heart_disease" bool,
"body_weight" float,
"creatinine_clearance_cl" float,
"intermediate_stenosis" int,
"cardiogenic_shock" bool,
"platelet_count" float,
"hemodynamic_instability" bool,
"liver_disease" bool,
"child_pugh_score" int,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_7 WHERE left_ventricular_ejection_fraction_lvef < 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
940,
41,
96,
23,
26,
121,
16,
17,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
121,
16,
17,
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,
1429,
21680,
953,
834,
4377,
834,
940,
549,
17444,
427,
646,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
3,
2,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many technicians are there? | CREATE TABLE technician (
Id VARCHAR
) | SELECT COUNT(*) FROM technician | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17730,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11225,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
17730,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the landesliga sud for sg quelle f rth | CREATE TABLE table_23596 (
"Season" text,
"Bayernliga" text,
"Landesliga S\u00fcd" text,
"Landesliga Mitte" text,
"Landesliga Nord" text
) | SELECT "Landesliga S\u00fcd" FROM table_23596 WHERE "Bayernliga" = 'SG Quelle Fürth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4314,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
279,
9,
7975,
29,
17140,
121,
1499,
6,
96,
434,
232,
15,
7,
17140,
180,
2,
76,
1206,
89,
75,
26,
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,
434,
232,
15,
7,
17140,
180,
2,
76,
1206,
89,
75,
26,
121,
21680,
953,
834,
25174,
4314,
549,
17444,
427,
96,
279,
9,
7975,
29,
17140,
121,
3274,
3,
31,
9945,
11669,
2513,
189,
31,
1,
-100,
-100,
-100,
-100,... |
What's the most flags that had 473 wins and less than 633 losses? | CREATE TABLE table_name_90 (
flags INTEGER,
wins VARCHAR,
losses VARCHAR
) | SELECT MAX(flags) FROM table_name_90 WHERE wins = 473 AND losses < 633 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5692,
7,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
167,
5692,
7,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
89,
5430,
7,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
9204,
3274,
314,
4552,
3430,
8467,
3,
2,
431,
4201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position has a pick less than 20? | CREATE TABLE table_name_2 (
position VARCHAR,
pick INTEGER
) | SELECT position FROM table_name_2 WHERE pick < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1102,
584,
4280,
28027,
6,
1432,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
65,
3,
9,
1432,
705,
145,
460,
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,
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,
1102,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1432,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many stations are transmitted on frequency 7 uhf? | CREATE TABLE table_1601792_4 (
transmitted VARCHAR,
frequency VARCHAR
) | SELECT COUNT(transmitted) FROM table_1601792_4 WHERE frequency = "7 UHF" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
2517,
4508,
834,
591,
41,
19751,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6991,
33,
19751,
30,
7321,
489,
3,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7031,
16030,
61,
21680,
953,
834,
19129,
2517,
4508,
834,
591,
549,
17444,
427,
7321,
3274,
96,
940,
412,
17097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points drew 2 with a losing bonus of 5? | CREATE TABLE table_name_12 (points_for VARCHAR, drawn VARCHAR, losing_bonus VARCHAR) | SELECT points_for FROM table_name_12 WHERE drawn = "2" AND losing_bonus = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2700,
7,
834,
1161,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
5489,
834,
5407,
302,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
1161,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
6796,
3274,
96,
357,
121,
3430,
5489,
834,
5407,
302,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up? | CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR) | SELECT event FROM table_name_91 WHERE runner_up_skip = "randy ferbey" AND location = "gander, newfoundland and labrador" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
15,
2169,
584,
4280,
28027,
6,
3,
10806,
834,
413,
834,
4009,
102,
584,
4280,
28027,
6,
1128,
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,
605,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
3,
10806,
834,
413,
834,
4009,
102,
3274,
96,
52,
232,
63,
3,
1010,
346,
63,
121,
3430,
1128,
3274,
96,
122,
11849,
6,
126,
19732,
40,
232,
11,
7690,
52,
7... |
What is the average Games, when Player is Robert Hock, and when Goals is less than 24? | CREATE TABLE table_45863 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
) | SELECT AVG("Games") FROM table_45863 WHERE "Player" = 'robert hock' AND "Goals" < '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3840,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
7,
8512,
21680,
953,
834,
2128,
3840,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
5840,
49,
17,
3,
19076,
31,
3430,
96,
6221,
5405,
121,
3,
2,
3,
31,
2266,
31,
1,
-100,
-... |
On what date did the Bills play the Houston Oilers before week 12? | CREATE TABLE table_41930 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_41930 WHERE "Week" < '12' AND "Opponent" = 'houston oilers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
1458,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
2294,
1458,
549,
17444,
427,
96,
518,
10266,
121,
3,
2,
3,
31,
2122,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
9492,
4411,
1043,
277,
31,
1,
-100,
-100,
-100,
-100,... |
What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43? | CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR) | SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = "71.43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
2773,
2668,
834,
2884,
41,
449,
17,
23,
1208,
834,
834,
2606,
834,
2266,
834,
1201,
7,
834,
584,
4280,
28027,
6,
6980,
834,
834,
2534,
834,
2517,
834,
1201,
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,
3,
449,
17,
23,
1208,
834,
834,
2606,
834,
2266,
834,
1201,
7,
834,
21680,
953,
834,
11434,
591,
2773,
2668,
834,
2884,
549,
17444,
427,
6980,
834,
834,
2534,
834,
2517,
834,
1201,
7,
834,
3274,
96,
4450,
5,
4906,... |
What is The Melbourne with a No- Gold Coast | CREATE TABLE table_name_67 (melbourne VARCHAR, gold_coast VARCHAR) | SELECT melbourne FROM table_name_67 WHERE gold_coast = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
2341,
26255,
584,
4280,
28027,
6,
2045,
834,
25500,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
37,
9396,
28,
3,
9,
465,
18,
2540,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
2341,
26255,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2045,
834,
25500,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the total number of years for lady cecily waynflete and opera house, kennedy center | CREATE TABLE table_name_51 (year VARCHAR, role VARCHAR, theatre VARCHAR) | SELECT COUNT(year) FROM table_name_51 WHERE role = "lady cecily waynflete" AND theatre = "opera house, kennedy center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1201,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
6,
8516,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
792,
381,
13,
203,
21,
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,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1075,
3274,
96,
521,
26,
63,
27745,
120,
194,
29,
89,
1655,
15,
121,
3430,
8516,
3274,
96,
18140,
629,
6,
3,
9376,
15,
26,
63,
1530,
... |
Where did they play and how many attended game number 75? | CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR) | SELECT location_attendance FROM table_27704187_11 WHERE game = 75 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
4853,
4225,
834,
2596,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
79,
577,
11,
149,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
2518,
4853,
4225,
834,
2596,
549,
17444,
427,
467,
3274,
6374,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position was Parsons in for 1992? | CREATE TABLE table_28227 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Position" FROM table_28227 WHERE "Year" = '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
357,
2555,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
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,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
2577,
357,
2555,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
19479,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM? | CREATE TABLE table_77328 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | SELECT "To par" FROM table_77328 WHERE "Finish" = 't11' AND "Player" = 'david graham' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
28070,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
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,
3696,
260,
121,
21680,
953,
834,
4013,
28070,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
17,
2596,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
6961,
3,
3484,
1483,
31,
1,
-100,
-100,
-100,
... |
What is the country with a 68-73-69=210 score? | CREATE TABLE table_name_91 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_91 WHERE score = 68 - 73 - 69 = 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
28,
3,
9,
3,
3651,
18,
4552,
18,
3951,
2423,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
4552,
3,
18,
3,
3951,
3274,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Risca RFC has 54 tries for and how many draws? | CREATE TABLE table_13741576_6 (drawn VARCHAR, tries_for VARCHAR) | SELECT drawn FROM table_13741576_6 WHERE tries_for = "54" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
41,
19489,
29,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2403,
7,
658,
391,
5390,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6796,
21680,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
5062,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score at 3:27? | CREATE TABLE table_6619 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
) | SELECT "Score" FROM table_6619 WHERE "Time" = '3:27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2294,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
13368,
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,
96,
134,
9022,
121,
21680,
953,
834,
3539,
2294,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
519,
10,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the owners for prairie public | CREATE TABLE table_19455 (
"Virtual" real,
"Physical" real,
"Call sign" text,
"Branding" text,
"Network" text,
"Owner" text
) | SELECT COUNT("Owner") FROM table_19455 WHERE "Branding" = 'Prairie Public' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2128,
755,
41,
96,
21031,
17,
3471,
121,
490,
6,
96,
16977,
7,
1950,
121,
490,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
9688,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
210,
687,
8512,
21680,
953,
834,
2294,
2128,
755,
549,
17444,
427,
96,
18304,
727,
53,
121,
3274,
3,
31,
345,
7253,
1753,
2575,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the home teams score against the away team footscray? | CREATE TABLE table_55372 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_55372 WHERE "Away team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4118,
357,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
3769,
4118,
357,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nation was the ship from that had 372 victims? | CREATE TABLE table_name_26 (
nat VARCHAR,
estimate VARCHAR
) | SELECT nat FROM table_name_26 WHERE estimate = "372" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3,
29,
144,
584,
4280,
28027,
6,
7037,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
47,
8,
4383,
45,
24,
141,
220,
5865,
8926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
29,
144,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
7037,
3274,
96,
4118,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the fewest number of silver medals a nation who ranked below 8 received? | CREATE TABLE table_name_99 (
silver INTEGER,
rank INTEGER
) | SELECT MIN(silver) FROM table_name_99 WHERE rank > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4294,
3,
21342,
17966,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
381,
13,
4294,
9365,
7,
3,
9,
2982,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11003,
2490,
505,
1,
-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 discharge location is home and days of hospital stay is greater than 13? | 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,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "13" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
... |
When kevin bridges and katy wix are both on the less team what is the score? | CREATE TABLE table_23575917_6 (
scores VARCHAR,
lees_team VARCHAR
) | SELECT scores FROM table_23575917_6 WHERE lees_team = "Kevin Bridges and Katy Wix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3436,
3390,
2517,
834,
948,
41,
7586,
584,
4280,
28027,
6,
90,
15,
7,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
1050,
2494,
4716,
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,
0,
0,
0... | [
3,
23143,
14196,
7586,
21680,
953,
834,
2773,
3436,
3390,
2517,
834,
948,
549,
17444,
427,
90,
15,
7,
834,
11650,
3274,
96,
439,
15,
2494,
6132,
7,
11,
7482,
63,
2142,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Oil Pattern has a Winner (Title #) of mike wolfe (3)? | CREATE TABLE table_name_58 (
oil_pattern VARCHAR,
winner__title__number_ VARCHAR
) | SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = "mike wolfe (3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1043,
834,
4665,
2947,
584,
4280,
28027,
6,
4668,
834,
834,
21869,
834,
834,
5525,
1152,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1043,
834,
4665,
2947,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4668,
834,
834,
21869,
834,
834,
5525,
1152,
834,
3274,
96,
20068,
15,
3,
19747,
15,
10153,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose primary disease is brain mass;intracranial hemorrhage and lab test abnormal status is delta? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the average when matches is less than 5 and wickets is more than 9? | CREATE TABLE table_8453 (
"Player" text,
"Team" text,
"Matches" real,
"Wickets" real,
"Average" real,
"Best Bowling" text
) | SELECT "Average" FROM table_8453 WHERE "Matches" < '5' AND "Wickets" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
4867,
41,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
624,
545,
121,
21680,
953,
834,
4608,
4867,
549,
17444,
427,
96,
329,
144,
2951,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
518,
447,
8044,
7,
121,
2490,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the surface of the match that ended in a score of 5 7, 6 4, [10 7]? | CREATE TABLE table_70347 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
) | SELECT "Surface" FROM table_70347 WHERE "Score in final" = '5–7, 6–4, [10–7]' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
519,
4177,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2518,
519,
4177,
549,
17444,
427,
96,
134,
9022,
16,
804,
121,
3274,
3,
31,
755,
104,
940,
6,
431,
104,
8525,
784,
1714,
104,
940,
908,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR) | SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15735,
41,
4350,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
556,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
4350,
6,
332,
5411,
14836,
6,
332,
5411,
15892,
21680,
15735,
6157,
332,
536,
3,
15355,
3162,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
6157,
332,
357,
9191,
332,
4416,
35,
4164,
5... |
How many episodes have the production code ip04004? | CREATE TABLE table_29273243_1 (
title VARCHAR,
production_code VARCHAR
) | SELECT COUNT(title) FROM table_29273243_1 WHERE production_code = "IP04004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2555,
2668,
4906,
834,
536,
41,
2233,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
43,
8,
999,
1081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
3166,
2555,
2668,
4906,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
4629,
632,
5548,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Tennis, when School Year is 2004-05? | CREATE TABLE table_49024 (
"School Year" text,
"Volleyball" text,
"Cross Country" text,
"Soccer" text,
"Tennis" text,
"Golf" text
) | SELECT "Tennis" FROM table_49024 WHERE "School Year" = '2004-05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
2266,
41,
96,
29364,
2929,
121,
1499,
6,
96,
22803,
1306,
3184,
121,
1499,
6,
96,
254,
1859,
7,
6993,
121,
1499,
6,
96,
134,
13377,
49,
121,
1499,
6,
96,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
35,
29,
159,
121,
21680,
953,
834,
591,
2394,
2266,
549,
17444,
427,
96,
29364,
2929,
121,
3274,
3,
31,
21653,
18,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
against which opponent was there the greatest attendance ? | CREATE TABLE table_203_522 (
id number,
"week" number,
"date" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"venue" text,
"attendance" number
) | SELECT "opponent" FROM table_203_522 ORDER BY "attendance" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5373,
357,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
7,
2,
29,
12406,
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... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
5373,
357,
4674,
11300,
272,
476,
96,
15116,
663,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the incumbent for the Colorado 4 district? | CREATE TABLE table_name_95 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_name_95 WHERE district = "colorado 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
28406,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
28406,
21,
8,
6144,
314,
3939,
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,
28406,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3939,
3274,
96,
8135,
19042,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the brighton cast for jerry cruncher | CREATE TABLE table_17085724_1 (brighton_cast VARCHAR, character VARCHAR) | SELECT brighton_cast FROM table_17085724_1 WHERE character = "Jerry Cruncher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
3436,
2266,
834,
536,
41,
115,
3535,
106,
834,
5254,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2756,
106,
4061,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2756,
106,
834,
5254,
21680,
953,
834,
2517,
4018,
3436,
2266,
834,
536,
549,
17444,
427,
1848,
3274,
96,
683,
49,
651,
12461,
29,
1703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many dances did Warren & Kym have? | CREATE TABLE table_17862135_3 (
number_of_dances VARCHAR,
couple VARCHAR
) | SELECT number_of_dances FROM table_17862135_3 WHERE couple = "Warren & Kym" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3840,
2658,
2469,
834,
519,
41,
381,
834,
858,
834,
26,
663,
7,
584,
4280,
28027,
6,
1158,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2595,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
381,
834,
858,
834,
26,
663,
7,
21680,
953,
834,
2517,
3840,
2658,
2469,
834,
519,
549,
17444,
427,
1158,
3274,
96,
21032,
1536,
3,
184,
11478,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date were more than 5 built with 4-4-2 wheels? | CREATE TABLE table_name_38 (date VARCHAR, wheels VARCHAR, no_built VARCHAR) | SELECT date FROM table_name_38 WHERE wheels = "4-4-2" AND no_built > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5522,
584,
4280,
28027,
6,
8277,
584,
4280,
28027,
6,
150,
834,
16152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
130,
72,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
8277,
3274,
96,
591,
4278,
4949,
121,
3430,
150,
834,
16152,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most free throws for 4 steals | CREATE TABLE table_23183195_5 (free_throws INTEGER, steals VARCHAR) | SELECT MAX(free_throws) FROM table_23183195_5 WHERE steals = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
24361,
22464,
834,
755,
41,
2113,
834,
189,
3623,
7,
3,
21342,
17966,
6,
11332,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
339,
3793,
7,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2113,
834,
189,
3623,
7,
61,
21680,
953,
834,
2773,
24361,
22464,
834,
755,
549,
17444,
427,
11332,
7,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which player had the largest number of Σ points ? | CREATE TABLE table_203_507 (
id number,
"#" text,
"player" text,
"\u03c3 points" number,
"qual." number,
"final" number
) | SELECT "player" FROM table_203_507 ORDER BY "\u03c3 points" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
940,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
2,
76,
4928,
75,
519,
979,
121,
381,
6,
96,
11433,
535,
381,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20846,
121,
21680,
953,
834,
23330,
834,
1752,
940,
4674,
11300,
272,
476,
96,
2,
76,
4928,
75,
519,
979,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
after winning week 5 , alisa and lysandra had how many winning weeks | CREATE TABLE table_204_269 (
id number,
"week" number,
"room" text,
"winning couple" text,
"2nd couple" text,
"3rd couple" text,
"chumps" text
) | SELECT COUNT("week") FROM table_204_269 WHERE "week" > 5 AND "winning couple" = 'alisa and lysandra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3951,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
3082,
121,
1499,
6,
96,
8163,
1158,
121,
1499,
6,
96,
357,
727,
1158,
121,
1499,
6,
96,
519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8041,
8512,
21680,
953,
834,
26363,
834,
357,
3951,
549,
17444,
427,
96,
8041,
121,
2490,
305,
3430,
96,
8163,
1158,
121,
3274,
3,
31,
4288,
7,
9,
11,
3,
120,
7,
152,
3515,
31,
1,
-100,
-1... |
What is the average Attendance, when Venue is 'A', and when Date is '5 January 2005'? | CREATE TABLE table_name_65 (
attendance INTEGER,
venue VARCHAR,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_65 WHERE venue = "a" AND date = "5 january 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
11364,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
22497,
663,
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,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
9,
121,
3430,
833,
3274,
96,
755,
3,
7066,
76,
1208,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the trailers for motors of 145 | CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR) | SELECT trailers FROM table_name_92 WHERE motors = "145" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
17,
12977,
277,
584,
4280,
28027,
6,
2340,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
6943,
7,
21,
2340,
7,
13,
3,
20987,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6943,
7,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2340,
7,
3274,
96,
20987,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For a venue of Rome on July 30, 2009, what are the notes? | CREATE TABLE table_name_59 (notes VARCHAR, venue VARCHAR, date VARCHAR) | SELECT notes FROM table_name_59 WHERE venue = "rome" AND date = "july 30, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
7977,
7,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
3,
9,
5669,
13,
7332,
30,
1718,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
5669,
3274,
96,
11956,
121,
3430,
833,
3274,
96,
2047,
120,
11558,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people lived in san gabriel in the year 2000? | CREATE TABLE table_2004733_2 (population__2000_ VARCHAR, barangay VARCHAR) | SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = "San Gabriel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
4177,
4201,
834,
357,
41,
9791,
7830,
834,
834,
13527,
834,
584,
4280,
28027,
6,
1207,
1468,
9,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
13527,
834,
61,
21680,
953,
834,
3632,
4177,
4201,
834,
357,
549,
17444,
427,
1207,
1468,
9,
63,
3274,
96,
134,
152,
11997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1? | CREATE TABLE table_name_71 (
Id VARCHAR
) | SELECT SUM(2007) FROM table_name_71 WHERE 2006 = 0.2 AND 2010 < 0.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4101,
7,
43,
3,
18189,
38,
3,
9,
3581,
6,
28,
3,
9,
2735,
705,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
27964,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
3581,
3274,
3,
18189,
3430,
2735,
3,
2,
3,
16029,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Record, when Event is 'UFC 64'? | CREATE TABLE table_name_78 (
record VARCHAR,
event VARCHAR
) | SELECT record FROM table_name_78 WHERE event = "ufc 64" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1368,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
8042,
19,
3,
31,
18899,
254,
6687,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
605,
3274,
96,
76,
89,
75,
6687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what amount of stations have station code is awy? | CREATE TABLE table_14688744_2 (
station VARCHAR,
station_code VARCHAR
) | SELECT COUNT(station) FROM table_14688744_2 WHERE station_code = "AWY" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3651,
4225,
3628,
834,
357,
41,
2478,
584,
4280,
28027,
6,
2478,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
866,
13,
6991,
43,
2478,
1081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6682,
61,
21680,
953,
834,
2534,
3651,
4225,
3628,
834,
357,
549,
17444,
427,
2478,
834,
4978,
3274,
96,
9851,
476,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the FA Cup App for Squad Number 3 having fewer than 4 league goals? | CREATE TABLE table_name_53 (
fa_cup_apps VARCHAR,
league_goals VARCHAR,
squad_no VARCHAR
) | SELECT fa_cup_apps FROM table_name_53 WHERE league_goals < 4 AND squad_no = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3,
89,
9,
834,
4658,
834,
3096,
7,
584,
4280,
28027,
6,
5533,
834,
839,
5405,
584,
4280,
28027,
6,
12025,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
9,
834,
4658,
834,
3096,
7,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
5533,
834,
839,
5405,
3,
2,
314,
3430,
12025,
834,
29,
32,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the episode number 11 of the season? | CREATE TABLE table_30031 (
"Series #" real,
"Season #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_30031 WHERE "Season #" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3341,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
5426,
3341,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What year did she compete in tampere, finland? | CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR) | SELECT AVG(year) FROM table_name_95 WHERE venue = "tampere, finland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
1201,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
410,
255,
5978,
16,
3,
17,
4624,
49,
15,
6,
3,
89,
259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5669,
3274,
96,
17,
4624,
49,
15,
6,
3,
89,
25948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number in series for in the ward family and the wren family | CREATE TABLE table_23410 (
"No. overall" text,
"No. in series" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
) | SELECT MAX("No. in series") FROM table_23410 WHERE "Family/families" = 'The Ward Family and The Wren Family' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
24175,
41,
96,
4168,
5,
1879,
121,
1499,
6,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
371,
3690,
120,
87,
89,
3690,
4664,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
16,
939,
8512,
21680,
953,
834,
2773,
24175,
549,
17444,
427,
96,
371,
3690,
120,
87,
89,
3690,
4664,
121,
3274,
3,
31,
634,
15811,
3712,
11,
37,
549,
1536,
3712,
31,
1,
-100,
-100,
-... |
Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11 | CREATE TABLE table_name_90 (
cuts_made INTEGER,
top_25 VARCHAR,
top_10 VARCHAR,
top_5 VARCHAR
) | SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
8620,
834,
4725,
3,
21342,
17966,
6,
420,
834,
1828,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
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,
3,
17684,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
420,
834,
1714,
3,
2,
850,
3430,
420,
834,
755,
2490,
204,
3430,
420,
834,
1828,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-1... |
What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66? | CREATE TABLE table_58303 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_58303 WHERE "Laps" > '66' AND "Driver" = 'michael schumacher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
23335,
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,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3449,
23335,
549,
17444,
427,
96,
3612,
102,
7,
121,
2490,
3,
31,
3539,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
7,
8019,
24113,
... |
What is the Record for the Team of Indiana? | CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR) | SELECT record FROM table_name_4 WHERE team = "indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
60,
7621,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11392,
21,
8,
2271,
13,
11494,
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,
1368,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
372,
3274,
96,
77,
8603,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score for the game against the Golden State Warriors? | CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_54 WHERE opponent = "golden state warriors" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
467,
581,
8,
7100,
1015,
24499,
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,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
15264,
3274,
96,
14910,
35,
538,
20614,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the average amount of spectators when the home team scored 11.14 (80)? | CREATE TABLE table_57247 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_57247 WHERE "Home team score" = '11.14 (80)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
357,
4177,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
3436,
357,
4177,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
2534,
41,
2079,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which totals tournament has the lowest wins and top-25 less than 4? | CREATE TABLE table_name_66 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT MIN(wins) FROM table_name_66 WHERE tournament = "totals" AND top_25 < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3757,
7,
3,
21342,
17966,
6,
5892,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
792,
7,
5892,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
5892,
3274,
96,
235,
1947,
7,
121,
3430,
420,
834,
1828,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
impaired renal function ( creatinine > 200 mmol ) at the time of cell therapy | CREATE TABLE table_test_20 (
"id" int,
"ejection_fraction_ef" int,
"anemia" bool,
"gender" string,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"left_main_coronary_artery_stenosis" int,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"prior_creatinine" float,
"diastolic_blood_pressure_dbp" int,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_20 WHERE renal_disease = 1 OR creatinine_clearance_cl > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
1755,
41,
96,
23,
26,
121,
16,
17,
6,
96,
15,
21440,
834,
22513,
834,
15,
89,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
122,
3868,
121,
610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
4377,
834,
1755,
549,
17444,
427,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
8830,
77,
630,
834,
2482,
9,
5219,
834,
75,
40,
2490,
2382,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest number of students at the community college? | CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR) | SELECT MIN(founded) FROM table_name_8 WHERE affiliation = "community college" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
23329,
3,
21342,
17966,
6,
24405,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
481,
44,
8,
573,
1900,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
23329,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
24405,
3274,
96,
18782,
485,
1900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the rank number that aired october 26, 2007? | CREATE TABLE table_16587 (
"#" real,
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Season" text,
"Rating" text,
"Share" real,
"18\u201349" text,
"Viewers (m)" text,
"Rank (#)" text
) | SELECT "Rank (#)" FROM table_16587 WHERE "Air Date" = 'October 26, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4225,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
13368,
7,
3171,
41,
6038,
61,
121,
1499,
6,
96,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
41,
4663,
61,
121,
21680,
953,
834,
22823,
4225,
549,
17444,
427,
96,
20162,
7678,
121,
3274,
3,
31,
28680,
13597,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nba draft for the player from the hometown of virginia beach, va? | CREATE TABLE table_17095 (
"Year" text,
"Player" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "NBA Draft" FROM table_17095 WHERE "Hometown" = 'Virginia Beach, VA' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3301,
41,
96,
476,
2741,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
4882,
21409,
121,
21680,
953,
834,
536,
2518,
3301,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
21031,
122,
77,
23,
9,
2979,
6,
9039,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which opponent has a Record of 54-38? | CREATE TABLE table_68228 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Opponent" FROM table_68228 WHERE "Record" = '54-38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
357,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
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,
667,
102,
9977,
121,
21680,
953,
834,
3651,
357,
2577,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
5062,
18,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the teams that have both wrestlers eliminated by 'Orton' and wrestlers eliminated by 'Benjamin'. | CREATE TABLE Elimination (
Team VARCHAR,
Eliminated_By VARCHAR
) | SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7495,
14484,
41,
2271,
584,
4280,
28027,
6,
7495,
1109,
920,
834,
279,
63,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
2323,
24,
43,
321,
26033,
52,
7,
17809,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2271,
21680,
7495,
14484,
549,
17444,
427,
7495,
1109,
920,
834,
279,
63,
3274,
96,
667,
17330,
121,
3,
21342,
5249,
14196,
3,
23143,
14196,
2271,
21680,
7495,
14484,
549,
17444,
427,
7495,
1109,
920,
834,
279,
63,
32... |
Which is the smallest evening gown score when the interview score was more than 9.164, the swimsuit stat was less than 9.35, and the average is less than 9.233? | CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR) | SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
6190,
53,
834,
122,
9197,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
6,
2772,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6190,
53,
834,
122,
9197,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2772,
2490,
5835,
26987,
3430,
9728,
7628,
3,
2,
5835,
2469,
3430,
1348,
3,
2,
5835,
20879,
1,
-100,
-100,
-100,
-100,
... |
What is the league with 0 losses? | CREATE TABLE table_name_47 (league VARCHAR, losses VARCHAR) | SELECT league FROM table_name_47 WHERE losses = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
29512,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5533,
28,
3,
632,
8467,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
8467,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is draft detail of the document with id 7? | CREATE TABLE Document_Drafts (
draft_details VARCHAR,
document_id VARCHAR
) | SELECT draft_details FROM Document_Drafts WHERE document_id = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
308,
10913,
7,
41,
6488,
834,
221,
5756,
7,
584,
4280,
28027,
6,
1708,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6488,
2736,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6488,
834,
221,
5756,
7,
21680,
11167,
834,
308,
10913,
7,
549,
17444,
427,
1708,
834,
23,
26,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Scatter plot to show min(age) on x axis and maximal age on y axis for different majors. | CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT MIN(Age), MAX(Age), Major FROM Student GROUP BY Major | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
23055,
7,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
4435,
4309,
3,
21342,
17966,
6,
10768,
7,
834,
15800,
15,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
188,
397,
201,
4800,
4,
599,
188,
397,
201,
9236,
21680,
6341,
350,
4630,
6880,
272,
476,
9236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what round was lyon (32) a 5 seed? | CREATE TABLE table_20711545_1 (lyon__32_ VARCHAR, seed VARCHAR) | SELECT lyon__32_ FROM table_20711545_1 WHERE seed = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
15660,
2128,
834,
536,
41,
120,
106,
834,
834,
2668,
834,
584,
4280,
28027,
6,
6677,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
1751,
47,
3,
120,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
120,
106,
834,
834,
2668,
834,
21680,
953,
834,
26426,
15660,
2128,
834,
536,
549,
17444,
427,
6677,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? | CREATE TABLE table_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR) | SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
519,
41,
8809,
834,
15759,
834,
883,
834,
4010,
155,
9,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
17646,
834,
2206,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
512,
834,
15759,
834,
883,
834,
4010,
155,
9,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
519,
549,
17444,
427,
2637,
3274,
96,
308,
159,
9746,
15,
26,
121,
3430,
17646,
834,
2206,
3274,
96,
10415,
2712,
121,
1,
... |
Find the number of employees hired in each shop; show the shop name as well. | CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR) | SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
4350,
584,
4280,
28027,
6,
1814,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7539,
41,
6921,
834,
23,
26,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
3,
17,
4416,
4350,
21680,
7539,
6157,
3,
17,
536,
3,
15355,
3162,
1814,
6157,
3,
17,
357,
9191,
3,
17,
5411,
6921,
834,
23,
26,
3274,
3,
17,
4416,
6921,
834,
23,
26,
350,
4630,
6880,... |
Which position earned 50 points? | CREATE TABLE table_21437 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT MAX("Fin. Pos") FROM table_21437 WHERE "Points" = '50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
4118,
41,
96,
371,
77,
5,
13995,
121,
490,
6,
96,
6936,
465,
535,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
371,
77,
5,
13995,
8512,
21680,
953,
834,
27357,
4118,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
1752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the team in the New England Patriots, what is the super bowl championship minimum number? | CREATE TABLE table_1952057_5 (
super_bowl_championships INTEGER,
team VARCHAR
) | SELECT MIN(super_bowl_championships) FROM table_1952057_5 WHERE team = "New England Patriots" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
1755,
3436,
834,
755,
41,
1355,
834,
17710,
40,
834,
17788,
12364,
2009,
7,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
21771,
834,
17710,
40,
834,
17788,
12364,
2009,
7,
61,
21680,
953,
834,
22464,
1755,
3436,
834,
755,
549,
17444,
427,
372,
3274,
96,
6861,
2789,
20109,
7,
121,
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_name_98 (Id VARCHAR) | SELECT 2009 FROM table_name_98 WHERE 2008 = "a" AND 2012 = "1r" AND 2010 = "q2" AND 2011 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
2464,
116,
2628,
19,
71,
6,
1673,
19,
209,
52,
6,
2735,
19,
3,
1824,
448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2464,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2628,
3274,
96,
9,
121,
3430,
1673,
3274,
96,
536,
52,
121,
3430,
2735,
3274,
96,
1824,
357,
121,
3430,
2722,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-... |
A bar chart shows the distribution of Team_Name and Team_ID , and order from low to high by the Y please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
834,
23954,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients who in 2104 had an intake of enteral novasource renal. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'enteral novasource renal' AND intakeoutput.cellpath LIKE '%input%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) = '2104') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
21680,
... |
Which Model has a Number of CPUs of 1 10, and a Performance (MIPS) of 49 447? | CREATE TABLE table_66345 (
"Model" text,
"Year Introduced" real,
"Number of CPUs" text,
"Performance (MIPS)" text,
"Memory (GB)" text
) | SELECT "Model" FROM table_66345 WHERE "Number of CPUs" = '1–10' AND "Performance (MIPS)" = '49–447' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
519,
2128,
41,
96,
24663,
121,
1499,
6,
96,
476,
2741,
30600,
26,
121,
490,
6,
96,
567,
5937,
49,
13,
13823,
7,
121,
1499,
6,
96,
12988,
2032,
663,
41,
329,
21563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24663,
121,
21680,
953,
834,
3539,
519,
2128,
549,
17444,
427,
96,
567,
5937,
49,
13,
13823,
7,
121,
3274,
3,
31,
536,
104,
1714,
31,
3430,
96,
12988,
2032,
663,
41,
329,
21563,
61,
121,
3274,
3,
31,
3647,
1... |
How much Avg/G has a Name of robert marve, and a Gain smaller than 236? | CREATE TABLE table_name_32 (
avg_g INTEGER,
name VARCHAR,
gain VARCHAR
) | SELECT SUM(avg_g) FROM table_name_32 WHERE name = "robert marve" AND gain < 236 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3,
9,
208,
122,
834,
122,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
2485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
71,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
9,
208,
122,
834,
122,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
564,
3274,
96,
5840,
49,
17,
3157,
162,
121,
3430,
2485,
3,
2,
204,
3420,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the segment b for 226 episode | CREATE TABLE table_15187735_18 (
segment_b VARCHAR,
episode VARCHAR
) | SELECT segment_b FROM table_15187735_18 WHERE episode = 226 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
2606,
41,
5508,
834,
115,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5508,
3,
115,
21,
204,
2688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5508,
834,
115,
21680,
953,
834,
26578,
27697,
2469,
834,
2606,
549,
17444,
427,
5640,
3274,
204,
2688,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On what date was the Nike Colorado Classic held? | CREATE TABLE table_name_39 (
date VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_name_39 WHERE tournament = "nike colorado classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
833,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
15426,
6144,
6744,
1213,
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,
833,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
5892,
3274,
96,
4953,
15,
945,
9,
26,
32,
2431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which game number had a location/attendance of US Airways Center 7,311 respectively? | CREATE TABLE table_17118657_7 (game INTEGER, location_attendance VARCHAR) | SELECT MAX(game) FROM table_17118657_7 WHERE location_attendance = "US Airways Center 7,311" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2596,
3840,
3436,
834,
940,
41,
7261,
3,
21342,
17966,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
381,
141,
3,
9,
1128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
2517,
2596,
3840,
3436,
834,
940,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
3063,
24601,
1166,
7973,
519,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from? | CREATE TABLE table_name_38 (
moving_from VARCHAR,
ends VARCHAR,
type VARCHAR,
transfer_window VARCHAR
) | SELECT moving_from FROM table_name_38 WHERE type = "transfer" AND transfer_window = "summer" AND ends < 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
1735,
834,
7152,
584,
4280,
28027,
6,
5542,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
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,
1735,
834,
7152,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
686,
3274,
96,
7031,
1010,
121,
3430,
2025,
834,
5165,
2381,
3274,
96,
23541,
52,
121,
3430,
5542,
3,
2,
2038,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the retired time on someone who had 43 laps on a grip of 18? | CREATE TABLE table_name_17 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
14941,
7,
3274,
8838,
3430,
8634,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what place is the player with a score of 72-66-75=213? | CREATE TABLE table_name_13 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
286,
19,
8,
1959,
28,
3,
9,
2604,
13,
9455,
18,
3539... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
3,
3539,
3,
18,
6374,
3274,
204,
2368,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many power (ps) with torque (nm@rpm) being 240@2200-5000 | CREATE TABLE table_16819 (
"Model name" text,
"Power (ps)" real,
"Torque (Nm@rpm)" text,
"Displacement (cm\u00b3)" real,
"Engine code" text,
"Comment" text
) | SELECT COUNT("Power (ps)") FROM table_16819 WHERE "Torque (Nm@rpm)" = '240@2200-5000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
2294,
41,
96,
24663,
564,
121,
1499,
6,
96,
23553,
41,
102,
7,
61,
121,
490,
6,
96,
382,
127,
835,
41,
567,
51,
1741,
52,
2028,
61,
121,
1499,
6,
96,
23664,
1170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23553,
41,
102,
7,
61,
8512,
21680,
953,
834,
24274,
2294,
549,
17444,
427,
96,
382,
127,
835,
41,
567,
51,
1741,
52,
2028,
61,
121,
3274,
3,
31,
11944,
1741,
357,
3632,
18,
12814,
31,
1,
... |
What is the 6:00 with a 7:00 of mostly true stories: urban legends revealed, and a 10:00 with mysteryquest? | CREATE TABLE table_51551 (
"5:00" text,
"6:00" text,
"7:00" text,
"8:00" text,
"10:00" text,
"11:00" text
) | SELECT "6:00" FROM table_51551 WHERE "7:00" = 'mostly true stories: urban legends revealed' AND "10:00" = 'mysteryquest' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1808,
5553,
41,
96,
19870,
121,
1499,
6,
96,
18828,
121,
1499,
6,
96,
18735,
121,
1499,
6,
96,
15692,
121,
1499,
6,
96,
536,
25713,
121,
1499,
6,
96,
536,
24294,
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,
18828,
121,
21680,
953,
834,
755,
1808,
5553,
549,
17444,
427,
96,
18735,
121,
3274,
3,
31,
5463,
120,
1176,
1937,
10,
4150,
9503,
7,
5111,
31,
3430,
96,
536,
25713,
121,
3274,
3,
31,
2258,
1370,
63,
10952,
31... |
What is the fastest lap for Belgian Grand Prix? | CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR) | SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "belgian grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10391,
14941,
21,
2176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
2370,
22898,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the city for IATA of llw | CREATE TABLE table_name_32 (
city VARCHAR,
iata VARCHAR
) | SELECT city FROM table_name_32 WHERE iata = "llw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
690,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
690,
21,
27,
19282,
13,
3,
195,
210,
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,
690,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3,
17221,
3274,
96,
195,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many school/club teams have a player named Manuel Luis Quezon? | CREATE TABLE table_15463188_17 (
number VARCHAR,
school_club_team VARCHAR
) | SELECT COUNT(number) FROM table_15463188_17 WHERE school_club_team = "Manuel Luis Quezon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3891,
25794,
834,
2517,
41,
381,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
496,
87,
13442,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5525,
1152,
61,
21680,
953,
834,
27308,
3891,
25794,
834,
2517,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
7296,
76,
15,
40,
2318,
159,
7227,
8892,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the average high temperature for each day of week Plot them as bar chart, rank Y-axis in desc order. | CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
) | SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY AVG(high_temperature) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
16,
17,
6,
1229,
834,
4350,
1499,
6,
364,
1499,
6,
415,
834,
17415,
485,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2981,
41,
2412,
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,
239,
834,
858,
834,
8041,
6,
71,
17217,
599,
6739,
834,
21010,
15,
61,
21680,
5547,
834,
26809,
350,
4630,
6880,
272,
476,
239,
834,
858,
834,
8041,
4674,
11300,
272,
476,
71,
17217,
599,
6739,
834,
21010,
15,
61,
... |
How many rounds did Virginia have? | CREATE TABLE table_23961 (
"Round" real,
"Choice" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
) | SELECT "Round" FROM table_23961 WHERE "College" = 'Virginia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3288,
4241,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
3541,
32,
867,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
357,
3288,
4241,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
21031,
122,
77,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the method, date and amount of each payment? Sort the list in ascending order of date. | CREATE TABLE claims (
claim_id number,
policy_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number
)
CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
date_payment_made time,
amount_payment number
)
CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number,
customer_policy_id number
)
CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE customers (
customer_id number,
customer_details text
) | SELECT payment_method_code, date_payment_made, amount_payment FROM payments ORDER BY date_payment_made | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3213,
41,
1988,
834,
23,
26,
381,
6,
1291,
834,
23,
26,
381,
6,
833,
834,
15085,
834,
4725,
97,
6,
833,
834,
15085,
834,
2244,
17,
1361,
97,
6,
866,
834,
20471,
381,
6,
866,
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,
1942,
834,
23152,
834,
4978,
6,
833,
834,
21752,
834,
4725,
6,
866,
834,
21752,
21680,
4364,
4674,
11300,
272,
476,
833,
834,
21752,
834,
4725,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the part 3 of the verb in class 5? | CREATE TABLE table_1745843_6 (
part_3 VARCHAR,
class VARCHAR
) | SELECT part_3 FROM table_1745843_6 WHERE class = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
948,
41,
294,
834,
519,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
294,
220,
13,
8,
7375,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
834,
519,
21680,
953,
834,
27693,
3449,
4906,
834,
948,
549,
17444,
427,
853,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people attended when opponent was twins? | CREATE TABLE table_name_80 (
attendance VARCHAR,
opponent VARCHAR
) | SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
116,
15264,
47,
7390,
7,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
15264,
3274,
96,
17,
3757,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.