NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Name the least mister international | CREATE TABLE table_30007505_1 (mister_international INTEGER) | SELECT MIN(mister_international) FROM table_30007505_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2313,
9979,
755,
834,
536,
41,
51,
5805,
834,
27817,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
1817,
449,
1038,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
51,
5805,
834,
27817,
61,
21680,
953,
834,
519,
2313,
9979,
755,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many teams completed 200 laps but did n't complete 220 laps ? | CREATE TABLE table_203_366 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
) | SELECT COUNT("team") FROM table_203_366 WHERE "laps" >= 200 AND "laps" < 220 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3539,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
4057,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
13739,
52,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
11650,
8512,
21680,
953,
834,
23330,
834,
519,
3539,
549,
17444,
427,
96,
8478,
7,
121,
2490,
2423,
2382,
3430,
96,
8478,
7,
121,
3,
2,
204,
1755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the population of Chimbote? | CREATE TABLE table_49390 (
"Province" text,
"Population" real,
"Region" text,
"Name of City" text,
"Districts" real
) | SELECT SUM("Population") FROM table_49390 WHERE "Name of City" = 'chimbote' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
519,
2394,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
23954,
13,
896,
121,
1499,
6,
96,
308,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
27773,
7830,
8512,
21680,
953,
834,
3647,
519,
2394,
549,
17444,
427,
96,
23954,
13,
896,
121,
3274,
3,
31,
9737,
4045,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many wins when the pct, is .848? | CREATE TABLE table_name_19 (wins VARCHAR, pct VARCHAR) | SELECT wins FROM table_name_19 WHERE pct = ".848" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
3757,
7,
584,
4280,
28027,
6,
3,
102,
75,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
116,
8,
3,
102,
75,
17,
6,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3,
102,
75,
17,
3274,
96,
5,
927,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the season 4 # for the production code of 4abb07? | CREATE TABLE table_74246 (
"\u2116" real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "#" FROM table_74246 WHERE "Production code" = '4ABB07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
357,
4448,
41,
96,
2,
76,
2658,
2938,
121,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4663,
121,
21680,
953,
834,
4581,
357,
4448,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
591,
188,
7640,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What event has a $248,004 prize? | CREATE TABLE table_name_24 (
event VARCHAR,
prize VARCHAR
) | SELECT event FROM table_name_24 WHERE prize = "$248,004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
605,
584,
4280,
28027,
6,
6441,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
605,
65,
3,
9,
3771,
3707,
6,
1206,
591,
6441,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
6441,
3274,
96,
3229,
2266,
11864,
1206,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number for the french open 1974? | CREATE TABLE table_197638_7 (
_number INTEGER,
french_open VARCHAR
) | SELECT MAX(_number) FROM table_197638_7 WHERE french_open = 1974 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3959,
3747,
834,
940,
41,
3,
834,
5525,
1152,
3,
21342,
17966,
6,
20609,
834,
8751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2294,
3959,
3747,
834,
940,
549,
17444,
427,
20609,
834,
8751,
3274,
17184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the class of facility ID 150935? | CREATE TABLE table_42401 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"Facility ID" real,
"ERP W" real,
"Height m ( ft )" text,
"Class" text,
"FCC info" text
) | SELECT "Class" FROM table_42401 WHERE "Facility ID" = '150935' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
20016,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
371,
9,
75,
14277,
4699,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
4165,
20016,
549,
17444,
427,
96,
371,
9,
75,
14277,
4699,
121,
3274,
3,
31,
1808,
4198,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the attendance when St Kilda played as the home team? | CREATE TABLE table_name_66 (
crowd VARCHAR,
home_team VARCHAR
) | SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
4374,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
116,
472,
12672,
26,
9,
1944,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart for what are the number of the dates of transactions with at least 100 share count or amount bigger than 100? | 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 Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
) | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count >= 100 OR amount_of_transaction >= 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14839,
7,
41,
1242,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
1242,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
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,
833,
834,
858,
834,
7031,
4787,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
549,
17444,
427,
698,
834,
13362,
2490,
2423,
910,
4674,
866,
834,
858,
834,
7031,
4787,
2490,
2423,
910,
1,... |
What is the time for Cuba, with a notes entry of QS? | CREATE TABLE table_64370 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Time" FROM table_64370 WHERE "Notes" = 'qs' AND "Country" = 'cuba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
22520,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
109,
1422,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
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,
96,
13368,
121,
21680,
953,
834,
4389,
22520,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
1824,
7,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
16377,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Mens Nickname for the member location of Jacksonville, florida? | CREATE TABLE table_10577579_2 (mens_nickname VARCHAR, location VARCHAR) | SELECT mens_nickname FROM table_10577579_2 WHERE location = "Jacksonville, Florida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3436,
3072,
4440,
834,
357,
41,
904,
7,
834,
11191,
4350,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3137,
7,
7486,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1076,
7,
834,
11191,
4350,
21680,
953,
834,
1714,
3436,
3072,
4440,
834,
357,
549,
17444,
427,
1128,
3274,
96,
683,
4365,
739,
1420,
6,
2599,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many children were born in february ? | CREATE TABLE table_204_626 (
id number,
"image" number,
"name" text,
"birth date" text,
"death date" text,
"brief biography" text
) | SELECT COUNT("name") FROM table_204_626 WHERE "birth date" = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2688,
41,
3,
23,
26,
381,
6,
96,
8221,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
20663,
833,
121,
1499,
6,
96,
221,
9,
189,
833,
121,
1499,
6,
96,
255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
8512,
21680,
953,
834,
26363,
834,
948,
2688,
549,
17444,
427,
96,
20663,
833,
121,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of orders in each day and bin the number of orders by customers in a line chart. | CREATE TABLE Customer_Contact_Channels (
customer_id INTEGER,
channel_code VARCHAR(15),
active_from_date DATETIME,
active_to_date DATETIME,
contact_number VARCHAR(50)
)
CREATE TABLE Order_Items (
order_id INTEGER,
product_id INTEGER,
order_quantity VARCHAR(15)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
address_type VARCHAR(15),
date_address_to DATETIME
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(15),
order_date DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
) | SELECT order_date, COUNT(order_date) FROM Customers AS t1 JOIN Customer_Orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" GROUP BY customer_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
4245,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
1676,
834,
7152,
834,
5522,
309,
6048,
382,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
455,
834,
5522,
6,
2847,
17161,
599,
9397,
834,
5522,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
7327,
834,
7395,
588,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
... |
What is the name of the team with the Away score of 12.13 (85)? | CREATE TABLE table_11057 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_11057 WHERE "Away team score" = '12.13 (85)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
3436,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
19277,
3436,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
9368,
2368,
13642,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Pos has a Dutch Cup of winner, and a Tier larger than 1? | CREATE TABLE table_name_1 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR) | SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
2748,
3,
21342,
17966,
6,
146,
17,
524,
834,
4658,
584,
4280,
28027,
6,
3,
3276,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13995,
65,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2748,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
146,
17,
524,
834,
4658,
3274,
96,
3757,
687,
121,
3430,
3,
3276,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who had the high assists on march 30? | CREATE TABLE table_name_78 (
high_assists VARCHAR,
date VARCHAR
) | SELECT high_assists FROM table_name_78 WHERE date = "march 30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
141,
8,
306,
13041,
30,
10556,
604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
833,
3274,
96,
51,
7064,
604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the type codes of the policies used by the customer 'Dayana Robel'? | CREATE TABLE staff (
staff_id number,
staff_details text
)
CREATE TABLE policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
claim_status_name text,
claim_status_description text
)
CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time,
date_of_settlement time,
amount_claimed number,
amount_piad number
)
CREATE TABLE claims_processing (
claim_processing_id number,
claim_id number,
claim_outcome_code text,
claim_stage_id number,
staff_id number
)
CREATE TABLE claims_documents (
claim_id number,
document_type_code text,
created_by_staff_id number,
created_date number
)
CREATE TABLE customers (
customer_id number,
customer_details text
) | SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = "Dayana Robel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
871,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3101,
41,
1291,
834,
23,
26,
381,
6,
884,
834,
23,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1291,
834,
6137,
834,
4978,
21680,
3101,
6157,
3,
17,
536,
3,
15355,
3162,
722,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
549,
17444,
427,
3,
17,
4... |
what number of patients diagnosed for diabetic retinopathy nos were admitted before the year 2194? | 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
)
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2194" AND diagnoses.short_title = "Diabetic retinopathy NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the location of the University that joined in 1926, 1996 2? | CREATE TABLE table_28405 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
) | SELECT "Location" FROM table_28405 WHERE "Joined" = '1926, 1996 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
3076,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
357,
4608,
3076,
549,
17444,
427,
96,
683,
32,
630,
26,
121,
3274,
3,
31,
2294,
2688,
6,
6911,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the truck for eric phillips | CREATE TABLE table_24535095_2 (truck_s_ VARCHAR, crew_chief VARCHAR) | SELECT truck_s_ FROM table_24535095_2 WHERE crew_chief = "Eric Phillips" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
16975,
3301,
834,
357,
41,
28105,
834,
7,
834,
584,
4280,
28027,
6,
4627,
834,
20053,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4072,
21,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4072,
834,
7,
834,
21680,
953,
834,
357,
2128,
16975,
3301,
834,
357,
549,
17444,
427,
4627,
834,
20053,
3274,
96,
427,
2234,
16202,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28? | CREATE TABLE table_name_86 (company VARCHAR, profits__billion_$_ VARCHAR, industry VARCHAR, assets__billion_$_ VARCHAR, sales__billion_$_ VARCHAR) | SELECT company FROM table_name_86 WHERE assets__billion_$_ < 235.45 AND sales__billion_$_ > 159.29 AND industry = "oil and gas" AND profits__billion_$_ = 19.28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
29179,
584,
4280,
28027,
6,
9613,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
6,
681,
584,
4280,
28027,
6,
4089,
834,
834,
115,
14916,
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,
349,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
4089,
834,
834,
115,
14916,
834,
3229,
834,
3,
2,
3,
25174,
5,
2128,
3430,
1085,
834,
834,
115,
14916,
834,
3229,
834,
2490,
3,
27904,
5,
3166,
3430,
681,
32... |
What is the status when Wales is the opposing team and there are more than 13 against? | CREATE TABLE table_name_81 (
status VARCHAR,
against VARCHAR,
opposing_teams VARCHAR
) | SELECT status FROM table_name_81 WHERE against > 13 AND opposing_teams = "wales" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
2637,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
581,
2490,
1179,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
210,
4529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Beyer Peacock's SR number with a SECR number of 769? | CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR) | SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
7,
52,
834,
29,
32,
3,
21342,
17966,
6,
918,
49,
584,
4280,
28027,
6,
4220,
52,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
7,
52,
834,
29,
32,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
918,
49,
3274,
96,
346,
7975,
158,
9,
12105,
121,
3430,
4220,
52,
834,
29,
32,
3274,
489,
3951,
1,
-100,
-100,
-100,
-10... |
What is the score of the New Jersey home game? | CREATE TABLE table_name_42 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_42 WHERE home = "new jersey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
7,
9022,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
368,
5092,
234,
467,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
234,
3274,
96,
5534,
13426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest pick number of the new york jets? | CREATE TABLE table_12165135_1 (
overall_pick__number INTEGER,
afl_team VARCHAR
) | SELECT MAX(overall_pick__number) FROM table_12165135_1 WHERE afl_team = "New York Jets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2938,
5553,
2469,
834,
536,
41,
1879,
834,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
9,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1890,
1748,
834,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2122,
2938,
5553,
2469,
834,
536,
549,
17444,
427,
3,
9,
89,
40,
834,
11650,
3274,
96,
6861,
1060,
12434,
7,
121,
1,
-100,
-100,
-10... |
Radio Station/Production Company that has a Role of interviewee & monologues is what radio station? | CREATE TABLE table_name_73 (
radio_station_production_company VARCHAR,
role VARCHAR
) | SELECT radio_station_production_company FROM table_name_73 WHERE role = "interviewee & monologues" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2252,
834,
6682,
834,
20762,
834,
29179,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5061,
5939,
87,
3174,
8291,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
834,
6682,
834,
20762,
834,
29179,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1075,
3274,
96,
3870,
4576,
15,
15,
3,
184,
7414,
10384,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
A bar chart shows the distribution of meter_500 and meter_100 , and rank by the bar from low to high. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
) | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2560,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title for year 1991 and a date of March 21? | CREATE TABLE table_name_87 (title VARCHAR, year VARCHAR, date VARCHAR) | SELECT title FROM table_name_87 WHERE year = 1991 AND date = "march 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
21869,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
21,
215,
9957,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
215,
3274,
9957,
3430,
833,
3274,
96,
51,
7064,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show me a bar chart for what is the project id and detail for the project with at least two documents?, and order by the y axis from high to low. | CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
) | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
12532,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
2962,
5756,
7,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
3174,
11827,
834,
2962,
5756,
7,
6,
332,
5411,
3174,
11827,
834,
4309,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3... |
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps? | CREATE TABLE table_58305 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MAX("Grid") FROM table_58305 WHERE "Constructor" = 'mclaren - mercedes' AND "Driver" = 'david coulthard' AND "Laps" < '66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
26724,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3449,
26724,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
51,
23982,
35,
3,
18,
3,
935,
565,
1395,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
26,
... |
Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson? | CREATE TABLE table_39761 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Law Preservation ticket" text,
"Socialist ticket" text,
"Socialist Labor ticket" text
) | SELECT "Socialist ticket" FROM table_39761 WHERE "Socialist Labor ticket" = 'charles m. carlson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
3959,
536,
41,
96,
22098,
121,
1499,
6,
96,
19679,
447,
4142,
121,
1499,
6,
96,
1649,
15727,
152,
4142,
121,
1499,
6,
96,
3612,
210,
31567,
4142,
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,
5231,
4703,
343,
4142,
121,
21680,
953,
834,
3288,
3959,
536,
549,
17444,
427,
96,
5231,
4703,
343,
9836,
4142,
121,
3274,
3,
31,
4059,
965,
3,
51,
5,
443,
40,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was republican incumbent Joseph McKenna first elected? | CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, incumbent VARCHAR) | SELECT first_elected FROM table_name_28 WHERE party = "republican" AND incumbent = "joseph mckenna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
20237,
152,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
28406,
3274,
96,
1927,
7,
15,
102,
107,
3,
51,
4695,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which rank has the smallest number of faculty members? | CREATE TABLE Faculty (rank VARCHAR) | SELECT rank FROM Faculty GROUP BY rank ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
6254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11003,
65,
8,
3,
17924,
381,
13,
6040,
724,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
16896,
350,
4630,
6880,
272,
476,
11003,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many laps led when the Grid was 15? | CREATE TABLE table_46057 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Laps Led" FROM table_46057 WHERE "Grid" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
3436,
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,
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,
3612,
102,
7,
312,
26,
121,
21680,
953,
834,
25991,
3436,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which film title used in nomination has vinterkyss as the original title? | CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
3769,
23838,
834,
536,
41,
9988,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
21680,
953,
834,
27184,
3769,
23838,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
553,
3870,
3781,
7,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is in the high points in the @ l.a. clippers team? | CREATE TABLE table_27734286_1 (
high_points VARCHAR,
team VARCHAR
) | SELECT high_points FROM table_27734286_1 WHERE team = "@ L.A. Clippers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
16,
8,
306,
979,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
549,
17444,
427,
372,
3274,
96,
1741,
301,
5,
188,
5,
17399,
4660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent in the match that lasted 4:17? | CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_58 WHERE time = "4:17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
32,
102,
9977,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
8,
1588,
24,
3,
19054,
31348,
940,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
97,
3274,
96,
591,
10,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the position for van den brink, bas | CREATE TABLE table_21220720_1 (
position VARCHAR,
name VARCHAR
) | SELECT position FROM table_21220720_1 WHERE name = "van den Brink, Bas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
1755,
18517,
834,
536,
41,
1102,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1102,
21,
4049,
177,
25799,
157,
6,
3905,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
24837,
1755,
18517,
834,
536,
549,
17444,
427,
564,
3274,
96,
2132,
177,
272,
13419,
6,
6653,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many parties won the election in the California 23 district? | CREATE TABLE table_1341690_5 (party VARCHAR, district VARCHAR) | SELECT COUNT(party) FROM table_1341690_5 WHERE district = "California 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
755,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2251,
751,
8,
4356,
16,
8,
1826,
1902,
3939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8071,
61,
21680,
953,
834,
23747,
2938,
2394,
834,
755,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team had a high points of west (20)? | CREATE TABLE table_53586 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Team" FROM table_53586 WHERE "High points" = 'west (20)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
3840,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
755,
2469,
3840,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
12425,
17543,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which location belongs to the website, http://www.mudgeerabasoccer.com/? | CREATE TABLE table_188 (
"Team" text,
"Head Coach" text,
"President" text,
"Home Ground" text,
"Location" text,
"Founded" real,
"Website" text
) | SELECT "Location" FROM table_188 WHERE "Website" = 'http://www.mudgeerabasoccer.com/' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
41,
96,
18699,
121,
1499,
6,
96,
3845,
9,
26,
9493,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
25794,
549,
17444,
427,
96,
15805,
3585,
121,
3274,
3,
31,
5948,
1303,
1986,
5,
51,
13164,
1498,
4883,
13377,
49,
5,
287,
87,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which City has a School of indianapolis brebeuf? | CREATE TABLE table_name_54 (
city VARCHAR,
school VARCHAR
) | SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
690,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
896,
65,
3,
9,
1121,
13,
16,
8603,
9,
15621,
3,
1999,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
496,
3274,
96,
77,
8603,
9,
15621,
3,
1999,
346,
76,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of bronze a team with more than 0 silver, a total of 7 medals, and less than 1 gold medal has? | CREATE TABLE table_78100 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Bronze") FROM table_78100 WHERE "Silver" > '0' AND "Total" = '7' AND "Gold" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
2915,
41,
96,
22557,
121,
490,
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,
2847,
17161,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
3940,
2915,
549,
17444,
427,
96,
134,
173,
624,
121,
2490,
3,
31,
632,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
940,
31,
3430,
96,
23576,
121,
3,
... |
how many patients uses medicare insurance and were diagnosed with primary disease guillain barre syndrome? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.diagnosis = "GUILLAIN BARRE SYNDROME" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
15789,
355,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
13961,
10781,
13570,
... |
What was the method in round 1 of the UFC 20 event? | CREATE TABLE table_46994 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
) | SELECT "Method" FROM table_46994 WHERE "Round" = '1' AND "Event" = 'ufc 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3264,
591,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23351,
107,
32,
26,
121,
21680,
953,
834,
4448,
3264,
591,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
76,
89,
75,
460,
31,
1,
-100,
-100,
-100,
-1... |
Which the highest Bronze of czech republic with a Total smaller than 4? | CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, total VARCHAR) | SELECT MAX(bronze) FROM table_name_63 WHERE nation = "czech republic" AND total < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
13711,
776,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8,
2030,
20841,
13,
3,
75,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2982,
3274,
96,
75,
776,
524,
20237,
121,
3430,
792,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What district re-elected a Republican? | CREATE TABLE table_name_21 (district VARCHAR, party VARCHAR, results VARCHAR) | SELECT district FROM table_name_21 WHERE party = "republican" AND results = "re-elected" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
26,
23,
20066,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
772,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
3,
60,
18,
19971,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
772,
3274,
96,
60,
18,
19971,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%? | CREATE TABLE table_name_87 (
theme_song_s_ VARCHAR,
tv_station VARCHAR,
average_ratings VARCHAR
) | SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3800,
834,
7,
2444,
834,
7,
834,
584,
4280,
28027,
6,
3,
17,
208,
834,
6682,
584,
4280,
28027,
6,
1348,
834,
52,
1014,
7,
584,
4280,
28027,
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,
3800,
834,
7,
2444,
834,
7,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3,
17,
208,
834,
6682,
3274,
96,
89,
76,
354,
23,
3,
17,
208,
121,
3430,
1348,
834,
52,
1014,
7,
3274,
96,
2938,
5,
28168,
12... |
what is the organisation when the year is less than 2005 and the award is the best variety show host? | CREATE TABLE table_51485 (
"Year" real,
"Organisation" text,
"Award" text,
"Nominated Work Title" text,
"Result" text
) | SELECT "Organisation" FROM table_51485 WHERE "Year" < '2005' AND "Award" = 'best variety show host' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
4433,
41,
96,
476,
2741,
121,
490,
6,
96,
7395,
2565,
2121,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
4168,
1109,
920,
3118,
11029,
121,
1499,
6,
96,
2011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7395,
2565,
2121,
121,
21680,
953,
834,
755,
2534,
4433,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
22594,
31,
3430,
96,
188,
2239,
121,
3274,
3,
31,
9606,
1196,
504,
2290,
31,
1,
-100,
-100,
-100,
-1... |
What year was The Saber nominated for best action? | CREATE TABLE table_name_17 (year INTEGER, title_of_work VARCHAR, category VARCHAR) | SELECT AVG(year) FROM table_name_17 WHERE title_of_work = "saber" AND category = "best action" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1201,
3,
21342,
17966,
6,
2233,
834,
858,
834,
1981,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
2233,
834,
858,
834,
1981,
3274,
96,
7,
9,
1152,
121,
3430,
3295,
3274,
96,
9606,
1041,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest value for Fall 08 when Fall 07 is less than 242? | CREATE TABLE table_5190 (
"Maryland Counties" text,
"Fall 05" real,
"Fall 06" real,
"Fall 07" real,
"Fall 08" real,
"Fall 09" real
) | SELECT MAX("Fall 08") FROM table_5190 WHERE "Fall 07" < '242' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
11776,
41,
96,
7286,
28900,
3,
10628,
725,
121,
1499,
6,
96,
371,
1748,
3,
3076,
121,
490,
6,
96,
371,
1748,
13574,
121,
490,
6,
96,
371,
1748,
10668,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
371,
1748,
12046,
8512,
21680,
953,
834,
755,
11776,
549,
17444,
427,
96,
371,
1748,
10668,
121,
3,
2,
3,
31,
2266,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the event for 2012 london games | CREATE TABLE table_4381 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Event" FROM table_4381 WHERE "Games" = '2012 london' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4959,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
4906,
4959,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
12172,
3,
40,
106,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which is the most recent source for the name ? | CREATE TABLE table_202_250 (
id number,
"year" text,
"name" text,
"source" text,
"definition" text
) | SELECT "source" FROM table_202_250 ORDER BY "year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
11434,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
7928,
121,
1499,
6,
96,
221,
5582,
1575,
121,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
7928,
121,
21680,
953,
834,
19818,
834,
11434,
4674,
11300,
272,
476,
96,
1201,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the episode titled 'the wedding anniversary'? | CREATE TABLE table_17548 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Written by" FROM table_17548 WHERE "Title" = 'The Wedding Anniversary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
3707,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
536,
3072,
3707,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
9057,
21947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which source date has an Internet Explorer usage of 60.2%? | CREATE TABLE table_name_52 (source VARCHAR, internet_explorer VARCHAR) | SELECT source FROM table_name_52 WHERE internet_explorer = "60.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7928,
584,
4280,
28027,
6,
1396,
834,
20901,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1391,
833,
65,
46,
1284,
15762,
4742,
13,
1640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1391,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1396,
834,
20901,
3274,
96,
3328,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Driver Kimi R ikk nen's number on the grid? | CREATE TABLE table_31741 (
"Pos." text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Grid" text
) | SELECT "Grid" FROM table_31741 WHERE "Driver" = 'kimi räikkönen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
4853,
41,
96,
345,
32,
7,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13313,
26,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13313,
26,
121,
21680,
953,
834,
519,
2517,
4853,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
19754,
23,
3,
7921,
23,
8511,
11431,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of medications that patient 032-24135 was prescribed during this hospital encounter. | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-24135' AND patient.hospitaldischargetime IS NULL)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
What is the latitude and longitude for Surveyor 3? | CREATE TABLE table_name_87 (lat___lon VARCHAR, us_mission VARCHAR) | SELECT lat___lon FROM table_name_87 WHERE us_mission = "surveyor 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
40,
144,
834,
834,
834,
40,
106,
584,
4280,
28027,
6,
178,
834,
5451,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
50,
6592,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
50,
17,
834,
834,
834,
40,
106,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
178,
834,
5451,
3274,
96,
3042,
162,
63,
127,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the average ages of artists by countries? Visualize the result with a histogram, sort in descending by the Y. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
) | SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY AVG(Age) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
834,
60,
7621,
41,
22371,
834,
4309,
16,
17,
6,
7678,
1499,
6,
22497,
663,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
22371,
834,
4309,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
71,
17217,
599,
188,
397,
61,
21680,
2377,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Round for the jiu-jitsu vs martial arts? | CREATE TABLE table_name_20 (round VARCHAR, event VARCHAR) | SELECT round FROM table_name_20 WHERE event = "jiu-jitsu vs martial arts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7775,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9609,
21,
8,
3,
354,
23,
76,
18,
13272,
7,
76,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
605,
3274,
96,
354,
23,
76,
18,
13272,
7,
76,
3,
208,
7,
22526,
5138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of cuts made for events with under 4 entries and more than 0 wins? | CREATE TABLE table_79678 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Cuts made") FROM table_79678 WHERE "Events" < '4' AND "Wins" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3708,
927,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
14855,
121,
490,
6,
96,
427,
2169,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15784,
17,
7,
263,
8512,
21680,
953,
834,
4440,
3708,
927,
549,
17444,
427,
96,
427,
2169,
7,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
18455,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,... |
how many songs was claudio zoli the original artist ? | CREATE TABLE table_204_51 (
id number,
"week #" text,
"theme" text,
"song choice" text,
"original artist" text,
"order #" number,
"result" text
) | SELECT COUNT("song choice") FROM table_204_51 WHERE "original artist" = 'claudio zoli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
5553,
41,
3,
23,
26,
381,
6,
96,
8041,
1713,
121,
1499,
6,
96,
532,
526,
121,
1499,
6,
96,
7,
2444,
1160,
121,
1499,
6,
96,
21878,
2377,
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,
2847,
17161,
599,
121,
7,
2444,
1160,
8512,
21680,
953,
834,
26363,
834,
5553,
549,
17444,
427,
96,
21878,
2377,
121,
3274,
3,
31,
75,
40,
28696,
3,
12423,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the 12' maxi in September 1990? | CREATE TABLE table_14436 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Region" FROM table_14436 WHERE "Format" = '12" maxi' AND "Date" = 'september 1990' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
0... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
20885,
3420,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
2122,
121,
9858,
23,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
5541,
31,
1,
-100,
-100,
-... |
Which Country has a Year(s) won of 1977? | CREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_60 WHERE year_s__won = "1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
17529,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
3,
9,
2929,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which team , ranked first , also finished as winner in the 1985 acc women 's basketball tournament ? | CREATE TABLE table_204_807 (
id number,
"date" text,
"winner" text,
"runner-up" text,
"result" text,
"site" text,
"attendance" number
) | SELECT "winner" FROM table_204_807 WHERE "date" = 1985 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2079,
940,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
3757,
687,
121,
1499,
6,
96,
10806,
18,
413,
121,
1499,
6,
96,
60,
7,
83,
17,
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,
3757,
687,
121,
21680,
953,
834,
26363,
834,
2079,
940,
549,
17444,
427,
96,
5522,
121,
3274,
13200,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the birth date of a member of the Club of bvsc v zilabda? | CREATE TABLE table_name_39 (
date_of_birth VARCHAR,
club VARCHAR
) | SELECT date_of_birth FROM table_name_39 WHERE club = "bvsc vízilabda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
833,
834,
858,
834,
20663,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3879,
833,
13,
3,
9,
1144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
858,
834,
20663,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1886,
3274,
96,
115,
208,
7,
75,
3,
208,
2,
702,
9339,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what was the next single released after melting pot ? | CREATE TABLE table_204_672 (
id number,
"year" number,
"title" text,
"label" text,
"uk singles chart" number,
"u.s. billboard hot 100 chart" number
) | SELECT "title" FROM table_204_672 WHERE "year" > (SELECT "year" FROM table_204_672 WHERE "title" = '"melting pot"') ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
357,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
1598,
712,
7,
5059,
121,
381,
6,
96,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
121,
21680,
953,
834,
26363,
834,
3708,
357,
549,
17444,
427,
96,
1201,
121,
2490,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
3708,
357,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
12... |
Bin the hire date into Month interval, and then compute the average salary of employees in each month for a bar chart, note that just select those employees without the letter M in their first name. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 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)
) | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
329,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what round was a player from Michigan selected? | CREATE TABLE table_name_54 (
round INTEGER,
school_club_team VARCHAR
) | SELECT MAX(round) FROM table_name_54 WHERE school_club_team = "michigan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1751,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
1751,
47,
3,
9,
1959,
45,
5847,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
51,
362,
12588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the kit manufacturer with Walkers as the shirt sponsor? | CREATE TABLE table_name_1 (
kit_manufacturer VARCHAR,
shirt_sponsor VARCHAR
) | SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3650,
834,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
8677,
834,
7,
5041,
7,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3650,
834,
348,
76,
8717,
450,
49,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
8677,
834,
7,
5041,
7,
127,
3274,
96,
24063,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many poles had 72 points? | CREATE TABLE table_20396_1 (poles VARCHAR, points VARCHAR) | SELECT COUNT(poles) FROM table_20396_1 WHERE points = "72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
4314,
834,
536,
41,
14332,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11148,
7,
141,
9455,
979,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14332,
7,
61,
21680,
953,
834,
23330,
4314,
834,
536,
549,
17444,
427,
979,
3274,
96,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is listed as the highest Points that's got a Position that's smaller than 1? | CREATE TABLE table_name_64 (points INTEGER, position INTEGER) | SELECT MAX(points) FROM table_name_64 WHERE position < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2700,
7,
3,
21342,
17966,
6,
1102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
38,
8,
2030,
4564,
7,
24,
31,
7,
530,
3,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1102,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the number for dl | CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) | SELECT pick__number FROM table_20649850_1 WHERE position = "DL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
3647,
17246,
834,
536,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
21,
3,
26,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
24643,
3647,
17246,
834,
536,
549,
17444,
427,
1102,
3274,
96,
10013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many nations received at least two gold metals ? | CREATE TABLE table_203_548 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_203_548 WHERE "gold" >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3707,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
8512,
21680,
953,
834,
23330,
834,
755,
3707,
549,
17444,
427,
96,
14910,
121,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million? | CREATE TABLE table_29444 (
"Episode" text,
"Date" text,
"Official ITV rating (millions)" text,
"Weekly rank" real,
"Share (%)" text,
"Official ITV HD rating (millions)" text,
"Total ITV viewers (millions)" text
) | SELECT "Total ITV viewers (millions)" FROM table_29444 WHERE "Official ITV HD rating (millions)" = '1.12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
3628,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
89,
22816,
27,
4562,
5773,
41,
17030,
7,
61,
121,
1499,
6,
96,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1947,
27,
4562,
13569,
41,
17030,
7,
61,
121,
21680,
953,
834,
357,
4240,
3628,
549,
17444,
427,
96,
667,
89,
22816,
27,
4562,
3726,
5773,
41,
17030,
7,
61,
121,
3274,
3,
31,
11039,
357,
31,
1,
-100,
-... |
who won by the least ? | CREATE TABLE table_203_371 (
id number,
"round" number,
"opponent" text,
"result" text,
"bro." number,
"opp." number,
"date" text,
"venue" text,
"crowd" number,
"position" text
) | SELECT "opponent" FROM table_203_371 ORDER BY "bro." DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4118,
536,
41,
3,
23,
26,
381,
6,
96,
7775,
121,
381,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
5702,
535,
381,
6,
96,
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,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
4118,
536,
4674,
11300,
272,
476,
96,
5702,
535,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Laps has a Year of 2007? | CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR) | SELECT AVG(laps) FROM table_name_80 WHERE year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
8478,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
325,
102,
7,
65,
3,
9,
2929,
13,
4101,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Time/Retired for Grid 6? | CREATE TABLE table_name_4 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_4 WHERE grid = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2900,
87,
1649,
11809,
26,
21,
23644,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
8634,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Select the average price of each manufacturer's products, showing the manufacturer's name. | CREATE TABLE Manufacturers (
name VARCHAR,
code VARCHAR
)
CREATE TABLE products (
Price INTEGER,
manufacturer VARCHAR
) | SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
564,
584,
4280,
28027,
6,
1081,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
5312,
3,
21342,
17966,
6,
4818,
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,
71,
17217,
599,
382,
5411,
345,
4920,
201,
332,
4416,
4350,
21680,
494,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
348,
76,
8717,
450,
49,
3274,
332,
4416,
4978,
350,
4630,
6880,
272,... |
Show the number of documents in each day for all documents on project with details 'Graph Database project' and bin document date by year interval and group by document name with a group line chart, I want to list in descending by the x-axis. | CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
) | SELECT Document_Date, COUNT(Document_Date) FROM Documents AS T1 JOIN Projects AS T2 ON T1.Project_ID = T2.Project_ID WHERE T2.Project_Details = 'Graph Database project' GROUP BY Document_Name ORDER BY Document_Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
2786,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
308,
342,
309,
6048,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
308,
342,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
308,
342,
61,
21680,
11167,
7,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3174... |
What is the 2000 value if the 1998 value is 1.5? | CREATE TABLE table_name_67 (
Id VARCHAR
) | SELECT 2000 FROM table_name_67 WHERE 1998 = "1.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2766,
701,
3,
99,
8,
6260,
701,
19,
8613,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2766,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6260,
3274,
96,
16593,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which patients are medicated via tp route? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "TP" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Show all game ids and the number of hours played. Visualize by scatter chart. | CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT GameID, SUM(Hours_Played) FROM Plays_Games GROUP BY GameID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3953,
834,
23055,
7,
41,
4435,
4309,
3,
21342,
17966,
6,
350,
23954,
584,
4280,
28027,
599,
2445,
201,
350,
25160,
584,
4280,
28027,
599,
2445,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4435,
4309,
6,
180,
6122,
599,
4489,
3589,
834,
15800,
15,
26,
61,
21680,
2911,
7,
834,
23055,
7,
350,
4630,
6880,
272,
476,
4435,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Particle has a Rest mass MeV/c 2 of 1383.7 1.0? | CREATE TABLE table_name_11 (
particle VARCHAR,
rest_mass_mev___c_2 VARCHAR
) | SELECT particle FROM table_name_11 WHERE rest_mass_mev___c_2 = "1383.7±1.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
24317,
584,
4280,
28027,
6,
880,
834,
2754,
7,
834,
526,
208,
834,
834,
834,
75,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24317,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
880,
834,
2754,
7,
834,
526,
208,
834,
834,
834,
75,
834,
357,
3274,
96,
22744,
25168,
2,
12734,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose diagnoses long title is mitral valve disorders? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob 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 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 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Mitral valve disorders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is Matches, when Draws is 'Did Not Qualify', and when Year is '1995'? | CREATE TABLE table_45797 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
) | SELECT "Matches" FROM table_45797 WHERE "Draws" = 'did not qualify' AND "Year" = '1995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3436,
4327,
41,
96,
476,
2741,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
329,
144,
2951,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
308,
10936,
7,
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,
329,
144,
2951,
121,
21680,
953,
834,
591,
3436,
4327,
549,
17444,
427,
96,
308,
10936,
7,
121,
3274,
3,
31,
12416,
59,
9448,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3301,
31,
1,
-100,
-100,
-100,
-... |
give me the number of patients whose age is less than 70 and procedure short title is arterial catheterization? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "70" AND procedures.short_title = "Arterial catheterization" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
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,... |
Name the result for 1998 | CREATE TABLE table_3200 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_3200 WHERE "First elected" = '1998' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3632,
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,
1499,
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,
519,
3632,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the high points for 30-23 | CREATE TABLE table_23286158_8 (
high_points VARCHAR,
record VARCHAR
) | SELECT high_points FROM table_23286158_8 WHERE record = "30-23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3840,
26556,
834,
927,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
979,
21,
12471,
2773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
23188,
3840,
26556,
834,
927,
549,
17444,
427,
1368,
3274,
96,
1458,
18,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the sum of points for 1984 | CREATE TABLE table_name_95 (points INTEGER, year INTEGER) | SELECT SUM(points) FROM table_name_95 WHERE year < 1984 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2700,
7,
3,
21342,
17966,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
979,
21,
13480,
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,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
215,
3,
2,
13480,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many canton with commune being waldbillig | CREATE TABLE table_946 (
"Map Key" real,
"Commune" text,
"Canton" text,
"District" text,
"Population" real
) | SELECT COUNT("Canton") FROM table_946 WHERE "Commune" = 'Waldbillig' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
948,
41,
96,
25760,
4420,
121,
490,
6,
96,
10205,
444,
121,
1499,
6,
96,
254,
9,
6992,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
27773,
7830,
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,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
9,
6992,
8512,
21680,
953,
834,
4240,
948,
549,
17444,
427,
96,
10205,
444,
121,
3274,
3,
31,
518,
138,
26,
3727,
2825,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which couple participated in the Contemporary style of dance? | CREATE TABLE table_name_27 (
couple VARCHAR,
style VARCHAR
) | SELECT couple FROM table_name_27 WHERE style = "contemporary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1158,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1158,
10627,
16,
8,
16590,
869,
13,
2595,
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,
1158,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
869,
3274,
96,
1018,
13089,
52,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the only prime minister to be in office three times ? | CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
) | SELECT "name" FROM table_203_694 GROUP BY "name" HAVING COUNT(*) >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3951,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
235,
1825,
828,
121,
1499,
6,
96,
17068,
828,
121,
1499,
6,
96,
8071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
3951,
591,
350,
4630,
6880,
272,
476,
96,
4350,
121,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose marital status is married and ethnicity is white - russian? | 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 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 WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "WHITE - RUSSIAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
15,
189,
2532,
485,
... |
What is the Position for the European U23 Championships? | CREATE TABLE table_name_74 (position VARCHAR, competition VARCHAR) | SELECT position FROM table_name_74 WHERE competition = "european u23 championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
4718,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14258,
21,
8,
1611,
412,
2773,
7666,
7,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2259,
3274,
96,
28188,
152,
3,
76,
2773,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
since 1 year ago, what were the admission times of patient 006-172277 at the hospital? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-172277' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
948,
10794,
2884,
4013,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
2490,
24... |
Show the total number from each type, and I want to sort names from high to low order. | CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
)
CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
) | SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY Type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13588,
41,
1261,
1981,
834,
4309,
16,
17,
6,
3397,
834,
4309,
16,
17,
6,
3,
20119,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
7924,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
6632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is id of students who registered some courses but the least number of courses in these students? | CREATE TABLE student_course_registrations (student_id VARCHAR) | SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
3,
23,
26,
13,
481,
113,
3366,
128,
2996,
68,
8,
709,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
5200,
1628,
350,
4630,
6880,
272,
476,
1236,
834,
23,
26,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many elected catagories are there for the district with Saxby Chambliss as the incumbent? | CREATE TABLE table_26336739_1 (elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4201,
3708,
3288,
834,
536,
41,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8160,
1712,
9,
839,
2593,
33,
132,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19971,
61,
21680,
953,
834,
2688,
4201,
3708,
3288,
834,
536,
549,
17444,
427,
28406,
3274,
96,
134,
9,
226,
969,
18529,
7437,
7,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.