NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the highest Points with a Lost total of 8? | CREATE TABLE table_41936 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Points") FROM table_41936 WHERE "Lost" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
3420,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
591,
2294,
3420,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What nation was Pageos 1 from? | CREATE TABLE table_2150068_1 (
nation VARCHAR,
satellite VARCHAR
) | SELECT nation FROM table_2150068_1 WHERE satellite = "PAGEOS 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2560,
3651,
834,
536,
41,
2982,
584,
4280,
28027,
6,
7605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,
47,
5545,
32,
7,
209,
45,
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,
2982,
21680,
953,
834,
2658,
2560,
3651,
834,
536,
549,
17444,
427,
7605,
3274,
96,
345,
11187,
3638,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of all to par with player Bob Rosburg? | CREATE TABLE table_name_65 (
to_par INTEGER,
player VARCHAR
) | SELECT SUM(to_par) FROM table_name_65 WHERE player = "bob rosburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
12,
834,
1893,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
66,
12,
260,
28,
1959,
5762,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1959,
3274,
96,
17396,
3,
1859,
4824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest game that has July 31 as the date? | CREATE TABLE table_63444 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT MAX("Game") FROM table_63444 WHERE "Date" = 'july 31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
591,
3628,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
3891,
591,
3628,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
2664,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose admission year is less than 2170 and diagnoses short title is malig neo bladder nec? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2170" AND diagnoses.short_title = "Malig neo bladder NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Find the number of the category descriptions of the products whose descriptions include letter 't', and order total number in ascending order. | CREATE TABLE Ref_Product_Categories (
product_category_code VARCHAR(15),
product_category_description VARCHAR(80),
unit_of_measure VARCHAR(20)
)
CREATE TABLE Ref_Characteristic_Types (
characteristic_type_code VARCHAR(15),
characteristic_type_description VARCHAR(80)
)
CREATE TABLE Ref_Colors (
... | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY COUNT(product_category_description) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
3174,
7472,
834,
18610,
6066,
2593,
41,
556,
834,
8367,
839,
651,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
556,
834,
8367,
839,
651,
834,
221,
11830,
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,
556,
834,
8367,
839,
651,
834,
221,
11830,
6,
2847,
17161,
599,
15892,
834,
8367,
839,
651,
834,
221,
11830,
61,
21680,
419,
89,
834,
3174,
7472,
834,
18610,
6066,
2593,
6157,
332,
536,
3,
15355,
3162,
7554,
6157,
3... |
What was the latest year that had a 100m freestyle? | CREATE TABLE table_50793 (
"Event" text,
"Long Course/Short Course" text,
"Year Set" real,
"Time" text,
"Meet" text
) | SELECT MAX("Year Set") FROM table_50793 WHERE "Event" = '100m freestyle' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4440,
519,
41,
96,
427,
2169,
121,
1499,
6,
96,
434,
2444,
8670,
87,
134,
14184,
8670,
121,
1499,
6,
96,
476,
2741,
2821,
121,
490,
6,
96,
13368,
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,
4800,
4,
599,
121,
476,
2741,
2821,
8512,
21680,
953,
834,
1752,
4440,
519,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
2915,
51,
339,
4084,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many route/via's are there for the ernad express? | CREATE TABLE table_29770377_1 (
route_via VARCHAR,
train_name VARCHAR
) | SELECT COUNT(route_via) FROM table_29770377_1 WHERE train_name = "Ernad Express" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
41,
2981,
834,
5907,
584,
4280,
28027,
6,
2412,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2981,
87,
5907,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
20300,
834,
5907,
61,
21680,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
549,
17444,
427,
2412,
834,
4350,
3274,
96,
10575,
29,
9,
26,
7319,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What the highest Year with a Remixed by Laurent Boutonnat? | CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR) | SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
1201,
3,
21342,
17966,
6,
26063,
15,
26,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
8,
2030,
2929,
28,
3,
9,
419,
13682,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
26063,
15,
26,
834,
969,
3274,
96,
40,
402,
5320,
19899,
29,
144,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the rider who did less than 20 laps on a grid number greater than 23? | CREATE TABLE table_name_67 (
rider VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT rider FROM table_name_67 WHERE laps < 20 AND grid > 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
2564,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2564,
52,
113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14941,
7,
3,
2,
460,
3430,
8634,
2490,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
suspected st segment elevation myocardial infarction ( stemi ) | CREATE TABLE table_train_25 (
"id" int,
"bleeding" int,
"acute_cerebrovascular_accident_cva" bool,
"heart_disease" bool,
"trauma" bool,
"st_segment_elevation_myocardial_infarction_stemi" bool,
"NOUSE" float
) | SELECT * FROM table_train_25 WHERE st_segment_elevation_myocardial_infarction_stemi = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
1828,
41,
96,
23,
26,
121,
16,
17,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
9,
15835,
834,
2110,
15,
5702,
15100,
834,
6004,
4215,
834,
75,
900,
121,
3,
12840,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1828,
549,
17444,
427,
3,
7,
17,
834,
7,
15,
122,
297,
834,
15,
10912,
257,
834,
2258,
32,
16464,
138,
834,
77,
5544,
4985,
834,
7,
3524,
23,
3274,
209,
1,
-100,
-100,
-100,
-10... |
Who was the opponent in the game in which Hakim Warrick (14) did the most high points? | CREATE TABLE table_2677 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_2677 WHERE "High points" = 'Hakim Warrick (14)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4013,
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,
3,
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,
96,
18699,
121,
21680,
953,
834,
2688,
4013,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
566,
9,
19754,
1602,
5206,
4077,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many cars does Gregg Mixon own? | CREATE TABLE table_24635 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) | SELECT COUNT("Car(s)") FROM table_24635 WHERE "Listed Owner(s)" = 'Gregg Mixon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4448,
2469,
41,
96,
18699,
121,
1499,
6,
96,
6936,
599,
7,
61,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
20982,
52,
599,
7,
61,
121,
1499,
6,
96,
7855,
51,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6936,
599,
7,
61,
8512,
21680,
953,
834,
357,
4448,
2469,
549,
17444,
427,
96,
28886,
13307,
599,
7,
61,
121,
3274,
3,
31,
517,
60,
4102,
7382,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the position of the player from Fort Lauderdale, Florida? | CREATE TABLE table_77777 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Position" FROM table_77777 WHERE "Hometown" = 'fort lauderdale, florida' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
26225,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4013,
26225,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
1161,
17,
3,
12513,
49,
5437,
6,
12215,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the heat number of the athlete who finished in 2:23.95? | CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR) | SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
88,
144,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1678,
381,
13,
8,
17893,
113,
2369,
16,
204,
10,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
97,
3274,
96,
357,
10,
2773,
5,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many average wins have USA as the team? | CREATE TABLE table_name_25 (
wins INTEGER,
team VARCHAR
) | SELECT AVG(wins) FROM table_name_25 WHERE team = "usa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
9204,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1348,
9204,
43,
2312,
38,
8,
372,
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,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
372,
3274,
96,
302,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the thursday iuppiter (jupiter) with tuesday mars (mars) being marterì | CREATE TABLE table_1277350_1 (thursday_iuppiter__jupiter_ VARCHAR, tuesday_mars__mars_ VARCHAR) | SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE tuesday_mars__mars_ = "Marterì" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4013,
16975,
834,
536,
41,
189,
3589,
1135,
834,
23,
413,
5230,
49,
834,
834,
2047,
5230,
49,
834,
584,
4280,
28027,
6,
3,
17,
76,
15,
7,
1135,
834,
1635,
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,
3,
189,
3589,
1135,
834,
23,
413,
5230,
49,
834,
834,
2047,
5230,
49,
834,
21680,
953,
834,
2122,
4013,
16975,
834,
536,
549,
17444,
427,
3,
17,
76,
15,
7,
1135,
834,
1635,
7,
834,
834,
1635,
7,
834,
3274,
96,
... |
What is the number range for the 56 quantity? | CREATE TABLE table_name_60 (number_range VARCHAR, quantity VARCHAR) | SELECT number_range FROM table_name_60 WHERE quantity = "56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
5525,
1152,
834,
5517,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
620,
21,
8,
11526,
8708,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
381,
834,
5517,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
8708,
3274,
96,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Bronzes that has a Nation of italy? | CREATE TABLE table_name_75 (
bronze INTEGER,
nation VARCHAR
) | SELECT MAX(bronze) FROM table_name_75 WHERE nation = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13467,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20841,
7,
24,
65,
3,
9,
11046,
13,
34,
9,
120,
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,
1,
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,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2982,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many episodes aired in Region 2 beginning May 26, 2008? | CREATE TABLE table_1067134_1 (
_number_of_ep INTEGER,
region_2 VARCHAR
) | SELECT MIN(_number_of_ep) FROM table_1067134_1 WHERE region_2 = "May 26, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3708,
23747,
834,
536,
41,
3,
834,
5525,
1152,
834,
858,
834,
15,
102,
3,
21342,
17966,
6,
1719,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
834,
5525,
1152,
834,
858,
834,
15,
102,
61,
21680,
953,
834,
1714,
3708,
23747,
834,
536,
549,
17444,
427,
1719,
834,
357,
3274,
96,
15881,
13597,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many overall championships does concordia university have | CREATE TABLE table_19137 (
"School" text,
"Mascot" text,
"Conference" text,
"National Titles" real,
"Founded" real
) | SELECT MIN("National Titles") FROM table_19137 WHERE "School" = 'Concordia University' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
24636,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
4302,
11788,
121,
1499,
6,
96,
24732,
11029,
7,
121,
490,
6,
96,
20100,
121,
490,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
121,
24732,
11029,
7,
8512,
21680,
953,
834,
2294,
24636,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
4302,
7621,
23,
9,
636,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich? | CREATE TABLE table_23067 (
"Previous season 2007/2008" text,
"Team" text,
"Town" text,
"Arena (capacity)" text,
"Website" text,
"Head Coach" text,
"Foreign Players (max. 2)" text
) | SELECT COUNT("Arena (capacity)") FROM table_23067 WHERE "Head Coach" = 'Yuriy Korotkevich' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
3708,
41,
96,
10572,
19117,
774,
4101,
87,
16128,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
382,
9197,
121,
1499,
6,
96,
188,
1536,
9,
41,
4010,
9,
6726,
61,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
1536,
9,
41,
4010,
9,
6726,
61,
8512,
21680,
953,
834,
13427,
3708,
549,
17444,
427,
96,
3845,
9,
26,
9493,
121,
3274,
3,
31,
476,
459,
63,
1793,
2719,
1050,
208,
362,
31,
1,
-100,
-1... |
Who played as Team 2 against Team 1 SC Gagnoa? | CREATE TABLE table_name_73 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_73 WHERE team_1 = "sc gagnoa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
38,
2271,
204,
581,
2271,
209,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
372,
834,
536,
3274,
96,
7,
75,
7922,
6715,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In which district is the incumbent John Breaux? | CREATE TABLE table_1341690_18 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1341690_18 WHERE incumbent = "John Breaux" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
2606,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
3939,
19,
8,
28406,
1079,
3004,
1724,
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,
3939,
21680,
953,
834,
23747,
2938,
2394,
834,
2606,
549,
17444,
427,
28406,
3274,
96,
18300,
3004,
1724,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many high assists did the Lakers have? | CREATE TABLE table_name_84 (
high_assists VARCHAR,
team VARCHAR
) | SELECT high_assists FROM table_name_84 WHERE team = "lakers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
306,
13041,
410,
8,
325,
11758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
372,
3274,
96,
521,
11758,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the insurance and primary disease of the patient id 2560? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT demographic.insurance, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
29441,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for the game against San Antonio? | CREATE TABLE table_name_97 (
score VARCHAR,
team VARCHAR
) | SELECT score FROM table_name_97 WHERE team = "san antonio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2604,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
467,
581,
1051,
12923,
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,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
372,
3274,
96,
7,
152,
3,
9,
6992,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the names of aircrafts and the number of times it won matches. Plot them as bar chart. | CREATE TABLE airport (
Airport_ID int,
Airport_Name text,
Total_Passengers real,
%_Change_2007 text,
International_Passengers real,
Domestic_Passengers real,
Transit_Passengers real,
Aircraft_Movements real,
Freight_Metric_Tonnes real
)
CREATE TABLE pilot (
Pilot_Id int(11),
... | SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
5735,
834,
4309,
16,
17,
6,
5735,
834,
23954,
1499,
6,
9273,
834,
20192,
4606,
277,
490,
6,
3,
1454,
834,
3541,
3280,
834,
20615,
1499,
6,
1331,
834,
20192,
4606,
277,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1761,
6696,
6,
2847,
17161,
599,
1935,
61,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
1588,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
518,
10503,
834,
20162,
6696,
350,
4630,
6880,
27... |
What is the average Mean, when Drug is 'Alcohol', and when Psychological Dependence is greater than 1.9? | CREATE TABLE table_name_98 (
mean INTEGER,
drug VARCHAR,
psychological_dependence VARCHAR
) | SELECT AVG(mean) FROM table_name_98 WHERE drug = "alcohol" AND psychological_dependence > 1.9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1243,
3,
21342,
17966,
6,
2672,
584,
4280,
28027,
6,
11041,
834,
18790,
1433,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
526,
152,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2672,
3274,
96,
138,
509,
2831,
121,
3430,
11041,
834,
18790,
1433,
2490,
3,
22493,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score at North Shore Events Centre? | CREATE TABLE table_49258 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
) | SELECT "Score" FROM table_49258 WHERE "Venue" = 'north shore events centre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
357,
3449,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
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... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3647,
357,
3449,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
29,
127,
189,
10433,
984,
2050,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is discharge location of subject name lue white? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.discharge_location FROM demographic WHERE demographic.name = "Lue White" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
434,
76,
15,
1945,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most year for conference finals | CREATE TABLE table_2361788_1 (
year INTEGER,
playoffs VARCHAR
) | SELECT MAX(year) FROM table_2361788_1 WHERE playoffs = "Conference Finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
2517,
4060,
834,
536,
41,
215,
3,
21342,
17966,
6,
15289,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
215,
21,
2542,
804,
7,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
357,
3420,
2517,
4060,
834,
536,
549,
17444,
427,
15289,
7,
3274,
96,
4302,
11788,
6514,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is marital status and date of birth of subject id 92796? | 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 demographic.marital_status, demographic.dob FROM demographic WHERE demographic.subject_id = "92796" | [
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,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
26,
32,
115,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1298,
2555,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which district is republican? | CREATE TABLE table_1341663_44 (
district VARCHAR,
party VARCHAR
) | SELECT district FROM table_1341663_44 WHERE party = "Republican" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
3628,
41,
3939,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3939,
19,
20237,
152,
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,
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,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
3628,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is admission location of subject id 9575? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.admission_location FROM demographic WHERE demographic.subject_id = "9575" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3301,
3072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Television Service, when Content is Calcio, and when Package/Option is Option? | CREATE TABLE table_name_5 (
television_service VARCHAR,
content VARCHAR,
package_option VARCHAR
) | SELECT television_service FROM table_name_5 WHERE content = "calcio" AND package_option = "option" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
4390,
834,
5114,
584,
4280,
28027,
6,
738,
584,
4280,
28027,
6,
2642,
834,
11803,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
21922,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4390,
834,
5114,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
738,
3274,
96,
10379,
23,
32,
121,
3430,
2642,
834,
11803,
3274,
96,
11803,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when was patient 010-32430's first discharge until 2100? | 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 diagnosis (
diagn... | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '010-32430' AND STRFTIME('%y', patient.hospitaldischargetime) <= '2100' ORDER BY patient.hospitaldischargetime LIMIT 1 | [
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,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4542,
9498,
2668,
25449,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
26,
159... |
what is the number of patients with liver transplant primary disease who had open and other replacement of mitral valve with tissue graft? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND procedures.short_title = "Opn/oth rep mtrl vlv-tis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many years have runner-up as the outcome, and indian wells as the championship? | CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR) | SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1201,
3,
21342,
17966,
6,
6138,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
3,
10806,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
10183,
3274,
96,
77,
8603,
168,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which season had an average under 28, a rank under 10, and a partner of Janja Lesar? | CREATE TABLE table_name_7 (
season VARCHAR,
professional_partner VARCHAR,
average VARCHAR,
rank VARCHAR
) | SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
774,
584,
4280,
28027,
6,
771,
834,
12300,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
11003,
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,
774,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1348,
3,
2,
2059,
3430,
11003,
3,
2,
335,
3430,
771,
834,
12300,
3274,
96,
7066,
1191,
110,
291,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest Founded with an Institution of cloud county community college? | CREATE TABLE table_name_67 (founded INTEGER, institution VARCHAR) | SELECT MAX(founded) FROM table_name_67 WHERE institution = "cloud county community college" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
23329,
3,
21342,
17966,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
3,
20100,
28,
46,
14932,
13,
3126,
5435,
573,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
23329,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6568,
3274,
96,
23742,
5435,
573,
1900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many players were in the event after 2011 with less than 9 aces? | CREATE TABLE table_name_72 (
player VARCHAR,
event VARCHAR,
aces VARCHAR
) | SELECT COUNT(player) FROM table_name_72 WHERE event > 2011 AND NOT aces < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1959,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
3,
9,
2319,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
130,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
605,
2490,
2722,
3430,
4486,
3,
9,
2319,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What nation started in lane 3 of heat 2? | CREATE TABLE table_name_78 (nationality VARCHAR, heat VARCHAR, lane VARCHAR) | SELECT nationality FROM table_name_78 WHERE heat = 2 AND lane = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
16557,
485,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,
708,
16,
3,
8102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1678,
3274,
204,
3430,
3,
8102,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the total number of winners before the tour was canceled ? | CREATE TABLE table_204_694 (
id number,
"year" text,
"name" text,
"date" text,
"stages" number,
"distance" text,
"winner" text,
"time" text
) | SELECT COUNT("winner") FROM table_204_694 WHERE "date" <> 'cancelled' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
10705,
7,
121,
381,
6,
96,
26,
23,
8389,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3757,
687,
8512,
21680,
953,
834,
26363,
834,
3951,
591,
549,
17444,
427,
96,
5522,
121,
3,
2,
3155,
3,
31,
1608,
7125,
1361,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What machine has 5 as the place? | CREATE TABLE table_40931 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
) | SELECT "Machine" FROM table_40931 WHERE "Place" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4271,
536,
41,
96,
345,
11706,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
329,
1836,
630,
121,
1499,
6,
96,
28328,
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,
329,
1836,
630,
121,
21680,
953,
834,
2445,
4271,
536,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Series has a Date of may 2? | CREATE TABLE table_39181 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | SELECT "Series" FROM table_39181 WHERE "Date" = 'may 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2606,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
12106,
7,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
3288,
2606,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the school of the player from Dallas, TX? | CREATE TABLE table_name_47 (
school VARCHAR,
hometown VARCHAR
) | SELECT school FROM table_name_47 WHERE hometown = "dallas, tx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
496,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
496,
13,
8,
1959,
45,
9628,
6,
332,
4,
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,
1,
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,
4177,
549,
17444,
427,
22295,
3274,
96,
26,
1748,
9,
7,
6,
3,
17,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the codes of countries that have more than 50 players. | CREATE TABLE players (country_code VARCHAR) | SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1508,
41,
17529,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
5633,
13,
1440,
24,
43,
72,
145,
943,
1508,
5,
1,
0,
0,
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,
684,
834,
4978,
21680,
1508,
350,
4630,
6880,
272,
476,
684,
834,
4978,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With the lost of 3, how many points? | CREATE TABLE table_31877 (
"Played in" text,
"Matches" text,
"Lost" text,
"Drawn" text,
"Points for" text,
"Points against" text
) | SELECT "Points against" FROM table_31877 WHERE "Lost" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
27697,
41,
96,
15800,
15,
26,
16,
121,
1499,
6,
96,
329,
144,
2951,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
22512,
7,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
581,
121,
21680,
953,
834,
3341,
27697,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest Bronze, when Total is less than 3, and when Silver is less than 0? | CREATE TABLE table_name_86 (
bronze INTEGER,
total VARCHAR,
silver VARCHAR
) | SELECT MAX(bronze) FROM table_name_86 WHERE total < 3 AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
13467,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
20841,
6,
116,
927... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
792,
3,
2,
220,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What college did the player who was drafted by Calgary go to? | CREATE TABLE table_30269 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_30269 WHERE "CFL Team" = 'Calgary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
357,
3951,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
7883,
121,
21680,
953,
834,
1458,
357,
3951,
549,
17444,
427,
96,
254,
10765,
2271,
121,
3274,
3,
31,
14318,
1478,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the smallest episode number of an episode whose number in the series is 22? | CREATE TABLE table_13336122_3 (no_in_season INTEGER, no_in_series VARCHAR) | SELECT MIN(no_in_season) FROM table_13336122_3 WHERE no_in_series = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
3420,
20889,
834,
519,
41,
29,
32,
834,
77,
834,
9476,
3,
21342,
17966,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
22974,
3420,
20889,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the round when the home team was chornomorets odessa? | CREATE TABLE table_name_55 (round VARCHAR, home_team VARCHAR) | SELECT round FROM table_name_55 WHERE home_team = "chornomorets odessa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7775,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1751,
116,
8,
234,
372,
47,
3,
75,
6293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
234,
834,
11650,
3274,
96,
75,
6293,
32,
3706,
17,
7,
3,
32,
1395,
7,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When bloggers was the poll winner, who was the root of all evil? | CREATE TABLE table_20303 (
"#" real,
"Advocate # 1" text,
"Advocate # 2" text,
"Root of All Evil" text,
"Poll winner" text,
"Original air date" text
) | SELECT "Root of All Evil" FROM table_20303 WHERE "Poll winner" = 'Bloggers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
23335,
41,
96,
4663,
121,
490,
6,
96,
21021,
32,
8367,
1713,
209,
121,
1499,
6,
96,
21021,
32,
8367,
1713,
204,
121,
1499,
6,
96,
22778,
17,
13,
432,
26567,
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,
22778,
17,
13,
432,
26567,
121,
21680,
953,
834,
1755,
23335,
549,
17444,
427,
96,
8931,
40,
4668,
121,
3274,
3,
31,
279,
27282,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010? | CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT adults FROM reservations WHERE checkin = "2010-10-23" AND firstname = "CONRAD" AND lastname = "SELBIG" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
1499,
6,
562,
4350,
1499,
6,
8326,
381,
6,
1953,
6137,
1499,
6,
9858,
13377,
413,
6833,
381,
6,
1247,
102,
4920,
381,
6,
4469,
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,
3513,
21680,
17653,
549,
17444,
427,
691,
77,
3274,
96,
14926,
4536,
18,
2773,
121,
3430,
166,
4350,
3274,
96,
17752,
21577,
121,
3430,
336,
4350,
3274,
96,
23143,
279,
8834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
which is the first church located in los angeles ? | CREATE TABLE table_203_274 (
id number,
"church name" text,
"address" text,
"community" text,
"school" text
) | SELECT "church name" FROM table_203_274 WHERE "community" = 'los angeles' ORDER BY id LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
591,
41,
3,
23,
26,
381,
6,
96,
28854,
564,
121,
1499,
6,
96,
9,
26,
12039,
121,
1499,
6,
96,
18782,
485,
121,
1499,
6,
96,
6646,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28854,
564,
121,
21680,
953,
834,
23330,
834,
2555,
591,
549,
17444,
427,
96,
18782,
485,
121,
3274,
3,
31,
2298,
11831,
15,
7,
31,
4674,
11300,
272,
476,
3,
23,
26,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100... |
What is the position when the points 1 is 61? | CREATE TABLE table_name_40 (position INTEGER, points_1 VARCHAR) | SELECT SUM(position) FROM table_name_40 WHERE points_1 = "61" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
4718,
3,
21342,
17966,
6,
979,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
116,
8,
979,
209,
19,
3,
4241,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
979,
834,
536,
3274,
96,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which rider has the time of +31.426? | CREATE TABLE table_67196 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Rider" FROM table_67196 WHERE "Time/Retired" = '+31.426' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
26937,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
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,
448,
23,
588,
121,
21680,
953,
834,
3708,
26937,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
1220,
519,
14912,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In which season did Jimmy Eriksson win the championship for Team Lotus? | CREATE TABLE table_name_40 (
season VARCHAR,
team VARCHAR,
champion VARCHAR
) | SELECT season FROM table_name_40 WHERE team = "lotus" AND champion = "jimmy eriksson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
774,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
774,
410,
16754,
21173,
7,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
372,
3274,
96,
3171,
302,
121,
3430,
6336,
3274,
96,
354,
603,
2258,
3,
15,
9629,
7,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Rank, when Event is "LAPT3 Punta Del Este"? | CREATE TABLE table_name_65 (rank VARCHAR, event VARCHAR) | SELECT rank FROM table_name_65 WHERE event = "lapt3 punta del este" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
6254,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
22557,
6,
116,
8042,
19,
96,
4569,
6383,
519,
276,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
605,
3274,
96,
8478,
17,
519,
4930,
17,
9,
20,
40,
249,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are all the AAA classes in the school years of 2005-06? | CREATE TABLE table_14603212_5 (
class_aAA VARCHAR,
school_year VARCHAR
) | SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2005-06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4928,
24837,
834,
755,
41,
853,
834,
9,
5498,
584,
4280,
28027,
6,
496,
834,
1201,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
22656,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
834,
9,
5498,
21680,
953,
834,
24300,
4928,
24837,
834,
755,
549,
17444,
427,
496,
834,
1201,
3274,
96,
22594,
18,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the most wins which have clubbed of elche cf and goals against more than 43 | CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR) | SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3757,
7,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1886,
3274,
96,
15,
40,
1033,
3,
75,
89,
121,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
8838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
August 16 had what record? | CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_72 WHERE date = "august 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1660,
898,
141,
125,
1368,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
402,
17198,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the manufacturer serial number of the 1963 withdrawn year? | CREATE TABLE table_74829 (
"Wheel arrangement" text,
"Manufacturer Serial numbers" text,
"Year introduced MRWA" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) withdrawn" text
) | SELECT "Manufacturer Serial numbers" FROM table_74829 WHERE "Year(s) withdrawn" = '1963' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3707,
3166,
41,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
29549,
2302,
121,
1499,
6,
96,
476,
2741,
3665,
3,
9320,
12054,
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,
7296,
76,
8717,
450,
49,
29549,
2302,
121,
21680,
953,
834,
940,
3707,
3166,
549,
17444,
427,
96,
476,
2741,
599,
7,
61,
3,
28032,
121,
3274,
3,
31,
2294,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For the 12/12 races, what is the fastest lap? | CREATE TABLE table_name_95 (
fastest_laps VARCHAR,
races_† VARCHAR
) | SELECT fastest_laps FROM table_name_95 WHERE races_† = "12/12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
10391,
834,
8478,
7,
584,
4280,
28027,
6,
10879,
834,
2,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
586,
18009,
10879,
6,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10391,
834,
8478,
7,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
10879,
834,
2,
3274,
96,
2122,
18009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give the number of patients whose procedure long title is closed biopsy of skin and subcutaneous tissue and lab test fluid is cerebrospinal fluid (csf). | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Closed biopsy of skin and subcutaneous tissue" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
How many points did Connaught Type A chassis earn on average before 1955? | CREATE TABLE table_name_32 (
points INTEGER,
year VARCHAR,
chassis VARCHAR
) | SELECT AVG(points) FROM table_name_32 WHERE year < 1955 AND chassis = "connaught type a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
979,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
1193,
29,
9313,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
215,
3,
2,
23652,
3430,
22836,
3274,
96,
1018,
29,
9313,
686,
3,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who was the director of the episode with production code ad1a26? | CREATE TABLE table_name_38 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
6640,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
47,
8,
2090,
13,
8,
5640,
28,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
999,
834,
4978,
3274,
96,
9,
26,
536,
9,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the population, name and leader of the country with the largest area? | CREATE TABLE country (Name VARCHAR, population VARCHAR, HeadOfState VARCHAR, SurfaceArea VARCHAR) | SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
41,
23954,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
6,
3642,
667,
89,
134,
4748,
584,
4280,
28027,
6,
18884,
188,
864,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5570,
6,
2074,
6,
3642,
667,
89,
134,
4748,
21680,
684,
4674,
11300,
272,
476,
18884,
188,
864,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What class is the dodge dealers grand prix? | CREATE TABLE table_name_23 (class VARCHAR, race VARCHAR) | SELECT class FROM table_name_23 WHERE race = "the dodge dealers grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
4057,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
853,
19,
8,
26841,
15939,
1907,
3407,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1964,
3274,
96,
532,
26841,
15939,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many candidates represent the district of kenneth a. roberts? | CREATE TABLE table_1341897_3 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1341897_3 WHERE incumbent = "Kenneth A. Roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4327,
834,
519,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4341,
4221,
8,
3939,
13,
3,
937... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
2606,
4327,
834,
519,
549,
17444,
427,
28406,
3274,
96,
439,
5990,
189,
71,
5,
2715,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of customers using the most popular payment method? | CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR) | SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
4350,
584,
4280,
28027,
6,
1942,
834,
23152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
722,
338,
8,
167,
1012,
1942,
1573,
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,
884,
834,
4350,
21680,
722,
549,
17444,
427,
1942,
834,
23152,
3274,
41,
23143,
14196,
1942,
834,
23152,
21680,
722,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
... |
What is the status in those places where the poverty rate is 8.6%? | CREATE TABLE table_22815568_7 (status VARCHAR, poverty_rate VARCHAR) | SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
940,
41,
8547,
302,
584,
4280,
28027,
6,
9569,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637,
16,
273,
1747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
940,
549,
17444,
427,
9569,
834,
2206,
3274,
96,
927,
5,
6370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest 2011 number (,000)? | CREATE TABLE table_273617_6 (
Id VARCHAR
) | SELECT MIN(2011 AS _number__), 000 AS _ FROM table_273617_6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3420,
2517,
834,
948,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2722,
381,
41,
6,
2313,
61,
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,
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,
3,
17684,
599,
13907,
6157,
3,
834,
5525,
1152,
834,
834,
201,
6078,
6157,
3,
834,
21680,
953,
834,
2555,
3420,
2517,
834,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game number was played on april 8? | CREATE TABLE table_27704187_11 (game INTEGER, date VARCHAR) | SELECT MIN(game) FROM table_27704187_11 WHERE date = "April 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
4853,
4225,
834,
2596,
41,
7261,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
381,
47,
1944,
30,
3,
9,
2246,
40,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
2555,
2518,
4853,
4225,
834,
2596,
549,
17444,
427,
833,
3274,
96,
23323,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the average number of passengers in the united states ? | CREATE TABLE table_203_515 (
id number,
"rank" number,
"city" text,
"passengers" number,
"ranking" number,
"airline" text
) | SELECT AVG("passengers") FROM table_203_515 WHERE "city" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
1808,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
6726,
121,
1499,
6,
96,
3968,
4606,
277,
121,
381,
6,
96,
6254,
53,
121,
381,
6,
96,
2256,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3968,
4606,
277,
8512,
21680,
953,
834,
23330,
834,
755,
1808,
549,
17444,
427,
96,
6726,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is days of hospital stay and icu stay id of subject id 81254? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.days_stay, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "81254" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
5... |
Show origins of all flights with destination Honolulu. | CREATE TABLE Flight (
origin VARCHAR,
destination VARCHAR
) | SELECT origin FROM Flight WHERE destination = "Honolulu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16736,
41,
5233,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
5233,
7,
13,
66,
7534,
28,
3954,
11772,
32,
40,
83,
76,
5,
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,
5233,
21680,
16736,
549,
17444,
427,
3954,
3274,
96,
566,
106,
32,
40,
83,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the Away team score was 15.20 (110), what was the Home team playing? | CREATE TABLE table_57746 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_57746 WHERE "Away team score" = '15.20 (110)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4013,
4448,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
755,
4013,
4448,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
1755,
4077,
16968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the average 2008 for beijing and 2005 more than 2 | CREATE TABLE table_name_21 (
year VARCHAR
) | SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
2628,
21,
468,
354,
53,
11,
3105,
72,
145,
204,
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,
71,
17217,
599,
16128,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
215,
3274,
96,
5358,
354,
53,
121,
3430,
3105,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose ethnicity is white - russian and diagnoses long title is other pulmonary insufficiency, not elsewhere classified? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND diagnoses.long_title = "Other pulmonary insufficiency, not elsewhere classified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which System's Name is Steem, and has a Freeware License? | CREATE TABLE table_53114 (
"Name" text,
"Actual version" text,
"System" text,
"Platform" text,
"License" text
) | SELECT "System" FROM table_53114 WHERE "License" = 'freeware' AND "Name" = 'steem' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
18959,
41,
96,
23954,
121,
1499,
6,
96,
23312,
3471,
988,
121,
1499,
6,
96,
14342,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
434,
447,
5167,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14342,
121,
21680,
953,
834,
4867,
18959,
549,
17444,
427,
96,
434,
447,
5167,
121,
3274,
3,
31,
2113,
3404,
31,
3430,
96,
23954,
121,
3274,
3,
31,
849,
15,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which show returns april 3 with a Previous Network of lifetime? | CREATE TABLE table_name_44 (retitled_as_same VARCHAR, returning VARCHAR, previous_network VARCHAR) | SELECT retitled_as_same FROM table_name_44 WHERE returning = "april 3" AND previous_network = "lifetime" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
60,
10920,
834,
9,
7,
834,
7,
265,
15,
584,
4280,
28027,
6,
7646,
584,
4280,
28027,
6,
1767,
834,
1582,
1981,
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,
0,
0... | [
3,
23143,
14196,
3,
60,
10920,
834,
9,
7,
834,
7,
265,
15,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
7646,
3274,
96,
9,
2246,
40,
220,
121,
3430,
1767,
834,
1582,
1981,
3274,
96,
4597,
715,
121,
1,
-100,
-100,
-100,
-10... |
Where are all the 1485khz frequency located? | CREATE TABLE table_28794440_1 (
location VARCHAR,
frequency VARCHAR
) | SELECT location FROM table_28794440_1 WHERE frequency = "1485kHz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4440,
3628,
2445,
834,
536,
41,
1128,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
33,
66,
8,
968,
4433,
157,
107,
172,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2577,
4440,
3628,
2445,
834,
536,
549,
17444,
427,
7321,
3274,
96,
2534,
4433,
157,
16223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has a city with a Hanja of 平安北道? | CREATE TABLE table_name_83 (country VARCHAR, hanja VARCHAR) | SELECT country FROM table_name_83 WHERE hanja = "平安北道" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
17529,
584,
4280,
28027,
6,
3,
2618,
1191,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
3,
9,
690,
28,
3,
9,
6627,
1191,
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,
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,
4591,
549,
17444,
427,
3,
2618,
1191,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which restaurants have highest rating? List the restaurant name and its rating. | CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE visits_restaurant (
stuid number,
... | SELECT resname, rating FROM restaurant ORDER BY rating DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
834,
6137,
41,
3,
60,
7,
6137,
23,
26,
381,
6,
3,
60,
7,
6137,
4350,
1499,
6,
880,
63,
3138,
15,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
3,
60,
7,
4350,
6,
5773,
21680,
2062,
4674,
11300,
272,
476,
5773,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year was Jerry Huckaby first elected? | CREATE TABLE table_1341663_19 (
first_elected VARCHAR,
incumbent VARCHAR
) | SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
16637,
454,
4636,
9,
969,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
683,
49,
651,
454,
4636,
9,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT PLAYER HAS A SCORE OF 66-73=139? | CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_79 WHERE score = 66 - 73 = 139 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
17501,
476,
3316,
454,
3291,
71,
6508,
20888,
3347,
3,
3539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2604,
3274,
3,
3539,
3,
18,
3,
4552,
3274,
3,
24090,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of All_Road and ACC_Percent in a bar chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Road, ACC_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
448,
32,
9,
26,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the 1st member of the parliament assembled on 5 April 1614? | CREATE TABLE table_name_41 (
assembled VARCHAR
) | SELECT 1 AS st_member FROM table_name_41 WHERE assembled = "5 april 1614" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
17583,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
209,
7,
17,
1144,
13,
8,
20417,
17583,
30,
305,
1186,
898,
2534,
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,
209,
6157,
3,
7,
17,
834,
12066,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
17583,
3274,
96,
755,
3,
9,
2246,
40,
898,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2009 estimate population of the region with Manaus as the largest city? | CREATE TABLE table_name_79 (
population__2009_estimate_ VARCHAR,
largest_city VARCHAR
) | SELECT population__2009_estimate_ FROM table_name_79 WHERE largest_city = "manaus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
2074,
834,
834,
16660,
834,
3340,
5058,
834,
584,
4280,
28027,
6,
2015,
834,
6726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
834,
834,
16660,
834,
3340,
5058,
834,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2015,
834,
6726,
3274,
96,
348,
2064,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who tied with 8 losses and 50% wins? | CREATE TABLE table_name_19 (
tied VARCHAR,
losses VARCHAR,
win__percentage VARCHAR
) | SELECT tied FROM table_name_19 WHERE losses = "8" AND win__percentage = "50%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
10422,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1042... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10422,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
8467,
3274,
96,
927,
121,
3430,
1369,
834,
834,
883,
3728,
545,
3274,
96,
1752,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the max pressure of the cartridge where the muzzle energy is 201ft lbf (273 j)? | CREATE TABLE table_173103_1 (
max_pressure VARCHAR,
muzzle_energy VARCHAR
) | SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = "201ft•lbf (273 J)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
519,
17864,
834,
536,
41,
9858,
834,
26866,
584,
4280,
28027,
6,
4035,
15133,
834,
24310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9858,
1666... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9858,
834,
26866,
21680,
953,
834,
2517,
519,
17864,
834,
536,
549,
17444,
427,
4035,
15133,
834,
24310,
3274,
96,
22772,
89,
17,
29947,
40,
115,
89,
4743,
4552,
446,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many ranks have a Code (IATA/ICAO) of ord/kord? | CREATE TABLE table_name_29 (rank VARCHAR, code__iata_icao_ VARCHAR) | SELECT COUNT(rank) FROM table_name_29 WHERE code__iata_icao_ = "ord/kord" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6254,
584,
4280,
28027,
6,
1081,
834,
834,
17221,
834,
2617,
32,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13799,
43,
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,
6254,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1081,
834,
834,
17221,
834,
2617,
32,
834,
3274,
96,
127,
26,
87,
5543,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When Denizli was the province, what was the total number of valid votes? | CREATE TABLE table_27274222_2 (valid_votes VARCHAR, province VARCHAR) | SELECT COUNT(valid_votes) FROM table_27274222_2 WHERE province = "Denizli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2555,
4165,
2884,
834,
357,
41,
27769,
834,
1621,
1422,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
374,
24362,
40,
23,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
27769,
834,
1621,
1422,
61,
21680,
953,
834,
2555,
2555,
4165,
2884,
834,
357,
549,
17444,
427,
7985,
3274,
96,
2962,
24362,
40,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many of the patients diagnosed with skin disorders nec were treated with additive therapy? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Skin disorders NEC" AND prescriptions.drug_type = "ADDITIVE" | [
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,
3... |
Who was the Centerfold model when O.J. Simpson was the Interview Subject? | CREATE TABLE table_43059 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Centerfold model" FROM table_43059 WHERE "Interview subject" = 'o.j. simpson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24382,
10533,
825,
121,
21680,
953,
834,
25449,
3390,
549,
17444,
427,
96,
17555,
4576,
1426,
121,
3274,
3,
31,
32,
5,
354,
5,
108,
1167,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many golds have a Total of 11, and a Bronze smaller than 3? | CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
14910,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2045,
7,
43,
3,
9,
9273,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
792,
3274,
850,
3430,
13467,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)? | CREATE TABLE table_65085 (
"City of license /Market" text,
"Station" text,
"Channel ( TV / RF )" text,
"Owned Since" real,
"Affiliation" text
) | SELECT "City of license /Market" FROM table_65085 WHERE "Owned Since" < '2011' AND "Affiliation" = 'abc' AND "Channel ( TV / RF )" = '9 (22)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
4433,
41,
96,
254,
485,
13,
3344,
3,
87,
22572,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
3541,
4515,
40,
41,
1424,
3,
87,
3,
8556,
3,
61,
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,
254,
485,
13,
3344,
3,
87,
22572,
121,
21680,
953,
834,
15348,
4433,
549,
17444,
427,
96,
667,
210,
29,
15,
26,
1541,
121,
3,
2,
3,
31,
13907,
31,
3430,
96,
188,
89,
8027,
23,
257,
121,
3274,
3,
31,
9,
1... |
What was the score when Spennymoor United as the away team? | CREATE TABLE table_45199 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_45199 WHERE "Away team" = 'spennymoor united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
19479,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2128,
19479,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
3208,
29,
63,
21477,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.