NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What are the dominant religions in the place with a population of 83? | CREATE TABLE table_2562572_27 (dominant_religion__2002_ VARCHAR, population__2011_ VARCHAR) | SELECT dominant_religion__2002_ FROM table_2562572_27 WHERE population__2011_ = "83" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2555,
41,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12613,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
2555,
549,
17444,
427,
2074,
834,
834,
13907,
834,
3274,
96,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Cover model has a Centerfold model of scarlett keegan? | CREATE TABLE table_40539 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Cover model" FROM table_40539 WHERE "Centerfold model" = 'scarlett keegan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3076,
3288,
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,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1890,
825,
121,
21680,
953,
834,
591,
3076,
3288,
549,
17444,
427,
96,
24382,
10533,
825,
121,
3274,
3,
31,
7,
1720,
1655,
17,
3,
1050,
15,
2565,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the biggended for 1947? | CREATE TABLE table_12526990_1 (
biggenden INTEGER,
year VARCHAR
) | SELECT MAX(biggenden) FROM table_12526990_1 WHERE year = 1947 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
2688,
26901,
834,
536,
41,
600,
729,
537,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
600,
122,
14550,
21,
23992,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
12911,
729,
537,
61,
21680,
953,
834,
10124,
2688,
26901,
834,
536,
549,
17444,
427,
215,
3274,
23992,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the lot details of lots associated with transactions with share count smaller than 50? | CREATE TABLE LOTS (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE TRANSACTIONS_LOTS (transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, share_count INTEGER) | SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
19912,
134,
41,
3171,
834,
221,
5756,
7,
584,
4280,
28027,
6,
418,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
26585,
30518,
134,
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,
332,
5411,
3171,
834,
221,
5756,
7,
21680,
3,
19912,
134,
6157,
332,
536,
3,
15355,
3162,
26585,
30518,
134,
834,
19912,
134,
6157,
332,
357,
9191,
332,
5411,
3171,
834,
23,
26,
3274,
332,
4416,
7031,
4787,
834,
23,... |
What grade did jockey Robby Albarado get when racing with Ravens Pass? | CREATE TABLE table_33805 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Grade" text,
"Runner up/Winner" text,
"Track" text
) | SELECT "Grade" FROM table_33805 WHERE "Jockey" = 'robby albarado' AND "Runner up/Winner" = 'ravens pass' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
3076,
41,
96,
371,
77,
1273,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
13368,
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,
4744,
221,
121,
21680,
953,
834,
519,
3747,
3076,
549,
17444,
427,
96,
683,
3961,
15,
63,
121,
3274,
3,
31,
5840,
969,
7046,
9,
19042,
31,
3430,
96,
23572,
95,
87,
18455,
687,
121,
3274,
3,
31,
11852,
35,
7,... |
how many countries have at least 10 total medals ? | CREATE TABLE table_203_716 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_203_716 WHERE "total" >= 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2938,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29,
257,
8512,
21680,
953,
834,
23330,
834,
940,
2938,
549,
17444,
427,
96,
235,
1947,
121,
2490,
2423,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the maximum and average height of the mountains? | CREATE TABLE mountain (
id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE camera_lens (
id number,
brand text,
name text,
focal_length_mm number,
max_aperture number
)
CREATE TABLE photos (
id number,
camera_lens_id numb... | SELECT MAX(height), AVG(height) FROM mountain | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
3902,
381,
6,
31829,
381,
6,
620,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1861,
834,
40,
35,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
88,
2632,
201,
71,
17217,
599,
88,
2632,
61,
21680,
4180,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show different locations and the number of performances at each location by a bar chart, sort x-axis in ascending order. | CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
) | SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
15116,
663,
41,
8541,
834,
4309,
16,
17,
6,
8233,
834,
4309,
16,
17,
6,
1174,
51,
834,
858,
834,
345,
23,
15,
2319,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
821,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Attendance when the Result is l0-13? | CREATE TABLE table_name_59 (
attendance VARCHAR,
result VARCHAR
) | SELECT attendance FROM table_name_59 WHERE result = "l0-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
11364,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22497,
663,
116,
8,
3,
20119,
19,
3,
40,
632,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
741,
3274,
96,
40,
632,
13056,
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 smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978? | CREATE TABLE table_name_45 (
finish INTEGER,
start VARCHAR,
year VARCHAR,
manufacturer VARCHAR
) | SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = "buick" AND start < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1992,
3,
21342,
17966,
6,
456,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
4818,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
25535,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
215,
2490,
14834,
3430,
4818,
3274,
96,
3007,
3142,
121,
3430,
456,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what was the size when tom daley appeared | CREATE TABLE table_29141354_1 (
episode VARCHAR,
jamie_and_johns_guest VARCHAR
) | SELECT episode FROM table_29141354_1 WHERE jamie_and_johns_guest = "Tom Daley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2534,
2368,
5062,
834,
536,
41,
5640,
584,
4280,
28027,
6,
2662,
2720,
834,
232,
834,
27341,
7,
834,
15991,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
21680,
953,
834,
3166,
2534,
2368,
5062,
834,
536,
549,
17444,
427,
2662,
2720,
834,
232,
834,
27341,
7,
834,
15991,
17,
3274,
96,
3696,
51,
878,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
After Match 43, what was the Attendance of the Match with a Score of 2-4? | CREATE TABLE table_name_14 (
attendance INTEGER,
match_no VARCHAR,
score VARCHAR
) | SELECT MAX(attendance) FROM table_name_14 WHERE match_no > 43 AND score = "2-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
11364,
3,
21342,
17966,
6,
1588,
834,
29,
32,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
12296,
8838,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1588,
834,
29,
32,
2490,
8838,
3430,
2604,
3274,
96,
21432,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnoses long title is 35-36 completed weeks of gestation and drug route is pr? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "35-36 completed weeks of gestation" AND prescriptions.route = "PR" | [
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,
3... |
WHAT WAS THE OVERALL NUMBER WITH A POSITON OF DB, AND ROUND GREATER THAN 8? | CREATE TABLE table_name_27 (overall VARCHAR, position VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_27 WHERE position = "db" AND round > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1890,
1748,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
7896,
134,
1853,
3,
23288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1102,
3274,
96,
26,
115,
121,
3430,
1751,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart of mean age from each city code, and show Y-axis in ascending order. | CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Lives_in (
stuid INTEGER,
do... | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY AVG(Age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
834,
9,
904,
485,
41,
183,
35,
23,
26,
3,
21342,
17966,
6,
183,
35,
485,
834,
4350,
584,
4280,
28027,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
834,
4978,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many years had scores of 10–12, 6–1, 6–3? | CREATE TABLE table_2127933_3 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_2127933_3 WHERE score = "10–12, 6–1, 6–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
4440,
4201,
834,
519,
41,
1201,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
141,
7586,
13,
335,
104,
2122,
6,
431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
24837,
4440,
4201,
834,
519,
549,
17444,
427,
2604,
3274,
96,
1714,
104,
2122,
6,
431,
104,
4347,
431,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won mixed doubles in the 2002 season? | CREATE TABLE table_name_42 (
mixed_doubles VARCHAR,
season VARCHAR
) | SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4838,
834,
25761,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
4838,
1486,
7,
16,
8,
4407,
774,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4838,
834,
25761,
7,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
774,
3274,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was performer 3 with karen maruyama as performer 2? | CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR) | SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
883,
2032,
49,
834,
519,
584,
4280,
28027,
6,
1912,
49,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
1912,
49,
220,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1912,
49,
834,
519,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1912,
49,
834,
357,
3274,
96,
4031,
35,
3157,
76,
22990,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose admission type is elective and lab test fluid is cerebrospinal fluid (csf)? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
List all the customers in increasing order of IDs by a bar chart. | CREATE TABLE Services (
Service_ID INTEGER,
Service_name VARCHAR(40)
)
CREATE TABLE Customers_Policies (
Customer_ID INTEGER,
Policy_ID INTEGER,
Date_Opened DATE,
Date_Closed DATE
)
CREATE TABLE First_Notification_of_Loss (
FNOL_ID INTEGER,
Customer_ID INTEGER,
Policy_ID INTEGER,
... | SELECT Customer_name, Customer_ID FROM Customers ORDER BY Customer_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1799,
41,
1387,
834,
4309,
3,
21342,
17966,
6,
1387,
834,
4350,
584,
4280,
28027,
599,
2445,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
8931,
447,
725,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7327,
834,
4350,
6,
7327,
834,
4309,
21680,
16423,
4674,
11300,
272,
476,
7327,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which away team is from junction oval? | CREATE TABLE table_58409 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_58409 WHERE "Venue" = 'junction oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
4198,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
3449,
591,
4198,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
6959,
4985,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the transaction type descriptions and dates if the share count is smaller than 10. | CREATE TABLE Ref_Transaction_Types (
transaction_type_description VARCHAR,
transaction_type_code VARCHAR
)
CREATE TABLE TRANSACTIONS (
date_of_transaction VARCHAR,
transaction_type_code VARCHAR,
share_count INTEGER
) | SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
18474,
4787,
834,
25160,
7,
41,
5878,
834,
6137,
834,
221,
11830,
584,
4280,
28027,
6,
5878,
834,
6137,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
7031,
4787,
834,
6137,
834,
221,
11830,
6,
332,
4416,
5522,
834,
858,
834,
7031,
4787,
21680,
419,
89,
834,
18474,
4787,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
26585,
30518,
134,
6157,
332,
357,
9... |
What is the sum of Preliminary scores where the interview score is 9.654 and the average score is lower than 9.733? | CREATE TABLE table_name_84 (preliminary INTEGER, interview VARCHAR, average VARCHAR) | SELECT SUM(preliminary) FROM table_name_84 WHERE interview = 9.654 AND average < 9.733 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
2026,
4941,
77,
1208,
3,
21342,
17966,
6,
2772,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
2026,
4941,
77,
1208,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2772,
3274,
5835,
4122,
591,
3430,
1348,
3,
2,
5835,
4552,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the party for the candidates edwin gray (dr)? | CREATE TABLE table_2668393_18 (
party VARCHAR,
candidates VARCHAR
) | SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
3288,
519,
834,
2606,
41,
1088,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1088,
21,
8,
4341,
3,
15,
26,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
2688,
3651,
3288,
519,
834,
2606,
549,
17444,
427,
4341,
3274,
96,
427,
26,
3757,
13375,
41,
3913,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every company with an index weighting % of 1 and the city of Dimitrovgrad? | CREATE TABLE table_20667854_1 (
company VARCHAR,
index_weighting___percentage VARCHAR,
city VARCHAR
) | SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3539,
3940,
5062,
834,
536,
41,
349,
584,
4280,
28027,
6,
5538,
834,
9378,
53,
834,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
349,
21680,
953,
834,
1755,
3539,
3940,
5062,
834,
536,
549,
17444,
427,
5538,
834,
9378,
53,
834,
834,
834,
883,
3728,
545,
3274,
96,
536,
121,
3430,
690,
3274,
96,
308,
23,
1538,
8843,
3987,
121,
1,
-100,
-100,
... |
what is average age of patients whose insurance is private and days of hospital stay is 7? | 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 AVG(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.days_stay = "7" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the platform if the weight is 131.5g? | CREATE TABLE table_26146 (
"Code name" text,
"Market name" text,
"Platform" text,
"Release date" text,
"Android version" text,
"System on chip" text,
"RAM" text,
"ROM" text,
"Display" text,
"Weight" text,
"Battery ( mAh )" real,
"Bluetooth" text,
"Wi-Fi" text,
"NF... | SELECT "Platform" FROM table_26146 WHERE "Weight" = '131.5g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
24300,
41,
96,
22737,
564,
121,
1499,
6,
96,
22572,
564,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
7175,
8184,
988,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10146,
2032,
121,
21680,
953,
834,
2688,
24300,
549,
17444,
427,
96,
1326,
2632,
121,
3274,
3,
31,
2368,
16593,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Record at the game that had an attendance of 21,191? | CREATE TABLE table_54398 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_54398 WHERE "Attendance" = '21,191' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
519,
3916,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
5062,
519,
3916,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2658,
6,
2294,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many poles are there in the Formula Three Euroseries in the 2008 season with more than 0 F/Laps? | CREATE TABLE table_name_40 (
poles INTEGER,
f_laps VARCHAR,
series VARCHAR,
season VARCHAR
) | SELECT SUM(poles) FROM table_name_40 WHERE series = "formula three euroseries" AND season = "2008" AND f_laps > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
11148,
7,
3,
21342,
17966,
6,
3,
89,
834,
8478,
7,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
14332,
7,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
939,
3274,
96,
2032,
83,
9,
386,
10186,
4074,
7,
121,
3430,
774,
3274,
96,
16128,
121,
3430,
3,
89,
834,
8478,
7,
2490,
3,
632,
1,... |
Which manufacturer has 8 laps? | CREATE TABLE table_45527 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | SELECT "Manufacturer" FROM table_45527 WHERE "Laps" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
755,
2555,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
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,
7296,
76,
8717,
450,
49,
121,
21680,
953,
834,
2128,
755,
2555,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When was the show 9 to 5 returning? | CREATE TABLE table_76529 (
"Show" text,
"Last Aired" real,
"Previous Network" text,
"Retitled as/Same" text,
"New/Returning/Same Network" text,
"Returning" text
) | SELECT "Returning" FROM table_76529 WHERE "Show" = '9 to 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
755,
3166,
41,
96,
134,
4067,
121,
1499,
6,
96,
3612,
7,
17,
1761,
15,
26,
121,
490,
6,
96,
10572,
19117,
3426,
121,
1499,
6,
96,
1649,
10920,
38,
87,
134,
265,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7535,
53,
121,
21680,
953,
834,
3959,
755,
3166,
549,
17444,
427,
96,
134,
4067,
121,
3274,
3,
31,
1298,
12,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0? | CREATE TABLE table_52723 (
"Tournament" text,
"Starts" real,
"Top-10s" real,
"Wins" real,
"Earnings ($)" text
) | SELECT SUM("Starts") FROM table_52723 WHERE "Tournament" = 'hsbc champions' AND "Wins" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
2773,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
22481,
4536,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
427,
291,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
7681,
17,
7,
8512,
21680,
953,
834,
755,
2555,
2773,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
107,
7,
115,
75,
6336,
7,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
632,
... |
If the province is British Columbia, what is the Arabs 2001 total number? | CREATE TABLE table_2039 (
"Province" text,
"Arabs 2001" real,
"% 2001" text,
"Arabs 2011" real,
"% 2011" text
) | SELECT COUNT("Arabs 2001") FROM table_2039 WHERE "Province" = 'British Columbia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3288,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
188,
7093,
7,
4402,
121,
490,
6,
96,
1454,
4402,
121,
1499,
6,
96,
188,
7093,
7,
2722,
121,
490,
6,
96,
1454,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7093,
7,
4402,
8512,
21680,
953,
834,
1755,
3288,
549,
17444,
427,
96,
3174,
2494,
565,
121,
3274,
3,
31,
279,
13224,
7,
107,
8183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the decay for the sattelite that was 180 kg? | CREATE TABLE table_2150068_1 (decay VARCHAR, mass_kg_ VARCHAR) | SELECT decay FROM table_2150068_1 WHERE mass_kg_ = "180" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2560,
3651,
834,
536,
41,
221,
658,
63,
584,
4280,
28027,
6,
3294,
834,
8711,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
18907,
21,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18907,
21680,
953,
834,
2658,
2560,
3651,
834,
536,
549,
17444,
427,
3294,
834,
8711,
834,
3274,
96,
20829,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What company plays on april 1? | CREATE TABLE table_27733258_11 (
team VARCHAR,
date VARCHAR
) | SELECT team FROM table_27733258_11 WHERE date = "April 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
2668,
3449,
834,
2596,
41,
372,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
349,
4805,
30,
3,
9,
2246,
40,
209,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2555,
4552,
2668,
3449,
834,
2596,
549,
17444,
427,
833,
3274,
96,
23323,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the fastest lap for piquet sports and silverstone | CREATE TABLE table_25322130_3 (
fastest_lap VARCHAR,
winning_team VARCHAR,
circuit VARCHAR
) | SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2668,
2658,
1458,
834,
519,
41,
10391,
834,
8478,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
1828,
2668,
2658,
1458,
834,
519,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
345,
1495,
17,
5716,
121,
3430,
4558,
3274,
96,
134,
173,
624,
3009,
121,
1,
-100,
-100,
-100,
-100,
... |
What is Country of Origin, when Type is Disposable, when Primary Cartridge is 105mm, and when Year of Intro is less than 2008? | CREATE TABLE table_name_74 (
country_of_origin VARCHAR,
year_of_intro VARCHAR,
type VARCHAR,
primary_cartridge VARCHAR
) | SELECT country_of_origin FROM table_name_74 WHERE type = "disposable" AND primary_cartridge = "105mm" AND year_of_intro < 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
684,
834,
858,
834,
32,
3380,
77,
584,
4280,
28027,
6,
215,
834,
858,
834,
20322,
32,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
2329,
834,
1720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
834,
858,
834,
32,
3380,
77,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
686,
3274,
96,
10475,
32,
7,
179,
121,
3430,
2329,
834,
1720,
17,
7700,
3274,
96,
12869,
635,
121,
3430,
215,
834,
858,
834,
203... |
When critical altitude is sea level, what is the compression ration for a supercharger gear ratio of 7:1? | CREATE TABLE table_16551 (
"Engine" text,
"Power, continuous" text,
"Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for ... | SELECT "Compression ratio" FROM table_16551 WHERE "Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for details." = 'sea level' AND "S... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
5553,
41,
96,
31477,
121,
1499,
6,
96,
23553,
6,
7558,
121,
1499,
6,
96,
254,
13224,
1489,
491,
6592,
100,
19,
8,
2030,
491,
6592,
44,
84,
8,
1948,
54,
1984,
165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
8243,
5688,
121,
21680,
953,
834,
22823,
5553,
549,
17444,
427,
96,
254,
13224,
1489,
491,
6592,
100,
19,
8,
2030,
491,
6592,
44,
84,
8,
1948,
54,
1984,
165,
423,
7558,
579,
5773,
5,
18262,
48,
491,
6592... |
What year was the score 269? | CREATE TABLE table_name_34 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_name_34 WHERE score = 269 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1201,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
2604,
204,
3951,
58,
1,
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,
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... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2604,
3274,
204,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is admission type and primary disease of subject name brian brock? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "Brian Brock" | [
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,
6137,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
279,
5288,
26349,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many positions had jersey number 32 | CREATE TABLE table_11734041_18 (position VARCHAR, no_s_ VARCHAR) | SELECT COUNT(position) FROM table_11734041_18 WHERE no_s_ = "32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
21129,
4853,
834,
2606,
41,
4718,
584,
4280,
28027,
6,
150,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4655,
141,
13426,
381,
3538,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
20275,
21129,
4853,
834,
2606,
549,
17444,
427,
150,
834,
7,
834,
3274,
96,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHich Position is from russia? | CREATE TABLE table_name_39 (position VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_39 WHERE nationality = "russia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
4718,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
14258,
19,
45,
3,
26165,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1157,
485,
3274,
96,
26165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many workshops did each author submit to? Return the author name and the number of workshops in a bar chart, and could you display by the X in asc? | CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
) | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY Author | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
9644,
834,
4309,
16,
17,
6,
7678,
1499,
6,
29940,
1499,
6,
5570,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
29779,
834,
4309,
16,
17,
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,
10236,
6,
2847,
17161,
599,
15438,
25424,
6227,
332,
5411,
12492,
6921,
834,
4309,
61,
21680,
20592,
663,
6157,
332,
536,
3,
15355,
3162,
8121,
6157,
332,
357,
9191,
332,
5411,
25252,
5451,
834,
4309,
3274,
332,
4416,
... |
Show sum team id from each all home, and could you show by the total number in desc? | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(Team_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
180,
6122,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
180,
6122,
599,
18699,
834,
4309,
61,
309,
25067,
1,
-100,
-100,
... |
What District had Republican Incumbent Cathy McMorris? | CREATE TABLE table_name_75 (
district VARCHAR,
party VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
3939,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3570,
141,
8994,
1542,
5937,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
28406,
3274,
96,
658,
189,
63,
3,
51,
75,
2528,
52,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Chassis has 4 points? | CREATE TABLE table_48184 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) | SELECT "Chassis" FROM table_48184 WHERE "Points" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
25987,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
3707,
25987,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 2005 value for the 2010 grand slam tournaments? | CREATE TABLE table_name_37 (Id VARCHAR) | SELECT 2005 FROM table_name_37 WHERE 2010 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3105,
701,
21,
8,
2735,
1907,
3,
7,
40,
265,
5892,
7,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3105,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2735,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the comp percentage when there are less than 44,611 in yardage, more than 254 touchdowns, and rank larger than 24? | CREATE TABLE table_79673 (
"Rank" real,
"Name" text,
"Tenure" text,
"Leagues" text,
"Attempts" real,
"Completions" real,
"Comp %" real,
"Touchdowns" real,
"Interceptions" real,
"Yardage" real,
"QB Rating" real
) | SELECT MIN("Comp %") FROM table_79673 WHERE "Yardage" < '44,611' AND "Touchdowns" > '254' AND "Rank" > '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3708,
519,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
382,
35,
1462,
121,
1499,
6,
96,
2796,
9,
15991,
121,
1499,
6,
96,
31108,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
5890,
102,
3,
1454,
8512,
21680,
953,
834,
4440,
3708,
519,
549,
17444,
427,
96,
476,
986,
545,
121,
3,
2,
3,
31,
3628,
6,
4241,
536,
31,
3430,
96,
3696,
2295,
3035,
7,
121,
2490,
3,
31,
18... |
Which is the largest average number when the swimsuit is 9.4 and the evening gown stat is less than 9.486? | CREATE TABLE table_name_75 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR) | SELECT MAX(average) FROM table_name_75 WHERE swimsuit = 9.4 AND evening_gown < 9.486 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
28951,
3,
21342,
17966,
6,
9728,
7628,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
8,
2015,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28951,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
9728,
7628,
3274,
5835,
591,
3430,
2272,
834,
122,
9197,
3,
2,
5835,
591,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the distinct nominees of the musicals with the award that is not "Tony Award"? | CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR) | SELECT DISTINCT Nominee FROM musical WHERE Award <> "Tony Award" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
4168,
8695,
15,
584,
4280,
28027,
6,
3677,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
6746,
21077,
7,
13,
8,
4183,
7,
28,
8,
2760,
24,
19,
59,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
465,
8695,
15,
21680,
4183,
549,
17444,
427,
3677,
3,
2,
3155,
96,
382,
106,
63,
3677,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the branch name of the bank that has the most number of customers. | CREATE TABLE bank (bname VARCHAR, no_of_customers VARCHAR) | SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
115,
4350,
584,
4280,
28027,
6,
150,
834,
858,
834,
25697,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
6421,
564,
13,
8,
2137,
24,
65,
8,
167,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
115,
4350,
21680,
2137,
4674,
11300,
272,
476,
150,
834,
858,
834,
25697,
277,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nationality does Florida Tech have? | CREATE TABLE table_name_1 (
nationality VARCHAR,
school VARCHAR
) | SELECT nationality FROM table_name_1 WHERE school = "florida tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1157,
485,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1157,
485,
405,
2599,
7130,
43,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
496,
3274,
96,
89,
322,
23,
26,
9,
5256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average December, when Game is "36"? | CREATE TABLE table_name_39 (december INTEGER, game VARCHAR) | SELECT AVG(december) FROM table_name_39 WHERE game = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
221,
75,
18247,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1882,
6,
116,
4435,
19,
96,
3420,
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,
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,
221,
75,
18247,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
467,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Country has the Director Chen Kaige? | CREATE TABLE table_name_79 (
country VARCHAR,
director VARCHAR
) | SELECT country FROM table_name_79 WHERE director = "chen kaige" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
684,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
8,
2578,
15570,
2209,
3077,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2090,
3274,
96,
1559,
3,
1258,
3077,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Runners have a Placing that isn't 1? | CREATE TABLE table_name_55 (runners VARCHAR, placing INTEGER) | SELECT COUNT(runners) FROM table_name_55 WHERE placing > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
10806,
7,
584,
4280,
28027,
6,
9308,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
23572,
7,
43,
3,
9,
8422,
75,
53,
24,
19,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10806,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
9308,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Label has the Region of Australia? | CREATE TABLE table_name_84 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_84 WHERE region = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
40,
10333,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
16229,
65,
8,
6163,
13,
2051,
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,
3783,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1719,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the digital for tuner of thomson dtt75105 | CREATE TABLE table_11613 (
"Type" text,
"Model" text,
"Tuner" text,
"Host Interface" text,
"Digital" text
) | SELECT "Digital" FROM table_11613 WHERE "Tuner" = 'thomson dtt75105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
2368,
41,
96,
25160,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
382,
202,
49,
121,
1499,
6,
96,
566,
3481,
25064,
121,
1499,
6,
96,
30225,
121,
1499,
3,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
30225,
121,
21680,
953,
834,
20159,
2368,
549,
17444,
427,
96,
382,
202,
49,
121,
3274,
3,
31,
17,
10207,
739,
3,
26,
17,
17,
3072,
12869,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is minimum days of hospital stay of patients whose year of birth is greater than 2066? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2066" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
1755,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What college had the 93 pick? | CREATE TABLE table_66267 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_66267 WHERE "Pick" = '93' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
357,
3708,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
3539,
357,
3708,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
4271,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose primary disease is celo-vessicle fistula and age is less than 74? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "74" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4770,
5017,
18,
553,
10087,
196,
22704,
377,
13582,
4254,
188,
121,
34... |
Which district is jamie l. whitten from? | CREATE TABLE table_1342233_24 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342233_24 WHERE incumbent = "Jamie L. Whitten" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
2266,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3939,
19,
2662,
2720,
3,
40,
5,
3,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
2368,
4165,
20879,
834,
2266,
549,
17444,
427,
28406,
3274,
96,
683,
9,
2720,
301,
5,
13334,
324,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show all cities where at least one customer lives in but no performer lives in. | CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR) | SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
20773,
9377,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
254,
485,
834,
382,
9197,
584,
4280,
28027,
6,
13246,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
254,
485,
834,
382,
9197,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
6157,
332,
357,
9191,
332,
5411,
20773,
9377,
834,
4309,
3274,
332,
4416,
20773,
9377,
834,
4309,
262,
4,
30416,
3,
23... |
What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3? | CREATE TABLE table_34939 (
"Rank" real,
"Airport" text,
"Code (IATA/ICAO)" text,
"Total Cargo (Metric Tonnes)" real,
"% Change" text
) | SELECT SUM("Total Cargo (Metric Tonnes)") FROM table_34939 WHERE "Code (IATA/ICAO)" = 'pvg/zspd' AND "Rank" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
3288,
41,
96,
22557,
121,
490,
6,
96,
20162,
1493,
121,
1499,
6,
96,
22737,
41,
196,
19282,
87,
15038,
667,
61,
121,
1499,
6,
96,
3696,
1947,
1184,
839,
41,
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,
180,
6122,
599,
121,
3696,
1947,
1184,
839,
41,
23351,
2234,
8475,
1496,
61,
8512,
21680,
953,
834,
519,
3647,
3288,
549,
17444,
427,
96,
22737,
41,
196,
19282,
87,
15038,
667,
61,
121,
3274,
3,
31,
102,
208,
122,
... |
What is the losing bonus of the team with 22 pays and 428 points against? | CREATE TABLE table_name_9 (losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR) | SELECT losing_bonus FROM table_name_9 WHERE played = "22" AND points_against = "428" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
2298,
53,
834,
5407,
302,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
5489,
834,
5407,
302,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1944,
3274,
96,
2884,
121,
3430,
979,
834,
9,
16720,
7,
17,
3274,
96,
591,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Away has a Home of 2 2? | CREATE TABLE table_name_84 (
away VARCHAR,
home VARCHAR
) | SELECT away FROM table_name_84 WHERE home = "2–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
550,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
71,
1343,
65,
3,
9,
1210,
13,
204,
204,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
234,
3274,
96,
357,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Nationality of the Player with more than 8 Goals and Apps of 52? | CREATE TABLE table_name_5 (nationality VARCHAR, goals VARCHAR, apps VARCHAR) | SELECT nationality FROM table_name_5 WHERE goals > 8 AND apps = 52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
16557,
485,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
4050,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
13,
8,
1238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1766,
2490,
505,
3430,
4050,
3274,
9065,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the format in the region of Europe with an XLCD369 and a label of XL? | CREATE TABLE table_46825 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Format" FROM table_46825 WHERE "Label" = 'xl' AND "Catalog" = 'xlcd369' AND "Region" = 'europe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
1828,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
3809,
3357,
121,
21680,
953,
834,
591,
3651,
1828,
549,
17444,
427,
96,
434,
10333,
121,
3274,
3,
31,
226,
40,
31,
3430,
96,
18610,
9,
2152,
121,
3274,
3,
31,
226,
40,
75,
26,
519,
3951,
31,
3430,
96,
17748,... |
Name the pick number for bill atessis | CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR) | SELECT pick__number FROM table_name_15 WHERE name = "bill atessis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1432,
381,
21,
2876,
3,
6203,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
564,
3274,
96,
3727,
40,
3,
6203,
7,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score for an n/a location with the odds of p + 1? | CREATE TABLE table_name_61 (result VARCHAR, location VARCHAR, odds VARCHAR) | SELECT result FROM table_name_61 WHERE location = "n/a" AND odds = "p + 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
11007,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
1128,
3274,
96,
29,
87,
9,
121,
3430,
11007,
3274,
96,
102,
1768,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients below 51 years of age are diagnosed with preterm nec 2500+g? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "51" AND diagnoses.short_title = "Preterm NEC 2500+g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
give me the number of patients admitted before the year 2135 who had elective admission. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2135" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,... |
Show me a bar chart for how many movie reviews does each director get?, and I want to display by the y axis in descending please. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
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,
2090,
6,
2847,
17161,
599,
1935,
61,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
25982,
4674,
11300,... |
Which country has a population of 3,221,216? | CREATE TABLE table_43020 (
"Country" text,
"Area (km\u00b2)" text,
"Population (2011 est.)" text,
"Population density (per km\u00b2)" text,
"GDP (PPP) $M USD" text
) | SELECT "Country" FROM table_43020 WHERE "Population (2011 est.)" = '3,221,216' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
1755,
41,
96,
10628,
651,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499,
6,
96,
27773,
7830,
41,
13907,
259,
5,
61,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
25449,
1755,
549,
17444,
427,
96,
27773,
7830,
41,
13907,
259,
5,
61,
121,
3274,
3,
31,
6355,
2884,
4347,
27184,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the average yearly number of patients who were diagnosed with valve repair < 7 days until 2104? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
... | SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'valve repair < 7 days' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104' GROUP BY STRFTIME('%y', diagnosis.diagnosistime)) AS t1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
17,
5411,
75,
6982,
21680,
41,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
8209,
5,
10061,
15129,
21545,
23,
26,
61,
6157,
3,
75,
536,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
... |
Who were the umpires when Paul Vines (S) won the Simpson Medal? | CREATE TABLE table_13514348_7 (
umpires VARCHAR,
simpson_medal VARCHAR
) | SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Vines (S)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
25133,
3707,
834,
940,
41,
561,
2388,
15,
7,
584,
4280,
28027,
6,
108,
1167,
739,
834,
2726,
138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
561,
2388,
15,
7,
21680,
953,
834,
536,
2469,
25133,
3707,
834,
940,
549,
17444,
427,
108,
1167,
739,
834,
2726,
138,
3274,
96,
23183,
1813,
1496,
41,
134,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the kickoff time on monday, may 13? | CREATE TABLE table_1639689_2 (kickoff VARCHAR, date VARCHAR) | SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
4314,
3914,
834,
357,
41,
157,
3142,
1647,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4583,
1647,
97,
30,
1911,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4583,
1647,
21680,
953,
834,
2938,
519,
4314,
3914,
834,
357,
549,
17444,
427,
833,
3274,
96,
9168,
1135,
6,
932,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the maximum year built for holmedal kyrkje | CREATE TABLE table_21970 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT MAX("Year Built") FROM table_21970 WHERE "Church Name" = 'Holmedal kyrkje' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
2518,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
134,
1825,
29,
61,
121,
1499,
6,
96,
3541,
450,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
14862,
8512,
21680,
953,
834,
357,
2294,
2518,
549,
17444,
427,
96,
3541,
450,
524,
5570,
121,
3274,
3,
31,
4489,
40,
2726,
138,
3,
3781,
52,
157,
1924,
31,
1,
-100,
-100,
-100,
-100,... |
What name has the call sign DWYS? | CREATE TABLE table_name_40 (
name VARCHAR,
call_sign VARCHAR
) | SELECT name FROM table_name_40 WHERE call_sign = "dwys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
564,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
564,
65,
8,
580,
1320,
3,
20293,
476,
134,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
580,
834,
6732,
3274,
96,
26,
210,
63,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When Richmond was the home team, what was the home team score? | CREATE TABLE table_4843 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_4843 WHERE "Home team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4906,
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,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
3707,
4906,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the part one for to give | CREATE TABLE table_1745843_9 (part_1 VARCHAR, verb_meaning VARCHAR) | SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
1298,
41,
2274,
834,
536,
584,
4280,
28027,
6,
7375,
834,
27639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
294,
80,
21,
12,
428,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
834,
536,
21680,
953,
834,
27693,
3449,
4906,
834,
1298,
549,
17444,
427,
7375,
834,
27639,
3274,
96,
235,
428,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the last year total for the team with a lowest of 23578? | CREATE TABLE table_27070 (
"Team" text,
"Hosted" real,
"Average" real,
"Highest" real,
"Lowest" real,
"Total" real,
"Last Year" real,
"Up/Down" text
) | SELECT MAX("Last Year") FROM table_27070 WHERE "Lowest" = '23578' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2518,
41,
96,
18699,
121,
1499,
6,
96,
4489,
6265,
121,
490,
6,
96,
188,
624,
545,
121,
490,
6,
96,
21417,
222,
121,
490,
6,
96,
434,
32,
12425,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3612,
7,
17,
2929,
8512,
21680,
953,
834,
17485,
2518,
549,
17444,
427,
96,
434,
32,
12425,
121,
3274,
3,
31,
25174,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who held the fastest lap in the race in texas and dario franchitti is the winning driver? | CREATE TABLE table_19850806_3 (
fastest_lap VARCHAR,
race VARCHAR,
winning_driver VARCHAR
) | SELECT fastest_lap FROM table_19850806_3 WHERE race = "Texas" AND winning_driver = "Dario Franchitti" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
17246,
2079,
948,
834,
519,
41,
10391,
834,
8478,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
2294,
17246,
2079,
948,
834,
519,
549,
17444,
427,
1964,
3274,
96,
13598,
9,
7,
121,
3430,
3447,
834,
13739,
52,
3274,
96,
308,
14414,
8177,
1436,
17,
17,
23,
121,
1,
-100,
-100,
... |
Which Round has a School/Club Team of indiana, and a Pick smaller than 198? | CREATE TABLE table_name_85 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) | SELECT AVG(round) FROM table_name_85 WHERE school_club_team = "indiana" AND pick < 198 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
7775,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
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,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
77,
8603,
9,
121,
3430,
1432,
3,
2,
3,
24151,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1? | CREATE TABLE table_15751 (
"Player" text,
"League" real,
"Scottish Cup" real,
"League Cup" real,
"Challenge Cup" real,
"Total" real
) | SELECT SUM("Challenge Cup") FROM table_15751 WHERE "League" = '1' AND "Player" = 'simon storey' AND "Total" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
5553,
41,
96,
15800,
49,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
134,
10405,
1273,
3802,
121,
490,
6,
96,
2796,
9,
5398,
3802,
121,
490,
6,
96,
254,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
254,
11516,
35,
397,
3802,
8512,
21680,
953,
834,
27452,
5553,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
536,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
28348,
29,
1078,
63,
31,
... |
Which parts have more than 2 faults? Show the part name and id. | CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR) | SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2733,
7,
41,
2274,
834,
4350,
584,
4280,
28027,
6,
294,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2733,
834,
371,
10335,
7,
41,
2274,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
2274,
834,
4350,
6,
332,
5411,
2274,
834,
23,
26,
21680,
2733,
7,
6157,
332,
536,
3,
15355,
3162,
2733,
834,
371,
10335,
7,
6157,
332,
357,
9191,
332,
5411,
2274,
834,
23,
26,
3274,
332,
4416,
2274,
834... |
How many Foreign-born (1000) are from Sweden and born in some other EU state (1000) larger than 477? | CREATE TABLE table_name_7 (total_foreign_born__1000_ INTEGER, country VARCHAR, born_in_other_eu_state__1000_ VARCHAR) | SELECT SUM(total_foreign_born__1000_) FROM table_name_7 WHERE country = "sweden" AND born_in_other_eu_state__1000_ > 477 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
235,
1947,
834,
1161,
15,
3191,
834,
7473,
834,
834,
16824,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
2170,
834,
77,
834,
9269,
834,
15,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
1161,
15,
3191,
834,
7473,
834,
834,
16824,
834,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
684,
3274,
96,
7,
1123,
537,
121,
3430,
2170,
834,
77,
834,
9269,
834,
15,
76,... |
Provide the number of patients whose ethnicity is black/african and had a lab test for amylase. | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND lab.label = "Amylase" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What number was there 6.01 million u.s. drivers? | CREATE TABLE table_23483182_1 (no_in_season VARCHAR, us_viewers__million_ VARCHAR) | SELECT no_in_season FROM table_23483182_1 WHERE us_viewers__million_ = "6.01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3707,
3341,
4613,
834,
536,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
77,
834,
9476,
21680,
953,
834,
2773,
3707,
3341,
4613,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
22642,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the away team when the VFL played at MCG? | CREATE TABLE table_74575 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_74575 WHERE "Venue" = 'mcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
3072,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
940,
2128,
3072,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
75,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did the Jets play in their post-week 15 game? | CREATE TABLE table_name_2 (
opponent VARCHAR,
week INTEGER
) | SELECT opponent FROM table_name_2 WHERE week > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
15264,
584,
4280,
28027,
6,
471,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
12434,
7,
577,
16,
70,
442,
18,
8041,
627,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
471,
2490,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
based on the table , which locomotive was built first ? | CREATE TABLE table_203_223 (
id number,
"name" text,
"gauge" text,
"builder" text,
"type" text,
"date" number,
"works number" number,
"notes" text
) | SELECT "name" FROM table_203_223 ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
2773,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
20038,
397,
121,
1499,
6,
96,
16422,
49,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
5522,
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,
4350,
121,
21680,
953,
834,
23330,
834,
357,
2773,
4674,
11300,
272,
476,
96,
5522,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the order of the Tokyo olympic games? | CREATE TABLE table_name_9 (
order VARCHAR,
olympic_games VARCHAR
) | SELECT order FROM table_name_9 WHERE olympic_games = "tokyo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
455,
584,
4280,
28027,
6,
3,
32,
120,
51,
6174,
834,
7261,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
455,
13,
8,
12653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
455,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3,
32,
120,
51,
6174,
834,
7261,
7,
3274,
96,
235,
3781,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who called the race in 1998? | CREATE TABLE table_22583466_3 (
race_caller VARCHAR,
year VARCHAR
) | SELECT race_caller FROM table_22583466_3 WHERE year = 1998 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3449,
3710,
3539,
834,
519,
41,
1964,
834,
16482,
49,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
718,
8,
1964,
16,
6260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
834,
16482,
49,
21680,
953,
834,
2884,
3449,
3710,
3539,
834,
519,
549,
17444,
427,
215,
3274,
6260,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the governors of the parties associated with delegates from district 1? | CREATE TABLE party (Governor VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR) | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
27304,
127,
584,
4280,
28027,
6,
3450,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
13725,
63,
584,
4280,
28027,
6,
3570,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
27304,
127,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
549,
17444,
427,
332,
5411,
308,
23,
20066,
3274,
209,
1,
... |
Name the best director for mother | CREATE TABLE table_15301258_1 (
best_director VARCHAR,
best_film VARCHAR
) | SELECT best_director FROM table_15301258_1 WHERE best_film = "Mother" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
1458,
2122,
3449,
834,
536,
41,
200,
834,
25982,
584,
4280,
28027,
6,
200,
834,
9988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
200,
2090,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
200,
834,
25982,
21680,
953,
834,
1808,
1458,
2122,
3449,
834,
536,
549,
17444,
427,
200,
834,
9988,
3274,
96,
329,
9269,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many races were for a distance of 2020 m? | CREATE TABLE table_18845 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Jockey" text,
"Winner/2nd" text
) | SELECT COUNT("Group") FROM table_18845 WHERE "Distance" = '2020 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2128,
41,
96,
20119,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27247,
8512,
21680,
953,
834,
25794,
2128,
549,
17444,
427,
96,
308,
23,
8389,
121,
3274,
3,
31,
22224,
3,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the province for with the stadium capacity of 5100? | CREATE TABLE table_27369069_4 (province VARCHAR, stadium_capacity VARCHAR) | SELECT province FROM table_27369069_4 WHERE stadium_capacity = 5100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3420,
2394,
3951,
834,
591,
41,
1409,
2494,
565,
584,
4280,
28027,
6,
14939,
834,
4010,
9,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7985,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7985,
21680,
953,
834,
2555,
3420,
2394,
3951,
834,
591,
549,
17444,
427,
14939,
834,
4010,
9,
6726,
3274,
305,
2915,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791? | CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2604,
3274,
96,
536,
3,
104,
3,
632,
121,
3430,
11364,
3274,
96,
4347,
4440,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1? | CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, total VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_81 WHERE total < "11" AND rank = "11" AND gold < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
13711,
776,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
792,
3,
2,
96,
2596,
121,
3430,
11003,
3274,
96,
2596,
121,
3430,
2045,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high assists when the score was l 85 118 (ot) | CREATE TABLE table_23248869_8 (
high_assists VARCHAR,
score VARCHAR
) | SELECT high_assists FROM table_23248869_8 WHERE score = "L 85–118 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
4060,
3951,
834,
927,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
13041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2773,
2266,
4060,
3951,
834,
927,
549,
17444,
427,
2604,
3274,
96,
434,
11989,
104,
20056,
41,
6951,
61,
121,
1,
-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.