NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
List the ids, names and market shares of all browsers. | CREATE TABLE browser (
id VARCHAR,
name VARCHAR,
market_share VARCHAR
) | SELECT id, name, market_share FROM browser | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3509,
41,
3,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
512,
834,
12484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3,
23,
26,
7,
6,
3056,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23,
26,
6,
564,
6,
512,
834,
12484,
21680,
3509,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30? | CREATE TABLE table_50769 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Wins") FROM table_50769 WHERE "Losses" < '10' AND "Goal Difference" < '46' AND "Goals for" < '63' AND "Played" < '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
940,
3951,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
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,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
1752,
940,
3951,
549,
17444,
427,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
6221,
138,
27187,
121,
3,
2,
3,
31,
4448,
31,
3430,
96,
6221,
540... |
What circuit is the Vi Rhein-Pokalrennen race in? | CREATE TABLE table_1140090_6 (
circuit VARCHAR,
race_name VARCHAR
) | SELECT circuit FROM table_1140090_6 WHERE race_name = "VI Rhein-Pokalrennen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
5548,
2394,
834,
948,
41,
4558,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,
19,
8,
1813,
17565,
18,
345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4558,
21680,
953,
834,
2596,
5548,
2394,
834,
948,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
7765,
17565,
18,
345,
32,
4766,
23292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Call sign of k43hb-ld is what virtual channel? | CREATE TABLE table_name_13 (
virtual_channel VARCHAR,
call_sign VARCHAR
) | SELECT virtual_channel FROM table_name_13 WHERE call_sign = "k43hb-ld" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4291,
834,
19778,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2571,
1320,
13,
3,
157,
4906,
107,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4291,
834,
19778,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
4906,
107,
115,
18,
40,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team was ranked in 7th? | CREATE TABLE table_24765815_1 (team VARCHAR, rank VARCHAR) | SELECT team FROM table_24765815_1 WHERE rank = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3959,
3449,
1808,
834,
536,
41,
11650,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
3,
8232,
16,
489,
189,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2266,
3959,
3449,
1808,
834,
536,
549,
17444,
427,
11003,
3274,
96,
940,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which 1st Member has an Election of 1895? | CREATE TABLE table_name_23 (election VARCHAR) | SELECT 1 AS st_member FROM table_name_23 WHERE election = "1895" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
15,
12252,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
209,
7,
17,
8541,
65,
46,
19488,
13,
507,
3301,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
12066,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
4356,
3274,
96,
25312,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which width had an entered service year of 2010? | CREATE TABLE table_name_3 (
width VARCHAR,
entered_service VARCHAR
) | SELECT width FROM table_name_3 WHERE entered_service = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
9400,
584,
4280,
28027,
6,
5136,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9400,
141,
46,
5136,
313,
215,
13,
2735,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9400,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
5136,
834,
5114,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of students in one classroom. | CREATE TABLE list (classroom VARCHAR) | SELECT COUNT(*), classroom FROM list GROUP BY classroom | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
4057,
3082,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
381,
13,
481,
16,
80,
4858,
5,
1,
0,
0,
0,
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,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
4858,
21680,
570,
350,
4630,
6880,
272,
476,
4858,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the final win percentage of the Sault Ste. Marie Greyhounds? | CREATE TABLE table_21895 (
"Tournament Appearances" real,
"Team" text,
"League" text,
"Wins" real,
"Final Losses" real,
"Semi-Final Losses" real,
"Fourth-Place*" real,
"Final Win %" text,
"Years of appearance" text
) | SELECT "Final Win %" FROM table_21895 WHERE "Team" = 'Sault Ste. Marie Greyhounds' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
3301,
41,
96,
382,
1211,
20205,
17,
2276,
2741,
663,
7,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
4871,
3,
1454,
121,
21680,
953,
834,
357,
2606,
3301,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
10335,
3557,
5,
9541,
12630,
26219,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose days of hospital stay is greater than 4 and lab test category is hematology? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "4" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the station with a number greater than 9 and a distance of 16.4 km? | CREATE TABLE table_name_10 (
station VARCHAR,
number VARCHAR,
distance__km_ VARCHAR
) | SELECT station FROM table_name_10 WHERE number > 9 AND distance__km_ = 16.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2478,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
6,
2357,
834,
834,
5848,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2478,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
381,
2490,
668,
3430,
2357,
834,
834,
5848,
834,
3274,
10128,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the different carriers for devices, listed in alphabetical order? | CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
) | SELECT carrier FROM device ORDER BY carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
1814,
834,
23,
26,
381,
6,
1814,
834,
4350,
1499,
6,
1128,
1499,
6,
539,
834,
5522,
1499,
6,
539,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9568,
21680,
1407,
4674,
11300,
272,
476,
9568,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the the voice actor (japanese) with character name being goku | CREATE TABLE table_1410384_1 (
voice_actor__japanese_ VARCHAR,
character_name VARCHAR
) | SELECT voice_actor__japanese_ FROM table_1410384_1 WHERE character_name = "Goku" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
17864,
4608,
834,
536,
41,
2249,
834,
9,
5317,
834,
834,
1191,
2837,
15,
7,
15,
834,
584,
4280,
28027,
6,
1848,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2249,
834,
9,
5317,
834,
834,
1191,
2837,
15,
7,
15,
834,
21680,
953,
834,
2534,
17864,
4608,
834,
536,
549,
17444,
427,
1848,
834,
4350,
3274,
96,
517,
18512,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Daily Empress Indy Silverstone took place on which round? | CREATE TABLE table_22673956_1 (
rnd INTEGER,
race_name VARCHAR
) | SELECT MAX(rnd) FROM table_22673956_1 WHERE race_name = "Daily Empress Indy Silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3708,
3288,
4834,
834,
536,
41,
3,
52,
727,
3,
21342,
17966,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8496,
3967,
4715,
86,
26,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
52,
727,
61,
21680,
953,
834,
2884,
3708,
3288,
4834,
834,
536,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
308,
9,
9203,
3967,
4715,
86,
26,
63,
5642,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
how much is the minimum hospital bill that includes bradycardia? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'bradycardia')) GROUP BY cost.patienthealthsystemstayid) AS t1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
17,
5411,
75,
6982,
21680,
41,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
6157,
3,
75,
536,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868... |
What is the score for the United States when Harry Hampton is the player and the money is $73? | CREATE TABLE table_name_23 (
score VARCHAR,
player VARCHAR,
country VARCHAR,
money___$__ VARCHAR
) | SELECT score FROM table_name_23 WHERE country = "united states" AND money___$__ = "73" AND player = "harry hampton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
540,
834,
834,
834,
3229,
834,
834,
3274,
96,
4552,
121,
3430,
1959,
3274,
96,
3272,
651,
3,
1483,
11632,
121,
... |
Who's the opponent when Diegomar Markwell is the loss? | CREATE TABLE table_37119 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Opponent" FROM table_37119 WHERE "Loss" = 'diegomar markwell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
19993,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4118,
19993,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
2498,
839,
1635,
3946,
2091,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is diagnoses short title and diagnoses long title of subject id 23733? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "23733" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
6,
18730,
7,
5,
2961,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
357,
4118,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team at MCG? | CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_39 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
44,
283,
12150,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the rookie for ryan powell | CREATE TABLE table_23265433_2 (rookie VARCHAR, offensive VARCHAR) | SELECT rookie FROM table_23265433_2 WHERE offensive = "Ryan Powell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2688,
5062,
4201,
834,
357,
41,
52,
21132,
584,
4280,
28027,
6,
12130,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
24188,
21,
3,
651,
152,
1977,
2091,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24188,
21680,
953,
834,
2773,
2688,
5062,
4201,
834,
357,
549,
17444,
427,
12130,
3274,
96,
448,
63,
152,
26458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the name and phone of the customer with the most ordered product quantity? | CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) | SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY SUM(T3.order_quantity) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
455,
834,
23,
3524,
7,
41,
9397,
834,
23,
26,
584,
4280,
28027,
6,
455,
834,
13158,
485,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
25697,
49,
834,
4350,
6,
332,
5411,
25697,
49,
834,
6399,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
884,
834,
9397,
7,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
... |
how many patients whose year of birth is less than 2103 and diagnoses short title is preterm nec 1250-1499g? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2103" AND diagnoses.short_title = "Preterm NEC 1250-1499g" | [
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 production code for episode 31 in the series? | CREATE TABLE table_23937219_3 (prod_code INTEGER, series__number VARCHAR) | SELECT MIN(prod_code) FROM table_23937219_3 WHERE series__number = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4271,
5865,
2294,
834,
519,
41,
1409,
26,
834,
4978,
3,
21342,
17966,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1409,
26,
834,
4978,
61,
21680,
953,
834,
2773,
4271,
5865,
2294,
834,
519,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match? | CREATE TABLE table_name_1 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) | SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = "4:1" AND house_edge = "3.63%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
4135,
76,
2296,
584,
4280,
28027,
6,
529,
834,
10967,
834,
19515,
584,
4280,
28027,
6,
629,
834,
9390,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8405,
6157,
529,
834,
10967,
834,
19515,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
529,
834,
10967,
834,
19515,
3274,
96,
591,
10,
536,
121,
3430,
629,
834,
9390,
3274,
96,
23074,
5170,
121,
1,
-100,
-100,
-... |
Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15? | CREATE TABLE table_name_63 (
real_betis_career VARCHAR,
goals VARCHAR,
appearances VARCHAR,
nationality VARCHAR
) | SELECT real_betis_career FROM table_name_63 WHERE appearances < 98 AND nationality = "spain" AND goals > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
490,
834,
346,
17,
159,
834,
2864,
49,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
3179,
7,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
490,
834,
346,
17,
159,
834,
2864,
49,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3179,
7,
3,
2,
3,
3916,
3430,
1157,
485,
3274,
96,
14147,
77,
121,
3430,
1766,
2490,
627,
1,
-100,
-100,
-100,
-100,
-100,
... |
What venue did Richmond play as the away team? | CREATE TABLE table_32188 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_32188 WHERE "Away team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
25794,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
2668,
25794,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was Margaret Court's opponent on clay in 1975? | CREATE TABLE table_name_84 (
opponents VARCHAR,
year VARCHAR,
surface VARCHAR,
partner VARCHAR
) | SELECT opponents FROM table_name_84 WHERE surface = "clay" AND partner = "margaret court" AND year = 1975 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
16383,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16383,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
2397,
3274,
96,
1635,
1478,
15,
17,
1614,
121,
3430,
215,
3274,
16312,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose marital status is married and lab test name is oxygen? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Oxygen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Where was the game in which Carl Landry (25) did the most high points played? | CREATE TABLE table_23281862_6 (
location_attendance VARCHAR,
high_points VARCHAR
) | SELECT location_attendance FROM table_23281862_6 WHERE high_points = "Carl Landry (25)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
2606,
4056,
834,
948,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2577,
2606,
4056,
834,
948,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
6936,
40,
2216,
651,
4743,
9120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 1984, when 1979 is '1R'? | CREATE TABLE table_name_94 (
Id VARCHAR
) | SELECT 1984 FROM table_name_94 WHERE 1979 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
13480,
6,
116,
15393,
19,
3,
31,
536,
448,
31,
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,
13480,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
15393,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What nationality is the player ranked 2? | CREATE TABLE table_name_83 (
country VARCHAR,
rank VARCHAR
) | SELECT country FROM table_name_83 WHERE rank = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
684,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
19,
8,
1959,
3,
8232,
204,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
11003,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701? | CREATE TABLE table_name_22 (feet INTEGER, longitude__e_ VARCHAR, prominence__m_ VARCHAR) | SELECT MIN(feet) FROM table_name_22 WHERE longitude__e_ = "76°34′06″" AND prominence__m_ < 1 OFFSET 701 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
89,
15,
15,
17,
3,
21342,
17966,
6,
307,
20341,
834,
834,
15,
834,
584,
4280,
28027,
6,
31829,
834,
834,
51,
834,
584,
4280,
28027,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
89,
15,
15,
17,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
307,
20341,
834,
834,
15,
834,
3274,
96,
3959,
1956,
3710,
17774,
5176,
7079,
121,
3430,
31829,
834,
834,
51,
834,
3,
2,
209,
... |
What is Country, when Place is 'Torino'? | CREATE TABLE table_name_72 (
country VARCHAR,
place VARCHAR
) | SELECT country FROM table_name_72 WHERE place = "torino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
3399,
19,
3,
31,
382,
127,
77,
32,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
286,
3274,
96,
3600,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
calculate the maximum age of divorced patients who had urgent hospital admission. | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admission_type = "URGENT" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6... |
Which party is associated with the candidate Albert Sidney Camp (D) unopposed? | CREATE TABLE table_1342233_11 (party VARCHAR, candidates VARCHAR) | SELECT COUNT(party) FROM table_1342233_11 WHERE candidates = "Albert Sidney Camp (D) Unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
2596,
41,
8071,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
19,
1968,
28,
8,
4775,
11375,
925,
26,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
2368,
4165,
20879,
834,
2596,
549,
17444,
427,
4341,
3274,
96,
25691,
49,
17,
925,
26,
3186,
4594,
41,
308,
61,
597,
28236,
3843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Who belongs to the Bologna Milan club? | CREATE TABLE table_name_62 (player VARCHAR, club VARCHAR) | SELECT player FROM table_name_62 WHERE club = "bologna milan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
20846,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
16952,
12,
8,
8166,
32,
11260,
14556,
1886,
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,
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,
1959,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1886,
3274,
96,
4243,
32,
11260,
1337,
1618,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game hosted at Queen's Park Oval? | CREATE TABLE table_name_30 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_30 WHERE venue = "queen's park oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
6523,
44,
5286,
31,
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,
741,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
5669,
3274,
96,
835,
35,
31,
7,
2447,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the rings number is 60.000, what is the number for the vault? | CREATE TABLE table_18662026_1 (
vault VARCHAR,
rings VARCHAR
) | SELECT COUNT(vault) FROM table_18662026_1 WHERE rings = "60.000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
26898,
2688,
834,
536,
41,
28368,
584,
4280,
28027,
6,
10631,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
10631,
381,
19,
431,
5311,
6,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
208,
10335,
61,
21680,
953,
834,
25398,
26898,
2688,
834,
536,
549,
17444,
427,
10631,
3274,
96,
948,
5311,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year that the tournament was played in Cape Town, South Africa? | CREATE TABLE table_42128 (
"Year" real,
"Country" text,
"Team" text,
"Individual" text,
"Location" text,
"Runners-up" text
) | SELECT MIN("Year") FROM table_42128 WHERE "Location" = 'cape town, south africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2658,
2577,
41,
96,
476,
2741,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
1570,
26,
23,
6961,
3471,
121,
1499,
6,
96,
434,
32,
75,
257... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
591,
2658,
2577,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
4010,
15,
1511,
6,
3414,
24040,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3? | CREATE TABLE table_name_25 (silver INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT MAX(silver) FROM table_name_25 WHERE gold = 1 AND nation = "djibouti" AND total < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
7,
173,
624,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2045,
3274,
209,
3430,
2982,
3274,
96,
26,
354,
23,
4076,
17,
23,
121,
3430,
792,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What power has A as the class, and 93.7 as the frequency? | CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR) | SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6740,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
579,
65,
71,
38,
8,
853,
6,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
579,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
853,
3274,
96,
9,
121,
3430,
7321,
3274,
96,
1298,
25168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the total losses for 4 place and ties less than 0 | CREATE TABLE table_32066 (
"Place" real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" text
) | SELECT COUNT("Losses") FROM table_32066 WHERE "Place" = '4' AND "Ties" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15003,
3539,
41,
96,
345,
11706,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
382,
725,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
15003,
3539,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
591,
31,
3430,
96,
382,
725,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What competition is located in bamako? | CREATE TABLE table_78197 (
"Date" text,
"Location" text,
"Opponent" text,
"Score" text,
"Competition" text
) | SELECT "Competition" FROM table_78197 WHERE "Location" = 'bamako' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
27181,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
4749,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3940,
27181,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
115,
265,
1639,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the distinct first names of the students who have class president votes? | CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT DISTINCT T1.fname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.class_senator_vote | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10601,
834,
60,
7621,
41,
21341,
23,
26,
381,
6,
3816,
834,
5522,
1499,
6,
4356,
834,
10136,
1499,
6,
2753,
834,
1621,
17,
15,
381,
6,
6444,
834,
102,
15704,
834,
1621,
17,
15,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
89,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
10601,
834,
60,
7621,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
4057,
834,
7,
35,
1016,
834,
1621... |
what was the next album after kitty wells ? | CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
) | SELECT "album" FROM table_204_500 WHERE id = (SELECT id FROM table_204_500 WHERE "album" = 'kitty wells') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2560,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
14661,
5059,
4655,
2,
29,
302,
684,
121,
381,
6,
96,
14661,
5059,
4655,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23703,
121,
21680,
953,
834,
26363,
834,
2560,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
2560,
549,
17444,
427,
96,
23703,
121,
3274,
3,
31,
157,
17132,
168,
7... |
What round had a time of 0:39? | CREATE TABLE table_name_21 (
round INTEGER,
time VARCHAR
) | SELECT MIN(round) FROM table_name_21 WHERE time = "0:39" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1751,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
141,
3,
9,
97,
13,
3,
632,
10,
3288,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
97,
3274,
96,
632,
10,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What chassis did the BRM V8 engine have? | CREATE TABLE table_name_92 (
chassis VARCHAR,
engine VARCHAR
) | SELECT chassis FROM table_name_92 WHERE engine = "brm v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
22836,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22836,
410,
8,
272,
7336,
584,
927,
1948,
43,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1948,
3274,
96,
115,
52,
51,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare the total number of journalist with different nationality using a bar chart, and list in descending by the Nationality. | CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
) | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1506,
834,
60,
1493,
41,
9994,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
6,
3118,
834,
25160,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
24732,
485,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Nationality of the Aracataca Ship? | CREATE TABLE table_name_17 (
nationality VARCHAR,
ship VARCHAR
) | SELECT nationality FROM table_name_17 WHERE ship = "aracataca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1157,
485,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
13,
8,
1533,
9,
2138,
9,
658,
155... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
4383,
3274,
96,
2551,
2138,
9,
658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which city has an ICAO of Kiah? | CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR) | SELECT city FROM table_name_59 WHERE icao = "kiah" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
6726,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
65,
46,
3,
15038,
667,
13,
4320,
9,
107,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
2617,
32,
3274,
96,
2168,
9,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the loss of the game attended by 37,119? | CREATE TABLE table_name_24 (
loss VARCHAR,
attendance VARCHAR
) | SELECT loss FROM table_name_24 WHERE attendance = "37,119" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1453,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1453,
13,
8,
467,
5526,
57,
6862,
6,
19993,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
11364,
3274,
96,
4118,
6,
19993,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the tongyong for qiaotou | CREATE TABLE table_17015_2 (tongyong VARCHAR, hanyu VARCHAR) | SELECT COUNT(tongyong) FROM table_17015_2 WHERE hanyu = "Qiaotou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
1808,
834,
357,
41,
17,
2444,
63,
2444,
584,
4280,
28027,
6,
3,
2618,
63,
76,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
12,
1725,
63,
2444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17,
2444,
63,
2444,
61,
21680,
953,
834,
536,
2518,
1808,
834,
357,
549,
17444,
427,
3,
2618,
63,
76,
3274,
96,
2247,
23,
9,
32,
17,
1063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the director of the episode that corresponds to the total episodes number 14? | CREATE TABLE table_14330096_3 (director VARCHAR, total_number VARCHAR) | SELECT director FROM table_14330096_3 WHERE total_number = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
5426,
4314,
834,
519,
41,
25982,
584,
4280,
28027,
6,
792,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2090,
13,
8,
5640,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
25133,
5426,
4314,
834,
519,
549,
17444,
427,
792,
834,
5525,
1152,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of courses for each subject in a bar chart, and could you show in asc by the y axis? | CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
) | SELECT subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
41,
2291,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
584,
4280,
28027,
17867,
6,
11255,
834,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1426,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
8670,
7,
6157,
332,
536,
3,
15355,
3162,
19237,
7,
6157,
332,
357,
9191,
332,
5411,
7304,
11827,
834,
23,
26,
3274,
332,
4416,
7304,
11827,
834,
23,
26,
350,
... |
Name the replaced by for racing santander | CREATE TABLE table_name_64 (replaced_by VARCHAR, team VARCHAR) | SELECT replaced_by FROM table_name_64 WHERE team = "racing santander" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5821,
57,
21,
8191,
3,
7,
288,
11849,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5821,
834,
969,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
372,
3274,
96,
3738,
53,
3,
7,
288,
11849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the envelopment for the rhabdoviridae family? | CREATE TABLE table_43230 (
"Family" text,
"Baltimore group" text,
"envelopment" text,
"Virion shape" text,
"Replication site" text
) | SELECT "envelopment" FROM table_43230 WHERE "Family" = 'rhabdoviridae' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
13427,
41,
96,
371,
3690,
120,
121,
1499,
6,
96,
279,
2920,
23,
3706,
563,
121,
1499,
6,
96,
15,
17430,
297,
121,
1499,
6,
96,
21031,
23,
106,
2346,
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,
15,
17430,
297,
121,
21680,
953,
834,
4906,
13427,
549,
17444,
427,
96,
371,
3690,
120,
121,
3274,
3,
31,
52,
6111,
26,
9881,
4055,
9,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12? | CREATE TABLE table_name_62 (
episode VARCHAR,
share VARCHAR,
viewers__millions_ VARCHAR,
weekly_rank VARCHAR
) | SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
5640,
584,
4280,
28027,
6,
698,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
5547,
834,
6254,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5640,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
2490,
7806,
2688,
3430,
5547,
834,
6254,
3274,
96,
4663,
927,
121,
3430,
698,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pick # for player wes lysack? | CREATE TABLE table_21321804_1 (
pick__number VARCHAR,
player VARCHAR
) | SELECT pick__number FROM table_21321804_1 WHERE player = "Wes Lysack" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2668,
2606,
6348,
834,
536,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1432,
1713,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
2658,
2668,
2606,
6348,
834,
536,
549,
17444,
427,
1959,
3274,
96,
1326,
7,
5225,
15525,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the manager of the Stenhousemuir club? | CREATE TABLE table_32410 (
"Manager" text,
"Nationality" text,
"Date of Birth and Age" text,
"Club" text,
"Division" text
) | SELECT "Manager" FROM table_32410 WHERE "Club" = 'stenhousemuir' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
24175,
41,
96,
27272,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
13,
26337,
11,
7526,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
308,
23,
6610,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27272,
121,
21680,
953,
834,
2668,
24175,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
1913,
1840,
51,
76,
23,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many touchdowns were there with QB rating of 66.6? | CREATE TABLE table_20906175_3 (
touchdowns VARCHAR,
qb_rating VARCHAR
) | SELECT touchdowns FROM table_20906175_3 WHERE qb_rating = "66.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2394,
4241,
3072,
834,
519,
41,
19396,
7,
584,
4280,
28027,
6,
3,
1824,
115,
834,
52,
1014,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
19396,
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,
19396,
7,
21680,
953,
834,
1755,
2394,
4241,
3072,
834,
519,
549,
17444,
427,
3,
1824,
115,
834,
52,
1014,
3274,
96,
948,
28833,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most points when the chassis was Jaguar R3 later than 2002? | CREATE TABLE table_68991 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT MAX("Points") FROM table_68991 WHERE "Chassis" = 'jaguar r3' AND "Year" > '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3264,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3651,
3264,
536,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
1191,
1744,
291,
3,
52,
519,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
24898,
31,
1,
... |
Tell me the lowest interview for oklahoma and swimsuit less than 8.8 | CREATE TABLE table_name_46 (
interview INTEGER,
state VARCHAR,
swimsuit VARCHAR
) | SELECT MIN(interview) FROM table_name_46 WHERE state = "oklahoma" AND swimsuit < 8.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
2772,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
2772,
21,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
538,
3274,
96,
32,
8142,
10207,
9,
121,
3430,
9728,
7628,
3,
2,
4848,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank? | CREATE TABLE table_7178 (
"Year" real,
"League" text,
"Average Attendance" real,
"# of Home Games" real,
"League Rank" text,
"Canada - USA Rank" text
) | SELECT "League Rank" FROM table_7178 WHERE "Year" > '2011' AND "Canada - USA Rank" = '46th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3940,
41,
96,
476,
2741,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
188,
624,
545,
22497,
663,
121,
490,
6,
96,
4663,
13,
1210,
5880,
121,
490,
6,
96,
2796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
5398,
3,
22557,
121,
21680,
953,
834,
4450,
3940,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
13907,
31,
3430,
96,
28811,
3,
18,
2312,
3,
22557,
121,
3274,
3,
31,
4448,
189,
31,
1,
-100,
-100,... |
Which room has cheapest base price? List the room's name and the base price. | CREATE TABLE Rooms (
roomName VARCHAR,
basePrice VARCHAR
) | SELECT roomName, basePrice FROM Rooms ORDER BY basePrice LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
562,
23954,
584,
4280,
28027,
6,
1247,
345,
4920,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
562,
65,
3,
14575,
1247,
594,
58,
6792,
8,
562,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
562,
23954,
6,
1247,
345,
4920,
21680,
4181,
7,
4674,
11300,
272,
476,
1247,
345,
4920,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Season has a Home of 0 1? | CREATE TABLE table_50029 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Season" FROM table_50029 WHERE "Home" = '0–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
3166,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
2560,
3166,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
632,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the production number for episode 23? | CREATE TABLE table_2370579_1 (
prod__number INTEGER,
episode__number VARCHAR
) | SELECT MIN(prod__number) FROM table_2370579_1 WHERE episode__number = 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4118,
3076,
4440,
834,
536,
41,
813,
26,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1409,
26,
834,
834,
5525,
1152,
61,
21680,
953,
834,
357,
4118,
3076,
4440,
834,
536,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which average Drawn has Games larger than 7? | CREATE TABLE table_name_29 (
drawn INTEGER,
games INTEGER
) | SELECT AVG(drawn) FROM table_name_29 WHERE games > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6796,
3,
21342,
17966,
6,
1031,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1348,
19183,
29,
65,
5880,
2186,
145,
489,
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,
71,
17217,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1031,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the newest season? | CREATE TABLE table_73282 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) | SELECT MAX("Season") FROM table_73282 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2577,
357,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
427,
102,
159,
32,
221,
20698,
121,
1499,
6,
96,
10572,
51,
972,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
4552,
2577,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the name of the team and the acc during the regular season for the school that was founded the earliest. | CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text,
acc_percent text,
acc_home text,
acc_road text,
all_games text,
all_games_percent number,
all_home text,
all_road text,
all_neutral text
)
CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
) | SELECT t2.team_name, t2.acc_regular_season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
372,
834,
23,
26,
381,
6,
496,
834,
23,
26,
381,
6,
372,
834,
4350,
1499,
6,
3,
6004,
834,
60,
122,
4885,
834,
9476,
1499,
6,
3,
6004,
834,
883,
3728,
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,
3,
17,
4416,
11650,
834,
4350,
6,
3,
17,
4416,
6004,
834,
60,
122,
4885,
834,
9476,
21680,
3819,
6157,
3,
17,
536,
3,
15355,
3162,
8498,
834,
19515,
6157,
3,
17,
357,
9191,
3,
17,
5411,
6646,
834,
23,
26,
3274,
... |
If in English it's house, what is it in proto-semitic? | CREATE TABLE table_74054 (
"English" text,
"Proto-Semitic" text,
"Akkadian" text,
"Arabic" text,
"Aramaic" text,
"Hebrew" text,
"Geez" text,
"Mehri" text
) | SELECT "Proto-Semitic" FROM table_74054 WHERE "English" = 'house' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3076,
591,
41,
96,
26749,
121,
1499,
6,
96,
3174,
235,
18,
134,
15,
1538,
447,
121,
1499,
6,
96,
188,
8511,
9,
8603,
121,
1499,
6,
96,
188,
7093,
447,
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,
3174,
235,
18,
134,
15,
1538,
447,
121,
21680,
953,
834,
4581,
3076,
591,
549,
17444,
427,
96,
26749,
121,
3274,
3,
31,
1840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the latitude is 76°25′n, what is the longitude? | CREATE TABLE table_name_52 (longitude VARCHAR, latitude VARCHAR) | SELECT longitude FROM table_name_52 WHERE latitude = "76°25′n" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2961,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
50,
6592,
19,
3,
3959,
1956,
1828,
17774,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
307,
20341,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
50,
6592,
3274,
96,
3959,
1956,
1828,
17774,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Did any team score games that totaled up to 860.5? | CREATE TABLE table_1059743_1 (play_off VARCHAR, points VARCHAR) | SELECT play_off FROM table_1059743_1 WHERE points = "860.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
4327,
4906,
834,
536,
41,
4895,
834,
1647,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3963,
136,
372,
2604,
1031,
24,
792,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
577,
834,
1647,
21680,
953,
834,
12869,
4327,
4906,
834,
536,
549,
17444,
427,
979,
3274,
96,
3840,
12100,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Claude Harmon's Place? | CREATE TABLE table_name_37 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_37 WHERE player = "claude harmon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
19298,
22113,
31,
7,
3399,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1959,
3274,
96,
75,
12513,
15,
6263,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
At a longitude of 109.9e, how many features were found? | CREATE TABLE table_72810 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
) | SELECT COUNT("Diameter (km)") FROM table_72810 WHERE "Longitude" = '109.9E' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
1714,
41,
96,
23954,
121,
1499,
6,
96,
3612,
6592,
121,
1499,
6,
96,
434,
2444,
20341,
121,
1499,
6,
96,
23770,
4401,
41,
5848,
61,
121,
1499,
6,
96,
476,
2741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23770,
4401,
41,
5848,
61,
8512,
21680,
953,
834,
940,
2577,
1714,
549,
17444,
427,
96,
434,
2444,
20341,
121,
3274,
3,
31,
17304,
5,
1298,
427,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which side has Vischer as the inscription? | CREATE TABLE table_8985 (
"Side" text,
"Group" text,
"Inscription" text,
"Official history" text,
"Identification" text
) | SELECT "Side" FROM table_8985 WHERE "Inscription" = 'vischer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
4433,
41,
96,
134,
1599,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
1570,
11830,
121,
1499,
6,
96,
667,
89,
22816,
892,
121,
1499,
6,
96,
21153,
2420,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
1599,
121,
21680,
953,
834,
3914,
4433,
549,
17444,
427,
96,
1570,
11830,
121,
3274,
3,
31,
208,
8421,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the smallest crowd at a home game of carlton? | CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
17924,
4374,
44,
3,
9,
234,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many touchdowns did anthony hines and boo williams have altogether ? | CREATE TABLE table_203_8 (
id number,
"player" text,
"rec." number,
"yards" number,
"avg." number,
"td's" number,
"long" number
) | SELECT SUM("td's") FROM table_203_8 WHERE "player" IN ('anthony hines', 'boo williams') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
60,
75,
535,
381,
6,
96,
6636,
7,
121,
381,
6,
96,
9,
208,
122,
535,
381,
6,
96,
17,
26,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
17,
26,
31,
7,
8512,
21680,
953,
834,
23330,
834,
927,
549,
17444,
427,
96,
20846,
121,
3388,
41,
31,
152,
189,
106,
63,
3811,
15,
7,
31,
6,
3,
31,
12840,
56,
23,
265,
7,
31,
61,
1,
-100... |
How many trains arrive at 11:00? | CREATE TABLE table_27011761_2 (
train_no VARCHAR,
arrival VARCHAR
) | SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
20275,
4241,
834,
357,
41,
2412,
834,
29,
32,
584,
4280,
28027,
6,
6870,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14053,
3658,
44,
25222,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9719,
834,
29,
32,
61,
21680,
953,
834,
17485,
20275,
4241,
834,
357,
549,
17444,
427,
6870,
3274,
96,
536,
24294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the number of races in the season in which the team placed on the 14th position? | CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR) | SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4853,
25946,
834,
536,
41,
12614,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
381,
13,
10879,
16,
8,
774,
16,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
12614,
7,
61,
21680,
953,
834,
27181,
4853,
25946,
834,
536,
549,
17444,
427,
1102,
3274,
96,
2534,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What venue did the 2000 tiger cup take place at on November 10, 2000? | CREATE TABLE table_name_29 (
venue VARCHAR,
competition VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_29 WHERE competition = "2000 tiger cup" AND date = "november 10, 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
410,
8,
2766,
3,
17,
4424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2259,
3274,
96,
13527,
3,
17,
4424,
4119,
121,
3430,
833,
3274,
96,
5326,
18247,
10372,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of Distance ( ly ), when Constellation is "Draco"? | CREATE TABLE table_name_34 (distance___ly__ VARCHAR, constellation VARCHAR) | SELECT COUNT(distance___ly__) FROM table_name_34 WHERE constellation = "draco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
26,
23,
8389,
834,
834,
834,
120,
834,
834,
584,
4280,
28027,
6,
30872,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
8389,
834,
834,
834,
120,
834,
834,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
30872,
3274,
96,
3515,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose discharge location is home health care and procedure icd9 code is 3892? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.icd9_code = "3892" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was the author for company Buzz Productions Theater? | CREATE TABLE table_name_18 (
author VARCHAR,
company VARCHAR
) | SELECT author FROM table_name_18 WHERE company = "buzz productions theater" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
2291,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2291,
21,
349,
23211,
11114,
7,
10639,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2291,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
349,
3274,
96,
18579,
172,
999,
7,
8701,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many different counts of the Raiders first downs are there for the game number 9? | CREATE TABLE table_72985 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Raiders points" real,
"Opponents" real,
"Raiders first downs" real,
"Record" text,
"Attendance" real
) | SELECT COUNT("Raiders first downs") FROM table_72985 WHERE "Game" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3166,
4433,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
18900,
7,
979,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
18900,
7,
166,
323,
7,
8512,
21680,
953,
834,
940,
3166,
4433,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
among patients who had a hospital stay for more than 14 days, how many of them were discharged to home? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "14" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
... |
What is the alternate of the nation with hubert gr ndhammer as the second? | CREATE TABLE table_36155 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
) | SELECT "Alternate" FROM table_36155 WHERE "Second" = 'hubert gründhammer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
20896,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
40,
2947,
342,
121,
21680,
953,
834,
3420,
20896,
549,
17444,
427,
96,
134,
15,
1018,
26,
121,
3274,
3,
31,
16420,
49,
17,
3,
11059,
26,
1483,
935,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did the season that end in July ? start? | CREATE TABLE table_1949994_7 (start_date VARCHAR, end_date VARCHAR) | SELECT start_date FROM table_1949994_7 WHERE end_date = "July ?" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3647,
3264,
591,
834,
940,
41,
10208,
834,
5522,
584,
4280,
28027,
6,
414,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
774,
24,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
456,
834,
5522,
21680,
953,
834,
2294,
3647,
3264,
591,
834,
940,
549,
17444,
427,
414,
834,
5522,
3274,
96,
683,
83,
63,
3,
4609,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the length of the game where the Baltimore Colts were at home? | CREATE TABLE table_name_95 (length_of_game VARCHAR, home_team VARCHAR) | SELECT length_of_game FROM table_name_95 WHERE home_team = "baltimore colts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
19457,
834,
858,
834,
7261,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2475,
13,
8,
467,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2475,
834,
858,
834,
7261,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3849,
17,
23,
3706,
7632,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the place for score of 67-70=137 and stuart appleby | CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR) | SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
286,
21,
2604,
13,
3,
3708,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2604,
3274,
3,
3708,
3,
18,
2861,
3274,
3,
24636,
3430,
1959,
3274,
96,
7,
17,
76,
1408,
8947,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the number of the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'?, and display by the X-axis in descending please. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" ORDER BY Date_of_Birth DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
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,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
2847,
17161,
599,
308,
342,
834,
858,
834,
279,
23,
52,
189,
61,
21680,
3,
12290,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
... |
What is the lowest rank when Jianshu is smaller than 9.66, for Richard Devine ( gbr ), with a total smaller than 19.02? | CREATE TABLE table_12361 (
"Rank" real,
"Athlete" text,
"Qiangshu" real,
"Jianshu" real,
"Total" real
) | SELECT MIN("Rank") FROM table_12361 WHERE "Jianshu" < '9.66' AND "Athlete" = 'richard devine ( gbr )' AND "Total" < '19.02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
4241,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
2247,
23,
1468,
14279,
121,
490,
6,
96,
683,
23,
152,
14279,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
14574,
4241,
549,
17444,
427,
96,
683,
23,
152,
14279,
121,
3,
2,
3,
31,
8797,
3539,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
3723,
986,
15553,
41,
3,... |
What year was Kirkland founded? | CREATE TABLE table_13759592_2 (
founded VARCHAR,
location VARCHAR
) | SELECT founded FROM table_13759592_2 WHERE location = "Kirkland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3072,
3301,
4508,
834,
357,
41,
5710,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
17839,
40,
232,
5710,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5710,
21680,
953,
834,
2368,
3072,
3301,
4508,
834,
357,
549,
17444,
427,
1128,
3274,
96,
439,
12546,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the first leg score for the match with a team 1 of Panathinaikos? | CREATE TABLE table_name_59 (
team_1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_59 WHERE team_1 = "panathinaikos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
4553,
2604,
21,
8,
1588,
28,
3,
9,
372,
209,
13,
4266,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
372,
834,
536,
3274,
96,
2837,
144,
2907,
9,
12027,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Laps have a Driver of satrio hermanto? | CREATE TABLE table_name_76 (
laps INTEGER,
driver VARCHAR
) | SELECT SUM(laps) FROM table_name_76 WHERE driver = "satrio hermanto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
14941,
7,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
325,
102,
7,
43,
3,
9,
10546,
13,
3,
7,
9,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2535,
3274,
96,
7,
9,
1788,
32,
160,
348,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all the locations with at least two cinemas with capacity above 300. | CREATE TABLE cinema (
LOCATION VARCHAR,
capacity INTEGER
) | SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
301,
5618,
8015,
584,
4280,
28027,
6,
2614,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
8,
3248,
28,
44,
709,
192,
10276,
7,
28,
2614,
756,
3147,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
301,
5618,
8015,
21680,
10276,
549,
17444,
427,
2614,
2490,
3147,
350,
4630,
6880,
272,
476,
301,
5618,
8015,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team played in the Boston Garden when the final score was L 118-130? | CREATE TABLE table_name_18 (team VARCHAR, location_attendance VARCHAR, score VARCHAR) | SELECT team FROM table_name_18 WHERE location_attendance = "boston garden" AND score = "l 118-130" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
11650,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
1944,
16,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
115,
32,
4411,
2004,
121,
3430,
2604,
3274,
96,
40,
3,
20056,
18,
21448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amount of hire_date bin hire_date by time in a bar chart, display by the y-axis in descending. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
How many car models are produced by each maker ? Only list the count and the maker full name . | CREATE TABLE model_list (maker VARCHAR); CREATE TABLE car_makers (fullname VARCHAR, id VARCHAR) | SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
825,
834,
3350,
41,
8337,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
443,
834,
8910,
41,
1329,
40,
4350,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
3,
17,
4416,
1329,
40,
4350,
21680,
825,
834,
3350,
6157,
3,
17,
536,
3,
15355,
3162,
443,
834,
8910,
6157,
3,
17,
357,
9191,
3,
17,
5411,
8337,
3274,
3,
17,
4416,
23,
26,
350,
4630,... |
Name the player for pick number for 30 | CREATE TABLE table_2090 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Player" FROM table_2090 WHERE "Pick #" = '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2394,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
1755,
2394,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the original airdate when the season number is 4? | CREATE TABLE table_1338 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
) | SELECT "Original air date" FROM table_1338 WHERE "Season #" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3747,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
10,
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,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2368,
3747,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.