NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%? | CREATE TABLE table_54443 (
"Party" text,
"Results 2004" text,
"CSA 5/14/09" text,
"Viavoice 5/15/09" text,
"Ifop- La Croix 5/15/09" text,
"Ipsos 5/16/09" text,
"OpinionWay 5/18/09" text,
"CSA 5/20/09" text,
"Ipsos 5/25/09" text,
"TNS-Sofres 5/26/09" text,
"OpinionWay 5/28/09"... | SELECT "CSA 5/20/09" FROM table_54443 WHERE "Ifop- La Croix 5/15/09" = '26%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3628,
519,
41,
96,
13725,
63,
121,
1499,
6,
96,
20119,
7,
4406,
121,
1499,
6,
96,
24135,
305,
87,
2534,
87,
4198,
121,
1499,
6,
96,
553,
23,
9,
23235,
305,
20376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24135,
305,
20173,
87,
4198,
121,
21680,
953,
834,
5062,
3628,
519,
549,
17444,
427,
96,
5801,
32,
102,
18,
325,
5811,
2407,
305,
20376,
87,
4198,
121,
3274,
3,
31,
357,
6370,
31,
1,
-100,
-100,
-100,
-100,
-1... |
How many contestants of whatever age are there whose hometown of Andujar? | CREATE TABLE table_26097 (
"Province" text,
"Contestant" text,
"Age" real,
"Height (in)" text,
"Height (mt)" text,
"Hometown" text
) | SELECT COUNT("Age") FROM table_26097 WHERE "Hometown" = 'Andujar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4327,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
41,
77,
61,
121,
1499,
6,
96,
3845,
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,
2847,
17161,
599,
121,
188,
397,
8512,
21680,
953,
834,
18365,
4327,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
7175,
76,
5670,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the categorization in 2009 when it was 2R in 2008 and 2011? | CREATE TABLE table_name_14 (Id VARCHAR) | SELECT 2009 FROM table_name_14 WHERE 2008 = "2r" AND 2011 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9624,
122,
127,
1707,
16,
2464,
116,
34,
47,
204,
448,
16,
2628,
11,
2722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2464,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2628,
3274,
96,
357,
52,
121,
3430,
2722,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the draw with less than 107 points by the artist Jan Johansen? | CREATE TABLE table_name_9 (draw VARCHAR, artist VARCHAR, points VARCHAR) | SELECT COUNT(draw) FROM table_name_9 WHERE artist = "jan johansen" AND points < 107 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
19489,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3314,
28,
705,
145,
3,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19489,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
2377,
3274,
96,
7066,
3,
1927,
2618,
7,
35,
121,
3430,
979,
3,
2,
3,
18057,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Tournament, when Surface is 'Hard'? | CREATE TABLE table_7950 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Tournament" FROM table_7950 WHERE "Surface" = 'hard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
1752,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
102,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4440,
1752,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
5651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what Week was the Result W 17-14? | CREATE TABLE table_34497 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_34497 WHERE "Result" = 'w 17-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
4327,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
519,
3628,
4327,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
1003,
11590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nationality of the player who played 505 games? | CREATE TABLE table_78452 (
"Rank" text,
"Games" text,
"Player" text,
"Nationality" text,
"Career Span" text
) | SELECT "Nationality" FROM table_78452 WHERE "Games" = '505' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
2128,
357,
41,
96,
22557,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
6936,
15,
49,
3,
19675,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3940,
2128,
357,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
1752,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, and show by the x-axis in asc. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the crowd size for the game at Footscray? | CREATE TABLE table_name_2 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_2 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
75,
3623,
26,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
812,
21,
8,
467,
44,
15213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the opponent on May 7? | CREATE TABLE table_56815 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Opponent" FROM table_56815 WHERE "Date" = 'may 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3651,
1808,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
755,
3651,
1808,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Return a bar chart about the distribution of ACC_Regular_Season and ACC_Percent , and I want to show in descending by the ACC_Regular_Season. | 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 ACC_Regular_Season, ACC_Percent FROM basketball_match ORDER BY ACC_Regular_Season 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,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
309,
25067,
1,
-100,
-100,
-100,
-... |
Paddy Wallace who plays the position of fly-half has how many Caps? | CREATE TABLE table_75143 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Caps" FROM table_75143 WHERE "Position" = 'fly-half' AND "Player" = 'paddy wallace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
25133,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
1499,
6,
96,
19566,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19566,
7,
121,
21680,
953,
834,
3072,
25133,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
89,
120,
18,
17114,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
102,
9,
8155,
1481,
3302,
31,
1,
-100,
-... |
what is the number of patients whose gender is f and diagnoses short title is gram-neg septicemia nec? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Gram-neg septicemia NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What average played has an against less than 15? | CREATE TABLE table_name_40 (
played INTEGER,
against INTEGER
) | SELECT AVG(played) FROM table_name_40 WHERE against < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1944,
3,
21342,
17966,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1348,
1944,
65,
46,
581,
705,
145,
627,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
581,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Bar chart x axis venue y axis how many venue | CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affirmative_Win bool
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party text,
Age int
)
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
... | SELECT Venue, COUNT(Venue) FROM debate GROUP BY Venue | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5054,
834,
16588,
41,
9794,
342,
834,
4309,
16,
17,
6,
71,
89,
7001,
1528,
16,
17,
6,
17141,
1528,
16,
17,
6,
156,
834,
188,
89,
7001,
1528,
834,
18455,
3,
12840,
40,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29940,
6,
2847,
17161,
599,
553,
35,
76,
15,
61,
21680,
5054,
350,
4630,
6880,
272,
476,
29940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which acquisition via has a position of forward and is on the state school or club? | CREATE TABLE table_name_79 (
acquisition_via VARCHAR,
position VARCHAR,
school_club_team VARCHAR
) | SELECT acquisition_via FROM table_name_79 WHERE position = "forward" AND school_club_team = "state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
6566,
834,
5907,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6566,
834,
5907,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1102,
3274,
96,
26338,
121,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
5540,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Record has the Res of win with the Event of extreme fighting 1? | CREATE TABLE table_78114 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_78114 WHERE "Res." = 'win' AND "Event" = 'extreme fighting 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
18959,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3940,
18959,
549,
17444,
427,
96,
1649,
7,
535,
3274,
3,
31,
3757,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
30650,
15,
6237,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many injured players not suffering from injury of 'Knee problem' in each match? Show me a bar chart grouping by number of matches, and rank by the y axis from low to high. | CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE sta... | SELECT Number_of_matches, COUNT(Number_of_matches) FROM injury_accident WHERE Injury <> 'Knee problem' GROUP BY Number_of_matches ORDER BY COUNT(Number_of_matches) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2871,
834,
6004,
4215,
41,
467,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
12387,
1499,
6,
28905,
1499,
6,
7720,
834,
858,
834,
19515,
15,
7,
1499,
6,
9149,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7720,
834,
858,
834,
19515,
15,
7,
6,
2847,
17161,
599,
567,
5937,
49,
834,
858,
834,
19515,
15,
7,
61,
21680,
2871,
834,
6004,
4215,
549,
17444,
427,
28905,
3,
2,
3155,
3,
31,
439,
29,
15,
15,
682,
31,
350,
4... |
what is the number of passengers when the capacity is 81.2%? | CREATE TABLE table_name_88 (
total_passengers INTEGER,
capacity_in_use VARCHAR
) | SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = "81.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
792,
834,
3968,
4606,
277,
3,
21342,
17966,
6,
2614,
834,
77,
834,
1074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
381,
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,
180,
6122,
599,
235,
1947,
834,
3968,
4606,
277,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2614,
834,
77,
834,
1074,
3274,
96,
4959,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the notes recorded for the model HIS HD4850 (512MB)? | CREATE TABLE table_22859 (
"Model" text,
"Year" text,
"Code name" text,
"Fab ( nm )" real,
"Bus interface" text,
"Transistor count (Millions)" real,
"Memory max ( MiB )" text,
"Core ( MHz )" real,
"Memory ( MHz )" text,
"Type" text,
"Bus Width ( Bit )" real,
"DirectX" tex... | SELECT "Notes" FROM table_22859 WHERE "Model" = 'HIS HD4850 (512MB)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3390,
41,
96,
24663,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
22737,
564,
121,
1499,
6,
96,
17477,
41,
3,
29,
51,
3,
61,
121,
490,
6,
96,
7793,
7,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10358,
15,
7,
121,
21680,
953,
834,
357,
2577,
3390,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
7094,
134,
3726,
3707,
1752,
41,
24163,
4633,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
severe hypertension ( systolic bp > 200 mm hg or diastolic bp > 110 mm hg ) not controlled on antihypertensive therapy | CREATE TABLE table_test_14 (
"id" int,
"bleeding" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"haemoglobin" float,
"severe_hypertension" bool,
"platelets" int,
"neutrophil_count" int,
"renal_disease" bool,
"severe_thrombocytopenia" bool,
"fa... | SELECT * FROM table_test_14 WHERE severe_hypertension = 1 OR (systolic_blood_pressure_sbp > 200 OR diastolic_blood_pressure_dbp > 110) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2534,
41,
96,
23,
26,
121,
16,
17,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
20322,
9,
834,
9,
127,
1225,
834,
3184,
32,
106,
834,
4987,
1167,
834,
23,
9,
115,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2534,
549,
17444,
427,
5274,
834,
13397,
49,
13177,
3274,
209,
4674,
41,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
2382,
4674,
1227,
9,
7,
235,
2176,
83... |
What is the status of the building for 2014 with 33 floors? | CREATE TABLE table_77851 (
"Building" text,
"Height" text,
"Floors" real,
"Year" real,
"Status" text
) | SELECT "Status" FROM table_77851 WHERE "Year" < '2014' AND "Floors" = '33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4433,
536,
41,
96,
24752,
53,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
6,
96,
476,
2741,
121,
490,
6,
96,
134,
17,
144,
302,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
4013,
4433,
536,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
10218,
31,
3430,
96,
11251,
127,
7,
121,
3274,
3,
31,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the total position with a drawn of 0 and greater than 22 points and a greater than 14 played? | CREATE TABLE table_name_17 (position VARCHAR, played VARCHAR, drawn VARCHAR, points VARCHAR) | SELECT COUNT(position) FROM table_name_17 WHERE drawn = 0 AND points > 22 AND played > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4718,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
6796,
3274,
3,
632,
3430,
979,
2490,
1630,
3430,
1944,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many scores were there for the home team when the away team was fitzroy? | CREATE TABLE table_30940 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text
) | SELECT COUNT("Home team score") FROM table_30940 WHERE "Away team" = 'Fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4240,
632,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19040,
372,
2604,
8512,
21680,
953,
834,
1458,
4240,
632,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
371,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia? | CREATE TABLE table_45953 (
"Region (year)" text,
"No. 1" text,
"No. 2" text,
"No. 3" text,
"No. 4" text,
"No. 5" text,
"No. 6" text,
"No. 7" text,
"No. 8" text,
"No. 9" text,
"No. 10" text
) | SELECT "No. 3" FROM table_45953 WHERE "No. 7" = 'abigail' AND "No. 2" = 'olivia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3301,
519,
41,
96,
17748,
23,
106,
41,
1201,
61,
121,
1499,
6,
96,
4168,
5,
209,
121,
1499,
6,
96,
4168,
5,
204,
121,
1499,
6,
96,
4168,
5,
220,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
220,
121,
21680,
953,
834,
2128,
3301,
519,
549,
17444,
427,
96,
4168,
5,
489,
121,
3274,
3,
31,
9,
12911,
9,
173,
31,
3430,
96,
4168,
5,
204,
121,
3274,
3,
31,
4172,
5907,
31,
1,
-100,
-100,
-100... |
What is the least amount of points? | CREATE TABLE table_27539535_4 (
points INTEGER
) | SELECT MIN(points) FROM table_27539535_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3301,
2469,
834,
591,
41,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
979,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
2555,
4867,
3301,
2469,
834,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which week is the theme n/a | CREATE TABLE table_21501518_1 (
week__number VARCHAR,
theme VARCHAR
) | SELECT week__number FROM table_21501518_1 WHERE theme = "N/A" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12278,
1808,
2606,
834,
536,
41,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
19,
8,
3800,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
834,
5525,
1152,
21680,
953,
834,
357,
12278,
1808,
2606,
834,
536,
549,
17444,
427,
3800,
3274,
96,
567,
87,
188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What type of school is in swarthmore, pennsylvania? | CREATE TABLE table_254776_1 (type VARCHAR, location VARCHAR) | SELECT type FROM table_254776_1 WHERE location = "Swarthmore, Pennsylvania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4177,
3959,
834,
536,
41,
6137,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
496,
19,
16,
3,
7,
2910,
189,
3706,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
1828,
4177,
3959,
834,
536,
549,
17444,
427,
1128,
3274,
96,
134,
2910,
189,
3706,
6,
8913,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me the comparison about the amount of meter_200 over the meter_200 , and group by attribute meter_200, I want to rank by the y-axis in ascending. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY COUNT(meter_200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
3632,
6,
2847,
17161,
599,
4401,
834,
3632,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
2847,
17161,
599,
4401,
834,
3632,
61,
1,
-100,
-100,
-100,
-100,
-10... |
what's the party with incumbent being herbert covington bonner | CREATE TABLE table_1341930_33 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1341930_33 WHERE incumbent = "Herbert Covington Bonner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
1458,
834,
4201,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1088,
28,
28406,
271,
160,
7041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
23747,
2294,
1458,
834,
4201,
549,
17444,
427,
28406,
3274,
96,
12636,
7041,
638,
208,
6029,
19933,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest rank for the boys swimming team in Albuquerque? | CREATE TABLE table_name_72 (rank INTEGER, sport VARCHAR, city VARCHAR) | SELECT MAX(rank) FROM table_name_72 WHERE sport = "boys swimming" AND city = "albuquerque" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
6254,
3,
21342,
17966,
6,
2600,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11003,
21,
8,
5234,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2600,
3274,
96,
7531,
7,
5989,
121,
3430,
690,
3274,
96,
138,
3007,
835,
52,
835,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the team that has 307 attempts? | CREATE TABLE table_name_7 (
team VARCHAR,
attempts VARCHAR
) | SELECT team FROM table_name_7 WHERE attempts = "307" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
372,
584,
4280,
28027,
6,
9048,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
372,
24,
65,
604,
940,
9048,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
9048,
3274,
96,
1458,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.? | CREATE TABLE table_54107 (
"End of Fiscal Year" real,
"Gross Debt in $Billions undeflated Treas." real,
"as % of GDP Low-High" text,
"Debt Held By Public ($Billions)" real,
"as % of GDP (Treas/MW, OMB or OMB/MW)" real,
"GDP $Billions OMB/BEA est.=MW.com" text
) | SELECT COUNT("Gross Debt in $Billions undeflated Treas.") FROM table_54107 WHERE "Debt Held By Public ($Billions)" > '236.8' AND "as % of GDP Low-High" = '33.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
18057,
41,
96,
8532,
26,
13,
29169,
2929,
121,
490,
6,
96,
517,
1859,
7,
9794,
17,
16,
1514,
279,
14916,
7,
3550,
13710,
15,
26,
4691,
9,
7,
535,
490,
6,
96,
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,
2847,
17161,
599,
121,
517,
1859,
7,
9794,
17,
16,
1514,
279,
14916,
7,
3550,
13710,
15,
26,
4691,
9,
7,
5,
8512,
21680,
953,
834,
5062,
18057,
549,
17444,
427,
96,
2962,
115,
17,
26099,
938,
2575,
8785,
279,
1491... |
Who was the home team for the game played at Lake Oval? | CREATE TABLE table_name_77 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_77 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
21,
8,
467,
1944,
44,
2154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Lane has a Reaction Time smaller than 0.199, and a Country of united states, and a Name of muna lee, and a Time larger than 22.01? | CREATE TABLE table_13691 (
"Lane" real,
"Name" text,
"Country" text,
"Reaction Time" real,
"Time" real
) | SELECT MAX("Lane") FROM table_13691 WHERE "Reaction Time" < '0.199' AND "Country" = 'united states' AND "Name" = 'muna lee' AND "Time" > '22.01' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4729,
41,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
1649,
4787,
2900,
121,
490,
6,
96,
13368,
121,
490,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
23459,
4729,
549,
17444,
427,
96,
1649,
4787,
2900,
121,
3,
2,
3,
31,
16029,
3264,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
343... |
Show the name of each county along with the corresponding number of delegates from that county. | CREATE TABLE election (District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR) | SELECT T1.County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
308,
23,
20066,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
10628,
63,
834,
4350,
584,
4280,
28027,
6,
1334,
834,
23,
26,
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,
332,
5411,
10628,
63,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
23,
26,
3274,
332,
4416,
308,
23,
20066,
350,
4630,... |
How many people voted yes when the percentage of yeses was 95.17? | CREATE TABLE table_29391 (
"Province" text,
"Registered voters" real,
"People voted" real,
"Valid votes" real,
"Invalid votes" real,
"Yes" real,
"Yes (%)" text,
"No" real,
"No (%)" text,
"Turnout (%)" text
) | SELECT MAX("Yes") FROM table_29391 WHERE "Yes (%)" = '95.17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3288,
536,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
17748,
343,
3737,
10861,
121,
490,
6,
96,
24337,
3,
11060,
121,
490,
6,
96,
18392,
23,
26,
11839,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
19739,
8512,
21680,
953,
834,
3166,
3288,
536,
549,
17444,
427,
96,
19739,
41,
6210,
121,
3274,
3,
31,
3301,
5,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the premiere date for the episode whose alternate title was mi o i przeznaczenie? | CREATE TABLE table_31348 (
"Country" text,
"Alternante title" text,
"TV Network(s)" text,
"Series premiere" text,
"Series finale" text
) | SELECT "Series premiere" FROM table_31348 WHERE "Alternante title" = 'Miłość i przeznaczenie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2368,
3707,
41,
96,
10628,
651,
121,
1499,
6,
96,
188,
40,
2947,
1841,
2233,
121,
1499,
6,
96,
4562,
3426,
599,
7,
61,
121,
1499,
6,
96,
12106,
7,
13539,
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,
12106,
7,
13539,
121,
21680,
953,
834,
519,
2368,
3707,
549,
17444,
427,
96,
188,
40,
2947,
1841,
2233,
121,
3274,
3,
31,
329,
23,
2,
32,
2,
3,
23,
25030,
172,
11962,
172,
15050,
31,
1,
-100,
-100,
-100,
-10... |
Which Rally Name has a Surface of asphalt and gravel? | CREATE TABLE table_13650 (
"Round" real,
"Dates" text,
"Rally Name" text,
"Rally HQ" text,
"Support Category" text,
"Surface" text
) | SELECT "Rally Name" FROM table_13650 WHERE "Surface" = 'asphalt and gravel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
15348,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
6203,
121,
1499,
6,
96,
448,
1427,
5570,
121,
1499,
6,
96,
448,
1427,
3,
21447,
121,
1499,
6,
96,
134,
413,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
1427,
5570,
121,
21680,
953,
834,
2368,
15348,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
9,
7,
21367,
17,
11,
20422,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the names of journalists from "England" or "Wales". | CREATE TABLE journalist (Name VARCHAR, Nationality VARCHAR) | SELECT Name FROM journalist WHERE Nationality = "England" OR Nationality = "Wales" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
23954,
584,
4280,
28027,
6,
868,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3056,
13,
16085,
45,
96,
8532,
7002,
727,
121,
42,
96,
518,
4529,
1280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5570,
21680,
9994,
549,
17444,
427,
868,
485,
3274,
96,
8532,
7002,
727,
121,
4674,
868,
485,
3274,
96,
518,
4529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Notes, when Silver is "Jarkko Huovila"? | CREATE TABLE table_name_3 (notes VARCHAR, silver VARCHAR) | SELECT notes FROM table_name_3 WHERE silver = "jarkko huovila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
7977,
7,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2507,
7,
6,
116,
5642,
19,
96,
683,
6604,
157,
32,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
4294,
3274,
96,
5670,
8511,
32,
3,
107,
76,
9881,
521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played? | CREATE TABLE table_name_42 (
drawn INTEGER,
first_game VARCHAR,
played VARCHAR
) | SELECT SUM(drawn) FROM table_name_42 WHERE first_game < 2006 AND played < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
6796,
3,
21342,
17966,
6,
166,
834,
7261,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
166,
834,
7261,
3,
2,
3581,
3430,
1944,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what season did Raquel Pacheco finish in third place? | CREATE TABLE table_73757 (
"Season" real,
"Winner" text,
"Runner-Up" text,
"Third Place" text,
"Contestants" real
) | SELECT "Season" FROM table_73757 WHERE "Third Place" = 'Raquel Pacheco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
3436,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
11161,
121,
1499,
6,
96,
382,
9288,
26,
3399,
121,
1499,
6,
96,
4302,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
27931,
3436,
549,
17444,
427,
96,
382,
9288,
26,
3399,
121,
3274,
3,
31,
448,
9,
4479,
11790,
88,
509,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the rating % for channel of anhui satellite tv | CREATE TABLE table_name_73 (
rating___percentage_ VARCHAR,
channel VARCHAR
) | SELECT rating___percentage_ FROM table_name_73 WHERE channel = "anhui satellite tv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
5773,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5773,
3,
1454,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5773,
834,
834,
834,
883,
3728,
545,
834,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
4245,
3274,
96,
152,
3464,
7605,
3,
17,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the round for Villa Park? | CREATE TABLE table_name_85 (
round VARCHAR,
venue VARCHAR
) | SELECT round FROM table_name_85 WHERE venue = "villa park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1751,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1751,
21,
8850,
1061,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
5669,
3274,
96,
24887,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the State with Suwon as the city | CREATE TABLE table_41288 (
"Team" text,
"City" text,
"State" text,
"Home venue" text,
"Capacity" text
) | SELECT "State" FROM table_41288 WHERE "City" = 'suwon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4060,
41,
96,
18699,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
19040,
5669,
121,
1499,
6,
96,
19566,
9,
6726,
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,
0,
0... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
591,
2122,
4060,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
7,
76,
210,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Lead Pitch/mm has a Part Number of tsop24/28? | CREATE TABLE table_63279 (
"Part Number" text,
"Pins" text,
"Body Width/mm" real,
"Body Length/mm" real,
"Lead Pitch/mm" real
) | SELECT MAX("Lead Pitch/mm") FROM table_63279 WHERE "Part Number" = 'tsop24/28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
4440,
41,
96,
13725,
7720,
121,
1499,
6,
96,
345,
77,
7,
121,
1499,
6,
96,
279,
9666,
2142,
26,
189,
87,
635,
121,
490,
6,
96,
279,
9666,
312,
1725,
189,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
2796,
9,
26,
276,
7059,
87,
635,
8512,
21680,
953,
834,
3891,
357,
4440,
549,
17444,
427,
96,
13725,
7720,
121,
3274,
3,
31,
17,
7,
32,
102,
2266,
87,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the starting point of the route that has its terminus at Ecat/Rosa Park Transit Center? | CREATE TABLE table_name_27 (
starting_point VARCHAR,
terminus VARCHAR
) | SELECT starting_point FROM table_name_27 WHERE terminus = "ecat/rosa park transit center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1684,
834,
2700,
584,
4280,
28027,
6,
12089,
302,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1684,
500,
13,
8,
2981,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1684,
834,
2700,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
12089,
302,
3274,
96,
15,
2138,
87,
1859,
9,
2447,
11811,
1530,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the away team with a 2 tie no.? | CREATE TABLE table_name_6 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_6 WHERE tie_no = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
28,
3,
9,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the points for a team with more than 9 wins and more than 40 goals? | CREATE TABLE table_name_84 (points__pts_ INTEGER, won__pg_ VARCHAR, goals_scored__gf_ VARCHAR) | SELECT SUM(points__pts_) FROM table_name_84 WHERE won__pg_ > 9 AND goals_scored__gf_ > 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
2700,
7,
834,
834,
102,
17,
7,
834,
3,
21342,
17966,
6,
751,
834,
834,
102,
122,
834,
584,
4280,
28027,
6,
1766,
834,
3523,
1271,
834,
834,
122,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
834,
834,
102,
17,
7,
834,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
751,
834,
834,
102,
122,
834,
2490,
668,
3430,
1766,
834,
3523,
1271,
834,
834,
122,
89,
834,
2490,
1283,
... |
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS? | CREATE TABLE table_45977 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of appointment" FROM table_45977 WHERE "Team" = 'ac horsens' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3390,
4013,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
591,
3390,
4013,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
9,
75,
4952,
29,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the rank that premiered september 25, 2001 | CREATE TABLE table_24190 (
"Season" real,
"Season premiere" text,
"Season finale" text,
"TV Season" text,
"Rank" text,
"Viewers (in millions)" text
) | SELECT "Rank" FROM table_24190 WHERE "Season premiere" = 'September 25, 2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
11776,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
134,
15,
9,
739,
13539,
121,
1499,
6,
96,
134,
15,
9,
739,
13604,
121,
1499,
6,
96,
4562,
7960,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
2266,
11776,
549,
17444,
427,
96,
134,
15,
9,
739,
13539,
121,
3274,
3,
31,
27652,
14105,
4402,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What PRR class has a Wheel arrangement of a1a-a1a? | CREATE TABLE table_name_33 (
prr_class VARCHAR,
wheel_arrangement VARCHAR
) | SELECT prr_class FROM table_name_33 WHERE wheel_arrangement = "a1a-a1a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
4880,
52,
834,
4057,
584,
4280,
28027,
6,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
6045,
448,
853,
65,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4880,
52,
834,
4057,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
5094,
834,
291,
5517,
297,
3274,
96,
9,
536,
9,
18,
9,
536,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the rank for the player with events greater than 23 and prize money in excess of $823,783? | CREATE TABLE table_name_33 (rank VARCHAR, events VARCHAR, prize_money__$__ VARCHAR) | SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
6254,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
6,
6441,
834,
28442,
834,
834,
3229,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
984,
2490,
1902,
3430,
6441,
834,
28442,
834,
834,
3229,
834,
834,
2490,
505,
2773,
3,
15316,
20788,
489,
4591,
1,
-100,
-100,
-100,
-100,... |
Show me a scatter plot of major and the total number for . | CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT
)
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
... | SELECT Major, COUNT(*) FROM Student GROUP BY Major | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4957,
7,
834,
448,
222,
402,
3569,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
7127,
4309,
3,
21342,
17966,
6,
2900,
3,
25698,
6038,
15837,
6,
2526,
295,
377,
5017,
5767,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9236,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
9236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2009 for wta premier mandatory tournaments | CREATE TABLE table_70104 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2009" FROM table_70104 WHERE "Tournament" = 'wta premier mandatory tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
15442,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16660,
121,
21680,
953,
834,
2518,
15442,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
210,
17,
9,
2761,
13488,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which is located in Angola and entered service in 1988? | CREATE TABLE table_name_98 (name VARCHAR, location VARCHAR, entered_service VARCHAR) | SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
4350,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
5136,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
1069,
16,
389,
7579... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1128,
3274,
96,
17934,
521,
121,
3430,
5136,
834,
5114,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
I want the league one/second division for club of millwall | CREATE TABLE table_52617 (
"Club" text,
"Premier League" text,
"Championship/First Division" text,
"League One/Second Division" text,
"League Two/Third Division" text
) | SELECT "League One/Second Division" FROM table_52617 WHERE "Club" = 'millwall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2688,
2517,
41,
96,
254,
11158,
121,
1499,
6,
96,
10572,
51,
972,
3815,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
87,
25171,
6022,
121,
1499,
6,
96,
2796,
9,
5398,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
5398,
555,
87,
134,
15,
1018,
26,
6022,
121,
21680,
953,
834,
755,
2688,
2517,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
12415,
10279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
the spouse will have to score 27 or higher on the mmse. | CREATE TABLE table_train_116 (
"id" int,
"mini_mental_state_examination_mmse" int,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"hepatic_disease" bool,
"geriatric_depression_scale_gds" int,
"NOUSE" float
) | SELECT * FROM table_train_116 WHERE mini_mental_state_examination_mmse >= 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
20159,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
20159,
549,
17444,
427,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
2490,
2423,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of people whose age is greater than all engineers. | CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) | SELECT COUNT(*) FROM person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
1499,
6,
613,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
568,
549,
17444,
427,
1246,
2490,
41,
23143,
14196,
4800,
4,
599,
545,
61,
21680,
568,
549,
17444,
427,
613,
3274,
3,
31,
20165,
49,
31,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Cincinnati is the tournament winner how many regular season winners are there? | CREATE TABLE table_24160890_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR) | SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = "Cincinnati" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2938,
4018,
2394,
834,
519,
41,
60,
122,
4885,
834,
9476,
834,
3757,
687,
584,
4280,
28027,
6,
5892,
834,
3757,
687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
122,
4885,
834,
9476,
834,
3757,
687,
61,
21680,
953,
834,
2266,
2938,
4018,
2394,
834,
519,
549,
17444,
427,
5892,
834,
3757,
687,
3274,
96,
254,
11542,
29,
18530,
121,
1,
-100,
-100,
-100,
-1... |
Return the apartment number and the number of rooms for each apartment, and display by the bar in asc. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status... | SELECT apt_number, room_count FROM Apartments ORDER BY apt_number | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
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,
3,
6789,
834,
5525,
1152,
6,
562,
834,
13362,
21680,
15970,
7,
4674,
11300,
272,
476,
3,
6789,
834,
5525,
1152,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Grids for Chuck Daigh? | CREATE TABLE table_11779 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Grid") FROM table_11779 WHERE "Driver" = 'chuck daigh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
4440,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13313,
26,
8512,
21680,
953,
834,
20275,
4440,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
24238,
836,
9031,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the position for Discus in 2013? | CREATE TABLE table_14174 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT "Position" FROM table_14174 WHERE "Event" = 'discus' AND "Year" = '2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
27693,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
2534,
27693,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
26,
28679,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
11138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the stars of each director by a bar chart, and could you order from high to low by the x axis? | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT director, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY director DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2090,
6,
4811,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
4674,
11300,
272,
476,
2090,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the round on 21 february 2009? | CREATE TABLE table_name_54 (
round VARCHAR,
date VARCHAR
) | SELECT round FROM table_name_54 WHERE date = "21 february 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1751,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1751,
30,
1401,
29976,
76,
1208,
2464,
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,
1751,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
833,
3274,
96,
2658,
29976,
76,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Attendance with a Week that is 18? | CREATE TABLE table_7647 (
"Week" real,
"Date" text,
"Opponent" text,
"Game Site" text,
"Final Score" text,
"Record" text,
"Attendance" text
) | SELECT "Attendance" FROM table_7647 WHERE "Week" = '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4177,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23055,
3238,
121,
1499,
6,
96,
371,
10270,
17763,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3959,
4177,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What distance did the winning horse run in the Summer Doldrums. | CREATE TABLE table_name_7 (distance VARCHAR, winning_horse VARCHAR) | SELECT distance FROM table_name_7 WHERE winning_horse = "summer doldrums" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
26,
23,
8389,
584,
4280,
28027,
6,
3447,
834,
107,
127,
7,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2357,
410,
8,
3447,
4952,
661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3447,
834,
107,
127,
7,
15,
3274,
96,
23541,
52,
103,
40,
17870,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the away team that plays at Punt Road Oval? | CREATE TABLE table_11794 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_11794 WHERE "Venue" = 'punt road oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
4240,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
20275,
4240,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
6225,
17,
1373,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is days of hospital stay of subject name paul edwards? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT demographic.days_stay FROM demographic WHERE demographic.name = "Paul Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
23183,
8200,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
During which week was the earliest game with an attendance of 65,904 people? | CREATE TABLE table_name_58 (
week INTEGER,
attendance VARCHAR
) | SELECT MIN(week) FROM table_name_58 WHERE attendance = "65,904" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
471,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
84,
471,
47,
8,
3,
16454,
467,
28,
46,
11364,
13,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8041,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
11364,
3274,
96,
4122,
6,
2394,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0? | CREATE TABLE table_name_29 (gold INTEGER, silver VARCHAR, rank VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
14910,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
11003,
3274,
489,
3430,
13467,
3274,
209,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the round when the match was against sergis kyratzis? | CREATE TABLE table_9621 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Result" text
) | SELECT "Round" FROM table_9621 WHERE "Opponent" = 'sergis kyratzis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
2658,
41,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20749,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
4314,
2658,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
49,
122,
159,
3,
3781,
1795,
702,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For which Game 4 did Michael O'Connor play during Game 1? | CREATE TABLE table_58356 (
"Position" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Game 4" text
) | SELECT "Game 4" FROM table_58356 WHERE "Game 1" = 'michael o''connor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
2469,
948,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23055,
209,
121,
1499,
6,
96,
23055,
204,
121,
1499,
6,
96,
23055,
220,
121,
1499,
6,
96,
23055,
3,
20364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
3,
20364,
21680,
953,
834,
3449,
2469,
948,
549,
17444,
427,
96,
23055,
209,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
32,
31,
31,
1018,
29,
127,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the CFL Team which has a Player of chris evraire? | CREATE TABLE table_48382 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "CFL Team" FROM table_48382 WHERE "Player" = 'chris evraire' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3747,
357,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
10765,
2271,
121,
21680,
953,
834,
3707,
3747,
357,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
524,
52,
159,
3,
15,
11473,
2060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the production code of the episode that was watched by 3.81 million U.S. viewers? | CREATE TABLE table_4166 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Production code" FROM table_4166 WHERE "U.S. viewers (million)" = '3.81' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
3539,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
8291,
1081,
121,
21680,
953,
834,
4853,
3539,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
3274,
3,
31,
26195,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~? | CREATE TABLE table_64492 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
) | SELECT MIN("Episodes") FROM table_64492 WHERE "Romaji Title" = 'regatta~kimi to ita eien~' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3647,
357,
41,
96,
683,
9750,
1496,
15,
11029,
121,
1499,
6,
96,
448,
32,
16547,
23,
11029,
121,
1499,
6,
96,
4562,
5939,
121,
1499,
6,
96,
427,
102,
159,
32,
1395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
102,
159,
32,
1395,
8512,
21680,
953,
834,
4389,
3647,
357,
549,
17444,
427,
96,
448,
32,
16547,
23,
11029,
121,
3274,
3,
31,
60,
122,
14748,
2,
19754,
23,
12,
34,
9,
3,
15,
23,
35,
2,... |
what is the number of patients whose gender is m and diagnoses long title is chronic total occlusion of coronary artery? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Chronic total occlusion of coronary artery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Show the names of countries that have more than one roller coaster. | CREATE TABLE country (
Name VARCHAR,
Country_ID VARCHAR
)
CREATE TABLE roller_coaster (
Country_ID VARCHAR
) | SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
41,
5570,
584,
4280,
28027,
6,
6993,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10866,
834,
25500,
49,
41,
6993,
834,
4309,
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,
332,
5411,
23954,
21680,
684,
6157,
332,
536,
3,
15355,
3162,
10866,
834,
25500,
49,
6157,
332,
357,
9191,
332,
5411,
10628,
651,
834,
4309,
3274,
332,
4416,
10628,
651,
834,
4309,
350,
4630,
6880,
272,
476,
332,
5411... |
What is the Japanese name of the station with a number 3? | CREATE TABLE table_name_98 (japanese VARCHAR, number VARCHAR) | SELECT japanese FROM table_name_98 WHERE number = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1191,
2837,
15,
7,
15,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4318,
564,
13,
8,
2478,
28,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2662,
2837,
15,
7,
15,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
381,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me the cost of a prescription drug called lorazepam 0.5 mg tab? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'lorazepam 0.5 mg tab') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
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,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
526,
17530,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
526,
17530,
23,
26,
21680,
... |
What is Wheel Arrangement, when Quantity Made is 44? | CREATE TABLE table_name_8 (
wheel_arrangement VARCHAR,
quantity_made VARCHAR
) | SELECT wheel_arrangement FROM table_name_8 WHERE quantity_made = "44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
6,
8708,
834,
4725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
10707,
3,
31895,
6,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5094,
834,
291,
5517,
297,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
8708,
834,
4725,
3274,
96,
3628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the home team when the away team scored 14.21 (105)? | CREATE TABLE table_55437 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_55437 WHERE "Away team score" = '14.21 (105)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
591,
4118,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
3769,
591,
4118,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2534,
5,
2658,
11704,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the distinct classes that races can have? | CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
) | SELECT DISTINCT class FROM race | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
1463,
834,
23,
26,
381,
6,
564,
1499,
6,
1128,
1499,
6,
10259,
381,
6,
215,
834,
26940,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
1964,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
853,
21680,
1964,
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,
-... |
Which Weight (kg) has a Manufacturer of fujitsu, and a Model of lifebook p1610? | CREATE TABLE table_name_67 (weight__kg_ INTEGER, manufacturer VARCHAR, model VARCHAR) | SELECT AVG(weight__kg_) FROM table_name_67 WHERE manufacturer = "fujitsu" AND model = "lifebook p1610" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
9378,
834,
834,
8711,
834,
3,
21342,
17966,
6,
4818,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14230,
41,
8711... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9378,
834,
834,
8711,
834,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4818,
3274,
96,
89,
76,
13272,
7,
76,
121,
3430,
825,
3274,
96,
4597,
2567,
3,
102,
2938,
1714,
121,
1,
-100,
-100,... |
how much is the total hospital bill for patient 027-165214 during their stay on the current hospital encounter? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,... | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-165214' AND patient.hospitaldischargetime IS NULL) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
... |
What is pick 246's position? | CREATE TABLE table_59755 (
"Player" text,
"Draft" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT "Position" FROM table_59755 WHERE "Pick" = '246' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3072,
755,
41,
96,
15800,
49,
121,
1499,
6,
96,
308,
10913,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
3390,
3072,
755,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
357,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which film was released in August 2004? | CREATE TABLE table_41058 (
"Date" text,
"Title" text,
"Director" text,
"Production Cost" text,
"Singapore Gross" text
) | SELECT "Title" FROM table_41058 WHERE "Date" = 'august 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
3449,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
6409,
121,
1499,
6,
96,
134,
53,
9,
21642,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
382,
155,
109,
121,
21680,
953,
834,
24175,
3449,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 1993 value of the 1994 atp masters series? | CREATE TABLE table_name_59 (Id VARCHAR) | SELECT 1993 FROM table_name_59 WHERE 1994 = "atp masters series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8388,
701,
13,
8,
7520,
44,
102,
2325,
7,
939,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8388,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
7520,
3274,
96,
144,
102,
2325,
7,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the home team score for kardinia park? | CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_56 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
21,
3,
4031,
2644,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For the film made in 1964: (37th), what was the result? | CREATE TABLE table_name_11 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_11 WHERE year = "1964: (37th)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
814,
263,
16,
18969,
10,
41,
4118,
189,
201,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
215,
3274,
96,
2294,
4389,
10,
41,
4118,
189,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the original airdate of the episode with production number 2x03? | CREATE TABLE table_3536 (
"Series #" real,
"Season #" real,
"Episode Title" text,
"Original airdate" text,
"Prod. No." text
) | SELECT "Original airdate" FROM table_3536 WHERE "Prod. No." = '2x03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3420,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
11029,
121,
1499,
6,
96,
667,
3380,
10270,
799,
552... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
5522,
121,
21680,
953,
834,
2469,
3420,
549,
17444,
427,
96,
3174,
26,
5,
465,
535,
3274,
3,
31,
357,
226,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the total number of Yards per return that has the Player of gizmo williams, and the Games smaller than 13? | CREATE TABLE table_9294 (
"Player" text,
"Games" real,
"Returns" real,
"Yards" real,
"Long" real,
"Yards per return" real
) | SELECT COUNT("Yards per return") FROM table_9294 WHERE "Player" = 'gizmo williams' AND "Games" < '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
4240,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
1649,
7535,
7,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
434,
2444,
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,
2847,
17161,
599,
121,
476,
986,
7,
399,
1205,
8512,
21680,
953,
834,
4508,
4240,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
122,
23,
172,
51,
32,
56,
23,
265,
7,
31,
3430,
96,
23055,
7,
121,
3,
2,
3,
... |
What is the additional information in the song mera yaar bana hai dulha | CREATE TABLE table_27508 (
"Song" text,
"Singer" text,
"Co-Singers" text,
"Music Director" text,
"Lyricist" text,
"Co-Stars" text,
"Movie/Album" text,
"Year" text,
"Additional Info" text
) | SELECT "Additional Info" FROM table_27508 WHERE "Song" = 'Mera Yaar Bana Hai Dulha' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
4018,
41,
96,
134,
2444,
121,
1499,
6,
96,
134,
9963,
121,
1499,
6,
96,
3881,
18,
134,
53,
277,
121,
1499,
6,
96,
29035,
2578,
121,
1499,
6,
96,
434,
63,
2234,
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,
20773,
4749,
138,
7880,
121,
21680,
953,
834,
25988,
4018,
549,
17444,
427,
96,
134,
2444,
121,
3274,
3,
31,
329,
1498,
4701,
291,
5185,
9,
13758,
309,
83,
1024,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the first name and office of history professor who did not get a Ph.D. degree. | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE professor (
emp_num number,
d... | SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
496,
834,
4978,
1499,
6,
8943,
834,
5525,
381,
6,
20,
102,
17,
834,
9,
26,
12039,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
15,
1167,
834,
89,
4350,
6,
332,
5411,
1409,
89,
834,
19632,
21680,
5812,
6157,
332,
536,
3,
15355,
3162,
3490,
6157,
332,
357,
9191,
332,
5411,
15,
1167,
834,
5525,
3274,
332,
4416,
15,
1167,
834,
5525,
... |
which # / county is correct for year less than 1981 and chalmers as location? | CREATE TABLE table_69433 (
"School" text,
"Location" text,
"Mascot" text,
"# / County" text,
"IHSAA Class" text,
"Year Joined" real,
"Previous Conference" text
) | SELECT "# / County" FROM table_69433 WHERE "Year Joined" < '1981' AND "Location" = 'chalmers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4906,
519,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
4663,
3,
87,
1334,
121,
1499,
6,
96,
196,
495... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4663,
3,
87,
1334,
121,
21680,
953,
834,
3951,
4906,
519,
549,
17444,
427,
96,
476,
2741,
5279,
15,
26,
121,
3,
2,
3,
31,
2294,
4959,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
12654,
5567,
31,
1,
... |
Which Games is the lowest one that has a Number of 98? | CREATE TABLE table_38026 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT MIN("Games\u2191") FROM table_38026 WHERE "Number" = '98' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
2688,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23055,
7,
2,
76,
2658,
4729,
8512,
21680,
953,
834,
22671,
2688,
549,
17444,
427,
96,
567,
5937,
49,
121,
3274,
3,
31,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest score with a Result of 1 1 on 4 march 2001? | CREATE TABLE table_name_59 (
scored INTEGER,
result VARCHAR,
date VARCHAR
) | SELECT MAX(scored) FROM table_name_59 WHERE result = "1–1" AND date = "4 march 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5799,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2604,
28,
3,
9,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3523,
1271,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
741,
3274,
96,
536,
104,
536,
121,
3430,
833,
3274,
96,
591,
10556,
4402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 17 is the number in series who is the director? | CREATE TABLE table_26549 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Directed by" FROM table_26549 WHERE "No. in series" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4122,
3647,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
4122,
3647,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the writer of the episode titled 'One Hit Wonder'? | CREATE TABLE table_16272 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_16272 WHERE "Title" = 'One Hit Wonder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
357,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
2938,
2555,
357,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
10723,
11436,
16347,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.