NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the finalist in Miami? | CREATE TABLE table_name_7 (finalist VARCHAR, tournament VARCHAR) | SELECT finalist FROM table_name_7 WHERE tournament = "miami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
12406,
343,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
804,
343,
16,
8327,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
343,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
5892,
3274,
96,
51,
23,
3690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What did United States score in the place t6? | CREATE TABLE table_46920 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_46920 WHERE "Country" = 'united states' AND "Place" = 't6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
27749,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4448,
27749,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
345,
11706,
121,
3274,
3,
31,
17,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which school had a player who played the C position? | CREATE TABLE table_name_64 (school VARCHAR, position VARCHAR) | SELECT school FROM table_name_64 WHERE position = "c" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
6646,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
141,
3,
9,
1959,
113,
1944,
8,
205,
1102,
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,
496,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1102,
3274,
96,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people live in an area of 30.94 hectares? | CREATE TABLE table_1535 (
"Urban area (locality)" text,
"Municipality" text,
"Population" real,
"Land area (hectares)" text,
"Density (inh./km\u00b2)" text,
"Code" real
) | SELECT COUNT("Population") FROM table_1535 WHERE "Land area (hectares)" = '30.94' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2469,
41,
96,
1265,
52,
3478,
616,
41,
16882,
485,
61,
121,
1499,
6,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
434,
232,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8512,
21680,
953,
834,
1808,
2469,
549,
17444,
427,
96,
434,
232,
616,
41,
17256,
7,
61,
121,
3274,
3,
31,
1458,
5,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the drug that was prescribed to patient 029-7028 for the last time in their first hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-7028' AND NOT patient.hospitaldischargetime IS NULL ORDER BY pa... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7757,
5,
26,
13534,
4350,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21... |
Who was the girl on week 1 that was previous to week 3's Ava Hart? | CREATE TABLE table_name_23 (
week_1 VARCHAR,
week_3 VARCHAR
) | SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
471,
834,
536,
584,
4280,
28027,
6,
471,
834,
519,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3202,
30,
471,
209,
24,
47,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
536,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
471,
834,
519,
3274,
96,
8644,
12479,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the tries against is 90 how many points are there? | CREATE TABLE table_39094 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points" FROM table_39094 WHERE "Tries against" = '90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
4240,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
22512,
7,
121,
21680,
953,
834,
519,
2394,
4240,
549,
17444,
427,
96,
382,
2593,
581,
121,
3274,
3,
31,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many seasons did Peter Deluise direct Stargate SG-1? | CREATE TABLE table_20080 (
"No. in season" real,
"No. disc" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT MAX("No. in season") FROM table_20080 WHERE "Directed by" = 'Peter DeLuise' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
2079,
41,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
4168,
5,
5025,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
3632,
2079,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
345,
15,
449,
374,
434,
76,
159,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2013/14 for 2012/13 is 36 | CREATE TABLE table_27336 (
"2013/14" real,
"2012/13" real,
"2011/12" real,
"2010/11" real,
"Institute" text,
"Region" text
) | SELECT "2013/14" FROM table_27336 WHERE "2012/13" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
3420,
41,
96,
11138,
14785,
20364,
490,
6,
96,
12172,
87,
2368,
121,
490,
6,
96,
13907,
18009,
121,
490,
6,
96,
14926,
20223,
121,
490,
6,
96,
9496,
15,
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,
1... | [
3,
23143,
14196,
96,
11138,
14785,
20364,
21680,
953,
834,
2555,
519,
3420,
549,
17444,
427,
96,
12172,
87,
2368,
121,
3274,
3,
31,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the game against the Indianapolis Colts? | CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_40 WHERE opponent = "indianapolis colts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
581,
8,
23385,
3043,
17,
7,
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,
833,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
15264,
3274,
96,
77,
8603,
9,
15621,
7632,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mascot for the school with a student body larger than 2,191 in Noblesville? | CREATE TABLE table_35444 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "Mascot" FROM table_35444 WHERE "Enrollment" > '2,191' AND "School" = 'noblesville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
3628,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
9,
7,
4310,
121,
21680,
953,
834,
2469,
591,
3628,
549,
17444,
427,
96,
8532,
4046,
297,
121,
2490,
3,
31,
4482,
2294,
536,
31,
3430,
96,
29364,
121,
3274,
3,
31,
29,
32,
2296,
9727,
31,
1,
-100,
-100,
... |
Bar chart x axis customer last name y axis how many customer last name, and could you order the number of customer last name from low to high order? | CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(... | SELECT customer_last_name, COUNT(customer_last_name) FROM Customers GROUP BY customer_last_name ORDER BY COUNT(customer_last_name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5421,
834,
18474,
4787,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
1767,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
905,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
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,
884,
834,
5064,
834,
4350,
6,
2847,
17161,
599,
25697,
49,
834,
5064,
834,
4350,
61,
21680,
16423,
350,
4630,
6880,
272,
476,
884,
834,
5064,
834,
4350,
4674,
11300,
272,
476,
2847,
17161,
599,
25697,
49,
834,
5064,
... |
allergy or adverse reaction to lispro insulin | CREATE TABLE table_train_184 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"renal_disease" bool,
"hematocrit_hct" float,
"allergy_to_insulin_lispro" bool,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"hypertension" bool,
... | SELECT * FROM table_train_184 WHERE allergy_to_insulin_lispro = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
25987,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
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,
1429,
21680,
953,
834,
9719,
834,
25987,
549,
17444,
427,
23886,
834,
235,
834,
15953,
77,
834,
40,
159,
1409,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Whose term expired in 1996 and was from the province of Central Highlands? | CREATE TABLE table_name_74 (
name VARCHAR,
province VARCHAR,
term_expires VARCHAR
) | SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
564,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
6,
1657,
834,
994,
2388,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
7,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
7985,
3274,
96,
20071,
306,
6347,
121,
3430,
1657,
834,
994,
2388,
15,
7,
3274,
6911,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the time when Shinya Aoki was the opponent? | CREATE TABLE table_39273 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_39273 WHERE "Opponent" = 'shinya aoki' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2555,
519,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3288,
2555,
519,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
2907,
63,
9,
3,
9,
1825,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the largest number of DVDs? | CREATE TABLE table_1467951_4 (dvd_no INTEGER) | SELECT MAX(dvd_no) FROM table_1467951_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4440,
5553,
834,
591,
41,
26,
208,
26,
834,
29,
32,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
13,
5677,
7,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
26,
208,
26,
834,
29,
32,
61,
21680,
953,
834,
24300,
4440,
5553,
834,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who trained the horse on post 11 with over 36 odds? | CREATE TABLE table_name_93 (
trainer VARCHAR,
odds VARCHAR,
post VARCHAR
) | SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
8813,
584,
4280,
28027,
6,
11007,
584,
4280,
28027,
6,
442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
4252,
8,
4952,
30,
442,
850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8813,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
11007,
2490,
4475,
3430,
442,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145? | CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR) | SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
235,
834,
1893,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
215,
834,
210,
106,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
215,
834,
210,
106,
2490,
12698,
3430,
1959,
3274,
96,
102,
9,
83,
11470,
9369,... |
What player has the score of 67-72=139? | CREATE TABLE table_name_58 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_58 WHERE score = 67 - 72 = 139 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
65,
8,
2604,
13,
3,
3708,
18,
5865,
2423,
24090,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
2604,
3274,
3,
3708,
3,
18,
9455,
3274,
3,
24090,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the race course from Rome to Naples? | CREATE TABLE table_name_31 (
date VARCHAR,
course VARCHAR
) | SELECT date FROM table_name_31 WHERE course = "rome to naples" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
833,
584,
4280,
28027,
6,
503,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1964,
503,
45,
7332,
12,
29287,
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,
3341,
549,
17444,
427,
503,
3274,
96,
11956,
12,
12522,
965,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the record where attendance is 61,350 | CREATE TABLE table_11406866_2 (
record VARCHAR,
attendance VARCHAR
) | SELECT record FROM table_11406866_2 WHERE attendance = "61,350" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
5176,
26750,
834,
357,
41,
1368,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1368,
213,
11364,
19,
3,
4241,
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,
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,
18959,
5176,
26750,
834,
357,
549,
17444,
427,
11364,
3274,
96,
4241,
6,
16975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello? | CREATE TABLE table_name_14 (chassis VARCHAR, driver VARCHAR, tyre VARCHAR, engine_† VARCHAR) | SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
524,
6500,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
1948,
834,
2,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
17,
63,
60,
3274,
96,
115,
121,
3430,
1948,
834,
2,
3274,
96,
1010,
52,
1665,
3,
632,
1752,
25007,
1665,
3,
3076,
536,
121,
3430,
2535,
3274,
96,
14446,... |
Tell me the competition for half marathon | CREATE TABLE table_4325 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Competition" FROM table_4325 WHERE "Notes" = 'half marathon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
1828,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
4906,
1828,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
17114,
17625,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where Date is october 11, and game greater than 4 what is the lowest attendance? | CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR, game VARCHAR) | SELECT MIN(attendance) FROM table_name_34 WHERE date = "october 11" AND game > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
7678,
19,
3,
32,
75,
235,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
850,
121,
3430,
467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose year of death is less than or equal to 2174 and procedure long title is incision of abdominal wall? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2174.0" AND procedures.long_title = "Incision of abdominal wall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5? | CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR) | SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
10496,
106,
9,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
3,
21342,
17966,
6,
4353,
49,
235,
834,
6372,
40,
19996,
15,
40,
834,
11760,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10496,
106,
9,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
4353,
49,
235,
834,
6372,
40,
19996,
15,
40,
834,
11760,
3389,
10355,... |
who 's name was listed the most under male winner 's . | CREATE TABLE table_203_872 (
id number,
"year" number,
"location(s)" text,
"number of contestants" number,
"ladies winner" text,
"men's winner" text
) | SELECT "men's winner" FROM table_203_872 GROUP BY "men's winner" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4225,
357,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
14836,
599,
7,
61,
121,
1499,
6,
96,
5525,
1152,
13,
4233,
2366,
121,
381,
6,
96,
521,
7719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
31,
7,
4668,
121,
21680,
953,
834,
23330,
834,
4225,
357,
350,
4630,
6880,
272,
476,
96,
904,
31,
7,
4668,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-1... |
Which player's pick number was 25? | CREATE TABLE table_name_79 (
player VARCHAR,
pick__number VARCHAR
) | SELECT player FROM table_name_79 WHERE pick__number = 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1959,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
31,
7,
1432,
381,
47,
944,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What pick number did the New York Rangers have? | CREATE TABLE table_2897457_8 (
pick__number VARCHAR,
nhl_team VARCHAR
) | SELECT pick__number FROM table_2897457_8 WHERE nhl_team = "New York Rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
927,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
29,
107,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
927,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
6861,
1060,
12612,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Airport for New York City? | CREATE TABLE table_name_30 (airport VARCHAR, city VARCHAR) | SELECT airport FROM table_name_30 WHERE city = "new york" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2256,
1493,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5735,
21,
368,
1060,
896,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3761,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
690,
3274,
96,
5534,
25453,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the next game after kcr on april 19th ? | CREATE TABLE table_203_536 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"crowd" number,
"record" text
) | SELECT "opponent" FROM table_203_536 WHERE id = (SELECT id FROM table_203_536 WHERE "date" = 'apr 19') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3420,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
3757,
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,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
755,
3420,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
755,
3420,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
... |
What tournament was Kirk Triplett a runner-up in? | CREATE TABLE table_47426 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Tournament" FROM table_47426 WHERE "Runner(s)-up" = 'kirk triplett' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
591,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4177,
591,
2688,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
157,
12546,
12063,
17,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name when the local board is albert–eden, and a Decile of 9? | CREATE TABLE table_name_36 (name VARCHAR, local_board VARCHAR, decile VARCHAR) | SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
4350,
584,
4280,
28027,
6,
415,
834,
1976,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
415,
834,
1976,
3274,
96,
138,
7041,
104,
15,
537,
121,
3430,
7908,
109,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest pick number for player don barber? | CREATE TABLE table_2679061_6 (
pick__number INTEGER,
player VARCHAR
) | SELECT MAX(pick__number) FROM table_2679061_6 WHERE player = "Don Barber" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
2394,
4241,
834,
948,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1432,
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,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
357,
3708,
2394,
4241,
834,
948,
549,
17444,
427,
1959,
3274,
96,
13843,
11038,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose death status is 0 and diagnoses short title is cl skul base fx-coma nos? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.short_title = "Cl skul base fx-coma NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the team 1 with tikve as team 2? | CREATE TABLE table_60078 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 1" FROM table_60078 WHERE "Team 2" = 'tikveš' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
3940,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
209,
121,
21680,
953,
834,
6007,
3940,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
4414,
162,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
when they visited the hospital last time, has patient 033-250 received any medication? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-250' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.ho... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
what date has the class of non-championship f2 as well as a driver name jos froil n gonz lez that has a position larger than 2? | CREATE TABLE table_74540 (
"Class" text,
"Date" text,
"Race" text,
"Driver" text,
"Position" real,
"Team" text
) | SELECT "Date" FROM table_74540 WHERE "Class" = 'non-championship f2' AND "Driver" = 'josé froilán gonzález' AND "Position" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
25379,
41,
96,
21486,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4581,
25379,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
29,
106,
18,
17788,
12364,
2009,
3,
89,
357,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
1927,
7,
154,
3,
6155,
173,
... |
Who was the loser of the heavyweight division fight that lasted a time of 2:24? | CREATE TABLE table_name_10 (loser VARCHAR, weight_division VARCHAR, time VARCHAR) | SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2298,
49,
584,
4280,
28027,
6,
1293,
834,
26,
23,
6610,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2615,
52,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1293,
834,
26,
23,
6610,
3274,
96,
88,
19649,
9378,
121,
3430,
97,
3274,
96,
357,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Hyndburn has a Fylde larger than 3? | CREATE TABLE table_name_52 (
hyndburn INTEGER,
fylde INTEGER
) | SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
3,
107,
63,
727,
7223,
3,
21342,
17966,
6,
3,
89,
63,
40,
221,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
5555,
727,
7223,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
107,
63,
727,
7223,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
3,
89,
63,
40,
221,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the person died May 22, 1895 is the reason for vacancy what is the district? | CREATE TABLE table_26653 (
"District" text,
"Vacator" text,
"Reason for Vacancy" text,
"Successor" text,
"Date of successors taking office" text
) | SELECT "District" FROM table_26653 WHERE "Reason for Vacancy" = 'Died May 22, 1895' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4122,
519,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
3,
25203,
6833,
121,
1499,
6,
96,
134,
17431,
24901,
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,
308,
23,
20066,
121,
21680,
953,
834,
2688,
4122,
519,
549,
17444,
427,
96,
1649,
9,
739,
21,
3,
25203,
6833,
121,
3274,
3,
31,
8639,
26,
932,
12889,
507,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What catalog has the United Kingdom as the country? | CREATE TABLE table_name_9 (
catalog VARCHAR,
country VARCHAR
) | SELECT catalog FROM table_name_9 WHERE country = "united kingdom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
10173,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10173,
65,
8,
907,
6524,
38,
8,
684,
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,
10173,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
14740,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which CONMEBOL 1995 has a Supercopa 1995 of sf? | CREATE TABLE table_38604 (
"Team" text,
"Recopa 1995" text,
"Supercopa 1995" text,
"CONMEBOL 1995" text,
"Copa Libertadores 1996" text
) | SELECT "CONMEBOL 1995" FROM table_38604 WHERE "Supercopa 1995" = 'sf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3328,
591,
41,
96,
18699,
121,
1499,
6,
96,
1649,
10845,
9,
7273,
121,
1499,
6,
96,
23290,
10845,
9,
7273,
121,
1499,
6,
96,
17752,
4369,
279,
5194,
7273,
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,
17752,
4369,
279,
5194,
7273,
121,
21680,
953,
834,
3747,
3328,
591,
549,
17444,
427,
96,
23290,
10845,
9,
7273,
121,
3274,
3,
31,
7,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the winning score when the tournament is safeco classic? | CREATE TABLE table_name_73 (
winning_score VARCHAR,
tournament VARCHAR
) | SELECT winning_score FROM table_name_73 WHERE tournament = "safeco classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3447,
2604,
116,
8,
5892,
19,
1346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5892,
3274,
96,
15233,
509,
2431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county? | CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR) | SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
17,
76,
354,
23,
9,
834,
9791,
7830,
3,
21342,
17966,
6,
554,
4075,
1462,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
180,
6122,
599,
17,
76,
354,
23,
9,
834,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
554,
4075,
1462,
3274,
96,
172,
9270,
354,
23,
17815,
15,
121,
3430,
5435,
3274,
96,
7,
1468,
172,
107,
... |
What is game 34's record? | CREATE TABLE table_name_11 (
record VARCHAR,
game VARCHAR
) | SELECT record FROM table_name_11 WHERE game = 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
467,
6154,
31,
7,
1368,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
467,
3274,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who took third-place when there were 4 total wins? | CREATE TABLE table_17632217_2 (third_place VARCHAR, total_wins VARCHAR) | SELECT third_place FROM table_17632217_2 WHERE total_wins = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3891,
2884,
2517,
834,
357,
41,
14965,
834,
4687,
584,
4280,
28027,
6,
792,
834,
3757,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
808,
1025,
18,
4687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1025,
834,
4687,
21680,
953,
834,
2517,
3891,
2884,
2517,
834,
357,
549,
17444,
427,
792,
834,
3757,
7,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the active pixels of the cantare model? | CREATE TABLE table_76484 (
"Model" text,
"Sensor Size" text,
"Resolution" text,
"Active Pixels" text,
"Display" text
) | SELECT "Active Pixels" FROM table_76484 WHERE "Model" = 'cantare' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3707,
591,
41,
96,
24663,
121,
1499,
6,
96,
134,
35,
7,
127,
8941,
121,
1499,
6,
96,
1649,
14913,
121,
1499,
6,
96,
13035,
15,
20005,
7,
121,
1499,
6,
96,
23664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13035,
15,
20005,
7,
121,
21680,
953,
834,
3959,
3707,
591,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
1608,
17,
355,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many trains call at Castor, Overton, Peterborough East and are operated by LNWR? | CREATE TABLE table_12221135_3 (arrival VARCHAR, operator VARCHAR, calling_at VARCHAR) | SELECT COUNT(arrival) FROM table_12221135_3 WHERE operator = "LNWR" AND calling_at = "Castor, Overton, Peterborough East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
27278,
2469,
834,
519,
41,
291,
25295,
584,
4280,
28027,
6,
7221,
584,
4280,
28027,
6,
3874,
834,
144,
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,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
291,
25295,
61,
21680,
953,
834,
20889,
27278,
2469,
834,
519,
549,
17444,
427,
7221,
3274,
96,
434,
567,
15472,
121,
3430,
3874,
834,
144,
3274,
96,
254,
9,
7279,
6,
2035,
17,
106,
6,
2737,
12823,... |
What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award? | CREATE TABLE table_name_96 (
award VARCHAR,
group VARCHAR,
film_show VARCHAR,
year VARCHAR
) | SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2760,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
6,
814,
834,
10049,
584,
4280,
28027,
6,
215,
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... | [
3,
23143,
14196,
2760,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
814,
834,
10049,
3274,
96,
11535,
4653,
13736,
121,
3430,
215,
3,
2,
2464,
3430,
563,
3274,
96,
13170,
2760,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most overall rank for czech republic | CREATE TABLE table_29256 (
"Overall rank" real,
"Country" text,
"Overall life expectancy" real,
"Male life expectancy" real,
"Male rank" real,
"Female life expectancy" real,
"Female rank" real
) | SELECT MAX("Overall rank") FROM table_29256 WHERE "Country" = 'Czech Republic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
19337,
41,
96,
23847,
1748,
11003,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
23847,
1748,
280,
1672,
6833,
121,
490,
6,
96,
329,
9,
109,
280,
1672,
6833,
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,
23847,
1748,
11003,
8512,
21680,
953,
834,
3166,
19337,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
254,
776,
524,
5750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the record when the score was w 108 93 (ot)? | CREATE TABLE table_13619135_5 (
record VARCHAR,
score VARCHAR
) | SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
2294,
536,
2469,
834,
755,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
116,
8,
2604,
47,
3,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
23459,
2294,
536,
2469,
834,
755,
549,
17444,
427,
2604,
3274,
96,
518,
3,
16169,
104,
4271,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for the home team that played at Brunswick Street Oval? | CREATE TABLE table_name_52 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_52 WHERE venue = "brunswick street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
234,
372,
24,
1944,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
5669,
3274,
96,
9052,
29,
7,
5981,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many of the mountains have an elevation above 3,300 ft ? | CREATE TABLE table_203_808 (
id number,
"rank" number,
"peak name" text,
"elevation" text,
"location" text,
"notes" text
) | SELECT COUNT("peak name") FROM table_203_808 WHERE "elevation" > 3300 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2079,
927,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
14661,
564,
121,
1499,
6,
96,
15,
10912,
257,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
7977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14661,
564,
8512,
21680,
953,
834,
23330,
834,
2079,
927,
549,
17444,
427,
96,
15,
10912,
257,
121,
2490,
220,
5426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the titles of segment c for series episode is 21-08? | CREATE TABLE table_15187735_21 (
segment_c VARCHAR,
series_ep VARCHAR
) | SELECT segment_c FROM table_15187735_21 WHERE series_ep = "21-08" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
2658,
41,
5508,
834,
75,
584,
4280,
28027,
6,
939,
834,
15,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
8342,
13,
5508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5508,
834,
75,
21680,
953,
834,
26578,
27697,
2469,
834,
2658,
549,
17444,
427,
939,
834,
15,
102,
3274,
96,
2658,
18,
4018,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Result with a Category of album of the year in a Year that is 2011? | CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR) | SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
20119,
28,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3295,
3274,
96,
23703,
13,
8,
215,
121,
3430,
215,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who was the breeder of the 1941 triple crown winner ? | CREATE TABLE table_200_3 (
id number,
"year" number,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"breeder" text
) | SELECT "breeder" FROM table_200_3 WHERE "year" = 1941 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
519,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
3757,
687,
121,
1499,
6,
96,
1927,
75,
4397,
121,
1499,
6,
96,
9719,
49,
121,
1499,
6,
96,
13238,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1999,
15,
588,
121,
21680,
953,
834,
3632,
834,
519,
549,
17444,
427,
96,
1201,
121,
3274,
24822,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
With an aggregate of 0-2, what is listed for home? | CREATE TABLE table_22030 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "Home (2nd leg)" FROM table_22030 WHERE "Aggregate" = '0-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1755,
1458,
41,
96,
19040,
4077,
7,
17,
4553,
61,
121,
1499,
6,
96,
19040,
4743,
727,
4553,
61,
121,
1499,
6,
96,
536,
7,
17,
18978,
121,
1499,
6,
96,
357,
727,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4743,
727,
4553,
61,
121,
21680,
953,
834,
357,
1755,
1458,
549,
17444,
427,
96,
188,
122,
18301,
342,
121,
3274,
3,
31,
632,
4949,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris? | CREATE TABLE table_name_52 (
avg_g INTEGER,
name VARCHAR,
gain VARCHAR,
long VARCHAR,
loss VARCHAR
) | SELECT MIN(avg_g) FROM table_name_52 WHERE long > 8 AND loss < 34 AND gain > 16 AND name = "bullock, chris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
3,
9,
208,
122,
834,
122,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
2485,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
6,
1453,
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,
3,
17684,
599,
9,
208,
122,
834,
122,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
307,
2490,
505,
3430,
1453,
3,
2,
6154,
3430,
2485,
2490,
898,
3430,
564,
3274,
96,
6724,
4029,
6,
3,
524,
52,
159,
12... |
, order by the bars from low to high. | CREATE TABLE buildings (
id int,
name text,
City text,
Height int,
Stories int,
Status text
)
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_... | SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3950,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
896,
1499,
6,
24231,
16,
17,
6,
20406,
16,
17,
6,
19318,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2126,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9036,
6,
2847,
17161,
599,
1935,
61,
21680,
11239,
350,
4630,
6880,
272,
476,
9036,
4674,
11300,
272,
476,
9036,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the stadium in Adelaide, South Australia built for? | CREATE TABLE table_28885977_1 (
built_for VARCHAR,
location VARCHAR
) | SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10927,
3390,
4013,
834,
536,
41,
1192,
834,
1161,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
14939,
16,
24272,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1192,
834,
1161,
21680,
953,
834,
357,
10927,
3390,
4013,
834,
536,
549,
17444,
427,
1128,
3274,
96,
188,
221,
40,
5385,
6,
1013,
2051,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has rank 5? | CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) | SELECT name FROM table_name_23 WHERE rank = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
4350,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
11003,
305,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
11003,
3274,
305,
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... |
Show all allergy types and the number of allergies in each type Plot them as bar chart, and rank bars in ascending order. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
432,
49,
122,
63,
25160,
1,
-100,
-100,
-100,... |
how many patients had been discharged from hospital during this year? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
in... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
1... |
What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823? | CREATE TABLE table_name_77 (
swimsuit INTEGER,
average VARCHAR,
evening_gown VARCHAR,
state VARCHAR
) | SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
9728,
7628,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7,
210,
603,
7628,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2272,
834,
122,
9197,
3,
2,
4848,
4013,
3430,
538,
3274,
96,
11502,
32,
459,
121,
3430,
1348,
3,
2,
4848,
4613,
519,
1,
-... |
A bar chart for listing the number of the names of technicians in ascending order of age. | CREATE TABLE technician (
technician_id real,
Name text,
Team text,
Starting_Year real,
Age int
)
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE repair (
repair_I... | SELECT Name, COUNT(Name) FROM technician GROUP BY Name ORDER BY Age | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17730,
41,
17730,
834,
23,
26,
490,
6,
5570,
1499,
6,
2271,
1499,
6,
14362,
834,
476,
2741,
490,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
17730,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
7526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Incumbent has a District of California 8? | CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_75 WHERE district = "california 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1542,
5937,
295,
65,
3,
9,
3570,
13,
1826,
505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3939,
3274,
96,
15534,
1161,
29,
23,
9,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the tallest peak in the alps ? | CREATE TABLE table_204_84 (
id number,
"no" number,
"peak" text,
"location" text,
"elevation (m)" number,
"prominence (m)" number,
"col height (m)" number,
"col location" text,
"parent" text
) | SELECT "peak" FROM table_204_84 ORDER BY "elevation (m)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4608,
41,
3,
23,
26,
381,
6,
96,
29,
32,
121,
381,
6,
96,
14661,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
15,
10912,
257,
41,
51,
61,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14661,
121,
21680,
953,
834,
26363,
834,
4608,
4674,
11300,
272,
476,
96,
15,
10912,
257,
41,
51,
61,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the range (varies by payload weight) for the unknown player? | CREATE TABLE table_8748 (
"Name/Designation" text,
"Class" text,
"Range (varies with payload weight)" text,
"Payload" text,
"Status" text
) | SELECT "Range (varies with payload weight)" FROM table_8748 WHERE "Payload" = 'unknown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
3707,
41,
96,
23954,
87,
19103,
257,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
448,
3280,
41,
15550,
28,
726,
7134,
1293,
61,
121,
1499,
6,
96,
19702,
7134,
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,
1... | [
3,
23143,
14196,
96,
448,
3280,
41,
15550,
28,
726,
7134,
1293,
61,
121,
21680,
953,
834,
4225,
3707,
549,
17444,
427,
96,
19702,
7134,
121,
3274,
3,
31,
202,
5661,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the next locomotive to be withdrawn after locomotive 4106 | CREATE TABLE table_203_27 (
id number,
"number" number,
"serial no" number,
"entered service" text,
"withdrawn" text,
"kilometres travelled" number
) | SELECT "number" FROM table_203_27 WHERE "withdrawn" > (SELECT "withdrawn" FROM table_203_27 WHERE "number" = 4106) ORDER BY "withdrawn" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
7,
15,
12042,
150,
121,
381,
6,
96,
35,
11196,
313,
121,
1499,
6,
96,
28032,
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,
5525,
1152,
121,
21680,
953,
834,
23330,
834,
2555,
549,
17444,
427,
96,
28032,
121,
2490,
41,
23143,
14196,
96,
28032,
121,
21680,
953,
834,
23330,
834,
2555,
549,
17444,
427,
96,
5525,
1152,
121,
3274,
3,
24175,... |
Return a bar chart about the number of companies for each industry. | CREATE TABLE company (
Company_ID real,
Name text,
Headquarters text,
Industry text,
Sales_in_Billion real,
Profits_in_Billion real,
Assets_in_Billion real,
Market_Value_in_Billion real
)
CREATE TABLE people (
People_ID int,
Age int,
Name text,
Nationality text,
Grad... | SELECT Industry, COUNT(Industry) FROM company GROUP BY Industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
1958,
834,
4309,
490,
6,
5570,
1499,
6,
31282,
1499,
6,
9036,
1499,
6,
7107,
834,
77,
834,
279,
14916,
490,
6,
14717,
7,
834,
77,
834,
279,
14916,
490,
6,
18202,
7,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9036,
6,
2847,
17161,
599,
1570,
8655,
8224,
61,
21680,
349,
350,
4630,
6880,
272,
476,
9036,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A pie chart shows the proportion of Sex and the sum of Height. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Sex, SUM(Height) FROM people GROUP BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
180,
6122,
599,
3845,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
patients with type i diabetes mellitus or uncontrolled t2dm ( hba1c > 11 % ) | CREATE TABLE table_train_199 (
"id" int,
"t2dm" bool,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"diabetic" string,
"hypoglycemia" bool,
"diabetes" bool,
"seizure_disorder" bool,
"glaucoma" bool,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_199 WHERE diabetic = 'i' OR t2dm = 1 OR hemoglobin_a1c_hba1c > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
19479,
41,
96,
23,
26,
121,
16,
17,
6,
96,
17,
357,
26,
51,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
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,
1429,
21680,
953,
834,
9719,
834,
19479,
549,
17444,
427,
17496,
447,
3274,
3,
31,
23,
31,
4674,
3,
17,
357,
26,
51,
3274,
209,
4674,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
850,
1,
... |
What district is St Martin's Without parish in with a population less than 75? | CREATE TABLE table_name_73 (
district VARCHAR,
population VARCHAR,
name VARCHAR
) | SELECT district FROM table_name_73 WHERE population < 75 AND name = "st martin's without" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3939,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
19,
472,
3394,
31,
7,
640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2074,
3,
2,
6374,
3430,
564,
3274,
96,
7,
17,
3157,
17,
77,
31,
7,
406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose admission type is elective and procedure icd9 code is 3972? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.icd9_code = "3972" | [
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 High rebounds with a High assists with bryant (7), and a Team of @ utah? | CREATE TABLE table_77504 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "High rebounds" FROM table_77504 WHERE "High assists" = 'bryant (7)' AND "Team" = '@ utah' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
1752,
591,
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,
3,
23768,
121,
21680,
953,
834,
4013,
1752,
591,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
115,
651,
288,
3,
24358,
31,
3430,
96,
18699,
121,
3274,
3,
31,
1741,
3,
76,
17,
9,
107,
31,
1,
... |
What's the report for the Silverstone circuit? | CREATE TABLE table_1140117_5 (
report VARCHAR,
circuit VARCHAR
) | SELECT report FROM table_1140117_5 WHERE circuit = "Silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2445,
20275,
834,
755,
41,
934,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
934,
21,
8,
5642,
3009,
4558,
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,
934,
21680,
953,
834,
2596,
2445,
20275,
834,
755,
549,
17444,
427,
4558,
3274,
96,
134,
173,
624,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many silvers have more than 2 golds? | CREATE TABLE table_65826 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Silver") FROM table_65826 WHERE "Gold" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3449,
2688,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
948,
3449,
2688,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Laid down has a Ship of fearless? | CREATE TABLE table_67044 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
) | SELECT "Laid down" FROM table_67044 WHERE "Ship" = 'fearless' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
632,
3628,
41,
96,
134,
10462,
121,
1499,
6,
96,
345,
35,
29,
288,
381,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
121,
1499,
6,
96,
589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6146,
323,
121,
21680,
953,
834,
3708,
632,
3628,
549,
17444,
427,
96,
134,
10462,
121,
3274,
3,
31,
89,
2741,
924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the attendance of the match with rosso kumamoto as the away team? | CREATE TABLE table_40527 (
"Match No." text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Attendance" text
) | SELECT "Attendance" FROM table_40527 WHERE "Away Team" = 'rosso kumamoto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3076,
2555,
41,
96,
329,
14547,
465,
535,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
2271,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
591,
3076,
2555,
549,
17444,
427,
96,
188,
1343,
2271,
121,
3274,
3,
31,
1859,
7,
32,
3,
157,
440,
9,
11188,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the verb meaning for *bar as Part 2? | CREATE TABLE table_50828 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
) | SELECT "Verb meaning" FROM table_50828 WHERE "Part 2" = '*bar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
927,
2577,
41,
96,
21486,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
13725,
220,
121,
1499,
6,
96,
13725,
3,
20364,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5000,
115,
2530,
121,
21680,
953,
834,
1752,
927,
2577,
549,
17444,
427,
96,
13725,
204,
121,
3274,
3,
31,
1935,
1047,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which director made Mi-temps? | CREATE TABLE table_name_13 (
director_s_ VARCHAR,
film VARCHAR
) | SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2090,
834,
7,
834,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2090,
263,
2133,
18,
15076,
7,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
814,
3274,
96,
51,
23,
18,
15076,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose admission year is less than 2168 and diagnoses long title is hepatitis, unspecified? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2168" AND diagnoses.long_title = "Hepatitis, unspecified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA? | CREATE TABLE table_name_12 (
transfer_window VARCHAR,
country VARCHAR
) | SELECT transfer_window FROM table_name_12 WHERE country = "bra" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2025,
834,
5165,
2381,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
26585,
20805,
549,
13885,
15251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2025,
834,
5165,
2381,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
684,
3274,
96,
1939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many locations had a density (pop/km ) of 91.8 in the 2011 census? | CREATE TABLE table_19211 (
"Name" text,
"2011 Census" real,
"2006 Census" real,
"% change" text,
"Land area (km\u00b2)" text,
"Density (pop/km\u00b2)" text,
"Population rank" real
) | SELECT COUNT("2011 Census") FROM table_19211 WHERE "Density (pop/km\u00b2)" = '91.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
2596,
41,
96,
23954,
121,
1499,
6,
96,
13907,
23086,
121,
490,
6,
96,
21196,
23086,
121,
490,
6,
96,
1454,
483,
121,
1499,
6,
96,
434,
232,
616,
41,
5848,
2,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13907,
23086,
8512,
21680,
953,
834,
19978,
2596,
549,
17444,
427,
96,
308,
35,
7,
485,
41,
9791,
87,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
1298,
16253,
31,
1,
-100,
-100,
-100,
-1... |
What country won in 1993? | CREATE TABLE table_name_28 (country VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_28 WHERE year_s__won = "1993" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
17529,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
751,
16,
8388,
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,
684,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the average year during which the score was 270? | CREATE TABLE table_name_7 (year INTEGER, score VARCHAR) | SELECT AVG(year) FROM table_name_7 WHERE score = 270 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1201,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
215,
383,
84,
8,
2604,
47,
3,
17485,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2604,
3274,
3,
17485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what year did david whitfield win | CREATE TABLE table_name_14 (year VARCHAR, artist VARCHAR) | SELECT year FROM table_name_14 WHERE artist = "david whitfield" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1201,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
215,
410,
836,
6961,
3,
12124,
17,
1846,
1369,
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,
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,
215,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2377,
3274,
96,
26,
9,
6961,
3,
12124,
17,
1846,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the social democratic party for labour | CREATE TABLE table_19959 (
"Election" real,
"Labour" real,
"Conservative" real,
"Liberal" real,
"Social Democratic Party" real,
"Social and Liberal Democrats/ Liberal Democrats" real,
"Independent" real,
"Green" real,
"Other" text,
"Control" text
) | SELECT "Social Democratic Party" FROM table_19959 WHERE "Control" = 'Labour' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
3390,
41,
96,
427,
12252,
121,
490,
6,
96,
18506,
1211,
121,
490,
6,
96,
4302,
3473,
1528,
121,
490,
6,
96,
14615,
49,
138,
121,
490,
6,
96,
5231,
4703,
10021,
345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5231,
4703,
10021,
3450,
121,
21680,
953,
834,
19479,
3390,
549,
17444,
427,
96,
25716,
121,
3274,
3,
31,
18506,
1211,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In which season did Sweden get third overall while Russia had the men's win? | CREATE TABLE table_14610 (
"Season" text,
"Winner" text,
"Runner-up" text,
"Third" text,
"Winner Men" text,
"Winner Women" text
) | SELECT "Season" FROM table_14610 WHERE "Third" = 'sweden' AND "Winner Men" = 'russia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
1714,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
18455,
687,
313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
24300,
1714,
549,
17444,
427,
96,
382,
9288,
26,
121,
3274,
3,
31,
7,
1123,
537,
31,
3430,
96,
18455,
687,
3137,
121,
3274,
3,
31,
26165,
31,
1,
-100,
-100,
-100,
-100,... |
Which school has the smallest amount of professors? | CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension... | SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
8943,
834,
5525,
381,
6,
8943,
834,
40,
4350,
1499,
6,
8943,
834,
89,
4350,
1499,
6,
8943,
834,
77,
23,
10646,
1499,
6,
8943,
834,
16899,
4978,
1499,
6,
8943,
834,
9288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
6646,
834,
4978,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
5812,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4978,
3274,
332,
4416,
26,
6707,
834,
4978,
350,
4630,
6880,
272,
476,
332,
5411,
6646,
... |
Who is the head coach of the team located in Mudgeeraba? | CREATE TABLE table_10445 (
"Team" text,
"Head Coach" text,
"President" text,
"Home Ground" text,
"Location" text
) | SELECT "Head Coach" FROM table_10445 WHERE "Location" = 'mudgeeraba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
2128,
41,
96,
18699,
121,
1499,
6,
96,
3845,
9,
26,
9493,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
3845,
9,
26,
9493,
121,
21680,
953,
834,
15442,
2128,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
51,
13164,
49,
8699,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the numbers for date of feb 27, 1996 | CREATE TABLE table_1594772_2 (s_no VARCHAR, match_date VARCHAR) | SELECT s_no FROM table_1594772_2 WHERE match_date = "Feb 27, 1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
4177,
5865,
834,
357,
41,
7,
834,
29,
32,
584,
4280,
28027,
6,
1588,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2302,
21,
833,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7,
834,
29,
32,
21680,
953,
834,
27904,
4177,
5865,
834,
357,
549,
17444,
427,
1588,
834,
5522,
3274,
96,
371,
15,
115,
14141,
6911,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the graduation rate for the school district with headquarters located in Sydney? | CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR) | SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
20885,
3328,
834,
536,
41,
3987,
76,
257,
834,
2206,
834,
834,
13907,
834,
2122,
834,
584,
4280,
28027,
6,
13767,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14027,
834,
2206,
834,
834,
13907,
834,
2122,
834,
21680,
953,
834,
357,
1808,
20885,
3328,
834,
536,
549,
17444,
427,
13767,
3274,
96,
134,
63,
26,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1? | CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR) | SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
5522,
584,
4280,
28027,
6,
3,
6809,
834,
52,
1014,
584,
4280,
28027,
6,
1964,
834,
4350,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3,
6809,
834,
52,
1014,
3274,
96,
11039,
121,
3430,
1964,
834,
4350,
3274,
96,
32,
51,
40,
6631,
4049,
20,
3,
208,
521,
265,
7,
15,
3,
7,
8738,
221,
12840,... |
what car was driven by the top ranked driver ? | CREATE TABLE table_203_854 (
id number,
"position" number,
"driver" text,
"no." text,
"car" text,
"entrant" text,
"rd 1" number,
"rd 2" number,
"rd 3" number,
"rd 4" number,
"rd 5" number,
"rd 6" number,
"rd 7" number,
"rd 8" number,
"total" number
) | SELECT "car" FROM table_203_854 WHERE "position" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4433,
591,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
29,
32,
535,
1499,
6,
96,
1720,
121,
1499,
6,
96,
295,
3569,
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,
1720,
121,
21680,
953,
834,
23330,
834,
4433,
591,
549,
17444,
427,
96,
4718,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Series has Poles of 0, and Races of 17? | CREATE TABLE table_37154 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Final Placing" text
) | SELECT "Series" FROM table_37154 WHERE "Poles" = '0' AND "Races" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
27308,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
1499,
6,
96,
18455,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
4118,
27308,
549,
17444,
427,
96,
8931,
15,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
448,
9,
2319,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392? | CREATE TABLE table_name_53 (
Id VARCHAR
) | SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
2628,
701,
28,
3,
9,
3581,
701,
2123,
145,
3538,
21280,
6,
3,
9,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
16128,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3581,
2490,
3538,
21280,
3430,
2722,
3274,
3097,
28640,
3430,
2464,
3,
2,
220,
4508,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the soap opera when the actor is dave duffy? | CREATE TABLE table_63894 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
) | SELECT "Soap Opera" FROM table_63894 WHERE "Actor" = 'dave duffy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3914,
591,
41,
96,
188,
5317,
121,
1499,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
5231,
9,
102,
6411,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
12998,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5231,
9,
102,
6411,
121,
21680,
953,
834,
3891,
3914,
591,
549,
17444,
427,
96,
188,
5317,
121,
3274,
3,
31,
26,
9,
162,
146,
20334,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which College has Player Mark Brown and a Pick # greater than 195? | CREATE TABLE table_name_63 (college VARCHAR, pick__number VARCHAR, player VARCHAR) | SELECT college FROM table_name_63 WHERE pick__number > 195 AND player = "mark brown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3297,
7883,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1888,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
2490,
3,
22464,
3430,
1959,
3274,
96,
3920,
4216,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.