NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which country is Howard Clark from? | CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_18 WHERE player = "howard clark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
13816,
8265,
45,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1959,
3274,
96,
4067,
986,
6860,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return the number of music festivals of each category by a pie chart. | CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
) | SELECT Category, COUNT(*) FROM music_festival GROUP BY Category | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
723,
834,
89,
24742,
41,
4699,
16,
17,
6,
3057,
834,
371,
24742,
1499,
6,
7678,
834,
858,
834,
2110,
15,
21208,
1499,
6,
17459,
1499,
6,
14816,
16,
17,
6,
3,
20119,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17459,
6,
2847,
17161,
599,
1935,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
17459,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the track that has the catalogue of apbo 0280 | CREATE TABLE table_name_34 (
track VARCHAR,
catalogue VARCHAR
) | SELECT track FROM table_name_34 WHERE catalogue = "apbo 0280" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1463,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1463,
24,
65,
8,
14978,
13,
3,
9,
102,
115,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1463,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
14978,
3274,
96,
9,
102,
115,
32,
11270,
2079,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the name for company d | CREATE TABLE table_25794010_1 (
name VARCHAR,
company VARCHAR
) | SELECT name FROM table_25794010_1 WHERE company = "company D" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4440,
2445,
1714,
834,
536,
41,
564,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
564,
21,
349,
3,
26,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
1828,
4440,
2445,
1714,
834,
536,
549,
17444,
427,
349,
3274,
96,
29179,
309,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Lok Sabha are in the one with 216 constituents? | CREATE TABLE table_29785324_5 (lok_sabha VARCHAR, constituency_no VARCHAR) | SELECT lok_sabha FROM table_29785324_5 WHERE constituency_no = 216 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
21441,
4867,
2266,
834,
755,
41,
40,
1825,
834,
7,
9,
115,
1024,
584,
4280,
28027,
6,
6439,
4392,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
1825,
834,
7,
9,
115,
1024,
21680,
953,
834,
357,
21441,
4867,
2266,
834,
755,
549,
17444,
427,
6439,
4392,
834,
29,
32,
3274,
3,
27184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Attendance is 3,416? | CREATE TABLE table_name_29 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_29 WHERE attendance = "3,416" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
22497,
663,
19,
6180,
591,
2938,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
11364,
3274,
96,
6355,
591,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHICH 2/3 (P) has a Verb of kh la? | CREATE TABLE table_9018 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
) | SELECT "2/3 (P)" FROM table_9018 WHERE "Verb" = 'khêla' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
2606,
41,
96,
5000,
115,
121,
1499,
6,
96,
357,
41,
22502,
61,
121,
1499,
6,
96,
357,
41,
371,
61,
121,
1499,
6,
96,
519,
41,
371,
61,
121,
1499,
6,
96,
357,
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,
357,
14207,
41,
345,
61,
121,
21680,
953,
834,
2394,
2606,
549,
17444,
427,
96,
5000,
115,
121,
3274,
3,
31,
157,
107,
8202,
521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver? | CREATE TABLE table_name_71 (
total INTEGER,
silver VARCHAR,
bronze VARCHAR,
rank VARCHAR
) | SELECT MIN(total) FROM table_name_71 WHERE bronze = 1 AND rank = "8" AND silver > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
792,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
13467,
3274,
209,
3430,
11003,
3274,
96,
927,
121,
3430,
4294,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much was the prize money for rwe-sporthalle, m lheim ? | CREATE TABLE table_18828487_1 (
prize_fund VARCHAR,
venue VARCHAR
) | SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4613,
4608,
4225,
834,
536,
41,
6441,
834,
7610,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
47,
8,
6441,
540,
21,
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,
6441,
834,
7610,
21680,
953,
834,
2606,
4613,
4608,
4225,
834,
536,
549,
17444,
427,
5669,
3274,
96,
448,
15713,
18,
17682,
18369,
6,
11412,
40,
3254,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the title with presentation of credentials of april 24, 1884 | CREATE TABLE table_name_23 (title VARCHAR, presentation_of_credentials VARCHAR) | SELECT title FROM table_name_23 WHERE presentation_of_credentials = "april 24, 1884" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
21869,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2233,
28,
3831,
13,
17500,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
9,
2246,
40,
14320,
507,
4608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Opponent is 'Philadelphia 76ers'? | CREATE TABLE table_10027 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Date" FROM table_10027 WHERE "Opponent" = 'philadelphia 76ers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
566,
87,
188,
87,
567,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
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,
308,
342,
121,
21680,
953,
834,
2915,
2555,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
18118,
15311,
11692,
9,
3,
3959,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Prime Minister of Antoine Wehenkel? | CREATE TABLE table_name_71 (
Prime VARCHAR,
minister VARCHAR
) | SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
5923,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
5923,
3271,
13,
3,
25742,
101,
3225,
5768,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5923,
6157,
6323,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
6323,
3274,
96,
288,
32,
630,
62,
3225,
5768,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Mac OS X has a Linux of no, and an AmigaOS of no, and an Android of unknown? | CREATE TABLE table_name_88 (mac_os_x VARCHAR, android VARCHAR, linux VARCHAR, amigaos VARCHAR) | SELECT mac_os_x FROM table_name_88 WHERE linux = "no" AND amigaos = "no" AND android = "unknown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
11101,
834,
32,
7,
834,
226,
584,
4280,
28027,
6,
17729,
584,
4280,
28027,
6,
3,
31016,
584,
4280,
28027,
6,
183,
12581,
32,
7,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11486,
834,
32,
7,
834,
226,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
31016,
3274,
96,
29,
32,
121,
3430,
183,
12581,
32,
7,
3274,
96,
29,
32,
121,
3430,
17729,
3274,
96,
202,
5661,
121,
1,
-100,
-1... |
Can you tell me the Venue that has the Position in 2005 of 8? | CREATE TABLE table_name_77 (venue VARCHAR, position_in_2005 VARCHAR) | SELECT venue FROM table_name_77 WHERE position_in_2005 = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
15098,
584,
4280,
28027,
6,
1102,
834,
77,
834,
22594,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
29940,
24,
65,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1102,
834,
77,
834,
22594,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the fastest lap at the Mexican Grand Prix? | CREATE TABLE table_16672 (
"Rd." real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_16672 WHERE "Grand Prix" = 'Mexican Grand Prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
5865,
41,
96,
448,
26,
535,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
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,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
26811,
5865,
549,
17444,
427,
96,
4744,
727,
12942,
121,
3274,
3,
31,
329,
994,
23,
1608,
2698,
12942,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Total has a Hereditary peer of , and a Lords spiritual of , and a Life peers of 2, and an Affiliation of plaid cymru? | CREATE TABLE table_5552 (
"Affiliation" text,
"Life peers" text,
"Hereditary peers" text,
"Lords spiritual" text,
"Total" real
) | SELECT COUNT("Total") FROM table_5552 WHERE "Hereditary peers" = '–' AND "Lords spiritual" = '–' AND "Life peers" = '2' AND "Affiliation" = 'plaid cymru' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28803,
357,
41,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
16427,
13359,
121,
1499,
6,
96,
12636,
11272,
1208,
13359,
121,
1499,
6,
96,
434,
127,
26,
7,
3428,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
28803,
357,
549,
17444,
427,
96,
12636,
11272,
1208,
13359,
121,
3274,
3,
31,
104,
31,
3430,
96,
434,
127,
26,
7,
3428,
121,
3274,
3,
31,
104,
31,
3430,
96... |
What years did the person coach who had more than 31 ties? | CREATE TABLE table_name_5 (
years VARCHAR,
ties INTEGER
) | SELECT years FROM table_name_5 WHERE ties > 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
203,
584,
4280,
28027,
6,
3,
3010,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
410,
8,
568,
3763,
113,
141,
72,
145,
2664,
3,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
3010,
2490,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which sponsor has Mark Hughes as manager? | CREATE TABLE table_33132 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit maker" text,
"Shirt sponsor" text
) | SELECT "Shirt sponsor" FROM table_33132 WHERE "Manager" = 'mark hughes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
23757,
41,
96,
18699,
121,
1499,
6,
96,
27272,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
439,
155,
13762,
121,
1499,
6,
96,
16671,
9037,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
16671,
9037,
121,
21680,
953,
834,
4201,
23757,
549,
17444,
427,
96,
27272,
121,
3274,
3,
31,
3920,
18233,
88,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country submitted the movie the orphanage? | CREATE TABLE table_12842068_1 (
submitting_country VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = "The Orphanage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4608,
1755,
3651,
834,
536,
41,
3,
14975,
834,
17529,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
14975,
834,
17529,
21680,
953,
834,
2122,
4608,
1755,
3651,
834,
536,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
634,
955,
8237,
545,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What is Relax-Gam's average UCI Rating? | CREATE TABLE table_name_88 (
uci_rating INTEGER,
team VARCHAR
) | SELECT AVG(uci_rating) FROM table_name_88 WHERE team = "relax-gam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
3,
6809,
834,
52,
1014,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
22877,
18,
517,
265,
31,
7,
1348,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6809,
834,
52,
1014,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
372,
3274,
96,
60,
521,
226,
18,
8758,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who wrote the episode with production code 2? | CREATE TABLE table_27990 (
"Series #" real,
"Episode title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real
) | SELECT "Written by" FROM table_27990 WHERE "Prod. code" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
26901,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
2233,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
2555,
26901,
549,
17444,
427,
96,
3174,
26,
5,
1081,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city is Gwang-Yang stadium in? | CREATE TABLE table_name_2 (city VARCHAR, stadium VARCHAR) | SELECT city FROM table_name_2 WHERE stadium = "gwang-yang stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
6726,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
19,
350,
17789,
18,
476,
1468,
14939,
16,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
14939,
3274,
96,
122,
17789,
18,
63,
1468,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2? | CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR) | SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
19489,
7,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
4505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19489,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
9204,
3,
2,
220,
3430,
57,
15,
7,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Swimming has a Total larger than 35, and a Volleyball of 1? | CREATE TABLE table_43524 (
"School" text,
"Bask" real,
"Golf" text,
"Soccer" text,
"Soft" text,
"Swimming" text,
"Tennis" real,
"Indoor track" text,
"Outdoor track" text,
"Volleyball" text,
"Total" real
) | SELECT "Swimming" FROM table_43524 WHERE "Total" > '35' AND "Volleyball" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2469,
2266,
41,
96,
29364,
121,
1499,
6,
96,
14885,
157,
121,
490,
6,
96,
6221,
40,
89,
121,
1499,
6,
96,
134,
13377,
49,
121,
1499,
6,
96,
28017,
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,
134,
210,
23,
635,
53,
121,
21680,
953,
834,
591,
2469,
2266,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
2469,
31,
3430,
96,
22803,
1306,
3184,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-... |
Name the largest ethnic group for kosan i | CREATE TABLE table_3333 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Largest ethnic group (2002)" FROM table_3333 WHERE "Settlement" = 'Kosančić' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
4201,
41,
96,
17175,
17,
3335,
121,
1499,
6,
96,
254,
63,
52,
173,
2176,
5570,
2502,
5570,
7,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
27773,
7830,
25163,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
8240,
222,
11655,
563,
3,
31444,
121,
21680,
953,
834,
4201,
4201,
549,
17444,
427,
96,
17175,
17,
3335,
121,
3274,
3,
31,
439,
32,
7,
152,
2,
23,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of events the Masters tournament, which has more than 0 top-25, has? | CREATE TABLE table_71769 (
"Tournament" text,
"Wins" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Events") FROM table_71769 WHERE "Tournament" = 'masters tournament' AND "Top-25" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
3951,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
14855,
121,
490,
6,
96,
427,
2169,
7,
121,
490,
6,
96,
15784,
17,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
427,
2169,
7,
8512,
21680,
953,
834,
940,
2517,
3951,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7429,
7,
5892,
31,
3430,
96,
22481,
14855,
121,
2490,
3,
31,
632,
31,
1,
-1... |
What unit is in Mongolia? | CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR) | SELECT unit FROM table_name_29 WHERE location = "mongolia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
15129,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1745,
19,
16,
29841,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1745,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1128,
3274,
96,
2157,
7579,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who do not work in departments with managers that have ids between 100 and 200, for commission_pct, hire_date, visualize the trend, sort X in asc order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
1744... |
What was the place for the tango dance when the points was jury of 24 (7,5,6,6)? | CREATE TABLE table_61309 (
"Team" text,
"Dance" text,
"Music" text,
"Points jury" text,
"Place" text
) | SELECT "Place" FROM table_61309 WHERE "Dance" = 'tango' AND "Points jury" = '24 (7,5,6,6)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
1458,
1298,
41,
96,
18699,
121,
1499,
6,
96,
308,
663,
121,
1499,
6,
96,
29035,
121,
1499,
6,
96,
22512,
7,
12730,
121,
1499,
6,
96,
345,
11706,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
4241,
1458,
1298,
549,
17444,
427,
96,
308,
663,
121,
3274,
3,
31,
17,
17934,
31,
3430,
96,
22512,
7,
12730,
121,
3274,
3,
31,
2266,
13649,
6,
11116,
11071,
10938,
31,
1,
-100... |
When was the home game when the New Jersey team's record became 7-23-7? | CREATE TABLE table_56971 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_56971 WHERE "Home" = 'new jersey' AND "Record" = '7-23-7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4327,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4834,
4327,
536,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
5534,
13426,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
940,
18,
2773,
6832,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What date did the episode originally air on with salvatore giunta as a guest? | CREATE TABLE table_28012 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | SELECT "Original airdate" FROM table_28012 WHERE "Guest" = 'Salvatore Giunta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
2122,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
634,
549,
2,
76,
1206,
89,
927,
52,
26,
121,
1499,
6,
96,
9105,
222,
121,
1499,
6,
96,
1570,
17,
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,
667,
3380,
10270,
799,
5522,
121,
21680,
953,
834,
17518,
2122,
549,
17444,
427,
96,
9105,
222,
121,
3274,
3,
31,
134,
138,
208,
1016,
15,
3156,
14016,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when Date is Jun 16, and when Set 4 is 25-20? | CREATE TABLE table_40498 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Score" FROM table_40498 WHERE "Date" = 'jun 16' AND "Set 4" = '25-20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
3916,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
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,
134,
9022,
121,
21680,
953,
834,
25285,
3916,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
898,
31,
3430,
96,
17175,
3,
20364,
3274,
3,
31,
1828,
7988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what country is Aberdeen? | CREATE TABLE table_13012 (
"Country" text,
"Builder" text,
"Location" text,
"Ship" text,
"Class / type" text
) | SELECT "Country" FROM table_13012 WHERE "Location" = 'aberdeen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
2122,
41,
96,
10628,
651,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
10462,
121,
1499,
6,
96,
21486,
3,
87,
686,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
21448,
2122,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
9,
1152,
221,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Lost has Games larger than 7? | CREATE TABLE table_name_54 (
lost INTEGER,
games INTEGER
) | SELECT AVG(lost) FROM table_name_54 WHERE games > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1513,
3,
21342,
17966,
6,
1031,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19576,
65,
5880,
2186,
145,
489,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1031,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds? | CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT MIN(bronze) FROM table_name_71 WHERE gold < 2 AND rank = "29" AND total > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
13711,
776,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
2045,
3,
2,
204,
3430,
11003,
3274,
96,
3166,
121,
3430,
792,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of ranks when total is less than 1 | CREATE TABLE table_name_76 (rank VARCHAR, total INTEGER) | SELECT COUNT(rank) FROM table_name_76 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
6254,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
13799,
116,
792,
19,
705,
145,
209,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which music is jive? | CREATE TABLE table_38756 (
"Couple" text,
"Score" text,
"Style" text,
"Music" text,
"Result" text
) | SELECT "Music" FROM table_38756 WHERE "Style" = 'jive' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
4834,
41,
96,
3881,
413,
109,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
30719,
121,
1499,
6,
96,
29035,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
29035,
121,
21680,
953,
834,
519,
4225,
4834,
549,
17444,
427,
96,
30719,
121,
3274,
3,
31,
354,
757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score on 3 may 2009? | CREATE TABLE table_39008 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Score" FROM table_39008 WHERE "Date" = '3 may 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
7015,
927,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
7015,
927,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
519,
164,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did South Melbourne play as the home team? | CREATE TABLE table_name_66 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_66 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
1013,
9396,
577,
38,
8,
234,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote 'Stop Being all Funky'? | CREATE TABLE table_16970 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Written by" FROM table_16970 WHERE "Title" = 'Stop Being All Funky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
2518,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27096,
2518,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
134,
2916,
5301,
432,
21867,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Network has Punjabi as the Language? | CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR) | SELECT network FROM table_name_71 WHERE language = "punjabi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1582,
1981,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3426,
65,
27864,
23,
38,
8,
10509,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1229,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1612,
3274,
96,
6225,
354,
15975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
allergy to gadolinium | CREATE TABLE table_dev_61 (
"id" int,
"pregnancy_or_lactation" bool,
"allergy_to_gadolinium" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"cardiogenic_shock" bool,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_dev_61 WHERE allergy_to_gadolinium = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
4241,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
11211,
122,
63,
834,
235,
834,
122,
9,
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,
1429,
21680,
953,
834,
9776,
834,
4241,
549,
17444,
427,
23886,
834,
235,
834,
122,
9,
26,
12057,
2552,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When did the manager take over for the manager that left on August 20, 2008? | CREATE TABLE table_name_98 (
date_of_replacement VARCHAR,
date_outgoing VARCHAR
) | SELECT date_of_replacement FROM table_name_98 WHERE date_outgoing = "august 20, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
833,
834,
858,
834,
60,
4687,
297,
584,
4280,
28027,
6,
833,
834,
670,
9545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
2743,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
60,
4687,
297,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
834,
670,
9545,
3274,
96,
402,
17198,
16047,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the queen regnant? | CREATE TABLE table_name_48 (name VARCHAR, title VARCHAR) | SELECT name FROM table_name_48 WHERE title = "queen regnant" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
4350,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
14915,
5925,
29,
288,
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,
564,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
2233,
3274,
96,
835,
35,
5925,
29,
288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Total has a Rank of 5, and a Bronze smaller than 0? | CREATE TABLE table_65990 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Total") FROM table_65990 WHERE "Rank" = '5' AND "Bronze" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
26901,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
4122,
26901,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
755,
31,
3430,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd? | CREATE TABLE table_name_51 (
record VARCHAR,
finish VARCHAR,
year VARCHAR,
manager VARCHAR
) | SELECT record FROM table_name_51 WHERE year > 1992 AND manager = "tom kotchman" AND finish = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1368,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
215,
2490,
9047,
3430,
2743,
3274,
96,
235,
51,
3,
15414,
524,
348,
121,
3430,
1992,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number for 3rd place for ducati xerox? | CREATE TABLE table_13196576_2 (
team VARCHAR
) | SELECT COUNT(3 AS rd_pl) FROM table_13196576_2 WHERE team = "Ducati Xerox" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
2294,
4122,
3959,
834,
357,
41,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
21,
220,
52,
26,
286,
21,
146,
16461,
3,
226,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
519,
6157,
3,
52,
26,
834,
102,
40,
61,
21680,
953,
834,
2368,
2294,
4122,
3959,
834,
357,
549,
17444,
427,
372,
3274,
96,
12998,
16461,
3,
4,
15,
12907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What defending forces have a population of 650? | CREATE TABLE table_name_22 (
defending_forces VARCHAR,
population VARCHAR
) | SELECT defending_forces FROM table_name_22 WHERE population = "650" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3,
20309,
834,
10880,
7,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
20309,
3859,
43,
3,
9,
2074,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
20309,
834,
10880,
7,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2074,
3274,
96,
15348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result for the contestant who was a small business owner? | CREATE TABLE table_23338 (
"Contestant" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
) | SELECT "Result" FROM table_23338 WHERE "Background" = 'Small business owner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
3747,
41,
96,
4302,
4377,
288,
121,
1499,
6,
96,
21106,
9232,
121,
1499,
6,
96,
667,
3380,
10270,
372,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
19040,
3540,
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,
20119,
121,
21680,
953,
834,
20879,
3747,
549,
17444,
427,
96,
21106,
9232,
121,
3274,
3,
31,
134,
1982,
40,
268,
2527,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When it is week 2 what is the record? | CREATE TABLE table_14941284_1 (
record VARCHAR,
week VARCHAR
) | SELECT record FROM table_14941284_1 WHERE week = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4240,
2122,
4608,
834,
536,
41,
1368,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
34,
19,
471,
204,
125,
19,
8,
1368,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2534,
4240,
2122,
4608,
834,
536,
549,
17444,
427,
471,
3274,
204,
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 year when the note is supporting and the title is rokumeikan? | CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR) | SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1201,
584,
4280,
28027,
6,
2232,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
215,
116,
8,
2232,
19,
3956... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
2232,
3274,
96,
20390,
53,
121,
3430,
2233,
3274,
96,
52,
18512,
526,
23,
3304,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the winning driver was jacques villeneuve what was the fastest lap driven? | CREATE TABLE table_name_31 (fastest_lap VARCHAR, winning_driver VARCHAR) | SELECT fastest_lap FROM table_name_31 WHERE winning_driver = "jacques villeneuve" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
3447,
2535,
47,
2662,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
1191,
75,
7771,
3,
1420,
26445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the booking status code and the corresponding number of bookings in a bar chart, and show X-axis in asc order. | 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 Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
) | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code ORDER BY booking_status_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
6137,
834,
4978,
3,
28027,
599,
1808,
201,
3,
6789,
834,
5525,
1152,
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,
5038,
834,
8547,
302,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
15970,
834,
13355,
53,
7,
350,
4630,
6880,
272,
476,
5038,
834,
8547,
302,
834,
4978,
4674,
11300,
272,
476,
5038,
834,
8547,
302,
834,
4978,
1,... |
Incumbent Tim Holden belonged to what party? | CREATE TABLE table_1341453_40 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341453_40 WHERE incumbent = "Tim Holden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
4867,
834,
2445,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1542,
5937,
295,
4485,
8470,
35,
36,
23629,
12,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2534,
4867,
834,
2445,
549,
17444,
427,
28406,
3274,
96,
382,
603,
8470,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
subjects with evidence of clinically significant and active pulmonary, gastrointestinal, renal, hepatic, endocrine or cardiovascular system disease ( subjects with controlled hypertension, right bundle branch block [complete or partial] and pacemakers may be included in the study ) . subjects with thyroid disease may also be included in the study, provided they are euthyroid on treatment. subjects with controlled diabetes may also be included | CREATE TABLE table_train_131 (
"id" int,
"thyroid_disease" bool,
"pulmonary_disease" bool,
"right_bundle_branch_block" bool,
"allergy_to_piperidine_derivatives" bool,
"obstructive_pulmonary_disease" bool,
"inflammatory_bowel_disease" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"cardiovascular_disease" bool,
"duodenal_ulcers" bool,
"lactose_intolerance" bool,
"allergy_to_cholinesterase_inhibitors" bool,
"pacemakers" bool,
"diabetes" bool,
"gastrointestinal_disease" bool,
"asthma" bool,
"absorption" bool,
"endocrine_disease" bool,
"euthyroid" bool,
"metabolism" bool,
"distribution" bool,
"hypertension" bool,
"gastric" bool,
"NOUSE" float
) | SELECT * FROM table_train_131 WHERE pulmonary_disease = 1 OR gastrointestinal_disease = 1 OR renal_disease = 1 OR hepatic_disease = 1 OR endocrine_disease = 1 OR cardiovascular_disease = 1 OR (hypertension = 1 OR right_bundle_branch_block = 1 OR pacemakers = 1) OR (thyroid_disease = 1 AND euthyroid = 1) OR diabetes = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
22048,
41,
96,
23,
26,
121,
16,
17,
6,
96,
17,
31878,
834,
26,
159,
14608,
121,
3,
12840,
40,
6,
96,
26836,
834,
26,
159,
14608,
121,
3,
12840,
40,
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,
1429,
21680,
953,
834,
9719,
834,
22048,
549,
17444,
427,
3,
26836,
834,
26,
159,
14608,
3274,
209,
4674,
3,
30282,
834,
26,
159,
14608,
3274,
209,
4674,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
3,
88,
7768,
75,... |
WHAT IS THE HIGH ASSISTS ON NOVEMBER 24? | CREATE TABLE table_50617 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_50617 WHERE "Date" = 'november 24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
948,
2517,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
13041,
121,
21680,
953,
834,
1752,
948,
2517,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
997,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many values of goal average 1 occur when the value of goals against is 92? | CREATE TABLE table_17359181_1 (goal_average_1 VARCHAR, goals_against VARCHAR) | SELECT COUNT(goal_average_1) FROM table_17359181_1 WHERE goals_against = 92 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
4729,
4959,
834,
536,
41,
839,
138,
834,
28951,
834,
536,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
839,
138,
834,
28951,
834,
6982,
21680,
953,
834,
2517,
2469,
4729,
4959,
834,
536,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3274,
3,
4508,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets? | CREATE TABLE table_70873 (
"Year" real,
"Stage" real,
"Category" real,
"Start" text,
"Finish" text,
"Leader at the summit" text
) | SELECT "Leader at the summit" FROM table_70873 WHERE "Stage" > '14' AND "Category" = '1' AND "Start" = 'saint-girons' AND "Finish" = 'cauterets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4225,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
6505,
121,
490,
6,
96,
18610,
6066,
651,
121,
490,
6,
96,
7681,
17,
121,
1499,
6,
96,
371,
77,
1273,
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,
2796,
9,
588,
44,
8,
13385,
121,
21680,
953,
834,
2518,
4225,
519,
549,
17444,
427,
96,
134,
6505,
121,
2490,
3,
31,
2534,
31,
3430,
96,
18610,
6066,
651,
121,
3274,
3,
31,
536,
31,
3430,
96,
7681,
17,
121,
... |
What title has lt as the series, ben hardaway as the director, with 6612 as the production num.? | CREATE TABLE table_name_66 (title VARCHAR, production_num VARCHAR, series VARCHAR, director VARCHAR) | SELECT title FROM table_name_66 WHERE series = "lt" AND director = "ben hardaway" AND production_num = "6612" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
21869,
584,
4280,
28027,
6,
999,
834,
5525,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
2090,
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,
2233,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
939,
3274,
96,
40,
17,
121,
3430,
2090,
3274,
96,
115,
35,
614,
8006,
121,
3430,
999,
834,
5525,
3274,
96,
3539,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What county has $51,456 income per capita? | CREATE TABLE table_34010 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "County" FROM table_34010 WHERE "Per capita income" = '$51,456' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
1714,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
21129,
1714,
549,
17444,
427,
96,
12988,
23219,
2055,
121,
3274,
3,
31,
3229,
5553,
6,
2128,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where is the venue with more than 245 runs? | CREATE TABLE table_34002 (
"Rank" text,
"Runs" text,
"Player" text,
"Opponent" text,
"Venue" text,
"Season" text
) | SELECT "Venue" FROM table_34002 WHERE "Runs" = '245' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
4305,
41,
96,
22557,
121,
1499,
6,
96,
448,
202,
7,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
21129,
4305,
549,
17444,
427,
96,
448,
202,
7,
121,
3274,
3,
31,
357,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many cars used number 48? | CREATE TABLE table_15491596_1 (
engine VARCHAR,
no VARCHAR
) | SELECT COUNT(engine) FROM table_15491596_1 WHERE no = 48 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3647,
1808,
4314,
834,
536,
41,
1948,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2948,
261,
381,
4678,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20165,
61,
21680,
953,
834,
1808,
3647,
1808,
4314,
834,
536,
549,
17444,
427,
150,
3274,
4678,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the publisher for resident evil 4 | CREATE TABLE table_19253 (
"Year (Ceremony)" text,
"Video game" text,
"Publisher(s)" text,
"Platform(s) [A ]" text,
"Result" text
) | SELECT "Publisher(s)" FROM table_19253 WHERE "Video game" = 'Resident Evil 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4867,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
25838,
467,
121,
1499,
6,
96,
31009,
49,
599,
7,
61,
121,
1499,
6,
96,
10146,
2032,
599,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31009,
49,
599,
7,
61,
121,
21680,
953,
834,
19978,
4867,
549,
17444,
427,
96,
25838,
467,
121,
3274,
3,
31,
1649,
7,
4215,
26567,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in which state where John Laurance (f) as a vacator? | CREATE TABLE table_224840_3 (
state__class_ VARCHAR,
vacator VARCHAR
) | SELECT state__class_ FROM table_224840_3 WHERE vacator = "John Laurance (F)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
26311,
834,
519,
41,
538,
834,
834,
4057,
834,
584,
4280,
28027,
6,
3,
8938,
1016,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16,
84,
538,
213,
1079,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
834,
834,
4057,
834,
21680,
953,
834,
24622,
26311,
834,
519,
549,
17444,
427,
3,
8938,
1016,
3274,
96,
18300,
10591,
3772,
41,
371,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Time, when Location is "Savannah, Georgia , United States"? | CREATE TABLE table_name_63 (time VARCHAR, location VARCHAR) | SELECT time FROM table_name_63 WHERE location = "savannah, georgia , united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
715,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2900,
6,
116,
10450,
19,
96,
134,
9,
2132,
8607,
6,
5664,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1128,
3274,
96,
7,
9,
2132,
8607,
6,
873,
1677,
23,
9,
3,
6,
18279,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu? | CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR) | SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1824,
23,
1468,
14279,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3,
354,
23,
152,
14279,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
1824,
23,
1468,
14279,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
11003,
2490,
314,
3430,
3,
354,
23,
152,
14279,
3,
2,
5835,
2884,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Grid did Alain Prost drive on? | CREATE TABLE table_name_39 (
grid INTEGER,
driver VARCHAR
) | SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
8634,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
23644,
410,
901,
9,
77,
749,
7,
17,
1262,
30,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2535,
3274,
96,
138,
9,
77,
17074,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the lees team is Clare Balding and Miranda Hart, what was the score? | CREATE TABLE table_2912 (
"Episode" text,
"First broadcast" text,
"Davids team" text,
"Lees team" text,
"Scores" text
) | SELECT "Scores" FROM table_2912 WHERE "Lees team" = 'Clare Balding and Miranda Hart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2122,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
308,
9,
6961,
7,
372,
121,
1499,
6,
96,
2796,
15,
7,
372,
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,
134,
9022,
7,
121,
21680,
953,
834,
3166,
2122,
549,
17444,
427,
96,
2796,
15,
7,
372,
121,
3274,
3,
31,
254,
40,
355,
4011,
26,
53,
11,
31714,
10498,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What class has over 0 wins and 42 points? | CREATE TABLE table_38357 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT "Class" FROM table_38357 WHERE "Wins" > '0' AND "Points" = '42' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
519,
3436,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
18455,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
3747,
519,
3436,
549,
17444,
427,
96,
18455,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
4165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average age of patients whose admission type is elective and who have stayed in the hospital for 20 days? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
1755,
121,
1,
-100,
-100,
... |
Which Visa 3 has a Visa 1 of michael mcglinchey? | CREATE TABLE table_name_7 (
visa_3 VARCHAR,
visa_1 VARCHAR
) | SELECT visa_3 FROM table_name_7 WHERE visa_1 = "michael mcglinchey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
8359,
834,
519,
584,
4280,
28027,
6,
8359,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14203,
220,
65,
3,
9,
14203,
209,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8359,
834,
519,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
8359,
834,
536,
3274,
96,
51,
362,
9,
15,
40,
3,
51,
75,
4707,
29,
1033,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the man of the maatch for sheffield scimitars | CREATE TABLE table_17120964_5 (man_of_the_match VARCHAR, opponent VARCHAR) | SELECT man_of_the_match FROM table_17120964_5 WHERE opponent = "Sheffield Scimitars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
4198,
4389,
834,
755,
41,
348,
834,
858,
834,
532,
834,
19515,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
388,
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,
388,
834,
858,
834,
532,
834,
19515,
21680,
953,
834,
2517,
2122,
4198,
4389,
834,
755,
549,
17444,
427,
15264,
3274,
96,
12736,
89,
1846,
16021,
1538,
291,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many guest stars did the episode that was broadcasted 11september2012 have | CREATE TABLE table_29135051_3 (guest_s_ VARCHAR, broadcast_date VARCHAR) | SELECT COUNT(guest_s_) FROM table_29135051_3 WHERE broadcast_date = "11September2012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2368,
1752,
5553,
834,
519,
41,
15991,
17,
834,
7,
834,
584,
4280,
28027,
6,
6878,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
3886,
4811,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15991,
17,
834,
7,
834,
61,
21680,
953,
834,
3166,
2368,
1752,
5553,
834,
519,
549,
17444,
427,
6878,
834,
5522,
3274,
96,
2596,
27652,
12172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team when the venue was Junction Oval? | CREATE TABLE table_52626 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_52626 WHERE "Venue" = 'junction oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2688,
2688,
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,
121,
21680,
953,
834,
755,
2688,
2688,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
6959,
4985,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is chris jones' location? | CREATE TABLE table_name_77 (location VARCHAR, wrestler VARCHAR) | SELECT location FROM table_name_77 WHERE wrestler = "chris jones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
14836,
584,
4280,
28027,
6,
26033,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
524,
52,
159,
3,
1927,
1496,
31,
1128,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
26033,
52,
3274,
96,
524,
52,
159,
3,
1927,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the player when the category is steals per game? | CREATE TABLE table_4070 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
) | SELECT "Player" FROM table_4070 WHERE "Category" = 'Steals per game' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2518,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
3696,
1947,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2445,
2518,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
14337,
5405,
399,
467,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85? | CREATE TABLE table_name_29 (
jianshu INTEGER,
rank VARCHAR,
qiangshu VARCHAR
) | SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
3,
354,
23,
152,
14279,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3,
1824,
23,
1468,
14279,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
354,
23,
152,
14279,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
11003,
3,
2,
204,
3430,
3,
1824,
23,
1468,
14279,
3,
2,
5835,
4433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country had the swimsuit score 9.67? | CREATE TABLE table_11884814_3 (country VARCHAR, swimsuit VARCHAR) | SELECT country FROM table_11884814_3 WHERE swimsuit = "9.67" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4060,
3707,
2534,
834,
519,
41,
17529,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
141,
8,
9728,
7628,
2604,
5835,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
2596,
4060,
3707,
2534,
834,
519,
549,
17444,
427,
9728,
7628,
3274,
96,
8797,
3708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which name had the circuit Monza? | CREATE TABLE table_name_49 (name VARCHAR, circuit VARCHAR) | SELECT name FROM table_name_49 WHERE circuit = "monza" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
4350,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
564,
141,
8,
4558,
2963,
1629,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
4558,
3274,
96,
2157,
1629,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show student ids who don't have any sports. | CREATE TABLE Sportsinfo (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR) | SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
9583,
41,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
13076,
4309,
21680,
6341,
262,
4,
30416,
3,
23143,
14196,
3,
13076,
4309,
21680,
5716,
9583,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most series number with season 3? | CREATE TABLE table_275 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT MAX("Series #") FROM table_275 WHERE "Season #" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
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,
12106,
7,
1713,
8512,
21680,
953,
834,
25988,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many goals against did Clitheroe have when the loss was larger than 2? | CREATE TABLE table_12286 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
) | SELECT COUNT("Goals Against") FROM table_12286 WHERE "Team" = 'clitheroe' AND "Lost" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
3840,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6221,
5405,
3,
20749,
8512,
21680,
953,
834,
20889,
3840,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
75,
40,
9732,
32,
15,
31,
3430,
96,
434,
3481,
121,
2490,
3,
31,
357,
31,
1,
-100,
-... |
What pick number was the Boston Bruins selection for defence? | CREATE TABLE table_30868 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Pick #" FROM table_30868 WHERE "Position" = 'Defence' AND "NHL team" = 'Boston Bruins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
927,
3651,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3142,
1713,
121,
21680,
953,
834,
1458,
927,
3651,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
16196,
1433,
31,
3430,
96,
15743,
434,
372,
121,
3274,
3,
31,
279,
32,
4411,
272,
23162,
31,
1... |
What is the real name of the Pick # that is greater than 9? | CREATE TABLE table_name_67 (employee__real_name_ VARCHAR, pick__number INTEGER) | SELECT employee__real_name_ FROM table_name_67 WHERE pick__number > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15,
51,
7379,
63,
15,
15,
834,
834,
6644,
834,
4350,
834,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3490,
834,
834,
6644,
834,
4350,
834,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities? | CREATE TABLE table_name_98 (
pocona_municipality VARCHAR,
totora_municipality VARCHAR,
pojo_municipality VARCHAR
) | SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1977,
1018,
9,
834,
11760,
3389,
10355,
584,
4280,
28027,
6,
12,
17,
127,
9,
834,
11760,
3389,
10355,
584,
4280,
28027,
6,
1977,
1927,
834,
11760,
3389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10496,
106,
9,
834,
11760,
3389,
10355,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
12,
17,
127,
9,
834,
11760,
3389,
10355,
3274,
9455,
3430,
1977,
1927,
834,
11760,
3389,
10355,
2490,
3,... |
What is the total number of bronze when gold is less than 1 and silver is more than 1? | CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT SUM(bronze) FROM table_name_53 WHERE gold < 1 AND silver > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2045,
3,
2,
209,
3430,
4294,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the traffic direction of 70th street? | CREATE TABLE table_name_88 (
traffic_direction VARCHAR,
street VARCHAR
) | SELECT traffic_direction FROM table_name_88 WHERE street = "70th street" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2117,
834,
10258,
4985,
584,
4280,
28027,
6,
2815,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2117,
2212,
13,
2861,
189,
2815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2117,
834,
10258,
4985,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2815,
3274,
96,
2518,
189,
2815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the the place with per capita income being $14,793 | CREATE TABLE table_1350350_2 (
place VARCHAR,
per_capita_income VARCHAR
) | SELECT place FROM table_1350350_2 WHERE per_capita_income = "$14,793" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
1752,
16975,
834,
357,
41,
286,
584,
4280,
28027,
6,
399,
834,
4010,
155,
9,
834,
15759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
8,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
2368,
1752,
16975,
834,
357,
549,
17444,
427,
399,
834,
4010,
155,
9,
834,
15759,
3274,
96,
3229,
2534,
6,
4440,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is procedure long title of procedure icd9 code 331? | 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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "331" | [
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,
4293,
5,
2961,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
447,
26,
1298,
834,
4978,
3274,
96,
519,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many budget record has a budget amount smaller than the invested amount? | CREATE TABLE budget (
school_id number,
year number,
budgeted number,
total_budget_percent_budgeted number,
invested number,
total_budget_percent_invested number,
budget_invested_percent text
)
CREATE TABLE endowment (
endowment_id number,
school_id number,
donator_name text,
amount number
)
CREATE TABLE school (
school_id text,
school_name text,
location text,
mascot text,
enrollment number,
ihsaa_class text,
ihsaa_football_class text,
county text
) | SELECT COUNT(*) FROM budget WHERE budgeted < invested | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1487,
41,
496,
834,
23,
26,
381,
6,
215,
381,
6,
1487,
15,
26,
381,
6,
792,
834,
11073,
2782,
834,
883,
3728,
834,
115,
13164,
1054,
381,
6,
11496,
381,
6,
792,
834,
11073,
2782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1487,
549,
17444,
427,
1487,
15,
26,
3,
2,
11496,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What university team is referred to as the tigers? | CREATE TABLE table_26673 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real
) | SELECT "Institution" FROM table_26673 WHERE "Nickname" = 'Tigers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3708,
519,
41,
96,
1570,
17448,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
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,
1570,
17448,
121,
21680,
953,
834,
2688,
3708,
519,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
382,
4424,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose diagnoses long title is atrioventricular block, complete and lab test category is hematology? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Atrioventricular block, complete" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths? | CREATE TABLE table_61398 (
"Military deaths" real,
"Civilian deaths (including foreigners)" real,
"Total deaths" real,
"Military and/or Civilian wounded" text,
"Total casualties" text
) | SELECT COUNT("Military deaths") FROM table_61398 WHERE "Military and/or Civilian wounded" = '78' AND "Total deaths" > '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
3916,
41,
96,
329,
173,
155,
1208,
14319,
121,
490,
6,
96,
254,
11687,
9928,
14319,
41,
5751,
2959,
277,
61,
121,
490,
6,
96,
3696,
1947,
14319,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
173,
155,
1208,
14319,
8512,
21680,
953,
834,
4241,
519,
3916,
549,
17444,
427,
96,
329,
173,
155,
1208,
11,
87,
127,
7707,
23,
152,
21372,
121,
3274,
3,
31,
3940,
31,
3430,
96,
3696,
1... |
For all employees who have the letters D or S in their first name, find hire_date and the average of employee_id bin hire_date by time, and visualize them by a bar chart, and display y axis in descending order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8... |
where can i eat french food in the bay area ? | CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
) | SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'bay area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1128,
41,
2062,
834,
23,
26,
16,
17,
6,
629,
834,
5525,
1152,
16,
17,
6,
2815,
834,
4350,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
20929,
6,
1128,
6,
2062,
549,
17444,
427,
20929,
5,
18145,
3274,
3,
31,
11119,
616,
31,
3430,
2062,
5,
6726,
834,
4350,
3274,
20929,
5,
6726,
834,
4350,
343... |
Which country is Wellington located in? | CREATE TABLE table_name_48 (
country VARCHAR,
city VARCHAR
) | SELECT country FROM table_name_48 WHERE city = "wellington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
684,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
25176,
1069,
16,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
690,
3274,
96,
2091,
6029,
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 date when the opponent is real espa a? | CREATE TABLE table_name_41 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_41 WHERE opponent = "real españa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
116,
8,
15264,
19,
490,
16159,
9,
3,
9,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
15264,
3274,
96,
6644,
16159,
9,
2,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6? | CREATE TABLE table_name_90 (
location VARCHAR,
result VARCHAR,
winner VARCHAR,
year VARCHAR
) | SELECT location FROM table_name_90 WHERE winner = "baltimore colts" AND year < 1972 AND result = "14-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1128,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
4668,
3274,
96,
3849,
17,
23,
3706,
7632,
17,
7,
121,
3430,
215,
3,
2,
16583,
3430,
741,
3274,
96,
536,
20445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the film nomination in the Netherlands? | CREATE TABLE table_name_6 (film_title_used_in_nomination VARCHAR, country VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_6 WHERE country = "netherlands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
9988,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
684,
3274,
96,
29,
16764,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the relationship between card id and card number and group by card type code in a group scatter chart. | CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
) | SELECT card_id, card_number FROM Customers_Cards GROUP BY card_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6936,
26,
7,
41,
895,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
895,
834,
5525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
895,
834,
23,
26,
6,
895,
834,
5525,
1152,
21680,
16423,
834,
6936,
26,
7,
350,
4630,
6880,
272,
476,
895,
834,
6137,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.