NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
On what game sites are there where the team record is 0–5? | CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR) | SELECT game_site FROM table_25380472_2 WHERE team_record = "0–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
22671,
4177,
357,
834,
357,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
372,
834,
60,
7621,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
467,
1471,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
1828,
22671,
4177,
357,
834,
357,
549,
17444,
427,
372,
834,
60,
7621,
3274,
96,
632,
104,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Principal activities have an Incorporated in of france? | CREATE TABLE table_name_76 (principal_activities VARCHAR, incorporated_in VARCHAR) | SELECT principal_activities FROM table_name_76 WHERE incorporated_in = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
12298,
3389,
138,
834,
8463,
2197,
584,
4280,
28027,
6,
3,
10975,
834,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15449,
1087,
43,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3218,
834,
8463,
2197,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3,
10975,
834,
77,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2? | CREATE TABLE table_50605 (
"Oklahoma vs." text,
"Overall Record" text,
"at Norman" text,
"at Opponent's Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Since Beginning of Big 12" text
) | SELECT "Since Beginning of Big 12" FROM table_50605 WHERE "Last 10 Meetings" = 'ou, 7-3' AND "at Neutral Site" = 'ou, 2-1' AND "Last 5 Meetings" = 'bu, 3-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3328,
755,
41,
96,
667,
8142,
10207,
9,
3,
208,
7,
535,
1499,
6,
96,
23847,
1748,
11392,
121,
1499,
6,
96,
144,
13615,
121,
1499,
6,
96,
144,
4495,
9977,
31,
7,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
77,
565,
22738,
13,
2734,
586,
121,
21680,
953,
834,
1752,
3328,
755,
549,
17444,
427,
96,
3612,
7,
17,
335,
9198,
7,
121,
3274,
3,
31,
1063,
6,
489,
3486,
31,
3430,
96,
144,
3617,
8792,
3238,
121,
3274... |
what is the average losses when the wins is 3? | CREATE TABLE table_77518 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | SELECT AVG("Losses") FROM table_77518 WHERE "Wins" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3072,
2606,
41,
96,
18699,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
382,
725,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
940,
3072,
2606,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent on April 28? | CREATE TABLE table_38371 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Stadium" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_38371 WHERE "Date" = 'april 28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
4118,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
134,
17,
9,
12925... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3747,
4118,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
2059,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which 2009 has a 2008 of A, and a Tournament of canada masters? | CREATE TABLE table_name_65 (tournament VARCHAR) | SELECT 2009 FROM table_name_65 WHERE 2008 = "a" AND tournament = "canada masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2464,
65,
3,
9,
2628,
13,
71,
6,
11,
3,
9,
20502,
13,
19343,
2325,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2628,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
658,
18089,
2325,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228? | CREATE TABLE table_name_67 (
pick__number INTEGER,
overall VARCHAR,
name VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT AVG(pick__number) FROM table_name_67 WHERE round > 5 AND position = "wide receiver" AND name = "gregory spann" AND overall > 228 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1751,
2490,
305,
3430,
1102,
3274,
96,
6728,
11487,
121,
3430,
564,
3274,
96,
18301,
127,
63,
3,
20326,
121,
3430,
... |
What is the number of silver where the rank is higher than 4 and bronze is smaller than 1? | CREATE TABLE table_name_16 (
silver VARCHAR,
rank VARCHAR,
bronze VARCHAR
) | SELECT COUNT(silver) FROM table_name_16 WHERE rank > 4 AND bronze < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
4294,
213,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
11003,
2490,
314,
3430,
13467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Surface has a Score in the final of 2–6, 6–7? | CREATE TABLE table_name_42 (surface VARCHAR, score_in_the_final VARCHAR) | SELECT surface FROM table_name_42 WHERE score_in_the_final = "2–6, 6–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
26899,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
18884,
65,
3,
9,
17763,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
357,
104,
11071,
431,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me both the time of admission and discharge for patient francis baseler. | 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.admittime, demographic.dischtime FROM demographic WHERE demographic.name = "Francis Baseler" | [
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,
20466,
17,
715,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
371,
52,
11389,
7,
8430,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Track(s) is on 18 november 1985? | CREATE TABLE table_63195 (
"Artist" text,
"Album" text,
"Track(s)" text,
"Date" text,
"Label" text
) | SELECT "Track(s)" FROM table_63195 WHERE "Date" = '18 november 1985' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
22464,
41,
96,
7754,
343,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
382,
16729,
599,
7,
61,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
16729,
599,
7,
61,
121,
21680,
953,
834,
3891,
22464,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2606,
3,
5326,
18247,
13200,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total rank on airdate march 30, 2011? | CREATE TABLE table_74220 (
"Episode Number" text,
"Episode Name" text,
"Airdate" text,
"Viewers (millions)" text,
"Rank(Timeslot)" text,
"Rank 18\u201349 (Night)" text
) | SELECT COUNT("Rank(Timeslot)") FROM table_74220 WHERE "Airdate" = 'March 30, 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
357,
1755,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
5570,
121,
1499,
6,
96,
20162,
5522,
121,
1499,
6,
96,
15270,
277,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
599,
13368,
7,
3171,
61,
8512,
21680,
953,
834,
4581,
357,
1755,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
25019,
11558,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose procedure icd9 code is 4610 and drug type is base? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "4610" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
What is the score for the game larger than 4 in series 3-2? | CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR) | SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
7,
9022,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
467,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
467,
2490,
314,
3430,
939,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist? | CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR) | SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
13159,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
6,
3,
7,
18450,
19565,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
962,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
13159,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2377,
3274,
96,
2528,
17,
3,
7355,
49,
121,
3430,
3,
7,
18450,
19565,
834,
21869,
3274,
96,
20300,
3,
3708,
121,
1,
-100,
-100,
-100,
-... |
List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents. | CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE document_locations (
document_id number,
... | SELECT T2.employee_name, T3.employee_name FROM documents_to_be_destroyed AS T1 JOIN employees AS T2 ON T1.destruction_authorised_by_employee_id = T2.employee_id JOIN employees AS T3 ON T1.destroyed_by_employee_id = T3.employee_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
66,
834,
28244,
7,
41,
1708,
834,
23,
26,
381,
6,
833,
834,
7154,
26,
97,
6,
1708,
834,
6137,
834,
4978,
1499,
6,
1708,
834,
4350,
1499,
6,
1708,
834,
221,
11830,
1499,
6,
119,
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,
4416,
15,
51,
7379,
63,
15,
15,
834,
4350,
6,
332,
5787,
15,
51,
7379,
63,
15,
15,
834,
4350,
21680,
2691,
834,
235,
834,
346,
834,
221,
6626,
10093,
6157,
332,
536,
3,
15355,
3162,
1652,
6157,
332,
357,
91... |
What is the candidates for fred e. busbey? | CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342149_13 WHERE incumbent = "Fred E. Busbey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2658,
3647,
834,
2368,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4341,
21,
3,
89,
1271,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2658,
3647,
834,
2368,
549,
17444,
427,
28406,
3274,
96,
371,
1271,
262,
5,
5703,
346,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.334? | CREATE TABLE table_64519 (
"Country" text,
"Athlete" text,
"Technical" real,
"Free" real,
"Total" real
) | SELECT MAX("Technical") FROM table_64519 WHERE "Athlete" = 'jiang tingting & jiang wenwen' AND "Total" > '96.334' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
2294,
41,
96,
10628,
651,
121,
1499,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
9542,
29,
1950,
121,
490,
6,
96,
16393,
121,
490,
6,
96,
3696,
1947,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
9542,
29,
1950,
8512,
21680,
953,
834,
948,
2128,
2294,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
354,
23,
1468,
3,
1222,
1222,
3,
184,
3,
354,
23,
1468,
62,
29,
210,
35,
31... |
How many female patients had a thyroxine (t4) lab test done? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Thyroxine (T4)" | [
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,... |
Which nation has a Silver of 1, a Gold of 0, and a Total of 1? | CREATE TABLE table_name_46 (
nation VARCHAR,
total VARCHAR,
silver VARCHAR,
gold VARCHAR
) | SELECT nation FROM table_name_46 WHERE silver = "1" AND gold = "0" AND total = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
4294,
3274,
96,
536,
121,
3430,
2045,
3274,
96,
632,
121,
3430,
792,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the date for 2010 fifa world cup qualification | CREATE TABLE table_31943 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_31943 WHERE "Competition" = '2010 fifa world cup qualification' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
4906,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
2294,
4906,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
14926,
361,
89,
9,
296,
4119,
15513,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location for the match held on April 11, 2007, which ended with a score of 0-0? | CREATE TABLE table_name_90 (venue VARCHAR, score VARCHAR, date VARCHAR) | SELECT venue FROM table_name_90 WHERE score = "0-0" AND date = "april 11, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
15098,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
21,
8,
1588,
1213,
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,
5669,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
2604,
3274,
96,
18629,
121,
3430,
833,
3274,
96,
9,
2246,
40,
9694,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of enrollment for county of 48 madison | CREATE TABLE table_name_47 (enrollment VARCHAR, _number___county VARCHAR) | SELECT COUNT(enrollment) FROM table_name_47 WHERE _number___county = "48 madison" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
35,
4046,
297,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
3274,
96,
3707,
11454,
23,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which game number was located in Prudential Center 15,086? | CREATE TABLE table_27700375_6 (
game INTEGER,
location_attendance VARCHAR
) | SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = "Prudential Center 15,086" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
22954,
834,
948,
41,
467,
3,
21342,
17966,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
381,
47,
1069,
16,
21522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
61,
21680,
953,
834,
2555,
9295,
22954,
834,
948,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
345,
17237,
7220,
1166,
10725,
632,
3840,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Name had a Games of 2008 beijing, and a Medal of gold? | CREATE TABLE table_75005 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Name" FROM table_75005 WHERE "Games" = '2008 beijing' AND "Medal" = 'gold' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
3076,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
32102,
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,
23954,
121,
21680,
953,
834,
9979,
3076,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
16128,
468,
354,
53,
31,
3430,
96,
20123,
138,
121,
3274,
3,
31,
14910,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
specify admission time and gender of patient id 4589 | 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 demographic.gender, demographic.admittime FROM demographic WHERE demographic.subject_id = "4589" | [
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,
122,
3868,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2128,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0 | CREATE TABLE table_name_61 (wins__outdoor_ INTEGER, wins__indoor_ VARCHAR, rank VARCHAR, wins__total_ VARCHAR) | SELECT AVG(wins__outdoor_) FROM table_name_61 WHERE rank > 4 AND wins__total_ < 3 AND wins__indoor_ > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
3757,
7,
834,
834,
670,
11968,
834,
3,
21342,
17966,
6,
9204,
834,
834,
77,
11968,
834,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
9204,
834,
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,
71,
17217,
599,
3757,
7,
834,
834,
670,
11968,
834,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
11003,
2490,
314,
3430,
9204,
834,
834,
235,
1947,
834,
3,
2,
220,
3430,
9204,
834,
834,
77,
11968,
834,
2... |
What kind of arch is the pont de montanges (pont-des-pierres)? | CREATE TABLE table_12778 (
"Name" text,
"Location" text,
"Land" text,
"Longest span in s metre ( feet )" text,
"Arch type" text,
"Completed" text
) | SELECT "Arch type" FROM table_12778 WHERE "Name" = 'pont de montanges (pont-des-pierres)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
3940,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
434,
232,
121,
1499,
6,
96,
434,
2444,
222,
8438,
16,
3,
7,
3,
22404,
41,
1922,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23533,
686,
121,
21680,
953,
834,
22367,
3940,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
5041,
17,
20,
6278,
3280,
7,
41,
5041,
17,
18,
1395,
18,
8343,
60,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
If the radio stations is radio nou si radio radio nou m sica; what were the total number of television channels? | CREATE TABLE table_25682 (
"Autonomous Community" text,
"Organization" text,
"Television Channels" text,
"Radio Stations" text,
"Foundation" real
) | SELECT COUNT("Television Channels") FROM table_25682 WHERE "Radio Stations" = 'Radio Nou Si Radio Radio Nou Música' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
4613,
41,
96,
16204,
3114,
1162,
3092,
121,
1499,
6,
96,
14878,
257,
121,
1499,
6,
96,
382,
400,
6610,
9916,
7,
121,
1499,
6,
96,
31313,
5939,
7,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
382,
400,
6610,
9916,
7,
8512,
21680,
953,
834,
19337,
4613,
549,
17444,
427,
96,
31313,
5939,
7,
121,
3274,
3,
31,
31313,
14455,
925,
5061,
5061,
14455,
283,
2,
7,
2617,
31,
1,
-100,
-100,
... |
Which sum of week that had an attendance larger than 55,767 on September 28, 1986? | CREATE TABLE table_69444 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT SUM("Week") FROM table_69444 WHERE "Attendance" > '55,767' AND "Date" = 'september 28, 1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
3628,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3951,
591,
3628,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3769,
6,
940,
3708,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247... |
What was the score of the home team at junction oval? | CREATE TABLE table_name_19 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_19 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
234,
372,
44,
23704,
17986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the flash size difference in the at90s8515 chip and the at90s4414 ? | CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
) | SELECT ABS((SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s8515') - (SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s4414')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
2938,
41,
3,
23,
26,
381,
6,
96,
17362,
121,
1499,
6,
96,
89,
8058,
812,
121,
1499,
6,
96,
15,
15,
1409,
51,
121,
381,
6,
96,
7,
2375,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20798,
599,
599,
23143,
14196,
96,
89,
8058,
812,
121,
21680,
953,
834,
26363,
834,
591,
2938,
549,
17444,
427,
96,
17362,
121,
3274,
3,
31,
144,
2394,
7,
4433,
1808,
31,
61,
3,
18,
41,
23143,
14196,
96,
89,
8058,... |
What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value? | CREATE TABLE table_name_52 (
hong_kong INTEGER,
brisbane VARCHAR,
kuala_lumpur VARCHAR
) | SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
3,
23001,
834,
157,
2444,
3,
21342,
17966,
6,
3,
2160,
7,
3478,
15,
584,
4280,
28027,
6,
3,
2729,
138,
9,
834,
5171,
3791,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
23001,
834,
157,
2444,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
3,
2160,
7,
3478,
15,
3274,
3,
632,
3430,
3,
2729,
138,
9,
834,
5171,
3791,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-... |
which country has brought home the most gold ? | CREATE TABLE table_204_360 (
id number,
"year" number,
"host" text,
"gold" text,
"silver" text,
"bronze" text
) | SELECT "gold" FROM table_204_360 GROUP BY "gold" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19208,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
12675,
121,
1499,
6,
96,
14910,
121,
1499,
6,
96,
7,
173,
624,
121,
1499,
6,
96,
13711,
776,
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,
14910,
121,
21680,
953,
834,
26363,
834,
19208,
350,
4630,
6880,
272,
476,
96,
14910,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar graph to show meter_100 from different meter 400, rank by the X in descending please. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
... | SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_400 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5548,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
5548,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the student id of the oldest student. | CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
) | SELECT stuid FROM student WHERE age = (SELECT MAX(age) FROM student) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
11211,
122,
63,
41,
21341,
23,
26,
381,
6,
23886,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
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,
21341,
23,
26,
21680,
1236,
549,
17444,
427,
1246,
3274,
41,
23143,
14196,
4800,
4,
599,
545,
61,
21680,
1236,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played? | CREATE TABLE table_39123 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Position") FROM table_39123 WHERE "Against" = '12' AND "Points" < '11' AND "Drawn" > '2' AND "Played" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
14574,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
3288,
14574,
549,
17444,
427,
96,
20749,
121,
3274,
3,
31,
2122,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
2596,
31,
3430,
96,
308,
10936,
29,
121,
2... |
did they win more and home or away ? | CREATE TABLE table_203_853 (
id number,
"date" text,
"opponent" text,
"home/away" text,
"field" text,
"result" text
) | SELECT "home/away" FROM table_203_853 WHERE "result" = 'w' GROUP BY "home/away" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4433,
519,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
5515,
87,
8006,
121,
1499,
6,
96,
1846,
121,
1499,
6,
96,
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,
5515,
87,
8006,
121,
21680,
953,
834,
23330,
834,
4433,
519,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
210,
31,
350,
4630,
6880,
272,
476,
96,
5515,
87,
8006,
121,
4674,
11300,
272,
476,
2847,
17... |
When was the Lundy withdrawn? | CREATE TABLE table_33374 (
"BRNo." real,
"SRNo." text,
"Name" text,
"Builder" text,
"Whenbuilt" text,
"Withdrawn" text
) | SELECT "Withdrawn" FROM table_33374 WHERE "Name" = 'lundy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
4581,
41,
96,
6934,
4168,
535,
490,
6,
96,
6857,
4168,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
10555,
16152,
121,
1499,
6,
96,
1501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15013,
19489,
29,
121,
21680,
953,
834,
23360,
4581,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
40,
1106,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many capitals are there when area (km ) is 1111.14? | CREATE TABLE table_73060 (
"Province" text,
"Capital" text,
"Area (km\u00b2)" text,
"Population" real,
"Density" real,
"Map region" real
) | SELECT COUNT("Capital") FROM table_73060 WHERE "Area (km\u00b2)" = '1111.14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
3328,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499,
6,
96,
27773,
7830,
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,
2847,
17161,
599,
121,
19566,
9538,
8512,
21680,
953,
834,
940,
1458,
3328,
549,
17444,
427,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
2596,
10032,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
calculate the maximum age of patients born before the year 2158 who were hospitalized for 11 days. | 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 MAX(demographic.age) FROM demographic WHERE demographic.days_stay = "11" AND demographic.dod_year < "2158.0" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2596,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
357,
1808,
27376,
121,
1,
-100,
-100,
-1... |
what format did france use ? | CREATE TABLE table_204_966 (
id number,
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
) | SELECT "format" FROM table_204_966 WHERE "region" = 'france' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4314,
948,
41,
3,
23,
26,
381,
6,
96,
18145,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
8995,
121,
1499,
6,
96,
2138,
9,
2152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8995,
121,
21680,
953,
834,
26363,
834,
4314,
948,
549,
17444,
427,
96,
18145,
121,
3274,
3,
31,
89,
5219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many managers for club in Turku where kitmaker is Puma? | CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR) | SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
22174,
3707,
357,
834,
536,
41,
24185,
584,
4280,
28027,
6,
3650,
8337,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24185,
61,
21680,
953,
834,
1828,
22174,
3707,
357,
834,
536,
549,
17444,
427,
3650,
8337,
3274,
96,
345,
440,
9,
121,
3430,
1128,
3274,
96,
382,
450,
2729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
In heat rank 7, what is the sum of lanes? | CREATE TABLE table_name_48 (
lane INTEGER,
heat_rank VARCHAR
) | SELECT SUM(lane) FROM table_name_48 WHERE heat_rank = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3,
8102,
3,
21342,
17966,
6,
1678,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
1678,
11003,
7973,
125,
19,
8,
4505,
13,
50,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1678,
834,
6254,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what day was Game 7 of this season played? | CREATE TABLE table_name_78 (
date VARCHAR,
game VARCHAR
) | SELECT date FROM table_name_78 WHERE game = "game 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
239,
47,
4435,
489,
13,
48,
774,
1944,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
467,
3274,
96,
7261,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the surface of the French Championships? | CREATE TABLE table_2215159_2 (surface VARCHAR, championship VARCHAR) | SELECT surface FROM table_2215159_2 WHERE championship = "French championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
1808,
27904,
834,
357,
41,
26899,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1774,
13,
8,
2379,
7666,
7,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
2884,
1808,
27904,
834,
357,
549,
17444,
427,
10183,
3274,
96,
371,
60,
5457,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which position did kevin edwards play for | CREATE TABLE table_16494599_5 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_16494599_5 WHERE player = "Kevin Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3647,
2128,
3264,
834,
755,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
410,
3,
1050,
2494,
3,
15,
26,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
2938,
3647,
2128,
3264,
834,
755,
549,
17444,
427,
1959,
3274,
96,
439,
15,
2494,
8200,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, order by the bars in asc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER 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,
3642,
19973,
6,
180,
6122,
599,
7296,
76,
8717,
450,
49,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
Who is the partner on a date later than 1971 who is the runner-up with a score of 3 6, 3 6? | CREATE TABLE table_name_33 (
partner VARCHAR,
score_in_the_final VARCHAR,
date VARCHAR,
outcome VARCHAR
) | SELECT partner FROM table_name_33 WHERE date > 1971 AND outcome = "runner-up" AND score_in_the_final = "3–6, 3–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
2397,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
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,
2397,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
2490,
17961,
3430,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
519,
104,
11071,
220,
104,
948,
121,
1,
-100... |
what is the difference between marcellino lucchi 's points and max biaggi 's points ? | CREATE TABLE table_203_35 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
) | SELECT (SELECT "points" FROM table_203_35 WHERE "rider" = 'max biaggi') - (SELECT "points" FROM table_203_35 WHERE "rider" = 'marcellino lucchi') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
715,
87,
10682,
1271,
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,
41,
23143,
14196,
96,
2700,
7,
121,
21680,
953,
834,
23330,
834,
2469,
549,
17444,
427,
96,
4055,
49,
121,
3274,
3,
31,
9128,
3,
15500,
15406,
31,
61,
3,
18,
41,
23143,
14196,
96,
2700,
7,
121,
21680,
953,
834,
... |
What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400? | CREATE TABLE table_name_97 (
torque VARCHAR,
engine_code VARCHAR,
power VARCHAR
) | SELECT torque FROM table_name_97 WHERE engine_code = "n46b20" AND power = "ps (kw; hp)@6400" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
19527,
584,
4280,
28027,
6,
1948,
834,
4978,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19527,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19527,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1948,
834,
4978,
3274,
96,
29,
4448,
115,
1755,
121,
3430,
579,
3274,
96,
102,
7,
41,
157,
210,
117,
3,
107,
102,
61,
1741,
4389,
1206,
121,
1,
-100,
-100,... |
What is every institution with the nickname of Quakers? | CREATE TABLE table_261954_1 (institution VARCHAR, nickname VARCHAR) | SELECT institution FROM table_261954_1 WHERE nickname = "Quakers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
5062,
834,
536,
41,
77,
17448,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
6568,
28,
8,
24649,
13,
2415,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6568,
21680,
953,
834,
2688,
2294,
5062,
834,
536,
549,
17444,
427,
24649,
3274,
96,
5991,
9,
11758,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest value in April with a record of 35 37 11 and more than 81 points? | CREATE TABLE table_34391 (
"Game" real,
"April" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT MAX("April") FROM table_34391 WHERE "Record" = '35–37–11' AND "Points" > '81' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
3288,
536,
41,
96,
23055,
121,
490,
6,
96,
23323,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23323,
8512,
21680,
953,
834,
3710,
3288,
536,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2469,
104,
4118,
104,
2596,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
4959,
31,
1,
-100,
-100,
... |
What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995? | CREATE TABLE table_35621 (
"Season" real,
"Team" text,
"Wins" real,
"Losses" real,
"Draws" real
) | SELECT MAX("Wins") FROM table_35621 WHERE "Season" < '1995' AND "Team" = 'central district' AND "Draws" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4056,
536,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
18455,
7,
8512,
21680,
953,
834,
2469,
4056,
536,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3,
2,
3,
31,
2294,
3301,
31,
3430,
96,
18699,
121,
3274,
3,
31,
20071,
3939,
31,
3430,
96,
308,
1... |
what's the operational period with camp sajmi te | CREATE TABLE table_16054 (
"Camp" text,
"Estimated deaths" text,
"Operational" text,
"Occupied territory" text,
"Current country of location" text,
"Primary means for mass killings" text
) | SELECT "Operational" FROM table_16054 WHERE "Camp" = 'Sajmište' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
5062,
41,
96,
24626,
121,
1499,
6,
96,
14997,
603,
920,
14319,
121,
1499,
6,
96,
667,
883,
257,
138,
121,
1499,
6,
96,
667,
75,
4658,
5973,
9964,
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,
667,
883,
257,
138,
121,
21680,
953,
834,
19129,
5062,
549,
17444,
427,
96,
24626,
121,
3274,
3,
31,
134,
9,
354,
51,
23,
2,
17,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0? | CREATE TABLE table_37537 (
"Year of Marriage" real,
"Name" text,
"Her Age" real,
"His Age" real,
"# of Children" real
) | SELECT SUM("Her Age") FROM table_37537 WHERE "His Age" < '33' AND "Name" = 'diontha walker' AND "# of Children" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
4118,
41,
96,
476,
2741,
13,
26741,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
12636,
7526,
121,
490,
6,
96,
12146,
7,
7526,
121,
490,
6,
96,
4663,
13,
4351,
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,
12636,
7526,
8512,
21680,
953,
834,
22954,
4118,
549,
17444,
427,
96,
12146,
7,
7526,
121,
3,
2,
3,
31,
4201,
31,
3430,
96,
23954,
121,
3274,
3,
31,
26,
23,
106,
189,
9,
3,
24063,
31,
3430,
... |
What date has 2:48 as the time? | CREATE TABLE table_name_48 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_48 WHERE time = "2:48" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
204,
10,
3707,
38,
8,
97,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
97,
3274,
96,
357,
10,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the co-presenter of the series Seven (2007)? | CREATE TABLE table_19284 (
"Series" text,
"Main presenter" text,
"Co-presenter" text,
"Comedian" text,
"UK co-presenter" text
) | SELECT "Co-presenter" FROM table_19284 WHERE "Series" = 'Seven (2007)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4608,
41,
96,
12106,
7,
121,
1499,
6,
96,
21978,
29,
915,
49,
121,
1499,
6,
96,
3881,
18,
12640,
49,
121,
1499,
6,
96,
5890,
15,
8603,
121,
1499,
6,
96,
15787,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
18,
12640,
49,
121,
21680,
953,
834,
19978,
4608,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
134,
6190,
3,
27964,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize names and market shares of furnitures which no any company is producing in our records by a bar chart, and order Y-axis in desc order. | CREATE TABLE manufacturer (
Manufacturer_ID int,
Open_Year real,
Name text,
Num_of_Factories int,
Num_of_Shops int
)
CREATE TABLE furniture_manufacte (
Manufacturer_ID int,
Furniture_ID int,
Price_in_Dollar real
)
CREATE TABLE furniture (
Furniture_ID int,
Name text,
Num_of... | SELECT Name, Market_Rate FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte) ORDER BY Market_Rate DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4818,
41,
15248,
834,
4309,
16,
17,
6,
2384,
834,
476,
2741,
490,
6,
5570,
1499,
6,
1174,
51,
834,
858,
834,
371,
9,
5317,
725,
16,
17,
6,
1174,
51,
834,
858,
834,
16450,
7,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3611,
834,
448,
342,
21680,
1991,
549,
17444,
427,
4486,
9724,
834,
4309,
3388,
41,
23143,
14196,
9724,
834,
4309,
21680,
1991,
834,
348,
76,
8717,
15,
61,
4674,
11300,
272,
476,
3611,
834,
448,
342,
309,
2... |
When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank? | CREATE TABLE table_name_6 (
rank INTEGER,
heat VARCHAR,
nationality VARCHAR,
time VARCHAR
) | SELECT MIN(rank) FROM table_name_6 WHERE nationality = "united states" AND time = "58.06" AND heat > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
11003,
3,
21342,
17966,
6,
1678,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
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,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
97,
3274,
96,
3449,
5,
5176,
121,
3430,
1678,
2490,
305,
1,
-100,
-100,
-100,
-100,
-... |
Show all video game types and the number of video games in each type. | CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text... | SELECT gtype, COUNT(*) FROM video_games GROUP BY gtype | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
671,
834,
7261,
7,
41,
467,
23,
26,
381,
6,
3,
122,
4350,
1499,
6,
3,
122,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2100,
9583,
41,
21341,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
122,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
671,
834,
7261,
7,
350,
4630,
6880,
272,
476,
3,
122,
6137,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the name of the company at the top of the chart ? | CREATE TABLE table_204_325 (
id number,
"class" text,
"name" text,
"company" text,
"residence" text,
"term expires dec 31" number,
"notes" text
) | SELECT "company" FROM table_204_325 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
1828,
41,
3,
23,
26,
381,
6,
96,
4057,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
29179,
121,
1499,
6,
96,
60,
1583,
3772,
121,
1499,
6,
96,
1987,
8982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29179,
121,
21680,
953,
834,
26363,
834,
519,
1828,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Bar chart x axis country y axis the total number, list total number from high to low order. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
"Home Town" text
)
CREATE TABLE perpetrator (
Perpetrator_ID int,
People_ID int,
Date text,
Year real,
Location text,
Country text,
Killed int,
Injured int
) | SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
96,
19040,
4463,
121,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
28998,
127,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
28998,
127,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the branding when the call sign is ckua-fm-3? | CREATE TABLE table_13526 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text,
"Language/Rebroadcast" text
) | SELECT "Branding" FROM table_13526 WHERE "Call sign" = 'ckua-fm-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
2688,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18304,
727,
53,
121,
21680,
953,
834,
536,
2469,
2688,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
2406,
76,
9,
18,
89,
51,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average of capacity of cinemas open for each year in a line chart, and sort in desc by the X-axis. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... | SELECT Openning_year, AVG(Capacity) FROM cinema ORDER BY Openning_year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
3,
22557,
834,
77,
834,
10833,
7,
16,
17,
6,
7720,
834,
77,
834,
9476,
16,
17,
6,
11029,
1499,
6,
7143,
15,
26,
834,
969,
1499,
6,
8465,
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,
2384,
29,
53,
834,
1201,
6,
71,
17217,
599,
19566,
9,
6726,
61,
21680,
10276,
4674,
11300,
272,
476,
2384,
29,
53,
834,
1201,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Segment B of aerospace fuel lines has what segment A? | CREATE TABLE table_75009 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment A" FROM table_75009 WHERE "Segment B" = 'aerospace fuel lines' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
4198,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
121,
1499,
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,
134,
15,
122,
297,
71,
121,
21680,
953,
834,
9979,
4198,
549,
17444,
427,
96,
134,
15,
122,
297,
272,
121,
3274,
3,
31,
9,
49,
32,
6633,
2914,
2356,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients who were admitted before year 2111 and had done a heparin, lmw lab test. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.label = "Heparin, LMW" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the name and hours of the students whose tryout decision is yes. | CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
) | SELECT T1.pname, T1.hs FROM player AS T1 JOIN tryout AS T2 ON T1.pid = T2.pid WHERE T2.decision = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
3,
75,
4350,
1499,
6,
538,
1499,
6,
3,
35,
52,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
3,
12417,
381,
6,
3,
102,
4350,
1499,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
102,
4350,
6,
332,
5411,
107,
7,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
12417,
3274,
332,
4416,
12417,
549,
17444,
427,
332,
4416,
221,
18901,
3274,
3,
31,... |
How many Vacators were listed when the district was North Carolina 3rd? | CREATE TABLE table_225095_4 (vacator VARCHAR, district VARCHAR) | SELECT COUNT(vacator) FROM table_225095_4 WHERE district = "North Carolina 3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
3301,
834,
591,
41,
8938,
1016,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
25203,
6230,
130,
2616,
116,
8,
3939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8938,
1016,
61,
21680,
953,
834,
357,
11434,
3301,
834,
591,
549,
17444,
427,
3939,
3274,
96,
22969,
5089,
220,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the name, city, country, and altitude (or elevation) of the airports in the city of New York. | CREATE TABLE airports (name VARCHAR, city VARCHAR, country VARCHAR, elevation VARCHAR) | SELECT name, city, country, elevation FROM airports WHERE city = 'New York' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
4350,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
16417,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
6,
690,
6,
684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
6,
690,
6,
684,
6,
16417,
21680,
3761,
7,
549,
17444,
427,
690,
3274,
3,
31,
6861,
1060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which Record has a Score of 1 4? | CREATE TABLE table_39012 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_39012 WHERE "Score" = '1–4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
2122,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
2394,
2122,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
536,
104,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the Apps were smaller than 22, what's the lowest amount of goals scored in a game? | CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER) | SELECT MIN(goals) FROM table_name_33 WHERE apps < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
839,
5405,
3,
21342,
17966,
6,
4050,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
2276,
7,
130,
2755,
145,
12889,
125,
31,
7,
8,
7402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
4050,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Record of 44 18 8 involves which score? | CREATE TABLE table_name_95 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_95 WHERE record = "44–18–8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
8537,
507,
505,
5806,
84,
2604,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1368,
3274,
96,
3628,
104,
2606,
104,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which venue had 5000 m notes in 2009 with a 1st position? | CREATE TABLE table_61537 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Venue" FROM table_61537 WHERE "Notes" = '5000 m' AND "Year" = '2009' AND "Position" = '1st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1808,
4118,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
948,
1808,
4118,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
12814,
3,
51,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
16660,
31,
3430,
96,
345,
32,
7,
4749,
... |
What is Player, when Round is less than 6, and when Pick is '69'? | CREATE TABLE table_name_78 (
player VARCHAR,
round VARCHAR,
pick VARCHAR
) | SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
9609,
19,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1751,
3,
2,
431,
3430,
1432,
3274,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what race did Buddy Rice hav fastest lap? | CREATE TABLE table_26922 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Track" text,
"Location" text,
"Pole position" text,
"Fastest lap" text,
"Most Laps Led" text,
"Winner" text
) | SELECT "Race Name" FROM table_26922 WHERE "Fastest lap" = 'Buddy Rice' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
2884,
41,
96,
448,
727,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
448,
3302,
5570,
121,
21680,
953,
834,
357,
3951,
2884,
549,
17444,
427,
96,
371,
9,
7,
4377,
14941,
121,
3274,
3,
31,
7793,
8155,
16869,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which year has 112 laps? | CREATE TABLE table_name_31 (
year VARCHAR,
laps VARCHAR
) | SELECT year FROM table_name_31 WHERE laps = 112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
215,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
850,
357,
14941,
7,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
14941,
7,
3274,
850,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
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, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, display by the total number in desc. | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_I... | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(SALARY) DESC | [
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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2... |
Who is runner-up where the winning score is 6 (65-70-70-69=274) and the margin of victory is 3 strokes? | CREATE TABLE table_name_19 (
runner_s__up VARCHAR,
margin_of_victory VARCHAR,
winning_score VARCHAR
) | SELECT runner_s__up FROM table_name_19 WHERE margin_of_victory = "3 strokes" AND winning_score = –6(65 - 70 - 70 - 69 = 274) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
519,
9529,
7,
121,
3430,
3447,
834,
7,
9022,
3274,
3,
104,
948,
599,
4122,
3,
18,
2... |
What was week 17's date? | CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_21 WHERE week = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
471,
1003,
31,
7,
833,
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,
833,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
471,
3274,
1003,
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 asian ethnic background patients were born before the year 2152? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.dob_year < "2152" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
3291,
21758,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
... |
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 | CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) | SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
2700,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1948,
3274,
96,
2920,
9,
2541,
18,
20364,
3430,
3,
295,
3569,
3274,
96,
1018,
29,
9313,
3867,
121,
3430,
215,
3,
2,
24011,
1,
-100,
-... |
Which venue has an against value larger than 21 and had Argentina as an opposing team. | CREATE TABLE table_name_91 (
venue VARCHAR,
against VARCHAR,
opposing_team VARCHAR
) | SELECT venue FROM table_name_91 WHERE against > 21 AND opposing_team = "argentina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
5669,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
581,
2490,
1401,
3430,
10720,
53,
834,
11650,
3274,
96,
9917,
77,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many tries took place on 06/07/1996? | CREATE TABLE table_name_16 (tries VARCHAR, date VARCHAR) | SELECT tries FROM table_name_16 WHERE date = "06/07/1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
9000,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
9000,
808,
286,
30,
13574,
87,
4560,
13523,
4314,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
833,
3274,
96,
5176,
87,
4560,
13523,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which player played on Team Hamilton? | CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR) | SELECT player FROM table_name_33 WHERE cfl_team = "hamilton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
20846,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
1959,
1944,
30,
2271,
13450,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
1483,
23,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the version that has a 20.0 mbit/s downstream rate? | CREATE TABLE table_name_81 (version VARCHAR, downstream_rate VARCHAR) | SELECT version FROM table_name_81 WHERE downstream_rate = "20.0 mbit/s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
8674,
584,
4280,
28027,
6,
26804,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
988,
24,
65,
3,
9,
204,
11739,
3,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
988,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
26804,
834,
2206,
3274,
96,
357,
11739,
3,
51,
2360,
87,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is diagnoses icd9 code and diagnoses short title of subject name gonzalo wasson? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT diagnoses.icd9_code, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Gonzalo Wasson" | [
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,
18730,
7,
5,
447,
26,
1298,
834,
4978,
6,
18730,
7,
5,
7,
14184,
834,
21869,
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,
... |
count the number of patients whose procedure icd9 code is 8968 and drug type is additive? | 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 procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "8968" AND prescriptions.drug_type = "ADDITIVE" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
how many more silver medals did russian win than denmark ? | CREATE TABLE table_203_653 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT (SELECT "silver" FROM table_203_653 WHERE "nation" = 'russia') - (SELECT "silver" FROM table_203_653 WHERE "nation" = 'denmark') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4122,
519,
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,
41,
23143,
14196,
96,
7,
173,
624,
121,
21680,
953,
834,
23330,
834,
4122,
519,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
26165,
31,
61,
3,
18,
41,
23143,
14196,
96,
7,
173,
624,
121,
21680,
953,
834,
2333... |
What is the Home team score for the Venue named Glenferrie Oval? | CREATE TABLE table_52415 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_52415 WHERE "Venue" = 'glenferrie oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
1808,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
755,
2266,
1808,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
3537,
29,
1010,
1753,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which opponent has a result of 2-0 l? | CREATE TABLE table_62050 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Competition" text
) | SELECT "Opponent" FROM table_62050 WHERE "Result" = '2-0 l' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26898,
1752,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
26898,
1752,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
19423,
3,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a bar chart on how many bookings does each booking status have? List the booking status code and the number of corresponding bookings, and rank by the y-axis in asc. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartments (
apt_id INTEGER,
... | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
24752,
53,
7,
41,
740,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
7,
14184,
834,
4350,
3,
28027,
599,
1808,
201,
740,
834,
1329,
40,
834,
4350,
584,
4280,
28027,
599,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
8547,
302,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
15970,
834,
13355,
53,
7,
350,
4630,
6880,
272,
476,
5038,
834,
8547,
302,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100... |
What is the highest elevation of an airport in the country of Iceland? | CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE ... | SELECT MAX(elevation) FROM airports WHERE country = 'Iceland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
3,
9,
8130,
381,
6,
564,
1499,
6,
3,
17221,
1499,
6,
3,
2617,
32,
1499,
6,
580,
6732,
1499,
6,
684,
1499,
6,
1676,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
15,
10912,
257,
61,
21680,
3761,
7,
549,
17444,
427,
684,
3274,
3,
31,
196,
7125,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE LOSING BONUS WITH 190 POINTS? | CREATE TABLE table_59349 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Losing bonus" FROM table_59349 WHERE "Points for" = '190' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
3647,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
4023,
121,
21680,
953,
834,
3390,
519,
3647,
549,
17444,
427,
96,
22512,
7,
21,
121,
3274,
3,
31,
11776,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the minimum production code written by jay sommers & dick chevillat and al schwartz | CREATE TABLE table_12226390_3 (
production_code INTEGER,
written_by VARCHAR
) | SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2884,
3891,
2394,
834,
519,
41,
999,
834,
4978,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2559,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20762,
834,
4978,
61,
21680,
953,
834,
2122,
2884,
3891,
2394,
834,
519,
549,
17444,
427,
1545,
834,
969,
3274,
96,
683,
9,
63,
9040,
7,
3,
184,
21269,
2556,
24887,
17,
11,
901,
20189,
25075,
121,
1... |
What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16? | CREATE TABLE table_name_23 (intercontinental_cup_1993 VARCHAR, supercopa_sudamericana_1993 VARCHAR) | SELECT intercontinental_cup_1993 FROM table_name_23 WHERE supercopa_sudamericana_1993 = "round of 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
3870,
27339,
138,
834,
4658,
834,
2294,
4271,
584,
4280,
28027,
6,
1355,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
2294,
4271,
584,
4280,
28027,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1413,
27339,
138,
834,
4658,
834,
2294,
4271,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1355,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
2294,
4271,
3274,
96,
7775,
13,
898,
121,
1,
-100,
-100,
-100,
-1... |
What is the final score of the game on April 9? | CREATE TABLE table_23248967_10 (score VARCHAR, date VARCHAR) | SELECT score FROM table_23248967_10 WHERE date = "April 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
3708,
834,
1714,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
804,
2604,
13,
8,
467,
30,
1186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2773,
2266,
3914,
3708,
834,
1714,
549,
17444,
427,
833,
3274,
96,
23323,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team with a result of 105-99? | CREATE TABLE table_name_32 (home_team VARCHAR, result VARCHAR) | SELECT home_team FROM table_name_32 WHERE result = "105-99" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
28,
3,
9,
741,
13,
3,
12869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
741,
3274,
96,
12869,
18,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which margin of defeats had points of 30? | CREATE TABLE table_94 (
"Season" real,
"Driver" text,
"Team" text,
"Engine" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Points" text,
"Margin of defeat" text
) | SELECT "Margin of defeat" FROM table_94 WHERE "Points" = '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
8931,
15,
7,
121,
490,
6,
96,
18455,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7286,
122,
77,
13,
9589,
121,
21680,
953,
834,
4240,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
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, return a line chart about the change of employee_id over hire_date , display in desc by the x-axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.