NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the final score of the Friendly Competition in Manama, Bahrain? | CREATE TABLE table_77885 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_77885 WHERE "Venue" = 'manama, bahrain' AND "Competition" = 'friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4060,
755,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4013,
4060,
755,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
348,
265,
9,
6,
3,
17670,
6559,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
1,
-100... |
What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin? | CREATE TABLE table_61614 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT MIN("Against") FROM table_61614 WHERE "Status" = 'six nations' AND "Venue" = 'lansdowne road, dublin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
2534,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
20749,
8512,
21680,
953,
834,
948,
2938,
2534,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
7,
2407,
9352,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
1618,
7,
3035,
15,
1... |
Name the most ceiling temperature for intermediate | CREATE TABLE table_1538516_1 (maximum_ceiling_temperature VARCHAR, temperature_classification VARCHAR) | SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Intermediate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
4433,
2938,
834,
536,
41,
9128,
603,
440,
834,
565,
173,
53,
834,
21010,
15,
584,
4280,
28027,
6,
2912,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2411,
834,
565,
173,
53,
834,
21010,
15,
21680,
953,
834,
27025,
4433,
2938,
834,
536,
549,
17444,
427,
2912,
834,
4057,
2420,
3274,
96,
17555,
5700,
342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What round has the highest Res loss, and a time of 40:00? | CREATE TABLE table_name_36 (round INTEGER, res VARCHAR, time VARCHAR) | SELECT MAX(round) FROM table_name_36 WHERE res = "loss" AND time = "40:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
7775,
3,
21342,
17966,
6,
3,
60,
7,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
65,
8,
2030,
7127,
1453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
3,
60,
7,
3274,
96,
2298,
7,
121,
3430,
97,
3274,
96,
591,
25713,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the league for 1996 | CREATE TABLE table_name_90 (
league VARCHAR,
year VARCHAR
) | SELECT league FROM table_name_90 WHERE year = "1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5533,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5533,
21,
6911,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
3274,
96,
2294,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals? | CREATE TABLE table_32699 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Gold") FROM table_32699 WHERE "Bronze" = '3' AND "Rank" > '7' AND "Total" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
3264,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23576,
8512,
21680,
953,
834,
519,
2688,
3264,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
519,
31,
3430,
96,
22557,
121,
2490,
3,
31,
940,
31,
3430,
96,
3696,
1947,
121,
3,
2,
... |
who was executed during president charles de gaulle's reign for thr crime of child murder after rape? | CREATE TABLE table_4054 (
"Executed person" text,
"Date of execution" text,
"Place of execution" text,
"Crime" text,
"Method" text,
"Under President" text
) | SELECT "Executed person" FROM table_4054 WHERE "Under President" = 'Charles de Gaulle' AND "Crime" = 'Child murder after rape' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
5062,
41,
96,
5420,
15,
15835,
26,
568,
121,
1499,
6,
96,
308,
342,
13,
9328,
121,
1499,
6,
96,
345,
11706,
13,
9328,
121,
1499,
6,
96,
254,
5397,
15,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5420,
15,
15835,
26,
568,
121,
21680,
953,
834,
2445,
5062,
549,
17444,
427,
96,
5110,
588,
1661,
121,
3274,
3,
31,
18947,
965,
20,
12520,
195,
15,
31,
3430,
96,
254,
5397,
15,
121,
3274,
3,
31,
3541,
173,
2... |
Date of april 3, 2007 had what score? | CREATE TABLE table_35760 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text
) | SELECT "Score" FROM table_35760 WHERE "Date" = 'april 3, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
28212,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
4749,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2469,
28212,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
6180,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2011 which has a 2002 of —, and a Model of seat marbella? | CREATE TABLE table_name_93 (model VARCHAR) | SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
21770,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2722,
84,
65,
3,
9,
4407,
13,
3,
318,
6,
11,
3,
9,
5154,
13,
3143,
3157,
7708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
4407,
3274,
96,
318,
121,
3430,
825,
3274,
96,
7,
1544,
3157,
7708,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the production code of the episode written by Brendan Cowell? | CREATE TABLE table_27637 (
"Series #" real,
"Title" text,
"Director" text,
"Writer" text,
"Air Date" text,
"Production Code" real
) | SELECT "Production Code" FROM table_27637 WHERE "Writer" = 'Brendan Cowell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
4118,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
20162,
7678,
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,
3174,
8291,
3636,
121,
21680,
953,
834,
357,
3959,
4118,
549,
17444,
427,
96,
24965,
49,
121,
3274,
3,
31,
279,
1536,
3768,
638,
2091,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Rank has a Runner -up smaller than 0? | CREATE TABLE table_41260 (
"Rank" real,
"Country" text,
"Winner" real,
"Runner -up" real,
"Losing Semi- finalist" real
) | SELECT MAX("Rank") FROM table_41260 WHERE "Runner -up" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
18365,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
18455,
687,
121,
490,
6,
96,
23572,
3,
18,
413,
121,
490,
6,
96,
434,
32,
7,
53,
22217,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
4853,
18365,
549,
17444,
427,
96,
23572,
3,
18,
413,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If the parallel bars numbers is 61.500, what is the total number for the flood? | CREATE TABLE table_18662026_1 (
floor VARCHAR,
parallel_bars VARCHAR
) | SELECT COUNT(floor) FROM table_18662026_1 WHERE parallel_bars = "61.500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
26898,
2688,
834,
536,
41,
1501,
584,
4280,
28027,
6,
8449,
834,
1047,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
8449,
6448,
2302,
19,
3,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20924,
61,
21680,
953,
834,
25398,
26898,
2688,
834,
536,
549,
17444,
427,
8449,
834,
1047,
7,
3274,
96,
4241,
5,
2560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many competitions were held after 1992 ? | CREATE TABLE table_204_445 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT COUNT("competition") FROM table_204_445 WHERE "year" > 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
2128,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
7977,
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,
2847,
17161,
599,
121,
287,
4995,
4749,
8512,
21680,
953,
834,
26363,
834,
591,
2128,
549,
17444,
427,
96,
1201,
121,
2490,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are of white russian ethnicity and born before 2101? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.dob_year < "2101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
3,
18,
3,
8503,
4256,
21758,
121,
3430,
14798,
5,
26... |
How many song titles belong to the artist Ratt? | CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR) | SELECT COUNT(song_title) FROM table_21500850_1 WHERE artist = "Ratt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2560,
17246,
834,
536,
41,
7,
2444,
834,
21869,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2324,
8342,
13000,
12,
8,
2377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2444,
834,
21869,
61,
21680,
953,
834,
2658,
2560,
17246,
834,
536,
549,
17444,
427,
2377,
3274,
96,
448,
144,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
where can we find some restaurants in alameda ? | CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_n... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'alameda' AND restaurant.id = location.restaurant_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
41,
3,
23,
26,
16,
17,
6,
564,
3,
4331,
4059,
6,
542,
834,
6137,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
6,
5773,
96,
24223,
1982,
3,
61,
3,
32102,
32103,
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,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
138,
9,
2726,
9,
31,
3430,
2062,
5,
23,
26,
3274,
1128,
5,
30830,
834,
23,
26,
1,... |
Find the category descriptions of the products whose descriptions include letter 't'. | CREATE TABLE ref_product_categories (
product_category_description VARCHAR,
product_category_code VARCHAR
)
CREATE TABLE products (
product_category_code VARCHAR,
product_description VARCHAR
) | SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
15892,
834,
8367,
839,
2593,
41,
556,
834,
8367,
839,
651,
834,
221,
11830,
584,
4280,
28027,
6,
556,
834,
8367,
839,
651,
834,
4978,
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,
332,
5411,
15892,
834,
8367,
839,
651,
834,
221,
11830,
21680,
6273,
834,
15892,
834,
8367,
839,
2593,
6157,
332,
536,
3,
15355,
3162,
494,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
8367,
839,
651,
834,
4978,
3274,... |
What is the score of game 34? | CREATE TABLE table_name_3 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_name_3 WHERE game = 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
467,
6154,
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,
2604,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
467,
3274,
6154,
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,... |
How many weeks had an attendance at 69,149? | CREATE TABLE table_43090 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT COUNT("Week") FROM table_43090 WHERE "Attendance" = '69,149' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
2394,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
25449,
2394,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3951,
6,
24816,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Venue, when Date is '2003-08-13'? | CREATE TABLE table_47188 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_47188 WHERE "Date" = '2003-08-13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
25794,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
4177,
25794,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
23948,
18,
4018,
13056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Location has a Year larger than 2006, and a Score of 6 3, 6 3? | CREATE TABLE table_name_78 (
location VARCHAR,
year VARCHAR,
score VARCHAR
) | SELECT location FROM table_name_78 WHERE year > 2006 AND score = "6–3, 6–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10450,
65,
3,
9,
2929,
2186,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
215,
2490,
3581,
3430,
2604,
3274,
96,
948,
104,
6355,
431,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between manufacturer and code , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Manufacturer, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
7296,
76,
8717,
450,
49,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
how many patients who had rdw lab test left against medical advice? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND lab.label = "RDW" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the actor's name for best debut? | CREATE TABLE table_16013 (
"Nomination" text,
"Actors Name" text,
"Film Name" text,
"Director" text,
"Country" text
) | SELECT "Actors Name" FROM table_16013 WHERE "Nomination" = 'Best Debut' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
2368,
41,
96,
4168,
14484,
121,
1499,
6,
96,
188,
5317,
7,
5570,
121,
1499,
6,
96,
371,
173,
51,
5570,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
10628,
651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5317,
7,
5570,
121,
21680,
953,
834,
19129,
2368,
549,
17444,
427,
96,
4168,
14484,
121,
3274,
3,
31,
17278,
374,
2780,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Graham Gooch's nationality? | CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_87 WHERE player = "graham gooch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15146,
1263,
6322,
31,
7,
1157,
485,
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,
1157,
485,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1959,
3274,
96,
3484,
1483,
281,
6322,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the height of the player from Benetton Treviso, Italy? | CREATE TABLE table_name_2 (
height_in_ft VARCHAR,
school_club_team_country VARCHAR
) | SELECT height_in_ft FROM table_name_2 WHERE school_club_team_country = "benetton treviso, italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3902,
834,
77,
834,
89,
17,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
77,
834,
89,
17,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
496,
834,
13442,
834,
11650,
834,
17529,
3274,
96,
346,
10544,
106,
3,
929,
3466,
32,
6,
34,
9,
120,
121,
1,
-100,
-100,
-100,
-100,
... |
what is lab test name and lab test fluid of subject name shawn green? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT lab.label, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Shawn Green" | [
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,
7690,
5,
40,
10333,
6,
7690,
5,
6947,
23,
26,
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,
427,
14798,
5,
4350,
3274,
... |
How many engineers did each staff contact? List both the contact staff name and number of engineers contacted. | CREATE TABLE Staff (
staff_name VARCHAR,
staff_id VARCHAR
)
CREATE TABLE Engineer_Visits (
contact_staff_id VARCHAR
) | SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
871,
834,
4350,
584,
4280,
28027,
6,
871,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11597,
834,
553,
159,
7085,
41,
574,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
26416,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
10071,
6157,
332,
536,
3,
15355,
3162,
11597,
834,
553,
159,
7085,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
26,
3274,
332,
4416,
27608,
834,
... |
What year did fr-08: the product ( farbrausch ) win best pc intro? | CREATE TABLE table_27182 (
"Year" text,
"Amiga demo" text,
"PC demo" text,
"C64 demo" text,
"Amiga intro" text,
"PC intro" text
) | SELECT "Year" FROM table_27182 WHERE "PC intro" = 'FR-08: The Product ( Farbrausch )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2606,
357,
41,
96,
476,
2741,
121,
1499,
6,
96,
8123,
12581,
8698,
121,
1499,
6,
96,
4051,
8698,
121,
1499,
6,
96,
254,
4389,
8698,
121,
1499,
6,
96,
8123,
12581,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
2555,
2606,
357,
549,
17444,
427,
96,
4051,
16728,
121,
3274,
3,
31,
7422,
18,
4018,
10,
37,
6246,
41,
15452,
4565,
860,
3,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the average prices of products for each manufacturer? | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
7174,
1499,
6,
3751,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
382,
5411,
102,
4920,
201,
332,
4416,
4350,
21680,
494,
6157,
332,
536,
3,
15355,
3162,
5360,
6157,
332,
357,
9191,
332,
5411,
348,
76,
8717,
450,
49,
3274,
332,
4416,
4978,
350,
4630,
6880,
272,
476... |
Who is the winner of the H.E.B. Texas open? | CREATE TABLE table_name_76 (
winner VARCHAR,
tournament VARCHAR
) | SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
4668,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4668,
13,
8,
454,
5,
427,
5,
279,
5,
2514,
539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
5892,
3274,
96,
107,
5,
15,
5,
115,
5,
3,
10354,
9,
7,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the player from purcell, ok? | CREATE TABLE table_29132 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Age" real,
"Home Town" text,
"Team/School" text
) | SELECT "Name" FROM table_29132 WHERE "Home Town" = 'Purcell, OK' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
23757,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
188,
397,
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,
23954,
121,
21680,
953,
834,
3166,
23757,
549,
17444,
427,
96,
19040,
4463,
121,
3274,
3,
31,
345,
450,
8725,
6,
6902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the youngest baseball player so far? | CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
notes text
)
CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed... | SELECT name_first, name_last FROM player ORDER BY birth_year DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
9,
2239,
41,
1959,
834,
23,
26,
1499,
6,
2760,
834,
23,
26,
1499,
6,
215,
381,
6,
5533,
834,
23,
26,
1499,
6,
6177,
1499,
6,
3358,
1499,
3,
61,
3,
32102,
32103,
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,
564,
834,
14672,
6,
564,
834,
5064,
21680,
1959,
4674,
11300,
272,
476,
3879,
834,
1201,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many matches in Spain in 2010? | CREATE TABLE betfront (
year number,
datetime time,
country text,
competion text,
match text,
home_opening number,
draw_opening number,
away_opening number,
home_closing number,
draw_closing number,
away_closing number
)
CREATE TABLE football_data (
season text,
date... | SELECT COUNT(*) FROM football_data WHERE season LIKE "%2010%" AND country = "Spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
36,
17,
6849,
41,
215,
381,
6,
833,
715,
97,
6,
684,
1499,
6,
2890,
15,
1575,
1499,
6,
1588,
1499,
6,
234,
834,
8751,
53,
381,
6,
3314,
834,
8751,
53,
381,
6,
550,
834,
8751,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3370,
834,
6757,
549,
17444,
427,
774,
8729,
9914,
96,
1454,
14926,
1454,
121,
3430,
684,
3274,
96,
134,
13585,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What previous club was born on October 22, 1993? | CREATE TABLE table_77815 (
"Name" text,
"Date of birth" text,
"Position(s)" text,
"Seasons" text,
"Matches & (Goals) (League + Finals + KNVB-Cup)" text,
"Previous club" text
) | SELECT "Previous club" FROM table_77815 WHERE "Date of birth" = 'october 22, 1993' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3940,
1808,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
3879,
121,
1499,
6,
96,
345,
32,
7,
4749,
599,
7,
61,
121,
1499,
6,
96,
134,
15,
9,
6577,
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,
10572,
19117,
1886,
121,
21680,
953,
834,
940,
3940,
1808,
549,
17444,
427,
96,
308,
342,
13,
3879,
121,
3274,
3,
31,
32,
75,
235,
1152,
12889,
8388,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many city/municipalties have an area (km2) of 506.64? | CREATE TABLE table_261222_1 (
city___municipality VARCHAR,
area__km_2__ VARCHAR
) | SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = "506.64" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2122,
2884,
834,
536,
41,
690,
834,
834,
834,
11760,
3389,
10355,
584,
4280,
28027,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6726,
834,
834,
834,
11760,
3389,
10355,
61,
21680,
953,
834,
2688,
2122,
2884,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
96,
1752,
28833,
20364,
1,
-100,
-100,
-100,
... |
Average larger than 2,279, and a Team of queen of the south, and a Capacity larger than 6,412 has what lowest of the sum? | CREATE TABLE table_38778 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT SUM("Lowest") FROM table_38778 WHERE "Average" > '2,279' AND "Team" = 'queen of the south' AND "Capacity" > '6,412' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
3940,
41,
96,
18699,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
21417,
222,
121,
490,
6,
96,
434,
32,
12425,
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,
180,
6122,
599,
121,
434,
32,
12425,
8512,
21680,
953,
834,
519,
4225,
3940,
549,
17444,
427,
96,
188,
624,
545,
121,
2490,
3,
31,
4482,
357,
4440,
31,
3430,
96,
18699,
121,
3274,
3,
31,
835,
35,
13,
8,
3414,
31... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the amount of name , and group by attribute name, could you rank by the X-axis in ascending? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
2847,
17161,
599,
382,
4416,
23954,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
which nation won the same number of bronze medals as peru ? | CREATE TABLE table_204_771 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_771 WHERE "nation" <> 'peru' AND "bronze" = (SELECT "bronze" FROM table_204_771 WHERE "nation" = 'peru') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4013,
536,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
4013,
536,
549,
17444,
427,
96,
29,
257,
121,
3,
2,
3155,
3,
31,
883,
76,
31,
3430,
96,
13711,
776,
121,
3274,
41,
23143,
14196,
96,
13711,
776,
121,
21680,
953,
83... |
At what milepost is Beacon Falls? | CREATE TABLE table_2572788_1 (
milepost VARCHAR,
town_city VARCHAR
) | SELECT milepost FROM table_2572788_1 WHERE town_city = "Beacon Falls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
2555,
4060,
834,
536,
41,
7728,
5950,
584,
4280,
28027,
6,
1511,
834,
6726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
7728,
5950,
19,
493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7728,
5950,
21680,
953,
834,
357,
3436,
2555,
4060,
834,
536,
549,
17444,
427,
1511,
834,
6726,
3274,
96,
2703,
9,
1018,
8491,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is admission location and admission time of subject id 17519? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT demographic.admission_location, demographic.admittime FROM demographic WHERE demographic.subject_id = "17519" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
536,
3072,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the transfer fee for the MLI player with fewer than 63 goals in a year more recent than 2006? | CREATE TABLE table_name_60 (transfer_fee VARCHAR, nat VARCHAR, since VARCHAR, goals VARCHAR) | SELECT transfer_fee FROM table_name_60 WHERE since = "2006" AND goals < 63 AND nat = "mli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
7031,
1010,
834,
89,
15,
15,
584,
4280,
28027,
6,
3,
29,
144,
584,
4280,
28027,
6,
437,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
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,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
437,
3274,
96,
21196,
121,
3430,
1766,
3,
2,
3,
3891,
3430,
3,
29,
144,
3274,
96,
51,
40,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show different locations and the number of performances at each location with a pie chart. | CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
) | SELECT Location, COUNT(*) FROM performance GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
1499,
6,
5570,
1499,
6,
868,
485,
1499,
6,
2158,
109,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
15116,
663,
41,
8541,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
821,
350,
4630,
6880,
272,
476,
10450,
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 the home team's score in the game played at glenferrie oval? | CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_40 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
31,
7,
2604,
16,
8,
467,
1944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What category was in 1964? | CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR) | SELECT category FROM table_name_14 WHERE year = 1964 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
8367,
839,
651,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3295,
47,
16,
18969,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
18969,
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... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart, and show by the y axis in desc. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
What is the total sum of 50m splits for josefin lillhage in lanes above 8? | CREATE TABLE table_name_24 (
split__50m_ INTEGER,
name VARCHAR,
lane VARCHAR
) | SELECT SUM(split__50m_) FROM table_name_24 WHERE name = "josefin lillhage" AND lane > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5679,
834,
834,
1752,
51,
834,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7,
5900,
17,
834,
834,
1752,
51,
834,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
564,
3274,
96,
1927,
7,
15,
89,
77,
3,
40,
1092,
107,
545,
121,
3430,
3,
8102,
2490,
505,
1,
-100,
-... |
Which finalist played in the week of October 21? | CREATE TABLE table_44687 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
) | SELECT "Finalist" FROM table_44687 WHERE "Week" = 'october 21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
4225,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
518,
10266,
121,
1499,
6,
96,
18455,
687,
11,
2604,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
343,
121,
21680,
953,
834,
591,
4448,
4225,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
32,
75,
235,
1152,
1401,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which attribute definitions have attribute value 0? Give me the proportion of each attribute name. | CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABL... | SELECT attribute_name, COUNT(attribute_name) FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 GROUP BY attribute_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
138,
834,
188,
17,
5135,
1422,
41,
10173,
834,
295,
651,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15816,
834,
4350,
6,
2847,
17161,
599,
144,
5135,
17,
15,
834,
4350,
61,
21680,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
138,
834,
1... |
what is 2007/08 when 2005/06 is not held and 2004/05 is lq? | CREATE TABLE table_13387 (
"2002/ 03" text,
"2003/ 04" text,
"2004/ 05" text,
"2005/ 06" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2007/ 08" FROM table_13387 WHERE "2005/ 06" = 'not held' AND "2004/ 05" = 'lq' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
4225,
41,
96,
24898,
87,
12811,
121,
1499,
6,
96,
23948,
87,
11484,
121,
1499,
6,
96,
21653,
87,
3,
3076,
121,
1499,
6,
96,
22594,
87,
13574,
121,
1499,
6,
96,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20615,
87,
12046,
121,
21680,
953,
834,
22974,
4225,
549,
17444,
427,
96,
22594,
87,
13574,
121,
3274,
3,
31,
2264,
1213,
31,
3430,
96,
21653,
87,
3,
3076,
121,
3274,
3,
31,
40,
1824,
31,
1,
-100,
-100,
-100,
... |
where is a good place in mountain view for arabic food ? | CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
reg... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
41,
3,
23,
26,
16,
17,
6,
564,
3,
4331,
4059,
6,
542,
834,
6137,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
6,
5773,
96,
24223,
1982,
3,
61,
3,
32102,
32103,
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,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
11231,
9,
77,
903,
31,
3430,
2062,
5,
12437,
834,
6137,
3274,
3,
31,
2551,
15979,
3... |
Who is the developer for Windows live messenger? | CREATE TABLE table_18138132_2 (developer VARCHAR, title VARCHAR) | SELECT developer FROM table_18138132_2 WHERE title = "Windows Live Messenger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
22744,
23757,
834,
357,
41,
29916,
49,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
7523,
21,
1758,
619,
28110,
58,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7523,
21680,
953,
834,
2606,
22744,
23757,
834,
357,
549,
17444,
427,
2233,
3274,
96,
28265,
3306,
26226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 2013 has a 2007 of A, and a Tournament of french open? | CREATE TABLE table_33981 (
"Tournament" text,
"2006" text,
"2007" text,
"2008-12" text,
"2013" text
) | SELECT "2013" FROM table_33981 WHERE "2007" = 'a' AND "Tournament" = 'french open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
4959,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
5947,
121,
1499,
6,
96,
11138,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11138,
121,
21680,
953,
834,
519,
3288,
4959,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
89,
60,
5457,
539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'? | CREATE TABLE organisation_types (
organisation_type text,
organisation_type_description text
)
CREATE TABLE projects (
project_id number,
organisation_id number,
project_details text
)
CREATE TABLE project_staff (
staff_id number,
project_id number,
role_code text,
date_from time,
... | SELECT T1.grant_amount FROM grants AS T1 JOIN documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5102,
834,
6137,
7,
41,
5102,
834,
6137,
1499,
6,
5102,
834,
6137,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
516,
834,
23,
26,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
7662,
17,
834,
9,
11231,
21680,
11133,
6157,
332,
536,
3,
15355,
3162,
2691,
6157,
332,
357,
9191,
332,
5411,
7662,
17,
834,
23,
26,
3274,
332,
4416,
7662,
17,
834,
23,
26,
549,
17444,
427,
332,
4416,
5... |
How many matches have 0 as the lost? | CREATE TABLE table_42857 (
"Team" text,
"Match" real,
"Points" real,
"Draw" real,
"Lost" real
) | SELECT COUNT("Match") FROM table_42857 WHERE "Lost" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
3436,
41,
96,
18699,
121,
1499,
6,
96,
329,
14547,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
14547,
8512,
21680,
953,
834,
591,
2577,
3436,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me distance by name in a histogram | CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE... | SELECT name, distance FROM aircraft | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
599,
8525,
632,
201,
5233,
3,
4331,
4059,
357,
599,
1755,
201,
3954,
3,
4331,
4059,
357,
599,
1755,
201,
2357,
381,
599,
11071,
632,
201,
12028,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
2357,
21680,
6442,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland? | CREATE TABLE table_44144 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Years in the ACC" text,
"School Type" text,
"Enrollment" real
) | SELECT "Years in the ACC" FROM table_44144 WHERE "Founded" < '1885' AND "Location" = 'college park, maryland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
20885,
41,
96,
1570,
17448,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
476,
2741,
7,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
16,
8,
3,
14775,
121,
21680,
953,
834,
3628,
20885,
549,
17444,
427,
96,
20100,
121,
3,
2,
3,
31,
2606,
4433,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
3297,
7883,
2447,
6,
3157,
2890... |
Which Played has a Goal Difference larger than 24? | CREATE TABLE table_name_35 (
played INTEGER,
goal_difference INTEGER
) | SELECT AVG(played) FROM table_name_35 WHERE goal_difference > 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1944,
3,
21342,
17966,
6,
1288,
834,
26,
99,
11788,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2911,
15,
26,
65,
3,
9,
17916,
27187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1288,
834,
26,
99,
11788,
2490,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which rider was on the 600cc Yamaha team? | CREATE TABLE table_name_44 (rider VARCHAR, team VARCHAR) | SELECT rider FROM table_name_44 WHERE team = "600cc yamaha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
4055,
49,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2564,
52,
47,
30,
8,
7366,
75,
75,
26369,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
372,
3274,
96,
6007,
75,
75,
3,
22990,
1024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose primary disease is pneumonia;human immunodefiency virus;rule out tuberculosis and age is less than 62? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" AND demographic.age < "62" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15420,
12062,
5365,
26077,
117,
17861,
9312,
3,
5166,
9696,
7400,
5596,
... |
What are the Chinese characters for the word that has a R maji of ch sh ? | CREATE TABLE table_45723 (
"Japanese" text,
"R\u014dmaji" text,
"Meaning" text,
"Chinese" text,
"Romanization" text,
"Source language" text
) | SELECT "Chinese" FROM table_45723 WHERE "R\u014dmaji" = 'chāshū' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3436,
2773,
41,
96,
683,
9750,
1496,
15,
121,
1499,
6,
96,
448,
2,
76,
632,
2534,
26,
16547,
23,
121,
1499,
6,
96,
329,
15,
152,
53,
121,
1499,
6,
96,
3541,
4477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3541,
4477,
15,
121,
21680,
953,
834,
591,
3436,
2773,
549,
17444,
427,
96,
448,
2,
76,
632,
2534,
26,
16547,
23,
121,
3274,
3,
31,
524,
2,
7,
107,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about School_ID over the All_Home , and group by attribute ACC_Road by a bar chart, and rank in asc by the total number. | 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_Per... | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY School_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,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR) | SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
7261,
7,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7261,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
11003,
3,
2,
314,
3430,
3,
23768,
3,
2,
3,
25988,
3430,
372,
3274,
96,
9052,
15,
7,
9,
3,
122,
115,
75,
121,
1,
-100,
-100,
-100,... |
What is Moving, when Type is "Transfer", and when Name is "Andy Webster"? | CREATE TABLE table_name_27 (moving_from VARCHAR, type VARCHAR, name VARCHAR) | SELECT moving_from FROM table_name_27 WHERE type = "transfer" AND name = "andy webster" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
7168,
53,
834,
7152,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15510,
6,
116,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
1735,
834,
7152,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
686,
3274,
96,
7031,
1010,
121,
3430,
564,
3274,
96,
232,
63,
765,
1370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the maximum age of patients who are widowed and have medicare insurance. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.insurance = "Medicare" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
3430,
14798,
5,
29441,
3274,
96,
15789,
355,
121,
1,
-100,
-100,
-10... |
what are all the state/nation where the race number is 36 | CREATE TABLE table_27806 (
"Position" real,
"Race number" text,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed time d:hh:mm:ss" text
) | SELECT "State/country" FROM table_27806 WHERE "Race number" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2079,
948,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
448,
3302,
381,
121,
1499,
6,
96,
134,
9,
173,
381,
121,
1499,
6,
96,
476,
9,
3997,
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,
134,
4748,
87,
17529,
121,
21680,
953,
834,
2555,
2079,
948,
549,
17444,
427,
96,
448,
3302,
381,
121,
3274,
3,
31,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Please give me a bar chart showing institution types, along with the total enrollment for each type. | CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest... | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14932,
41,
14932,
834,
23,
26,
1499,
6,
14932,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
6632,
1499,
6,
695,
4046,
297,
16,
17,
6,
2271,
1499,
6,
14542,
834,
4302,
11788,
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,
6632,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the stadium with record being 1–1 | CREATE TABLE table_14102379_4 (stadium VARCHAR, record VARCHAR) | SELECT stadium FROM table_14102379_4 WHERE record = "1–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1714,
2773,
4440,
834,
591,
41,
2427,
12925,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
14939,
28,
1368,
271,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
2534,
1714,
2773,
4440,
834,
591,
549,
17444,
427,
1368,
3274,
96,
536,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
history of any heart disease including coronary artery disease | CREATE TABLE table_dev_11 (
"id" int,
"pregnancy_or_lactation" bool,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"diastolic_blood_pressure_dbp" int,
"smoking" bool,
"donated_plasma" bool,
"coronary_artery_disease_cad" bool,
"donated_blood" bool,
"hypertension" bool,
... | SELECT * FROM table_dev_11 WHERE heart_disease = 1 OR coronary_artery_disease_cad = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
2596,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
2686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9776,
834,
2596,
549,
17444,
427,
842,
834,
26,
159,
14608,
3274,
209,
4674,
27008,
63,
834,
27845,
834,
26,
159,
14608,
834,
658,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
The game on Saturday, May 25 took place on which week? | CREATE TABLE table_24776075_2 (
week INTEGER,
date VARCHAR
) | SELECT MIN(week) FROM table_24776075_2 WHERE date = "Saturday, May 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4013,
3328,
3072,
834,
357,
41,
471,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
467,
30,
1856,
6,
932,
944,
808,
286,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
2266,
4013,
3328,
3072,
834,
357,
549,
17444,
427,
833,
3274,
96,
134,
6010,
1135,
6,
932,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the state represented by the contestant from Mesa, AZ? | CREATE TABLE table_name_43 (state VARCHAR, hometown VARCHAR) | SELECT state FROM table_name_43 WHERE hometown = "mesa, az" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
5540,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
538,
7283,
57,
8,
4233,
288,
45,
10162,
9,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
22295,
3274,
96,
2687,
9,
6,
3,
9,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show how many delegates in each party with a pie chart. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
... | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
13725,
63,
6,
2847,
17161,
599,
382,
4416,
13725,
63,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
4630,
6... |
What was the Winning Score when Betsy Rawls was the Runner(s)-up? | CREATE TABLE table_33914 (
"Year" real,
"Championship" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
) | SELECT "Winning score" FROM table_33914 WHERE "Runner(s)-up" = 'betsy rawls' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
2534,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
121,
1499,
6,
96,
23572,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10503,
2604,
121,
21680,
953,
834,
519,
3288,
2534,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
346,
17,
7,
63,
5902,
40,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who did the high assists in the game played on February 9? | CREATE TABLE table_22879323_8 (
high_assists VARCHAR,
date VARCHAR
) | SELECT high_assists FROM table_22879323_8 WHERE date = "February 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
4271,
2773,
834,
927,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
306,
13041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2884,
4225,
4271,
2773,
834,
927,
549,
17444,
427,
833,
3274,
96,
31122,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the location is Brooklyn, Michigan and the pole position is Bobby Unser, what is the RND total number? | CREATE TABLE table_2692 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
) | SELECT COUNT("Rnd") FROM table_2692 WHERE "Location" = 'Brooklyn, Michigan' AND "Pole Position" = 'Bobby Unser' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4508,
41,
96,
448,
727,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
382,
16729,
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,
2847,
17161,
599,
121,
448,
727,
8512,
21680,
953,
834,
2688,
4508,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
22780,
1825,
120,
29,
6,
5847,
31,
3430,
96,
8931,
15,
14258,
121,
3274,
3,
31,
279,
3... |
What is the 2004 value in the 2011 Grand Slam Tournaments? | CREATE TABLE table_68057 (
"Tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2004" FROM table_68057 WHERE "2011" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
3436,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
21196,
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,
21653,
121,
21680,
953,
834,
948,
2079,
3436,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
15448,
3,
7,
40,
265,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show me about the proportion of the sum of Team_ID and the sum of Team_ID in a pie chart. | 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
)
CREATE TABLE university (
Scho... | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
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,
432,
834,
19040,
6,
180,
6122,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the shortest duration and lowest rating of songs grouped by genre using a bar chart, and rank bars from high to low order please. | CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(10),
most_popular_in varchar2(50)
)
CREATE TABLE artist (
artist_name varchar2(50),
co... | SELECT MIN(T1.duration), MIN(T2.rating) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY MIN(T1.duration) ORDER BY MIN(T1.duration) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
599,
16968,
6,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
1042,
834,
7991,
3,
4331,
4059,
357,
599,
1755,
201,
8659,
3,
4331,
4059,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
382,
5411,
1259,
2661,
201,
3,
17684,
599,
382,
4416,
52,
1014,
61,
21680,
2073,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
89,
834,
23,
26,
3274,
332,
4416,
89,
834,
23,... |
Which Total has a Nation of japan, and a Silver larger than 2? | CREATE TABLE table_48307 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_48307 WHERE "Nation" = 'japan' AND "Silver" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
1458,
940,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3707,
1458,
940,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
1191,
2837,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-... |
What is the Nationality of the Deacon of S. Maria in Via Lata? | CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR) | SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
16557,
485,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
13,
8,
374,
9,
1018,
13,
180,
5,
653... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
2233,
3274,
96,
221,
9,
1018,
13,
3,
7,
5,
2774,
9,
16,
1009,
50,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent during the second round? | CREATE TABLE table_40857 (
"Season" text,
"Round" text,
"Country" text,
"Opponent" text,
"Result" text
) | SELECT "Opponent" FROM table_40857 WHERE "Round" = 'second round' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
3436,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
2445,
927,
3436,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
12091,
1751,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average area for code 98030 with population over 312? | CREATE TABLE table_name_80 (
area__km_2__ INTEGER,
code VARCHAR,
population VARCHAR
) | SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
6,
1081,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
498,
834,
834,
5848,
834,
357,
834,
834,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1081,
3274,
668,
2079,
1458,
3430,
2074,
2490,
220,
2122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the names of nurses who are on call. | CREATE TABLE on_call (nurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR) | SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
30,
834,
16482,
41,
29,
3589,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
4350,
584,
4280,
28027,
6,
15871,
4309,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
4350,
21680,
10444,
6157,
332,
536,
3,
15355,
3162,
30,
834,
16482,
6157,
332,
357,
9191,
332,
5411,
427,
51,
7379,
63,
15,
15,
4309,
3274,
332,
4416,
29,
3589,
15,
1,
-100,
-100,
... |
What is the highest round reached by an oppo ent of JR schumacher? | CREATE TABLE table_15582 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT MAX("Round") FROM table_15582 WHERE "Opponent" = 'jr schumacher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4613,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
20896,
4613,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
354,
52,
3,
7,
8019,
24113,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
show me the number of patients with a diagnoses icd9 code of 4846 who were hospitalized for more than 15 days. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "15" AND diagnoses.icd9_code = "4846" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the time of the bout that ended in a TKO (strikes)? | CREATE TABLE table_42554 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_42554 WHERE "Method" = 'tko (strikes)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1828,
5062,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
13368,
121,
21680,
953,
834,
591,
1828,
5062,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
17,
157,
32,
41,
7,
1788,
7735,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the hanja for hangul of | CREATE TABLE table_31730 (
"Hangul" text,
"Hanja" text,
"Revised" text,
"McCune-Reischauer" text,
"Estimated distribution (2000)*" real
) | SELECT "Hanja" FROM table_31730 WHERE "Hangul" = '주' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
1458,
41,
96,
566,
1468,
83,
121,
1499,
6,
96,
566,
152,
1191,
121,
1499,
6,
96,
1649,
208,
3375,
121,
1499,
6,
96,
329,
75,
254,
444,
18,
1649,
2499,
12668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
152,
1191,
121,
21680,
953,
834,
519,
2517,
1458,
549,
17444,
427,
96,
566,
1468,
83,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the release date record on 10/29/76 and a time on 2:50 | CREATE TABLE table_78063 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
) | SELECT "Release Date" FROM table_78063 WHERE "Time" = '2:50' AND "Recorded" = '10/29/76' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
3891,
41,
96,
382,
16729,
121,
490,
6,
96,
1649,
7621,
15,
26,
121,
1499,
6,
96,
18610,
9,
10384,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
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,
1649,
40,
14608,
7678,
121,
21680,
953,
834,
940,
2079,
3891,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
357,
10,
1752,
31,
3430,
96,
1649,
7621,
15,
26,
121,
3274,
3,
31,
1714,
87,
3166,
87,
3959,
31,
1,... |
Which round has a Kick Off of 1993-02-17 20:30? | CREATE TABLE table_70536 (
"Round" text,
"Kick Off" text,
"Opponents" text,
"H / A" text,
"Result" text,
"Referee" text
) | SELECT "Round" FROM table_70536 WHERE "Kick Off" = '1993-02-17 20:30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
755,
3420,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
439,
3142,
4395,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2518,
755,
3420,
549,
17444,
427,
96,
439,
3142,
4395,
121,
3274,
3,
31,
19479,
22773,
357,
10794,
460,
10,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose days of hospital stay is greater than 26 and lab test name is lymphocytes? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "26" AND lab.label = "Lymphocytes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the fastest lap with pole position of gilles villeneuve? | CREATE TABLE table_16723 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_16723 WHERE "Pole Position" = 'Gilles Villeneuve' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
2773,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
27650,
2773,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
517,
11348,
15626,
26445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Kerry is at 36.7%, what is the total number of others? | CREATE TABLE table_name_88 (others_number VARCHAR, kerry_percentage VARCHAR) | SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = "36.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
9269,
7,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
2304,
651,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
24967,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9269,
7,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
2304,
651,
834,
883,
3728,
545,
3274,
96,
3420,
5,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the maximum vertical measurement if the horizon measurement is 640? | CREATE TABLE table_29362 (
"Vertical" real,
"Horizontal" real,
"Aspect ratio" text,
"Pixel aspect ratio" text,
"Scanning" text,
"Frame rate ( Hz )" text
) | SELECT MAX("Vertical") FROM table_29362 WHERE "Horizontal" = '640' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3420,
357,
41,
96,
5000,
17,
1950,
121,
490,
6,
96,
4489,
13266,
106,
1947,
121,
490,
6,
96,
188,
5628,
5688,
121,
1499,
6,
96,
345,
2407,
15,
40,
2663,
5688,
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,
4800,
4,
599,
121,
5000,
17,
1950,
8512,
21680,
953,
834,
3166,
3420,
357,
549,
17444,
427,
96,
4489,
13266,
106,
1947,
121,
3274,
3,
31,
23714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which country scored 70-68-71-71=280? | CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
5799,
2861,
18,
3651,
18,
4450,
18,
4450,
2423,
17518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
3,
3651,
3,
18,
3,
4450,
3,
18,
3,
4450,
3274,
3,
17518,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the id of the appointment with the most recent start date? | CREATE TABLE appointment (
appointmentid VARCHAR,
START VARCHAR
) | SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4141,
41,
4141,
23,
26,
584,
4280,
28027,
6,
5097,
8241,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3,
23,
26,
13,
8,
4141,
28,
8,
167,
1100,
456,
833,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4141,
23,
26,
21680,
4141,
4674,
11300,
272,
476,
5097,
8241,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the shape distortion for the range frequency of 10? | CREATE TABLE table_27615520_1 (
form_factor VARCHAR,
bandwidth__gb_s_ VARCHAR
) | SELECT form_factor FROM table_27615520_1 WHERE bandwidth__gb_s_ = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
20896,
1755,
834,
536,
41,
607,
834,
17899,
584,
4280,
28027,
6,
19703,
834,
834,
122,
115,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
607,
834,
17899,
21680,
953,
834,
357,
3959,
20896,
1755,
834,
536,
549,
17444,
427,
19703,
834,
834,
122,
115,
834,
7,
834,
3274,
96,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the arabs when the annual population growth rate is 1.7%? | CREATE TABLE table_25947046_1 (arabs VARCHAR, annual_population_growth_rate VARCHAR) | SELECT arabs FROM table_25947046_1 WHERE annual_population_growth_rate = "1.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4240,
2518,
4448,
834,
536,
41,
9,
7093,
7,
584,
4280,
28027,
6,
2041,
834,
9791,
7830,
834,
24690,
834,
2206,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21165,
7,
21680,
953,
834,
1828,
4240,
2518,
4448,
834,
536,
549,
17444,
427,
2041,
834,
9791,
7830,
834,
24690,
834,
2206,
3274,
96,
18596,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the trend about department_id over hire_date , and could you display by the X-axis in ascending? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
... |
What is the series sorted value for the episode released December 2009? | CREATE TABLE table_name_91 (series_sorted VARCHAR, released VARCHAR) | SELECT series_sorted FROM table_name_91 WHERE released = "december 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
10833,
7,
834,
14504,
584,
4280,
28027,
6,
1883,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
939,
3,
14504,
701,
21,
8,
5640,
1883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
834,
14504,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1883,
3274,
96,
221,
75,
18247,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the result when extra is 4 x 100 m relay and the year is later than 1971? | CREATE TABLE table_name_15 (
result VARCHAR,
extra VARCHAR,
year VARCHAR
) | SELECT result FROM table_name_15 WHERE extra = "4 x 100 m relay" AND year > 1971 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
741,
584,
4280,
28027,
6,
996,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
741,
116,
996,
19,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
996,
3274,
96,
591,
3,
226,
910,
3,
51,
16010,
121,
3430,
215,
2490,
17961,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.