NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is the title when the year is after 2011 and the original channel is nhk? | CREATE TABLE table_name_71 (
title VARCHAR,
year VARCHAR,
original_channel VARCHAR
) | SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
2233,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
926,
834,
19778,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2233,
116,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
215,
2490,
2722,
3430,
926,
834,
19778,
3274,
96,
29,
107,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bin all date of transactions into the YEAR interval, and sum the share count of each bin What is the trend?, and order by the X-axis from high to low please. | CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
) | SELECT date_of_transaction, SUM(share_count) FROM Transactions ORDER BY date_of_transaction DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
834,
434,
32,
17,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7107,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
7031,
4787,
6,
180,
6122,
599,
12484,
834,
13362,
61,
21680,
21469,
7,
4674,
11300,
272,
476,
833,
834,
858,
834,
7031,
4787,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of away games ? | CREATE TABLE table_204_38 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text
) | SELECT COUNT(*) FROM table_204_38 WHERE "opponent#" = 'away' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3747,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
953,
834,
26363,
834,
3747,
549,
17444,
427,
96,
32,
102,
9977,
4663,
121,
3274,
3,
31,
8006,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which opponent was played in Week 6? | CREATE TABLE table_name_26 (
opponent VARCHAR,
week VARCHAR
) | SELECT opponent FROM table_name_26 WHERE week = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
47,
1944,
16,
6551,
431,
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,
15264,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
471,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which home team played at Princes Park? | CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_67 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
1944,
44,
9027,
7,
1061,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who scored the lowest with 8 gold medals and less than 4 silver medals? | CREATE TABLE table_44260 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_44260 WHERE "Gold" = '8' AND "Silver" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
18365,
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,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3628,
18365,
549,
17444,
427,
96,
23576,
121,
3274,
3,
31,
927,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the length of the gun that has a shoulder measurement of 12.18 (.480)? | CREATE TABLE table_33691 (
"Name" text,
"Bullet" text,
"Length" text,
"Base" text,
"Shoulder" text,
"Neck" text
) | SELECT "Length" FROM table_33691 WHERE "Shoulder" = '12.18 (.480)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3420,
4729,
41,
96,
23954,
121,
1499,
6,
96,
279,
83,
1655,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
14885,
15,
121,
1499,
6,
96,
10499,
7115,
588,
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,
434,
4606,
189,
121,
21680,
953,
834,
519,
3420,
4729,
549,
17444,
427,
96,
10499,
7115,
588,
121,
3274,
3,
31,
9368,
2606,
41,
5,
20579,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average week for the game against baltimore colts with less than 41,062 in attendance? | CREATE TABLE table_36558 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_36558 WHERE "Opponent" = 'baltimore colts' AND "Attendance" < '41,062' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
3449,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
10402,
3449,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3849,
17,
23,
3706,
7632,
17,
7,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3,
2,
3,
3... |
What was the distance in 1997? | CREATE TABLE table_name_71 (
distance VARCHAR,
year VARCHAR
) | SELECT distance FROM table_name_71 WHERE year = 1997 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
2357,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2357,
16,
6622,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
215,
3274,
6622,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times is the original artist Alicia keys? | CREATE TABLE table_26250145_1 (result VARCHAR, original_artist VARCHAR) | SELECT COUNT(result) FROM table_26250145_1 WHERE original_artist = "Alicia Keys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
11434,
20987,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
19,
8,
926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
2688,
11434,
20987,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
31105,
4420,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What country has a series premier of unknown and mbc action as their TV network? | CREATE TABLE table_65833 (
"Country" text,
"TV Network(s)" text,
"Series Premiere" text,
"Weekly Schedule" text,
"Status" text
) | SELECT "Country" FROM table_65833 WHERE "Series Premiere" = 'unknown' AND "TV Network(s)" = 'mbc action' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4591,
519,
41,
96,
10628,
651,
121,
1499,
6,
96,
4562,
3426,
599,
7,
61,
121,
1499,
6,
96,
12106,
7,
6552,
15,
121,
1499,
6,
96,
518,
10266,
120,
14890,
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,
10628,
651,
121,
21680,
953,
834,
4122,
4591,
519,
549,
17444,
427,
96,
12106,
7,
6552,
15,
121,
3274,
3,
31,
202,
5661,
31,
3430,
96,
4562,
3426,
599,
7,
61,
121,
3274,
3,
31,
51,
115,
75,
1041,
31,
1,
-1... |
Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin? | CREATE TABLE table_name_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR) | SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = "varenka bakunin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
9,
5317,
834,
77,
834,
3972,
509,
210,
584,
4280,
28027,
6,
3,
834,
20615,
584,
4280,
28027,
6,
6232,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
7556,
834,
77,
834,
3972,
509,
210,
6,
3,
834,
20615,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
6232,
3274,
96,
4331,
35,
1258,
3,
19272,
202,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many were in attendance at Griffith Stadium with Philadelphia Eagles as an opponent? | CREATE TABLE table_name_78 (attendance VARCHAR, game_site VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_78 WHERE game_site = "griffith stadium" AND opponent = "philadelphia eagles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
15116,
663,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
130,
16,
1136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
467,
834,
3585,
3274,
96,
11442,
23,
189,
14939,
121,
3430,
15264,
3274,
96,
18118,
15311,
11692,
9,
3,
15,
9,
3537,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
must weigh a minimum of 110 pounds | CREATE TABLE table_train_228 (
"id" int,
"ejection_fraction_ef" int,
"hiv_infection" bool,
"heart_disease" bool,
"body_weight" float,
"body_mass_index_bmi" float,
"allergy_to_beef" bool,
"NOUSE" float
) | SELECT * FROM table_train_228 WHERE body_weight >= 110 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2577,
41,
96,
23,
26,
121,
16,
17,
6,
96,
15,
21440,
834,
22513,
834,
15,
89,
121,
16,
17,
6,
96,
107,
23,
208,
834,
77,
17856,
121,
3,
12840,
40,
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,
1429,
21680,
953,
834,
9719,
834,
357,
2577,
549,
17444,
427,
643,
834,
9378,
2490,
2423,
11190,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many michelob ultra mountains classification for darren lill | CREATE TABLE table_13223187_1 (
michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR,
drury_hotels_most_aggressive_rider_red_jersey VARCHAR
) | SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
2773,
25828,
834,
536,
41,
2278,
15,
11846,
834,
83,
1313,
834,
11231,
13676,
834,
4057,
2420,
834,
14910,
834,
3233,
1258,
834,
26,
32,
17,
834,
12488,
7,
15,
63,
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,
2847,
17161,
599,
3113,
88,
11846,
834,
83,
1313,
834,
11231,
13676,
834,
4057,
2420,
834,
14910,
834,
3233,
1258,
834,
26,
32,
17,
834,
12488,
7,
15,
63,
61,
21680,
953,
834,
23757,
2773,
25828,
834,
536,
549,
1744... |
For couple Todd and Susie, what was the vote percentage? | CREATE TABLE table_19744915_17 (
vote_percentage VARCHAR,
couple VARCHAR
) | SELECT vote_percentage FROM table_19744915_17 WHERE couple = "Todd and Susie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4581,
3647,
1808,
834,
2517,
41,
2902,
834,
883,
3728,
545,
584,
4280,
28027,
6,
1158,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
1158,
17607,
11,
192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2902,
834,
883,
3728,
545,
21680,
953,
834,
2294,
4581,
3647,
1808,
834,
2517,
549,
17444,
427,
1158,
3274,
96,
3696,
26,
26,
11,
1923,
2452,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the marowijne with an 18.8% saramacca? | CREATE TABLE table_name_2 (
marowijne VARCHAR,
saramacca VARCHAR
) | SELECT marowijne FROM table_name_2 WHERE saramacca = "18.8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
954,
3623,
28469,
15,
584,
4280,
28027,
6,
3,
7,
9,
10819,
12464,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
954,
3623,
28469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
954,
3623,
28469,
15,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3,
7,
9,
10819,
12464,
3274,
96,
2606,
5,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the Time when Set 3 was 25–14? | CREATE TABLE table_name_70 (time VARCHAR, set_3 VARCHAR) | SELECT time FROM table_name_70 WHERE set_3 = "25–14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
715,
584,
4280,
28027,
6,
356,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2900,
116,
2821,
220,
47,
944,
104,
2534,
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,
97,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
356,
834,
519,
3274,
96,
1828,
104,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10? | CREATE TABLE table_name_53 (
cuts_made VARCHAR,
events VARCHAR,
top_5 VARCHAR,
top_25 VARCHAR
) | SELECT cuts_made FROM table_name_53 WHERE top_5 < 3 AND top_25 < 6 AND events = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
8620,
834,
4725,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
6,
420,
834,
1828,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8620,
834,
4725,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
420,
834,
755,
3,
2,
220,
3430,
420,
834,
1828,
3,
2,
431,
3430,
984,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
among patients who had arteriography of other intra-abdominal arteries, how many of them had their cerebrospinal fluid (csf) tested by lab? | 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Arteriography of other intra-abdominal arteries" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6? | CREATE TABLE table_name_1 (
engine VARCHAR,
rounds VARCHAR,
driver VARCHAR,
tyres VARCHAR,
chassis VARCHAR
) | SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1948,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
3,
17,
63,
60,
7,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
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,
1948,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3,
17,
63,
60,
7,
3274,
96,
122,
121,
3430,
22836,
3274,
96,
26,
519,
3,
26,
20364,
3430,
2535,
3274,
96,
7066,
50,
635,
277,
121,
3430,
14419,
3274,
96,
2... |
What is the English name of the player from Malaysia, Kuala Lumpur? | CREATE TABLE table_70968 (
"Index" text,
"Name" text,
"Chinese Name" text,
"Country" text,
"Status" text
) | SELECT "Name" FROM table_70968 WHERE "Country" = 'malaysia, kuala lumpur' AND "Chinese Name" = '李美玲' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4314,
927,
41,
96,
26267,
226,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3541,
4477,
15,
5570,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
17,
144,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
121,
21680,
953,
834,
2518,
4314,
927,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
51,
9,
20244,
23,
9,
6,
3,
2729,
138,
9,
20956,
450,
31,
3430,
96,
3541,
4477,
15,
5570,
121,
3274,
3,
31,
2... |
What's the curb weight of the model with a wheelbase of mm (in) and height of mm (in) mm (in) (4Matic)? | CREATE TABLE table_72924 (
"Body style" text,
"Wheelbase" text,
"Length" text,
"Height" text,
"Curb weight" text
) | SELECT "Curb weight" FROM table_72924 WHERE "Wheelbase" = 'mm (in)' AND "Height" = 'mm (in) mm (in) (4Matic)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3166,
2266,
41,
96,
279,
9666,
869,
121,
1499,
6,
96,
518,
88,
15,
40,
10925,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
450,
115,
1293,
121,
21680,
953,
834,
940,
3166,
2266,
549,
17444,
427,
96,
518,
88,
15,
40,
10925,
121,
3274,
3,
31,
635,
41,
77,
61,
31,
3430,
96,
3845,
2632,
121,
3274,
3,
31,
635,
41,
77,
61,
3,
... |
What is the Gaelic name for an area less than 127 in Kintyre? | CREATE TABLE table_39005 (
"Island" text,
"Gaelic Name" text,
"Location" text,
"Area ( ha )" real,
"Population" real,
"Last inhabited" text,
"Height (m)" real
) | SELECT "Gaelic Name" FROM table_39005 WHERE "Area ( ha )" < '127' AND "Location" = 'kintyre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
7015,
755,
41,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
517,
9,
15,
2176,
5570,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
188,
864,
41,
4244,
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,
517,
9,
15,
2176,
5570,
121,
21680,
953,
834,
519,
7015,
755,
549,
17444,
427,
96,
188,
864,
41,
4244,
3,
61,
121,
3,
2,
3,
31,
22367,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
2917,
17,
63,
60,
... |
What is Distance, when Athlete is "Irving Saladino"? | CREATE TABLE table_name_57 (distance VARCHAR, athlete VARCHAR) | SELECT distance FROM table_name_57 WHERE athlete = "irving saladino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
26,
23,
8389,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
27370,
6,
116,
71,
189,
1655,
15,
19,
96,
196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
17893,
3274,
96,
23,
52,
3745,
5870,
77,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the rank when 233 shows for places and SP+FS smaller than 27? | CREATE TABLE table_name_94 (
rank VARCHAR,
places VARCHAR,
sp VARCHAR,
fs VARCHAR
) | SELECT COUNT(rank) FROM table_name_94 WHERE places = "233" AND sp + fs < 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
11003,
584,
4280,
28027,
6,
1747,
584,
4280,
28027,
6,
3,
7,
102,
584,
4280,
28027,
6,
3,
89,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1747,
3274,
96,
20879,
121,
3430,
3,
7,
102,
1768,
3,
89,
7,
3,
2,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose primary disease is sdh and procedure icd9 code is 309? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "SDH" AND procedures.icd9_code = "309" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Call sign of the Frequency 106.9 the X? | CREATE TABLE table_8648 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Call sign" FROM table_8648 WHERE "Branding" = '106.9 the x' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
3707,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1748,
1320,
121,
21680,
953,
834,
3840,
3707,
549,
17444,
427,
96,
18304,
727,
53,
121,
3274,
3,
31,
16431,
5,
1298,
8,
3,
226,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday, and order in desc by the y-axis please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
145... |
What was the resolution of the fight where andre roberts record was 9-1? | CREATE TABLE table_name_60 (res VARCHAR, record VARCHAR) | SELECT res FROM table_name_60 WHERE record = "9-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
60,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3161,
13,
8,
2870,
213,
11,
60,
3,
5840,
49,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
7,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1368,
3274,
96,
1298,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Scores by each individual judge has a Total score/week of 51/60, and a Co-contestant (Yaar vs. Pyaar) of tina sachdev? | CREATE TABLE table_name_76 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) | SELECT scores_by_each_individual_judge FROM table_name_76 WHERE total_score_week = "51/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
7,
9022,
7,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
584,
4280,
28027,
6,
792,
834,
7,
9022,
834,
8041,
584,
4280,
28027,
6,
576,
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,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
792,
834,
7,
9022,
834,
8041,
3274,
96,
5553,
87,
3328,
121,
3430,
576,
834,
1018,
4377,
288,
834,
... |
What state is 25% Democrats has a ratio of 6/2 of Republicans to Democrats? | CREATE TABLE table_name_66 (state_ranked_in_partisan_order VARCHAR, percentage_democrats VARCHAR, republican__democratic VARCHAR) | SELECT state_ranked_in_partisan_order FROM table_name_66 WHERE percentage_democrats = "25%" AND republican__democratic = "6/2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
5540,
834,
8232,
834,
77,
834,
18237,
834,
9397,
584,
4280,
28027,
6,
5294,
834,
23319,
7,
584,
4280,
28027,
6,
20237,
152,
834,
834,
23319,
447,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
834,
8232,
834,
77,
834,
18237,
834,
9397,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
5294,
834,
23319,
7,
3274,
96,
357,
2712,
121,
3430,
20237,
152,
834,
834,
23319,
447,
3274,
96,
948,
13311,
121,
1,... |
A bar chart about what is the average rating star for each reviewer?, I want to show from high to low by the y axis. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY AVG(T1.stars) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
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,
564,
6,
71,
17217,
599,
382,
5411,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
4543,
49,
6157,
332,
357,
9191,
332,
5411,
52,
4309,
3274,
332,
4416,
52,
4309,
350,
4630,
6880,
272,
476,
332,
4416,
4... |
how many patients whose admission year is less than 2108 and procedure short title is incision of aorta? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2108" AND procedures.short_title = "Incision of aorta" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which authority has a rocket launch called rehbar-5? | CREATE TABLE table_11869952_1 (
derivatives VARCHAR,
rocket_launch VARCHAR
) | SELECT COUNT(derivatives) FROM table_11869952_1 WHERE rocket_launch = "Rehbar-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3951,
3301,
357,
834,
536,
41,
21875,
7,
584,
4280,
28027,
6,
15721,
834,
27493,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5015,
65,
3,
9,
15721,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
221,
5927,
1528,
7,
61,
21680,
953,
834,
20056,
3951,
3301,
357,
834,
536,
549,
17444,
427,
15721,
834,
27493,
3274,
96,
1649,
107,
1047,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart showing the minimum room count of apartments in different type, and show by the total number from low to high. | 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 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 Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
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 Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
) | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code ORDER BY MIN(room_count) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6789,
834,
6137,
834,
4978,
6,
3,
17684,
599,
3082,
834,
13362,
61,
21680,
15970,
7,
350,
4630,
6880,
272,
476,
3,
6789,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
3,
17684,
599,
3082,
834,
13362,
61,
1,
-100... |
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio? | CREATE TABLE table_name_12 (release_date VARCHAR, company VARCHAR, writer VARCHAR) | SELECT release_date FROM table_name_12 WHERE company = "bbc audio" AND writer = "ford, phil phil ford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
6,
4346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
349,
3274,
96,
115,
115,
75,
2931,
121,
3430,
4346,
3274,
96,
2590,
6,
3,
18118,
3,
18118,
21,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the amount of US open runner-up score? | CREATE TABLE table_22858557_1 (
score_in_final VARCHAR,
championship VARCHAR,
outcome VARCHAR
) | SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = "US Open" AND outcome = "Runner-up" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4433,
4433,
3436,
834,
536,
41,
2604,
834,
77,
834,
12406,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
834,
77,
834,
12406,
61,
21680,
953,
834,
2884,
4433,
4433,
3436,
834,
536,
549,
17444,
427,
10183,
3274,
96,
3063,
2384,
121,
3430,
6138,
3274,
96,
23572,
18,
413,
121,
1,
-100,
-100,
-10... |
What date did the episode with Andy Murray as Jamie and John's guest first broadcast? | CREATE TABLE table_29141354_4 (
first_broadcast VARCHAR,
jamie_and_johns_guest VARCHAR
) | SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Andy Murray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2534,
2368,
5062,
834,
591,
41,
166,
834,
115,
8635,
5254,
584,
4280,
28027,
6,
2662,
2720,
834,
232,
834,
27341,
7,
834,
15991,
17,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
115,
8635,
5254,
21680,
953,
834,
3166,
2534,
2368,
5062,
834,
591,
549,
17444,
427,
2662,
2720,
834,
232,
834,
27341,
7,
834,
15991,
17,
3274,
96,
7175,
63,
15497,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the Top Gear budget in March 2013? | CREATE TABLE table_name_39 (
budget VARCHAR,
month_ VARCHAR,
_year VARCHAR
) | SELECT budget FROM table_name_39 WHERE month_ & _year = "march 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1487,
584,
4280,
28027,
6,
847,
834,
584,
4280,
28027,
6,
3,
834,
1201,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2224,
17138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1487,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
847,
834,
3,
184,
3,
834,
1201,
3274,
96,
51,
7064,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Singapore Cup when the S-League is 5 (14)? | CREATE TABLE table_name_92 (
singapore_cup VARCHAR,
s_league VARCHAR
) | SELECT singapore_cup FROM table_name_92 WHERE s_league = "5 (14)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
10159,
9,
21642,
834,
4658,
584,
4280,
28027,
6,
3,
7,
834,
29512,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6243,
3802,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10159,
9,
21642,
834,
4658,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
3,
7,
834,
29512,
3274,
96,
755,
4077,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which city has the cincinnati hockey website? | CREATE TABLE table_16384648_2 (location VARCHAR, team_website VARCHAR) | SELECT location FROM table_16384648_2 WHERE team_website = "Cincinnati Hockey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4448,
3707,
834,
357,
41,
14836,
584,
4280,
28027,
6,
372,
834,
8398,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
65,
8,
13935,
29,
1853... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
2938,
3747,
4448,
3707,
834,
357,
549,
17444,
427,
372,
834,
8398,
3585,
3274,
96,
254,
11542,
29,
18530,
23127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When Jim Thorpe of United States has a score of 71, what is the place? | CREATE TABLE table_name_2 (
place VARCHAR,
player VARCHAR,
score VARCHAR,
country VARCHAR
) | SELECT place FROM table_name_2 WHERE score = 71 AND country = "united states" AND player = "jim thorpe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
6006,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2604,
3274,
3,
4450,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
354,
603,
3,
189,
127,
855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the lead for the team from Saskatoon, Saskatchewan? | CREATE TABLE table_62757 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_62757 WHERE "Home" = 'saskatoon, saskatchewan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2555,
3436,
41,
96,
18699,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
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,
2796,
9,
26,
121,
21680,
953,
834,
948,
2555,
3436,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
7,
9,
10717,
235,
106,
6,
3,
7,
9,
7,
8682,
1033,
3877,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the home team that tied no 2? | CREATE TABLE table_name_2 (
home_team VARCHAR,
tie_no VARCHAR
) | SELECT home_team FROM table_name_2 WHERE tie_no = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
234,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
372,
24,
10422,
150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart for what are the names and the total prices of all products in the store? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, SUM(Price) FROM Products GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
180,
6122,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smallest numbered production code listed? | CREATE TABLE table_29583441_1 (production_code INTEGER) | SELECT MIN(production_code) FROM table_29583441_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3449,
3710,
4853,
834,
536,
41,
20762,
834,
4978,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
3,
22412,
999,
1081,
2616,
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,
3,
17684,
599,
20762,
834,
4978,
61,
21680,
953,
834,
3166,
3449,
3710,
4853,
834,
536,
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 total overall in round 1, in which Charles White was a player? | CREATE TABLE table_name_2 (overall INTEGER, player VARCHAR, round VARCHAR) | SELECT SUM(overall) FROM table_name_2 WHERE player = "charles white" AND round < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1890,
1748,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1879,
16,
1751,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1959,
3274,
96,
4059,
965,
872,
121,
3430,
1751,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the description when the reserve is Half Moon Caye? | CREATE TABLE table_name_40 (
description VARCHAR,
reserve VARCHAR
) | SELECT description FROM table_name_40 WHERE reserve = "half moon caye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
4210,
584,
4280,
28027,
6,
7866,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4210,
116,
8,
7866,
19,
15014,
9023,
1336,
63,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4210,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
7866,
3274,
96,
17114,
8114,
212,
63,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where did they play and how many attended in the game against minnesota? | CREATE TABLE table_18880 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_18880 WHERE "Team" = 'Minnesota' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2079,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
25794,
2079,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
12858,
1496,
32,
17,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is drug code and drug route of drug name neutra-phos? | 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Neutra-Phos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
26288,
1313,
18,
345,
11982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What district has Ron Paul? | CREATE TABLE table_1341395_44 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1341395_44 WHERE incumbent = "Ron Paul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2368,
3301,
834,
3628,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
65,
10297,
1838,
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,
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,
3939,
21680,
953,
834,
23747,
2368,
3301,
834,
3628,
549,
17444,
427,
28406,
3274,
96,
448,
106,
1838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients with medicare insurance were tested with uptake ratio in lab? | CREATE TABLE diagnoses (
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Medicare" AND lab.label = "Uptake Ratio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what's the date of completion where success is yes | CREATE TABLE table_12078626_1 (
date_of_completion VARCHAR,
success VARCHAR
) | SELECT date_of_completion FROM table_12078626_1 WHERE success = "Yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
41,
833,
834,
858,
834,
7699,
109,
1575,
584,
4280,
28027,
6,
1269,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
7699,
109,
1575,
21680,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
549,
17444,
427,
1269,
3274,
96,
19739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which city is ranked first on the list ? | CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
) | SELECT "city" FROM table_204_190 ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
11776,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
6726,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
5540,
121,
1499,
6,
96,
883,
3728,
545,
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,
6726,
121,
21680,
953,
834,
26363,
834,
11776,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team is sponsored by hydroxycut? | CREATE TABLE table_2503102_1 (team VARCHAR, car_sponsor_s_ VARCHAR) | SELECT team FROM table_2503102_1 WHERE car_sponsor_s_ = "HydroxyCut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
519,
14388,
834,
536,
41,
11650,
584,
4280,
28027,
6,
443,
834,
7,
5041,
7,
127,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
19,
1185... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
11434,
519,
14388,
834,
536,
549,
17444,
427,
443,
834,
7,
5041,
7,
127,
834,
7,
834,
3274,
96,
566,
63,
26,
52,
9773,
15784,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many weeks had an attendance larger than 84,816? | CREATE TABLE table_name_30 (week VARCHAR, attendance INTEGER) | SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
8041,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
141,
46,
11364,
2186,
145,
3,
4608,
6,
927,
2938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
11364,
2490,
3,
4608,
3,
15316,
20788,
505,
2938,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score on February 14, 1999? | CREATE TABLE table_name_32 (
score_in_final VARCHAR,
date VARCHAR
) | SELECT score_in_final FROM table_name_32 WHERE date = "february 14, 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
2604,
834,
77,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
2083,
11363,
5247,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
12406,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
11363,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What average Total has a Rank of 3 and a Bronze award larger than 3? | CREATE TABLE table_name_33 (
total INTEGER,
rank VARCHAR,
bronze VARCHAR
) | SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
792,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1348,
9273,
65,
3,
9,
3,
22557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11003,
3274,
96,
519,
121,
3430,
13467,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest rank of the player with less than 32 points? | CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) | SELECT MAX(rank) FROM table_name_24 WHERE points < 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
6254,
3,
21342,
17966,
6,
979,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11003,
13,
8,
1959,
28,
705,
145,
3538,
979,
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,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
979,
3,
2,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday, I want to sort in asc by the Y-axis. | 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 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613... |
For each trip, return its ending station's installation date. | CREATE TABLE station (
installation_date VARCHAR,
id VARCHAR
)
CREATE TABLE trip (
id VARCHAR,
end_station_id VARCHAR
) | SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
2545,
834,
5522,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
584,
4280,
28027,
6,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23,
26,
6,
332,
4416,
14790,
834,
5522,
21680,
1469,
6157,
332,
536,
3,
15355,
3162,
2478,
6157,
332,
357,
9191,
332,
5411,
989,
834,
6682,
834,
23,
26,
3274,
332,
4416,
23,
26,
1,
-100,
-100,
-100,
-10... |
What are the maximum and minumum grade points? | CREATE TABLE course (
cid text,
cname text,
credits number,
instructor number,
days text,
hours text,
dno number
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
) | SELECT MAX(gradepoint), MIN(gradepoint) FROM gradeconversion | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
3,
10812,
1499,
6,
3,
75,
4350,
1499,
6,
11893,
381,
6,
10617,
381,
6,
477,
1499,
6,
716,
1499,
6,
3,
26,
29,
32,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
6801,
2700,
201,
3,
17684,
599,
6801,
2700,
61,
21680,
2769,
1018,
8674,
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 African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle? | CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR) | SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = "Brown Snake Eagle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21653,
2577,
3076,
834,
357,
41,
9,
89,
2234,
152,
834,
7990,
106,
3727,
40,
584,
4280,
28027,
6,
141,
15,
26,
9,
834,
16775,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24040,
29,
834,
7990,
106,
3727,
40,
21680,
953,
834,
21653,
2577,
3076,
834,
357,
549,
17444,
427,
141,
15,
26,
9,
834,
16775,
7,
3274,
96,
279,
3623,
29,
31072,
10341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score for the game in which Manchester United was the home team? | CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_85 WHERE home_team = "manchester united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
7,
9022,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
467,
16,
84,
9145,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
234,
834,
11650,
3274,
96,
348,
13263,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Boca Raton, Florida had what joined amount? | CREATE TABLE table_1183842_1 (
joined VARCHAR,
location VARCHAR
) | SELECT joined FROM table_1183842_1 WHERE location = "Boca Raton, Florida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3747,
4165,
834,
536,
41,
3311,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
18372,
9,
6455,
106,
6,
2599,
141,
125,
3311,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3311,
21680,
953,
834,
20056,
3747,
4165,
834,
536,
549,
17444,
427,
1128,
3274,
96,
279,
32,
658,
6455,
106,
6,
2599,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Stack bar chart of school_id vs ACC_Home based on all home, rank total number from low to high order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Country when the Content was general television, and a Television service of rai 1? | CREATE TABLE table_name_87 (country VARCHAR, content VARCHAR, television_service VARCHAR) | SELECT country FROM table_name_87 WHERE content = "general television" AND television_service = "rai 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
17529,
584,
4280,
28027,
6,
738,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6993,
116,
8,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
738,
3274,
96,
27369,
4390,
121,
3430,
4390,
834,
5114,
3274,
96,
7253,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the duration for nickolas grace as the actor? | CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_36 WHERE actor = "nickolas grace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1259,
2661,
584,
4280,
28027,
6,
7556,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8659,
21,
3,
2532,
11292,
9,
7,
8140,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8659,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
7556,
3274,
96,
2532,
11292,
9,
7,
8140,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What finish time started at 32? | CREATE TABLE table_name_9 (
finish VARCHAR,
start VARCHAR
) | SELECT finish FROM table_name_9 WHERE start = "32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1992,
97,
708,
44,
3538,
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,
1992,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
456,
3274,
96,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country does Mark Hayes play for? | CREATE TABLE table_47347 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_47347 WHERE "Player" = 'mark hayes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
4177,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4177,
519,
4177,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3920,
4244,
10070,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the census ranking is 231 of 5,008, what was the population? | CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR) | SELECT population FROM table_171236_1 WHERE census_ranking = "231 of 5,008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
3420,
834,
536,
41,
9791,
7830,
584,
4280,
28027,
6,
23087,
834,
6254,
53,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
23087,
11592,
19,
204,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
21680,
953,
834,
2517,
2122,
3420,
834,
536,
549,
17444,
427,
23087,
834,
6254,
53,
3274,
96,
357,
3341,
13,
7836,
1206,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Record has a Score of w 107–102 (ot)? | CREATE TABLE table_name_3 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_3 WHERE score = "w 107–102 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
60,
7621,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
9,
17763,
13,
3,
210,
3,
18057,
104,
14388... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2604,
3274,
96,
210,
3,
18057,
104,
14388,
41,
32,
17,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which stadium can seat the most people ? | CREATE TABLE table_204_195 (
id number,
"team" text,
"home city" text,
"stadium" text,
"capacity" number,
"last season" text
) | SELECT "stadium" FROM table_204_195 ORDER BY "capacity" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
22464,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
5515,
690,
121,
1499,
6,
96,
2427,
12925,
121,
1499,
6,
96,
4010,
9,
6726,
121,
381,
6,
96,
5064,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2427,
12925,
121,
21680,
953,
834,
26363,
834,
22464,
4674,
11300,
272,
476,
96,
4010,
9,
6726,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who are all providers with destination of Liverpool? | CREATE TABLE table_3005999_1 (
provider VARCHAR,
destination VARCHAR
) | SELECT provider FROM table_3005999_1 WHERE destination = "Liverpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3390,
3264,
834,
536,
41,
3175,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
3580,
28,
3954,
13,
15131,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3175,
21680,
953,
834,
5426,
3390,
3264,
834,
536,
549,
17444,
427,
3954,
3274,
96,
24179,
52,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what city was ' Kevin Spacey ' born ? | CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE classification (
id int,
msid int,
gid int
) | SELECT birth_city FROM writer WHERE name = 'Kevin Spacey' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8211,
41,
3,
12417,
16,
17,
6,
7285,
1499,
6,
564,
1499,
6,
1157,
485,
1499,
6,
3879,
834,
6726,
1499,
6,
3879,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3879,
834,
6726,
21680,
4346,
549,
17444,
427,
564,
3274,
3,
31,
439,
15,
2494,
5844,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Finals has a 1st round of ? | CREATE TABLE table_65431 (
"Season" text,
"1st round" text,
"2nd round" text,
"3rd round" text,
"Finals" text
) | SELECT "Finals" FROM table_65431 WHERE "1st round" = '—' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
3341,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
536,
7,
17,
1751,
121,
1499,
6,
96,
357,
727,
1751,
121,
1499,
6,
96,
519,
52,
26,
1751,
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,
371,
10270,
7,
121,
21680,
953,
834,
4122,
591,
3341,
549,
17444,
427,
96,
536,
7,
17,
1751,
121,
3274,
3,
31,
318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose lab test name is red blood cells? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Red Blood Cells" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What institution won in 2010 with student Cheng Herng Yi? | CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR) | SELECT institution FROM table_name_82 WHERE year > 2010 AND name = "cheng herng yi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
77,
17448,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6568,
751,
16,
2735,
28,
1236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
2490,
2735,
3430,
564,
3274,
96,
1559,
122,
160,
1725,
3,
63,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Position has a Nationality of united states, and a Pick of 9? | CREATE TABLE table_name_19 (position VARCHAR, nationality VARCHAR, pick VARCHAR) | SELECT position FROM table_name_19 WHERE nationality = "united states" AND pick = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
4718,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
868,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1432,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the candidate when the result - % was 0.4%? | CREATE TABLE table_73862 (
"Constituency" text,
"Candidate" text,
"Affiliation" text,
"Votes -cast" real,
"Result - %" text,
"Loss/gain" text
) | SELECT "Candidate" FROM table_73862 WHERE "Result - %" = '0.4%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3840,
357,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
14050,
12416,
342,
121,
1499,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
553,
32,
1422,
3,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14050,
12416,
342,
121,
21680,
953,
834,
4552,
3840,
357,
549,
17444,
427,
96,
20119,
3,
18,
3,
1454,
121,
3274,
3,
31,
22776,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what year was the last last title received, by any of the countries? | CREATE TABLE table_10682862_68 (
last_title INTEGER
) | SELECT MAX(last_title) FROM table_10682862_68 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3651,
2577,
4056,
834,
3651,
41,
336,
834,
21869,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
8,
336,
336,
2233,
1204,
6,
57,
136,
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,
4800,
4,
599,
5064,
834,
21869,
61,
21680,
953,
834,
1714,
3651,
2577,
4056,
834,
3651,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Mascot has a Previous conference of independents, and a Location of akron? | CREATE TABLE table_name_38 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR) | SELECT mascot FROM table_name_38 WHERE previous_conference = "independents" AND location = "akron" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
2754,
4310,
584,
4280,
28027,
6,
1767,
834,
28496,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6664,
4310,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2754,
4310,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1767,
834,
28496,
3274,
96,
77,
17631,
7,
121,
3430,
1128,
3274,
96,
9,
22318,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the party with drivers from Hartford and drivers older than 40. | CREATE TABLE school (
school_id number,
grade text,
school text,
location text,
type text
)
CREATE TABLE school_bus (
school_id number,
driver_id number,
years_working number,
if_full_time others
)
CREATE TABLE driver (
driver_id number,
name text,
party text,
home_city text,
age number
) | SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
496,
834,
23,
26,
381,
6,
2769,
1499,
6,
496,
1499,
6,
1128,
1499,
6,
686,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
496,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1088,
21680,
2535,
549,
17444,
427,
234,
834,
6726,
3274,
3,
31,
15537,
17,
2590,
31,
3430,
1246,
2490,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of first class team with birthday of 5 december 1970? | CREATE TABLE table_11950720_4 (first_class_team VARCHAR, date_of_birth VARCHAR) | SELECT COUNT(first_class_team) FROM table_11950720_4 WHERE date_of_birth = "5 December 1970" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
1752,
18517,
834,
591,
41,
14672,
834,
4057,
834,
11650,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
4057,
834,
11650,
61,
21680,
953,
834,
19993,
1752,
18517,
834,
591,
549,
17444,
427,
833,
834,
858,
834,
20663,
3274,
96,
755,
1882,
7434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many scores did Goodman give to 'samba / young hearts run free', which was in second place? | CREATE TABLE table_1014319_1 (
goodman VARCHAR,
result VARCHAR,
dance_song VARCHAR
) | SELECT COUNT(goodman) FROM table_1014319_1 WHERE result = "Second place" AND dance_song = "Samba / Young Hearts Run Free" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
25133,
2294,
834,
536,
41,
207,
348,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2595,
834,
7,
2444,
584,
4280,
28027,
3,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
10452,
348,
61,
21680,
953,
834,
1714,
25133,
2294,
834,
536,
549,
17444,
427,
741,
3274,
96,
134,
15,
1018,
26,
286,
121,
3430,
2595,
834,
7,
2444,
3274,
96,
134,
14303,
3,
87,
5209,
6219,
7,
71... |
What is the name/designation for Operational Status and a range of 1,930km? | CREATE TABLE table_name_85 (
name_designation VARCHAR,
status VARCHAR,
range__varies_with_payload_weight_ VARCHAR
) | SELECT name_designation FROM table_name_85 WHERE status = "operational" AND range__varies_with_payload_weight_ = "1,930km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
564,
834,
9124,
257,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
620,
834,
834,
15550,
834,
4065,
834,
8832,
7134,
834,
9378,
834,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
834,
9124,
257,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2637,
3274,
96,
22280,
138,
121,
3430,
620,
834,
834,
15550,
834,
4065,
834,
8832,
7134,
834,
9378,
834,
3274,
96,
4347,
1298,
1458,
5848,
121,
... |
what is the total number of competitions held in 2013 ? | CREATE TABLE table_204_364 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT COUNT("competition") FROM table_204_364 WHERE "year" = 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3420,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
287,
4995,
4749,
8512,
21680,
953,
834,
26363,
834,
3420,
591,
549,
17444,
427,
96,
1201,
121,
3274,
2038,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many production codes are there for episode number 45? | CREATE TABLE table_28250 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Prod. code" real,
"U.S. viewers (million)" text
) | SELECT COUNT("Prod. code") FROM table_28250 WHERE "No." = '45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
11434,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3174,
26,
5,
1081,
8512,
21680,
953,
834,
2577,
11434,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show all origins and the number of flights from each origin by a bar chart. | CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
) | SELECT origin, COUNT(*) FROM flight GROUP BY origin | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3,
15,
23,
26,
381,
599,
1298,
6,
632,
201,
564,
3,
4331,
4059,
357,
599,
1458,
201,
9090,
381,
599,
1714,
6,
7318,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5233,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
5233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the position in 2012-12 is 7th, third division what is the home ground? | CREATE TABLE table_name_24 (
home_ground VARCHAR,
position_in_2012_13 VARCHAR
) | SELECT home_ground FROM table_name_24 WHERE position_in_2012_13 = "7th, third division" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
234,
834,
9232,
584,
4280,
28027,
6,
1102,
834,
77,
834,
12172,
834,
2368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
1102,
16,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
9232,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1102,
834,
77,
834,
12172,
834,
2368,
3274,
96,
940,
189,
6,
1025,
4889,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team is from the Eastern province? | CREATE TABLE table_19905183_1 (
team VARCHAR,
province VARCHAR
) | SELECT team FROM table_19905183_1 WHERE province = "Eastern" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
3076,
24361,
834,
536,
41,
372,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
19,
45,
8,
7345,
7985,
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,
372,
21680,
953,
834,
19479,
3076,
24361,
834,
536,
549,
17444,
427,
7985,
3274,
96,
427,
9,
13072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the election result for the candidate first elected in 1918? | CREATE TABLE table_18640 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18640 WHERE "First elected" = '1918' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
23714,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
2606,
23714,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
name the title of the episode with production code 201 | CREATE TABLE table_30274 (
"Series no." real,
"Season no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Title" FROM table_30274 WHERE "Production code" = '201' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
2555,
591,
41,
96,
12106,
7,
150,
535,
490,
6,
96,
134,
15,
9,
739,
150,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
1458,
2555,
591,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
22772,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Combination classification has Points classification of daniele bennati, and a Team classification of quick step? | CREATE TABLE table_name_34 (
combination_classification VARCHAR,
points_classification VARCHAR,
team_classification VARCHAR
) | SELECT combination_classification FROM table_name_34 WHERE points_classification = "daniele bennati" AND team_classification = "quick step" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2711,
834,
4057,
2420,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
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,
2711,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
26,
2738,
400,
36,
29,
18530,
121,
3430,
372,
834,
4057,
2420,
3274,
96,
1169,
2406,
1147,
121,
1,
-100,
-100... |
What is the highest Points when the record was 12 2, and the Points Against are larger than 6? | CREATE TABLE table_name_25 (
points_for INTEGER,
record VARCHAR,
points_against VARCHAR
) | SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
979,
834,
1161,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
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,
4800,
4,
599,
2700,
7,
834,
1161,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1368,
3274,
96,
2122,
104,
357,
121,
3430,
979,
834,
9,
16720,
7,
17,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which team has 26 points? | CREATE TABLE table_76617 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Team" FROM table_76617 WHERE "Points" = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3539,
2517,
41,
96,
371,
77,
5,
13995,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
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,
18699,
121,
21680,
953,
834,
940,
3539,
2517,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won Women's doubles when Raina Tzvetkova won women's singles before 2000? | CREATE TABLE table_36705 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's doubles" FROM table_36705 WHERE "Year" < '2000' AND "Women's singles" = 'raina tzvetkova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3708,
3076,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
32,
904,
31,
7,
1486,
7,
121,
21680,
953,
834,
519,
3708,
3076,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
13527,
31,
3430,
96,
518,
32,
904,
31,
7,
712,
7,
121,
3274,
3,
31,
6559,
9,
3,
17... |
Which engine scored 6 points and used the march 88c chassis? | CREATE TABLE table_66955 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
) | SELECT "Engine" FROM table_66955 WHERE "Points" = '6' AND "Chassis" = 'march 88c' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3301,
755,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31477,
121,
21680,
953,
834,
3539,
3301,
755,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
948,
31,
3430,
96,
3541,
6500,
7,
121,
3274,
3,
31,
51,
7064,
3,
4060,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
In New Zealand, what's the value that has an unknown date and is an energy business? | CREATE TABLE table_name_70 (
value___usd__ VARCHAR,
country VARCHAR,
date VARCHAR,
business VARCHAR
) | SELECT value___usd__ FROM table_name_70 WHERE date = "unknown" AND business = "energy" AND country = "new zealand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
701,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
268,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
701,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
833,
3274,
96,
202,
5661,
121,
3430,
268,
3274,
96,
24310,
121,
3430,
684,
3274,
96,
5534,
3,
776,
138,
232,
121,
1,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.