NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the Score when the Losing Semifinalists were Toluca Unam? | CREATE TABLE table_name_88 (
score VARCHAR,
losing_semifinalists VARCHAR
) | SELECT score FROM table_name_88 WHERE losing_semifinalists = "toluca unam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2604,
584,
4280,
28027,
6,
5489,
834,
7,
15,
51,
23,
28077,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
17763,
116,
8,
3144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
5489,
834,
7,
15,
51,
23,
28077,
3274,
96,
235,
11525,
9,
73,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many reg GP for rick vaive in round 1? | CREATE TABLE table_name_40 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR) | SELECT SUM(reg_gp) FROM table_name_40 WHERE player = "rick vaive" AND rd__number > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
60,
122,
834,
122,
102,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
3,
52,
26,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
60,
122,
834,
122,
102,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1959,
3274,
96,
5206,
409,
757,
121,
3430,
3,
52,
26,
834,
834,
5525,
1152,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100... |
What is the average Year, when Competition is Oceania Youth Championships? | CREATE TABLE table_name_89 (
year INTEGER,
competition VARCHAR
) | SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
215,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2929,
6,
116,
15571,
19,
7087,
23,
9,
9452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
2259,
3274,
96,
32,
565,
11219,
4192,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was held the ceremony for the 12th Pride of Britain Awards? | CREATE TABLE table_13943239_1 (
location VARCHAR,
episode VARCHAR
) | SELECT location FROM table_13943239_1 WHERE episode = "12th Pride of Britain Awards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4240,
2668,
3288,
834,
536,
41,
1128,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
1213,
8,
7252,
21,
8,
586,
189,
242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2368,
4240,
2668,
3288,
834,
536,
549,
17444,
427,
5640,
3274,
96,
2122,
189,
24252,
13,
7190,
6580,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the game on February 21? | CREATE TABLE table_name_34 (game VARCHAR, date VARCHAR) | SELECT game FROM table_name_34 WHERE date = "february 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
7261,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
467,
30,
2083,
1401,
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,
467,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the player with 41 legs lost? | CREATE TABLE table_18621456_22 (
player VARCHAR,
legs_lost VARCHAR
) | SELECT player FROM table_18621456_22 WHERE legs_lost = 41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
27357,
4834,
834,
2884,
41,
1959,
584,
4280,
28027,
6,
6217,
834,
2298,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
8798,
6217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
25398,
27357,
4834,
834,
2884,
549,
17444,
427,
6217,
834,
2298,
17,
3274,
8798,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many tournaments were at sime darby lpga malaysia? | CREATE TABLE table_24523 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT COUNT("No.") FROM table_24523 WHERE "Tournament" = 'Sime Darby LPGA Malaysia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
2773,
41,
96,
4168,
535,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
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,
4168,
5,
8512,
21680,
953,
834,
357,
2128,
2773,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
134,
5445,
1920,
969,
301,
24127,
10155,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the status of the county with per capita market income of $24,326? | CREATE TABLE table_73447 (
"County" text,
"Population" real,
"Unemployment Rate" text,
"Market Income Per Capita" text,
"Poverty Rate" text,
"Status" text
) | SELECT "Status" FROM table_73447 WHERE "Market Income Per Capita" = '$24,326' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
4177,
41,
96,
10628,
63,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
5110,
29056,
13002,
121,
1499,
6,
96,
22572,
20110,
1915,
4000,
155,
9,
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,
17,
144,
302,
121,
21680,
953,
834,
4552,
591,
4177,
549,
17444,
427,
96,
22572,
20110,
1915,
4000,
155,
9,
121,
3274,
3,
31,
3229,
2266,
6,
519,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
was there a result of 1st place after the year 2006 ? | CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
) | SELECT (SELECT COUNT(*) FROM table_203_300 WHERE "result" = 1 AND "year" > 2006) > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5426,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
60,
7,
83,
17,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
5426,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
209,
3430,
96,
1201,
121,
2490,
3581,
61,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-1... |
What amount had all played that lost were 8? | CREATE TABLE table_18831 (
"Club" text,
"Played" text,
"Won" 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 "Played" FROM table_18831 WHERE "Lost" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
3341,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
15,
26,
121,
21680,
953,
834,
25794,
3341,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what venue did the fielding team Sri Lanka play? | CREATE TABLE table_name_86 (venue VARCHAR, fielding_team VARCHAR) | SELECT venue FROM table_name_86 WHERE fielding_team = "sri lanka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
15098,
584,
4280,
28027,
6,
1057,
53,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5669,
410,
8,
1057,
53,
372,
8642,
13877,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1057,
53,
834,
11650,
3274,
96,
7,
52,
23,
3,
1618,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many stations are from canton ? | CREATE TABLE table_204_793 (
id number,
"call-sign" text,
"location" text,
"rf" number,
"psip" number,
"programming" text
) | SELECT COUNT(*) FROM table_204_793 WHERE "location" = 'canton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4440,
519,
41,
3,
23,
26,
381,
6,
96,
16482,
18,
6732,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
52,
89,
121,
381,
6,
96,
102,
7,
23,
102,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
4440,
519,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
658,
6992,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frequency that the magazine issues that was first published on april 27, 2010? | CREATE TABLE table_47315 (
"Title" text,
"Parent magazine" text,
"Magazine type" text,
"Frequency" text,
"First published" text
) | SELECT "Frequency" FROM table_47315 WHERE "First published" = 'april 27, 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
1808,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
13212,
295,
3835,
121,
1499,
6,
96,
24773,
15,
686,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
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,
371,
60,
835,
11298,
121,
21680,
953,
834,
4177,
519,
1808,
549,
17444,
427,
96,
25171,
1790,
121,
3274,
3,
31,
9,
2246,
40,
14141,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients who were admitted before 2187 via physician referral/normal delivery? | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.admityear < "2187" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
What is the highest pick number for a pick drafted by the denver broncos? | CREATE TABLE table_name_52 (pick INTEGER, team VARCHAR) | SELECT MAX(pick) FROM table_name_52 WHERE team = "denver broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
17967,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1432,
381,
21,
3,
9,
1432,
3,
23505,
57,
8,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
372,
3274,
96,
537,
624,
3,
13711,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which suffix has the prefix of isothiocyanato- (-ncs)? | CREATE TABLE table_56825 (
"Chemical class" text,
"Group" text,
"Formula" text,
"Prefix" text,
"Suffix" text
) | SELECT "Suffix" FROM table_56825 WHERE "Prefix" = 'isothiocyanato- (-ncs)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3651,
1828,
41,
96,
254,
6015,
1950,
853,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
3809,
4115,
9,
121,
1499,
6,
96,
10572,
12304,
121,
1499,
6,
96,
134,
2999,
2407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2999,
2407,
121,
21680,
953,
834,
755,
3651,
1828,
549,
17444,
427,
96,
10572,
12304,
121,
3274,
3,
31,
159,
32,
7436,
32,
27386,
9,
235,
18,
41,
18,
29,
75,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
what procedure was first taken to patient 017-49375? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-49375')) ORDER BY treatment.treatmenttime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
1058,
5,
26889,
4350,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
Which athlete had a score of 236.023? | CREATE TABLE table_name_55 (
athlete VARCHAR,
score VARCHAR
) | SELECT athlete FROM table_name_55 WHERE score = "236.023" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
17893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17893,
141,
3,
9,
2604,
13,
1902,
22642,
2773,
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,
17893,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2604,
3274,
96,
2773,
22642,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the stadium name that has 144 as the runs? | CREATE TABLE table_name_86 (
stadium VARCHAR,
runs VARCHAR
) | SELECT stadium FROM table_name_86 WHERE runs = "144" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
14939,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14939,
564,
24,
65,
3,
20885,
38,
8,
3154,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3154,
3274,
96,
20885,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For all employees who have the letters D or S in their first name, give me the trend about salary over hire_date , and sort x axis in ascending order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
134,
1454,
31,
46... |
what's incumbent with district being tennessee 5 | CREATE TABLE table_18410 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_18410 WHERE "District" = 'Tennessee 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
1714,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
75,
5937,
295,
121,
21680,
953,
834,
25987,
1714,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
382,
35,
655,
15,
15,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Team, when High Rebounds is David Lee (15)? | CREATE TABLE table_8137 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_8137 WHERE "High rebounds" = 'david lee (15)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
4118,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
4959,
4118,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
26,
9,
6961,
90,
15,
17251,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which is the only track under two minutes ? | CREATE TABLE table_204_184 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"length" text
) | SELECT "title" FROM table_204_184 WHERE "length" < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25987,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
30844,
26,
3886,
599,
7,
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,
21869,
121,
21680,
953,
834,
26363,
834,
25987,
549,
17444,
427,
96,
19457,
121,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Ratio has a Ratio as % of 78%? | CREATE TABLE table_40438 (
"Band" text,
"Value" text,
"Ratio" text,
"Ratio as %" text,
"Average" text
) | SELECT "Ratio" FROM table_40438 WHERE "Ratio as %" = '78%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
3747,
41,
96,
279,
232,
121,
1499,
6,
96,
18392,
76,
15,
121,
1499,
6,
96,
448,
144,
23,
32,
121,
1499,
6,
96,
448,
144,
23,
32,
38,
3,
1454,
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,
448,
144,
23,
32,
121,
21680,
953,
834,
25285,
3747,
549,
17444,
427,
96,
448,
144,
23,
32,
38,
3,
1454,
121,
3274,
3,
31,
3940,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of players when starter is no and touchdowns is 1 for right halfback | CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR) | SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3710,
1828,
4508,
834,
591,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
11933,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
2534,
3710,
1828,
4508,
834,
591,
549,
17444,
427,
11933,
3274,
96,
4168,
121,
3430,
19396,
7,
3274,
209,
3430,
1102,
3274,
96,
448,
2632,
985,
1549,
121,
1,
-100,
-100,
... |
Which gender has a Name of rangitoto school? | CREATE TABLE table_name_6 (
gender VARCHAR,
name VARCHAR
) | SELECT gender FROM table_name_6 WHERE name = "rangitoto school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7285,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7285,
65,
3,
9,
5570,
13,
3,
6287,
23,
235,
235,
496,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7285,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
564,
3274,
96,
6287,
23,
235,
235,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the To par of the T5 Place Player with a Score of 71-68-76=215? | CREATE TABLE table_name_33 (to_par VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_33 WHERE place = "t5" AND score = 71 - 68 - 76 = 215 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
235,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
286,
3274,
96,
17,
17395,
3430,
2604,
3274,
3,
4450,
3,
18,
3,
3651,
3,
18,
3,
3959,
3274,
204,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the outgoing manager of Charleroi? | CREATE TABLE table_27374004_3 (
outgoing_manager VARCHAR,
team VARCHAR
) | SELECT outgoing_manager FROM table_27374004_3 WHERE team = "Charleroi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4118,
5548,
591,
834,
519,
41,
91,
9545,
834,
24185,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
91,
9545,
2743,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
91,
9545,
834,
24185,
21680,
953,
834,
2555,
4118,
5548,
591,
834,
519,
549,
17444,
427,
372,
3274,
96,
18947,
1171,
32,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard? | CREATE TABLE table_27369069_4 (
university VARCHAR,
soccer_stadium VARCHAR
) | SELECT university FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3420,
2394,
3951,
834,
591,
41,
3819,
584,
4280,
28027,
6,
10749,
834,
2427,
12925,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3819,
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,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3819,
21680,
953,
834,
2555,
3420,
2394,
3951,
834,
591,
549,
17444,
427,
10749,
834,
2427,
12925,
3274,
96,
12829,
77,
15493,
13,
16926,
15,
23680,
3,
19298,
18,
24372,
23854,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249? | CREATE TABLE table_50837 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
) | SELECT "Attempts" FROM table_50837 WHERE "Team" = 'iowa' AND "Yards" = '2,249' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
927,
4118,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
31108,
7,
121,
1499,
6,
96,
5890,
4788,
10872,
121,
1499,
6,
96,
5890,
4788,
1575,
3,
1454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31108,
7,
121,
21680,
953,
834,
1752,
927,
4118,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
23,
2381,
9,
31,
3430,
96,
476,
986,
7,
121,
3274,
3,
31,
4482,
357,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
who is the player for the position defence and the college/junior/club team is ottawa 67's (ohl)? | CREATE TABLE table_2679061_1 (player VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) | SELECT player FROM table_2679061_1 WHERE position = "Defence" AND college_junior_club_team = "Ottawa 67's (OHL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
2394,
4241,
834,
536,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
357,
3708,
2394,
4241,
834,
536,
549,
17444,
427,
1102,
3274,
96,
16196,
1433,
121,
3430,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
667,
17,
17,
7396,
3,
3708,
31,
7,
41,
9... |
what is maximum age of patients whose admission type is elective and days of hospital stay is 17? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "17" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2517,
121,
1,
-100,
-100,
-1... |
Which 2nd Party has a 1st Member of william wither bramston beach? | CREATE TABLE table_14764 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Party" FROM table_14764 WHERE "1st Member" = 'william wither bramston beach' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
4389,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
727,
3450,
121,
21680,
953,
834,
24719,
4389,
549,
17444,
427,
96,
536,
7,
17,
8541,
121,
3274,
3,
31,
8894,
23,
265,
28,
49,
3858,
51,
4411,
2608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of game 3 with Boston as the road team? | CREATE TABLE table_8233 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Date" FROM table_8233 WHERE "Road Team" = 'boston' AND "Game" = 'game 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
4201,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4613,
4201,
549,
17444,
427,
96,
448,
32,
9,
26,
2271,
121,
3274,
3,
31,
115,
32,
4411,
31,
3430,
96,
23055,
121,
3274,
3,
31,
7261,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the engine for year 2012-? | CREATE TABLE table_57863 (
"Years" text,
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Notes" text
) | SELECT "Engine" FROM table_57863 WHERE "Years" = '2012-' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3840,
519,
41,
96,
476,
2741,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
23664,
11706,
297,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
382,
127,
835,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
3436,
3840,
519,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
12172,
18,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result of the performance of the song by Caetano Veloso? | CREATE TABLE table_27616663_1 (result VARCHAR, original_artist VARCHAR) | SELECT result FROM table_27616663_1 WHERE original_artist = "Caetano Veloso" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
3539,
3891,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2555,
4241,
3539,
3891,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
254,
9,
15,
17,
152,
32,
3901,
2298,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the percentage of votes with number of deputies being 112 | CREATE TABLE table_13746866_2 (percentage_of_votes VARCHAR, number_of_deputies VARCHAR) | SELECT percentage_of_votes FROM table_13746866_2 WHERE number_of_deputies = 112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
4448,
26750,
834,
357,
41,
883,
3728,
545,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
6,
381,
834,
858,
834,
221,
2562,
725,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
5294,
834,
858,
834,
1621,
1422,
21680,
953,
834,
24636,
4448,
26750,
834,
357,
549,
17444,
427,
381,
834,
858,
834,
221,
2562,
725,
3274,
850,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the date for l 92 103 (ot) | CREATE TABLE table_17322817_6 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_17322817_6 WHERE score = "L 92–103 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
2577,
2517,
834,
948,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3,
40,
3,
4508,
3,
17864,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2517,
2668,
2577,
2517,
834,
948,
549,
17444,
427,
2604,
3274,
96,
434,
3,
4508,
104,
17864,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which artist had a 4x platinum? | CREATE TABLE table_65980 (
"Rank" real,
"Artist" text,
"Album" text,
"Peak position" real,
"Sales" real,
"Certification" text
) | SELECT "Artist" FROM table_65980 WHERE "Certification" = '4x platinum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3390,
2079,
41,
96,
22557,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
345,
15,
1639,
1102,
121,
490,
6,
96,
134,
4529,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7754,
343,
121,
21680,
953,
834,
948,
3390,
2079,
549,
17444,
427,
96,
254,
49,
17,
2420,
121,
3274,
3,
31,
591,
226,
26325,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least ends lost for jo lle belley (glenmore) | CREATE TABLE table_31202 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
) | SELECT MIN("Ends Lost") FROM table_31202 WHERE "Skip (Club)" = 'Joëlle Belley (Glenmore)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
19818,
41,
96,
134,
2168,
102,
41,
254,
11158,
61,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
8532,
26,
7,
19576,
8512,
21680,
953,
834,
3341,
19818,
549,
17444,
427,
96,
134,
2168,
102,
41,
254,
11158,
61,
121,
3274,
3,
31,
683,
32,
2,
195,
15,
17658,
63,
41,
517,
40,
35,
3706,
61,
... |
What is the Per capita income associated with a Median household income of $55,800? | CREATE TABLE table_36923 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "Per capita income" FROM table_36923 WHERE "Median household income" = '$55,800' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3951,
2773,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12988,
23219,
2055,
121,
21680,
953,
834,
519,
3951,
2773,
549,
17444,
427,
96,
24607,
29,
5699,
2055,
121,
3274,
3,
31,
3229,
3769,
6,
6192,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a bar chart for what are the name and population of each county?, and I want to sort in asc by the Y. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
) | SELECT County_name, Population FROM county ORDER BY Population | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
29659,
21680,
5435,
4674,
11300,
272,
476,
29659,
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,
-1... |
what was the last game released ? | CREATE TABLE table_204_236 (
id number,
"title" text,
"release date" text,
"developer(s)" text,
"publisher(s)" text,
"genre(s)" text
) | SELECT "title" FROM table_204_236 ORDER BY "release date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3420,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
29916,
49,
599,
7,
61,
121,
1499,
6,
96,
29337,
49,
599,
7,
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,
21869,
121,
21680,
953,
834,
26363,
834,
357,
3420,
4674,
11300,
272,
476,
96,
21019,
833,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose religion is protestant quaker and lab test name is thyroid stimulating hormone? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
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.religion = "PROTESTANT QUAKER" AND lab.label = "Thyroid Stimulating Hormone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show all student IDs with more than total 10 hours per week on all sports played. | CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
) | SELECT stuid FROM sportsinfo GROUP BY stuid HAVING SUM(hoursperweek) > 10 | [
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,
1236,
41,
21341,
23,
26,
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,
21341,
23,
26,
21680,
2100,
9583,
350,
4630,
6880,
272,
476,
21341,
23,
26,
454,
6968,
2365,
180,
6122,
599,
5842,
4339,
8041,
61,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Home, when Score is 103-93? | CREATE TABLE table_name_95 (
home VARCHAR,
score VARCHAR
) | SELECT home FROM table_name_95 WHERE score = "103-93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
234,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1210,
6,
116,
17763,
19,
3,
17864,
18,
4271,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2604,
3274,
96,
17864,
18,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the game name that has most number of hours played. | CREATE TABLE Plays_games (gameid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR) | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
7261,
7,
41,
7261,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3953,
834,
7261,
7,
41,
7261,
23,
26,
584,
4280,
28027,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
4350,
21680,
2911,
7,
834,
7261,
7,
6157,
332,
536,
3,
15355,
3162,
3953,
834,
7261,
7,
6157,
332,
357,
9191,
332,
5411,
7261,
23,
26,
3274,
332,
4416,
7261,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
... |
What is the sum pick # of the player from round 4? | CREATE TABLE table_name_70 (pick__number INTEGER, round VARCHAR) | SELECT SUM(pick__number) FROM table_name_70 WHERE round = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
1432,
1713,
13,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1751,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which tournament had a 2010 result of A? | CREATE TABLE table_name_87 (tournament VARCHAR) | SELECT tournament FROM table_name_87 WHERE 2010 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
141,
3,
9,
2735,
741,
13,
71,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2735,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score of the game with Falkirk as the runner-up? | CREATE TABLE table_name_48 (
score VARCHAR,
runner_up VARCHAR
) | SELECT score FROM table_name_48 WHERE runner_up = "falkirk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
28,
10747,
157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
89,
138,
157,
12546,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score when the date is December 14, 1985? | CREATE TABLE table_name_98 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_98 WHERE date = "december 14, 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
116,
8,
833,
19,
1882,
11363,
13200,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
11363,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the destination of the route kulitthurai,neyyattinkara? | CREATE TABLE table_29770377_1 (destination VARCHAR, route_via VARCHAR) | SELECT destination FROM table_29770377_1 WHERE route_via = "Kulitthurai,Neyyattinkara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
41,
13557,
257,
584,
4280,
28027,
6,
2981,
834,
5907,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3954,
13,
8,
2981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3954,
21680,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
549,
17444,
427,
2981,
834,
5907,
3274,
96,
439,
83,
155,
189,
2414,
23,
6,
567,
15,
63,
63,
15817,
29,
4031,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the surface for the opponents in the final with fitzgerald vilas? | CREATE TABLE table_22597626_17 (surface VARCHAR, opponents_in_the_final VARCHAR) | SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3390,
3959,
2688,
834,
2517,
41,
26899,
584,
4280,
28027,
6,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
2884,
3390,
3959,
2688,
834,
2517,
549,
17444,
427,
16383,
834,
77,
834,
532,
834,
12406,
3274,
96,
371,
5615,
1304,
138,
26,
21340,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the latest logon date of the students whose family name is 'Jaskolski' or 'Langosh'. | CREATE TABLE student_course_enrolment (
registration_id number,
student_id number,
course_id number,
date_of_enrolment time,
date_of_completion time
)
CREATE TABLE courses (
course_id number,
author_id number,
subject_id number,
course_name text,
course_description text
)
CREATE TABLE student_tests_taken (
registration_id number,
date_test_taken time,
test_result text
)
CREATE TABLE students (
student_id number,
date_of_registration time,
date_of_latest_logon time,
login_name text,
password text,
personal_name text,
middle_name text,
family_name text
)
CREATE TABLE subjects (
subject_id number,
subject_name text
)
CREATE TABLE course_authors_and_tutors (
author_id number,
author_tutor_atb text,
login_name text,
password text,
personal_name text,
middle_name text,
family_name text,
gender_mf text,
address_line_1 text
) | SELECT date_of_latest_logon FROM students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
35,
3491,
297,
41,
3816,
834,
23,
26,
381,
6,
1236,
834,
23,
26,
381,
6,
503,
834,
23,
26,
381,
6,
833,
834,
858,
834,
35,
3491,
297,
97,
6,
833,
834,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
21680,
481,
549,
17444,
427,
384,
834,
4350,
3274,
96,
683,
9,
7,
11292,
4009,
121,
4674,
384,
834,
4350,
3274,
96,
434,
17934,
7,
107,
121,
1,
-100,
-100,
-100,
-100... |
On the Date of March 13, who was the Home team? | CREATE TABLE table_77781 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Home" FROM table_77781 WHERE "Date" = 'march 13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
4959,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
19040,
121,
21680,
953,
834,
26225,
4959,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
1179,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the IHSAA class for Muncie Cowan? | CREATE TABLE table_name_27 (ihsaa_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_27 WHERE school = "muncie cowan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
4950,
5498,
853,
21,
9810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23,
107,
7,
9,
9,
834,
4057,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
496,
3274,
96,
51,
15254,
15,
9321,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the least clock rate mhz | CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER) | SELECT MIN(clock_rate__mhz_) FROM table_142573_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1828,
4552,
834,
536,
41,
17407,
834,
2206,
834,
834,
51,
107,
172,
834,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
6702,
1080,
3,
51,
107,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17407,
834,
2206,
834,
834,
51,
107,
172,
834,
61,
21680,
953,
834,
2534,
1828,
4552,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please use a bar chart to show the minimum price of the rooms in a different decor, and display by the y-axis from high to low please. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
) | SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY MIN(basePrice) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4469,
6,
3,
17684,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
4469,
4674,
11300,
272,
476,
3,
17684,
599,
10925,
345,
4920,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team is Keith Mccambridge on? | CREATE TABLE table_1013129_8 (
college_junior_club_team VARCHAR,
player VARCHAR
) | SELECT college_junior_club_team FROM table_1013129_8 WHERE player = "Keith McCambridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2368,
22174,
834,
927,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
1714,
2368,
22174,
834,
927,
549,
17444,
427,
1959,
3274,
96,
439,
15,
23,
189,
7040,
265,
9818,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which airing had the least number of viewers ? | CREATE TABLE table_204_996 (
id number,
"no." text,
"air date" text,
"network" text,
"household\nrating" number,
"viewers\n(millions)" text
) | SELECT "air date" FROM table_204_996 ORDER BY "viewers\n(millions)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3264,
948,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
1499,
6,
96,
2256,
833,
121,
1499,
6,
96,
1582,
1981,
121,
1499,
6,
96,
1840,
6134,
2,
29,
52,
1014,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2256,
833,
121,
21680,
953,
834,
26363,
834,
3264,
948,
4674,
11300,
272,
476,
96,
4576,
277,
2,
29,
599,
17030,
7,
61,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82? | CREATE TABLE table_66460 (
"District" text,
"s Barangay" real,
"Population (2010 census)" real,
"Area ( has .)" real,
"Pop. density (per km2)" real
) | SELECT MIN("Pop. density (per km2)") FROM table_66460 WHERE "District" = 'santa cruz' AND "s Barangay" > '82' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
25991,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
7,
1386,
1468,
9,
63,
121,
490,
6,
96,
27773,
7830,
41,
14926,
23087,
61,
121,
490,
6,
96,
188,
864,
41,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
27773,
5,
11048,
41,
883,
2280,
7318,
8512,
21680,
953,
834,
3539,
25991,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
7,
288,
9,
8396,
172,
31,
3430,
96,
7,
1386,
1468,
9,
63,
121,... |
How many people were at the game where the home team was South Melbourne? | CREATE TABLE table_51215 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_51215 WHERE "Home team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
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,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
121,
21680,
953,
834,
24163,
1808,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where were the 2009 and 2011 Grand Slam Tournaments? | CREATE TABLE table_name_86 (Id VARCHAR) | SELECT 2011 FROM table_name_86 WHERE 2009 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
130,
8,
2464,
11,
2722,
2698,
29291,
20502,
7,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2464,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the fleet number for the model with Serial number 68056? | CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR) | SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
89,
109,
15,
17,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
10501,
834,
5525,
1152,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9111,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
10501,
834,
5525,
1152,
7,
3274,
96,
948,
2079,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many journalists are there? | CREATE TABLE journalist (Id VARCHAR) | SELECT COUNT(*) FROM journalist | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16085,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
9994,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for milan and the iata of lin what is the airport? | CREATE TABLE table_name_95 (
airport VARCHAR,
city VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_95 WHERE city = "milan" AND iata = "lin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
3761,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
1337,
1618,
11,
8,
3,
17221,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
690,
3274,
96,
26759,
29,
121,
3430,
3,
17221,
3274,
96,
40,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Player has Years for Grizzlies of 2002-2003? | CREATE TABLE table_77019 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "Player" FROM table_77019 WHERE "Years for Grizzlies" = '2002-2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
2294,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
3,
13313,
5271,
4664,
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,
15800,
49,
121,
21680,
953,
834,
26920,
2294,
549,
17444,
427,
96,
476,
2741,
7,
21,
3,
13313,
5271,
4664,
121,
3274,
3,
31,
24898,
18,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the golfer that has the score of 73-65=138? | CREATE TABLE table_76232 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_76232 WHERE "Score" = '73-65=138' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
23188,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3959,
23188,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4552,
18,
4122,
2423,
22744,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the First Baseman when the Shortstop was zoilo versalles? | CREATE TABLE table_name_53 (first_baseman VARCHAR, shortstop VARCHAR) | SELECT first_baseman FROM table_name_53 WHERE shortstop = "zoilo versalles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
14672,
834,
10925,
348,
584,
4280,
28027,
6,
710,
7618,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1485,
8430,
348,
116,
8,
7110,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
166,
834,
10925,
348,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
710,
7618,
3274,
96,
172,
32,
173,
32,
2676,
13701,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which artist has 13 points? | CREATE TABLE table_name_42 (
artist VARCHAR,
points VARCHAR
) | SELECT artist FROM table_name_42 WHERE points = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2377,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2377,
65,
1179,
979,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2377,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
979,
3274,
1179,
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... |
Which customer made the largest amount of claim in a single claim? Return the customer details. | CREATE TABLE claims_documents (
claim_id number,
document_type_code text,
created_by_staff_id number,
created_date number
)
CREATE TABLE policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
claim_status_name text,
claim_status_description text
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE claims_processing (
claim_processing_id number,
claim_id number,
claim_outcome_code text,
claim_stage_id number,
staff_id number
)
CREATE TABLE staff (
staff_id number,
staff_details text
)
CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time,
date_of_settlement time,
amount_claimed number,
amount_piad number
) | SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT MAX(amount_claimed) FROM claim_headers) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3213,
834,
28244,
7,
41,
1988,
834,
23,
26,
381,
6,
1708,
834,
6137,
834,
4978,
1499,
6,
990,
834,
969,
834,
26416,
834,
23,
26,
381,
6,
990,
834,
5522,
381,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
25697,
49,
834,
221,
5756,
7,
21680,
1988,
834,
3313,
277,
6157,
3,
17,
536,
3,
15355,
3162,
3101,
6157,
3,
17,
357,
9191,
3,
17,
5411,
3233,
17686,
834,
23,
26,
3274,
3,
17,
4416,
3233,
17686,
834,... |
Which game site hosted a match on April 10, 2004? | CREATE TABLE table_name_87 (game_site VARCHAR, date VARCHAR) | SELECT game_site FROM table_name_87 WHERE date = "april 10, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
353,
6523,
3,
9,
1588,
30,
1186,
10372,
4406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
10372,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where did the west indies batting team play at? | CREATE TABLE table_name_23 (venue VARCHAR, batting_team VARCHAR) | SELECT venue FROM table_name_23 WHERE batting_team = "west indies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
15098,
584,
4280,
28027,
6,
3,
27759,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
4653,
16,
7719,
3,
27759,
372,
577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
3,
27759,
834,
11650,
3274,
96,
12425,
16,
7719,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the higest attendance on November 9, 1958? | CREATE TABLE table_name_4 (
attendance INTEGER,
date VARCHAR
) | SELECT MAX(attendance) FROM table_name_4 WHERE date = "november 9, 1958" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7102,
122,
222,
11364,
30,
1671,
9902,
22306,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
9902,
22306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the number of storms where fog is lower than 74, and sunshine is 2 668? | CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR) | SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = "2 668" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
21556,
7,
834,
834,
1135,
7,
834,
1201,
834,
584,
4280,
28027,
6,
20735,
834,
834,
1135,
7,
834,
1201,
834,
584,
4280,
28027,
6,
18275,
834,
834,
18745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21556,
7,
834,
834,
1135,
7,
834,
1201,
834,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
20735,
834,
834,
1135,
7,
834,
1201,
834,
3,
2,
3,
4581,
3430,
18275,
834,
834,
18745,
834,
120... |
Who loss the game when the record was 3-10? | CREATE TABLE table_name_59 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_59 WHERE record = "3-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
2298,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1453,
8,
467,
116,
8,
1368,
47,
220,
4536,
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,
1453,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1368,
3274,
96,
519,
4536,
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 driver whose car was constructed by Renault and whose Q1 pos is greater than 2? | CREATE TABLE table_12088 (
"Driver" text,
"Constructor" text,
"Q1 order" real,
"Q1 time" text,
"Q1 pos" real,
"Q1+Q2 time" text
) | SELECT "Driver" FROM table_12088 WHERE "Constructor" = 'renault' AND "Q1 pos" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4060,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
2247,
536,
455,
121,
490,
6,
96,
2247,
536,
97,
121,
1499,
6,
96,
2247,
536,
3,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
121,
21680,
953,
834,
15518,
4060,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
1536,
10335,
31,
3430,
96,
2247,
536,
3,
2748,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the height of representative #1? | CREATE TABLE table_30270 (
"Represent" real,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Sponsor" text
) | SELECT "Height" FROM table_30270 WHERE "Represent" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
17485,
41,
96,
1649,
12640,
121,
490,
6,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
121,
1499,
6,
96,
19040,
3540,
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,
3845,
2632,
121,
21680,
953,
834,
1458,
17485,
549,
17444,
427,
96,
1649,
12640,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the average of population from each status, list by the the average of population in asc. | CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE farm_competition (
Competition_ID int,
Year int,
Theme text,
Host_city_ID int,
Hosts text
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
) | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7621,
41,
15571,
834,
4309,
16,
17,
6,
4990,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
834,
287,
4995... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19318,
6,
71,
17217,
599,
27773,
7830,
61,
21680,
690,
350,
4630,
6880,
272,
476,
19318,
4674,
11300,
272,
476,
71,
17217,
599,
27773,
7830,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the average age of drivers from the same home city using a bar graph, sort total number from low to high order. | CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
) | SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY AVG(Age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
1121,
834,
4309,
16,
17,
6,
10546,
834,
4309,
16,
17,
6,
13825,
834,
12492,
53,
16,
17,
6,
156,
834,
1329,
40,
834,
715,
3,
12840,
40,
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,
1210,
834,
6726,
6,
71,
17217,
599,
188,
397,
61,
21680,
2535,
350,
4630,
6880,
272,
476,
1210,
834,
6726,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is SS Player Rich McKinney's Team? | CREATE TABLE table_name_19 (team VARCHAR, position VARCHAR, player VARCHAR) | SELECT team FROM table_name_19 WHERE position = "ss" AND player = "rich mckinney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
11650,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
4256,
12387,
10825,
3038,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1102,
3274,
96,
7,
7,
121,
3430,
1959,
3274,
96,
3723,
3,
51,
2406,
77,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the population of the country of McDowell? | CREATE TABLE table_22815568_7 (population VARCHAR, county VARCHAR) | SELECT population FROM table_22815568_7 WHERE county = "McDowell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
940,
41,
9791,
7830,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
13,
8,
684,
13,
3038,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
940,
549,
17444,
427,
5435,
3274,
96,
329,
75,
4135,
2091,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is maximum age of patients whose marital status is widowed and days of hospital stay is 23? | 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,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.days_stay = "23" | [
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,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2773,
121,
1,
-100,
... |
What time was the race for the country of france? | CREATE TABLE table_name_37 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_37 WHERE country = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
715,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
97,
47,
8,
1964,
21,
8,
684,
13,
2515,
663,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
684,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result for City of the Sun? | CREATE TABLE table_24737 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Slovak title" text,
"Director" text,
"Result" text
) | SELECT "Result" FROM table_24737 WHERE "Film title used in nomination" = 'City of the Sun' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27931,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
134,
5850,
1639,
2233,
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,
20119,
121,
21680,
953,
834,
2266,
27931,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
254,
485,
13,
8,
3068,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Give the number of each course name with at least five enrollments Return a bar chart, and display by the names in asc. | CREATE TABLE Minor_in (
StuID INTEGER,
DNO INTEGER
)
CREATE TABLE Gradeconversion (
lettergrade VARCHAR(2),
gradepoint FLOAT
)
CREATE TABLE Member_of (
FacID INTEGER,
DNO INTEGER,
Appt_Type VARCHAR(15)
)
CREATE TABLE Course (
CID VARCHAR(7),
CName VARCHAR(40),
Credits INTEGER,
Instructor INTEGER,
Days VARCHAR(5),
Hours VARCHAR(11),
DNO INTEGER
)
CREATE TABLE Enrolled_in (
StuID INTEGER,
CID VARCHAR(7),
Grade VARCHAR(2)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Department (
DNO INTEGER,
Division VARCHAR(2),
DName VARCHAR(25),
Room VARCHAR(5),
Building VARCHAR(13),
DPhone INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
) | SELECT T1.CName, COUNT(T1.CName) FROM Course AS T1 JOIN Enrolled_in AS T2 ON T1.CID = T2.CID GROUP BY T1.CName, T2.CID HAVING COUNT(*) >= 5 ORDER BY T1.CName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
20650,
834,
77,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
309,
7400,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
13027,
1018,
8674,
41,
2068,
6801,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
254,
23954,
6,
2847,
17161,
599,
382,
5411,
254,
23954,
61,
21680,
8670,
6157,
332,
536,
3,
15355,
3162,
695,
10671,
834,
77,
6157,
332,
357,
9191,
332,
5411,
254,
4309,
3274,
332,
4416,
254,
4309,
350,
4... |
For events that have more than one participant, count the event details for a bar chart, and list in ascending by the bars please. | CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
) | SELECT Event_Details, COUNT(Event_Details) FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY Event_Details ORDER BY Event_Details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1799,
41,
1387,
834,
4309,
3,
21342,
17966,
6,
1387,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11137,
41,
8042,
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,
8042,
834,
2962,
5756,
7,
6,
2847,
17161,
599,
427,
2169,
834,
2962,
5756,
7,
61,
21680,
11137,
6157,
332,
536,
3,
15355,
3162,
19204,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
427,
2169,
834,
4... |
Find the total budgets of the Marketing or Finance department. | CREATE TABLE department (budget INTEGER, dept_name VARCHAR) | SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
11073,
2782,
3,
21342,
17966,
6,
20,
102,
17,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
792,
1487,
7,
13,
8,
4329,
42,
7679,
3066,
5,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
11073,
2782,
61,
21680,
3066,
549,
17444,
427,
20,
102,
17,
834,
4350,
3274,
3,
31,
22572,
53,
31,
4674,
20,
102,
17,
834,
4350,
3274,
3,
31,
371,
77,
663,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What stage did team Carrera Jeans-Tassoni have when Mario Cipollini won and Claudio Chiappucci had the points? | CREATE TABLE table_name_78 (stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR, winner VARCHAR) | SELECT stage FROM table_name_78 WHERE trofeo_fast_team = "carrera jeans-tassoni" AND winner = "mario cipollini" AND points_classification = "claudio chiappucci" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
10705,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
10968,
89,
15,
32,
834,
11584,
834,
11650,
584,
4280,
28027,
6,
4668,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1726,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
10968,
89,
15,
32,
834,
11584,
834,
11650,
3274,
96,
1720,
52,
1498,
14118,
18,
17,
9,
7,
739,
23,
121,
3430,
4668,
3274,
96,
17289,
32,
3,
3389,
32,
40,
... |
Which year had J.R. Reid as a player? | CREATE TABLE table_name_62 (year VARCHAR, player VARCHAR) | SELECT year FROM table_name_62 WHERE player = "j.r. reid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1201,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
141,
446,
5,
448,
5,
25219,
38,
3,
9,
1959,
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,
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,
215,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1959,
3274,
96,
354,
5,
52,
5,
3,
60,
23,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the term start date for Meretz? | CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR) | SELECT term_start FROM table_name_94 WHERE party = "meretz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1987,
834,
10208,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1657,
456,
833,
21,
4039,
6706,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1657,
834,
10208,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1088,
3274,
96,
935,
6706,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a scatter chart about the correlation between Team_ID and School_ID , and group by attribute Team_Name. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT Team_ID, School_ID FROM basketball_match GROUP BY Team_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
2271,
834,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the instrumental for the dative shen? | CREATE TABLE table_name_15 (
instrumental VARCHAR,
dative VARCHAR
) | SELECT instrumental FROM table_name_15 WHERE dative = "shen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
15205,
584,
4280,
28027,
6,
3,
26,
1528,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15205,
21,
8,
3,
26,
1528,
255,
29,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15205,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
26,
1528,
3274,
96,
7,
3225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What driver has grid 2 and over 72 laps? | CREATE TABLE table_55538 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Driver" FROM table_55538 WHERE "Laps" > '72' AND "Grid" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28803,
3747,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
28803,
3747,
549,
17444,
427,
96,
3612,
102,
7,
121,
2490,
3,
31,
5865,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record at the game with a score of 7 5? | CREATE TABLE table_5863 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_5863 WHERE "Score" = '7–5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3891,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3449,
3891,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
940,
104,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09? | CREATE TABLE table_58891 (
"Team" text,
"2006\u201307 Pts" text,
"2007\u201308 Pts" text,
"2008\u201309 Pts" real,
"Total Pts" real,
"Total Pld" real
) | SELECT SUM("Total Pld") FROM table_58891 WHERE "2007\u201308 Pts" = '36' AND "2008\u201309 Pts" < '55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3914,
536,
41,
96,
18699,
121,
1499,
6,
96,
21196,
2,
76,
11138,
4560,
276,
17,
7,
121,
1499,
6,
96,
20615,
2,
76,
11138,
4018,
276,
17,
7,
121,
1499,
6,
96,
1612... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
7337,
26,
8512,
21680,
953,
834,
3449,
3914,
536,
549,
17444,
427,
96,
20615,
2,
76,
11138,
4018,
276,
17,
7,
121,
3274,
3,
31,
3420,
31,
3430,
96,
16128,
2,
76,
11138,
4198,
276,
... |
Find the distinct names of all songs that have a higher resolution than some songs in English. | CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
) | SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
1499,
6,
684,
1499,
6,
7285,
1499,
6,
6241,
834,
729,
60,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
3,
122,
834,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2324,
834,
4350,
21680,
2324,
549,
17444,
427,
3161,
2490,
41,
23143,
14196,
3,
17684,
599,
60,
14913,
61,
21680,
2324,
549,
17444,
427,
8024,
3274,
96,
4606,
40,
1273,
8512,
1,
-100,
-100,
-100... |
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987? | CREATE TABLE table_name_90 (
pts INTEGER,
engine VARCHAR,
year VARCHAR
) | SELECT MAX(pts) FROM table_name_90 WHERE engine = "ferrari tipo 033 v6 tc" AND year < 1987 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3,
102,
17,
7,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
43,
46,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
102,
17,
7,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1948,
3274,
96,
1010,
52,
1665,
2226,
32,
12811,
519,
3,
208,
948,
3,
17,
75,
121,
3430,
215,
3,
2,
12701,
1,
-100,
-100,
-100,
... |
What is the chassis of rahel frey's volkswagen engine? | CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR) | SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
524,
6500,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22836,
13,
3,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1948,
3274,
96,
4571,
157,
7,
11994,
121,
3430,
2535,
3274,
96,
52,
9,
88,
40,
2515,
15,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When indianapolis, indiana is the location what is the institution? | CREATE TABLE table_28211213_2 (
institution VARCHAR,
location VARCHAR
) | SELECT institution FROM table_28211213_2 WHERE location = "Indianapolis, Indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2658,
2122,
2368,
834,
357,
41,
6568,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
16,
8603,
9,
15621,
6,
16,
8603,
9,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6568,
21680,
953,
834,
2577,
2658,
2122,
2368,
834,
357,
549,
17444,
427,
1128,
3274,
96,
22126,
29,
9,
15621,
6,
11494,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.