NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How few km 2 does the area with Nay Pyi Taw as capital cover? | CREATE TABLE table_28741_1 (
area__km_2__ INTEGER,
capital VARCHAR
) | SELECT MIN(area__km_2__) FROM table_28741_1 WHERE capital = "Nay Pyi Taw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4581,
536,
834,
536,
41,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
6,
1784,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
360,
2280,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
498,
834,
834,
5848,
834,
357,
834,
834,
61,
21680,
953,
834,
2577,
4581,
536,
834,
536,
549,
17444,
427,
1784,
3274,
96,
567,
9,
63,
12901,
23,
2067,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
How many rounds did Ken Wharton go? | CREATE TABLE table_name_64 (
rounds VARCHAR,
driver VARCHAR
) | SELECT rounds FROM table_name_64 WHERE driver = "ken wharton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
14419,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
410,
5704,
549,
13626,
106,
281,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14419,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2535,
3274,
96,
2217,
14228,
9,
17330,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many grids did Shinichi Nakatomi ride in? | CREATE TABLE table_46789 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_46789 WHERE "Rider" = 'shinichi nakatomi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
3914,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
591,
3708,
3914,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
7,
2907,
362,
23,
3,
29,
1639,
10432,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was lost against 383 points? | CREATE TABLE table_4941 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Lost" FROM table_4941 WHERE "Points against" = '383' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4853,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
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,
434,
3481,
121,
21680,
953,
834,
3647,
4853,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
3747,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Venue has a Result of 5-1, and a Score of 1-0? | CREATE TABLE table_name_72 (
venue VARCHAR,
result VARCHAR,
score VARCHAR
) | SELECT venue FROM table_name_72 WHERE result = "5-1" AND score = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
3,
9,
3,
20119,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
741,
3274,
96,
755,
2292,
121,
3430,
2604,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the high points were by Anthony Morrow (24), what was the team? | CREATE TABLE table_27700375_6 (team VARCHAR, high_points VARCHAR) | SELECT team FROM table_27700375_6 WHERE high_points = "Anthony Morrow (24)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
22954,
834,
948,
41,
11650,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
306,
979,
130,
57,
11016,
4574,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
2555,
9295,
22954,
834,
948,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
188,
29,
189,
106,
63,
4574,
3623,
4743,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose diagnoses icd9 code is 4280 and drug type is main? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | 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.icd9_code = "4280" AND prescriptions.drug_type = "MAIN" | [
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... |
Which Role has a Theatre of globe, and a Music of jerome kern? | CREATE TABLE table_37100 (
"Title" text,
"Date" text,
"Theatre" text,
"Role" text,
"Dance Partner" text,
"Director" text,
"Lyrics" text,
"Music" text
) | SELECT "Role" FROM table_37100 WHERE "Theatre" = 'globe' AND "Music" = 'jerome kern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
2915,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
634,
9,
929,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
308,
663,
5793,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
109,
121,
21680,
953,
834,
4118,
2915,
549,
17444,
427,
96,
634,
9,
929,
121,
3274,
3,
31,
14063,
15,
31,
3430,
96,
29035,
121,
3274,
3,
31,
1924,
11956,
3,
2304,
29,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44? | CREATE TABLE table_name_68 (player VARCHAR, college VARCHAR, pick VARCHAR, position VARCHAR) | SELECT player FROM table_name_68 WHERE pick > 44 AND position = "offensive guard" AND college = "mississippi state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
20846,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1432,
2490,
8537,
3430,
1102,
3274,
96,
858,
23039,
15,
4879,
121,
3430,
1900,
3274,
96,
11502,
159,
7,
23,
1572,
23,
538,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What is the away team's score when the home team scores 7.8 (50)? | CREATE TABLE table_32606 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32606 WHERE "Home team score" = '7.8 (50)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
5176,
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,
2604,
121,
21680,
953,
834,
519,
2688,
5176,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
940,
5,
927,
41,
1752,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the total crowd size for the him team footscray? | CREATE TABLE table_name_95 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_95 WHERE home_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
75,
3623,
26,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
4374,
812,
21,
8,
376,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference? | CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR) | SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2026,
19117,
834,
28496,
584,
4280,
28027,
6,
2542,
834,
1927,
630,
26,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1767,
834,
28496,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2542,
834,
1927,
630,
26,
3274,
96,
77,
8603,
9,
6957,
10433,
121,
3430,
3,
2754,
4310,
3274,
96,
122,
1890,
29,
127,
7,
121,
1,
-100,
-100,
-10... |
What is the lowest fiscal year if total vehicles is 490? | CREATE TABLE table_2021 (
"Fiscal year" real,
"2-car sets" real,
"4-car sets" real,
"6-car sets" real,
"8-car sets" real,
"Total vehicles" real
) | SELECT MIN("Fiscal year") FROM table_2021 WHERE "Total vehicles" = '490' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2658,
41,
96,
3183,
7,
1489,
215,
121,
490,
6,
96,
7412,
1720,
3369,
121,
490,
6,
96,
591,
18,
1720,
3369,
121,
490,
6,
96,
948,
18,
1720,
3369,
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,
3183,
7,
1489,
215,
8512,
21680,
953,
834,
1755,
2658,
549,
17444,
427,
96,
3696,
1947,
3203,
121,
3274,
3,
31,
591,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Count the number of captains that have each rank Visualize by bar chart, rank by the the total number in descending. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
3,
22557,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which club had football at Mitchel Athletic Field? | CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR) | SELECT club FROM table_name_43 WHERE sport = "football" AND venue = "mitchel athletic field" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
13442,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
141,
3370,
44,
1311,
8738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2600,
3274,
96,
6259,
3184,
121,
3430,
5669,
3274,
96,
1538,
8738,
12217,
1057,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une? | CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR) | SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Oscar Solis" AND team_classification = "EPM-UNE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4433,
1458,
4389,
834,
1808,
41,
3757,
687,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4668,
21680,
953,
834,
2577,
4433,
1458,
4389,
834,
1808,
549,
17444,
427,
8022,
834,
4057,
2420,
3274,
96,
667,
7,
1720,
5175,
159,
121,
3430,
372,
834,
4057,
2420,
3274,
96,
427,
6218,
18,
13227,
121,
1,
-100,
-10... |
in what year did ifk receive their best finish ? | CREATE TABLE table_204_42 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) | SELECT "season" FROM table_204_42 ORDER BY "position" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4165,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
4563,
121,
1499,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
14309,
121,
1499,
6,
96,
4718,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9476,
121,
21680,
953,
834,
26363,
834,
4165,
4674,
11300,
272,
476,
96,
4718,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date ground A and Cartagena as an opponent? | CREATE TABLE table_name_50 (
date VARCHAR,
ground VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
833,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
1591,
71,
11,
1184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1591,
3274,
96,
9,
121,
3430,
15264,
3274,
96,
1720,
22380,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of attendance for games where buffalo was the home team? | CREATE TABLE table_36777 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT COUNT("Attendance") FROM table_36777 WHERE "Home" = 'buffalo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
26225,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3420,
26225,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
115,
2999,
138,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which League has a Venue of martin luther king, jr. recreation center? | CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) | SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
29512,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3815,
65,
3,
9,
29940,
13,
3157,
17,
77,
3,
40,
76,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5669,
3274,
96,
1635,
17,
77,
3,
40,
76,
189,
49,
3,
1765,
6,
3,
354,
52,
5,
17711,
1530,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose diagnoses short title is mal neo descend colon? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Mal neo descend colon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket? | CREATE TABLE table_name_60 (
socialist_labor_ticket VARCHAR,
liberal_ticket VARCHAR
) | SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
23737,
834,
9456,
834,
26639,
584,
4280,
28027,
6,
10215,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
30,
8,
2730,
343,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23737,
834,
9456,
834,
26639,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
10215,
834,
26639,
3274,
96,
10702,
450,
90,
5566,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the class position of the team that was in the 4th position? | CREATE TABLE table_77295 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
) | SELECT "Class Pos." FROM table_77295 WHERE "Pos." = '4th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
357,
3301,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
20982,
52,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
13995,
535,
21680,
953,
834,
4013,
357,
3301,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
591,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the week when type is cardio workout? | CREATE TABLE table_27512025_1 (week VARCHAR, type VARCHAR) | SELECT week FROM table_27512025_1 WHERE type = "Cardio Workout" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
15518,
1828,
834,
536,
41,
8041,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
116,
686,
19,
16216,
7203,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
21680,
953,
834,
25988,
15518,
1828,
834,
536,
549,
17444,
427,
686,
3274,
96,
6936,
26,
23,
32,
3118,
670,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Record has a Year larger than 1974, and a Finish of 3rd? | CREATE TABLE table_65323 (
"Year" real,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
) | SELECT "Record" FROM table_65323 WHERE "Year" > '1974' AND "Finish" = '3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2668,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
1649,
7621,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
27272,
121,
1499,
6,
96,
15800,
1647,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4122,
2668,
519,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4581,
31,
3430,
96,
371,
77,
1273,
121,
3274,
3,
31,
519,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What is the margin of victory of the gna/glendale federal classic? | CREATE TABLE table_50826 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_50826 WHERE "Tournament" = 'gna/glendale federal classic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
927,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
1752,
927,
2688,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
11260,
87,
3537,
29,
5437,
2822,
2431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Pole smaller than 0 had what lowest podium? | CREATE TABLE table_name_92 (podium INTEGER, pole INTEGER) | SELECT MIN(podium) FROM table_name_92 WHERE pole < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
11410,
2552,
3,
21342,
17966,
6,
11148,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
19418,
2755,
145,
3,
632,
141,
125,
7402,
22828,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
11410,
2552,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
11148,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
During the period in which gross sales totals for 'The Show Girl Must Go On' reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? | CREATE TABLE table_22123920_4 (
tickets_sold___available VARCHAR,
gross_sales VARCHAR
) | SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = "$2,628,457" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
14574,
27749,
834,
591,
41,
3500,
834,
7,
1490,
834,
834,
834,
28843,
584,
4280,
28027,
6,
8690,
834,
7,
4529,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3500,
834,
7,
1490,
834,
834,
834,
28843,
21680,
953,
834,
2884,
14574,
27749,
834,
591,
549,
17444,
427,
8690,
834,
7,
4529,
3274,
96,
3229,
4482,
4056,
11864,
591,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose discharge location is snf and admission year is less than 2139? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.admityear < "2139" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,... |
Which Score has a Result of 2 1, and a Competition of friendly, and a Goal smaller than 17? | CREATE TABLE table_75708 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_75708 WHERE "Result" = '2–1' AND "Competition" = 'friendly' AND "Goal" < '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2518,
927,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3072,
2518,
927,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
357,
104,
536,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
6221,
138,
121,
3,
2,
3,
... |
how many female patients have been diagnosed with paralytic ileus? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Paralytic ileus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the production code of the episode written by Anthony Sparks? | CREATE TABLE table_28173 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Production code" FROM table_28173 WHERE "Written by" = 'Anthony Sparks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2517,
519,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
8291,
1081,
121,
21680,
953,
834,
2577,
2517,
519,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
188,
29,
189,
106,
63,
15036,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the total enrollment in 57 Noble having a # and AA as the IHSAA Class? | CREATE TABLE table_13524 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text,
"Year Joined" real,
"Previous Conference" text
) | SELECT COUNT("Enrollment") FROM table_13524 WHERE "# / County" = '57 noble' AND "IHSAA Class" = 'aa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
2266,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
8532,
4046,
297,
8512,
21680,
953,
834,
536,
2469,
2266,
549,
17444,
427,
96,
4663,
3,
87,
1334,
121,
3274,
3,
31,
3436,
17243,
31,
3430,
96,
196,
4950,
5498,
4501,
121,
3274,
3,
31,
9,
9,
... |
What are the census ranking(s) for a population of 284? | CREATE TABLE table_21370 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Census Ranking" FROM table_21370 WHERE "Population" = '284' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
22520,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
1499,
6,
96,
27773,
7830,
121,
490,
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,
254,
35,
7,
302,
29153,
121,
21680,
953,
834,
2658,
22520,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
357,
4608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Highest Days, when Launch Date is 23 January 2010? | CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR) | SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1135,
7,
3,
21342,
17966,
6,
3289,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1592,
222,
13992,
6,
116,
17113,
7678,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1135,
7,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3289,
834,
5522,
3274,
96,
2773,
3,
7066,
76,
1208,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the position of the player from round 2 from Sweden? | CREATE TABLE table_name_21 (position VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
4718,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
1959,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1751,
3274,
204,
3430,
1157,
485,
3274,
96,
7,
1123,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of taking office for Giorgia Meloni? | CREATE TABLE table_name_28 (took_office VARCHAR, minister VARCHAR) | SELECT took_office FROM table_name_28 WHERE minister = "giorgia meloni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
235,
1825,
834,
19632,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
838,
828,
21,
3156,
1677,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
808,
834,
19632,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
6323,
3274,
96,
122,
23,
1677,
23,
9,
3,
2341,
106,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Away team score for Away team North Melbourne? | CREATE TABLE table_53023 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_53023 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
2773,
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,
188,
1343,
372,
2604,
121,
21680,
953,
834,
26918,
2773,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the tv time for the game on week 12? | CREATE TABLE table_66128 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"TV Time" text,
"Attendance" text
) | SELECT "TV Time" FROM table_66128 WHERE "Week" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
536,
2577,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4562,
2900,
121,
21680,
953,
834,
3539,
536,
2577,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the original air date of 1/2 in season | CREATE TABLE table_16951593_1 (
original_air_date VARCHAR,
no_in_season VARCHAR
) | SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "1/2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3301,
1808,
4271,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2938,
3301,
1808,
4271,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
96,
17637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the League Cup value for 1991 present? | CREATE TABLE table_15443 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
) | SELECT "League Cup" FROM table_15443 WHERE "Years" = '1991–present' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4906,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
4795,
3802,
121,
1499,
6,
96,
2796,
9,
5398,
3802,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
5398,
3802,
121,
21680,
953,
834,
27308,
4906,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
2294,
4729,
104,
12640,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients diagnosed with icd9 code 32723 had a self pay status? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.icd9_code = "32723" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which player wears the number 2 on his jersey? | CREATE TABLE table_47226 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "Player" FROM table_47226 WHERE "Jersey Number(s)" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
357,
2688,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4177,
357,
2688,
549,
17444,
427,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the to par for Gene Littler? | CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_42 WHERE player = "gene littler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
21,
6939,
5258,
52,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1959,
3274,
96,
729,
15,
385,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Player, when Place is '1'? | CREATE TABLE table_62111 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_62111 WHERE "Place" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
15866,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4056,
15866,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different meanings does the verb with part 4 gegeven have? | CREATE TABLE table_21704 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
) | SELECT COUNT("Verb meaning") FROM table_21704 WHERE "Part 4" = 'gegeven' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2518,
591,
41,
96,
21486,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
13725,
220,
121,
1499,
6,
96,
13725,
3,
20364,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
5000,
115,
2530,
8512,
21680,
953,
834,
2658,
2518,
591,
549,
17444,
427,
96,
13725,
3,
20364,
3274,
3,
31,
397,
122,
6190,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the names of the students who are in the position of striker and got a yes tryout decision. | CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) | SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
102,
4309,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
3,
102,
345,
32,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
23954,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
549,
17444,
427,
332,
4416,
221,
18901,
3274,
3,
31,
10070,
31,
3... |
When Rocco Mediate of the United States has a To par of +2, what was his score? | CREATE TABLE table_name_43 (
score VARCHAR,
player VARCHAR,
to_par VARCHAR,
country VARCHAR
) | SELECT score FROM table_name_43 WHERE to_par = "+2" AND country = "united states" AND player = "rocco mediate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
357,
121,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
7818,
509,
783,
17,
15,
121,
1,
-100,
-100,
-1... |
Which Builder has BR No. 30782? | CREATE TABLE table_name_71 (builder VARCHAR, br_no VARCHAR) | SELECT builder FROM table_name_71 WHERE br_no = 30782 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
16422,
49,
584,
4280,
28027,
6,
6397,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
16799,
65,
3,
6934,
465,
5,
604,
3940,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
918,
49,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
6397,
834,
29,
32,
3274,
604,
3940,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Venue that has the Away team score of 16.9 (105)? | CREATE TABLE table_51438 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_51438 WHERE "Away team score" = '16.9 (105)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
3747,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
755,
2534,
3747,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2938,
5,
1298,
11704,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What place is Nolan Henke in? | CREATE TABLE table_name_10 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_10 WHERE player = "nolan henke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
19,
465,
1618,
216,
29,
1050,
16,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1959,
3274,
96,
29,
32,
1618,
3,
3225,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the current map designation for Debussy? | CREATE TABLE table_36685 (
"Name" text,
"Number" text,
"Namesake" text,
"Albedo feature name" text,
"Area" text,
"Current map" text
) | SELECT "Current map" FROM table_36685 WHERE "Name" = 'debussy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3539,
4433,
41,
96,
23954,
121,
1499,
6,
96,
567,
5937,
49,
121,
1499,
6,
96,
23954,
7,
9,
1050,
121,
1499,
6,
96,
25691,
15,
26,
32,
1451,
564,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
450,
5320,
2828,
121,
21680,
953,
834,
519,
3539,
4433,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
221,
3465,
7,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the oberliga sudwest for spvgg unterhaching for 1988-89 | CREATE TABLE table_14242137_4 (
oberliga_südwest VARCHAR,
oberliga_bayern VARCHAR,
season VARCHAR
) | SELECT oberliga_südwest FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Unterhaching" AND season = "1988-89" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4165,
24636,
834,
591,
41,
18299,
17140,
834,
7,
1272,
26,
12425,
584,
4280,
28027,
6,
18299,
17140,
834,
11119,
49,
29,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18299,
17140,
834,
7,
1272,
26,
12425,
21680,
953,
834,
24978,
4165,
24636,
834,
591,
549,
17444,
427,
18299,
17140,
834,
11119,
49,
29,
3274,
96,
134,
102,
553,
4102,
3941,
107,
12076,
121,
3430,
774,
3274,
96,
2294,... |
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4? | CREATE TABLE table_name_48 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR) | SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
6965,
834,
12018,
189,
834,
635,
3,
21342,
17966,
6,
991,
834,
102,
7059,
834,
635,
584,
4280,
28027,
6,
643,
834,
19457,
834,
635,
584,
4280,
28027,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6965,
834,
12018,
189,
834,
635,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
991,
834,
102,
7059,
834,
635,
3,
2,
4097,
3769,
3430,
643,
834,
19457,
834,
635,
2490,
12265,
591,
1,
-100,
-... |
Which winner had a location of Iowa? | CREATE TABLE table_39353 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
) | SELECT "Winner" FROM table_39353 WHERE "Location" = 'iowa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2469,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3288,
2469,
519,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
23,
2381,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned? | CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR) | SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
17183,
584,
4280,
28027,
6,
15126,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
4383,
24,
141,
3,
9,
15126,
13,
3,
31,
1018,
19825,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17183,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
15126,
3274,
96,
1018,
19825,
12,
50,
2304,
6,
21018,
117,
341,
16,
313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who is the player when the position is p and the team is oakland athletics? | CREATE TABLE table_66317 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT "Player" FROM table_66317 WHERE "Position" = 'p' AND "Team" = 'oakland athletics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
519,
2517,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3539,
519,
2517,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
102,
31,
3430,
96,
18699,
121,
3274,
3,
31,
32,
1639,
40,
232,
12217,
7,
31,
1,
-100,
-100,
-100,
... |
Where did Bob Murphy of the United States place? | CREATE TABLE table_77320 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Place" FROM table_77320 WHERE "Country" = 'united states' AND "Player" = 'bob murphy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
15003,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
4013,
15003,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
17396,
9593,
6941,
31,
1,
-100,
-100,
-100,
-10... |
Which event happened in 1988? | CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) | SELECT name FROM table_name_91 WHERE year = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
4350,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
2817,
16,
10414,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
215,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the different software platforms for devices, and how many devices have each?, order by the x-axis in ascending please. | CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE stock (
Shop_ID int,
Device... | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform ORDER BY Software_Platform | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
3687,
834,
4309,
16,
17,
6,
3687,
834,
23954,
1499,
6,
10450,
1499,
6,
2384,
834,
308,
342,
1499,
6,
2384,
834,
476,
2741,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4300,
834,
10146,
2032,
6,
2847,
17161,
599,
1935,
61,
21680,
1407,
350,
4630,
6880,
272,
476,
4300,
834,
10146,
2032,
4674,
11300,
272,
476,
4300,
834,
10146,
2032,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Podiums with 0 as wins, and a season later than 1985? | CREATE TABLE table_70170 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Podiums" real
) | SELECT MAX("Podiums") FROM table_70170 WHERE "Wins" = '0' AND "Season" > '1985' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
536,
2518,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16665,
2552,
7,
8512,
21680,
953,
834,
2518,
536,
2518,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
134,
15,
9,
739,
121,
2490,
3,
31,
2294,
4433,
31,
1,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the sum of employee_id bin hire_date by weekday, rank by the y-axis in asc. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
... |
Who was the Centerfold model when O.J. Simpson was the Interview Subject? | CREATE TABLE table_name_72 (centerfold_model VARCHAR, interview_subject VARCHAR) | SELECT centerfold_model FROM table_name_72 WHERE interview_subject = "o.j. simpson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
13866,
10533,
834,
21770,
584,
4280,
28027,
6,
2772,
834,
7304,
11827,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1166,
10533,
825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1530,
10533,
834,
21770,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2772,
834,
7304,
11827,
3274,
96,
32,
5,
354,
5,
108,
1167,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the capacity for Sangre Grande Ground, home of the North East Stars? | CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR) | SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
3288,
2517,
519,
834,
536,
41,
4010,
9,
6726,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2614,
21,
1051,
3584,
15940,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
4010,
9,
6726,
61,
21680,
953,
834,
11944,
3288,
2517,
519,
834,
536,
549,
17444,
427,
372,
3274,
96,
22969,
1932,
2042,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the points classification for quick step-innergetic with stage 7 | CREATE TABLE table_name_66 (
points_classification VARCHAR,
team_classification VARCHAR,
stage VARCHAR
) | SELECT points_classification FROM table_name_66 WHERE team_classification = "quick step-innergetic" AND stage = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
372,
834,
4057,
2420,
3274,
96,
1169,
2406,
1147,
18,
77,
29,
26517,
75,
121,
3430,
1726,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Rank has a Player of matt ruth? | CREATE TABLE table_name_62 (rank INTEGER, player VARCHAR) | SELECT SUM(rank) FROM table_name_62 WHERE player = "matt ruth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
6254,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
22557,
65,
3,
9,
12387,
13,
6928,
17,
3,
6830,
107,
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,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1959,
3274,
96,
3357,
17,
3,
6830,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the gold with total larger than 33 | CREATE TABLE table_31937 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Gold" FROM table_31937 WHERE "Total" > '33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
4118,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23576,
121,
21680,
953,
834,
519,
2294,
4118,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What seasons does Nick lucas appear? | CREATE TABLE table_12441518_1 (
main_cast_seasons VARCHAR,
character VARCHAR
) | SELECT main_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3628,
1808,
2606,
834,
536,
41,
711,
834,
5254,
834,
9476,
7,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
9385,
405,
7486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
834,
5254,
834,
9476,
7,
21680,
953,
834,
2122,
3628,
1808,
2606,
834,
536,
549,
17444,
427,
1848,
3274,
96,
567,
3142,
18831,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the surface for paul goldstein and date of october 2, 2006 | CREATE TABLE table_name_79 (
surface VARCHAR,
partnering VARCHAR,
date VARCHAR
) | SELECT surface FROM table_name_79 WHERE partnering = "paul goldstein" AND date = "october 2, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1774,
584,
4280,
28027,
6,
3,
26361,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1774,
21,
2576,
83,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
3,
26361,
3274,
96,
102,
9,
83,
2045,
4008,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
3547,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most popular payment method? | CREATE TABLE Payments (Payment_Method_Code VARCHAR) | SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
19702,
297,
834,
23351,
107,
32,
26,
834,
22737,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1012,
1942,
1573,
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,
12248,
834,
23351,
107,
32,
26,
834,
22737,
21680,
12248,
7,
350,
4630,
6880,
272,
476,
12248,
834,
23351,
107,
32,
26,
834,
22737,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
... |
What is the human gene that has a mouse ortholog of LIG1? | CREATE TABLE table_name_27 (human_gene__protein_ VARCHAR, mouse_ortholog VARCHAR) | SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholog = "lig1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
12450,
834,
729,
15,
834,
834,
23083,
834,
584,
4280,
28027,
6,
8429,
834,
127,
189,
32,
2152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
936,
834,
729,
15,
834,
834,
23083,
834,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
8429,
834,
127,
189,
32,
2152,
3274,
96,
2825,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What company has an unknown date and is an energy business? | CREATE TABLE table_71612 (
"Date" text,
"Company" text,
"Business" text,
"Country" text,
"Value ( USD )" text
) | SELECT "Company" FROM table_71612 WHERE "Business" = 'energy' AND "Date" = 'unknown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
2122,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
2837,
63,
121,
1499,
6,
96,
26269,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
18392,
76,
15,
41,
9513,
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,
5890,
2837,
63,
121,
21680,
953,
834,
940,
2938,
2122,
549,
17444,
427,
96,
26269,
121,
3274,
3,
31,
24310,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
202,
5661,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND? | CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, country VARCHAR) | SELECT player FROM table_name_92 WHERE place = "t7" AND country = "england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
20846,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
17501,
476,
3316,
11951,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
286,
3274,
96,
17,
940,
121,
3430,
684,
3274,
96,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Date has a 20 Questions of jason lee? | CREATE TABLE table_39927 (
"Date" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Date" FROM table_39927 WHERE "20 Questions" = 'jason lee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
121,
1499,
6,
96,
345,
447,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
3264,
2555,
549,
17444,
427,
96,
1755,
14218,
121,
3274,
3,
31,
1191,
739,
90,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest rebound Dennis Rodman obtained within the 20 rebounds category given two of the following:points, rebounds, assists, steals, and blocked shots (points) greater equal to 5 | CREATE TABLE table_25696729_8 (double_double VARCHAR) | SELECT MAX(20 AS _rebounds) FROM table_25696729_8 WHERE double_double = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
3708,
3166,
834,
927,
41,
25761,
834,
25761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
20756,
18563,
8222,
348,
5105,
441,
8,
460,
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,
4800,
4,
599,
1755,
6157,
3,
834,
23768,
61,
21680,
953,
834,
1828,
3951,
3708,
3166,
834,
927,
549,
17444,
427,
1486,
834,
25761,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the capacity for the Denver Broncos? | CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, team VARCHAR) | SELECT capacity_percentage FROM table_28884858_2 WHERE team = "Denver Broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10927,
3707,
3449,
834,
357,
41,
4010,
9,
6726,
834,
883,
3728,
545,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2614,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2614,
834,
883,
3728,
545,
21680,
953,
834,
357,
10927,
3707,
3449,
834,
357,
549,
17444,
427,
372,
3274,
96,
308,
35,
624,
4027,
29,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What state does the representative whose mission was terminated on November 29, 1973 represent? | CREATE TABLE table_20065425_1 (state VARCHAR, termination_of_mission VARCHAR) | SELECT state FROM table_20065425_1 WHERE termination_of_mission = "November 29, 1973" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21196,
5062,
1828,
834,
536,
41,
5540,
584,
4280,
28027,
6,
18739,
834,
858,
834,
5451,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
538,
405,
8,
6978,
3,
2544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
538,
21680,
953,
834,
21196,
5062,
1828,
834,
536,
549,
17444,
427,
18739,
834,
858,
834,
5451,
3274,
96,
28635,
14405,
17107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player has a Club/province of direito, less than 21 caps, and a Position of lock? | CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR) | SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1886,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
16753,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1886,
834,
1409,
2494,
565,
3274,
96,
10258,
23,
235,
121,
3430,
16753,
3,
2,
1401,
3430,
1102,
3274,
96,
4029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what was the total number of opponents ? | CREATE TABLE table_203_368 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text
) | SELECT COUNT("opponent") FROM table_203_368 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3651,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
32,
102,
9977,
8512,
21680,
953,
834,
23330,
834,
519,
3651,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many friends does Dan have? | CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
) | SELECT COUNT(T2.friend) FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
1499,
6,
215,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
382,
4416,
15504,
61,
21680,
568,
6157,
332,
536,
3,
15355,
3162,
568,
15504,
6157,
332,
357,
9191,
332,
5411,
4350,
3274,
332,
4416,
4350,
549,
17444,
427,
332,
5411,
4350,
3274,
3,
31,
308,
152,
... |
evidence of refractory hypoperfusion attributed to sepsis ( 1 or more of the following ) : systolic blood pressure less than 90 mmhg despite an intravenous fluid challenge of at least 30 ml / kg ( a portion of this may be albumin equivalent ) ; blood lactate level at least 4 mmol / l. | CREATE TABLE table_train_8 (
"id" int,
"white_blood_cell_count_wbc" int,
"systolic_blood_pressure_sbp" int,
"active_infection" bool,
"intention_to_arterial_catheter" bool,
"temperature" float,
"intention_to_central_venous_catheter" bool,
"sepsis" bool,
"heart_rate" int,
"paco2" f... | SELECT * FROM table_train_8 WHERE hypoperfusion = 1 AND (sepsis = 1 OR (CASE WHEN systolic_blood_pressure_sbp < 90 THEN 1 ELSE 0 END + CASE WHEN lactate > 4 THEN 1 ELSE 0 END) >= 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
927,
41,
96,
23,
26,
121,
16,
17,
6,
96,
13698,
834,
27798,
834,
8725,
834,
13362,
834,
210,
115,
75,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
927,
549,
17444,
427,
10950,
883,
7316,
3274,
209,
3430,
41,
7,
15,
102,
7,
159,
3274,
209,
4674,
41,
254,
17892,
549,
22735,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
... |
Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards? | CREATE TABLE table_77309 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Show" text,
"Character" text,
"Result" text
) | SELECT "Show" FROM table_77309 WHERE "Award Ceremony" = 'indian television academy awards' AND "Category" = 'ita milestone award' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
1458,
1298,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
31188,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
134,
4067,
121,
1499,
6,
96,
18947,
2708,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4067,
121,
21680,
953,
834,
4013,
1458,
1298,
549,
17444,
427,
96,
188,
2239,
31188,
121,
3274,
3,
31,
77,
8603,
4390,
25990,
6120,
31,
3430,
96,
18610,
6066,
651,
121,
3274,
3,
31,
155,
9,
15521,
2760,
3... |
Name the most withdrawn for 37 lstr no. | CREATE TABLE table_23688 (
"LTSR No." real,
"LTSR Name" text,
"Builder" text,
"Built" real,
"MR No." real,
"LMS 1930 No." real,
"BR No." real,
"Withdrawn" real
) | SELECT MAX("Withdrawn") FROM table_23688 WHERE "LTSR No." = '37' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
4060,
41,
96,
9012,
6857,
465,
535,
490,
6,
96,
9012,
6857,
5570,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
7793,
173,
17,
121,
490,
6,
96,
9320,
465,
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,
4800,
4,
599,
121,
15013,
19489,
29,
8512,
21680,
953,
834,
357,
3420,
4060,
549,
17444,
427,
96,
9012,
6857,
465,
535,
3274,
3,
31,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the whole range of united states where road race is ottawa marathon | CREATE TABLE table_28345 (
"Road race" text,
"Distance" text,
"Location" text,
"Country" text,
"Month held" text
) | SELECT COUNT("Country") FROM table_28345 WHERE "Road race" = 'Ottawa Marathon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
519,
2128,
41,
96,
448,
32,
9,
26,
1964,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10628,
651,
8512,
21680,
953,
834,
2577,
519,
2128,
549,
17444,
427,
96,
448,
32,
9,
26,
1964,
121,
3274,
3,
31,
667,
17,
17,
7396,
19012,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what are the different statement ids on accounts, and the number of accounts for each? | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Do... | SELECT Statement_ID, COUNT(*) FROM Accounts GROUP BY Statement_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
6288,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
4309,
3,
21342,
17966,
6,
6288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
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,
16836,
834,
4309,
6,
2847,
17161,
599,
1935,
61,
21680,
6288,
7,
350,
4630,
6880,
272,
476,
16836,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Team, when the Year is 2011? | CREATE TABLE table_name_14 (
team VARCHAR,
year VARCHAR
) | SELECT team FROM table_name_14 WHERE year = "2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
372,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2271,
6,
116,
8,
2929,
19,
2722,
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,
372,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
96,
13907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which career win-loss record has a 1r in 2002, a 2r in 2000 and a 2r in 2001? | CREATE TABLE table_name_75 (
career_win_loss VARCHAR
) | SELECT career_win_loss FROM table_name_75 WHERE 2002 = "1r" AND 2000 = "2r" AND 2001 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1415,
834,
3757,
834,
2298,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1415,
1369,
18,
2298,
7,
1368,
65,
3,
9,
209,
52,
16,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1415,
834,
3757,
834,
2298,
7,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4407,
3274,
96,
536,
52,
121,
3430,
2766,
3274,
96,
357,
52,
121,
3430,
4402,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What is the lowest played for the entry with position of 2 and fewer than 9 losses? | CREATE TABLE table_name_61 (
played INTEGER,
position VARCHAR,
losses VARCHAR
) | SELECT MIN(played) FROM table_name_61 WHERE position = 2 AND losses < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1944,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1944,
21,
8,
1764,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
1102,
3274,
204,
3430,
8467,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the original name of the film that used the title Olympics 40 in nomination? | CREATE TABLE table_14751 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original name" text,
"Director" text
) | SELECT "Original name" FROM table_14751 WHERE "Film title used in nomination" = 'olympics 40' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
5553,
41,
96,
10628,
651,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
667,
3380,
10270,
564,
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,
667,
3380,
10270,
564,
121,
21680,
953,
834,
24719,
5553,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
32,
120,
51,
6174,
7,
1283,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap? | CREATE TABLE table_name_79 (
flap VARCHAR,
race VARCHAR,
pole VARCHAR,
podium VARCHAR
) | SELECT flap FROM table_name_79 WHERE pole > 0 AND podium < 44 AND race < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
23050,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
6,
11148,
584,
4280,
28027,
6,
22828,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
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,
23050,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
11148,
2490,
3,
632,
3430,
22828,
3,
2,
8537,
3430,
1964,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is russ cochran's average margin? | CREATE TABLE table_name_30 (
margin INTEGER,
player VARCHAR
) | SELECT AVG(margin) FROM table_name_30 WHERE player = "russ cochran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
6346,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
4502,
7,
576,
524,
2002,
31,
7,
1348,
6346,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1635,
122,
77,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1959,
3274,
96,
4502,
7,
576,
524,
2002,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which channels had spokesperson arina sharapova and no dual commentator | CREATE TABLE table_2189 (
"Year(s)" real,
"Commentator" text,
"Dual Commentator" text,
"Spokesperson" text,
"Channel" text
) | SELECT "Channel" FROM table_2189 WHERE "Spokesperson" = 'Arina Sharapova' AND "Dual Commentator" = 'No Dual Commentator' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3914,
41,
96,
476,
2741,
599,
7,
61,
121,
490,
6,
96,
5890,
297,
1016,
121,
1499,
6,
96,
308,
3471,
5257,
1016,
121,
1499,
6,
96,
134,
102,
32,
7735,
6075,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
4515,
40,
121,
21680,
953,
834,
2658,
3914,
549,
17444,
427,
96,
134,
102,
32,
7735,
6075,
121,
3274,
3,
31,
188,
52,
77,
9,
3926,
5846,
6194,
31,
3430,
96,
308,
3471,
5257,
1016,
121,
3274,
3,
31,
416... |
If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes? | CREATE TABLE table_20174050_7 (
notes VARCHAR,
reader VARCHAR,
title VARCHAR
) | SELECT notes FROM table_20174050_7 WHERE reader = "Briggs, Nicholas Nicholas Briggs" AND title = "Paradox Lost" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9887,
2445,
1752,
834,
940,
41,
3358,
584,
4280,
28027,
6,
5471,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
2233,
19,
4734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3358,
21680,
953,
834,
9887,
2445,
1752,
834,
940,
549,
17444,
427,
5471,
3274,
96,
279,
23983,
7,
6,
22509,
22509,
22965,
122,
7,
121,
3430,
2233,
3274,
96,
13212,
9,
11990,
19576,
121,
1,
-100,
-100,
-100,
-100,
-... |
What's the highest total of Romania when the bronze was less than 2? | CREATE TABLE table_name_14 (total INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MAX(total) FROM table_name_14 WHERE nation = "romania" AND bronze < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
235,
1947,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
792,
13,
387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2982,
3274,
96,
3522,
11219,
121,
3430,
13467,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score when Montreal was home? | CREATE TABLE table_name_94 (
score VARCHAR,
home VARCHAR
) | SELECT score FROM table_name_94 WHERE home = "montreal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2604,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
17219,
47,
234,
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,
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,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
234,
3274,
96,
4662,
6644,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most pick for evgeny korolev | CREATE TABLE table_2840500_8 (pick INTEGER, player VARCHAR) | SELECT MAX(pick) FROM table_2840500_8 WHERE player = "Evgeny Korolev" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
927,
41,
17967,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
1432,
21,
3,
15,
208,
729,
63,
3,
5543,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
2577,
2445,
2560,
834,
927,
549,
17444,
427,
1959,
3274,
96,
427,
208,
729,
63,
9510,
32,
10912,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the status of the building with more than 28 floor and a year of 2013? | CREATE TABLE table_77853 (
"Building" text,
"Height" text,
"Floors" real,
"Year" real,
"Status" text
) | SELECT "Status" FROM table_77853 WHERE "Floors" > '28' AND "Year" = '2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4433,
519,
41,
96,
24752,
53,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
6,
96,
476,
2741,
121,
490,
6,
96,
134,
17,
144,
302,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
4013,
4433,
519,
549,
17444,
427,
96,
11251,
127,
7,
121,
2490,
3,
31,
2577,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
11138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose marital status is married and item id is 51067? | 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.marital_status = "MARRIED" AND lab.itemid = "51067" | [
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,... |
What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph? | CREATE TABLE table_26090 (
"Rank" real,
"Rider" text,
"Mon 24 Aug" text,
"Tues 25 Aug" text,
"Wed 26 Aug" text,
"Thurs 27 Aug" text,
"Fri 28 Aug" text
) | SELECT "Tues 25 Aug" FROM table_26090 WHERE "Mon 24 Aug" = '22'' 24.56 101.021mph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
2394,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
9168,
997,
6128,
121,
1499,
6,
96,
382,
76,
15,
7,
944,
6128,
121,
1499,
6,
96,
1326,
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,
382,
76,
15,
7,
944,
6128,
121,
21680,
953,
834,
18365,
2394,
549,
17444,
427,
96,
9168,
997,
6128,
121,
3274,
3,
31,
2884,
31,
31,
997,
5,
4834,
335,
12734,
2658,
7656,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103. | CREATE TABLE trip (id VARCHAR, duration INTEGER, zip_code VARCHAR) | SELECT id FROM trip WHERE duration >= (SELECT AVG(duration) FROM trip WHERE zip_code = 94103) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
23,
26,
584,
4280,
28027,
6,
8659,
3,
21342,
17966,
6,
10658,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3,
23,
26,
21,
8,
6846,
24,
3,
1905... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
23,
26,
21680,
1469,
549,
17444,
427,
8659,
2490,
2423,
41,
23143,
14196,
71,
17217,
599,
1259,
2661,
61,
21680,
1469,
549,
17444,
427,
10658,
834,
4978,
3274,
3,
4240,
17864,
61,
1,
-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.