NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What place had a score of 67-67=134? | CREATE TABLE table_59388 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_59388 WHERE "Score" = '67-67=134' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
4060,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
3390,
519,
4060,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3708,
18,
3708,
2423,
23747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the distinct majors that students with treasurer votes are studying? | CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
)
CREATE TABLE student (
stuid number,
... | SELECT DISTINCT T1.major FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.treasurer_vote | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10601,
834,
60,
7621,
41,
21341,
23,
26,
381,
6,
3816,
834,
5522,
1499,
6,
4356,
834,
10136,
1499,
6,
2753,
834,
1621,
17,
15,
381,
6,
6444,
834,
102,
15704,
834,
1621,
17,
15,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
16547,
127,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
10601,
834,
60,
7621,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
929,
9,
3042,
49,
834,
1621,
17... |
What was the title of the song that peaked the charts at #1 with track 20? | CREATE TABLE table_name_78 (song_title VARCHAR, chart_peak VARCHAR, track VARCHAR) | SELECT song_title FROM table_name_78 WHERE chart_peak = "#1" AND track = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
7,
2444,
834,
21869,
584,
4280,
28027,
6,
5059,
834,
14661,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
834,
21869,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
5059,
834,
14661,
3274,
96,
4663,
536,
121,
3430,
1463,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the characters and duration of actors? | CREATE TABLE actor (
Character VARCHAR,
Duration VARCHAR
) | SELECT Character, Duration FROM actor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
20087,
584,
4280,
28027,
6,
20610,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2850,
11,
8659,
13,
10485,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20087,
6,
20610,
21680,
7556,
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,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2008 population in (Ham Hyung)? | CREATE TABLE table_47376 (
"City" text,
"Korean" text,
"Hancha" text,
"Province" text,
"Population (2008)" real
) | SELECT SUM("Population (2008)") FROM table_47376 WHERE "Korean" = '함흥' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3959,
41,
96,
254,
485,
121,
1499,
6,
96,
439,
127,
15,
152,
121,
1499,
6,
96,
566,
152,
3441,
121,
1499,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
27773,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
27773,
7830,
26974,
8512,
21680,
953,
834,
4177,
519,
3959,
549,
17444,
427,
96,
439,
127,
15,
152,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When winner is the status and 77 is the total days in pbb house what is the edition? | CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR) | SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "Winner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4241,
4581,
536,
834,
519,
41,
15,
10569,
584,
4280,
28027,
6,
792,
834,
1135,
7,
834,
77,
834,
102,
115,
115,
834,
1840,
584,
4280,
28027,
6,
2637,
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,
4182,
21680,
953,
834,
11776,
4241,
4581,
536,
834,
519,
549,
17444,
427,
792,
834,
1135,
7,
834,
77,
834,
102,
115,
115,
834,
1840,
3274,
3,
4013,
3430,
2637,
3274,
96,
18455,
687,
121,
1,
-100,
-100,
-100,
-100,
... |
Name the week for december 4, 2009 | CREATE TABLE table_name_80 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_80 WHERE date = "december 4, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
8041,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
471,
21,
20,
75,
18247,
6464,
2464,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
6464,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many opponents were there when the record was 6-0? | CREATE TABLE table_24203 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Cowboys points" real,
"Opponents" real,
"Record" text
) | SELECT COUNT("Opponent") FROM table_24203 WHERE "Record" = '6-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
23330,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
254,
2381,
7531,
7,
979,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
102,
9977,
8512,
21680,
953,
834,
2266,
23330,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
28625,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show me the number of all home by all home in a histogram, and show by the how many all home in descending. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2847,
17161,
599,
6838,
834,
19040,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
2847,
17161,
599,
6838,
834,
19040,
61,
309,
25067,
1,
-100,
-100... |
Which ground is match 4 held on? | CREATE TABLE table_name_49 (
ground VARCHAR,
match VARCHAR
) | SELECT ground FROM table_name_49 WHERE match = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1591,
584,
4280,
28027,
6,
1588,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1591,
19,
1588,
314,
1213,
30,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1591,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1588,
3274,
314,
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... |
What was the term of office for the electorate warringah? | CREATE TABLE table_name_1 (
term_of_office VARCHAR,
electorate VARCHAR
) | SELECT term_of_office FROM table_name_1 WHERE electorate = "warringah" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1657,
834,
858,
834,
19632,
584,
4280,
28027,
6,
11924,
127,
342,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1657,
13,
828,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1657,
834,
858,
834,
19632,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
11924,
127,
342,
3274,
96,
2910,
1007,
9,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What faith has a DCSF number bigger than 2448 in Holtsmere End? | CREATE TABLE table_name_44 (faith VARCHAR, dcsf_number VARCHAR, name VARCHAR) | SELECT faith FROM table_name_44 WHERE dcsf_number > 2448 AND name = "holtsmere end" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
10699,
107,
584,
4280,
28027,
6,
3,
26,
75,
7,
89,
834,
5525,
1152,
584,
4280,
28027,
6,
564,
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,
0... | [
3,
23143,
14196,
3251,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3,
26,
75,
7,
89,
834,
5525,
1152,
2490,
997,
3707,
3430,
564,
3274,
96,
2831,
17,
7,
935,
15,
414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What tyre has 1 round with Dave Charlton driving? | CREATE TABLE table_name_91 (tyre VARCHAR, rounds VARCHAR, driver VARCHAR) | SELECT tyre FROM table_name_91 WHERE rounds = "1" AND driver = "dave charlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
17,
63,
60,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
17,
63,
60,
65,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
63,
60,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
14419,
3274,
96,
536,
121,
3430,
2535,
3274,
96,
26,
9,
162,
3,
4059,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of self pay insurance patients who were hospitalized for more than 27 days in hospital. | 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 WHERE demographic.insurance = "Self Pay" AND demographic.days_stay > "27" | [
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,
29441,
3274,
96,
134,
10386,
5077,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
2555,
121,
... |
What is the highest goal for a GEO nat., that ended after 2010? | CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR) | SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
839,
5405,
3,
21342,
17966,
6,
3,
29,
144,
584,
4280,
28027,
6,
5542,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1288,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3,
29,
144,
3274,
96,
397,
32,
121,
3430,
5542,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was yellow jersey of Jacques Anquetil? | CREATE TABLE table_13569 (
"Year" real,
"Stage" real,
"Start of stage" text,
"Distance (km)" text,
"Category of climb" text,
"Stage winner" text,
"Yellow jersey" text
) | SELECT MIN("Year") FROM table_13569 WHERE "Yellow jersey" = 'jacques anquetil' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
3951,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
6505,
121,
490,
6,
96,
7681,
17,
13,
1726,
121,
1499,
6,
96,
308,
23,
8389,
41,
5848,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
536,
2469,
3951,
549,
17444,
427,
96,
476,
7126,
210,
13426,
121,
3274,
3,
31,
1191,
75,
7771,
46,
835,
17,
173,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose lab test chart time is 2111-12-22 19:13:00? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2111-12-22 19:13:00" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2? | CREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR) | SELECT year FROM table_1507806_1 WHERE winning_score = "3 & 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3940,
5176,
834,
536,
41,
1201,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
30431,
7896,
134,
2344,
549,
22735,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
12278,
3940,
5176,
834,
536,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
96,
519,
3,
184,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the Juntas de Regantes (WUB) within the Azua Valley? | CREATE TABLE table_20018310_1 (juntas_de_regantes__wub_ VARCHAR, irrigation_district VARCHAR) | SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = "Azua Valley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
24361,
1714,
834,
536,
41,
6959,
17,
9,
7,
834,
221,
834,
60,
122,
8386,
834,
834,
210,
76,
115,
834,
584,
4280,
28027,
6,
21455,
834,
26,
23,
20066,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6959,
17,
9,
7,
834,
221,
834,
60,
122,
8386,
834,
834,
210,
76,
115,
834,
21680,
953,
834,
3632,
24361,
1714,
834,
536,
549,
17444,
427,
21455,
834,
26,
23,
20066,
3274,
96,
188,
1000,
9,
3460,
121,
1,
-100,... |
Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514? | CREATE TABLE table_31820 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) | SELECT "Driver" FROM table_31820 WHERE "Laps" < '498' AND "Points" < '58' AND "Car #" > '22' AND "Winnings" = '$93,514' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
1755,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
121,
21680,
953,
834,
519,
2606,
1755,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
591,
3916,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
3449,
31,
3430,
96,
6936,
1713,
121,
2490,
3,
3... |
What was the result in the election in which Ralph R. Eltse was the incumbent? | CREATE TABLE table_1342331_6 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342331_6 WHERE incumbent = "Ralph R. Eltse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3341,
834,
948,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
16,
8,
4356,
16,
84,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2773,
3341,
834,
948,
549,
17444,
427,
28406,
3274,
96,
448,
138,
102,
107,
391,
5,
1289,
17,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Cuts made has a Top-25 smaller than 3? | CREATE TABLE table_name_26 (
cuts_made INTEGER,
top_25 INTEGER
) | SELECT MAX(cuts_made) FROM table_name_26 WHERE top_25 < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
8620,
834,
4725,
3,
21342,
17966,
6,
420,
834,
1828,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6868,
7,
263,
65,
3,
9,
2224,
14855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
420,
834,
1828,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Lead has a Third of jeanne ellegaard? | CREATE TABLE table_name_56 (lead VARCHAR, third VARCHAR) | SELECT lead FROM table_name_56 WHERE third = "jeanne ellegaard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
109,
9,
26,
584,
4280,
28027,
6,
1025,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
12208,
65,
3,
9,
9879,
13,
528,
4515,
3,
693,
122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
991,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1025,
3274,
96,
1924,
4515,
3,
693,
122,
9,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number for period of validity for upper volta | CREATE TABLE table_73368 (
"Former country name" text,
"Former codes" text,
"Period of validity" text,
"ISO 3166-3 code" text,
"New country names and codes" text
) | SELECT COUNT("Period of validity") FROM table_73368 WHERE "Former country name" = 'Upper Volta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
3651,
41,
96,
3809,
935,
684,
564,
121,
1499,
6,
96,
3809,
935,
5633,
121,
1499,
6,
96,
12988,
23,
32,
26,
13,
21264,
121,
1499,
6,
96,
196,
6582,
3,
25946,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12988,
23,
32,
26,
13,
21264,
8512,
21680,
953,
834,
4552,
519,
3651,
549,
17444,
427,
96,
3809,
935,
684,
564,
121,
3274,
3,
31,
1265,
8153,
4969,
17,
9,
31,
1,
-100,
-100,
-100,
-100,
-100... |
which location has more stations , loudonville or newcomerstown ? | CREATE TABLE table_204_793 (
id number,
"call-sign" text,
"location" text,
"rf" number,
"psip" number,
"programming" text
) | SELECT "location" FROM table_204_793 WHERE "location" IN ('loudonville', 'newcomerstown') GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4440,
519,
41,
3,
23,
26,
381,
6,
96,
16482,
18,
6732,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
52,
89,
121,
381,
6,
96,
102,
7,
23,
102,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14836,
121,
21680,
953,
834,
26363,
834,
4440,
519,
549,
17444,
427,
96,
14836,
121,
3388,
41,
31,
40,
1063,
2029,
1420,
31,
6,
3,
31,
5534,
287,
277,
3540,
31,
61,
350,
4630,
6880,
272,
476,
96,
14836,
121,
... |
how many female patients are lab tested under category blood gas? | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
count the number of patients who had the intake of enteral tube intake: orogastric oral 14f since 2103. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid numb... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'enteral tube intake: orogastric oral 14f' AND intakeoutput.cellpath LIKE '%input%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) >= '2103'... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
21680,
... |
What was the status of tropartic? | CREATE TABLE table_12001616_4 (
status VARCHAR,
car_name VARCHAR
) | SELECT status FROM table_12001616_4 WHERE car_name = "TropArtic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3632,
2938,
2938,
834,
591,
41,
2637,
584,
4280,
28027,
6,
443,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2637,
13,
5227,
291,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
536,
3632,
2938,
2938,
834,
591,
549,
17444,
427,
443,
834,
4350,
3274,
96,
382,
9505,
7754,
447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Result has a Venue of A, and an Opponent of manchester united? | CREATE TABLE table_name_96 (
result VARCHAR,
venue VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
741,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20119,
65,
3,
9,
29940,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
5669,
3274,
96,
9,
121,
3430,
15264,
3274,
96,
348,
13263,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What episode was writted by John A. Norris? | CREATE TABLE table_11695215_1 (
title VARCHAR,
written_by VARCHAR
) | SELECT title FROM table_11695215_1 WHERE written_by = "John A. Norris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
3301,
357,
1808,
834,
536,
41,
2233,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5640,
47,
3,
210,
18208,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
20159,
3301,
357,
1808,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
18300,
71,
5,
7005,
52,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total attendance at anaheim stadium after 1983 when the result is 14-28? | CREATE TABLE table_name_67 (
attendance VARCHAR,
result VARCHAR,
year VARCHAR,
venue VARCHAR
) | SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
11364,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
215,
2490,
15041,
3430,
5669,
3274,
96,
152,
9,
3254,
14939,
121,
3430,
741,
3274,
96,
2534,
18,
2577,
121,
1,
-100,
-100,
-100,
-... |
A bar chart shows the distribution of Date_of_Birth and Weight . | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Date_of_Birth, Weight FROM people | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
14230,
21680,
151,
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,
-10... |
What was the lowest pick when the position was OF with the Chicago White Sox? | CREATE TABLE table_43841 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
) | SELECT MIN("Pick") FROM table_43841 WHERE "Position" = 'of' AND "Team" = 'chicago white sox' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
4853,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
19040,
3540,
87,
29364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
8512,
21680,
953,
834,
591,
3747,
4853,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
858,
31,
3430,
96,
18699,
121,
3274,
3,
31,
1436,
658,
839,
872,
78,
226,
31,
1,
... |
How many days are associated with production code 210? | CREATE TABLE table_16581695_3 (
original_airdate VARCHAR,
production_code VARCHAR
) | SELECT COUNT(original_airdate) FROM table_16581695_3 WHERE production_code = 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3449,
2938,
3301,
834,
519,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
477,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21878,
834,
2256,
5522,
61,
21680,
953,
834,
2938,
3449,
2938,
3301,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the co-driver for the 6th position and more than 159 laps? | CREATE TABLE table_8128 (
"Year" real,
"Number" real,
"Team" text,
"Co-driver" text,
"Position" text,
"Laps" real
) | SELECT "Co-driver" FROM table_8128 WHERE "Position" = '6th' AND "Laps" > '159' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
2577,
41,
96,
476,
2741,
121,
490,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
13739,
52,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
3881,
18,
13739,
52,
121,
21680,
953,
834,
4959,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
948,
189,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
27904,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the decision of the game with an attendance greater than 19,883? | CREATE TABLE table_name_49 (
decision VARCHAR,
attendance INTEGER
) | SELECT decision FROM table_name_49 WHERE attendance > 19 OFFSET 883 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1357,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1357,
13,
8,
467,
28,
46,
11364,
2123,
145,
12370,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1357,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
11364,
2490,
957,
3,
15316,
20788,
505,
4591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest Polish Cup, when Position is "Midfielder", when Player is "Miroslav Radović", and when Ekstraklasa is less than 1? | CREATE TABLE table_name_47 (polish_cup INTEGER, ekstraklasa VARCHAR, position VARCHAR, player VARCHAR) | SELECT MIN(polish_cup) FROM table_name_47 WHERE position = "midfielder" AND player = "miroslav radović" AND ekstraklasa < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
15621,
107,
834,
4658,
3,
21342,
17966,
6,
3,
16789,
1313,
8142,
7,
9,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
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,
3,
17684,
599,
15621,
107,
834,
4658,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1102,
3274,
96,
6983,
1846,
49,
121,
3430,
1959,
3274,
96,
5884,
32,
17457,
3,
19042,
2099,
2,
121,
3430,
3,
16789,
1313,
... |
How many districts does john j. douglass represent? | CREATE TABLE table_1342379_20 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Douglass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4440,
834,
1755,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
405,
3,
27341,
3,
354,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
23747,
2773,
4440,
834,
1755,
549,
17444,
427,
28406,
3274,
96,
18300,
446,
5,
14154,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue was the tour match against eastern province played at with more than 0 against? | CREATE TABLE table_name_31 (
venue VARCHAR,
opposing_team VARCHAR,
status VARCHAR,
against VARCHAR
) | SELECT venue FROM table_name_31 WHERE status = "tour match" AND against > 0 AND opposing_team = "eastern province" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5669,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2637,
3274,
96,
17,
1211,
1588,
121,
3430,
581,
2490,
3,
632,
3430,
10720,
53,
834,
11650,
3274,
96,
15,
9,
13072,
7985,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What opponents have a record of 90-70? | CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_34 WHERE record = "90-70" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
16383,
43,
3,
9,
1368,
13,
2777,
18,
2518,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1368,
3274,
96,
2394,
18,
2518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average apps for smederevo | CREATE TABLE table_name_73 (
apps INTEGER,
team VARCHAR
) | SELECT AVG(apps) FROM table_name_73 WHERE team = "smederevo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
4050,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
4050,
21,
3,
7,
2726,
49,
15,
1621,
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,
71,
17217,
599,
3096,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
372,
3274,
96,
7,
2726,
49,
15,
1621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Zimbabwe's rank? | CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR) | SELECT rank FROM table_name_33 WHERE nationality = "zimbabwe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
6254,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
23241,
31,
7,
11003,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1157,
485,
3274,
96,
172,
17982,
115,
1123,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the highest wins for year less than 2000 and best finish of 4 and tournaments played less than 3 | CREATE TABLE table_74525 (
"Year" real,
"Tournaments played" real,
"Cuts made*" real,
"Wins" real,
"Top 10s" real,
"Best finish" text,
"Earnings ( $ )" text,
"Scoring average" real
) | SELECT MAX("Wins") FROM table_74525 WHERE "Year" < '2000' AND "Best finish" = '4' AND "Tournaments played" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
1828,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
29,
9,
4128,
1944,
121,
490,
6,
96,
15784,
17,
7,
263,
1935,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
18455,
7,
8512,
21680,
953,
834,
940,
2128,
1828,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
13527,
31,
3430,
96,
17278,
1992,
121,
3274,
3,
31,
591,
31,
3430,
96,
382,
1211,
29,
9,
4... |
Player than won in 2003? | CREATE TABLE table_name_94 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_94 WHERE year_s__won = "2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
20846,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
12387,
145,
751,
16,
3888,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
23948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Away Team is 'Newcastle Benfield'? | CREATE TABLE table_60029 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Score" FROM table_60029 WHERE "Away team" = 'newcastle benfield' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
3166,
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,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
6007,
3166,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
5534,
5254,
109,
36,
29,
1846,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game for the Wrexham away team? | CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_17 WHERE away_team = "wrexham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
21,
8,
549,
60,
226,
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,
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,
2517,
549,
17444,
427,
550,
834,
11650,
3274,
96,
210,
60,
226,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart of services versus the number of services, and order by the Y-axis in ascending please. | CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CR... | SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY COUNT(services) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
3,
23,
26,
16,
17,
6,
2412,
834,
5525,
1152,
16,
17,
6,
564,
1499,
6,
5233,
1499,
6,
3954,
1499,
6,
97,
1499,
6,
8572,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
364,
6,
2847,
17161,
599,
5114,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
364,
4674,
11300,
272,
476,
2847,
17161,
599,
5114,
7,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Home Team, when Date is "6 December 1986", and when Tie No is "4"? | CREATE TABLE table_name_49 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_49 WHERE date = "6 december 1986" AND tie_no = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
833,
3274,
96,
948,
20,
75,
18247,
12698,
121,
3430,
6177,
834,
29,
32,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what district has the same population density as laborie despite having a smaller land area ? | CREATE TABLE table_203_212 (
id number,
"#" number,
"district" text,
"land area (km2)" number,
"population\n(2010 census)" number,
"density (persons/km2)" number
) | SELECT "district" FROM table_203_212 WHERE "district" <> 'laborie' AND "density (persons/km2)" = (SELECT "density (persons/km2)" FROM table_203_212 WHERE "district" = 'laborie') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24837,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
40,
232,
616,
41,
5848,
7318,
121,
381,
6,
96,
9791,
7830,
2,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26,
23,
20066,
121,
21680,
953,
834,
23330,
834,
24837,
549,
17444,
427,
96,
26,
23,
20066,
121,
3,
2,
3155,
3,
31,
9456,
23,
15,
31,
3430,
96,
537,
7,
485,
41,
6075,
7,
87,
5848,
7318,
121,
3274,
41,
2314... |
How many years did lin gaoyuan wu jiaji play mens doubles? | CREATE TABLE table_28138035_20 (year_location VARCHAR, mens_doubles VARCHAR) | SELECT COUNT(year_location) FROM table_28138035_20 WHERE mens_doubles = "Lin Gaoyuan Wu Jiaji" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2368,
2079,
2469,
834,
1755,
41,
1201,
834,
14836,
584,
4280,
28027,
6,
1076,
7,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
834,
14836,
61,
21680,
953,
834,
2577,
2368,
2079,
2469,
834,
1755,
549,
17444,
427,
1076,
7,
834,
25761,
7,
3274,
96,
434,
77,
2776,
32,
63,
76,
152,
17792,
7802,
17815,
121,
1,
-100,
-100,
... |
What shows for traditional when the population was 44,803? | CREATE TABLE table_name_14 (traditional VARCHAR, population VARCHAR) | SELECT traditional FROM table_name_14 WHERE population = "44,803" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
26374,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
1435,
116,
8,
2074,
47,
8537,
6,
2079,
519,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1435,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2074,
3274,
96,
3628,
6,
2079,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What survey has the Ehsas Jdeed title? | CREATE TABLE table_78882 (
"Year" real,
"Title" text,
"Director" text,
"Survey" text,
"Result" text
) | SELECT "Survey" FROM table_78882 WHERE "Title" = 'ehsas jdeed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
10927,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
134,
450,
162,
63,
121,
1499,
6,
96,
20119,
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,
450,
162,
63,
121,
21680,
953,
834,
940,
10927,
357,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
15,
107,
7,
9,
7,
3,
354,
26,
6958,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who directed the episode which originally aired February 4, 2005? | CREATE TABLE table_25520 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "Directed by" FROM table_25520 WHERE "Original air date" = 'February 4, 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
1755,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
25502,
1755,
549,
17444,
427,
96,
667,
3380,
10270,
799,
833,
121,
3274,
3,
31,
31122,
6464,
3105,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What class was ren alde? | CREATE TABLE table_25381 (
"No." real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text
) | SELECT "Class" FROM table_25381 WHERE "Player" = 'Ren Alde' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3747,
536,
41,
96,
4168,
535,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
1828,
3747,
536,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
448,
35,
901,
221,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the share of votes with 3,567,021 NDC votes? | CREATE TABLE table_9551 (
"Election" real,
"Number of NDC votes" text,
"Share of votes" text,
"Seats" real,
"Outcome of election" text
) | SELECT "Share of votes" FROM table_9551 WHERE "Number of NDC votes" = '3,567,021' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
5553,
41,
96,
427,
12252,
121,
490,
6,
96,
567,
5937,
49,
13,
445,
6338,
11839,
121,
1499,
6,
96,
24501,
13,
11839,
121,
1499,
6,
96,
134,
1544,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24501,
13,
11839,
121,
21680,
953,
834,
3301,
5553,
549,
17444,
427,
96,
567,
5937,
49,
13,
445,
6338,
11839,
121,
3274,
3,
31,
6355,
755,
3708,
6,
632,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826? | CREATE TABLE table_name_80 (
percentage INTEGER,
points_for VARCHAR,
losses VARCHAR,
wins VARCHAR,
points_against VARCHAR
) | SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
5294,
3,
21342,
17966,
6,
979,
834,
1161,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
9204,
2490,
3,
632,
3430,
979,
834,
9,
16720,
7,
17,
2490,
314,
4959,
3430,
8467,
3274,
505,
3430,
979,
834,
1161,
2490,
505,
... |
How many minutes were played by Sue Bird? | CREATE TABLE table_24915964_4 (
minutes INTEGER,
player VARCHAR
) | SELECT MIN(minutes) FROM table_24915964_4 WHERE player = "Sue Bird" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4729,
3390,
4389,
834,
591,
41,
676,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
676,
130,
1944,
57,
17564,
9992,
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,
3,
17684,
599,
6890,
7,
61,
21680,
953,
834,
2266,
4729,
3390,
4389,
834,
591,
549,
17444,
427,
1959,
3274,
96,
134,
76,
15,
9992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the voltage when the L2 cache is 2 256 kb and the turbo is 5/8? | CREATE TABLE table_13611 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"GPU frequency" text,
"Cores" text,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" te... | SELECT "Voltage" FROM table_13611 WHERE "L2 cache" = '2 × 256 kb' AND "Turbo" = '5/8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
2596,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
115,
32,
121,
1499,
6,
96,
517,
1074... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22803,
6505,
121,
21680,
953,
834,
23459,
2596,
549,
17444,
427,
96,
434,
357,
11800,
121,
3274,
3,
31,
357,
3,
2,
3,
19337,
3,
157,
115,
31,
3430,
96,
382,
450,
115,
32,
121,
3274,
3,
31,
755,
9483,
31,
1... |
What is the lowest Total for rank 3 with more than 4 gold? | CREATE TABLE table_name_13 (total INTEGER, rank VARCHAR, gold VARCHAR) | SELECT MIN(total) FROM table_name_13 WHERE rank = "3" AND gold > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
235,
1947,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
9273,
21,
11003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
11003,
3274,
96,
519,
121,
3430,
2045,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of amenities for each of the dorms that can accommodate more than 100 students. Show scatter chart. | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_ca... | SELECT COUNT(*), T1.dormid FROM Dorm AS T1 JOIN Has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
2847,
17161,
599,
1935,
201,
332,
5411,
26,
127,
6983,
21680,
6200,
51,
6157,
332,
536,
3,
15355,
3162,
4498,
834,
9,
904,
485,
6157,
332,
357,
9191,
332,
5411,
26,
127,
6983,
3274,
332,
4416,
26,
127,
6983,
549,
... |
What was the date of Henk Hordijk's death? | CREATE TABLE table_16904 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
) | SELECT "date of death\u2020" FROM table_16904 WHERE "name" = 'Henk Hordijk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
6348,
41,
96,
5525,
1152,
121,
490,
6,
96,
5522,
13,
5695,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
5525,
1152,
13,
16753,
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,
5522,
13,
1687,
2,
76,
22224,
121,
21680,
953,
834,
27096,
6348,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
566,
35,
157,
6766,
26,
25548,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How low was the San Juan income? | CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, district VARCHAR) | SELECT income_poverty_f FROM table_13618358_1 WHERE district = "San Juan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
24361,
3449,
834,
536,
41,
15759,
834,
102,
1890,
17,
63,
834,
89,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
731,
47,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2055,
834,
102,
1890,
17,
63,
834,
89,
21680,
953,
834,
23459,
24361,
3449,
834,
536,
549,
17444,
427,
3939,
3274,
96,
134,
152,
15597,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Game, when Team is 'Celtics', and when High Assists is 'Hedo T rko lu (4)'? | CREATE TABLE table_name_34 (
game INTEGER,
team VARCHAR,
high_assists VARCHAR
) | SELECT MAX(game) FROM table_name_34 WHERE team = "celtics" AND high_assists = "hedo türkoğlu (4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
467,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7261,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
372,
3274,
96,
7125,
7636,
121,
3430,
306,
834,
6500,
7,
17,
7,
3274,
96,
88,
26,
32,
3,
11150,
157,
32,
2,
40,
76,
3,
10820,
121,
1,
... |
Who directed 'you are not in any trouble, are you? | CREATE TABLE table_27331 (
"Episode No." text,
"Prod No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate UK" text
) | SELECT "Directed by" FROM table_27331 WHERE "Title" = 'You Are Not in Any Trouble, Are You?' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
3341,
41,
96,
427,
102,
159,
32,
221,
465,
535,
1499,
6,
96,
3174,
26,
465,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
2555,
519,
3341,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
3774,
1521,
933,
16,
2372,
31520,
6,
1521,
148,
58,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the report in the Belgian Grand Prix? | CREATE TABLE table_52284 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Report" FROM table_52284 WHERE "Race" = 'belgian grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
357,
4608,
41,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1493,
121,
21680,
953,
834,
5373,
357,
4608,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
2370,
22898,
1907,
3407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the lyricist for composer Haewon Park? | CREATE TABLE table_60599 (
"Title" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Arranger(s)" text,
"Time" text
) | SELECT "Lyricist(s)" FROM table_60599 WHERE "Composer(s)" = 'haewon park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
755,
3264,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
434,
63,
2234,
343,
599,
7,
61,
121,
1499,
6,
96,
5890,
2748,
49,
599,
7,
61,
121,
1499,
6,
96,
28150,
9,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
2234,
343,
599,
7,
61,
121,
21680,
953,
834,
3328,
755,
3264,
549,
17444,
427,
96,
5890,
2748,
49,
599,
7,
61,
121,
3274,
3,
31,
1024,
15,
210,
106,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date were sheets issued in Tallahassee, Florida? | CREATE TABLE table_name_40 (
date_of_issue VARCHAR,
place_of_issue VARCHAR
) | SELECT date_of_issue FROM table_name_40 WHERE place_of_issue = "tallahassee, florida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
833,
834,
858,
834,
13159,
584,
4280,
28027,
6,
286,
834,
858,
834,
13159,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
858,
834,
13159,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
286,
834,
858,
834,
13159,
3274,
96,
17,
30157,
3974,
15,
6,
12215,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist? | CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR) | SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
1109,
6505,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
2929,
19,
147,
2628,
6,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1109,
6505,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2377,
3274,
96,
8170,
138,
54,
9,
8603,
13983,
3,
35,
15299,
277,
121,
3430,
215,
2490,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many of the schools listed are in Ames, IA? | CREATE TABLE table_15917 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT COUNT("Primary conference") FROM table_15917 WHERE "Location" = 'Ames, IA' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
2517,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7855,
51,
1208,
2542,
8512,
21680,
953,
834,
27904,
2517,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
188,
2687,
6,
27,
188,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of hospital visits made to patient 035-11731 since 5 years ago. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... | SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '035-11731' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-5 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2469,
18,
20275,
3341,
31,
3430,
309,
6048,
382,
15382,
... |
which rider finished first ? | CREATE TABLE table_204_603 (
id number,
"pos" text,
"no" number,
"rider" text,
"bike" text,
"laps" number,
"time" text,
"grid" number,
"points" number
) | SELECT "rider" FROM table_204_603 WHERE "pos" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3328,
519,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
4055,
49,
121,
1499,
6,
96,
15214,
121,
1499,
6,
96,
8478,
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,
4055,
49,
121,
21680,
953,
834,
26363,
834,
3328,
519,
549,
17444,
427,
96,
2748,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the phone number of the station located at 53 Dayton Road? | CREATE TABLE table_name_46 (phone VARCHAR, address VARCHAR) | SELECT phone FROM table_name_46 WHERE address = "53 dayton road" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
6399,
584,
4280,
28027,
6,
1115,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
951,
381,
13,
8,
2478,
1069,
44,
12210,
878,
21220,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
951,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1115,
3274,
96,
4867,
239,
17,
106,
1373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose year of birth is less than 2200 and lab test name is homocysteine? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2200" AND lab.label = "Homocysteine" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how long has neha been acting ? | CREATE TABLE table_203_157 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
) | SELECT MAX("year") - MIN("year") FROM table_203_157 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
27452,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
24925,
121,
1499,
6,
96,
7977,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
1201,
8512,
3,
18,
3,
17684,
599,
121,
1201,
8512,
21680,
953,
834,
23330,
834,
27452,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of the match on clay with score of 6-3 2-6 6-4? | CREATE TABLE table_name_15 (date VARCHAR, surface VARCHAR, score VARCHAR) | SELECT date FROM table_name_15 WHERE surface = "clay" AND score = "6-3 2-6 6-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5522,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
1588,
30,
1436... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
2604,
3274,
96,
24262,
204,
5783,
3,
25618,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin? | CREATE TABLE table_name_90 (year INTEGER, west VARCHAR, berlin VARCHAR) | SELECT MIN(year) FROM table_name_90 WHERE west = "borussia dortmund" AND berlin = "bfc viktoria 1889" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1201,
3,
21342,
17966,
6,
4653,
584,
4280,
28027,
6,
3,
27995,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
3005,
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,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
4653,
3274,
96,
115,
32,
26165,
5048,
51,
1106,
121,
3430,
3,
27995,
3274,
96,
115,
89,
75,
3,
21346,
3600,
9,
507,
3914,
121,
1,
-100,
... |
Who were the batsmen paired for wicket 7? | CREATE TABLE table_name_83 (batsmen VARCHAR, wicket VARCHAR) | SELECT batsmen FROM table_name_83 WHERE wicket = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
3697,
7,
904,
584,
4280,
28027,
6,
29719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
3795,
7,
904,
3,
13804,
21,
29719,
489,
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,
3795,
7,
904,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
29719,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the average age for male and female students. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
) | SELECT AVG(age), sex FROM student GROUP BY sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
545,
201,
3,
7,
994,
21680,
1236,
350,
4630,
6880,
272,
476,
3,
7,
994,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For how many years did Detroit have a passenger fare of $307.29? | CREATE TABLE table_9691 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
) | SELECT SUM("Year") FROM table_9691 WHERE "Detroit (DTW)" = '$307.29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4729,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
3247,
53,
41,
12303,
61,
121,
1499,
6,
96,
308,
15252,
155,
41,
12111,
518,
61,
121,
1499,
6,
96,
4744,
727,
13836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
4314,
4729,
549,
17444,
427,
96,
308,
15252,
155,
41,
12111,
518,
61,
121,
3274,
3,
31,
3229,
519,
14681,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda? | CREATE TABLE table_name_51 (
recnet VARCHAR,
class VARCHAR,
city_of_license VARCHAR
) | SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5026,
1582,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5026,
1582,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
853,
3274,
96,
115,
121,
3430,
690,
834,
858,
834,
28062,
3274,
96,
3964,
63,
29,
18,
29,
127,
232,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many times was the high rebounds by marcus camby (18)? | CREATE TABLE table_27734769_8 (
date VARCHAR,
high_rebounds VARCHAR
) | SELECT COUNT(date) FROM table_27734769_8 WHERE high_rebounds = "Marcus Camby (18)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
41,
833,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
8,
306,
3,
23768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
549,
17444,
427,
306,
834,
23768,
3274,
96,
7286,
1071,
7,
5184,
969,
9323,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the hometown of Plutonic? | CREATE TABLE table_29575 (
"Name/Name of Act" text,
"Age(s)" text,
"Genre" text,
"Act" text,
"Hometown" text,
"Qtr. Final (Week)" real,
"Semi Final (Week)" text,
"Position Reached" text
) | SELECT "Hometown" FROM table_29575 WHERE "Name/Name of Act" = 'PLUtonic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
3072,
41,
96,
23954,
87,
23954,
13,
1983,
121,
1499,
6,
96,
188,
397,
599,
7,
61,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
23312,
121,
1499,
6,
96,
190... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
3540,
121,
21680,
953,
834,
357,
3301,
3072,
549,
17444,
427,
96,
23954,
87,
23954,
13,
1983,
121,
3274,
3,
31,
345,
9138,
17,
4554,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
journal articles by lorenzo bruzzone | CREATE TABLE field (
fieldid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperda... | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'lorenzo bruzzone' AND paper.journalid >= 0 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1057,
41,
1057,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
17953,
41,
17953,
23,
26,
16,
17,
6,
17953,
4350,
3,
4331,
4059,
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,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
322,
15,
20547,
3,
9052,
172,
9431,
31,
3430,
1040,
5,
25340,
23,
26,
2490,
2423,
... |
Show the number of each allergie type in a bar chart, and display by the X in desc. | CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
6838,
49,
122,
63,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
6838,
49,
122,
63,
25160,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
432,
49,
122,
63,
25160,
... |
Show the average age for male and female students Visualize by bar chart, and could you sort total number in descending order? | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Whose Visitor has a Record of 10 11 5? | CREATE TABLE table_name_82 (
visitor VARCHAR,
record VARCHAR
) | SELECT visitor FROM table_name_82 WHERE record = "10–11–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
7,
15,
4957,
127,
65,
3,
9,
11392,
13,
335,
850,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1368,
3274,
96,
1714,
104,
2596,
104,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What episode number in the series had 2.77 million U.S. viewers? | CREATE TABLE table_24319661_5 (no_in_series INTEGER, us_viewers__million_ VARCHAR) | SELECT MAX(no_in_series) FROM table_24319661_5 WHERE us_viewers__million_ = "2.77" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
26937,
4241,
834,
755,
41,
29,
32,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
27730,
26937,
4241,
834,
755,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
4416,
4013,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Name the birth date for taavi sadam | CREATE TABLE table_25058562_2 (
birth_date VARCHAR,
player VARCHAR
) | SELECT birth_date FROM table_25058562_2 WHERE player = "Taavi Sadam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3449,
4834,
357,
834,
357,
41,
3879,
834,
5522,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3879,
833,
21,
3,
17,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3879,
834,
5522,
21680,
953,
834,
11434,
3449,
4834,
357,
834,
357,
549,
17444,
427,
1959,
3274,
96,
382,
9,
2960,
18875,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the lowest grid with and entrant of fred saunders? | CREATE TABLE table_name_47 (
grid INTEGER,
entrant VARCHAR
) | SELECT MIN(grid) FROM table_name_47 WHERE entrant = "fred saunders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
8634,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
8634,
28,
11,
3,
295,
3569,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3,
295,
3569,
3274,
96,
89,
1271,
3,
7,
9,
7248,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the rank that has a total of less than 1? | CREATE TABLE table_name_19 (rank INTEGER, total INTEGER) | SELECT SUM(rank) FROM table_name_19 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
6254,
3,
21342,
17966,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
11003,
24,
65,
3,
9,
792,
13,
705,
145,
209,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average account balance of customers with credit score below 50 for the different account types? | CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
s... | SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
2289,
834,
4309,
3,
4331,
4059,
17867,
6,
2289,
834,
6137,
3,
4331,
4059,
599,
1808,
201,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
6421,
834,
4309,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6004,
834,
6137,
6,
71,
17217,
599,
6004,
834,
3849,
61,
21680,
884,
549,
17444,
427,
998,
834,
7,
9022,
3,
2,
943,
350,
4630,
6880,
272,
476,
3,
6004,
834,
6137,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the listed attendance when north melbourne was the home team? | CREATE TABLE table_name_71 (
crowd VARCHAR,
home_team VARCHAR
) | SELECT crowd FROM table_name_71 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
4374,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2616,
11364,
116,
3457,
3,
2341,
26255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4374,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the most members Europe had when Australia had 94615? | CREATE TABLE table_1914090_2 (
europe INTEGER,
australia VARCHAR
) | SELECT MAX(europe) FROM table_1914090_2 WHERE australia = 94615 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
22012,
2394,
834,
357,
41,
3,
28188,
3,
21342,
17966,
6,
23407,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
724,
1740,
141,
116,
2051,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
28188,
61,
21680,
953,
834,
2294,
22012,
2394,
834,
357,
549,
17444,
427,
23407,
3274,
668,
4448,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the smallest track written by dennis linde that's 2:50 minutes long | CREATE TABLE table_name_37 (
track INTEGER,
writer_s_ VARCHAR,
time VARCHAR
) | SELECT MIN(track) FROM table_name_37 WHERE writer_s_ = "dennis linde" AND time = "2:50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1463,
3,
21342,
17966,
6,
4346,
834,
7,
834,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
17924... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
11991,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
537,
29,
159,
3,
9230,
15,
121,
3430,
97,
3274,
96,
357,
10,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who had the fastest lap where Joan Lascorz was the winner? | CREATE TABLE table_35989 (
"Date" text,
"Round" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_35989 WHERE "Race Winner" = 'joan lascorz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3390,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
519,
3390,
3914,
549,
17444,
427,
96,
448,
3302,
18125,
121,
3274,
3,
31,
1927,
152,
50,
7,
5715,
172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 720 is the t c (°c) what is the h ci (ka/m)? | CREATE TABLE table_2282444_1 (h_ci__ka_m_ VARCHAR, t_c__°c_ VARCHAR) | SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE t_c__°c_ = "720" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2266,
3628,
834,
536,
41,
107,
834,
75,
23,
834,
834,
1258,
834,
51,
834,
584,
4280,
28027,
6,
3,
17,
834,
75,
834,
834,
1956,
75,
834,
584,
4280,
28027,
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,
107,
834,
75,
23,
834,
834,
1258,
834,
51,
834,
21680,
953,
834,
357,
2577,
2266,
3628,
834,
536,
549,
17444,
427,
3,
17,
834,
75,
834,
834,
1956,
75,
834,
3274,
96,
18517,
121,
1,
-100,
-100,
-100,
-100,
-10... |
which school has 14 large championships | CREATE TABLE table_19136 (
"School" text,
"Mascot" text,
"Conference" text,
"National Titles" real,
"Founded" real
) | SELECT "School" FROM table_19136 WHERE "National Titles" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
23459,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
4302,
11788,
121,
1499,
6,
96,
24732,
11029,
7,
121,
490,
6,
96,
20100,
121,
490,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
2294,
23459,
549,
17444,
427,
96,
24732,
11029,
7,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Place, when Score is less than 70? | CREATE TABLE table_76888 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Place" FROM table_76888 WHERE "Score" < '70' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
10927,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
3959,
10927,
549,
17444,
427,
96,
134,
9022,
121,
3,
2,
3,
31,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many figures are given for McCain's % in Davidson county? | CREATE TABLE table_20799905_1 (
mccain_percentage VARCHAR,
county VARCHAR
) | SELECT COUNT(mccain_percentage) FROM table_20799905_1 WHERE county = "DAVIDSON" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
19446,
3076,
834,
536,
41,
3,
51,
12464,
77,
834,
883,
3728,
545,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
51,
12464,
77,
834,
883,
3728,
545,
61,
21680,
953,
834,
26426,
19446,
3076,
834,
536,
549,
17444,
427,
5435,
3274,
96,
308,
23412,
308,
10466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Team has Losses larger than 5, and a Position of 12? | CREATE TABLE table_name_53 (
team VARCHAR,
losses VARCHAR,
position VARCHAR
) | SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
372,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
3144,
2260,
2186,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
8467,
2490,
305,
3430,
1102,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.