NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the rank with 0 bronze? | CREATE TABLE table_name_9 (
rank INTEGER,
bronze INTEGER
) | SELECT AVG(rank) FROM table_name_9 WHERE bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
11003,
3,
21342,
17966,
6,
13467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
28,
3,
632,
13467,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a pie chart about the proportion of ACC_Regular_Season and Team_ID. | 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 ACC_Regular_Season, Team_ID FROM basketball_match | [
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,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide me the diagnosis short title and diagnosis icd9 code for patient with patient id 2560. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT diagnoses.icd9_code, diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18730,
7,
5,
447,
26,
1298,
834,
4978,
6,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What number in season is number 141 in series? | CREATE TABLE table_3772 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT MAX("No. in season") FROM table_3772 WHERE "No. in series" = '141' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
5865,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
4118,
5865,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
26059,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If there is a VCPC of 75km/h (47mph) what is the VCA? | CREATE TABLE table_57058 (
"VCTP" text,
"VCA 155" text,
"VCTM" text,
"VCPC" text,
"VCLC" text,
"VCRT" text
) | SELECT "VCA 155" FROM table_57058 WHERE "VCPC" = '75km/h (47mph)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
3449,
41,
96,
7431,
7150,
121,
1499,
6,
96,
7431,
188,
627,
17395,
1499,
6,
96,
7431,
2305,
121,
1499,
6,
96,
7431,
4051,
121,
1499,
6,
96,
7431,
6480,
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,
7431,
188,
627,
17395,
21680,
953,
834,
28363,
3449,
549,
17444,
427,
96,
7431,
4051,
121,
3274,
3,
31,
3072,
5848,
87,
107,
41,
4177,
7656,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the Gross-to-date which has a Date of august 23 25? | CREATE TABLE table_44939 (
"Date" text,
"Rank" real,
"Weekend Gross" text,
"Theaters" real,
"Gross-to-date" text
) | SELECT "Gross-to-date" FROM table_44939 WHERE "Date" = 'august 23–25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3647,
3288,
41,
96,
308,
342,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
518,
10266,
989,
17969,
121,
1499,
6,
96,
634,
9,
4849,
121,
490,
6,
96,
517,
1859,
7,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
517,
1859,
7,
18,
235,
18,
5522,
121,
21680,
953,
834,
591,
3647,
3288,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
1902,
104,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many villians were in No. 25? | CREATE TABLE table_16117 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer" text,
"US air date" text,
"Storyteller" text,
"Villains" text
) | SELECT COUNT("Villains") FROM table_16117 WHERE "No." = '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
20275,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
3063,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
1092,
13676,
8512,
21680,
953,
834,
2938,
20275,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
does patient 031-1337 have any organisms that were found in his last sputum, expectorated microbiology test? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-1337')) AND microlab.culturesite = 'sputum, expectorated' ORDER BY microla... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
186... |
who's the premier with in 1970 | CREATE TABLE table_16165 (
"Season" real,
"Premier" text,
"Runner-up" text,
"Score" text,
"Margin" real,
"Venue" text,
"Attendance" real
) | SELECT "Premier" FROM table_16165 WHERE "Season" = '1970' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
22823,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
10572,
51,
972,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
7286,
122,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10572,
51,
972,
121,
21680,
953,
834,
2938,
22823,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many T-260 EU aircrafts are currently in service? | CREATE TABLE table_name_64 (
in_service VARCHAR,
versions VARCHAR
) | SELECT in_service FROM table_name_64 WHERE versions = "t-260 eu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
16,
834,
5114,
584,
4280,
28027,
6,
5204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
332,
18,
18365,
3371,
6442,
7,
33,
1083,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16,
834,
5114,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
5204,
3274,
96,
17,
18,
18365,
3,
15,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9 | CREATE TABLE table_1918850_2 (surface VARCHAR, championship VARCHAR, score_in_the_final VARCHAR) | SELECT COUNT(surface) FROM table_1918850_2 WHERE championship = "Australian Open" AND score_in_the_final = "6–3, 4–6, 11–9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2606,
17246,
834,
357,
41,
26899,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
26899,
61,
21680,
953,
834,
2294,
2606,
17246,
834,
357,
549,
17444,
427,
10183,
3274,
96,
31971,
29,
2384,
121,
3430,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
948,
104,
6355,
314,
104,
11071,
... |
Create a pie chart showing the number of location across location. | CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_host... | SELECT Location, COUNT(Location) FROM party GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
3450,
834,
4309,
16,
17,
6,
1546,
7,
17,
834,
4309,
16,
17,
6,
27,
7,
834,
21978,
29,
834,
77,
834,
18947,
397,
3,
12840,
40,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the competition for goal 8? | CREATE TABLE table_name_73 (
competition VARCHAR,
goal VARCHAR
) | SELECT competition FROM table_name_73 WHERE goal = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2259,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2259,
21,
1288,
505,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1288,
3274,
505,
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 average year for 0 points and ferrari v8? | CREATE TABLE table_name_85 (year INTEGER, points VARCHAR, engine VARCHAR) | SELECT AVG(year) FROM table_name_85 WHERE points = 0 AND engine = "ferrari v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1201,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1348,
215,
21,
3,
632,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
979,
3274,
3,
632,
3430,
1948,
3274,
96,
1010,
52,
1665,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total smartphones were shipped during the quarter 2012 Q1? | CREATE TABLE table_14260687_3 (total VARCHAR, quarter VARCHAR) | SELECT COUNT(total) FROM table_14260687_3 WHERE quarter = "2012 Q1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2688,
5176,
4225,
834,
519,
41,
235,
1947,
584,
4280,
28027,
6,
2893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
13864,
130,
10737,
383,
8,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
2534,
2688,
5176,
4225,
834,
519,
549,
17444,
427,
2893,
3274,
96,
12172,
1593,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the finish for Lanny Wadkins of the United States? | CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR, player VARCHAR) | SELECT finish FROM table_name_83 WHERE country = "united states" AND player = "lanny wadkins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
25535,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1992,
21,
301,
15159,
3129,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1992,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
40,
15159,
8036,
26,
7815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many season 4 appearances are there by Mrs. Jennifer Knight? | CREATE TABLE table_26240046_1 (season_4 INTEGER, character VARCHAR) | SELECT MIN(season_4) FROM table_26240046_1 WHERE character = "Mrs. Jennifer Knight" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
5548,
4448,
834,
536,
41,
9476,
834,
591,
3,
21342,
17966,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
774,
314,
3179,
7,
33,
132,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9476,
834,
7256,
21680,
953,
834,
2688,
357,
5548,
4448,
834,
536,
549,
17444,
427,
1848,
3274,
96,
329,
52,
7,
5,
13560,
11595,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the child sex ration for the population with 37.7% work participation? | CREATE TABLE table_name_24 (sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR) | SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = "37.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
7,
994,
834,
6850,
32,
834,
834,
11495,
834,
3,
21342,
17966,
6,
161,
834,
2274,
23,
3389,
257,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7,
994,
834,
6850,
32,
834,
834,
11495,
834,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
161,
834,
2274,
23,
3389,
257,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
4118,
5,
6170,
121,
... |
What was the record in the game against Eskimos? | CREATE TABLE table_23685152_2 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_23685152_2 WHERE opponent = "Eskimos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
4433,
26320,
834,
357,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
16,
8,
467,
581,
262,
400... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
357,
3420,
4433,
26320,
834,
357,
549,
17444,
427,
15264,
3274,
96,
427,
4009,
3972,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year did enrique alciati make a statue | CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR) | SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1201,
834,
49,
7633,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
215,
410,
3,
35,
8673,
491,
4915,
17,
23,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
834,
49,
7633,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2377,
3274,
96,
35,
8673,
491,
4915,
17,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many runs conceded when the earned runs was 4.96? | CREATE TABLE table_20278 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
) | SELECT "Runs Conceded" FROM table_20278 WHERE "E.R." = '4.96' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
3940,
41,
96,
23954,
121,
1499,
6,
96,
23847,
7,
10715,
1361,
121,
1499,
6,
96,
21978,
537,
7,
121,
490,
6,
96,
448,
202,
7,
1193,
565,
221,
26,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
202,
7,
1193,
565,
221,
26,
121,
21680,
953,
834,
19818,
3940,
549,
17444,
427,
96,
427,
5,
448,
535,
3274,
3,
31,
7984,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What place did the player from England come in? | CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_50 WHERE country = "england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
4687,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
410,
8,
1959,
45,
2789,
369,
16,
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,
286,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
684,
3274,
96,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107 78 (ot)? | CREATE TABLE table_name_32 (
date VARCHAR,
score VARCHAR,
high_assists VARCHAR,
high_points VARCHAR
) | SELECT date FROM table_name_32 WHERE high_assists = "ramon sessions (8)" AND high_points = "richard jefferson (29)" AND score = "w 107–78 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
2375,
106,
3975,
3,
28007,
121,
3430,
306,
834,
2700,
7,
3274,
96,
3723,
986,
528,
7010,
739,
4743,
11728,
121,
3430,
260... |
How many goals were scored in the 2005-06 season? | CREATE TABLE table_72291 (
"Season" text,
"League" text,
"Rank" real,
"Games" real,
"Points" real,
"GF" real,
"GA" real,
"Manager" text,
"Top Scorer" text,
"Goals" real
) | SELECT "Goals" FROM table_72291 WHERE "Season" = '2005-06' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
357,
4729,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
23055,
7,
121,
490,
6,
96,
22512,
7,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6221,
5405,
121,
21680,
953,
834,
5865,
357,
4729,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
22594,
18,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1? | CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6254,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2045,
3,
2,
209,
3430,
4294,
3274,
3,
632,
3430,
13467,
3274,
209,
3430,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What engine was used by the team the finished 2nd? | CREATE TABLE table_name_82 (engine VARCHAR, finish VARCHAR) | SELECT engine FROM table_name_82 WHERE finish = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
20165,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1948,
47,
261,
57,
8,
372,
8,
2369,
204,
727,
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,
1948,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1992,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients are with medicare insurance and diagnosed for acute respiratory failure? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Acute respiratory failure" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
when was the last time until 3 years ago patient 027-25452 had surgery? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid... | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-25452')) AND DATETIME(treatment.treatmenttime) <= DATETIME(CU... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1058,
5,
26889,
715,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
Which Home Team is on june 12? | CREATE TABLE table_name_3 (
home_team VARCHAR,
date VARCHAR
) | SELECT home_team FROM table_name_3 WHERE date = "june 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
2271,
19,
30,
3,
6959,
15,
586,
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,
834,
11650,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
833,
3274,
96,
6959,
15,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me a histogram for what is the code of each role and the number of employees in each role? | CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Document_Types (
Document_Type_... | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2158,
965,
41,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
201,
2158,
109,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
2158,
109,
834,
2962,
11830,
584,
4280,
28027,
599,
25502,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2158,
109,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
15871,
7,
350,
4630,
6880,
272,
476,
2158,
109,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose age is less than 58 and drug code is maal30l? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "58" AND prescriptions.formulary_drug_cd = "MAAL30L" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
give the number of patients who are under the age of 55 and their drug code is syrg1. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "55" AND prescriptions.formulary_drug_cd = "SYRG1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, I want to sort Y-axis from low to high order. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
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,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
... |
Name the average clean and jerk for snatch of 140 and total kg less than 315 | CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR) | SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
834,
12488,
157,
584,
4280,
28027,
6,
1349,
834,
3,
21342,
17966,
6,
3,
7,
29,
14547,
584,
4280,
28027,
6,
792,
834,
834,
8711,
834,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
16480,
834,
61,
3,
184,
3,
834,
12488,
157,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
7,
29,
14547,
3274,
11397,
3430,
792,
834,
834,
8711,
834,
3,
2,
220,
1808,
1,
-100,
-100,
-100,
... |
What is the name of the Conference which Division is south, and the Home Stadium is georgia dome? | CREATE TABLE table_36703 (
"Conference" text,
"Division" text,
"Team" text,
"City" text,
"Home Stadium" text
) | SELECT "Conference" FROM table_36703 WHERE "Division" = 'south' AND "Home Stadium" = 'georgia dome' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
2518,
519,
41,
96,
4302,
11788,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
19040,
12750,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
11788,
121,
21680,
953,
834,
3420,
2518,
519,
549,
17444,
427,
96,
308,
23,
6610,
121,
3274,
3,
31,
7,
670,
107,
31,
3430,
96,
19040,
12750,
121,
3274,
3,
31,
397,
1677,
23,
9,
22161,
31,
1,
-100,
-100... |
When middle prut valley is the land formation what is the highest of which currently forests, km² ? | CREATE TABLE table_19242_5 (_km² VARCHAR, of_which_currently_forests INTEGER, land_formation VARCHAR) | SELECT MAX(of_which_currently_forests), _km² FROM table_19242_5 WHERE land_formation = "Middle Prut Valley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4165,
834,
755,
41,
834,
5848,
357,
584,
4280,
28027,
6,
13,
834,
3339,
834,
14907,
120,
834,
1161,
222,
7,
3,
21342,
17966,
6,
1322,
834,
14678,
584,
4280,
28027,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
858,
834,
3339,
834,
14907,
120,
834,
1161,
222,
7,
201,
3,
834,
5848,
357,
21680,
953,
834,
19978,
4165,
834,
755,
549,
17444,
427,
1322,
834,
14678,
3274,
96,
329,
23,
8437,
21522,
17,
3460,
121,
1... |
What is the sum for December against the vancouver canucks earlier than game 33? | CREATE TABLE table_36844 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("December") FROM table_36844 WHERE "Opponent" = 'vancouver canucks' AND "Game" < '33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
3628,
41,
96,
23055,
121,
490,
6,
96,
29835,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
29835,
8512,
21680,
953,
834,
519,
3651,
3628,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
2132,
3422,
624,
54,
4636,
7,
31,
3430,
96,
23055,
121,
3,
2,
3,
31,
4201,
31,
1,
-100,
... |
Which team has an away score of 7.9 (51)? | CREATE TABLE table_55681 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_55681 WHERE "Home team score" = '7.9 (51)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3651,
536,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
3769,
3651,
536,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
940,
5,
1298,
9209,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about the sum of employee_id over the hire_date bin hire_date by weekday by a bar chart, rank Y-axis from low to high order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYE... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_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,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the first_name by a bar chart, and display by the total number in ascending. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
... |
What is the highest rank of the player with earnings of $6,715,649? | CREATE TABLE table_52666 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
) | SELECT MAX("Rank") FROM table_52666 WHERE "Earnings( $ )" = '6,715,649' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2688,
3539,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
599,
1514,
3,
61,
121,
490,
6,
96,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
755,
2688,
3539,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
599,
1514,
3,
61,
121,
3274,
3,
31,
11071,
4450,
11116,
948,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which grid is the highest and has a time/retired of +0.3? | CREATE TABLE table_name_11 (
grid INTEGER,
time_retired VARCHAR
) | SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
8634,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8634,
19,
8,
2030,
11,
65,
3,
9,
97,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
19997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present? | CREATE TABLE table_11734041_10 (
school_club_team_country VARCHAR,
player VARCHAR
) | SELECT COUNT(school_club_team_country) FROM table_11734041_10 WHERE player = "Kimball, Toby Toby Kimball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
21129,
4853,
834,
1714,
41,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6777,
3184,
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,
6646,
834,
13442,
834,
11650,
834,
17529,
61,
21680,
953,
834,
20275,
21129,
4853,
834,
1714,
549,
17444,
427,
1959,
3274,
96,
439,
603,
3184,
6,
304,
969,
304,
969,
6777,
3184,
121,
1,
-100,
-100,
... |
How many different nationalities is pick number 179? | CREATE TABLE table_29997 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT COUNT("Nationality") FROM table_29997 WHERE "Pick" = '179' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3264,
4327,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
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,
24732,
485,
8512,
21680,
953,
834,
357,
3264,
4327,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
26593,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the place where area is 578.28 square km? | CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR) | SELECT official_name FROM table_176529_2 WHERE area_km_2 = "578.28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4122,
3166,
834,
357,
41,
20884,
834,
4350,
584,
4280,
28027,
6,
616,
834,
5848,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2314,
834,
4350,
21680,
953,
834,
2517,
4122,
3166,
834,
357,
549,
17444,
427,
616,
834,
5848,
834,
357,
3274,
96,
755,
3940,
5,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the most points in the game on March 7? | CREATE TABLE table_74323 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_74323 WHERE "Date" = 'March 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
2668,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
979,
121,
21680,
953,
834,
4581,
2668,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
25019,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, display by the Y-axis in desc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
... |
how many patients whose diagnoses short title is ac posthemorrhag anemia and lab test fluid is joint fluid? | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Ac posthemorrhag anemia" AND lab.fluid = "Joint Fluid" | [
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,
3... |
What is the match report from the game played on 25 april 2009? | CREATE TABLE table_name_4 (
match_report VARCHAR,
date VARCHAR
) | SELECT match_report FROM table_name_4 WHERE date = "25 april 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1588,
834,
60,
1493,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1588,
934,
45,
8,
467,
1944,
30,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1588,
834,
60,
1493,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
1828,
3,
9,
2246,
40,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What were the notes in Toronto, Canada? | CREATE TABLE table_name_32 (notes VARCHAR, venue VARCHAR) | SELECT notes FROM table_name_32 WHERE venue = "toronto, canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
7977,
7,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
3358,
16,
7030,
6,
1894,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
5669,
3274,
96,
235,
4438,
32,
6,
19343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many longitudes have a latitude of 9.9n? | CREATE TABLE table_16768245_2 (
longitude VARCHAR,
latitude VARCHAR
) | SELECT COUNT(longitude) FROM table_16768245_2 WHERE latitude = "9.9N" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3959,
4613,
2128,
834,
357,
41,
307,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
307,
20341,
7,
43,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2961,
20341,
61,
21680,
953,
834,
2938,
3959,
4613,
2128,
834,
357,
549,
17444,
427,
50,
6592,
3274,
96,
8797,
1298,
567,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the number of bronze that Scotland, which has less than 7 total medals, has? | CREATE TABLE table_name_55 (bronze INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_55 WHERE nation = "scotland" AND total < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
13711,
776,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
13467,
24,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2982,
3274,
96,
7,
4310,
40,
232,
121,
3430,
792,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the location of subtrate coproporphyrinogen iii | CREATE TABLE table_22224 (
"Enzyme" text,
"Location" text,
"Substrate" text,
"Product" text,
"Chromosome" text,
"EC" text,
"OMIM" real,
"Porphyria" text
) | SELECT "Location" FROM table_22224 WHERE "Substrate" = 'Coproporphyrinogen III' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
2266,
41,
96,
8532,
4164,
526,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25252,
7,
17,
2206,
121,
1499,
6,
96,
3174,
7472,
121,
1499,
6,
96,
3541,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
26144,
2266,
549,
17444,
427,
96,
25252,
7,
17,
2206,
121,
3274,
3,
31,
3881,
10401,
127,
6941,
52,
77,
5255,
6289,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many vuts made for a player with 2 wins and under 7 top 5s? | CREATE TABLE table_74859 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Cuts made") FROM table_74859 WHERE "Wins" = '2' AND "Top-5" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3707,
3390,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
71,
17217,
599,
121,
15784,
17,
7,
263,
8512,
21680,
953,
834,
940,
3707,
3390,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
357,
31,
3430,
96,
22481,
18,
17395,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
-100,
... |
What was the time for the G2 group at the Hobartville Stakes? | CREATE TABLE table_name_62 (time VARCHAR, group VARCHAR, race VARCHAR) | SELECT time FROM table_name_62 WHERE group = "g2" AND race = "hobartville stakes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
715,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
97,
21,
8,
350,
357,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
563,
3274,
96,
122,
357,
121,
3430,
1964,
3274,
96,
107,
32,
1047,
17,
1420,
8474,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who replaced the manager on Team Cfr Cluj? | CREATE TABLE table_17115950_2 (replaced_by VARCHAR, team VARCHAR) | SELECT replaced_by FROM table_17115950_2 WHERE team = "CFR Cluj" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
15660,
25188,
834,
357,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
5821,
8,
2743,
30,
2271,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5821,
834,
969,
21680,
953,
834,
2517,
15660,
25188,
834,
357,
549,
17444,
427,
372,
3274,
96,
254,
7422,
9661,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the venue when the score is 10-0 on 1997-06-22? | CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR, date VARCHAR) | SELECT venue FROM table_name_15 WHERE score = "10-0" AND date = "1997-06-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
15098,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5669,
116,
8,
2604,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2604,
3274,
96,
536,
18629,
121,
3430,
833,
3274,
96,
2294,
4327,
18,
5176,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of q > 1 when q > 1.05 is bigger than 18,233, and a q > 1.4 less than 112, and q > 1.1 is 13,266? | CREATE TABLE table_44420 (
"q > 1" real,
"q > 1.05" real,
"q > 1.1" real,
"q > 1.2" real,
"q > 1.3" real,
"q > 1.4" real
) | SELECT COUNT("q > 1") FROM table_44420 WHERE "q > 1.05" > '18,233' AND "q > 1.4" < '112' AND "q > 1.1" = '13,266' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
21899,
41,
96,
1824,
2490,
209,
121,
490,
6,
96,
1824,
2490,
3,
12734,
17395,
490,
6,
96,
1824,
2490,
3,
11039,
121,
490,
6,
96,
1824,
2490,
3,
10917,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1824,
2490,
209,
8512,
21680,
953,
834,
3628,
21899,
549,
17444,
427,
96,
1824,
2490,
3,
12734,
17395,
2490,
3,
31,
2606,
6,
20879,
31,
3430,
96,
1824,
2490,
3,
14912,
121,
3,
2,
3,
31,
2596... |
What day did ARchie Roberts die? | CREATE TABLE table_16527640_3 (
date_of_death VARCHAR,
player VARCHAR
) | SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2555,
23714,
834,
519,
41,
833,
834,
858,
834,
221,
9,
189,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
11155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
221,
9,
189,
21680,
953,
834,
22823,
2555,
23714,
834,
519,
549,
17444,
427,
1959,
3274,
96,
23533,
23,
15,
2715,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how was patient 004-32341 admitted to the hospital since 2 years ago for the first time? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '004-32341' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
7928,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
591,
3486,
2773,
4853,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
2490,
24... |
How many stadiums does each country have? | CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
)
CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter... | SELECT country, COUNT(*) FROM stadium GROUP BY country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
2614,
381,
6,
690,
1499,
6,
684,
1499,
6,
2101,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
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,
684,
6,
2847,
17161,
599,
1935,
61,
21680,
14939,
350,
4630,
6880,
272,
476,
684,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties? | CREATE TABLE table_name_78 (
civil_liberties INTEGER,
year VARCHAR,
political_rights VARCHAR,
president VARCHAR
) | SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3095,
834,
10661,
3010,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
1827,
834,
3535,
7,
584,
4280,
28027,
6,
2753,
584,
4280,
28027,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
27981,
173,
834,
10661,
3010,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1827,
834,
3535,
7,
3274,
431,
3430,
2753,
3274,
96,
63,
32,
3321,
23,
3,
3252,
15,
8338,
121,
3430,
215,
3274,
... |
had patient 035-6788 been prescribed regular insulin, acetaminophen 325 mg po tabs, or glucose? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medi... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-6788')) AND medication.drugname IN ('acetaminophen 325 mg po tabs', 'r... | [
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,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
A bar chart shows the distribution of Name and Weight , could you sort x axis from high to low order please? | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Name, Weight FROM people ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
14230,
21680,
151,
4674,
11300,
272,
476,
5570,
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,
-10... |
If the distance is 55.7, what is the name of the constellation? | CREATE TABLE table_1820752_1 (constellation VARCHAR, distance___ly__ VARCHAR) | SELECT constellation FROM table_1820752_1 WHERE distance___ly__ = "55.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
26426,
5373,
834,
536,
41,
8056,
6714,
257,
584,
4280,
28027,
6,
2357,
834,
834,
834,
120,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
2357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30872,
21680,
953,
834,
2606,
26426,
5373,
834,
536,
549,
17444,
427,
2357,
834,
834,
834,
120,
834,
834,
3274,
96,
755,
27220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Foundation has an Enterprise of 2? | CREATE TABLE table_76104 (
"Features" text,
"Foundation" text,
"Standard" text,
"Enterprise" text,
"Datacenter" text,
"Itanium" text
) | SELECT "Foundation" FROM table_76104 WHERE "Enterprise" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
15442,
41,
96,
16772,
7,
121,
1499,
6,
96,
371,
32,
1106,
257,
121,
1499,
6,
96,
134,
17,
232,
986,
121,
1499,
6,
96,
16924,
49,
102,
7854,
121,
1499,
6,
96,
2036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
32,
1106,
257,
121,
21680,
953,
834,
3959,
15442,
549,
17444,
427,
96,
16924,
49,
102,
7854,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what country was the top performer from ? | CREATE TABLE table_204_902 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "nationality" FROM table_204_902 ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2394,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16557,
485,
121,
21680,
953,
834,
26363,
834,
2394,
357,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Give me a bar chart to show the name and age for all drivers, could you rank in descending by the total number? | CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time... | SELECT Name, Age FROM driver ORDER BY Age DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
1121,
834,
4309,
16,
17,
6,
13027,
1499,
6,
1121,
1499,
6,
10450,
1499,
6,
6632,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2535,
41,
10546,
834,
4309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
2535,
4674,
11300,
272,
476,
7526,
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,
-10... |
What is the amount of trees, that require replacement when district is leninsky? | CREATE TABLE table_10342194_3 (
amount_of_trees VARCHAR,
_that_require_replacement VARCHAR,
district VARCHAR
) | SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Leninsky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3710,
2658,
4240,
834,
519,
41,
866,
834,
858,
834,
929,
15,
7,
584,
4280,
28027,
6,
3,
834,
6279,
834,
60,
1169,
60,
834,
60,
4687,
297,
584,
4280,
28027,
6,
3939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
866,
834,
858,
834,
929,
15,
7,
6,
3,
834,
6279,
834,
60,
1169,
60,
834,
60,
4687,
297,
21680,
953,
834,
1714,
3710,
2658,
4240,
834,
519,
549,
17444,
427,
3939,
3274,
96,
434,
35,
77,
5352,
121,
1,
-100,
-100,
... |
Which socket goes with the item with release price of $378 and turbo of 6/6/8/9? | CREATE TABLE table_name_75 (socket VARCHAR, release_price___usd__ VARCHAR, turbo VARCHAR) | SELECT socket FROM table_name_75 WHERE release_price___usd__ = "$378" AND turbo = "6/6/8/9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
7,
3961,
15,
17,
584,
4280,
28027,
6,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
20353,
584,
4280,
28027,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16197,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
3274,
96,
3229,
519,
3940,
121,
3430,
20353,
3274,
96,
948,
18656,
9483,
87,
1298,
121,
1,
-100,
-100... |
Which To par has a Player of johanna head? | CREATE TABLE table_65155 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "To par" FROM table_65155 WHERE "Player" = 'johanna head' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
20896,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
4122,
20896,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1927,
107,
10878,
819,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the date of the game at the Pro Player Stadium that had a score of 4-1? | CREATE TABLE table_name_43 (
date VARCHAR,
venue VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_43 WHERE venue = "pro player stadium" AND score = "4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
44,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
5669,
3274,
96,
1409,
1959,
14939,
121,
3430,
2604,
3274,
96,
591,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the loser at Municipal Stadium after 1970? | CREATE TABLE table_name_96 (
loser VARCHAR,
location VARCHAR,
year VARCHAR
) | SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2615,
52,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2615,
52,
44,
16492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2615,
52,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1128,
3274,
96,
11760,
3389,
138,
14939,
121,
3430,
215,
2490,
7434,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Season has a Score of 3 3 aet , 4 3 pen | CREATE TABLE table_name_31 (
season VARCHAR,
score VARCHAR
) | SELECT season FROM table_name_31 WHERE score = "3 – 3 aet , 4–3 pen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
65,
3,
9,
17763,
13,
220,
220,
3,
9,
15,
17,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2604,
3274,
96,
519,
3,
104,
220,
3,
9,
15,
17,
3,
6,
314,
104,
519,
4550,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the fa trophy when the leading scorer is lee gregory (8)? | CREATE TABLE table_64280 (
"Year" text,
"League" text,
"Position" text,
"Leading Scorer" text,
"FA Cup" text,
"FA Trophy" text
) | SELECT "FA Trophy" FROM table_64280 WHERE "Leading Scorer" = 'lee gregory (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
17518,
41,
96,
476,
2741,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
26,
53,
17763,
52,
121,
1499,
6,
96,
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,
96,
4795,
26912,
121,
21680,
953,
834,
4389,
17518,
549,
17444,
427,
96,
2796,
9,
26,
53,
17763,
52,
121,
3274,
3,
31,
109,
15,
3,
18301,
127,
63,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the location attendance of the @ portland team? | CREATE TABLE table_27734286_1 (
location_attendance VARCHAR,
team VARCHAR
) | SELECT location_attendance FROM table_27734286_1 WHERE team = "@ Portland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1128,
11364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
549,
17444,
427,
372,
3274,
96,
1741,
11829,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Specify the minimum number of days for which a patient insured by the government stayed in the hospital | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.insurance = "Government" | [
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,
3,
17684,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
27304,
297,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest top-25 with more than 9 top-10 but less than 29 events? | CREATE TABLE table_name_17 (
top_25 INTEGER,
top_10 VARCHAR,
events VARCHAR
) | SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
420,
834,
1828,
3,
21342,
17966,
6,
420,
834,
1714,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
420,
834,
1714,
2490,
668,
3430,
984,
3,
2,
2838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest Year, when Finish is "29", and when Start is less than 24? | CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR) | SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1201,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2929,
6,
116,
17578,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1992,
3274,
2838,
3430,
456,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player from South Africa had a total less than 284? | CREATE TABLE table_44351 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_44351 WHERE "Total" < '284' AND "Country" = 'south africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2469,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3628,
2469,
536,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
357,
4608,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
7,
670,
107,
24040,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the lowest rank for the team that raced a time of 6:17.62 and a notes of sa/b? | CREATE TABLE table_name_87 (
rank INTEGER,
notes VARCHAR,
time VARCHAR
) | SELECT MIN(rank) FROM table_name_87 WHERE notes = "sa/b" AND time = "6:17.62" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
11003,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11003,
21,
8,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3358,
3274,
96,
7,
9,
87,
115,
121,
3430,
97,
3274,
96,
948,
10,
2517,
5,
4056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the team when the location attendace is boston garden and the series is 0-1? | CREATE TABLE table_name_31 (team VARCHAR, location_attendance VARCHAR, series VARCHAR) | SELECT team FROM table_name_31 WHERE location_attendance = "boston garden" AND series = "0-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
11650,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
372,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
115,
32,
4411,
2004,
121,
3430,
939,
3274,
96,
632,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please show each industry and the corresponding number of companies in that industry. | CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year number
)
CREATE TABLE buildings (
id number,
name text,
city text,
height number,
stories number,
status text
)
CREATE TABLE companies (
id number,
name text,
headquarters text,
indu... | SELECT industry, COUNT(*) FROM companies GROUP BY industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
828,
834,
14836,
7,
41,
740,
834,
23,
26,
381,
6,
349,
834,
23,
26,
381,
6,
888,
834,
77,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3950,
41,
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,
681,
6,
2847,
17161,
599,
1935,
61,
21680,
688,
350,
4630,
6880,
272,
476,
681,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
display the department id and the total salary for those departments which contains at least two employees. | CREATE TABLE employees (
department_id VARCHAR,
salary INTEGER
) | SELECT department_id, SUM(salary) FROM employees GROUP BY department_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3066,
834,
23,
26,
584,
4280,
28027,
6,
9090,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
1831,
8,
3066,
3,
23,
26,
11,
8,
792,
9090,
21,
273,
10521,
84,
2579,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3066,
834,
23,
26,
6,
180,
6122,
599,
7,
138,
1208,
61,
21680,
1652,
350,
4630,
6880,
272,
476,
3066,
834,
23,
26,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many totals had a silver larger than 2? | CREATE TABLE table_name_16 (
total VARCHAR,
silver INTEGER
) | SELECT COUNT(total) FROM table_name_16 WHERE silver > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
792,
584,
4280,
28027,
6,
4294,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
7,
141,
3,
9,
4294,
2186,
145,
204,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
4294,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which distinct car models are the produced after 1980? | CREATE TABLE CARS_DATA (id VARCHAR, year INTEGER); CREATE TABLE MODEL_LIST (model VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR) | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
25210,
834,
27807,
41,
23,
26,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
24259,
3577,
834,
434,
13582,
41,
21770,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
21770,
21680,
24259,
3577,
834,
434,
13582,
6157,
332,
536,
3,
15355,
3162,
205,
4280,
834,
5999,
22759,
6157,
332,
357,
9191,
332,
5411,
21770,
3274,
332,
4416,
21770,
3,
15355,
3162,
... |
What is the largest crowd for the St Kilda as the away team? | CREATE TABLE table_name_26 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MAX(crowd) FROM table_name_26 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
4374,
21,
8,
472,
12672,
26,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the candidates for texas 20 | CREATE TABLE table_1341690_43 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
4906,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4341,
21,
3,
10354,
9,
7,
460,
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,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
4906,
549,
17444,
427,
3939,
3274,
96,
13598,
9,
7,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which year did he play the role of mac harper and also pat trammell ? | CREATE TABLE table_202_205 (
id number,
"year" text,
"title" text,
"role" text,
"notes" text
) | SELECT "year" FROM table_202_205 WHERE "role" = 'mac harper' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
23201,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
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,
96,
1201,
121,
21680,
953,
834,
19818,
834,
23201,
549,
17444,
427,
96,
3491,
15,
121,
3274,
3,
31,
11101,
3,
3272,
883,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the the name of the customers who have a loan with amount more than 3000. | CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE ... | SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
2289,
834,
23,
26,
1499,
6,
2289,
834,
6137,
1499,
6,
123,
7,
17,
834,
23,
26,
1499,
6,
6421,
834,
23,
26,
1499,
6,
866,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
1071,
7,
17,
834,
4350,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
23,
26,
3274,
332,
4416,
1071,
7,
17,
834,
23,
26,
549,
17444,
427,
866,
24... |
How many people attended the game at Junction Oval? | CREATE TABLE table_name_77 (
crowd VARCHAR,
venue VARCHAR
) | SELECT crowd FROM table_name_77 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
4374,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
44,
29092,
411,
2165,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the degree for otorhinolaryngology | CREATE TABLE table_19304764_2 (
degree_diploma VARCHAR,
discipline VARCHAR
) | SELECT degree_diploma FROM table_19304764_2 WHERE discipline = "Otorhinolaryngology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
1458,
4177,
4389,
834,
357,
41,
1952,
834,
30573,
9,
584,
4280,
28027,
6,
7998,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1952,
21,
3,
32,
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,
1952,
834,
30573,
9,
21680,
953,
834,
2294,
1458,
4177,
4389,
834,
357,
549,
17444,
427,
7998,
3274,
96,
667,
17,
127,
2907,
17401,
63,
1725,
1863,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the first release title from coh ? | CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
) | SELECT "release title" FROM table_203_607 WHERE "artist" = 'coh' ORDER BY "release date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3328,
940,
41,
3,
23,
26,
381,
6,
96,
2138,
9,
10384,
381,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
21019,
2233,
121,
1499,
6,
96,
8995,
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,
21019,
2233,
121,
21680,
953,
834,
23330,
834,
3328,
940,
549,
17444,
427,
96,
1408,
343,
121,
3274,
3,
31,
509,
107,
31,
4674,
11300,
272,
476,
96,
21019,
833,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
... |
how many patients whose ethnicity is white and diagnoses short title is hx of gi malignancy nec? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE" AND diagnoses.short_title = "Hx of GI malignancy NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What are the first names of all students in course ACCT-211? | CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
... | SELECT T3.stu_fname FROM class AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
853,
41,
853,
834,
4978,
1499,
6,
5764,
7,
834,
4978,
1499,
6,
853,
834,
14309,
1499,
6,
853,
834,
715,
1499,
6,
853,
834,
3082,
1499,
6,
7108,
834,
5525,
381,
3,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
7,
17,
76,
834,
89,
4350,
21680,
853,
6157,
332,
536,
3,
15355,
3162,
17990,
6157,
332,
357,
9191,
332,
5411,
4057,
834,
4978,
3274,
332,
4416,
4057,
834,
4978,
3,
15355,
3162,
1236,
6157,
332,
519,
9191,... |
give me some good arabic -s in mountain view ? | CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_n... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
20929,
41,
690,
834,
4350,
3,
4331,
4059,
6,
5435,
3,
4331,
4059,
6,
1719,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
41,
3,
23,
26,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
11231,
9,
77,
903,
31,
3430,
2062,
5,
12437,
834,
6137,
3274,
3,
31,
2551,
15979,
3... |
What was the result of the election of the incumbent harry r. sheppard? | CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1341973_6 WHERE incumbent = "Harry R. Sheppard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
4552,
834,
948,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
4356,
13,
8,
2840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2294,
4552,
834,
948,
549,
17444,
427,
28406,
3274,
96,
15537,
651,
391,
5,
451,
1572,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest Year, when Notes is "5.19km, 18controls"? | CREATE TABLE table_name_24 (year INTEGER, notes VARCHAR) | SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1201,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2929,
6,
116,
2507,
7,
19,
96,
9125,
2294,
5848,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3358,
3274,
96,
9125,
2294,
5848,
6,
507,
15247,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which nation is where rider phillip dutton from? | CREATE TABLE table_22551 (
"Nation" text,
"Rider" text,
"Horse" text,
"Cross Country Penalties" text,
"Total Penalties" text,
"Total Team Penalties" text,
"Team Rank" real
) | SELECT "Nation" FROM table_22551 WHERE "Rider" = 'Phillip Dutton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
5553,
41,
96,
567,
257,
121,
1499,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
254,
1859,
7,
6993,
4511,
138,
3010,
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,
567,
257,
121,
21680,
953,
834,
20489,
5553,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
23305,
7446,
309,
12499,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many list entry numbers are located in Platting Road, Lydgate? | CREATE TABLE table_name_95 (
list_entry_number VARCHAR,
location VARCHAR
) | SELECT COUNT(list_entry_number) FROM table_name_95 WHERE location = "platting road, lydgate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
570,
834,
295,
651,
834,
5525,
1152,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
570,
1764,
2302,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3350,
834,
295,
651,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1128,
3274,
96,
6042,
6031,
1373,
6,
3,
120,
26,
5339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.