NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many patients with an emergency admission type had the diagnosis icd9 code 2763? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.icd9_code = "2763" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the last round the team drafted? | CREATE TABLE table_19787 (
"Round" real,
"Choice" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text
) | SELECT MAX("Round") FROM table_19787 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4225,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
3541,
32,
867,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
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,
448,
32,
1106,
8512,
21680,
953,
834,
27181,
4225,
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,
... |
had patient 031-3355 been given a electrolyte administration - oral procedure since 2103? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND treatment.treatmentname = 'electrolyte administration - oral... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Which country has the most nuclear station? | CREATE TABLE nuclear_power_plants (
id text,
name text,
latitude text,
longitude text,
country text,
status text,
reactortype text,
reactormodel text,
constructionstartat text,
operationalfrom text,
operationalto text,
capacity text,
lastupdatedat text,
source tex... | SELECT country FROM nuclear_power_plants GROUP BY country ORDER BY COUNT(name) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6414,
834,
6740,
834,
14925,
7,
41,
3,
23,
26,
1499,
6,
564,
1499,
6,
50,
6592,
1499,
6,
307,
20341,
1499,
6,
684,
1499,
6,
2637,
1499,
6,
24715,
6137,
1499,
6,
24715,
21770,
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,
684,
21680,
6414,
834,
6740,
834,
14925,
7,
350,
4630,
6880,
272,
476,
684,
4674,
11300,
272,
476,
2847,
17161,
599,
4350,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the names of customers who never placed an order. | CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
CREATE TABLE customer_orders (
customer_id VARCHAR
) | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
4350,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
9397,
7,
41,
884,
834,
23,
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,
884,
834,
4350,
21680,
722,
262,
4,
30416,
3,
23143,
14196,
3,
17,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9397,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834... |
What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes? | CREATE TABLE table_21621 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT MAX("Series #") FROM table_21621 WHERE "Directed by" = 'Laura Innes' AND "Season #" < '7.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
2658,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
12106,
7,
1713,
8512,
21680,
953,
834,
27184,
2658,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
3612,
2414,
86,
1496,
31,
3430,
96,
134,
15,
9,
739,
1713,
121,
3,
2,
3,
31,
263... |
Which country is pick# 136 from? | CREATE TABLE table_30874 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Nationality" FROM table_30874 WHERE "Pick #" = '136' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4225,
591,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24732,
485,
121,
21680,
953,
834,
1458,
4225,
591,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
23459,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the rank# of the opponent when there was 93,829 in attendance? | CREATE TABLE table_59321 (
"Date" text,
"Time" text,
"Opponent#" text,
"Rank #" text,
"Result" text,
"Attendance" text
) | SELECT "Rank #" FROM table_59321 WHERE "Attendance" = '93,829' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
2658,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
4663,
121,
1499,
6,
96,
22557,
1713,
121,
1499,
6,
96,
20119,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
1713,
121,
21680,
953,
834,
3390,
519,
2658,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4271,
6,
927,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the date when the score is 115-93? | CREATE TABLE table_name_68 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_68 WHERE score = "115-93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
116,
8,
2604,
19,
3,
15660,
18,
4271,
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,
833,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2604,
3274,
96,
15660,
18,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the home team of the game where New Jersey was the visitor team and the record was 11-35-12? | CREATE TABLE table_name_33 (
home VARCHAR,
visitor VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_33 WHERE visitor = "new jersey" AND record = "11-35-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
13,
8,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
7019,
3274,
96,
5534,
13426,
121,
3430,
1368,
3274,
96,
2596,
18,
2469,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is from south korea and has a heat less than 3? | CREATE TABLE table_63040 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_63040 WHERE "Heat" < '3' AND "Nationality" = 'south korea' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
2445,
41,
96,
3845,
144,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26106,
2445,
549,
17444,
427,
96,
3845,
144,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
7,
670,
107,
3,
5543,
15,
9,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the pick # of cfl team bc lions (7) | CREATE TABLE table_26996293_7 (
pick__number VARCHAR,
cfl_team VARCHAR
) | SELECT pick__number FROM table_26996293_7 WHERE cfl_team = "BC Lions (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
4056,
4271,
834,
940,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
2688,
3264,
4056,
4271,
834,
940,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
7645,
10371,
7,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the region for georgia | CREATE TABLE table_name_8 (region VARCHAR, state VARCHAR) | SELECT region FROM table_name_8 WHERE state = "georgia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
18145,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1719,
21,
873,
1677,
23,
9,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
538,
3274,
96,
397,
1677,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Timo Lehkonen's highest pick number? | CREATE TABLE table_2850912_5 (
pick__number INTEGER,
player VARCHAR
) | SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
755,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4485,
32,
312,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
755,
549,
17444,
427,
1959,
3274,
96,
382,
603,
32,
312,
107,
4470,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the date of the week 12 game whose attendance was larger than 64,721? | CREATE TABLE table_9306 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_9306 WHERE "Attendance" > '64,721' AND "Week" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
5176,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4271,
5176,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
4389,
6,
940,
2658,
31,
3430,
96,
518,
10266,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the series # on airdate September 21, 2002? | CREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR) | SELECT series__number FROM table_2655016_9 WHERE original_air_date = "September 21, 2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
17147,
2938,
834,
1298,
41,
10833,
7,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
834,
834,
5525,
1152,
21680,
953,
834,
2688,
17147,
2938,
834,
1298,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
27652,
12026,
4407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the accession number of the protein with the common name Purple Sea Urchin? | CREATE TABLE table_name_5 (accession_number VARCHAR, common_name VARCHAR) | SELECT accession_number FROM table_name_5 WHERE common_name = "purple sea urchin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
9,
75,
19988,
834,
5525,
1152,
584,
4280,
28027,
6,
1017,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4991,
1938,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4991,
1938,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1017,
834,
4350,
3274,
96,
3791,
4788,
2805,
3,
450,
5675,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor? | CREATE TABLE table_name_84 (
constructor VARCHAR,
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT constructor FROM table_name_84 WHERE laps > 17 AND grid < 7 AND time_retired = "+ 1:35.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
6774,
127,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
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,
6774,
127,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
14941,
7,
2490,
1003,
3430,
8634,
3,
2,
489,
3430,
97,
834,
10682,
1271,
3274,
96,
1220,
209,
10,
519,
25134,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the lowest goal difference when the position is higher than 16? | CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER) | SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
839,
138,
834,
26,
99,
11788,
3,
21342,
17966,
6,
1102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
1288,
1750,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
138,
834,
26,
99,
11788,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1102,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When cancelled is the fastest qualifying where is the location? | CREATE TABLE table_28611 (
"Round" real,
"Location" text,
"Country" text,
"Date" text,
"Fastest Qualifying" text,
"Winning Pilot" text,
"Winning Aircraft" text
) | SELECT "Location" FROM table_28611 WHERE "Fastest Qualifying" = 'Cancelled' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
2596,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
371,
9,
7,
4377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
357,
3840,
2596,
549,
17444,
427,
96,
371,
9,
7,
4377,
2415,
138,
8587,
121,
3274,
3,
31,
254,
663,
40,
1361,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Uni numbers have Bats of s, and a Position of utl? | CREATE TABLE table_name_31 (uni_number VARCHAR, bats VARCHAR, position VARCHAR) | SELECT COUNT(uni_number) FROM table_name_31 WHERE bats = "s" AND position = "utl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
202,
23,
834,
5525,
1152,
584,
4280,
28027,
6,
3795,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
202,
23,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3795,
7,
3274,
96,
7,
121,
3430,
1102,
3274,
96,
76,
17,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the HDTV status of the r-light television service? | CREATE TABLE table_name_12 (hdtv VARCHAR, television_service VARCHAR) | SELECT hdtv FROM table_name_12 WHERE television_service = "r-light" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
107,
26,
17,
208,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3726,
4562,
2637,
13,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
52,
18,
2242,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? | CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR) | SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = "belgica mountains" AND name = "mount launoit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
138,
6592,
834,
834,
4401,
7,
834,
3,
21342,
17966,
6,
620,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
138,
6592,
834,
834,
4401,
7,
834,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
620,
3274,
96,
2370,
122,
2617,
8022,
121,
3430,
564,
3274,
96,
11231,
50,
202,
32,
155,
121,
1,
-100,
-100... |
what is the age and date of birth of patient id 16438? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.subject_id = "16438" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
545,
6,
14798,
5,
26,
32,
115,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
26987,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest Goals, when Played is greater than 30? | CREATE TABLE table_name_31 (goals_for INTEGER, played INTEGER) | SELECT MIN(goals_for) FROM table_name_31 WHERE played > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
839,
5405,
834,
1161,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
17916,
7,
6,
116,
2911,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1944,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the rank of the person who swam in Lane 7 with a time of 2:25.86? | CREATE TABLE table_67043 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT SUM("Rank") FROM table_67043 WHERE "Time" = '2:25.86' AND "Lane" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
632,
4906,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
3708,
632,
4906,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
357,
10,
1828,
5,
3840,
31,
3430,
96,
434,
152,
15,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
-... |
What is Time, when Meet is 'Duel in the Pool', and when Date is '19 December 2009'? | CREATE TABLE table_60952 (
"Event" text,
"Time" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Location" text
) | SELECT "Time" FROM table_60952 WHERE "Meet" = 'duel in the pool' AND "Date" = '19 december 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3301,
357,
41,
96,
427,
2169,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
329,
15,
15,
17,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3328,
3301,
357,
549,
17444,
427,
96,
329,
15,
15,
17,
121,
3274,
3,
31,
1259,
15,
40,
16,
8,
2201,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2294,
20,
75,
18247,
2464,
31,
1,
... |
Name the railway when class is j19 | CREATE TABLE table_15608800_2 (
railway VARCHAR,
class VARCHAR
) | SELECT railway FROM table_15608800_2 WHERE class = "J19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
4018,
6192,
834,
357,
41,
14421,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
14421,
116,
853,
19,
3,
354,
2294,
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,
14421,
21680,
953,
834,
25463,
4018,
6192,
834,
357,
549,
17444,
427,
853,
3274,
96,
683,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the player with the largest number of votes? | CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR) | SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
15800,
49,
834,
4350,
584,
4280,
28027,
6,
3152,
1422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
28,
8,
2015,
381,
13,
11839,
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,
12387,
834,
4350,
21680,
1959,
4674,
11300,
272,
476,
3152,
1422,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks', and count them by a bar chart, and could you list from high to low by the X-axis? | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee ORDER BY Nominee DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
1983,
127,
834,
4309,
16,
17,
6,
5570,
1499,
6,
22307,
834,
4309,
16,
17,
6,
20087,
1499,
6,
20610,
1499,
6,
1246,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
465,
8695,
15,
6,
2847,
17161,
599,
4168,
8695,
15,
61,
21680,
4183,
549,
17444,
427,
3677,
3274,
96,
382,
106,
63,
3677,
121,
4674,
3677,
3274,
96,
254,
109,
15990,
660,
5206,
7,
121,
350,
4630,
6880,
272,
476,
4... |
How many wins in the 4th position? | CREATE TABLE table_73179 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT MIN("Wins") FROM table_73179 WHERE "Position" = '4th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
26593,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4552,
26593,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
591,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Suffix for the Group of Benzyl? | CREATE TABLE table_name_73 (suffix VARCHAR, group VARCHAR) | SELECT suffix FROM table_name_73 WHERE group = "benzyl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
7,
2999,
2407,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
180,
2999,
2407,
21,
8,
1531,
13,
3,
15349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10286,
226,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
563,
3274,
96,
19738,
63,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what are the draft pick numbers and draft classes for players who play the Defender position?, and list by the Draft_Class from high to low. | CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
... | SELECT Draft_Class, Draft_Pick_Number FROM match_season WHERE Position = "Defender" ORDER BY Draft_Class DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
372,
41,
2271,
834,
23,
26,
16,
17,
6,
5570,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
834,
9476,
41,
7960,
490,
6,
12387,
1499,
6,
14258,
1499,
6,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
21409,
834,
21486,
6,
21409,
834,
345,
3142,
834,
567,
5937,
49,
21680,
1588,
834,
9476,
549,
17444,
427,
14258,
3274,
96,
16196,
3868,
121,
4674,
11300,
272,
476,
21409,
834,
21486,
309,
25067,
1,
-100,
-100,
-100,
-... |
What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface? | CREATE TABLE table_2151643_3 (
opponents VARCHAR,
surface VARCHAR,
outcome VARCHAR,
partner VARCHAR
) | SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = "Winner" AND partner = "John Lloyd" AND surface = "Clay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
2938,
4906,
834,
519,
41,
16383,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
32,
102,
9977,
7,
61,
21680,
953,
834,
357,
1808,
2938,
4906,
834,
519,
549,
17444,
427,
6138,
3274,
96,
18455,
687,
121,
3430,
2397,
3274,
96,
18300,
21847,
121,
3430,
1774,
3274,
96,
254,
5595,
1... |
What is the population density of the administrative division with a population in 2010 of 264170 according to the census? | CREATE TABLE table_73336 (
"Administrative division" text,
"Area (km\u00b2) 2005" text,
"Population 2010 Census" real,
"Population 2011 SIAK Database" text,
"Population density (/km\u00b2 2010)" real
) | SELECT "Population density (/km\u00b2 2010)" FROM table_73336 WHERE "Population 2010 Census" = '264170' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
3420,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
3105,
121,
1499,
6,
96,
27773,
7830,
2735,
23086,
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,
27773,
7830,
11048,
41,
87,
5848,
2,
76,
1206,
115,
357,
2735,
61,
121,
21680,
953,
834,
4552,
519,
3420,
549,
17444,
427,
96,
27773,
7830,
2735,
23086,
121,
3274,
3,
31,
2688,
4853,
2518,
31,
1,
-100,
-100,
-... |
What was the date of the game held at Invesco Field? | CREATE TABLE table_14548 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"NFL Recap" text,
"Record" text,
"Attendance" text
) | SELECT "Date" FROM table_14548 WHERE "Game site" = 'invesco field' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3707,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
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,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
20987,
3707,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
77,
162,
3523,
1057,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of Declan Donnellan's nomination? | CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_23 WHERE nominee = "declan donnellan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
28596,
29,
3,
30314,
152,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
21077,
3274,
96,
221,
4651,
29,
8551,
195,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the call sign for Thunder 106.1? | CREATE TABLE table_name_62 (call_sign VARCHAR, name VARCHAR) | SELECT call_sign FROM table_name_62 WHERE name = "thunder 106.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
580,
1320,
21,
18114,
335,
23769,
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,
580,
834,
6732,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
564,
3274,
96,
189,
7248,
335,
23769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Event has a Round of 1, and a Record of 2 0? | CREATE TABLE table_name_70 (
event VARCHAR,
round VARCHAR,
record VARCHAR
) | SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
605,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8042,
65,
3,
9,
9609,
13,
1914... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1751,
3274,
96,
536,
121,
3430,
1368,
3274,
96,
357,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the hometown of the players for de la salle high school | CREATE TABLE table_17092 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Hometown" FROM table_17092 WHERE "School" = 'De La Salle High School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4198,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
3540,
121,
21680,
953,
834,
2517,
4198,
357,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
2962,
325,
24364,
1592,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record of the game on May 6? | CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_4 WHERE date = "may 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
467,
30,
932,
431,
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,
1368,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
13726,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
body mass index > 27 and < 43 kg / m2 | CREATE TABLE table_train_245 (
"id" int,
"renal_disease" bool,
"diabetic" string,
"creatinine_clearance_cl" float,
"smoking" bool,
"kidney_disease" bool,
"body_mass_index_bmi" float,
"fasting_glucose" int,
"NOUSE" float
) | SELECT * FROM table_train_245 WHERE body_mass_index_bmi > 27 AND body_mass_index_bmi < 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2128,
41,
96,
23,
26,
121,
16,
17,
6,
96,
1536,
138,
834,
26,
159,
14608,
121,
3,
12840,
40,
6,
96,
26,
23,
9,
346,
1225,
121,
6108,
6,
96,
5045,
144,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2128,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2307,
3430,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
3,
2,
8838,
1,
-100,
-100,
-100,
... |
Name the least wins | CREATE TABLE table_3095 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT MIN("Wins") FROM table_3095 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3301,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
1458,
3301,
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,
... |
What is the number of partners for the city ranked under 294, total over 264, largest city of Chicago, and other over 46? | CREATE TABLE table_64054 (
"Rank\u2003" real,
"Largest U.S. City\u2003" text,
"Total" real,
"Partners\u2003" real,
"Other" real
) | SELECT "Partners\u2003" FROM table_64054 WHERE "Rank\u2003" < '294' AND "Total" > '264' AND "Largest U.S. City\u2003" = 'chicago' AND "Other" > '46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
5062,
41,
96,
22557,
2,
76,
23948,
121,
490,
6,
96,
434,
8240,
222,
412,
5,
134,
5,
896,
2,
76,
23948,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
13725,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
687,
7,
2,
76,
23948,
121,
21680,
953,
834,
23714,
5062,
549,
17444,
427,
96,
22557,
2,
76,
23948,
121,
3,
2,
3,
31,
357,
4240,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
26755,
31,
3430,
96,
434,
... |
What is the total population of American Samoa (US) that has less than 16,280 km arable land, less than 240 km land area, and has a population density of more than 291? | CREATE TABLE table_46090 (
"Country" text,
"Population (July 2005 est.)" real,
"Land Area (km\u00b2)" real,
"% of arable land (2005 est.)" text,
"Arable Land (km\u00b2)" real,
"Population Density (pop per km\u00b2)" real
) | SELECT COUNT("Population (July 2005 est.)") FROM table_46090 WHERE "Arable Land (km\u00b2)" < '16,280' AND "Land Area (km\u00b2)" < '240' AND "Country" = 'american samoa (us)' AND "Population Density (pop per km\u00b2)" > '291' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
2394,
41,
96,
10628,
651,
121,
1499,
6,
96,
27773,
7830,
41,
683,
83,
63,
3105,
259,
5,
61,
121,
490,
6,
96,
434,
232,
5690,
41,
5848,
2,
76,
1206,
115,
7318,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
27773,
7830,
41,
683,
83,
63,
3105,
259,
5,
61,
8512,
21680,
953,
834,
25991,
2394,
549,
17444,
427,
96,
188,
52,
179,
2216,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3,
2,
3,
31,
2938,
6,
... |
What is the largest pick by the Baltimore Colts in a round later than 10? | CREATE TABLE table_9403 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT MAX("Pick") FROM table_9403 WHERE "NFL Club" = 'baltimore colts' AND "Round" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
4928,
41,
96,
15800,
49,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12619,
434,
1949,
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,
345,
3142,
8512,
21680,
953,
834,
4240,
4928,
549,
17444,
427,
96,
12619,
434,
1949,
121,
3274,
3,
31,
3849,
17,
23,
3706,
7632,
17,
7,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
1714,
31,... |
which election was the first to reach over 40 % of the popular vote ? | CREATE TABLE table_203_558 (
id number,
"election" number,
"number of\npopular votes" number,
"% of\npopular votes" number,
"total\nelected seats" text,
"+/-" number
) | SELECT MIN("election") FROM table_203_558 WHERE "% of\npopular votes" > 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3449,
41,
3,
23,
26,
381,
6,
96,
15,
12252,
121,
381,
6,
96,
5525,
1152,
13,
2,
29,
27302,
11839,
121,
381,
6,
96,
1454,
13,
2,
29,
27302,
11839,
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,
3,
17684,
599,
121,
15,
12252,
8512,
21680,
953,
834,
23330,
834,
755,
3449,
549,
17444,
427,
96,
1454,
13,
2,
29,
27302,
11839,
121,
2490,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player played center in 2010? | CREATE TABLE table_32791 (
"Year" real,
"Player" text,
"Country" text,
"Team" text,
"Position" text
) | SELECT "Player" FROM table_32791 WHERE "Position" = 'center' AND "Year" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
4729,
41,
96,
476,
2741,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
519,
2555,
4729,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
14926,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which record is dated April 8? | CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_60 WHERE date = "april 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
19,
3,
14134,
1186,
505,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Alex Tagliani's qual 1? | CREATE TABLE table_name_89 (
qual_1 VARCHAR,
name VARCHAR
) | SELECT qual_1 FROM table_name_89 WHERE name = "alex tagliani" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3,
11433,
834,
536,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5104,
3284,
9928,
23,
31,
7,
3,
11433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
11433,
834,
536,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
564,
3274,
96,
138,
994,
7860,
9928,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5? | CREATE TABLE table_name_65 (fcc_info VARCHAR, city_of_license VARCHAR, frequency_mhz VARCHAR) | SELECT fcc_info FROM table_name_65 WHERE city_of_license = "burley, idaho" AND frequency_mhz = 89.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
89,
75,
75,
834,
9583,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
75,
75,
834,
9583,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
5808,
1306,
6,
3,
23,
26,
9,
107,
32,
121,
3430,
7321,
834,
51,
107,
172,
3274,
505,
22321,
1,
... |
What batting style corresponds to a bowling style of right arm medium for Stuart Williams? | CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR) | SELECT batting_style FROM table_name_32 WHERE bowling_style = "right arm medium" AND player = "stuart williams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
27759,
834,
4084,
584,
4280,
28027,
6,
3047,
53,
834,
4084,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
27759... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
27759,
834,
4084,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3047,
53,
834,
4084,
3274,
96,
3535,
2939,
2768,
121,
3430,
1959,
3274,
96,
7,
17,
76,
1408,
56,
23,
265,
7,
121,
1,
-100,
-100,
-100,
-100,
... |
Name the date for chris evert opponent and carpet surface | CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR, surface VARCHAR) | SELECT date FROM table_name_98 WHERE opponent = "chris evert" AND surface = "carpet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3,
524,
52,
159,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
15264,
3274,
96,
524,
52,
159,
664,
17,
121,
3430,
1774,
3274,
96,
1720,
4995,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the council tax ids and their related cmi cross references of all the parking fines. | CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) | SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3078,
834,
13536,
7,
41,
509,
15254,
40,
834,
14727,
834,
23,
26,
584,
4280,
28027,
6,
2446,
23,
834,
11465,
834,
60,
89,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6098,
834,
14727,
834,
23,
26,
6,
2446,
23,
834,
11465,
834,
60,
89,
834,
23,
26,
21680,
3078,
834,
13536,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Year won for the player with a larger than 4 To par and less the 157 Total? | CREATE TABLE table_name_4 (year_won VARCHAR, to_par VARCHAR, total VARCHAR) | SELECT year_won FROM table_name_4 WHERE to_par > 4 AND total < 157 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1201,
834,
210,
106,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2929... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
834,
210,
106,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
12,
834,
1893,
2490,
314,
3430,
792,
3,
2,
3,
27452,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many times was w. arthur winstead first elected? | CREATE TABLE table_1342218_24 (
first_elected VARCHAR,
incumbent VARCHAR
) | SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "W. Arthur Winstead" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
2266,
41,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
3,
210,
5,
768,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2884,
2606,
834,
2266,
549,
17444,
427,
28406,
3274,
96,
518,
5,
13962,
4871,
11931,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return me the paper after 2000 in Databases area with the most citations . | CREATE TABLE author (
aid int,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name... | SELECT publication.title FROM domain, domain_publication, publication WHERE domain.did = domain_publication.did AND domain.name = 'Databases' AND publication.pid = domain_publication.pid AND publication.year > 2000 ORDER BY publication.citation_num DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
3052,
16,
17,
6,
22844,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
6,
3,
32,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3303,
834,
25340,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5707,
5,
21869,
21680,
3303,
6,
3303,
834,
15727,
257,
6,
5707,
549,
17444,
427,
3303,
5,
12416,
3274,
3303,
834,
15727,
257,
5,
12416,
3430,
3303,
5,
4350,
3274,
3,
31,
20367,
10925,
7,
31,
3430,
5707,
5,
12417,
... |
count the number of patients whose marital status is married and year of death is less than or equal to 2165? | 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 WHERE demographic.marital_status = "MARRIED" AND demographic.dod_year <= "2165.0" | [
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,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
26,
32,
26,
834,
1... |
what is the population where the area (sq. mi.) is area (sq. mi.)? | CREATE TABLE table_12108_1 (
population VARCHAR
) | SELECT population FROM table_12108_1 WHERE "area__sq_mi_" = "area__sq_mi_" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
16169,
834,
536,
41,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2074,
213,
8,
616,
41,
7,
1824,
5,
1337,
5,
61,
19,
616,
41,
7,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
21680,
953,
834,
2122,
16169,
834,
536,
549,
17444,
427,
96,
498,
834,
834,
7,
1824,
834,
51,
23,
834,
121,
3274,
96,
498,
834,
834,
7,
1824,
834,
51,
23,
834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many flights do we have? | CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE certificate (
eid number,
aid number
)... | SELECT COUNT(*) FROM flight | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
3052,
381,
6,
564,
1499,
6,
2357,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
6,
5233,
1499,
6,
3954,
1499,
6,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3777,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many totals have golds of 3, silvers of 3, and bronzes under 3? | CREATE TABLE table_name_37 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT SUM(total) FROM table_name_37 WHERE gold = "3" AND bronze < "3" AND silver = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
235,
1947,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2045,
3274,
96,
519,
121,
3430,
13467,
3,
2,
96,
519,
121,
3430,
4294,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is difference in points between valentino rossi and dani pedrosa ? | CREATE TABLE table_203_166 (
id number,
"pos" text,
"no" number,
"rider" text,
"manufacturer" text,
"laps" number,
"time" text,
"grid" number,
"points" number
) | SELECT (SELECT "points" FROM table_203_166 WHERE "rider" = 'valentino rossi') - (SELECT "points" FROM table_203_166 WHERE "rider" = 'dani pedrosa') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26811,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
2700,
7,
121,
21680,
953,
834,
23330,
834,
26811,
549,
17444,
427,
96,
4055,
49,
121,
3274,
3,
31,
15592,
77,
32,
3,
1859,
7,
23,
31,
61,
3,
18,
41,
23143,
14196,
96,
2700,
7,
121,
21680,
... |
Name the air date that chris long directed | CREATE TABLE table_18569389_1 (original_air_date VARCHAR, directed_by VARCHAR) | SELECT original_air_date FROM table_18569389_1 WHERE directed_by = "Chris Long" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4834,
4271,
3914,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
799,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2606,
4834,
4271,
3914,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
3541,
52,
159,
3230,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are with procedure icd9 code 17? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average goals against when there are more than 42 played? | CREATE TABLE table_name_55 (goals_against INTEGER, played INTEGER) | SELECT AVG(goals_against) FROM table_name_55 WHERE played > 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1766,
581,
116,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1944,
2490,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20? | CREATE TABLE table_name_50 (
fa_cup INTEGER,
total VARCHAR,
fa_trophy VARCHAR,
club VARCHAR
) | SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = "stalybridge celtic" AND total < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
3,
89,
9,
834,
4658,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
3,
89,
9,
834,
17,
29006,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
89,
9,
834,
4658,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
3,
89,
9,
834,
17,
29006,
2490,
3,
632,
3430,
1886,
3274,
96,
2427,
120,
9818,
1503,
1225,
121,
3430,
792,
3,
2,
460,
1,
... |
Return a bar chart showing the number of documents for each document type name, show names in asc order please. | CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARC... | SELECT Document_Type_Name, COUNT(Document_Type_Name) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name ORDER BY Document_Type_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
12532,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
2962,
5756,
7,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
25160,
834,
23954,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
25160,
834,
23954,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
3... |
history of periodic paralysis associated with carbohydrate loading; | CREATE TABLE table_train_31 (
"id" int,
"allergy_to_insulin" bool,
"active_infection" bool,
"periodic_paralysis" bool,
"receiving_continuous_intravenous_inotropic_support" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_31 WHERE periodic_paralysis = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3341,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11211,
122,
63,
834,
235,
834,
15953,
77,
121,
3,
12840,
40,
6,
96,
6645,
834,
77,
17856,
121,
3,
12840,
40,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3341,
549,
17444,
427,
16855,
834,
6583,
21091,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the the incumbent with candidates being ben cravens (d) unopposed | CREATE TABLE table_1342331_5 (
incumbent VARCHAR,
candidates VARCHAR
) | SELECT incumbent FROM table_1342331_5 WHERE candidates = "Ben Cravens (D) Unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3341,
834,
755,
41,
28406,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
8,
28406,
28,
4341,
271,
36,
29,
2782... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
23747,
2773,
3341,
834,
755,
549,
17444,
427,
4341,
3274,
96,
279,
35,
8427,
9,
1926,
7,
41,
308,
61,
597,
28236,
3843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the championship during the match with the opponent of richard fromberg? | CREATE TABLE table_name_8 (championship VARCHAR, opponent VARCHAR) | SELECT championship FROM table_name_8 WHERE opponent = "richard fromberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10183,
383,
8,
1588,
28,
8,
15264,
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,
10183,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
15264,
3274,
96,
3723,
986,
45,
2235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28 29 june, and a Type with scheduled? | CREATE TABLE table_54601 (
"Year" real,
"Date" text,
"Type" text,
"President" text,
"Location" text
) | SELECT "Location" FROM table_54601 WHERE "Year" > '2011' AND "President" = 'herman van rompuy (2nd term)' AND "Date" = '28–29 june' AND "Type" = 'scheduled' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3328,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
5062,
3328,
536,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
13907,
31,
3430,
96,
345,
15704,
121,
3274,
3,
31,
760,
348,
4049,
3,
3522,
4987,
63,
4743,
727,
165... |
what is the last intersecting road on the chart ? | CREATE TABLE table_204_763 (
id number,
"county" text,
"km" number,
"intersecting road" text,
"notes" text,
"coordinates" text
) | SELECT "intersecting road" FROM table_204_763 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3959,
519,
41,
3,
23,
26,
381,
6,
96,
13362,
63,
121,
1499,
6,
96,
5848,
121,
381,
6,
96,
3870,
7549,
1222,
1373,
121,
1499,
6,
96,
7977,
7,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3870,
7549,
1222,
1373,
121,
21680,
953,
834,
26363,
834,
3959,
519,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the minimum age of patients whose marital status is divorced and primary disease is overdose? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "OVERDOSE" | [
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,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
23288,
308,
22177,
... |
provide the number of patients whose admission type is elective and diagnoses icd9 code is 4373? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.icd9_code = "4373" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. | CREATE TABLE table_10798421_1 (
village__german_ VARCHAR,
percent_of_slovenes_1951 VARCHAR
) | SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = "96.9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
41,
3309,
834,
834,
1304,
348,
834,
584,
4280,
28027,
6,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
5553,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3309,
834,
834,
1304,
348,
834,
21680,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
549,
17444,
427,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
5553,
3274,
96,
4314,
5,
7561,
121,
1,
-100,
-100,
-100,
-100... |
Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club? | CREATE TABLE table_1566852_8 (
centerfold_model VARCHAR,
pictorials VARCHAR
) | SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Kimberly Bell , Bunnies of the New Playboy Club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
927,
41,
1530,
10533,
834,
21770,
584,
4280,
28027,
6,
6686,
17,
11929,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1530,
10533,
834,
21770,
21680,
953,
834,
25463,
3651,
5373,
834,
927,
549,
17444,
427,
6686,
17,
11929,
7,
3274,
96,
439,
603,
1152,
120,
5377,
3,
6,
6100,
14347,
13,
8,
368,
2911,
7531,
1949,
121,
1,
-100,
-100,
... |
What is the name of the city with a capacity of 41,311? | CREATE TABLE table_name_97 (city VARCHAR, capacity VARCHAR) | SELECT city FROM table_name_97 WHERE capacity = "41,311" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
6726,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
690,
28,
3,
9,
2614,
13,
8798,
6,
519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2614,
3274,
96,
4853,
6,
519,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the permitted length of stay in the Jersey territory? | CREATE TABLE table_25965003_3 (
length_of_stay_permitted VARCHAR,
countries_and_territories VARCHAR
) | SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "Jersey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4314,
2560,
519,
834,
519,
41,
2475,
834,
858,
834,
21545,
834,
883,
16030,
584,
4280,
28027,
6,
1440,
834,
232,
834,
449,
52,
15467,
15,
7,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2475,
834,
858,
834,
21545,
834,
883,
16030,
21680,
953,
834,
1828,
4314,
2560,
519,
834,
519,
549,
17444,
427,
1440,
834,
232,
834,
449,
52,
15467,
15,
7,
3274,
96,
683,
277,
15,
63,
121,
1,
-100,
-100,
-100,
-10... |
give me the number of patients whose admission type is emergency and diagnoses icd9 code is 6140? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.icd9_code = "6140" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What game was located at the Los Angeles Memorial Sports Arena? | CREATE TABLE table_name_60 (game VARCHAR, location_attendance VARCHAR) | SELECT game FROM table_name_60 WHERE location_attendance = "los angeles memorial sports arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
7261,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
47,
1069,
44,
8,
3144,
4975,
9107,
5716,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
2298,
11831,
15,
7,
15827,
2100,
15134,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the simplified Chinese name for the 9th album? | CREATE TABLE table_name_21 (chinese__simplified_ VARCHAR, album_number VARCHAR) | SELECT chinese__simplified_ FROM table_name_21 WHERE album_number = "9th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1436,
1496,
15,
834,
834,
7,
10296,
3676,
834,
584,
4280,
28027,
6,
2306,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1436,
1496,
15,
834,
834,
7,
10296,
3676,
834,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2306,
834,
5525,
1152,
3274,
96,
1298,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the number of completion students in each day and group by date of completion in a line chart, and show from high to low by the X-axis please. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Students (
stud... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment GROUP BY date_of_completion ORDER BY date_of_completion DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7699,
109,
1575,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7699,
109,
1575,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
350,
4630,
6880,
272,
476,
833,
834,
858,
834,
7699,
109,
... |
What is Year(s) Won, when Total is less than 285? | CREATE TABLE table_name_48 (year_s__won VARCHAR, total INTEGER) | SELECT year_s__won FROM table_name_48 WHERE total < 285 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1201,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2929,
599,
7,
61,
549,
106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
7,
834,
834,
210,
106,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
792,
3,
2,
204,
4433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many of the patients with exteriorization of small intestine remained admitted in hospital for more than 29 days? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "29" AND procedures.long_title = "Exteriorization of small intestine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which denomination has the highest margin ? | CREATE TABLE table_203_857 (
id number,
"denomination" text,
"1870" text,
"1880" text,
"1890" text,
"1900" text,
"1910" text,
"1920" text,
"1930" text,
"1941" text,
"1949" text,
"2001" text,
"2011" text
) | SELECT "denomination" FROM table_203_857 ORDER BY "1870" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
3436,
41,
3,
23,
26,
381,
6,
96,
537,
32,
14484,
121,
1499,
6,
96,
2606,
2518,
121,
1499,
6,
96,
2606,
2079,
121,
1499,
6,
96,
2606,
2394,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
537,
32,
14484,
121,
21680,
953,
834,
23330,
834,
927,
3436,
4674,
11300,
272,
476,
96,
2606,
2518,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of wins for Port Fairy with under 1510 against? | CREATE TABLE table_name_2 (
wins INTEGER,
club VARCHAR,
against VARCHAR
) | SELECT SUM(wins) FROM table_name_2 WHERE club = "port fairy" AND against < 1510 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
9204,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
9204,
21,
3625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1886,
3274,
96,
1493,
19270,
121,
3430,
581,
3,
2,
627,
1714,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the leading scorer of the game where the Knicks were the home team and the Warriors were the visiting team? | CREATE TABLE table_10912 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Leading scorer" FROM table_10912 WHERE "Home" = 'knicks' AND "Visitor" = 'warriors' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
2122,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
53,
2604,
52,
121,
21680,
953,
834,
17304,
2122,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
157,
11191,
7,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
210,
10269,
127,
7,
31,
1,
-10... |
what is the class when the quantity perserved is 0 and the quantity made is 5? | CREATE TABLE table_name_78 (
class VARCHAR,
quantity_preserved VARCHAR,
quantity_made VARCHAR
) | SELECT class FROM table_name_78 WHERE quantity_preserved = "0" AND quantity_made = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
853,
584,
4280,
28027,
6,
8708,
834,
7197,
49,
162,
26,
584,
4280,
28027,
6,
8708,
834,
4725,
584,
4280,
28027,
3,
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,
1... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
8708,
834,
7197,
49,
162,
26,
3274,
96,
632,
121,
3430,
8708,
834,
4725,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many notes are there for the Devon Alexander vs. Shawn Porter fight? | CREATE TABLE table_28151 (
"Date" text,
"Location" text,
"Fight" text,
"Division" text,
"Titles" text,
"Rematch" text,
"TV" text,
"Promoter" text,
"Notes" text
) | SELECT COUNT("Notes") FROM table_28151 WHERE "Fight" = 'Devon Alexander vs. Shawn Porter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26578,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
2632,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
382,
155,
965,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
10358,
15,
7,
8512,
21680,
953,
834,
2577,
26578,
549,
17444,
427,
96,
371,
2632,
121,
3274,
3,
31,
2962,
5951,
10135,
3,
208,
7,
5,
15333,
29,
23091,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the broadcast date of the episode that visited South Africa? | CREATE TABLE table_5299 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Countries Visited" text
) | SELECT "UK Broadcast Date" FROM table_5299 WHERE "Countries Visited" = 'south africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3264,
41,
96,
427,
102,
159,
32,
221,
465,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
11029,
121,
1499,
6,
96,
15787,
13017,
5254,
7678,
121,
1499,
6,
96,
10572,
527... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15787,
13017,
5254,
7678,
121,
21680,
953,
834,
5373,
3264,
549,
17444,
427,
96,
10628,
2593,
4957,
15,
26,
121,
3274,
3,
31,
7,
670,
107,
24040,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Outcome of the Doubles played on Carpet? | CREATE TABLE table_name_35 (outcome VARCHAR, surface VARCHAR) | SELECT outcome FROM table_name_35 WHERE surface = "carpet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
670,
287,
15,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3387,
287,
15,
13,
8,
8405,
7,
1944,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1774,
3274,
96,
1720,
4995,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many titles for the nation with less than 3 fastest laps and 22 podiums? | CREATE TABLE table_79333 (
"Country" text,
"Total Drivers" real,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" text
) | SELECT "Championship Titles" FROM table_79333 WHERE "Fastest Laps" < '3' AND "Podiums" = '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
23360,
41,
96,
10628,
651,
121,
1499,
6,
96,
3696,
1947,
10546,
7,
121,
490,
6,
96,
254,
1483,
12364,
2009,
11029,
7,
121,
1499,
6,
96,
448,
3302,
10066,
41,
7681,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1483,
12364,
2009,
11029,
7,
121,
21680,
953,
834,
4440,
23360,
549,
17444,
427,
96,
371,
9,
7,
4377,
325,
102,
7,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
16665,
2552,
7,
121,
3274,
3,
31,
2884,
31,
1,
... |
What is the train name of the rail with a daily frequency and a destination of Rajgir? | CREATE TABLE table_name_44 (
train_name VARCHAR,
frequency__inbound_outbound_ VARCHAR,
destination VARCHAR
) | SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
2412,
834,
4350,
584,
4280,
28027,
6,
7321,
834,
834,
77,
6115,
834,
670,
6115,
834,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
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,
2412,
834,
4350,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
7321,
834,
834,
77,
6115,
834,
670,
6115,
834,
3274,
96,
26,
9,
9203,
121,
3430,
3954,
3274,
96,
9655,
9427,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest championship when the FA Cup is 0 and the League Cup is 1? | CREATE TABLE table_name_69 (championship INTEGER, fa_cup VARCHAR, league_cup VARCHAR) | SELECT MIN(championship) FROM table_name_69 WHERE fa_cup = 0 AND league_cup = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
17788,
12364,
2009,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
584,
4280,
28027,
6,
5533,
834,
4658,
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,
0... | [
3,
23143,
14196,
3,
17684,
599,
17788,
12364,
2009,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
3,
89,
9,
834,
4658,
3274,
3,
632,
3430,
5533,
834,
4658,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the least amount of wickets? | CREATE TABLE table_30112 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real
) | SELECT MIN("Wickets") FROM table_30112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25626,
2122,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
447,
8044,
7,
8512,
21680,
953,
834,
25626,
2122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the cfl team for position d? | CREATE TABLE table_name_68 (
cfl_team VARCHAR,
position VARCHAR
) | SELECT cfl_team FROM table_name_68 WHERE position = "d" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
75,
89,
40,
372,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
75,
89,
40,
834,
11650,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1102,
3274,
96,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many to par for Greg Norman? | CREATE TABLE table_name_1 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_1 WHERE player = "greg norman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
12,
260,
21,
11859,
13615,
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,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1959,
3274,
96,
18301,
7982,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who had the most points in the game on November 12? | CREATE TABLE table_46393 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_46393 WHERE "Date" = 'november 12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3288,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
4448,
3288,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
the other team besides brazil to score 5 goals | CREATE TABLE table_204_487 (
id number,
"home team" text,
"score" text,
"visiting team" text,
"location" text,
"venue" text,
"door" text,
"surface" text
) | SELECT "home team" FROM table_204_487 WHERE "home team" <> 'brazil' AND "score" = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4225,
41,
3,
23,
26,
381,
6,
96,
5515,
372,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
3466,
155,
53,
372,
121,
1499,
6,
96,
14836,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5515,
372,
121,
21680,
953,
834,
26363,
834,
591,
4225,
549,
17444,
427,
96,
5515,
372,
121,
3,
2,
3155,
3,
31,
1939,
702,
40,
31,
3430,
96,
7,
9022,
121,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday. | 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
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,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
42... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.