NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what's the estimated value where cover date is august 1962 | CREATE TABLE table_451 (
"Character(s)" text,
"First Appearance" text,
"Cover Date" text,
"Publisher" text,
"Estimated Value" text
) | SELECT "Estimated Value" FROM table_451 WHERE "Cover Date" = 'August 1962' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
536,
41,
96,
18947,
2708,
49,
599,
7,
61,
121,
1499,
6,
96,
25171,
2276,
2741,
663,
121,
1499,
6,
96,
254,
1890,
7678,
121,
1499,
6,
96,
31009,
49,
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,
14997,
603,
920,
12419,
121,
21680,
953,
834,
2128,
536,
549,
17444,
427,
96,
254,
1890,
7678,
121,
3274,
3,
31,
26579,
20236,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was CTE Racing-hvm's Best with a Qual 2 of 50.312? | CREATE TABLE table_name_77 (
best VARCHAR,
team VARCHAR,
qual_2 VARCHAR
) | SELECT best FROM table_name_77 WHERE team = "cte racing-hvm" AND qual_2 = "50.312" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
200,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
3,
11433,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
205,
3463,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
200,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
372,
3274,
96,
75,
17,
15,
8191,
18,
107,
208,
51,
121,
3430,
3,
11433,
834,
357,
3274,
96,
755,
19997,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many field goals did Stacey Thomas have? | CREATE TABLE table_27140 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | SELECT "Field Goals" FROM table_27140 WHERE "Player" = 'Stacey Thomas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
22012,
41,
96,
15800,
49,
121,
1499,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
6,
96,
188,
7,
7,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3183,
8804,
17916,
7,
121,
21680,
953,
834,
2555,
22012,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
134,
17,
3302,
63,
3576,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the production code of the episode ranked 28? | CREATE TABLE table_26200084_1 (
production_code VARCHAR,
rank__week_ VARCHAR
) | SELECT production_code FROM table_26200084_1 WHERE rank__week_ = "28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
13527,
4608,
834,
536,
41,
999,
834,
4978,
584,
4280,
28027,
6,
11003,
834,
834,
8041,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
999,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
999,
834,
4978,
21680,
953,
834,
2688,
13527,
4608,
834,
536,
549,
17444,
427,
11003,
834,
834,
8041,
834,
3274,
96,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the lowest attendance at a week 15 game? | CREATE TABLE table_41737 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_41737 WHERE "Week" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
27931,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
4853,
27931,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the nationality when the ship is willerby? | CREATE TABLE table_name_64 (
nationality VARCHAR,
ship VARCHAR
) | SELECT nationality FROM table_name_64 WHERE ship = "willerby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1157,
485,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1157,
485,
116,
8,
4383,
19,
56,
49,
969,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
4383,
3274,
96,
8894,
49,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the score for 2015 afc asian cup qualification | CREATE TABLE table_name_73 (
score VARCHAR,
competition VARCHAR
) | SELECT score FROM table_name_73 WHERE competition = "2015 afc asian cup qualification" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2604,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
1230,
3,
9,
89,
75,
3,
9,
10488,
4119,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2259,
3274,
96,
8651,
3,
9,
89,
75,
3,
9,
10488,
4119,
15513,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of female patients who have other gram-negative sepsis diagnoses. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Gram-neg septicemia NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the country for athens | CREATE TABLE table_30444 (
"Stadium" text,
"Capacity" real,
"City" text,
"Country" text,
"Tenant" text,
"Opening" text
) | SELECT COUNT("Country") FROM table_30444 WHERE "City" = 'Athens' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
3628,
41,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
382,
35,
288,
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,
10628,
651,
8512,
21680,
953,
834,
23702,
3628,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
188,
189,
35,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's listed for the Turnout % with a Ngilu of 30,535? | CREATE TABLE table_35712 (
"Province" text,
"Kibaki" text,
"Raila" text,
"Wamalwa" text,
"Ngilu" text,
"Others" text,
"Registered Voters" text,
"Turnout %" text
) | SELECT "Turnout %" FROM table_35712 WHERE "Ngilu" = '30,535' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4450,
357,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
439,
23,
19272,
23,
121,
1499,
6,
96,
448,
9,
173,
9,
121,
1499,
6,
96,
518,
9,
1982,
210,
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,
382,
450,
29,
670,
3,
1454,
121,
21680,
953,
834,
2469,
4450,
357,
549,
17444,
427,
96,
567,
122,
173,
76,
121,
3274,
3,
31,
1458,
6,
755,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ? | CREATE TABLE table_name_95 (sanskrit_संस्कृतम् VARCHAR, kannada_ಕನ್ನಡ VARCHAR) | SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
7,
3247,
10648,
17,
834,
2,
584,
4280,
28027,
6,
675,
9,
26,
9,
834,
2,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
1051,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1532,
10648,
17,
834,
2,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
675,
9,
26,
9,
834,
2,
3274,
96,
76,
17,
2046,
9,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Silver medals did the Nation with a Rank of less than 1 receive? | CREATE TABLE table_43388 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_43388 WHERE "Rank" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
519,
4060,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
4906,
519,
4060,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the Home Team while Calgary was visiting while having an Attendance above 15,655? | CREATE TABLE table_77929 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Home" FROM table_77929 WHERE "Visitor" = 'calgary' AND "Attendance" > '15,655' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4440,
3166,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
940,
4440,
3166,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
1489,
1478,
63,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
1808,
6,
4122,
755,
31,
1,
-1... |
What's the total number of picks of a team that had june longalong? | CREATE TABLE table_11069 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | SELECT SUM("Pick") FROM table_11069 WHERE "Player" = 'june longalong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
3951,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
13,
5233,
1935,
121,
1499,
6,
96,
345,
4882,
372,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
8512,
21680,
953,
834,
19277,
3951,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
6959,
15,
307,
9,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about ID over the meter_400 by a bar chart, sort in asc by the y axis. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT meter_400, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
5548,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of birth of the player that has 11 caps and plays the prop position? | CREATE TABLE table_name_41 (
date_of_birth__age_ VARCHAR,
caps VARCHAR,
position VARCHAR
) | SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
584,
4280,
28027,
6,
16753,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
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,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
16753,
3274,
850,
3430,
1102,
3274,
96,
10401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest played that has a drawn less than 9, 36 as the difference, with a lost greater than 7? | CREATE TABLE table_37471 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Played") FROM table_37471 WHERE "Drawn" < '9' AND "Difference" = '36' AND "Lost" > '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4177,
536,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
4118,
4177,
536,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
308,
99,
11788,
121,
3274,
3,
31,
3420,
31,
3430,
96,
434,
3... |
Which team is located in missouri and was established in 1963? | CREATE TABLE table_name_99 (team VARCHAR, state_province VARCHAR, est VARCHAR) | SELECT team FROM table_name_99 WHERE state_province = "missouri" AND est = "1963" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
11650,
584,
4280,
28027,
6,
538,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
19,
1069... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
538,
834,
1409,
2494,
565,
3274,
96,
11502,
32,
459,
121,
3430,
259,
3274,
96,
2294,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of start dates of each apartment booking for each weekday? Return a bar chart. | CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
... |
What was the date of the game that led to a 48-21-6 record? | CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_33 WHERE record = "48-21-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
2237,
12,
3,
9,
4678,
16539,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1368,
3274,
96,
3707,
16539,
5783,
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 Attendance of the game September 21, 2003? | CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_36 WHERE date = "september 21, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22497,
663,
13,
8,
467,
1600,
12026,
3888,
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,
11364,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
12026,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients have been admitted until 1 year ago to the hospital? | 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 lab (
labid numbe... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
3,
2,
2423,
309,
6048,
382,
15382,
599,
5211,
12224,
... |
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6 2, 3 6, 5 7? | CREATE TABLE table_17289604_38 (
athlete VARCHAR,
round_of_64 VARCHAR
) | SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2577,
4314,
6348,
834,
3747,
41,
17893,
584,
4280,
28027,
6,
1751,
834,
858,
834,
4389,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
381,
13,
9227,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26170,
15,
61,
21680,
953,
834,
2517,
2577,
4314,
6348,
834,
3747,
549,
17444,
427,
1751,
834,
858,
834,
4389,
3274,
96,
434,
5430,
32,
1370,
9,
584,
8763,
41,
3,
26130,
3,
61,
301,
431,
104,
448... |
What is the largest Against with an Opposing Teams of wales? | CREATE TABLE table_name_71 (against INTEGER, opposing_teams VARCHAR) | SELECT MAX(against) FROM table_name_71 WHERE opposing_teams = "wales" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
3,
20749,
28,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
10720,
53,
834,
11650,
7,
3274,
96,
210,
4529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many shows aired before 1992 ? | CREATE TABLE table_203_293 (
id number,
"years of appearance" text,
"title" text,
"network" text,
"character name" text,
"actor" text,
"notes" text
) | SELECT COUNT("title") FROM table_203_293 WHERE "years of appearance" < 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4271,
41,
3,
23,
26,
381,
6,
96,
1201,
7,
13,
3179,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
1582,
1981,
121,
1499,
6,
96,
31886,
564,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
23330,
834,
357,
4271,
549,
17444,
427,
96,
1201,
7,
13,
3179,
121,
3,
2,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of episode 43 in the series? | CREATE TABLE table_28768925_1 (title VARCHAR, no_in_series VARCHAR) | SELECT title FROM table_28768925_1 WHERE no_in_series = 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3959,
3914,
1828,
834,
536,
41,
21869,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2577,
3959,
3914,
1828,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
8838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the total number of weeks with a result of l 31-21? | CREATE TABLE table_36095 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_36095 WHERE "Result" = 'l 31-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19208,
3301,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
19208,
3301,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
2664,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which league is for baseball with Laredo Apaches? | CREATE TABLE table_36693 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Championships" real,
"Years Active" text
) | SELECT "League" FROM table_36693 WHERE "Sport" = 'baseball' AND "Club" = 'laredo apaches' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
3951,
519,
41,
96,
254,
11158,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
1483,
12364,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
5398,
121,
21680,
953,
834,
3420,
3951,
519,
549,
17444,
427,
96,
17682,
121,
3274,
3,
31,
10925,
3184,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
521,
1271,
32,
4938,
2951,
31,
1,
-100,
-100,
-100,
... |
Name the women's nickname when the enrollment is 1500 in mobile, Alabama. | CREATE TABLE table_10577579_3 (
women’s_nickname VARCHAR,
enrollment VARCHAR,
location VARCHAR
) | SELECT women’s_nickname FROM table_10577579_3 WHERE enrollment = 1500 AND location = "Mobile, Alabama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3436,
3072,
4440,
834,
519,
41,
887,
22,
7,
834,
11191,
4350,
584,
4280,
28027,
6,
17938,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
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,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
887,
22,
7,
834,
11191,
4350,
21680,
953,
834,
1714,
3436,
3072,
4440,
834,
519,
549,
17444,
427,
17938,
3274,
15011,
3430,
1128,
3274,
96,
22162,
6,
13050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many episodes aired on 25 october 2012? | CREATE TABLE table_28054 (
"Episode no." real,
"Airdate" text,
"Dave Viewers" real,
"Dave Rank" real,
"Rank (cable)" real,
"Dave ja vu Viewers" real,
"Total viewers" real
) | SELECT COUNT("Total viewers") FROM table_28054 WHERE "Airdate" = '25 October 2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
5062,
41,
96,
427,
102,
159,
32,
221,
150,
535,
490,
6,
96,
20162,
5522,
121,
1499,
6,
96,
308,
9,
162,
4197,
277,
121,
490,
6,
96,
308,
9,
162,
3,
22557,
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,
3696,
1947,
13569,
8512,
21680,
953,
834,
17518,
5062,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
1828,
1797,
1673,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the date of the game held at the A venue with a result of 0-1 against the Rangers? | CREATE TABLE table_name_87 (
date VARCHAR,
opponent VARCHAR,
venue VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_87 WHERE venue = "a" AND result = "0-1" AND opponent = "rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
5669,
3274,
96,
9,
121,
3430,
741,
3274,
96,
632,
2292,
121,
3430,
15264,
3274,
96,
6287,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which event was held in Beijing? | CREATE TABLE table_name_44 (
event VARCHAR,
venue VARCHAR
) | SELECT event FROM table_name_44 WHERE venue = "beijing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
605,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
47,
1213,
16,
14465,
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,
605,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
5669,
3274,
96,
5358,
354,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many candidates won the election of john n. sandlin? | CREATE TABLE table_1342426_18 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT COUNT(candidates) FROM table_1342426_18 WHERE incumbent = "John N. Sandlin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2266,
2688,
834,
2606,
41,
4341,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4341,
751,
8,
4356,
13,
3,
27341,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
2266,
2688,
834,
2606,
549,
17444,
427,
28406,
3274,
96,
18300,
445,
5,
5440,
40,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which team had goal averages of 1.34? | CREATE TABLE table_17366952_1 (team VARCHAR, goal_average_1 VARCHAR) | SELECT team FROM table_17366952_1 WHERE goal_average_1 = "1.34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3420,
3951,
5373,
834,
536,
41,
11650,
584,
4280,
28027,
6,
1288,
834,
28951,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
141,
1288,
1348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
2517,
3420,
3951,
5373,
834,
536,
549,
17444,
427,
1288,
834,
28951,
834,
536,
3274,
96,
13606,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What batting partners played in sydney? | CREATE TABLE table_20972 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
) | SELECT "Batting partners" FROM table_20972 WHERE "Venue" = 'Sydney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4327,
357,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
518,
447,
8044,
121,
1499,
6,
96,
279,
9,
6031,
3222,
121,
1499,
6,
96,
279,
9,
6031,
372,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
9,
6031,
3222,
121,
21680,
953,
834,
1755,
4327,
357,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
134,
63,
26,
3186,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most goals for when there are fewer than 4 draws? | CREATE TABLE table_43675 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
) | SELECT MAX("Goals For") FROM table_43675 WHERE "Drawn" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
3072,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
6221,
5405,
242,
8512,
21680,
953,
834,
591,
3420,
3072,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average total for less than 1 championship? | CREATE TABLE table_name_59 (
total INTEGER,
championship INTEGER
) | SELECT AVG(total) FROM table_name_59 WHERE championship < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
792,
3,
21342,
17966,
6,
10183,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
792,
21,
705,
145,
209,
10183,
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,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
10183,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the number of actors in each duration of actors using a bar chart, order by the how many duration in descending. | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT Duration, COUNT(Duration) FROM actor GROUP BY Duration ORDER BY COUNT(Duration) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
1983,
127,
834,
4309,
16,
17,
6,
5570,
1499,
6,
22307,
834,
4309,
16,
17,
6,
20087,
1499,
6,
20610,
1499,
6,
1246,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20610,
6,
2847,
17161,
599,
12998,
2661,
61,
21680,
7556,
350,
4630,
6880,
272,
476,
20610,
4674,
11300,
272,
476,
2847,
17161,
599,
12998,
2661,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when did patient 006-21388 leave hospital for the first time during the last year? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '006-21388' AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
25369,
2368,
4060,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
159,
7993,
715,
6,
3,
3... |
What was the result for Henry Daniel's race? | CREATE TABLE table_3597 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_3597 WHERE "Incumbent" = 'Henry Daniel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4327,
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,
1499,
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,
20119,
121,
21680,
953,
834,
2469,
4327,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
566,
35,
651,
4173,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many games have a November of 10? | CREATE TABLE table_37533 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT COUNT("Game") FROM table_37533 WHERE "November" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
4201,
41,
96,
23055,
121,
490,
6,
96,
28635,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23055,
8512,
21680,
953,
834,
22954,
4201,
549,
17444,
427,
96,
28635,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
are there any other aircraft listed besides the nieuport 17 ? | CREATE TABLE table_204_353 (
id number,
"no." number,
"date/time" text,
"aircraft" text,
"foe" text,
"result" text,
"location" text,
"notes" text
) | SELECT "aircraft" FROM table_204_353 WHERE "aircraft" <> 'nieuport 17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2469,
519,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
87,
715,
121,
1499,
6,
96,
2256,
6696,
121,
1499,
6,
96,
89,
32,
15,
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,
2256,
6696,
121,
21680,
953,
834,
26363,
834,
2469,
519,
549,
17444,
427,
96,
2256,
6696,
121,
3,
2,
3155,
3,
31,
29,
23,
15,
76,
1493,
1003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the points for Engine of chevrolet 265c | CREATE TABLE table_name_99 (points VARCHAR, engine VARCHAR) | SELECT points FROM table_name_99 WHERE engine = "chevrolet 265c" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2700,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
979,
21,
10612,
13,
3,
13847,
3491,
15,
17,
204,
4122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1948,
3274,
96,
13847,
3491,
15,
17,
204,
4122,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose ethnicity is black/cape verdean and drug name is 5% dextrose (excel bag)? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug = "5% Dextrose (EXCEL BAG)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is Date, when Away Team is 'Minehead'? | CREATE TABLE table_name_13 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_13 WHERE away_team = "minehead" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
71,
1343,
2271,
19,
3,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8695,
3313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When us open (2) is the championship what is the surface? | CREATE TABLE table_73699 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_73699 WHERE "Championship" = 'US Open (2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3420,
3264,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
940,
3420,
3264,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
3063,
2384,
6499,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which the Lost to is in 2000 | CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR) | SELECT lost_to FROM table_name_35 WHERE year = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2298,
17,
834,
235,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8,
19576,
12,
19,
16,
2766,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
834,
235,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
215,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Table diameter has a Crown height of 14.45%? | CREATE TABLE table_42671 (
"Benchmark" text,
"Crown height" text,
"Pavilion depth" text,
"Table diameter" text,
"Girdle thickness" text,
"Crown angle" text,
"Pavilion angle" text,
"Brilliance Grade" text
) | SELECT "Table diameter" FROM table_42671 WHERE "Crown height" = '14.45%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
4450,
41,
96,
2703,
5457,
3920,
121,
1499,
6,
96,
254,
3623,
29,
3902,
121,
1499,
6,
96,
345,
2960,
7325,
4963,
121,
1499,
6,
96,
20354,
9260,
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,
20354,
9260,
121,
21680,
953,
834,
591,
2688,
4450,
549,
17444,
427,
96,
254,
3623,
29,
3902,
121,
3274,
3,
31,
2534,
5,
27516,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the home when the opponent was slovan liberec? | CREATE TABLE table_name_44 (home VARCHAR, opponent VARCHAR) | SELECT home FROM table_name_44 WHERE opponent = "slovan liberec" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
5515,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
116,
8,
15264,
47,
3,
7,
5850,
152,
5486,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3628,
549,
17444,
427,
15264,
3274,
96,
7,
5850,
152,
5486,
15,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the average number of working horses on farms with more than 5000 total horses. | CREATE TABLE competition_record (
competition_id number,
farm_id number,
rank number
)
CREATE TABLE city (
city_id number,
official_name text,
status text,
area_km_2 number,
population number,
census_ranking text
)
CREATE TABLE farm_competition (
competition_id number,
year... | SELECT AVG(working_horses) FROM farm WHERE total_horses > 5000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7621,
41,
2259,
834,
23,
26,
381,
6,
3797,
834,
23,
26,
381,
6,
11003,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
9238,
834,
107,
127,
2260,
61,
21680,
3797,
549,
17444,
427,
792,
834,
107,
127,
2260,
2490,
3,
12814,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When did Geelong play as the home team? | CREATE TABLE table_name_65 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_65 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
961,
15,
2961,
577,
38,
8,
234,
372,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the league for conference finals | CREATE TABLE table_2553861_1 (league VARCHAR, playoffs VARCHAR) | SELECT league FROM table_2553861_1 WHERE playoffs = "Conference Finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
3747,
4241,
834,
536,
41,
29512,
584,
4280,
28027,
6,
15289,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5533,
21,
2542,
804,
7,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
25502,
3747,
4241,
834,
536,
549,
17444,
427,
15289,
7,
3274,
96,
4302,
11788,
6514,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the final score of the Paul Goldstein match? | CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
102,
9,
83,
2045,
4008,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients aged below 54 years were given the drug succinylcholine? | 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 lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "54" AND prescriptions.drug = "Succinylcholine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which venue resulted in 2nd before 2005? | CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR) | SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
15098,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
741,
15,
26,
16,
204,
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,
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,
2555,
549,
17444,
427,
741,
3274,
96,
357,
727,
121,
3430,
215,
3,
2,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Report which has heinrich-joachim von morgen? | CREATE TABLE table_name_29 (report VARCHAR, winning_driver VARCHAR) | SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
60,
1493,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3750,
84,
65,
3,
88,
77,
3723,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
88,
77,
3723,
18,
1927,
9,
9737,
193,
8030,
729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
hba1c > 7 % and not to exceed 10.5 % . | CREATE TABLE table_dev_26 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"dyslipidemia" bool,
"body_weight" float,
"hba1c" float,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_dev_26 WHERE hba1c > 7 AND hemoglobin_a1c_hba1c < 10.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
2688,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,
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,
1429,
21680,
953,
834,
9776,
834,
2688,
549,
17444,
427,
3,
107,
115,
9,
536,
75,
2490,
489,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
209,
12100,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Release price (USD ) that has a Release date on april 2012 and a Part number(s) of cm8063701211900bx80637i73770s? | CREATE TABLE table_name_90 (
release_price___usd__ VARCHAR,
release_date VARCHAR,
part_number_s_ VARCHAR
) | SELECT release_price___usd__ FROM table_name_90 WHERE release_date = "april 2012" AND part_number_s_ = "cm8063701211900bx80637i73770s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
6,
294,
834,
5525,
1152,
834,
7,
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,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
9,
2246,
40,
1673,
121,
3430,
294,
834,
5525,
1152,
834,
7,
834,
3274,
96,
75,
... |
What region has the date of 2005 and Playground Music Scandinavia as a label? | CREATE TABLE table_39881 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Region" FROM table_39881 WHERE "Date" = '2005' AND "Label" = 'playground music scandinavia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
4060,
536,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
3288,
4060,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
22594,
31,
3430,
96,
434,
10333,
121,
3274,
3,
31,
4895,
9232,
723,
5924,
2644,
2960,
9,
31,
1,
-100,
-... |
What is the college hall of fame of the player who plays fullback? | CREATE TABLE table_name_83 (
college_hall_of_fame VARCHAR,
position VARCHAR
) | SELECT college_hall_of_fame FROM table_name_83 WHERE position = "fullback" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1900,
834,
11516,
834,
858,
834,
89,
265,
15,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1900,
6358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
834,
11516,
834,
858,
834,
89,
265,
15,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1102,
3274,
96,
1329,
40,
1549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Group and count the job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN for visualizing a bar chart, and could you rank by the y axis in ascending please? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40)... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY < (SELECT MIN(SALARY) FROM employees WHERE JOB_ID = 'MK_MAN') GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
3,
2,
41,
23143,
14196,
3,
17684,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
446,
... |
Name the result for 13 october 2004 | CREATE TABLE table_name_85 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_85 WHERE date = "13 october 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
1179,
3,
32,
75,
235,
1152,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
833,
3274,
96,
2368,
3,
32,
75,
235,
1152,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was neha 's last film ? | CREATE TABLE table_203_157 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
) | SELECT "film" FROM table_203_157 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
27452,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
24925,
121,
1499,
6,
96,
7977,
7,
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,
9988,
121,
21680,
953,
834,
23330,
834,
27452,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Home team when the Attendance was 1920? | CREATE TABLE table_name_20 (
home VARCHAR,
attendance VARCHAR
) | SELECT home FROM table_name_20 WHERE attendance = 1920 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
234,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
116,
8,
22497,
663,
47,
13978,
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,
1755,
549,
17444,
427,
11364,
3274,
13978,
1,
-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 is the English name for the Chinese name of later than 1974? | CREATE TABLE table_name_30 (
english_name VARCHAR,
year_signed VARCHAR,
chinese_name VARCHAR
) | SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
22269,
834,
4350,
584,
4280,
28027,
6,
215,
834,
15532,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22269,
834,
4350,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
215,
834,
15532,
2490,
17184,
3430,
3,
1436,
1496,
15,
834,
4350,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many silver when bronze is 25 and overall is less than 67? | CREATE TABLE table_name_97 (silver INTEGER, bronze VARCHAR, overall VARCHAR) | SELECT SUM(silver) FROM table_name_97 WHERE bronze = 25 AND overall < 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4294,
116,
13467,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
13467,
3274,
944,
3430,
1879,
3,
2,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return the primary conference of the school with the lowest acc percentage score. | CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text,
acc_percent text,
acc_home text,
acc_road text,
all_games text,
all_games_percent number,
all_home text,
all_road text,
all_neutral text
)
CREATE TABLE university (... | SELECT t1.primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
372,
834,
23,
26,
381,
6,
496,
834,
23,
26,
381,
6,
372,
834,
4350,
1499,
6,
3,
6004,
834,
60,
122,
4885,
834,
9476,
1499,
6,
3,
6004,
834,
883,
3728,
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,
3,
17,
5411,
8234,
1208,
834,
28496,
21680,
3819,
6157,
3,
17,
536,
3,
15355,
3162,
8498,
834,
19515,
6157,
3,
17,
357,
9191,
3,
17,
5411,
6646,
834,
23,
26,
3274,
3,
17,
4416,
6646,
834,
23,
26,
4674,
11300,
27... |
Which company had profits of 26.9? | CREATE TABLE table_1541 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
) | SELECT "Company" FROM table_1541 WHERE "Profits (billion $)" = '26.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4853,
41,
96,
22557,
121,
490,
6,
96,
5890,
2837,
63,
121,
1499,
6,
96,
3845,
9,
26,
19973,
7,
121,
1499,
6,
96,
1570,
8655,
8224,
121,
1499,
6,
96,
134,
4529,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
2837,
63,
121,
21680,
953,
834,
1808,
4853,
549,
17444,
427,
96,
23057,
7085,
41,
115,
14916,
1514,
61,
121,
3274,
3,
31,
2688,
5,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least number for xle02007 | CREATE TABLE table_28348757_3 (
no INTEGER,
production_code VARCHAR
) | SELECT MIN(no) FROM table_28348757_3 WHERE production_code = "XLE02007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3710,
4225,
3436,
834,
519,
41,
150,
3,
21342,
17966,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
381,
21,
3,
226,
109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
29,
32,
61,
21680,
953,
834,
2577,
3710,
4225,
3436,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
96,
4,
3765,
632,
20615,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the highest attendance for week 6? | CREATE TABLE table_name_82 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_82 WHERE week = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
15116,
663,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
11364,
21,
471,
431,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
471,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many tournaments did sergio garcia win on the 2002 pga tour ? | CREATE TABLE table_203_531 (
id number,
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st prize ($)" number
) | SELECT COUNT("tournament") FROM table_203_531 WHERE "winner" = 'sergio garcia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3341,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
3757,
687,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
17,
1211,
20205,
17,
8512,
21680,
953,
834,
23330,
834,
755,
3341,
549,
17444,
427,
96,
3757,
687,
121,
3274,
3,
31,
7,
49,
10253,
5260,
4915,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won Silver in 2000? | CREATE TABLE table_name_53 (silver VARCHAR, year VARCHAR) | SELECT silver FROM table_name_53 WHERE year = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
7,
173,
624,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
5642,
16,
2766,
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,
4294,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
215,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the production format for the series with the local title Fort Boyard: Ultimate Challenge? | CREATE TABLE table_23040 (
"No." real,
"Country" text,
"Local title" text,
"Format" text,
"Start Date" text,
"End Date" text,
"Episodes" real,
"Premiere/Air Dates" text
) | SELECT "Format" FROM table_23040 WHERE "Local title" = 'Fort Boyard: Ultimate Challenge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
2445,
41,
96,
4168,
535,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
2233,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
7681,
17,
7678,
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,
3809,
3357,
121,
21680,
953,
834,
13427,
2445,
549,
17444,
427,
96,
434,
32,
1489,
2233,
121,
3274,
3,
31,
3809,
17,
7508,
986,
10,
17913,
7729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Sort all captain names by their ages from old to young. | CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
) | SELECT name FROM captain ORDER BY age DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
14268,
834,
23,
26,
381,
6,
564,
1499,
6,
4383,
834,
23,
26,
381,
6,
1246,
1499,
6,
853,
1499,
6,
11003,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
14268,
4674,
11300,
272,
476,
1246,
309,
25067,
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,
... |
Which Centennial has a Altade a of panthers? | CREATE TABLE table_name_4 (
centennial VARCHAR,
altadeña VARCHAR
) | SELECT centennial FROM table_name_4 WHERE altadeña = "panthers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
3151,
35,
7419,
584,
4280,
28027,
6,
8771,
221,
2,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
18434,
35,
7419,
65,
3,
9,
4588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3151,
35,
7419,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
8771,
221,
2,
9,
3274,
96,
2837,
189,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Rank of 6 has what time? | CREATE TABLE table_14069 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Time" FROM table_14069 WHERE "Rank" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3951,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
22012,
3951,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients born before 2041 who left against medical advice. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND demographic.dob_year < "2041" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
3765,
6245,
8859,
13570,
4209,
3,
21357,
23936,
8502,
7765,
1... |
WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM? | CREATE TABLE table_name_40 (attendance VARCHAR, away_team VARCHAR) | SELECT attendance FROM table_name_40 WHERE away_team = "reading" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15116,
663,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
24642,
14920,
15083,
11951,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
550,
834,
11650,
3274,
96,
20316,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many engine b5234 t3? | CREATE TABLE table_1147705_1 (model VARCHAR, engine_type VARCHAR) | SELECT COUNT(model) FROM table_1147705_1 WHERE engine_type = "B5234 T3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
4013,
3076,
834,
536,
41,
21770,
584,
4280,
28027,
6,
1948,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1948,
3,
115,
5373,
3710,
3,
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,
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,
21770,
61,
21680,
953,
834,
18959,
4013,
3076,
834,
536,
549,
17444,
427,
1948,
834,
6137,
3274,
96,
279,
5373,
3710,
332,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score of the game when the record was 28–19? | CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_62 WHERE record = "28–19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
8,
1368,
47,
2059,
104,
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,
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,
4056,
549,
17444,
427,
1368,
3274,
96,
2577,
104,
2294,
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 BBI whent the economy is 5.68? | CREATE TABLE table_28846752_9 (
bbi VARCHAR,
economy VARCHAR
) | SELECT bbi FROM table_28846752_9 WHERE economy = "5.68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
1298,
41,
3,
115,
115,
23,
584,
4280,
28027,
6,
2717,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
272,
5972,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
115,
115,
23,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
1298,
549,
17444,
427,
2717,
3274,
96,
9125,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the theme where the original artist is AC/DC? | CREATE TABLE table_25374338_1 (
theme VARCHAR,
original_artist VARCHAR
) | SELECT theme FROM table_25374338_1 WHERE original_artist = "AC/DC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4118,
4906,
3747,
834,
536,
41,
3800,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3800,
213,
8,
926,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3800,
21680,
953,
834,
1828,
4118,
4906,
3747,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
5173,
87,
6338,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Lost has Games larger than 7? | CREATE TABLE table_36133 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT AVG("Lost") FROM table_36133 WHERE "Games" > '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
22974,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
71,
17217,
599,
121,
434,
3481,
8512,
21680,
953,
834,
3420,
22974,
549,
17444,
427,
96,
23055,
7,
121,
2490,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Is the biggest win recorded as home or away? | CREATE TABLE table_1233808_2 (
home_or_away VARCHAR,
record VARCHAR
) | SELECT home_or_away FROM table_1233808_2 WHERE record = "Biggest win" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
3747,
4018,
834,
357,
41,
234,
834,
127,
834,
8006,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
7,
8,
2630,
1369,
4381,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
127,
834,
8006,
21680,
953,
834,
14574,
3747,
4018,
834,
357,
549,
17444,
427,
1368,
3274,
96,
23805,
122,
222,
1369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which the Fastest Lap has a Season of 2009 and Poles smaller than 0? | CREATE TABLE table_5465 (
"Season" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real
) | SELECT MAX("Fastest Laps") FROM table_5465 WHERE "Season" = '2009' AND "Poles" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
4122,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
16665,
2552,
7,
121,
490,
6,
96,
8931,
15,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
371,
9,
7,
4377,
325,
102,
7,
8512,
21680,
953,
834,
5062,
4122,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
16660,
31,
3430,
96,
8931,
15,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-... |
What is the highest position of the team having played under 10 matches? | CREATE TABLE table_name_73 (position INTEGER, played INTEGER) | SELECT MAX(position) FROM table_name_73 WHERE played < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
4718,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1102,
13,
8,
372,
578,
1944,
365,
335,
6407,
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,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1944,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for what are the average prices of products, grouped by manufacturer name?, and I want to rank x-axis in ascending order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
71,
17217,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880... |
give me the number of patients whose diagnoses icd9 code is v4364? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "V4364" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
report the number of private insurance patients who had endoscopic removal of stone(s) from biliary tract. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Endoscopic removal of stone(s) from biliary tract" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What's the resolution of the model with a PPD of 69? | CREATE TABLE table_29704 (
"Model" text,
"PPI (pixels per inch )" real,
"ppcm (pixels per cm )" real,
"Resolution" text,
"Typical viewing distance (in/cm)" text,
"Pixels per degree (PPD)" real
) | SELECT "Resolution" FROM table_29704 WHERE "Pixels per degree (PPD)" = '69' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2518,
591,
41,
96,
24663,
121,
1499,
6,
96,
6158,
196,
41,
14251,
7,
399,
5913,
3,
61,
121,
490,
6,
96,
1572,
75,
51,
41,
14251,
7,
399,
2446,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
14913,
121,
21680,
953,
834,
3166,
2518,
591,
549,
17444,
427,
96,
345,
2407,
3573,
399,
1952,
41,
6158,
308,
61,
121,
3274,
3,
31,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Clock Speed has a FSB Speed of 400 mhz, and a Model Number of c7-m 794? | CREATE TABLE table_name_63 (
clock_speed VARCHAR,
fsb_speed VARCHAR,
model_number VARCHAR
) | SELECT clock_speed FROM table_name_63 WHERE fsb_speed = "400 mhz" AND model_number = "c7-m 794" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
6702,
834,
9993,
584,
4280,
28027,
6,
3,
89,
7,
115,
834,
9993,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
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,
6702,
834,
9993,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3,
89,
7,
115,
834,
9993,
3274,
96,
5548,
3,
51,
107,
172,
121,
3430,
825,
834,
5525,
1152,
3274,
96,
75,
940,
18,
51,
3,
4440,
20364,
1,
-100,... |
What is the Russian name for the area with 139995 RUB in 2005? | CREATE TABLE table_26785 (
"Rank (2008)" real,
"Federal Subjects" text,
"Russian Name" text,
"2008 (RUB)" real,
"2008 (USD)" real,
"2007 (RUB)" real,
"2007 (USD)" real,
"2005 (RUB)" real,
"2005 (USD)" real
) | SELECT "Russian Name" FROM table_26785 WHERE "2005 (RUB)" = '139995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
4433,
41,
96,
22557,
26974,
121,
490,
6,
96,
371,
15,
588,
138,
19237,
7,
121,
1499,
6,
96,
29613,
29,
5570,
121,
1499,
6,
96,
16128,
41,
8503,
279,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29613,
29,
5570,
121,
21680,
953,
834,
357,
3708,
4433,
549,
17444,
427,
96,
22594,
41,
8503,
279,
61,
121,
3274,
3,
31,
2368,
3264,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the home team when the score was 4 3? | CREATE TABLE table_69189 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Home" FROM table_69189 WHERE "Score" = '4–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
25312,
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,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3951,
25312,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
591,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the M809 seris with M939 series of M931/932 | CREATE TABLE table_6012 (
"Type" text,
"wheelbase" text,
"M39 series" text,
"M809 series" text,
"M939 series" text
) | SELECT "M809 series" FROM table_6012 WHERE "M939 series" = 'm931/932' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2122,
41,
96,
25160,
121,
1499,
6,
96,
14074,
10925,
121,
1499,
6,
96,
329,
3288,
939,
121,
1499,
6,
96,
329,
2079,
1298,
939,
121,
1499,
6,
96,
329,
1298,
3288,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
2079,
1298,
939,
121,
21680,
953,
834,
3328,
2122,
549,
17444,
427,
96,
329,
1298,
3288,
939,
121,
3274,
3,
31,
51,
4271,
12989,
4271,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Driver had 50+3 Points? | CREATE TABLE table_name_99 (driver VARCHAR, points VARCHAR) | SELECT driver FROM table_name_99 WHERE points = "50+3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
13739,
52,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10546,
141,
943,
1220,
519,
4564,
7,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
979,
3274,
96,
1752,
1220,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the attendance for july 16 | CREATE TABLE table_name_24 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_24 WHERE date = "july 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
11364,
21,
3,
2047,
120,
898,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
833,
3274,
96,
2047,
120,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the difference in gold medals between russia and china ? | CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT (SELECT "gold" FROM table_203_707 WHERE "npc" = 'china') - (SELECT "gold" FROM table_203_707 WHERE "npc" = 'russia') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2518,
940,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
102,
75,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
14910,
121,
21680,
953,
834,
23330,
834,
2518,
940,
549,
17444,
427,
96,
29,
102,
75,
121,
3274,
3,
31,
5675,
9,
31,
61,
3,
18,
41,
23143,
14196,
96,
14910,
121,
21680,
953,
834,
23330,
834,
... |
Show me about the correlation between Team_ID and All_Games_Percent , and group by attribute All_Neutral in a scatter chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Neutral | [
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,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
26288,
8792,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the minimum number of episodes in any of the series? | CREATE TABLE table_1949994_8 (
episodes INTEGER
) | SELECT MIN(episodes) FROM table_1949994_8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3647,
3264,
591,
834,
927,
41,
13562,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2559,
381,
13,
13562,
16,
136,
13,
8,
939,
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,
3,
17684,
599,
15,
102,
159,
32,
1395,
61,
21680,
953,
834,
2294,
3647,
3264,
591,
834,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for how many stores are headquarted in each city?, list from high to low by the bar please. | CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number... | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City ORDER BY Headquartered_City DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3939,
41,
3570,
834,
4309,
16,
17,
6,
3570,
834,
4350,
1499,
6,
3642,
19973,
15,
26,
834,
254,
485,
1499,
6,
896,
834,
27773,
7830,
490,
6,
896,
834,
188,
864,
490,
3,
61,
3,
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,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.