NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
when was the last time that patient 015-58787 was prescribed a medicine via ivpb route? | 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 allergy (
allergy... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-58787')) AND medication.routeadmin = 'ivpb' ORDER BY medic... | [
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,
7757,
5,
26,
13534,
10208,
715,
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,
15878,
37... |
In which venue was North Melbourne the Away team? | CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_14 WHERE away_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5669,
47,
1117,
9396,
8,
71,
1343,
372,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
550,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who directed the second episode of 'The Homecoming' which was written by Tommy Thompson? | CREATE TABLE table_11075747_3 (
directed_by VARCHAR,
written_by VARCHAR
) | SELECT directed_by FROM table_11075747_3 WHERE written_by = "Tommy Thompson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4560,
3436,
4177,
834,
519,
41,
6640,
834,
969,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
511,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2596,
4560,
3436,
4177,
834,
519,
549,
17444,
427,
1545,
834,
969,
3274,
96,
3696,
635,
63,
14653,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Can you tell me the Score that has the Country of united states, and the To par of 8? | CREATE TABLE table_name_45 (score VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT score FROM table_name_45 WHERE country = "united states" AND to_par = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
7,
9022,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
12,
834,
1893,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all directors from episodes with viewership of 1.945 million. | CREATE TABLE table_73452 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"Viewers (in millions)" text
) | SELECT "Directed by" FROM table_73452 WHERE "Viewers (in millions)" = '1.945' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2128,
357,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
4552,
2128,
357,
549,
17444,
427,
96,
15270,
277,
41,
77,
4040,
61,
121,
3274,
3,
31,
22493,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which game had Philadelphia as its home team and was played on April 23? | CREATE TABLE table_75334 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Game" FROM table_75334 WHERE "Home Team" = 'philadelphia' AND "Date" = 'april 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
519,
3710,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
121,
21680,
953,
834,
3072,
519,
3710,
549,
17444,
427,
96,
19040,
2271,
121,
3274,
3,
31,
18118,
15311,
11692,
9,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
1902,
31,
1,
-100,
-100,
-100,
... |
How many millions of people in the US saw the episode titled 'Francine's Flashback'? | CREATE TABLE table_25765 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "U.S. viewers (millions)" FROM table_25765 WHERE "Title" = 'Francine''s Flashback' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
4122,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
21680,
953,
834,
357,
3436,
4122,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
371,
2002,
14760,
31,
31,
7,
9497,
1549,
31,
1,
-100,
-100,
-100,
-100,
... |
What is Ground, when Away Team is Sydney? | CREATE TABLE table_name_73 (ground VARCHAR, away_team VARCHAR) | SELECT ground FROM table_name_73 WHERE away_team = "sydney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
9232,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
13908,
6,
116,
71,
1343,
2271,
19,
7476,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1591,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
63,
26,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the To Par for Player Chris Riley? | CREATE TABLE table_6840 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "To par" FROM table_6840 WHERE "Player" = 'chris riley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2445,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3651,
2445,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
524,
52,
159,
3,
5493,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the average of price , and group by attribute name, and could you list by the bars in desc? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
Who was the guest when the result was 0:3? | CREATE TABLE table_8504 (
"Date" text,
"Time" text,
"Home" text,
"Guest" text,
"Result" text
) | SELECT "Guest" FROM table_8504 WHERE "Result" = '0:3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17246,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
9105,
222,
121,
1499,
6,
96,
20119,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
9105,
222,
121,
21680,
953,
834,
17246,
591,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
632,
10,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose diagnoses long title is other diseases of lung, not elsewhere classified and drug type is additive? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Other diseases of lung, not elsewhere classified" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is Player, when Place is 2? | CREATE TABLE table_44538 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_44538 WHERE "Place" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
3747,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
591,
2128,
3747,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the average attendance of the leagues in the season of 2013? | CREATE TABLE table_10815352_1 (average_attendance INTEGER, season VARCHAR) | SELECT MIN(average_attendance) FROM table_10815352_1 WHERE season = "2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
27025,
5373,
834,
536,
41,
28951,
834,
15116,
663,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
11364,
13,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
28951,
834,
15116,
663,
61,
21680,
953,
834,
16169,
27025,
5373,
834,
536,
549,
17444,
427,
774,
3274,
96,
11138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did France come in second? | CREATE TABLE table_75139 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Second" FROM table_75139 WHERE "Nation" = 'france' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
24090,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
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,
0,
0... | [
3,
23143,
14196,
96,
134,
15,
1018,
26,
121,
21680,
953,
834,
3072,
24090,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
89,
5219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which disease is the patient paul edwards diagnosed from? | 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 diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Paul Edwards" | [
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,
18730,
7,
5,
2961,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
23183... |
only nation to earn exactly five total medals | CREATE TABLE table_204_383 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_383 WHERE "total" = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3747,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
3747,
519,
549,
17444,
427,
96,
235,
1947,
121,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60? | CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR) | SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
9339,
1211,
834,
28726,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2779,
834,
232,
834,
29117,
138,
834,
28726,
584,
4280,
28027,
6,
3819,
834,
858,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9339,
1211,
834,
28726,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2779,
834,
232,
834,
29117,
138,
834,
28726,
2490,
209,
3430,
3819,
834,
858,
834,
1259,
21746,
2490,
3,
632,
3430,
792,
3... |
What is the name and country of origin of the artist who released a song that has 'love' in its title? | CREATE TABLE artist (
artist_name VARCHAR,
country VARCHAR
)
CREATE TABLE song (
artist_name VARCHAR,
song_name VARCHAR
) | SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2377,
834,
4350,
584,
4280,
28027,
6,
2324,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1408,
343,
834,
4350,
6,
332,
5411,
17529,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
4350,
3274,
332,
4416,
1408,
343,
834,
4350,
549,
17444,
427,
... |
Who was the away team at the Win Entertainment Centre? | CREATE TABLE table_name_31 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_31 WHERE venue = "win entertainment centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
44,
8,
4871,
12694,
2969,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
5669,
3274,
96,
3757,
4527,
2050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the clubs having 'Davis Steven' as a member. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE member_of_club (
stuid number,
clu... | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Davis" AND t3.lname = "Steven" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
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,
3,
15438,
25424,
6227,
3,
17,
5411,
13442,
4350,
21680,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of job_id and the sum of salary , and group by attribute job_id, and show X-axis in desc 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40)... | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2... |
WHAT IS THE RESULT OF THE GAME ON APRIL 23? | CREATE TABLE table_76826 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Result" FROM table_76826 WHERE "Date" = 'april 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3651,
2688,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
940,
3651,
2688,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
1902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Frequency, when Type is "Christian Pop"? | CREATE TABLE table_name_13 (frequency INTEGER, type VARCHAR) | SELECT SUM(frequency) FROM table_name_13 WHERE type = "christian pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
30989,
3,
21342,
17966,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
5532,
835,
11298,
6,
116,
6632,
19,
96,
2841... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
30989,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
686,
3274,
96,
15294,
23,
152,
2783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? | CREATE TABLE table_name_12 (
entrant VARCHAR,
pts VARCHAR,
year VARCHAR,
engine VARCHAR
) | SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
3,
295,
3569,
584,
4280,
28027,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
215,
3,
2,
12701,
3430,
1948,
3274,
96,
29471,
2541,
4278,
41,
17,
87,
75,
61,
121,
3430,
3,
102,
17,
7,
2490,
204,
1,
-100,
-100,
-100,
-100,
-10... |
What is the number of votes for the party which got more than 28 seats? | CREATE TABLE table_name_67 (
votes VARCHAR,
seats INTEGER
) | SELECT COUNT(votes) FROM table_name_67 WHERE seats > 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
11839,
584,
4280,
28027,
6,
6116,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
11839,
21,
8,
1088,
84,
530,
72,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6116,
2490,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the A Score when the B Score was 9.05, and position was larger than 6? | CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR) | SELECT AVG(a_score) FROM table_name_50 WHERE b_score = 9.05 AND position > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
9,
834,
7,
9022,
3,
21342,
17966,
6,
3,
115,
834,
7,
9022,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9,
834,
7,
9022,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
3,
115,
834,
7,
9022,
3274,
5835,
3076,
3430,
1102,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get? | CREATE TABLE table_name_88 (
total_goals INTEGER,
league_cup_goals VARCHAR,
playoff_apps VARCHAR,
fa_cup_apps VARCHAR
) | SELECT SUM(total_goals) FROM table_name_88 WHERE playoff_apps = "2" AND fa_cup_apps = "2" AND league_cup_goals < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
792,
834,
839,
5405,
3,
21342,
17966,
6,
5533,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
15289,
834,
3096,
7,
584,
4280,
28027,
6,
3,
89,
9,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
15289,
834,
3096,
7,
3274,
96,
357,
121,
3430,
3,
89,
9,
834,
4658,
834,
3096,
7,
3274,
96,
357,
121,
3430,
5533,
... |
which site was listed earlier , the state public school or the edwin r. clarke library ? | CREATE TABLE table_204_423 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
) | SELECT "name" FROM table_204_423 WHERE "name" IN ('state public school at coldwater', 'edwin r. clarke library (michigan library association)') ORDER BY "listing date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
2773,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
3350,
53,
833,
121,
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,
96,
4350,
121,
21680,
953,
834,
26363,
834,
591,
2773,
549,
17444,
427,
96,
4350,
121,
3388,
41,
31,
5540,
452,
496,
44,
2107,
3552,
31,
6,
3,
31,
15,
26,
3757,
3,
52,
5,
6860,
1050,
3595,
41,
51,
362,
12588,
... |
What score has an attendance less than 10,553? | CREATE TABLE table_name_62 (
score VARCHAR,
attendance INTEGER
) | SELECT score FROM table_name_62 WHERE attendance < 10 OFFSET 553 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2604,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
46,
11364,
705,
145,
10372,
3769,
519,
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,
2604,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
11364,
3,
2,
335,
3,
15316,
20788,
305,
4867,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Japan's Area km²? | CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR) | SELECT area_km² FROM table_name_45 WHERE country = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
498,
834,
5848,
357,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3411,
31,
7,
5690,
2280,
357,
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,
616,
834,
5848,
357,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
684,
3274,
96,
1191,
2837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most minutes and starts being 12 | CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR) | SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4177,
2518,
3072,
834,
536,
41,
6890,
7,
3,
21342,
17966,
6,
3511,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
676,
11,
3511,
271,
586,
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,
4800,
4,
599,
6890,
7,
61,
21680,
953,
834,
2266,
4177,
2518,
3072,
834,
536,
549,
17444,
427,
3511,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many singles from dosage appeared on the modern rock tracks charts ? | CREATE TABLE table_202_240 (
id number,
"year" number,
"single" text,
"chart" text,
"position" number
) | SELECT COUNT("single") FROM table_202_240 WHERE "chart" = 'modern rock tracks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
11944,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7,
53,
109,
121,
1499,
6,
96,
4059,
17,
121,
1499,
6,
96,
4718,
121,
381,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7,
53,
109,
8512,
21680,
953,
834,
19818,
834,
11944,
549,
17444,
427,
96,
4059,
17,
121,
3274,
3,
31,
18306,
2480,
6542,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the net profit for eps beign 1.19 | CREATE TABLE table_20614109_1 (net_profit__€m_ VARCHAR, earnings_per_share__€_ VARCHAR) | SELECT net_profit__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
2534,
17304,
834,
536,
41,
1582,
834,
6046,
834,
834,
3378,
51,
834,
584,
4280,
28027,
6,
8783,
834,
883,
834,
12484,
834,
834,
3378,
834,
584,
4280,
28027,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3134,
834,
6046,
834,
834,
3378,
51,
834,
21680,
953,
834,
24643,
2534,
17304,
834,
536,
549,
17444,
427,
8783,
834,
883,
834,
12484,
834,
834,
3378,
834,
3274,
96,
5411,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What year was there a finish of 3? | CREATE TABLE table_name_27 (
year VARCHAR,
finish VARCHAR
) | SELECT year FROM table_name_27 WHERE finish = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
215,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
132,
3,
9,
1992,
13,
220,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1992,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which city has frequency under 106.5MHz and a callsign of w218ck? | CREATE TABLE table_70196 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "City of license" FROM table_70196 WHERE "Frequency MHz" < '106.5' AND "Call sign" = 'w218ck' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
26937,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
13,
3344,
121,
21680,
953,
834,
2518,
26937,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
3,
2,
3,
31,
1714,
17255,
31,
3430,
96,
254,
1748,
1320,
121,
3274,
3,
31,
210,
357,
2606,
2406... |
What team has a porsche 956 b chassis-engine with less than 79 laps? | CREATE TABLE table_name_17 (
team VARCHAR,
chassis___engine VARCHAR,
laps VARCHAR
) | SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
372,
584,
4280,
28027,
6,
22836,
834,
834,
834,
20165,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
22836,
834,
834,
834,
20165,
3274,
96,
102,
127,
3992,
668,
4834,
3,
115,
121,
3430,
14941,
7,
3,
2,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose death status is 1 and drug name is atropine sulfate? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.drug = "Atropine Sulfate" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the difference in population between daping and shaoshan ? | CREATE TABLE table_204_891 (
id number,
"name" text,
"hanzi" text,
"population (2005)" number,
"area (km2)" number
) | SELECT ABS((SELECT "population (2005)" FROM table_204_891 WHERE "name" = 'daping') - (SELECT "population (2005)" FROM table_204_891 WHERE "name" = 'shaoshan')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3914,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
2618,
702,
121,
1499,
6,
96,
9791,
7830,
3,
29495,
121,
381,
6,
96,
498,
41,
5848,
7318,
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,
20798,
599,
599,
23143,
14196,
96,
9791,
7830,
3,
29495,
121,
21680,
953,
834,
26363,
834,
3914,
536,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
26,
9,
2462,
31,
61,
3,
18,
41,
23143,
14196,
96,
9791,
7830,
3,
... |
How many bookings for each apartment number? Plot a bar chart, display x-axis in descending order. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_bookin... | SELECT apt_number, COUNT(apt_number) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id GROUP BY apt_number ORDER BY apt_number DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
24752,
53,
7,
41,
740,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
7,
14184,
834,
4350,
3,
28027,
599,
1808,
201,
740,
834,
1329,
40,
834,
4350,
584,
4280,
28027,
599,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6789,
834,
5525,
1152,
6,
2847,
17161,
599,
6789,
834,
5525,
1152,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
3274,
332,
4... |
Show me about the correlation between Team_ID and School_ID , and group by attribute All_Games in a scatter chart. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where was the game held that resulted in a score of 9-2? | CREATE TABLE table_name_15 (
venue VARCHAR,
score VARCHAR
) | SELECT venue FROM table_name_15 WHERE score = "9-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5669,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1213,
24,
741,
15,
26,
16,
3,
9,
2604,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2604,
3274,
96,
1298,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of 5w when there was a 21.33 average? | CREATE TABLE table_15893020_2 (average VARCHAR) | SELECT MAX(5 AS w) FROM table_15893020_2 WHERE average = "21.33" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3914,
1458,
1755,
834,
357,
41,
28951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
305,
210,
116,
132,
47,
3,
9,
1401,
5,
4201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
755,
6157,
3,
210,
61,
21680,
953,
834,
1808,
3914,
1458,
1755,
834,
357,
549,
17444,
427,
1348,
3274,
96,
2658,
5,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find all students taught by OTHA MOYER. Output the first and last names of the students. | CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) | SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
14672,
4350,
584,
4280,
28027,
6,
336,
4350,
584,
4280,
28027,
6,
4858,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3081,
41,
4057,
3082,
584,
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,
332,
5411,
14672,
4350,
6,
332,
5411,
5064,
4350,
21680,
570,
6157,
332,
536,
3,
15355,
3162,
3081,
6157,
332,
357,
9191,
332,
5411,
4057,
3082,
3274,
332,
4416,
4057,
3082,
549,
17444,
427,
332,
4416,
14672,
4350,
32... |
What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A? | CREATE TABLE table_51140 (
"2004/ 05" text,
"2007/ 08" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2011/ 12" FROM table_51140 WHERE "2010/ 11" = 'not held' AND "2012/ 13" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
22012,
41,
96,
21653,
87,
3,
3076,
121,
1499,
6,
96,
20615,
87,
12046,
121,
1499,
6,
96,
14926,
87,
850,
121,
1499,
6,
96,
13907,
87,
586,
121,
1499,
6,
96,
12172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13907,
87,
586,
121,
21680,
953,
834,
5553,
22012,
549,
17444,
427,
96,
14926,
87,
850,
121,
3274,
3,
31,
2264,
1213,
31,
3430,
96,
12172,
87,
1179,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the maturity date of the ISIN labeled DE000A0BVBN3? | CREATE TABLE table_21692771_1 (maturity VARCHAR, isin VARCHAR) | SELECT maturity FROM table_21692771_1 WHERE isin = "DE000A0BVBN3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3951,
2555,
4450,
834,
536,
41,
51,
6010,
485,
584,
4280,
28027,
6,
19,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22004,
833,
13,
8,
6827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22004,
21680,
953,
834,
2658,
3951,
2555,
4450,
834,
536,
549,
17444,
427,
19,
77,
3274,
96,
5596,
2313,
188,
632,
22480,
19174,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many numbers were recorded under miles for the 3:00:46 race time? | CREATE TABLE table_2520 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT COUNT("Miles (km)") FROM table_2520 WHERE "Race Time" = '3:00:46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
1755,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
699,
7,
41,
5848,
61,
8512,
21680,
953,
834,
1828,
1755,
549,
17444,
427,
96,
448,
3302,
2900,
121,
3274,
3,
31,
519,
10,
1206,
10,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of fights won by decision ? | CREATE TABLE table_204_386 (
id number,
"res." text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" number,
"time" text,
"location" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_386 WHERE "res." = 'win' AND "method" = 'decision' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3840,
41,
3,
23,
26,
381,
6,
96,
60,
7,
535,
1499,
6,
96,
60,
7621,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
23152,
121,
1499,
6,
96,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
519,
3840,
549,
17444,
427,
96,
60,
7,
535,
3274,
3,
31,
3757,
31,
3430,
96,
23152,
121,
3274,
3,
31,
221,
18901,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the NOAA of the higher harmonics that have a Darwin of m sf? | CREATE TABLE table_name_27 (
noaa VARCHAR,
darwin VARCHAR
) | SELECT noaa FROM table_name_27 WHERE darwin = "m sf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
150,
9,
9,
584,
4280,
28027,
6,
649,
3757,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5693,
5498,
13,
8,
1146,
29610,
7,
24,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
150,
9,
9,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
649,
3757,
3274,
96,
51,
3,
7,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
list the number of items written by brad falchuk | CREATE TABLE table_203_306 (
id number,
"no." number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text
) | SELECT COUNT("title") FROM table_203_306 WHERE "written by" = 'brad falchuk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1458,
948,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
21869,
121,
1499,
6,
96,
22955,
57,
121,
1499,
6,
96,
14973,
57,
121,
1499,
6,
96,
21878,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
23330,
834,
1458,
948,
549,
17444,
427,
96,
14973,
57,
121,
3274,
3,
31,
1939,
26,
12553,
524,
1598,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Opponents of sebasti n decoud santiago giraldo had what surface? | CREATE TABLE table_35379 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_35379 WHERE "Opponents" = 'sebastián decoud santiago giraldo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
519,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2469,
519,
4440,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
7,
15,
4883,
17,
23,
12916,
20,
3422,
26,
3,
7,
5965,
9,
839,
3,
9427,
138,
26,
32,
31,
1,... |
Name the religion for Former Experience of commissioner of health and assumed office before 2005 | CREATE TABLE table_55770 (
"District" text,
"Name" text,
"Party" text,
"Religion" text,
"Former Experience" text,
"Assumed Office" real,
"Born In" real
) | SELECT "Religion" FROM table_55770 WHERE "Assumed Office" < '2005' AND "Former Experience" = 'commissioner of health' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
26920,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
1649,
2825,
23,
106,
121,
1499,
6,
96,
3809,
935,
7187,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
2825,
23,
106,
121,
21680,
953,
834,
3769,
26920,
549,
17444,
427,
96,
188,
7,
4078,
15,
26,
2126,
121,
3,
2,
3,
31,
22594,
31,
3430,
96,
3809,
935,
7187,
121,
3274,
3,
31,
287,
5451,
49,
13,
533,
31... |
an a1c score greater than 7 and less than 14 . | CREATE TABLE table_train_227 (
"id" int,
"gender" string,
"diabetic" string,
"allergic_to_study_products" bool,
"hba1c" float,
"a1c" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_227 WHERE a1c > 7 AND a1c < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2555,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
26,
23,
9,
346,
1225,
121,
6108,
6,
96,
13701,
26730,
834,
235,
834,
8637,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
2555,
549,
17444,
427,
3,
9,
536,
75,
2490,
489,
3430,
3,
9,
536,
75,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the distance for the team time trial? | CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR) | SELECT distance FROM table_name_26 WHERE type = "team time trial" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
26,
23,
8389,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2357,
21,
8,
372,
97,
3689,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
686,
3274,
96,
11650,
97,
3689,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket? | CREATE TABLE table_name_91 (
socket VARCHAR,
frequency VARCHAR,
release_price___usd__ VARCHAR
) | SELECT socket FROM table_name_91 WHERE frequency = "1.2 ghz" AND release_price___usd__ = "$70" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
16197,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16197,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
7321,
3274,
96,
10917,
3,
122,
107,
172,
121,
3430,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
3274,
96,
3229,
2518,
121,
1,
-100,
-100,
-100,
... |
What is Method, when Opponent is 'Thiago Alves'? | CREATE TABLE table_47486 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | SELECT "Method" FROM table_47486 WHERE "Opponent" = 'thiago alves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
591,
3840,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23351,
107,
32,
26,
121,
21680,
953,
834,
4177,
591,
3840,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
7436,
9,
839,
3,
9,
8391,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is minimum age of patients whose insurance is medicaid and ethnicity is american indian/alaska native? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
15789,
6146,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
17683,
5593,
11425,
3,
13885,
21758,
87,
23634,
134,
... |
who was the previous winner before john henry phelan in 1951 ? | CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
) | SELECT "laetare medalist" FROM table_203_509 WHERE "year" < 1951 ORDER BY "year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
1298,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
521,
15,
17,
355,
9365,
343,
121,
1499,
6,
96,
4718,
121,
1499,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
521,
15,
17,
355,
9365,
343,
121,
21680,
953,
834,
23330,
834,
1752,
1298,
549,
17444,
427,
96,
1201,
121,
3,
2,
25684,
4674,
11300,
272,
476,
96,
1201,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
... |
Which Suburb was First Settled as a Suburb in 1962? | CREATE TABLE table_name_54 (suburb VARCHAR, date_first_settled_as_a_suburb VARCHAR) | SELECT suburb FROM table_name_54 WHERE date_first_settled_as_a_suburb = 1962 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7304,
450,
115,
584,
4280,
28027,
6,
833,
834,
14672,
834,
2244,
17,
1361,
834,
9,
7,
834,
9,
834,
7304,
450,
115,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16432,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
833,
834,
14672,
834,
2244,
17,
1361,
834,
9,
7,
834,
9,
834,
7304,
450,
115,
3274,
20236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the per capita income with more than 2,466 households and a median family income of $53,940? | CREATE TABLE table_12115 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "Per capita income" FROM table_12115 WHERE "Number of households" > '2,466' AND "Median family income" = '$53,940' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
15660,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12988,
23219,
2055,
121,
21680,
953,
834,
2122,
15660,
549,
17444,
427,
96,
567,
5937,
49,
13,
15802,
121,
2490,
3,
31,
4482,
591,
3539,
31,
3430,
96,
24607,
29,
384,
2055,
121,
3274,
3,
31,
3229,
4867,
6,
424... |
What is the total number of Total, when Silver is 1, and when Bronze is 7? | CREATE TABLE table_76975 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
) | SELECT COUNT("Total") FROM table_76975 WHERE "Silver" = '1' AND "Bronze" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3951,
3072,
41,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
3696,
1947,
121,
490,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
940,
3951,
3072,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
3430,
96,
22780,
29,
776,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
... |
How many Mountains Classifications were in the race with Mike Northey as Youth Classification? | CREATE TABLE table_23157997_13 (
mountains_classification VARCHAR,
youth_classification VARCHAR
) | SELECT COUNT(mountains_classification) FROM table_23157997_13 WHERE youth_classification = "Mike Northey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
1808,
4440,
4327,
834,
2368,
41,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
4192,
834,
4057,
2420,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
11231,
13676,
834,
4057,
2420,
61,
21680,
953,
834,
2773,
1808,
4440,
4327,
834,
2368,
549,
17444,
427,
4192,
834,
4057,
2420,
3274,
96,
329,
5208,
1117,
15,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Who were the rowers from china wh had a rank smaller than 4? | CREATE TABLE table_name_51 (rowers VARCHAR, rank VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_51 WHERE rank < 4 AND country = "china" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3623,
277,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
7358,
277,
45,
20576,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7358,
277,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
11003,
3,
2,
314,
3430,
684,
3274,
96,
5675,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
3... |
What is the average prices of wines for each each. Visualize by line chart. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No... | SELECT Year, AVG(Price) FROM wine GROUP BY Year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
71,
17217,
599,
345,
4920,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
2929,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the first weight of patient 007-849 this month? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE v... | SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-849') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-... | [
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,
1868,
5,
9,
26,
5451,
9378,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1... |
What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is greater than 0? | CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR) | SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3757,
7,
3,
21342,
17966,
6,
3414,
834,
12425,
834,
26,
89,
40,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3414,
834,
12425,
834,
26,
89,
40,
3274,
96,
3297,
49,
7043,
121,
3430,
57,
15,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-... |
If a country has 1008 points what's their reaction time? | CREATE TABLE table_45679 (
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real,
"Points" real
) | SELECT MAX("React") FROM table_45679 WHERE "Points" = '1008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
948,
4440,
41,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19762,
121,
1499,
6,
96,
1649,
2708,
121,
490,
6,
96,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
2708,
8512,
21680,
953,
834,
2128,
948,
4440,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2915,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the date for proposed for revere textile prints corporation | CREATE TABLE table_name_40 (proposed VARCHAR, name VARCHAR) | SELECT proposed FROM table_name_40 WHERE name = "revere textile prints corporation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1409,
12151,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
4382,
21,
26236,
12667,
11384,
11861,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
564,
3274,
96,
60,
624,
15,
12667,
11384,
11861,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what Year was the match at Sopot with a Score of 2 6, 6 2, 6 3? | CREATE TABLE table_60515 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
) | SELECT COUNT("Year") FROM table_60515 WHERE "Location" = 'sopot' AND "Score" = '2–6, 6–2, 6–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
755,
1808,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
3328,
755,
1808,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
7,
32,
3013,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
357,
104,
11071,
431,
10... |
Who swam in a lane less than 6 and finished with a time of 2:11.02? | CREATE TABLE table_14836 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_14836 WHERE "Lane" < '6' AND "Time" = '2:11.02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
3420,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
24748,
3420,
549,
17444,
427,
96,
434,
152,
15,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
13368,
121,
3274,
3,
31,
357,
10,
10032,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Elimination move listed against Regal? | CREATE TABLE table_name_28 (elimination VARCHAR, wrestler VARCHAR) | SELECT elimination AS Move FROM table_name_28 WHERE wrestler = "regal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
15,
40,
23,
14484,
584,
4280,
28027,
6,
26033,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7495,
14484,
888,
2616,
581,
23832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
23458,
6157,
15711,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
26033,
52,
3274,
96,
24080,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the creator when the view happens to gddm, afp viewer? | CREATE TABLE table_1574968_1 (creator VARCHAR, viewer VARCHAR) | SELECT creator FROM table_1574968_1 WHERE viewer = "GDDM, AFP viewer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
3647,
3651,
834,
536,
41,
5045,
1016,
584,
4280,
28027,
6,
17831,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
9931,
116,
8,
903,
2906,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9931,
21680,
953,
834,
27452,
3647,
3651,
834,
536,
549,
17444,
427,
17831,
3274,
96,
18405,
7407,
6,
3,
26487,
17831,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which league has 12 goals? | CREATE TABLE table_name_66 (
league VARCHAR,
goals VARCHAR
) | SELECT league FROM table_name_66 WHERE goals = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
5533,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5533,
65,
586,
1766,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1766,
3274,
586,
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... |
Who was the athlete who had SEMI of 1:43.79? | CREATE TABLE table_name_97 (
name_athlete VARCHAR,
semi VARCHAR
) | SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
564,
834,
26170,
15,
584,
4280,
28027,
6,
4772,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
17893,
113,
141,
180,
25284,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
834,
26170,
15,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
4772,
3274,
96,
536,
10,
4906,
5,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which film has their role as regina ? | CREATE TABLE table_201_34 (
id number,
"year" number,
"film" text,
"role" text,
"notes" text
) | SELECT "film" FROM table_201_34 WHERE "role" = 'regina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
3710,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
9988,
121,
21680,
953,
834,
22772,
834,
3710,
549,
17444,
427,
96,
3491,
15,
121,
3274,
3,
31,
60,
19604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many runtimes does episode 53 have? | CREATE TABLE table_73872 (
"Episode #" real,
"Airdate" text,
"Movie Title and Year" text,
"Main Cast" text,
"Network TV Run Time" text
) | SELECT COUNT("Network TV Run Time") FROM table_73872 WHERE "Episode #" = '53' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4225,
357,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
20162,
5522,
121,
1499,
6,
96,
329,
9881,
15,
11029,
11,
2929,
121,
1499,
6,
96,
21978,
29,
11583,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9688,
1981,
1424,
7113,
2900,
8512,
21680,
953,
834,
4552,
4225,
357,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
1713,
121,
3274,
3,
31,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what were the five most common drugs prescribed during the previous year? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26,
13534,
4350,
21680,
41,
23143,
14196,
7757,
5,
26,
13534,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
... |
What was the release date of the feature with a production number of 1018, BR 1352? | CREATE TABLE table_name_14 (
release_date VARCHAR,
production_number VARCHAR
) | SELECT release_date FROM table_name_14 WHERE production_number = "1018, br 1352" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1576,
833,
13,
8,
1451,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
999,
834,
5525,
1152,
3274,
96,
1714,
2606,
6,
6397,
1179,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when High Points is 'Luis Scola (18)', and when High Rebounds is 'Luis Scola (11)'? | CREATE TABLE table_name_93 (
score VARCHAR,
high_points VARCHAR,
high_rebounds VARCHAR
) | SELECT score FROM table_name_93 WHERE high_points = "luis scola (18)" AND high_rebounds = "luis scola (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2604,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
2604,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
2878,
7,
3,
7,
12600,
9323,
61,
121,
3430,
306,
834,
23768,
3274,
96,
2878,
7,
3,
7,
12600,
4077,
6982,
121,
1,
-100,
-100,
-... |
Who had the high assist in a game number above 77 for Milwaukee? | CREATE TABLE table_10690 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_10690 WHERE "Game" > '77' AND "Team" = 'milwaukee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
2394,
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,
13041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
13041,
121,
21680,
953,
834,
16431,
2394,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
4013,
31,
3430,
96,
18699,
121,
3274,
3,
31,
51,
173,
210,
402,
1050,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest overall number one(s)? | CREATE TABLE table_2074 (
"Number One(s)" real,
"Artist(s)" text,
"Song(s) \u2014 Weeks" text,
"Issue Years" text,
"Whole Weeks" real
) | SELECT MAX("Number One(s)") FROM table_2074 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4581,
41,
96,
567,
5937,
49,
555,
599,
7,
61,
121,
490,
6,
96,
7754,
343,
599,
7,
61,
121,
1499,
6,
96,
134,
2444,
599,
7,
61,
3,
2,
76,
10218,
6551,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
567,
5937,
49,
555,
599,
7,
61,
8512,
21680,
953,
834,
1755,
4581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games had a score of l 91–95 (ot)? | CREATE TABLE table_name_24 (game VARCHAR, score VARCHAR) | SELECT COUNT(game) FROM table_name_24 WHERE score = "l 91–95 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
7261,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
141,
3,
9,
2604,
13,
3,
40,
3,
4729,
104,
3301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
2604,
3274,
96,
40,
3,
4729,
104,
3301,
41,
32,
17,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the total number of Domestic Passengers of airports that contain the word 'London'. | CREATE TABLE pilot (
pilot_id number,
name text,
age number
)
CREATE TABLE airport (
airport_id number,
airport_name text,
total_passengers number,
%_change_2007 text,
international_passengers number,
domestic_passengers number,
transit_passengers number,
aircraft_movements ... | SELECT SUM(domestic_passengers) FROM airport WHERE airport_name LIKE "%London%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
4487,
834,
23,
26,
381,
6,
564,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
3761,
834,
23,
26,
381,
6,
3761,
834,
4350,
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,
180,
6122,
599,
5012,
222,
447,
834,
3968,
4606,
277,
61,
21680,
3761,
549,
17444,
427,
3761,
834,
4350,
8729,
9914,
96,
1454,
29712,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″? | CREATE TABLE table_name_32 (object_type VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) | SELECT object_type FROM table_name_32 WHERE constellation = "orion" AND ngc_number > 2174 AND declination___j2000__ = "°48′06″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
30536,
834,
6137,
584,
4280,
28027,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
30872,
584,
4280,
28027,
6,
3,
1725,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3735,
834,
6137,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
30872,
3274,
96,
2057,
106,
121,
3430,
3,
1725,
75,
834,
5525,
1152,
2490,
1401,
4581,
3430,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
3... |
How many Miss Waters has Canada had? | CREATE TABLE table_30008638_1 (
miss_water INTEGER,
country_territory VARCHAR
) | SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2313,
3840,
3747,
834,
536,
41,
3041,
834,
3552,
3,
21342,
17966,
6,
684,
834,
17,
21301,
10972,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11502,
834,
3552,
61,
21680,
953,
834,
519,
2313,
3840,
3747,
834,
536,
549,
17444,
427,
684,
834,
17,
21301,
10972,
3274,
96,
28811,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of regular judge when host is bernie chan | CREATE TABLE table_1597866_3 (
regular_judge VARCHAR,
host VARCHAR
) | SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
21441,
3539,
834,
519,
41,
1646,
834,
354,
13164,
584,
4280,
28027,
6,
2290,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1646,
5191,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
122,
4885,
834,
354,
13164,
61,
21680,
953,
834,
1808,
21441,
3539,
834,
519,
549,
17444,
427,
2290,
3274,
96,
2703,
23752,
12402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many french restaurant are there in palo alto ? | 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 COUNT(*) FROM location, restaurant WHERE location.city_name = 'palo alto' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id | [
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,
2847,
17161,
599,
1935,
61,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
6459,
32,
4445,
32,
31,
3430,
2062,
5,
12437,
834,
6137,
3274,
3,
31,
89,
60,
5457,
31,
3430,
2062,
5,
23... |
What was the tier versus Manana Shapakidze? | CREATE TABLE table_name_5 (
tier VARCHAR,
opponent_in_the_final VARCHAR
) | SELECT tier FROM table_name_5 WHERE opponent_in_the_final = "manana shapakidze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
3,
3276,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
3276,
3,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
3276,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
348,
152,
9,
3,
7,
9516,
11259,
26,
776,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Darren Manning finished in what position? | CREATE TABLE table_21426 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT MIN("Fin. Pos") FROM table_21426 WHERE "Driver" = 'Darren Manning' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
2688,
41,
96,
371,
77,
5,
13995,
121,
490,
6,
96,
6936,
465,
535,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
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,
3,
17684,
599,
121,
371,
77,
5,
13995,
8512,
21680,
953,
834,
27357,
2688,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
29367,
6362,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party has the district Georgia 7? | CREATE TABLE table_12486 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Party" FROM table_12486 WHERE "District" = 'georgia 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
3840,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
22504,
3840,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
397,
1677,
23,
9,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent? | CREATE TABLE table_name_75 (
date_of_vacancy VARCHAR,
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
) | SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
833,
834,
858,
834,
29685,
584,
4280,
28027,
6,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
29685,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3107,
834,
858,
834,
221,
2274,
1462,
3274,
96,
4246,
3471,
6641,
121,
3430,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
357,
3,
5... |
patients with septic shock can be identified with a clinical construct of sepsis with persisting hypotension requiring vasopressors to maintain mean arterial pressure ( map ) >= 65 mmhg and having a serum lactate level > 2 mmol / l ( 18 mg / dl ) despite adequate volume resuscitation. | CREATE TABLE table_train_48 (
"id" int,
"in_another_study" bool,
"renal_disease" bool,
"receiving_vasopressor" bool,
"sepsis" bool,
"hypotension" bool,
"septic_shock" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_48 WHERE septic_shock = 1 OR (sepsis = 1 AND hypotension = 1 AND receiving_vasopressor = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3707,
41,
96,
23,
26,
121,
16,
17,
6,
96,
77,
834,
152,
9269,
834,
8637,
63,
121,
3,
12840,
40,
6,
96,
1536,
138,
834,
26,
159,
14608,
121,
3,
12840,
40,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3707,
549,
17444,
427,
3,
7,
14629,
834,
7,
19076,
3274,
209,
4674,
41,
7,
15,
102,
7,
159,
3274,
209,
3430,
10950,
13177,
3274,
209,
3430,
4281,
834,
9856,
32,
4715,
127,
3274,
8... |
Who was the visiting team when the home team was Seattle? | CREATE TABLE table_name_22 (
visitor VARCHAR,
home VARCHAR
) | SELECT visitor FROM table_name_22 WHERE home = "seattle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
7019,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3644,
372,
116,
8,
234,
372,
47,
8854,
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,
7019,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
234,
3274,
96,
7,
15,
9,
8692,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find Time and ID , and visualize them by a bar chart, display by the y-axis in ascending please. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT Time, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2900,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16? | CREATE TABLE table_51434 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
) | SELECT "Round of 16" FROM table_51434 WHERE "Quarterfinal" = 'did not advance' AND "Round of 32" = 'n/a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
3710,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
3538,
121,
1499,
6,
96,
448,
32,
1106,
13,
898,
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,
448,
32,
1106,
13,
898,
121,
21680,
953,
834,
755,
2534,
3710,
549,
17444,
427,
96,
5991,
1408,
49,
12406,
121,
3274,
3,
31,
12416,
59,
3245,
31,
3430,
96,
448,
32,
1106,
13,
3538,
121,
3274,
3,
31,
29,
87,
... |
What are the product id and product type of the cheapest product? | CREATE TABLE products (product_id VARCHAR, product_type_code VARCHAR, product_price VARCHAR) | SELECT product_id, product_type_code FROM products ORDER BY product_price LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
23,
26,
584,
4280,
28027,
6,
556,
834,
6137,
834,
4978,
584,
4280,
28027,
6,
556,
834,
102,
4920,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
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,
556,
834,
23,
26,
6,
556,
834,
6137,
834,
4978,
21680,
494,
4674,
11300,
272,
476,
556,
834,
102,
4920,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest position of club lietava-2 jonava, which has more than 12 points and more than 7 wins? | CREATE TABLE table_name_75 (position INTEGER, wins VARCHAR, points VARCHAR, club VARCHAR) | SELECT MAX(position) FROM table_name_75 WHERE points > 12 AND club = "lietava-2 jonava" AND wins > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
4718,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
979,
2490,
586,
3430,
1886,
3274,
96,
1896,
17,
8644,
4949,
3,
15429,
8644,
121,
3430,
9204,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose insurance is medicaid and procedure icd9 code is 7761? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.icd9_code = "7761" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which nation has a Silver of 1, a Gold of 0, and a Total of 1? | CREATE TABLE table_70669 (
"Rank" text,
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text
) | SELECT "Nation" FROM table_70669 WHERE "Silver" = '1' AND "Gold" = '0' AND "Total" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
948,
3951,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
257,
121,
21680,
953,
834,
2518,
948,
3951,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
3430,
96,
23576,
121,
3274,
3,
31,
632,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
536,
31,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.