NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the total when the nation is brazil (bra) and bronze is more than 2? | CREATE TABLE table_79607 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Total") FROM table_79607 WHERE "Nation" = 'brazil (bra)' AND "Bronze" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3328,
940,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
4440,
3328,
940,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
1939,
702,
40,
41,
1939,
61,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
357,
31,
1,
... |
What is the area (in km2) for the village of Paquetville, with a population over 706? | CREATE TABLE table_9246 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT AVG("Area km 2") FROM table_9246 WHERE "Status" = 'village' AND "Official Name" = 'paquetville' AND "Population" > '706' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
4448,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
864,
2280,
204,
8512,
21680,
953,
834,
4508,
4448,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
208,
17614,
31,
3430,
96,
667,
89,
22816,
5570,
121,
3274,
3,
31,
102,
9,
83... |
What city is in Saskatchewan? | CREATE TABLE table_name_70 (
city VARCHAR,
province VARCHAR
) | SELECT city FROM table_name_70 WHERE province = "saskatchewan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
690,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
19,
16,
30382,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
7985,
3274,
96,
7,
9,
7,
8682,
1033,
3877,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location? | CREATE TABLE table_name_37 (
location VARCHAR,
date VARCHAR,
rank VARCHAR,
time VARCHAR
) | SELECT location FROM table_name_37 WHERE rank < 5 AND time > 10.7 AND date = "10 july 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1128,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
22557,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
11003,
3,
2,
305,
3430,
97,
2490,
5477,
940,
3430,
833,
3274,
96,
1714,
3,
2047,
120,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What skip has angela tuvaeva as the lead? | CREATE TABLE table_name_13 (
skip VARCHAR,
lead VARCHAR
) | SELECT skip FROM table_name_13 WHERE lead = "angela tuvaeva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
11202,
584,
4280,
28027,
6,
991,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11202,
65,
11831,
9,
3,
17,
76,
900,
4721,
38,
8,
991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11202,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
991,
3274,
96,
3280,
521,
3,
17,
76,
900,
4721,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the lowest points for tries of 39 and goals more than 0 | CREATE TABLE table_11879 (
"Player" text,
"Position" text,
"Tries" real,
"Goals" real,
"Points" real
) | SELECT MIN("Points") FROM table_11879 WHERE "Tries" = '39' AND "Goals" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
4440,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
382,
2593,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
22512,
7,
121,
490,
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,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
20056,
4440,
549,
17444,
427,
96,
382,
2593,
121,
3274,
3,
31,
3288,
31,
3430,
96,
6221,
5405,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the change of manager_id over hire_date in a line chart, and show from high to low by the x-axis. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0... | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2,
3... |
What is the total number of patients admitted before the year 2166 who had a lab test for absolute cd4 count? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2166" AND lab.label = "Absolute CD4 Count" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the air date that chris long directed | CREATE TABLE table_1892 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Original air date" FROM table_1892 WHERE "Directed by" = 'Chris Long' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4508,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2606,
4508,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
3541,
52,
159,
3230,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What player is pick #2? | CREATE TABLE table_10960039_1 (
player VARCHAR,
pick__number VARCHAR
) | SELECT player FROM table_10960039_1 WHERE pick__number = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
6007,
3288,
834,
536,
41,
1959,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
1432,
15493,
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,
1959,
21680,
953,
834,
17304,
6007,
3288,
834,
536,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the January playmate with the November playmate Donna Edmondson? | CREATE TABLE table_69254 (
"January" text,
"February" text,
"March" text,
"April" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text
) | SELECT "January" FROM table_69254 WHERE "November" = 'donna edmondson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
1828,
591,
41,
96,
30404,
121,
1499,
6,
96,
31122,
121,
1499,
6,
96,
25019,
121,
1499,
6,
96,
23323,
121,
1499,
6,
96,
683,
444,
121,
1499,
6,
96,
683,
83,
63,
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,
30404,
121,
21680,
953,
834,
3951,
1828,
591,
549,
17444,
427,
96,
28635,
121,
3274,
3,
31,
26,
15822,
3,
15,
26,
6764,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what measurement does the contestant from sindelfingen have? | CREATE TABLE table_26427332_17 (
measurements__in_cm_ VARCHAR,
city VARCHAR
) | SELECT measurements__in_cm_ FROM table_26427332_17 WHERE city = "Sindelfingen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4165,
4552,
2668,
834,
2517,
41,
11110,
834,
834,
77,
834,
75,
51,
834,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
9753,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11110,
834,
834,
77,
834,
75,
51,
834,
21680,
953,
834,
2688,
4165,
4552,
2668,
834,
2517,
549,
17444,
427,
690,
3274,
96,
134,
23,
8893,
89,
53,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the vacator for georgia 2nd? | CREATE TABLE table_2417340_4 (
vacator VARCHAR,
district VARCHAR
) | SELECT vacator FROM table_2417340_4 WHERE district = "Georgia 2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2517,
21129,
834,
591,
41,
3,
8938,
1016,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
8938,
1016,
21,
873,
1677,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8938,
1016,
21680,
953,
834,
2266,
2517,
21129,
834,
591,
549,
17444,
427,
3939,
3274,
96,
517,
15,
1677,
23,
9,
204,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many of the patients with other diagnostic procedures on nasal sinuses died in or before the year 2138? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2138.0" AND procedures.long_title = "Other diagnostic procedures on nasal sinuses" | [
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,... |
What is the sum of Goals, when Season is "2005-06", and when Division is less than 1? | CREATE TABLE table_name_43 (goals INTEGER, season VARCHAR, division VARCHAR) | SELECT SUM(goals) FROM table_name_43 WHERE season = "2005-06" AND division < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
839,
5405,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
17916,
7,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
774,
3274,
96,
22594,
18,
5176,
121,
3430,
4889,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the carriers of devices in stock at more than one shop. | CREATE TABLE stock (
Device_ID VARCHAR
)
CREATE TABLE device (
Carrier VARCHAR,
Device_ID VARCHAR
) | SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1519,
41,
15511,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
1184,
6711,
584,
4280,
28027,
6,
15511,
834,
4309,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
332,
4416,
6936,
6711,
21680,
1519,
6157,
332,
536,
3,
15355,
3162,
1407,
6157,
332,
357,
9191,
332,
5411,
2962,
7287,
15,
834,
4309,
3274,
332,
4416,
2962,
7287,
15,
834,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
... |
Who was the visiting team on November 26, 2007? | CREATE TABLE table_name_65 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_65 WHERE date = "november 26, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3644,
372,
30,
1671,
13597,
4101,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
13597,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the original air date of 'Powerless'? | CREATE TABLE table_73787 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
) | SELECT "Original air date" FROM table_73787 WHERE "Title" = 'Powerless' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
4225,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27931,
4225,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
23553,
924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average game that has December 6 as the date? | CREATE TABLE table_name_91 (
game INTEGER,
date VARCHAR
) | SELECT AVG(game) FROM table_name_91 WHERE date = "december 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
467,
24,
65,
1882,
431,
38,
8,
833,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about All_Games_Percent over the All_Neutral by a bar chart, sort by the y axis from high to low. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Neutral, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
23055,
7,
834,
12988,
3728,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many people attended the Edmonton Oilers game? | CREATE TABLE table_1551 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Attendance" FROM table_1551 WHERE "Opponent" = 'Edmonton Oilers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
5553,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
1808,
5553,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
427,
26,
4662,
106,
6067,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Club name what shows 405 for the Points against? | CREATE TABLE table_name_11 (club VARCHAR, points_against VARCHAR) | SELECT club FROM table_name_11 WHERE points_against = "405" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
13442,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1949,
564,
125,
1267,
314,
3076... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
2445,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Year the competition the british empire and commonwealth games were held? | CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR) | SELECT SUM(year) FROM table_name_98 WHERE competition = "british empire and commonwealth games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1201,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2929,
8,
2259,
8,
3,
2160,
17,
1273,
21039,
11,
1017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2259,
3274,
96,
2160,
17,
1273,
21039,
11,
1017,
1123,
138,
189,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find out the short title of procedure and primary disease of patient with patient id 17570. | 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 te... | SELECT demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "17570" | [
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,
14798,
5,
25930,
4844,
159,
6,
4293,
5,
7,
14184,
834,
21869,
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,
427,
14798,
5... |
What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points? | CREATE TABLE table_name_1 (
entrant VARCHAR,
points VARCHAR,
engine VARCHAR,
rank VARCHAR
) | SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3,
295,
3569,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
3,
295,
3569,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1948,
3274,
96,
9,
5291,
3,
23074,
40,
20353,
3,
208,
927,
121,
3430,
11003,
3274,
96,
519,
52,
26,
121,
3430,
979,
3274,
898,
519,
1,
-100,
-100,
... |
What is in 2007 has 2004 olympic games? | CREATE TABLE table_name_16 (
Id VARCHAR
) | SELECT 2007 FROM table_name_16 WHERE 2004 = "olympic games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16,
4101,
65,
4406,
3,
32,
120,
51,
6174,
1031,
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,
4101,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
4406,
3274,
96,
32,
120,
51,
6174,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what place did hubert green score below 70 in the united states? | CREATE TABLE table_43772 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Place" FROM table_43772 WHERE "Score" < '70' AND "Country" = 'united states' AND "Player" = 'hubert green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4013,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
4906,
4013,
357,
549,
17444,
427,
96,
134,
9022,
121,
3,
2,
3,
31,
2518,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,... |
Which Investing Dragon has requested 100,000 and is supported by Entrepreneur Kay Russell? | CREATE TABLE table_66772 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" text,
"Investing Dragon(s)" text
) | SELECT "Investing Dragon(s)" FROM table_66772 WHERE "Money requested (\u00a3)" = '100,000' AND "Entrepreneur(s)" = 'kay russell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4013,
357,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
3,
2378,
26,
121,
1499,
6,
96,
16924,
60,
2026,
29,
1238,
599,
7,
61,
121,
1499,
6,
96,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13898,
53,
10282,
599,
7,
61,
121,
21680,
953,
834,
3539,
4013,
357,
549,
17444,
427,
96,
9168,
15,
63,
6709,
41,
2,
76,
1206,
9,
5268,
121,
3274,
3,
31,
2915,
6,
2313,
31,
3430,
96,
16924,
60,
2026,
29,
1... |
In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )? | CREATE TABLE table_name_50 (
place VARCHAR,
bronze VARCHAR,
silver VARCHAR,
year VARCHAR
) | SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
286,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
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,
286,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
4294,
3274,
96,
2165,
49,
23,
442,
32,
20028,
208,
41,
3,
3589,
3,
61,
121,
3430,
215,
2490,
17185,
3430,
13467,
3274,
96,
138,
994,
11849,
7424,
32,
208,
41... |
Who left office on November 26, 1800? | CREATE TABLE table_224840_4 (
vacator VARCHAR,
date_successor_seated VARCHAR
) | SELECT vacator FROM table_224840_4 WHERE date_successor_seated = "November 26, 1800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
26311,
834,
591,
41,
3,
8938,
1016,
584,
4280,
28027,
6,
833,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
646,
828,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8938,
1016,
21680,
953,
834,
24622,
26311,
834,
591,
549,
17444,
427,
833,
834,
7,
17431,
24901,
834,
22933,
3274,
96,
28635,
13597,
17737,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the district for 1994 | CREATE TABLE table_27307 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_27307 WHERE "First elected" = '1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
1458,
940,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
2555,
1458,
940,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the rank of the player in lane 6? | CREATE TABLE table_name_73 (rank INTEGER, lane VARCHAR) | SELECT AVG(rank) FROM table_name_73 WHERE lane = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
6254,
3,
21342,
17966,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11003,
13,
8,
1959,
16,
3,
8102,
431,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3,
8102,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Tournament, when Margin is Victory of 6 Strokes? | CREATE TABLE table_name_30 (tournament VARCHAR, margin_of_victory VARCHAR) | SELECT tournament FROM table_name_30 WHERE margin_of_victory = "6 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
20502,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
948,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the navy for middleton with a home port of portsmouth after 1983? | CREATE TABLE table_name_84 (
navy VARCHAR,
name VARCHAR,
home_port VARCHAR,
commissioned VARCHAR
) | SELECT navy FROM table_name_84 WHERE home_port = "portsmouth" AND commissioned > 1983 AND name = "middleton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
23118,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
234,
834,
1493,
584,
4280,
28027,
6,
3,
17183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
23118,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
234,
834,
1493,
3274,
96,
1493,
7,
11975,
121,
3430,
3,
17183,
2490,
15041,
3430,
564,
3274,
96,
6983,
26,
13248,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Higgins with a Scallon that is 2%? | CREATE TABLE table_name_35 (higgins VARCHAR, scallon VARCHAR) | SELECT higgins FROM table_name_35 WHERE scallon = "2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
107,
23,
122,
19655,
584,
4280,
28027,
6,
3,
7,
16482,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2018,
122,
19655,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7102,
122,
19655,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
7,
16482,
106,
3274,
96,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Nation has a Second of tomas pitonak? | CREATE TABLE table_name_72 (
nation VARCHAR,
second VARCHAR
) | SELECT nation FROM table_name_72 WHERE second = "tomas pitonak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2982,
584,
4280,
28027,
6,
511,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11046,
65,
3,
9,
5212,
13,
12,
2754,
7688,
106,
1639,
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,
2982,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
511,
3274,
96,
235,
2754,
7688,
106,
1639,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what counties is the 2011 population 17908? | CREATE TABLE table_22976 (
"Rank 2011" real,
"Change since 2006" text,
"Urban Area" text,
"County" text,
"Population 2011" real,
"Increase since 2006" text
) | SELECT "County" FROM table_22976 WHERE "Population 2011" = '17908' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3166,
3959,
41,
96,
22557,
2722,
121,
490,
6,
96,
3541,
3280,
437,
3581,
121,
1499,
6,
96,
1265,
52,
3478,
5690,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
357,
3166,
3959,
549,
17444,
427,
96,
27773,
7830,
2722,
121,
3274,
3,
31,
26593,
4018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many games had more than 1,500 in attendance ? | CREATE TABLE table_204_168 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number,
"record" text
) | SELECT COUNT(*) FROM table_204_168 WHERE "attendance" > 1500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24274,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
17,
208,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
24274,
549,
17444,
427,
96,
15116,
663,
121,
2490,
15011,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients who were given sodium citrate 4%. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Sodium CITRATE 4%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens? | CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR) | SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
1201,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
410,
2003,
159,
13528,
9,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
372,
3274,
96,
3849,
17,
23,
3706,
25226,
29,
7,
121,
3430,
1031,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent? | CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR) | SELECT rd, _time FROM table_name_43 WHERE res = "win" AND type = "tko" AND opponent = "carlos molina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
52,
26,
584,
4280,
28027,
6,
3,
834,
715,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
52,
26,
6,
3,
834,
715,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3,
60,
7,
3274,
96,
3757,
121,
3430,
686,
3274,
96,
17,
157,
32,
121,
3430,
15264,
3274,
96,
1720,
2298,
2288,
8280,
121,
1,
-100,
... |
what is average age of patients whose ethnicity is black/african american and year of death is less than 2154? | 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,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dod_year < "2154.0" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
... |
what team appears on this table the most ? | CREATE TABLE table_203_348 (
id number,
"number" number,
"name" text,
"team" text,
"position" text,
"years with franchise" text,
"note" text
) | SELECT "team" FROM table_203_348 GROUP BY "team" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3707,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
1201,
7,
28,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
519,
3707,
350,
4630,
6880,
272,
476,
96,
11650,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the 2014 World Cup Qualification? | CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_91 WHERE competition = "2014 world cup qualification" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
7,
9022,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1412,
1150,
3802,
31270,
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,
2604,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2259,
3274,
96,
10218,
296,
4119,
15513,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the English word that is abbreviated พ.ย.? | CREATE TABLE table_name_23 (english_name VARCHAR, abbr VARCHAR) | SELECT english_name FROM table_name_23 WHERE abbr = "พ.ย." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
4606,
40,
1273,
834,
4350,
584,
4280,
28027,
6,
3,
12982,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1566,
1448,
24,
19,
703,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22269,
834,
4350,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
3,
12982,
52,
3274,
96,
2,
5,
2,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Of complaints with the type code 'Product Failure', how many had each different status code? | CREATE TABLE customers (
customer_id number,
customer_type_code text,
address_line_1 text,
address_line_2 text,
town_city text,
state text,
email_address text,
phone_number text
)
CREATE TABLE complaints (
complaint_id number,
product_id number,
customer_id number,
compl... | SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
6137,
834,
4978,
1499,
6,
1115,
834,
747,
834,
536,
1499,
6,
1115,
834,
747,
834,
357,
1499,
6,
1511,
834,
6726,
1499,
6,
538,
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,
10394,
834,
8547,
302,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
11244,
549,
17444,
427,
10394,
834,
6137,
834,
4978,
3274,
96,
3174,
7472,
25629,
121,
350,
4630,
6880,
272,
476,
10394,
834,
8547,
302,
834,
497... |
Which Award Ceremony has a Result of nominated, and a Category of best revival of a musical? | CREATE TABLE table_12616 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Award Ceremony" FROM table_12616 WHERE "Result" = 'nominated' AND "Category" = 'best revival of a musical' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
2938,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
31188,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
2239,
31188,
121,
21680,
953,
834,
21976,
2938,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3114,
77,
920,
31,
3430,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
26327,
13,
3,
9,
4183,
31,
1,
-100,
-... |
What is the Authority for Kuranui Primary School that is located in the Area of Tirau? | CREATE TABLE table_71667 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" text
) | SELECT "Authority" FROM table_71667 WHERE "Area" = 'tirau' AND "Name" = 'kuranui primary school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
3708,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
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,
23602,
127,
485,
121,
21680,
953,
834,
940,
2938,
3708,
549,
17444,
427,
96,
188,
864,
121,
3274,
3,
31,
17,
23,
4565,
31,
3430,
96,
23954,
121,
3274,
3,
31,
10923,
9,
17965,
2329,
496,
31,
1,
-100,
-100,
-1... |
When richmond played away, what was the largest number of people who watched? | CREATE TABLE table_name_8 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MAX(crowd) FROM table_name_8 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
2354,
6764,
1944,
550,
6,
125,
47,
8,
2015,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the Record that has the Date of december 15? | CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_42 WHERE date = "december 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
11392,
24,
65,
8,
7678,
13,
20,
75,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3? | CREATE TABLE table_5151 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Score" FROM table_5151 WHERE "December" > '8' AND "Record" = '25-8-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
5553,
41,
96,
23055,
121,
490,
6,
96,
29835,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
5553,
5553,
549,
17444,
427,
96,
29835,
121,
2490,
3,
31,
927,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
1828,
6039,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the most common company type, and how many are there? | CREATE TABLE flight (
id number,
vehicle_flight_number text,
date text,
pilot text,
velocity number,
altitude number,
airport_id number,
company_id number
)
CREATE TABLE airport (
id number,
city text,
country text,
iata text,
icao text,
name text
)
CREATE TABLE... | SELECT type, COUNT(*) FROM operate_company GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
23,
26,
381,
6,
1689,
834,
89,
2242,
834,
5525,
1152,
1499,
6,
833,
1499,
6,
4487,
1499,
6,
22924,
381,
6,
491,
6592,
381,
6,
3761,
834,
23,
26,
381,
6,
349,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
686,
6,
2847,
17161,
599,
1935,
61,
21680,
4368,
834,
29179,
350,
4630,
6880,
272,
476,
686,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the names and total passengers for all train stations not in London. Visualize by bar chart. | CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Name, Total_Passengers FROM station WHERE Location <> 'London' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2900,
1499,
6,
1387,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
15059,
834,
4309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
9273,
834,
20192,
4606,
277,
21680,
2478,
549,
17444,
427,
10450,
3,
2,
3155,
3,
31,
29712,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which new conference is located in Greentown? | CREATE TABLE table_name_64 (
new_conference VARCHAR,
location VARCHAR
) | SELECT new_conference FROM table_name_64 WHERE location = "greentown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
126,
834,
28496,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
126,
2542,
19,
1069,
16,
1862,
3540,
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,
126,
834,
28496,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1128,
3274,
96,
9423,
3540,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total appearances (league only) have a name of gavin dykes? | CREATE TABLE table_name_88 (total_appearances_league_only_ VARCHAR, name VARCHAR) | SELECT total_appearances_league_only_ FROM table_name_88 WHERE name = "gavin dykes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
235,
1947,
834,
3096,
2741,
663,
7,
834,
29512,
834,
9926,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
792,
834,
3096,
2741,
663,
7,
834,
29512,
834,
9926,
834,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
564,
3274,
96,
122,
9,
2494,
3,
26,
63,
7735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Club Clwb Rygbi Cymru Caerdydd RFC has how many points? | CREATE TABLE table_name_40 (points VARCHAR, club VARCHAR) | SELECT points FROM table_name_40 WHERE club = "clwb rygbi cymru caerdydd rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2700,
7,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1949,
4779,
210,
115,
12749,
122,
115,
23,
6400,
51,
52,
76,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1886,
3274,
96,
75,
40,
210,
115,
3,
651,
122,
115,
23,
3,
75,
63,
51,
52,
76,
212,
49,
26,
63,
26,
26,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
... |
What website has an Ofsted less than 106478 in Atherton? | CREATE TABLE table_name_33 (
website VARCHAR,
ofsted VARCHAR,
locality VARCHAR
) | SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
475,
584,
4280,
28027,
6,
13,
6265,
584,
4280,
28027,
6,
415,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
475,
65,
46,
1129,
6265... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
475,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
13,
6265,
3,
2,
335,
4389,
3940,
3430,
415,
485,
3274,
96,
9,
189,
24471,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
At what game number was the attendance at Conseco Fieldhouse 14,486? | CREATE TABLE table_21458 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT MAX("Game") FROM table_21458 WHERE "Location Attendance" = 'Conseco Fieldhouse 14,486' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
3449,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
27357,
3449,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
4302,
7549,
32,
7257,
1840,
11363,
591,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s? | CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR) | SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
8056,
6714,
257,
584,
4280,
28027,
6,
269,
834,
9,
7,
75,
35,
1938,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
3735,
834,
6137,
584,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30872,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3735,
834,
6137,
3274,
96,
7,
2388,
138,
24856,
121,
3430,
3,
1725,
75,
834,
5525,
1152,
3,
2,
3097,
4271,
3430,
269,
834,
9,
7,
75,
35,
1938,
834,
834,
... |
What is the low enrolment for schools founded after 1995? | CREATE TABLE table_55977 (
"School" text,
"Location" text,
"Enrolment" real,
"Founded" real,
"Denomination" text,
"Boys/Girls" text,
"Day/Boarding" text,
"School Colors" text
) | SELECT MIN("Enrolment") FROM table_55977 WHERE "Founded" > '1995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
4013,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
3491,
297,
121,
490,
6,
96,
20100,
121,
490,
6,
96,
308,
35,
32,
14484,
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,
8532,
3491,
297,
8512,
21680,
953,
834,
755,
3390,
4013,
549,
17444,
427,
96,
20100,
121,
2490,
3,
31,
2294,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show all the faculty ranks and the number of students advised by each rank. | CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
... | SELECT T1.rank, COUNT(*) FROM faculty AS T1 JOIN student AS T2 ON T1.facid = T2.advisor GROUP BY T1.rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1756,
41,
1810,
23,
26,
381,
6,
1756,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3716,
7,
834,
77,
41,
21341,
23,
26,
381,
6,
1810,
23,
26,
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,
332,
5411,
6254,
6,
2847,
17161,
599,
1935,
61,
21680,
6040,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
89,
9,
10812,
3274,
332,
4416,
9,
26,
24680,
350,
4630,
6880,
272,
476,
332,
5411,
... |
What are the former counties of the Great Grimsby district? | CREATE TABLE table_2801185_2 (former_county VARCHAR, district VARCHAR) | SELECT former_county FROM table_2801185_2 WHERE district = "Great Grimsby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
2596,
4433,
834,
357,
41,
2032,
49,
834,
13362,
63,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1798,
16227,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1798,
834,
13362,
63,
21680,
953,
834,
17518,
2596,
4433,
834,
357,
549,
17444,
427,
3939,
3274,
96,
24189,
23427,
7,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
were there any results of the microbiology tests for patient 031-3355 in this hospital visit? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
186... |
What was the score for the game played between Cleveland and Orlando at Cleveland? | CREATE TABLE table_9126 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
) | SELECT "Score" FROM table_9126 WHERE "Home" = 'cleveland' AND "Visitor" = 'orlando' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4729,
2688,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
75,
4563,
232,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
32,
7721,
32,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What opposing team was playing when sebastian telfair (7) had the highest assists? | CREATE TABLE table_17058226_5 (team VARCHAR, high_assists VARCHAR) | SELECT team FROM table_17058226_5 WHERE high_assists = "Sebastian Telfair (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3076,
4613,
2688,
834,
755,
41,
11650,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10720,
53,
372,
47,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2517,
3076,
4613,
2688,
834,
755,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
134,
15,
4883,
12572,
10636,
14881,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898? | CREATE TABLE table_name_58 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) | SELECT termination_of_mission FROM table_name_58 WHERE presentation_of_credentials = "july 4, 1898" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
6544,
257,
834,
858,
834,
5451,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18739,
834,
858,
834,
5451,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
2047,
120,
6464,
507,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the old bulgarian name for ruen, ruy | CREATE TABLE table_19979 (
"No." real,
"English name" text,
"Bulgarian name" text,
"Bulgarian name ( Transliteration )" text,
"Old Bulgarian Names" text,
"Old Bulgarian name (Transliteration)" text,
"Old Bulgarian name - Meaning" text
) | SELECT "Old Bulgarian name - Meaning" FROM table_19979 WHERE "Old Bulgarian name (Transliteration)" = 'Ruen, Ruy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
4440,
41,
96,
4168,
535,
490,
6,
96,
26749,
564,
121,
1499,
6,
96,
279,
83,
122,
6855,
564,
121,
1499,
6,
96,
279,
83,
122,
6855,
564,
41,
4946,
9842,
257,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
40,
26,
15536,
29,
564,
3,
18,
25148,
121,
21680,
953,
834,
19479,
4440,
549,
17444,
427,
96,
667,
40,
26,
15536,
29,
564,
41,
18474,
9842,
257,
61,
121,
3274,
3,
31,
17137,
35,
6,
2770,
63,
31,
1,
-1... |
What is the language of the malacca fm station? | CREATE TABLE table_1390 (
"Frequency" text,
"Station" text,
"Operator" text,
"Language" text,
"Genre" text,
"Coverage Area" text
) | SELECT "Language" FROM table_1390 WHERE "Station" = 'Malacca FM' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
2394,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
13714,
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,
434,
1468,
76,
545,
121,
21680,
953,
834,
2368,
2394,
549,
17444,
427,
96,
134,
6821,
121,
3274,
3,
31,
329,
138,
6004,
9,
13409,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which club had round of group stage round 1 and 5? | CREATE TABLE table_59759 (
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
) | SELECT "Club" FROM table_59759 WHERE "Round" = 'group stage round 1 and 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
940,
3390,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
188,
122,
18301,
342,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
121,
21680,
953,
834,
3390,
940,
3390,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
10739,
1726,
1751,
209,
11,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which character was nominated in the 2010 Indian Television Academy Awards? | CREATE TABLE table_77310 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Show" text,
"Character" text,
"Result" text
) | SELECT "Character" FROM table_77310 WHERE "Year" = '2010' AND "Award Ceremony" = 'indian television academy awards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
19947,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
31188,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
134,
4067,
121,
1499,
6,
96,
18947,
2708,
49,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18947,
2708,
49,
121,
21680,
953,
834,
4013,
19947,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
14926,
31,
3430,
96,
188,
2239,
31188,
121,
3274,
3,
31,
77,
8603,
4390,
25990,
6120,
31,
1,
-100,
-100,
-1... |
What is the goal difference number with a position of 15? | CREATE TABLE table_60613 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
) | SELECT "Goal Difference" FROM table_60613 WHERE "Position" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4241,
519,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6221,
138,
27187,
121,
21680,
953,
834,
3328,
4241,
519,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which E. Greenberg has a T. Wyka of 10,793 (70%)? | CREATE TABLE table_name_34 (e_greenberg VARCHAR, t_wyka VARCHAR) | SELECT e_greenberg FROM table_name_34 WHERE t_wyka = "10,793 (70%)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
15,
834,
9423,
2235,
584,
4280,
28027,
6,
3,
17,
834,
210,
63,
1258,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
262,
5,
1862,
2235,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15,
834,
9423,
2235,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3,
17,
834,
210,
63,
1258,
3274,
96,
1714,
6,
4440,
519,
41,
2518,
6210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what province is listed previous to ghor ? | CREATE TABLE table_204_704 (
id number,
"province" text,
"map #" number,
"iso 3166-2:af" text,
"centers" text,
"population" number,
"area (km2)" number,
"language" text,
"notes" text,
"u.n. region" text
) | SELECT "province" FROM table_204_704 WHERE id = (SELECT id FROM table_204_704 WHERE "province" = 'ghor') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2518,
591,
41,
3,
23,
26,
381,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
11576,
1713,
121,
381,
6,
96,
159,
32,
3,
25946,
25369,
10,
9,
89,
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,
1409,
2494,
565,
121,
21680,
953,
834,
26363,
834,
2518,
591,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
2518,
591,
549,
17444,
427,
96,
1409,
2494,
565,
121,
3... |
What is the high 10 profile number when the high profile is 80? | CREATE TABLE table_26278 (
"Level" text,
"Luma samples/s" real,
"Macroblocks/s" real,
"Luma samples" real,
"Macroblocks" real,
"Baseline, Extended and Main Profiles" real,
"High Profile" real,
"High 10 Profile" real,
"Examples for high resolution @ highest frame rate (max stored fram... | SELECT MAX("High 10 Profile") FROM table_26278 WHERE "High Profile" = '80' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
3940,
41,
96,
25465,
121,
1499,
6,
96,
434,
440,
9,
5977,
87,
7,
121,
490,
6,
96,
17772,
5840,
4029,
7,
87,
7,
121,
490,
6,
96,
434,
440,
9,
5977,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
21417,
335,
14226,
8512,
21680,
953,
834,
2688,
357,
3940,
549,
17444,
427,
96,
21417,
14226,
121,
3274,
3,
31,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the tv time for attendance of 69,551 | CREATE TABLE table_name_84 (tv_time VARCHAR, attendance VARCHAR) | SELECT tv_time FROM table_name_84 WHERE attendance = "69,551" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
17,
208,
834,
715,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
17,
208,
97,
21,
11364,
13,
3,
3951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
715,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
11364,
3274,
96,
3951,
6,
3769,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the name , and group by attribute name, and list by the Y-axis in ascending. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5... |
hemoglobin less than 12 g / dl | CREATE TABLE table_dev_4 (
"id" int,
"hypothyroidism" bool,
"serum_bicarbonate" int,
"c_peptide_level" float,
"autoimmune_disease" bool,
"hemoglobin_a1c_hba1c" float,
"positive_serum" bool,
"inhaled_steroids" bool,
"diabetic_ketoacidosis" bool,
"creatinine_clearance_cl" float,
... | SELECT * FROM table_dev_4 WHERE hemoglobin_a1c_hba1c < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
591,
41,
96,
23,
26,
121,
16,
17,
6,
96,
13397,
32,
17,
31878,
159,
51,
121,
3,
12840,
40,
6,
96,
7,
49,
440,
834,
115,
23,
17089,
342,
121,
16,
17,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
591,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the time of retirement with Laps smaller than 66, a grid less than 10, and a Driver of heinz-harald frentzen? | CREATE TABLE table_58190 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_58190 WHERE "Laps" < '66' AND "Grid" < '10' AND "Driver" = 'heinz-harald frentzen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
11776,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
3449,
11776,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
3539,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
20982,
52,
121,
3274... |
hat is the Result F– A when they played against Leeds United? | CREATE TABLE table_name_98 (result_f___a VARCHAR, opponents VARCHAR) | SELECT result_f___a FROM table_name_98 WHERE opponents = "leeds united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
60,
7,
83,
17,
834,
89,
834,
834,
834,
9,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
547,
19,
8,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
834,
89,
834,
834,
834,
9,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
16383,
3274,
96,
40,
6958,
7,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
get me the number of female patients who have complete heart block primary disease. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "COMPLETE HEART BLOCK" | [
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,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
6657,
27872,
3463,
3,
... |
how many people attended the 2000 animeiowa ? | CREATE TABLE table_204_991 (
id number,
"name" text,
"first\nheld" number,
"country" text,
"earliest attendance figure known" text,
"1998 attendance" number,
"2000 attendance" number,
"2002 attendance" number,
"2004 attendance" number,
"2006 attendance" number,
"2008 attendan... | SELECT "2000 attendance" FROM table_204_991 WHERE "name" = 'animeiowa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3264,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
14672,
2,
29,
14796,
121,
381,
6,
96,
17529,
121,
1499,
6,
96,
16454,
11364,
2320,
801,
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,
1... | [
3,
23143,
14196,
96,
13527,
11364,
121,
21680,
953,
834,
26363,
834,
3264,
536,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
13607,
15,
23,
2381,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients born before 2058 who are taking additive type drug prescription? | 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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2058" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Name the date with loss of carman (3-12) | CREATE TABLE table_name_59 (
date VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_59 WHERE loss = "carman (3-12)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
833,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
28,
1453,
13,
443,
348,
6918,
5947,
61,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1453,
3274,
96,
1720,
348,
6918,
5947,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the most recent year with a mk.v type? | CREATE TABLE table_9966 (
"Type" text,
"Year" real,
"Block" text,
"Displacement" text,
"Mainly For" text
) | SELECT MAX("Year") FROM table_9966 WHERE "Type" = 'mk.v' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
3539,
41,
96,
25160,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
279,
4029,
121,
1499,
6,
96,
23664,
11706,
297,
121,
1499,
6,
96,
21978,
29,
120,
242,
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,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3264,
3539,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
51,
157,
5,
208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed episode number 2? | CREATE TABLE table_28075 (
"No." real,
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" real
) | SELECT "Director" FROM table_28075 WHERE "No." = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
3072,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
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,
23620,
127,
121,
21680,
953,
834,
17518,
3072,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the playoff berth is 17, what is the AFC championship number? | CREATE TABLE table_23060 (
"Team" text,
"Division Titles" real,
"Playoff Berths" real,
"AFL Titles" real,
"AFC Championships" real,
"Super Bowl Championships" real
) | SELECT "AFC Championships" FROM table_23060 WHERE "Playoff Berths" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
3328,
41,
96,
18699,
121,
1499,
6,
96,
308,
23,
6610,
11029,
7,
121,
490,
6,
96,
15800,
1647,
5653,
189,
7,
121,
490,
6,
96,
188,
10765,
11029,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
5390,
7666,
7,
121,
21680,
953,
834,
13427,
3328,
549,
17444,
427,
96,
15800,
1647,
5653,
189,
7,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who is the opponent when played in trieste before 2007? | CREATE TABLE table_name_90 (opponent VARCHAR, year VARCHAR, town VARCHAR) | SELECT opponent FROM table_name_90 WHERE year < 2007 AND town = "trieste" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
32,
102,
9977,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1511,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
15264,
116,
1944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
3,
2,
4101,
3430,
1511,
3274,
96,
1788,
2613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
specify the number of patients admitted to emergency who had icd9 code 5091 | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.icd9_code = "5091" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the document id with 1 to 2 paragraphs? | CREATE TABLE Paragraphs (document_id VARCHAR) | SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4734,
9413,
7,
41,
28244,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1708,
3,
23,
26,
28,
209,
12,
204,
8986,
7,
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,
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,
1708,
834,
23,
26,
21680,
4734,
9413,
7,
350,
4630,
6880,
272,
476,
1708,
834,
23,
26,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
272,
7969,
518,
23394,
209,
3430,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who directed the episode with 6.37 million viewers? | CREATE TABLE table_27927185_1 (directed_by VARCHAR, viewers__millions_ VARCHAR) | SELECT directed_by FROM table_27927185_1 WHERE viewers__millions_ = "6.37" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
2555,
21594,
834,
536,
41,
22955,
834,
969,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
357,
4440,
2555,
21594,
834,
536,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
27865,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the nationality of jim les? | CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_24 WHERE player = "jim les" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1157,
485,
13,
3,
354,
603,
110,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1959,
3274,
96,
354,
603,
110,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many transaction does each account have? Show the number and account id. | CREATE TABLE Financial_transactions (account_id VARCHAR) | SELECT COUNT(*), account_id FROM Financial_transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5421,
834,
7031,
4787,
7,
41,
9,
75,
13362,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5878,
405,
284,
905,
43,
58,
3111,
8,
381,
11,
905,
3,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
905,
834,
23,
26,
21680,
5421,
834,
7031,
4787,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name who wrote the episode directed by arthur albert | CREATE TABLE table_17356042_1 (written_by VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_17356042_1 WHERE directed_by = "Arthur Albert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
3328,
4165,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
113,
2832,
8,
5640,
664... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2517,
2469,
3328,
4165,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
7754,
10666,
11375,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When wacker burghausen is the oberbayern a what is the schwaben? | CREATE TABLE table_23224961_1 (
schwaben VARCHAR,
oberbayern_a VARCHAR
) | SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2884,
3647,
4241,
834,
536,
41,
3,
5472,
9,
115,
35,
584,
4280,
28027,
6,
18299,
11119,
49,
29,
834,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5472,
9,
115,
35,
21680,
953,
834,
2773,
2884,
3647,
4241,
834,
536,
549,
17444,
427,
18299,
11119,
49,
29,
834,
9,
3274,
96,
518,
9,
3383,
14343,
18535,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country was Henry Picard from? | CREATE TABLE table_68349 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_68349 WHERE "Player" = 'henry picard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
519,
3647,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3651,
519,
3647,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3225,
651,
6686,
986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which is the minimun amount of gold medals? | CREATE TABLE table_22355_35 (
gold INTEGER
) | SELECT MIN(gold) FROM table_22355_35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
3769,
834,
2469,
41,
2045,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
19,
8,
8984,
202,
866,
13,
2045,
9365,
7,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
357,
2773,
3769,
834,
2469,
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,
... |
Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist? | CREATE TABLE table_48890 (
"Season" text,
"Duration" text,
"Gagarin Cup Winner" text,
"Gagarin Cup finalist" text,
"Continental Cup Winner" text,
"Top scorer" text
) | SELECT "Gagarin Cup Winner" FROM table_48890 WHERE "Gagarin Cup finalist" = 'avangard omsk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4060,
2394,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12998,
2661,
121,
1499,
6,
96,
517,
9,
1478,
77,
3802,
18125,
121,
1499,
6,
96,
517,
9,
1478,
77,
3802,
804,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
517,
9,
1478,
77,
3802,
18125,
121,
21680,
953,
834,
591,
4060,
2394,
549,
17444,
427,
96,
517,
9,
1478,
77,
3802,
804,
343,
121,
3274,
3,
31,
9,
2132,
6390,
3,
32,
51,
7,
157,
31,
1,
-100,
-100,
-100,
-10... |
In what year did the #14 FitzBradshaw Racing compete? | CREATE TABLE table_1909647_2 (year VARCHAR, team_s_ VARCHAR) | SELECT year FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4314,
4177,
834,
357,
41,
1201,
584,
4280,
28027,
6,
372,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
410,
8,
1713,
2534,
9783,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
11776,
4314,
4177,
834,
357,
549,
17444,
427,
372,
834,
7,
834,
3274,
96,
4663,
2534,
9783,
172,
18304,
26,
15622,
16046,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Born-Died, when Term Start is 4 December 1941? | CREATE TABLE table_46077 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Born-Died" FROM table_46077 WHERE "Term start" = '4 december 1941' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
4013,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
127,
29,
18,
8639,
26,
121,
21680,
953,
834,
25991,
4013,
549,
17444,
427,
96,
11679,
456,
121,
3274,
3,
31,
591,
20,
75,
18247,
24822,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the opponents stanford | CREATE TABLE table_24126 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
) | SELECT "Opponents" FROM table_24126 WHERE "Opponent" = 'Stanford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
21976,
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,
20096,
11595,
7,
979,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
7,
121,
21680,
953,
834,
2266,
21976,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
134,
17,
152,
2590,
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.