NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the total top-25 of the U.S. Open, which has less than 7 cuts? | CREATE TABLE table_name_84 (top_25 INTEGER, tournament VARCHAR, cuts_made VARCHAR) | SELECT SUM(top_25) FROM table_name_84 WHERE tournament = "u.s. open" AND cuts_made < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
2916,
834,
1828,
3,
21342,
17966,
6,
5892,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
5892,
3274,
96,
76,
5,
7,
5,
539,
121,
3430,
8620,
834,
4725,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 4th day in the year before 2012 that the finish is 33rd? | CREATE TABLE table_13284 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
) | SELECT "4th Day" FROM table_13284 WHERE "Year" < '2012' AND "Finish position" = '33rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
4608,
41,
96,
476,
2741,
121,
490,
6,
96,
371,
77,
1273,
1102,
121,
1499,
6,
96,
536,
7,
17,
239,
121,
1499,
6,
96,
357,
727,
239,
121,
1499,
6,
96,
519,
52,
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,
591,
189,
1430,
121,
21680,
953,
834,
23757,
4608,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
12172,
31,
3430,
96,
371,
77,
1273,
1102,
121,
3274,
3,
31,
4201,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
... |
Which school did the player then go to Auburn? | CREATE TABLE table_11677691_7 (school VARCHAR, college VARCHAR) | SELECT school FROM table_11677691_7 WHERE college = "Auburn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
940,
41,
6646,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
410,
8,
1959,
258,
281,
12,
28384,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
940,
549,
17444,
427,
1900,
3274,
96,
188,
76,
7223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Pictorials is on 5-01? | CREATE TABLE table_name_40 (
pictorials VARCHAR,
date VARCHAR
) | SELECT pictorials FROM table_name_40 WHERE date = "5-01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
6686,
17,
11929,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11000,
17,
11929,
7,
19,
30,
305,
14772,
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,
6686,
17,
11929,
7,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
833,
3274,
96,
755,
14772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the county with an elevation of 1262? | CREATE TABLE table_17585 (
"Rank" real,
"Peak" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Isolation (km)" real,
"Municipality" text,
"County" text
) | SELECT "County" FROM table_17585 WHERE "Elevation (m)" = '1262' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3449,
755,
41,
96,
22557,
121,
490,
6,
96,
345,
15,
1639,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
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,
10628,
63,
121,
21680,
953,
834,
2517,
3449,
755,
549,
17444,
427,
96,
427,
10912,
257,
41,
51,
61,
121,
3274,
3,
31,
2122,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record for opponent Anna Barone? | CREATE TABLE table_46593 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_46593 WHERE "Opponent" = 'anna barone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3390,
519,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4448,
3390,
519,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
10878,
1207,
782,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the round of the defense player from the United States? | CREATE TABLE table_37431 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
) | SELECT "Round" FROM table_37431 WHERE "Position" = 'defense' AND "Nationality" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
3341,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1106,
121,
21680,
953,
834,
519,
4581,
3341,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
31749,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
1,
-100,
-100,
-100,... |
What are the country names, area and population which has both roller coasters with speed higher | CREATE TABLE roller_coaster (
roller_coaster_id number,
name text,
park text,
country_id number,
length number,
height number,
speed text,
opened text,
status text
)
CREATE TABLE country (
country_id number,
name text,
population number,
area number,
languages te... | SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.country_id = T2.country_id WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.country_id = T2.country_id WHERE T2.speed < 55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10866,
834,
25500,
49,
41,
10866,
834,
25500,
49,
834,
23,
26,
381,
6,
564,
1499,
6,
2447,
1499,
6,
684,
834,
23,
26,
381,
6,
2475,
381,
6,
3902,
381,
6,
1634,
1499,
6,
2946,
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,
332,
5411,
4350,
6,
332,
5411,
498,
6,
332,
5411,
9791,
7830,
21680,
684,
6157,
332,
536,
3,
15355,
3162,
10866,
834,
25500,
49,
6157,
332,
357,
9191,
332,
5411,
17529,
834,
23,
26,
3274,
332,
4416,
17529,
834,
23,
... |
Name the team for season 2010 | CREATE TABLE table_24466191_1 (
team VARCHAR,
season VARCHAR
) | SELECT team FROM table_24466191_1 WHERE season = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
41,
372,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
774,
2735,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
549,
17444,
427,
774,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2? | CREATE TABLE table_name_30 (
year INTEGER,
reg_season VARCHAR,
division VARCHAR
) | SELECT MAX(year) FROM table_name_30 WHERE reg_season = "3rd, western" AND division > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
215,
3,
21342,
17966,
6,
5925,
834,
9476,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
19,
8,
2030,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
5925,
834,
9476,
3274,
96,
519,
52,
26,
6,
8282,
121,
3430,
4889,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel? | CREATE TABLE table_name_81 (opponents VARCHAR, partner VARCHAR) | SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
21630,
9,
17830,
4721,
15264,
116,
255,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
2397,
3274,
96,
51,
362,
693,
3,
7,
929,
2370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Club of the Player with a Date of Birth of 1979-01-29? | CREATE TABLE table_62455 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Club" FROM table_62455 WHERE "Date of Birth" = '1979-01-29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
2128,
755,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
121,
21680,
953,
834,
4056,
2128,
755,
549,
17444,
427,
96,
308,
342,
13,
26337,
121,
3274,
3,
31,
2294,
4440,
14772,
18,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
in riyadh, saudi arabia, what is the score? | CREATE TABLE table_39523 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_39523 WHERE "Venue" = 'riyadh, saudi arabia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3301,
2773,
41,
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,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
3301,
2773,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
26038,
26,
107,
6,
392,
26,
23,
1584,
15932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the issue dates of volumes associated with the artist 'Gorgoroth'? | CREATE TABLE artist (
Artist_ID VARCHAR,
Artist VARCHAR
)
CREATE TABLE volume (
Issue_Date VARCHAR,
Artist_ID VARCHAR
) | SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = "Gorgoroth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
584,
4280,
28027,
6,
9152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2908,
41,
13235,
834,
308,
342,
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,
332,
4416,
196,
7,
7,
76,
15,
834,
308,
342,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2908,
6157,
332,
357,
9191,
332,
5411,
7754,
343,
834,
4309,
3274,
332,
4416,
7754,
343,
834,
4309,
549,
17444,
427,
332,
5... |
If the episode number is 2-01 what is the original UK air date? | CREATE TABLE table_2570269_2 (original_air_date__uk_ VARCHAR, episode__number VARCHAR) | SELECT original_air_date__uk_ FROM table_2570269_2 WHERE episode__number = "2-01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2518,
357,
3951,
834,
357,
41,
21878,
834,
2256,
834,
5522,
834,
834,
1598,
834,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
834,
834,
1598,
834,
21680,
953,
834,
1828,
2518,
357,
3951,
834,
357,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
96,
357,
14772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Date of Catalogue number 602517739468? | CREATE TABLE table_name_90 (date VARCHAR, catalogue VARCHAR) | SELECT date FROM table_name_90 WHERE catalogue = "602517739468" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5522,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
22424,
76,
15,
381,
1640,
1828,
2517,
4552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
14978,
3274,
96,
3328,
1828,
2517,
4552,
4240,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does adam rachel play? | CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_35 WHERE player = "adam rachel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
3,
9,
7812,
3,
52,
9,
8738,
577,
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,
1102,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1959,
3274,
96,
9,
7812,
3,
52,
9,
8738,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who played hte home team when the score was 2:1? | CREATE TABLE table_name_45 (
home VARCHAR,
score VARCHAR
) | SELECT home FROM table_name_45 WHERE score = "2:1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
234,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
3,
107,
17,
15,
234,
372,
116,
8,
2604,
47,
27078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2604,
3274,
96,
357,
10,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the methyl red reading for proteus mirabilis? | CREATE TABLE table_name_77 (methyl_red VARCHAR, species VARCHAR) | SELECT methyl_red FROM table_name_77 WHERE species = "proteus mirabilis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
22758,
834,
1271,
584,
4280,
28027,
6,
3244,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22758,
1131,
1183,
21,
22618,
302,
1870,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
22758,
834,
1271,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3244,
3274,
96,
102,
14919,
302,
1870,
14237,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On what date did the person who died on March 23, 1824 leave office? | CREATE TABLE table_name_15 (
left_office VARCHAR,
death VARCHAR
) | SELECT left_office FROM table_name_15 WHERE death = "march 23, 1824" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
646,
834,
19632,
584,
4280,
28027,
6,
1687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
568,
113,
3977,
30,
1332,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
646,
834,
19632,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1687,
3274,
96,
51,
7064,
12992,
507,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Semifinalists that has a Tournament of Cincinnati? | CREATE TABLE table_name_29 (
semifinalists VARCHAR,
tournament VARCHAR
) | SELECT semifinalists FROM table_name_29 WHERE tournament = "cincinnati" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
4772,
28077,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22217,
28077,
24,
65,
3,
9,
20502,
13,
2086... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4772,
28077,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
5892,
3274,
96,
75,
11542,
29,
18530,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc? | CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR) | SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1201,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
11364,
3274,
96,
1298,
5898,
121,
3430,
3,
10806,
834,
413,
3274,
96,
26,
60,
7,
26,
687,
3,
7,
75,
121,
1,
-100,
-100,
-100,
-100,
-1... |
On October 16, 1966, what was the game site? | CREATE TABLE table_17782308_1 (
game_site VARCHAR,
date VARCHAR
) | SELECT game_site FROM table_17782308_1 WHERE date = "October 16, 1966" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3940,
2773,
4018,
834,
536,
41,
467,
834,
3585,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1797,
11940,
20658,
6,
125,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
2517,
3940,
2773,
4018,
834,
536,
549,
17444,
427,
833,
3274,
96,
28680,
11940,
20658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fleet size of the airline which has a callsign of cool red? | CREATE TABLE table_15637071_1 (
fleet_size INTEGER,
callsign VARCHAR
) | SELECT MIN(fleet_size) FROM table_15637071_1 WHERE callsign = "COOL RED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
22520,
4450,
834,
536,
41,
9111,
834,
7991,
3,
21342,
17966,
6,
580,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9111,
812,
13,
8,
1154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
89,
109,
15,
17,
834,
7991,
61,
21680,
953,
834,
25463,
22520,
4450,
834,
536,
549,
17444,
427,
580,
6732,
3274,
96,
5911,
5194,
3,
13729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the sum of employee_id bin hire_date by weekday in a bar chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 T... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-10... |
Which Pos has a Car # of 33? | CREATE TABLE table_name_72 (pos INTEGER, car__number VARCHAR) | SELECT SUM(pos) FROM table_name_72 WHERE car__number = 33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2748,
3,
21342,
17966,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13995,
65,
3,
9,
1184,
1713,
13,
5400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2748,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
443,
834,
834,
5525,
1152,
3274,
5400,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the afl team of the offensive guard? | CREATE TABLE table_12165135_1 (
afl_team VARCHAR,
position VARCHAR
) | SELECT afl_team FROM table_12165135_1 WHERE position = "Offensive Guard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2938,
5553,
2469,
834,
536,
41,
3,
9,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
9,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
89,
40,
834,
11650,
21680,
953,
834,
2122,
2938,
5553,
2469,
834,
536,
549,
17444,
427,
1102,
3274,
96,
21265,
35,
7,
757,
12899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which team 1 had a Team 2 of hankook verdes? | CREATE TABLE table_name_19 (
team_1 VARCHAR,
team_2 VARCHAR
) | SELECT team_1 FROM table_name_19 WHERE team_2 = "hankook verdes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
372,
834,
536,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
209,
141,
3,
9,
2271,
204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
536,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
372,
834,
357,
3274,
96,
2618,
157,
32,
1825,
12626,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What the lost in place less than 3 and having more than 63 goals scored? | CREATE TABLE table_name_87 (lost INTEGER, goals_scored VARCHAR, place VARCHAR) | SELECT SUM(lost) FROM table_name_87 WHERE goals_scored > 63 AND place < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2298,
17,
3,
21342,
17966,
6,
1766,
834,
3523,
1271,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
8,
1513,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1766,
834,
3523,
1271,
2490,
3,
3891,
3430,
286,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many total international races did german silva place in the top 3 spots ? | CREATE TABLE table_203_245 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT COUNT("competition") FROM table_203_245 WHERE "position" <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
2128,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
4995,
4749,
8512,
21680,
953,
834,
23330,
834,
357,
2128,
549,
17444,
427,
96,
4718,
121,
3,
2,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of 1992-93 for 115 points | CREATE TABLE table_72524 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1992-93" text,
"1993-94" text,
"1994-1995" real
) | SELECT COUNT("1992-93") FROM table_72524 WHERE "Points" = '115' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1828,
2266,
41,
96,
18699,
121,
1499,
6,
96,
188,
624,
545,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
19479,
7412,
4271,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
19479,
7412,
4271,
8512,
21680,
953,
834,
940,
1828,
2266,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
15660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of televote for the artist Pokeris when the place was less than 10? | CREATE TABLE table_name_44 (televote INTEGER, artist VARCHAR, place VARCHAR) | SELECT SUM(televote) FROM table_name_44 WHERE artist = "pokeris" AND place < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1931,
1621,
17,
15,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1931,
1621,
17,
15,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2377,
3274,
96,
102,
32,
2304,
159,
121,
3430,
286,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which location held the bout that led to a 4-3 record? | CREATE TABLE table_name_19 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_name_19 WHERE record = "4-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1128,
1213,
8,
9338,
24,
2237,
12,
3,
9,
314,
3486,
1368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1368,
3274,
96,
591,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many episodes aired originally but not in english ? | CREATE TABLE table_203_758 (
id number,
"no." number,
"dub no." number,
"english dubbed title / english subbed title\noriginal japanese title" text,
"original air date" text,
"english air date" text
) | SELECT COUNT("english dubbed title / english subbed title\noriginal japanese title") FROM table_203_758 WHERE NOT "original air date" IS NULL AND "english air date" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
927,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
1259,
115,
150,
535,
381,
6,
96,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
7,
17344,
2233,
2,
29,
21878,
2662,
2837,
15,
7,
15,
2233,
8512,
21680,
953,
834,
23330,
834,
3072,
927,
549,
17444,
427,
4486,
96,
21878... |
find all dependent names who have a spouse relation with some employee. | CREATE TABLE dependent (
Dependent_name VARCHAR,
relationship VARCHAR
) | SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8976,
41,
30718,
295,
834,
4350,
584,
4280,
28027,
6,
1675,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
253,
66,
8976,
3056,
113,
43,
3,
9,
9911,
4689,
28,
128,
3490,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30718,
295,
834,
4350,
21680,
8976,
549,
17444,
427,
1675,
3274,
3,
31,
134,
102,
1162,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What country submitted miehen ty ? | CREATE TABLE table_72343 (
"Submitting country" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director(s)" text,
"Result" text
) | SELECT "Submitting country" FROM table_72343 WHERE "Original title" = 'Miehen työ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
3710,
519,
41,
96,
25252,
1538,
1222,
684,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
434,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25252,
1538,
1222,
684,
121,
21680,
953,
834,
5865,
3710,
519,
549,
17444,
427,
96,
667,
3380,
10270,
2233,
121,
3274,
3,
31,
329,
23,
15,
3225,
3,
17,
63,
1872,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the location and attendance of the game against Portland? | CREATE TABLE table_18884 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_18884 WHERE "Team" = 'Portland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
4608,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
25794,
4608,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
14714,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the manager of the Stenhousemuir club? | CREATE TABLE table_name_16 (
manager VARCHAR,
club VARCHAR
) | SELECT manager FROM table_name_16 WHERE club = "stenhousemuir" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2743,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2743,
13,
8,
472,
35,
1840,
51,
76,
23,
52,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2743,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1886,
3274,
96,
1913,
1840,
51,
76,
23,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%? | CREATE TABLE table_67918 (
"Name" text,
"Period" text,
"Matches" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Efficiency %" text
) | SELECT MAX("Matches") FROM table_67918 WHERE "Draws" < '2' AND "Efficiency %" = '25%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
4440,
2606,
41,
96,
23954,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
948,
4440,
2606,
549,
17444,
427,
96,
308,
10936,
7,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
29421,
1294,
4392,
3,
1454,
121,
3274,
3,
31,
357,
2712,
31,
... |
What is the time when ss12 is stage? | CREATE TABLE table_21578303_2 (
time VARCHAR,
stage VARCHAR
) | SELECT time FROM table_21578303_2 WHERE stage = "SS12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
3940,
23335,
834,
357,
41,
97,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
116,
3,
7,
7,
2122,
19,
1726,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
357,
1808,
3940,
23335,
834,
357,
549,
17444,
427,
1726,
3274,
96,
4256,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Country, when To Par is ' 2', and when Player is 'Tsuneyuki Nakajima'? | CREATE TABLE table_name_48 (
country VARCHAR,
to_par VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_48 WHERE to_par = "–2" AND player = "tsuneyuki nakajima" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
304,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
357,
121,
3430,
1959,
3274,
96,
17,
7,
444,
63,
1598,
23,
3,
29,
5667,
354,
603,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the junes | CREATE TABLE table_1539201_1 (
june VARCHAR
) | SELECT june FROM table_1539201_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3288,
22772,
834,
536,
41,
3,
6959,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
6959,
15,
7,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6959,
15,
21680,
953,
834,
1808,
3288,
22772,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the maximum age of male patients who died before 2131? | 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 MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.dod_year < "2131.0" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
357,
2368,
12734,
121,
1,
-100,
-100,
-100,
-100,
-... |
How many season 3 appearances by the character played by Stefan Van Ray? | CREATE TABLE table_28475 (
"Character" text,
"Played by" text,
"Season 1" real,
"Season 2" real,
"Season 3" real,
"Season 4" real,
"First Appearance" text
) | SELECT MIN("Season 3") FROM table_28475 WHERE "Played by" = 'Stefan van Ray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
3072,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
15800,
15,
26,
57,
121,
1499,
6,
96,
134,
15,
9,
739,
209,
121,
490,
6,
96,
134,
15,
9,
739,
204,
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,
3,
17684,
599,
121,
134,
15,
9,
739,
220,
8512,
21680,
953,
834,
357,
4608,
3072,
549,
17444,
427,
96,
15800,
15,
26,
57,
121,
3274,
3,
31,
134,
24018,
4049,
8279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals? | CREATE TABLE table_35785 (
"Polling Firm" text,
"Date of Polling" text,
"Link" text,
"Liberal" real,
"Green" real
) | SELECT "Date of Polling" FROM table_35785 WHERE "Polling Firm" = 'forum research' AND "Green" = '7' AND "Liberal" < '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3940,
755,
41,
96,
8931,
697,
13530,
121,
1499,
6,
96,
308,
342,
13,
14457,
53,
121,
1499,
6,
96,
15272,
121,
1499,
6,
96,
14615,
49,
138,
121,
490,
6,
96,
22918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
14457,
53,
121,
21680,
953,
834,
2469,
3940,
755,
549,
17444,
427,
96,
8931,
697,
13530,
121,
3274,
3,
31,
24195,
585,
31,
3430,
96,
22918,
121,
3274,
3,
31,
940,
31,
3430,
96,
14615,
49,
138,
... |
What governments did the minister with a term start on 24 September 1984 have? | CREATE TABLE table_67461 (
"Minister" text,
"Party" text,
"Governments" text,
"Term start" text,
"Term end" text
) | SELECT "Governments" FROM table_67461 WHERE "Term start" = '24 september 1984' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4448,
536,
41,
96,
12858,
5805,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
27304,
4128,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27304,
4128,
121,
21680,
953,
834,
3708,
4448,
536,
549,
17444,
427,
96,
11679,
456,
121,
3274,
3,
31,
2266,
16022,
18247,
13480,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the best supported club with a 25 Goal and a per game larger than 1,156? | CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR) | SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
9606,
834,
29249,
834,
13442,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
399,
834,
7261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
200,
834,
29249,
834,
13442,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1766,
3274,
944,
3430,
399,
834,
7261,
2490,
209,
3,
15316,
20788,
3,
25463,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the least number of points that daly won in a single seasons | CREATE TABLE table_204_722 (
id number,
"season" text,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"f/lap" number,
"podiums" number,
"points" number,
"position" text
) | SELECT MIN("points") FROM table_204_722 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
5865,
357,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
10833,
7,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
12614,
7,
121,
381,
6,
96,
3757,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
2700,
7,
8512,
21680,
953,
834,
26363,
834,
5865,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many female parients were born before the year 2170? | 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.gender = "F" AND demographic.dob_year < "2170" | [
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,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
2658,
2518,
1... |
What is the smallest number of bronze medals with more than 4 gold medals? | CREATE TABLE table_name_7 (bronze INTEGER, gold INTEGER) | SELECT MIN(bronze) FROM table_name_7 WHERE gold > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
381,
13,
13467,
9365,
7,
28,
72,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2045,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is language of subject id 6983? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.language FROM demographic WHERE demographic.subject_id = "6983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3951,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the result against Errol Zimmerman on 2007-04-07? | CREATE TABLE table_name_81 (
result VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_81 WHERE opponent = "errol zimmerman" AND date = "2007-04-07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
581,
848,
3491,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
15264,
3274,
96,
49,
3491,
3,
11647,
348,
121,
3430,
833,
3274,
96,
20615,
18083,
18,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names of people that are on affirmative side of debates with number of audience bigger than 200. | CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Debate_ID VARCHAR, Num_of_Audience INTEGER); CREATE TABLE debate_people (Debate_ID VARCHAR, Affirmative VARCHAR) | SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
23954,
584,
4280,
28027,
6,
2449,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5054,
41,
2962,
3697,
15,
834,
4309,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
23954,
21680,
5054,
834,
16588,
6157,
332,
536,
3,
15355,
3162,
5054,
6157,
332,
357,
9191,
332,
5411,
2962,
3697,
15,
834,
4309,
3274,
332,
4416,
2962,
3697,
15,
834,
4309,
3,
15355,
3162,
151,
6157,
332,
... |
Which Year has an Award of 17th bangkok critics assembly awards, and a Category of best original score? | CREATE TABLE table_name_7 (
year VARCHAR,
award VARCHAR,
category VARCHAR
) | SELECT year FROM table_name_7 WHERE award = "17th bangkok critics assembly awards" AND category = "best original score" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
215,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
46,
3677,
13,
1003,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2760,
3274,
96,
2517,
189,
4514,
122,
157,
1825,
6800,
7,
7889,
6120,
121,
3430,
3295,
3274,
96,
9606,
926,
2604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)? | CREATE TABLE table_name_24 (
smoke_point VARCHAR,
polyunsaturated_fat VARCHAR
) | SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = "69g (4g in high oleic variety)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
7269,
834,
2700,
584,
4280,
28027,
6,
4251,
202,
7,
6010,
920,
834,
6589,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7269,
500... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7269,
834,
2700,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
4251,
202,
7,
6010,
920,
834,
6589,
3274,
96,
3951,
122,
8457,
122,
16,
306,
3,
32,
109,
447,
1196,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients admitted before the year 2120 had the lab test item id 51044? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2120" AND lab.itemid = "51044" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what was the game next after birmingham city on november 6th ? | CREATE TABLE table_203_368 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text
) | SELECT "opponent" FROM table_203_368 WHERE id = (SELECT id FROM table_203_368 WHERE "opponent" = 'birmingham city') + 1 | [
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,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
519,
3651,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
519,
3651,
549,
17444,
427,
96,
32,
102,
9977,
121,
3274,... |
What model number has part number cl8064701510101? | CREATE TABLE table_name_69 (
model_number VARCHAR,
part_number_s_ VARCHAR
) | SELECT model_number FROM table_name_69 WHERE part_number_s_ = "cl8064701510101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
825,
834,
5525,
1152,
584,
4280,
28027,
6,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
825,
381,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
825,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
294,
834,
5525,
1152,
834,
7,
834,
3274,
96,
75,
40,
2079,
4389,
2518,
1808,
1714,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the score of the game with 39,592 attendance? | CREATE TABLE table_name_19 (
score VARCHAR,
attendance VARCHAR
) | SELECT score FROM table_name_19 WHERE attendance = "39,592" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
28,
6352,
6,
3390,
357,
11364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
11364,
3274,
96,
3288,
6,
3390,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the ground of the game where the home team was Adelaide? | CREATE TABLE table_name_88 (
ground VARCHAR,
home_team VARCHAR
) | SELECT ground FROM table_name_88 WHERE home_team = "adelaide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1591,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1591,
13,
8,
467,
213,
8,
234,
372,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1591,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
234,
834,
11650,
3274,
96,
15311,
5385,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1? | CREATE TABLE table_36250 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" real
) | SELECT MIN("Rank by average") FROM table_36250 WHERE "Total" = '425' AND "Place" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
11434,
41,
96,
22557,
57,
1348,
121,
490,
6,
96,
345,
11706,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
567,
5937,
49,
13,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
57,
1348,
8512,
21680,
953,
834,
3420,
11434,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
591,
1828,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100... |
what is maximum age of patients whose discharge location is short term hospital and days of hospital stay is 15? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.days_stay = "15" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
6299,
5934,
3,
5946,
329,
454,
3638,
4111,
16359,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
... |
What is the Production Cost with a Date that is february 2000? | CREATE TABLE table_name_34 (
production_cost VARCHAR,
date VARCHAR
) | SELECT production_cost FROM table_name_34 WHERE date = "february 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
999,
834,
11290,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11114,
6409,
28,
3,
9,
7678,
24,
19,
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,
999,
834,
11290,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What away team has 7 as the tie no.? | CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_38 WHERE tie_no = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
65,
489,
38,
8,
6177,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Call sign of k33ln-ld, and a Virtual channel of 33.5 is what network? | CREATE TABLE table_name_52 (
network VARCHAR,
call_sign VARCHAR,
virtual_channel VARCHAR
) | SELECT network FROM table_name_52 WHERE call_sign = "k33ln-ld" AND virtual_channel = "33.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1229,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
6,
4291,
834,
19778,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2571,
1320,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1229,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
4201,
40,
29,
18,
40,
26,
121,
3430,
4291,
834,
19778,
3274,
96,
4201,
5,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the appointment date for outgoing manager luis césar sampedro | CREATE TABLE table_27495117_3 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) | SELECT date_of_appointment FROM table_27495117_3 WHERE outgoing_manager = "Luis César Sampedro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3647,
5553,
2517,
834,
519,
41,
5522,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2555,
3647,
5553,
2517,
834,
519,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
434,
76,
159,
205,
899,
291,
3084,
3138,
52,
32,
121,
1,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the sum of salary bin hire_date by weekday, could you order from low to high by the y axis? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4... |
Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14? | CREATE TABLE table_54172 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) | SELECT MIN("Points") FROM table_54172 WHERE "Make" = 'chevrolet' AND "Driver" = 'sterling marlin' AND "Car #" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
27156,
41,
96,
20982,
52,
121,
1499,
6,
96,
6936,
1713,
121,
490,
6,
96,
22638,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22512,
7,
8512,
21680,
953,
834,
5062,
27156,
549,
17444,
427,
96,
22638,
121,
3274,
3,
31,
13847,
3491,
15,
17,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
1370,
697,
3157,
40,
77,
31,
3430,
... |
What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1? | CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR, score VARCHAR, decision VARCHAR) | SELECT opponent FROM table_name_13 WHERE score = "3 - 2" AND decision = "raycroft" AND record = "25-29-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1357,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
2604,
3274,
96,
519,
3,
18,
204,
121,
3430,
1357,
3274,
96,
2866,
30750,
121,
3430,
1368,
3274,
96,
1828,
18,
3166,
2292,
121,
1,
-100,
-100,
-100,
-100,
-10... |
Who wrote the episode that received 1.83 million U.S. viewers? | CREATE TABLE table_72440 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_72440 WHERE "U.S. viewers (millions)" = '1.83' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
22335,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24965,
324,
57,
121,
21680,
953,
834,
5865,
22335,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
16253,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Whose Visitor has a Record of 10 11 5? | CREATE TABLE table_68439 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_68439 WHERE "Record" = '10–11–5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
3288,
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,
1649,
7621,
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,
553,
159,
155,
127,
121,
21680,
953,
834,
3651,
591,
3288,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1714,
104,
2596,
104,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which race was on the Las Vegas Motor Speedway for 2 hours? | CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR) | SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
12614,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
47,
30,
8,
7263,
7615,
5083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
4558,
3274,
96,
521,
7,
3,
162,
5556,
2340,
1634,
1343,
121,
3430,
2475,
3274,
96,
357,
716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the least clock rate mhz when designation is rimm 4200 | CREATE TABLE table_19204 (
"Designation" text,
"Bus width (bits)" real,
"Channels" text,
"Clock rate (MHz)" real,
"Bandwidth (MB/s)" real
) | SELECT MIN("Clock rate (MHz)") FROM table_19204 WHERE "Designation" = 'RIMM 4200' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
26363,
41,
96,
19103,
257,
121,
1499,
6,
96,
7793,
7,
9400,
41,
2360,
7,
61,
121,
490,
6,
96,
3541,
4515,
40,
7,
121,
1499,
6,
96,
254,
4029,
1080,
41,
20210,
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,
3,
17684,
599,
121,
254,
4029,
1080,
41,
20210,
61,
8512,
21680,
953,
834,
2294,
26363,
549,
17444,
427,
96,
19103,
257,
121,
3274,
3,
31,
5593,
8257,
314,
3632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Bike with a grid more than 4 and the rider is Michel Fabrizio? | CREATE TABLE table_41626 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Bike" FROM table_41626 WHERE "Grid" > '4' AND "Rider" = 'michel fabrizio' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2938,
2688,
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,
96,
279,
5208,
121,
21680,
953,
834,
591,
2938,
2688,
549,
17444,
427,
96,
13313,
26,
121,
2490,
3,
31,
591,
31,
3430,
96,
448,
23,
588,
121,
3274,
3,
31,
51,
23,
8738,
3,
89,
17639,
702,
32,
31,
1,
-100,
-100... |
what was the first ward id that patient 017-9929 went? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-9929') ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
2239,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
... |
What is the total number of deaths and damage for all storms with a max speed greater than the average? | CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions... | SELECT SUM(number_deaths), SUM(damage_millions_usd) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
1719,
834,
23,
26,
381,
6,
1719,
834,
4978,
1499,
6,
1719,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
1719,
834,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
5525,
1152,
834,
221,
9,
189,
7,
201,
180,
6122,
599,
7812,
545,
834,
17030,
7,
834,
302,
26,
61,
21680,
5536,
549,
17444,
427,
9858,
834,
9993,
2490,
41,
23143,
14196,
71,
17217,
599,
9128,
834,
9... |
What is the highest Rank, when Director is 'Henry Hathaway'? | CREATE TABLE table_name_63 (
rank INTEGER,
director VARCHAR
) | SELECT MAX(rank) FROM table_name_63 WHERE director = "henry hathaway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11003,
3,
21342,
17966,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3,
22557,
6,
116,
2578,
19,
3,
31,
566,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2090,
3274,
96,
3225,
651,
3,
547,
107,
8006,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did Avex Entertainment release a CD? | CREATE TABLE table_65412 (
"Region" text,
"Date" text,
"Format" text,
"Label" text,
"Edition" text
) | SELECT "Date" FROM table_65412 WHERE "Format" = 'cd' AND "Label" = 'avex entertainment' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
2122,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
427,
10569,
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,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4122,
591,
2122,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
75,
26,
31,
3430,
96,
434,
10333,
121,
3274,
3,
31,
9,
162,
226,
4527,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
calculate the number of patients admitted on phys referral/normal deli who had a lab test for joint fluid | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many people attended the game against away team Cambridge City? | CREATE TABLE table_59473 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Attendance" FROM table_59473 WHERE "Away team" = 'cambridge city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4177,
519,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3390,
4177,
519,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
6527,
9818,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest interview for Louisiana with an average above 9.324? | CREATE TABLE table_name_77 (
interview INTEGER,
average VARCHAR,
state VARCHAR
) | SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2772,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2772,
21,
15625,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1348,
2490,
5835,
519,
2266,
3430,
538,
3274,
96,
40,
1063,
159,
13662,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of cuts made in a tournament with 0 wins and 0 top 5 placings? | CREATE TABLE table_14323 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MAX("Cuts made") FROM table_14323 WHERE "Top-5" = '0' AND "Wins" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
2773,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
14855,
121,
490,
6,
96,
427,
2169,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15784,
17,
7,
263,
8512,
21680,
953,
834,
25133,
2773,
549,
17444,
427,
96,
22481,
18,
17395,
3274,
3,
31,
632,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
... |
What's the Bronze cumulative number for less than 0 gold? | CREATE TABLE table_38949 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Bronze") FROM table_38949 WHERE "Gold" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3914,
3647,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
519,
3914,
3647,
549,
17444,
427,
96,
23576,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the average draw for the song 'stop messin' around'? | CREATE TABLE table_77201 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" text
) | SELECT AVG("Draw") FROM table_77201 WHERE "Song" = 'stop messin'' around' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
22772,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
345,
11706,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
308,
10936,
8512,
21680,
953,
834,
4013,
22772,
549,
17444,
427,
96,
134,
2444,
121,
3274,
3,
31,
7618,
8090,
77,
31,
31,
300,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the total number of female patients whose ethnic origin is unspecified/unknown | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "UNKNOWN/NOT SPECIFIED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
7443,
439,
12038,
5... |
What song has filipa sousa as an artist? | CREATE TABLE table_name_94 (
song VARCHAR,
artist VARCHAR
) | SELECT song FROM table_name_94 WHERE artist = "filipa sousa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2324,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2324,
65,
361,
7446,
9,
2539,
9,
38,
46,
2377,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
2377,
3274,
96,
89,
23,
7446,
9,
2539,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for hard surface and tournament of fort walton beach | CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5522,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
614,
1774,
11,
5892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
5892,
3274,
96,
1161,
17,
8036,
7377,
2608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
That's the total for rank points of olympic gold medalist? | CREATE TABLE table_60906 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
) | SELECT "Total" FROM table_60906 WHERE "Rank points" = 'olympic gold medalist' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2394,
948,
41,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
22557,
979,
121,
1499,
6,
96,
134,
9022,
979,
121,
1499,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
121,
21680,
953,
834,
3328,
2394,
948,
549,
17444,
427,
96,
22557,
979,
121,
3274,
3,
31,
32,
120,
51,
6174,
2045,
9365,
343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 2000, when Tournament is "Canada Masters"? | CREATE TABLE table_name_67 (tournament VARCHAR) | SELECT 2000 FROM table_name_67 WHERE tournament = "canada masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2766,
6,
116,
20502,
19,
96,
28811,
14119,
121,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2766,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
5892,
3274,
96,
658,
18089,
2325,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose gender is m and diagnoses long title is hip joint replacement? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Hip joint replacement" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the date for 45,000 in attendance? | CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_32 WHERE attendance = "45,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
314,
5898,
16,
11364,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
11364,
3274,
96,
591,
5898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank of the cadillac northstar lmp02 chassis? | CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR) | SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
6254,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
212,
26,
173,
9700,
3457,
3624,
3,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
22836,
3274,
96,
658,
26,
173,
9700,
3457,
3624,
3,
40,
1167,
4305,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the incumbent when henry e. barbour ran? | CREATE TABLE table_1342379_5 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4440,
834,
755,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
28406,
116,
3,
3225,
651,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2773,
4440,
834,
755,
549,
17444,
427,
28406,
3274,
96,
566,
35,
651,
262,
5,
11038,
1211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which name is listed after alan smith ? | CREATE TABLE table_203_753 (
id number,
"rank" number,
"name" text,
"caps" number,
"goals" number,
"years" text
) | SELECT "name" FROM table_203_753 WHERE id = (SELECT id FROM table_203_753 WHERE "name" = 'alan smith') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
4010,
7,
121,
381,
6,
96,
839,
5405,
121,
381,
6,
96,
1201,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
3072,
519,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
3072,
519,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
9,
1618,
... |
A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, display by the y-axis in descending. | CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)... | SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
1115,
834,
23,
26,
3,
21342,
17966,
6,
1115,
834,
14819,
584,
4280,
28027,
599,
2079,
201,
690,
584,
4280,
28027,
599,
1752,
201,
10658,
834,
5950,
4978,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
346,
6527,
15,
834,
25697,
49,
6,
2847,
17161,
599,
5522,
834,
346,
6527,
15,
834,
25697,
49,
61,
21680,
16423,
549,
17444,
427,
884,
834,
23,
26,
272,
7969,
518,
23394,
335,
3430,
460,
4674,
11300,
272,
... |
Please show the date of ceremony of the volumes that last more than 2 weeks on top. | CREATE TABLE music_festival (
Date_of_ceremony VARCHAR,
Volume VARCHAR
)
CREATE TABLE volume (
Volume_ID VARCHAR,
Weeks_on_Top INTEGER
) | SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
723,
834,
89,
24742,
41,
7678,
834,
858,
834,
2110,
15,
21208,
584,
4280,
28027,
6,
14816,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2908,
41,
14816... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
342,
834,
858,
834,
2110,
15,
21208,
21680,
723,
834,
89,
24742,
6157,
332,
536,
3,
15355,
3162,
2908,
6157,
332,
357,
9191,
332,
5411,
22803,
440,
15,
3274,
332,
4416,
22803,
440,
15,
834,
4309,
549... |
Which sponsor has Mark Hughes as manager? | CREATE TABLE table_name_23 (shirt_sponsor VARCHAR, manager VARCHAR) | SELECT shirt_sponsor FROM table_name_23 WHERE manager = "mark hughes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
9486,
834,
7,
5041,
7,
127,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9037,
65,
2185,
21512,
38,
2743,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8677,
834,
7,
5041,
7,
127,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
2743,
3274,
96,
3920,
18233,
88,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist? | CREATE TABLE table_13971 (
"Draw" real,
"Artist" text,
"Song" text,
"Result" text,
"Place" real
) | SELECT MIN("Draw") FROM table_13971 WHERE "Artist" = 'anastasia prikhodko' AND "Place" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
4450,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
345,
11706,
121,
490,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
8512,
21680,
953,
834,
24090,
4450,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
152,
9,
7,
17,
15974,
3,
2246,
28569,
26,
157,
32,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31... |
give me the number of patients whose admission location is clinic referral/premature and drug code is esmo100i? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.formulary_drug_cd = "ESMO100I" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who were the candidates in the district where the incumbent was Nathaniel Macon? | CREATE TABLE table_2668367_14 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_2668367_14 WHERE incumbent = "Nathaniel Macon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3708,
834,
2534,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
8,
3939,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
2688,
3651,
519,
3708,
834,
2534,
549,
17444,
427,
28406,
3274,
96,
567,
9,
6736,
23,
15,
40,
2143,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.