NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and salary in a bar chart, rank by the X-axis from low to high. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
834,
... |
Name the votes given for michael russo, genevy dimitrion , manny ortega | CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR) | SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
3449,
4853,
834,
536,
41,
1621,
1422,
834,
17935,
29,
584,
4280,
28027,
6,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11839,
834,
17935,
29,
21680,
953,
834,
21594,
3449,
4853,
834,
536,
549,
17444,
427,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
3274,
96,
329,
362,
9,
15,
40,
2770,
7,
7,
32,
6,
6939,
208,
63,
18150,
155,
... |
The 147.481 Qual, happened in what year? | CREATE TABLE table_68444 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Year" FROM table_68444 WHERE "Qual" = '147.481' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
3628,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
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,
476,
2741,
121,
21680,
953,
834,
3651,
591,
3628,
549,
17444,
427,
96,
5991,
138,
121,
3274,
3,
31,
24719,
5,
3707,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the surface clay with Cyril Saulnier as the opponent in the final? | CREATE TABLE table_name_28 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_28 WHERE surface = "clay" AND opponent_in_the_final = "cyril saulnier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
5522,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
75,
63,
52,
173,
392,
40,
8632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What week has a result of L 17-31 first? | CREATE TABLE table_62727 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MAX("Week") FROM table_62727 WHERE "Result" = 'l 17-31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2555,
2555,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
8512,
21680,
953,
834,
948,
2555,
2555,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
1003,
18,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was gabriela paz-franco the opponent? | CREATE TABLE table_name_2 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_2 WHERE opponent = "gabriela paz-franco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
7852,
14018,
9,
3,
20118,
18,
6296,
509,
8,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
15264,
3274,
96,
21784,
14018,
9,
3,
20118,
18,
6296,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who is the grand finalist where scores is 8.9 (57) – 7.12 (54) | CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR) | SELECT grand_finalist FROM table_1139835_3 WHERE scores = "8.9 (57) – 7.12 (54)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3916,
2469,
834,
519,
41,
15448,
834,
12406,
343,
584,
4280,
28027,
6,
7586,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
1907,
804,
343,
213,
7586... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1907,
834,
12406,
343,
21680,
953,
834,
20522,
3916,
2469,
834,
519,
549,
17444,
427,
7586,
3274,
96,
927,
5,
1298,
41,
3436,
61,
3,
104,
4306,
2122,
9209,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
At what # does 10 3 bbl/day (2006) equal 5097? | CREATE TABLE table_25715 (
"#" real,
"Importing Nation" text,
"10 3 bbl/day (2011)" real,
"10 3 m 3 /day (2011)" real,
"10 3 bbl/day (2009)" real,
"10 3 m 3 /day (2009)" real,
"10 3 bbl/day (2006)" real,
"10 3 m 3 /day (2006)" real
) | SELECT MIN("#") FROM table_25715 WHERE "10 3 bbl/day (2006)" = '5097' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
1808,
41,
96,
4663,
121,
490,
6,
96,
196,
51,
1493,
53,
11046,
121,
1499,
6,
96,
1714,
220,
3,
115,
115,
40,
87,
1135,
25163,
121,
490,
6,
96,
1714,
220,
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,
4663,
8512,
21680,
953,
834,
357,
3436,
1808,
549,
17444,
427,
96,
1714,
220,
3,
115,
115,
40,
87,
1135,
28272,
121,
3274,
3,
31,
1752,
4327,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of patients with an abnormal uric acid lab test? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Uric Acid" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For the sector of Gatunda how many entires are show for the August 15, 2012 population? | CREATE TABLE table_17700 (
"Rank in Nyagatare Sectors, 2012" real,
"Sector" text,
"Area in sqkm" real,
"Population August 15, 2012" real,
"Population, August 15, 2002" real,
"Population Change 2002-2012 (%)" text,
"Population Density 2012 (km 2 )" real
) | SELECT COUNT("Population August 15, 2012") FROM table_17700 WHERE "Sector" = 'Gatunda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
9295,
41,
96,
22557,
16,
16663,
9,
5497,
355,
17832,
7,
6,
1673,
121,
490,
6,
96,
134,
15,
5317,
121,
1499,
6,
96,
188,
864,
16,
11820,
5848,
121,
490,
6,
96,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
27773,
7830,
1660,
10725,
1673,
8512,
21680,
953,
834,
2517,
9295,
549,
17444,
427,
96,
134,
15,
5317,
121,
3274,
3,
31,
517,
144,
1106,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the crowd numbers when the VFL played Victoria Park? | CREATE TABLE table_name_50 (
crowd INTEGER,
venue VARCHAR
) | SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
2302,
116,
8,
584,
10765,
1944,
7488,
1061,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What 1972 Hindi film had Ravindra Jain directing the music? | CREATE TABLE table_12043 (
"Year" real,
"Film name" text,
"Music director" text,
"Lyricist" text,
"Language" text
) | SELECT "Film name" FROM table_12043 WHERE "Year" > '1972' AND "Language" = 'hindi' AND "Lyricist" = 'ravindra jain' AND "Music director" = 'ravindra jain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4906,
41,
96,
476,
2741,
121,
490,
6,
96,
371,
173,
51,
564,
121,
1499,
6,
96,
29035,
2090,
121,
1499,
6,
96,
434,
63,
2234,
343,
121,
1499,
6,
96,
434,
1468,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
173,
51,
564,
121,
21680,
953,
834,
15518,
4906,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
5865,
31,
3430,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
107,
8482,
31,
3430,
96,
434,
63,
2234,... |
What is the time of songs that have the writer Aaron Schroeder and Wally Gold? | CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR) | SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
715,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
13,
3605,
24,
43,
8,
4346,
14411,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
9,
291,
106,
3,
7,
10363,
15,
588,
11,
1481,
63,
2045,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1? | CREATE TABLE table_76081 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_76081 WHERE "Total" < '27' AND "Gold" < '1' AND "Bronze" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4959,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
257,
121,
21680,
953,
834,
28212,
4959,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
2555,
31,
3430,
96,
23576,
121,
3,
2,
3,
31,
536,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
... |
Average round for rodney harrison p before 145? | CREATE TABLE table_7256 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"School/College" text
) | SELECT AVG("Round") FROM table_7256 WHERE "Name" = 'rodney harrison p' AND "Pick" < '145' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
19337,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
9939,
7883,
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,
71,
17217,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
940,
19337,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
9488,
3186,
3,
3272,
23790,
3,
102,
31,
3430,
96,
345,
3142,
121,
3,
2,
3,
31,
20987,
31,
1,
... |
Game of Thrones was done by which artist? | CREATE TABLE table_43356 (
"Spoofed Title" text,
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real
) | SELECT "Artist" FROM table_43356 WHERE "Actual Title" = 'game of thrones' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
2469,
948,
41,
96,
134,
18450,
19565,
11029,
121,
1499,
6,
96,
23312,
3471,
11029,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7754,
343,
121,
21680,
953,
834,
4906,
2469,
948,
549,
17444,
427,
96,
23312,
3471,
11029,
121,
3274,
3,
31,
7261,
13,
3,
8514,
1496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the maximum draws when less than 2514 is the against, and less than 0 byes? | CREATE TABLE table_name_52 (draws INTEGER, against VARCHAR, byes VARCHAR) | SELECT MAX(draws) FROM table_name_52 WHERE against < 2514 AND byes < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
19489,
7,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
14924,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
581,
3,
2,
944,
2534,
3430,
57,
15,
7,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the location attendance for memphis | CREATE TABLE table_23281862_5 (location_attendance VARCHAR, team VARCHAR) | SELECT location_attendance FROM table_23281862_5 WHERE team = "Memphis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
2606,
4056,
834,
755,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
11364,
21,
140,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2577,
2606,
4056,
834,
755,
549,
17444,
427,
372,
3274,
96,
329,
15,
7656,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev? | CREATE TABLE table_name_41 (block VARCHAR, name VARCHAR, spike VARCHAR, weight VARCHAR) | SELECT COUNT(block) FROM table_name_41 WHERE spike < 341 AND weight > 82 AND name = "theodoros baev" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
10734,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
22440,
584,
4280,
28027,
6,
1293,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
10734,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
22440,
3,
2,
220,
4853,
3430,
1293,
2490,
3,
4613,
3430,
564,
3274,
96,
532,
7512,
32,
7,
4698,
15,
208,
121,
1,
-100,
-100,
-100,
-1... |
What was the outcome of the Tournament in Buenos Aires? | CREATE TABLE table_name_30 (
outcome VARCHAR,
tournament VARCHAR
) | SELECT outcome FROM table_name_30 WHERE tournament = "buenos aires" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
6138,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6138,
13,
8,
20502,
16,
3,
30414,
1761,
15,
7,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
5892,
3274,
96,
3007,
15,
4844,
3,
4803,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the home team of the game that ended with a score of 0-1? | CREATE TABLE table_name_95 (home_team VARCHAR, score VARCHAR) | SELECT home_team FROM table_name_95 WHERE score = "0-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
13,
8,
467,
24,
3492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2604,
3274,
96,
632,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the tally in Kilkenny county with 10 as the total and opposition of Waterford? | CREATE TABLE table_name_44 (
tally VARCHAR,
opposition VARCHAR,
county VARCHAR,
total VARCHAR
) | SELECT tally FROM table_name_44 WHERE county = "kilkenny" AND total = 10 AND opposition = "waterford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
3,
17,
1427,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
1427,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
5435,
3274,
96,
157,
173,
9376,
63,
121,
3430,
792,
3274,
335,
3430,
8263,
3274,
96,
3552,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which gene has 4,895,836 base pairs? | CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR) | SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
729,
15,
7,
584,
4280,
28027,
6,
1247,
834,
102,
2256,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6510,
65,
6464,
3914,
11116,
927,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13485,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1247,
834,
102,
2256,
7,
3274,
96,
8525,
3914,
11116,
927,
3420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest, lowest, and average student GPA for every department? | CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE class (
class_code text,
crs_code text,
class_sec... | SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17990,
41,
853,
834,
4978,
1499,
6,
21341,
834,
5525,
381,
6,
17990,
834,
6801,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
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,
4800,
4,
599,
7,
17,
76,
834,
122,
102,
9,
201,
71,
17217,
599,
7,
17,
76,
834,
122,
102,
9,
201,
3,
17684,
599,
7,
17,
76,
834,
122,
102,
9,
201,
20,
102,
17,
834,
4978,
21680,
1236,
350,
4630,
6880,
272,
... |
How many laps were completed in grid 18? | CREATE TABLE table_name_20 (
laps INTEGER,
grid VARCHAR
) | SELECT SUM(laps) FROM table_name_20 WHERE grid = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
2012,
16,
8634,
507,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
8634,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the stage for 08:46 | CREATE TABLE table_name_85 (
stage VARCHAR,
time__eest_ VARCHAR
) | SELECT stage FROM table_name_85 WHERE time__eest_ = "08:46" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1726,
584,
4280,
28027,
6,
97,
834,
834,
15,
222,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1726,
21,
12046,
10,
4448,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1726,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
97,
834,
834,
15,
222,
834,
3274,
96,
4018,
10,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Score has a Result of 5-1? | CREATE TABLE table_38735 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_38735 WHERE "Result" = '5-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
2469,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
134,
9022,
121,
21680,
953,
834,
519,
4225,
2469,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
755,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What finals have grant brebner as the name? | CREATE TABLE table_64567 (
"Name" text,
"Years" text,
"A-League" text,
"Finals" text,
"Total" text
) | SELECT "Finals" FROM table_64567 WHERE "Name" = 'grant brebner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
3708,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
188,
18,
2796,
9,
5398,
121,
1499,
6,
96,
371,
10270,
7,
121,
1499,
6,
96,
3696,
1947,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
7,
121,
21680,
953,
834,
948,
2128,
3708,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7662,
17,
3,
1999,
115,
687,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which three cities have the largest regional population? | CREATE TABLE city (
city VARCHAR,
regional_population VARCHAR
) | SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
584,
4280,
28027,
6,
3518,
834,
9791,
7830,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
386,
3119,
43,
8,
2015,
3518,
2074,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
690,
4674,
11300,
272,
476,
3518,
834,
9791,
7830,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For games less than 70 and goals for greater than 335 what is the most points? | CREATE TABLE table_name_85 (points INTEGER, goals_for VARCHAR, games VARCHAR) | SELECT MAX(points) FROM table_name_85 WHERE goals_for > 335 AND games < 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2700,
7,
3,
21342,
17966,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
1031,
705,
145,
2861,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1766,
834,
1161,
2490,
220,
2469,
3430,
1031,
3,
2,
2861,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the result for california 2? | CREATE TABLE table_1342338_6 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342338_6 WHERE district = "California 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3747,
834,
948,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
21,
3,
15534,
1161,
29,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2773,
3747,
834,
948,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the population of the parish with a census ranking of 579 of 5,008? | CREATE TABLE table_name_32 (
population INTEGER,
census_ranking VARCHAR
) | SELECT SUM(population) FROM table_name_32 WHERE census_ranking = "579 of 5,008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
2074,
3,
21342,
17966,
6,
23087,
834,
6254,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
13,
8,
14961,
28,
3,
9,
230... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
23087,
834,
6254,
53,
3274,
96,
755,
4440,
13,
7836,
1206,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Jason Romano played for what team? | CREATE TABLE table_63034 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT "Team" FROM table_63034 WHERE "Player" = 'jason romano' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
3710,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
26106,
3710,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1191,
739,
3408,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Of the years that had exactly 17096 departures, what is the greatest number of aircraft kilometers flown? | CREATE TABLE table_105344_2 (
aircraft_kilometers INTEGER,
departures VARCHAR
) | SELECT MAX(aircraft_kilometers) FROM table_105344_2 WHERE departures = 17096 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
519,
3628,
834,
357,
41,
6442,
834,
31247,
7,
3,
21342,
17966,
6,
12028,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1129,
8,
203,
24,
141,
1776,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2256,
6696,
834,
31247,
7,
61,
21680,
953,
834,
12869,
519,
3628,
834,
357,
549,
17444,
427,
12028,
7,
3274,
209,
2518,
4314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage for Brown when the lead margin is 26? | CREATE TABLE table_name_35 (
republican VARCHAR,
lead_margin VARCHAR
) | SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
20237,
152,
584,
4280,
28027,
6,
991,
834,
1635,
122,
77,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5294,
21,
3899,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20237,
152,
6157,
3,
10,
834,
8170,
834,
14853,
29,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
991,
834,
1635,
122,
77,
3274,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
get the number of black/haitian ethnic background patients who were admitted before 2125. | 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 WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
20466,
17,
... |
Which Lane has a Time larger than 47.83? | CREATE TABLE table_name_8 (lane INTEGER, time INTEGER) | SELECT AVG(lane) FROM table_name_8 WHERE time > 47.83 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
8102,
3,
21342,
17966,
6,
97,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
11834,
65,
3,
9,
2900,
2186,
145,
10635,
5,
4591,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8102,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
97,
2490,
10635,
5,
4591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show me department_id by first name in a histogram | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | SELECT FIRST_NAME, DEPARTMENT_ID FROM employees | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many directors have vietnamese titles of Gate, Gate, Paragate? | CREATE TABLE table_24789 (
"Year (Ceremony)" text,
"English Title" text,
"Vietnamese title" text,
"Director" text,
"Result" text
) | SELECT COUNT("Director") FROM table_24789 WHERE "Vietnamese title" = 'Gate, gate, paragate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
3914,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
26749,
11029,
121,
1499,
6,
96,
553,
23,
15,
17,
4350,
7,
15,
2233,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23620,
127,
8512,
21680,
953,
834,
357,
4177,
3914,
549,
17444,
427,
96,
553,
23,
15,
17,
4350,
7,
15,
2233,
121,
3274,
3,
31,
517,
342,
6,
10530,
6,
3856,
5339,
31,
1,
-100,
-100,
-100,
-... |
What are the approved treatments when the antibody is bevacizumab? | CREATE TABLE table_20929 (
"Antibody" text,
"Brand name" text,
"Approval date" real,
"Type" text,
"Target" text,
"Approved treatment(s)" text
) | SELECT "Approved treatment(s)" FROM table_20929 WHERE "Antibody" = 'Bevacizumab' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4198,
3166,
41,
96,
27355,
6965,
121,
1499,
6,
96,
18304,
727,
564,
121,
1499,
6,
96,
9648,
8843,
138,
833,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
382,
291,
2782,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9648,
8843,
15,
26,
1058,
599,
7,
61,
121,
21680,
953,
834,
357,
4198,
3166,
549,
17444,
427,
96,
27355,
6965,
121,
3274,
3,
31,
2703,
8938,
23,
19001,
9,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total failures among rockets that had more than 3 successes, type ariane 5 and more than 0 partial failures? | CREATE TABLE table_79770 (
"Rocket" text,
"Country" text,
"Type" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Partial failures" real
) | SELECT COUNT("Failures") FROM table_79770 WHERE "Successes" > '3' AND "Type" = 'ariane 5' AND "Partial failures" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
26920,
41,
96,
23349,
15,
17,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
3612,
202,
2951,
121,
490,
6,
96,
134,
17431,
6119,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
9,
173,
7665,
8512,
21680,
953,
834,
4440,
26920,
549,
17444,
427,
96,
134,
17431,
6119,
7,
121,
2490,
3,
31,
519,
31,
3430,
96,
25160,
121,
3274,
3,
31,
6855,
15,
305,
31,
3430,
96,
... |
What is the holding of the customers? | CREATE TABLE table_51966 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
) | SELECT "Holding" FROM table_51966 WHERE "Component" = 'customers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
3539,
41,
96,
5890,
9977,
121,
1499,
6,
96,
22259,
121,
1499,
6,
96,
26454,
18,
1649,
40,
920,
121,
1499,
6,
96,
26454,
18,
5110,
3897,
121,
1499,
6,
96,
566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
1490,
53,
121,
21680,
953,
834,
755,
2294,
3539,
549,
17444,
427,
96,
5890,
9977,
121,
3274,
3,
31,
25697,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the muslim percentage of the 49634 population of england and wales 000? | CREATE TABLE table_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, population_of_england_and_wales_000 VARCHAR) | SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE population_of_england_and_wales_000 = 49634 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
2555,
4440,
834,
536,
41,
3252,
4941,
834,
834,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
9791,
7830,
834,
584,
4280,
28027,
6,
2074,
834,
858,
834,
4606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3252,
4941,
834,
834,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
9791,
7830,
834,
21680,
953,
834,
27025,
2555,
4440,
834,
536,
549,
17444,
427,
2074,
834,
858,
834,
4606,
40,
232,
834,
232,
834,
210,
... |
How many times is the nation china and bronze more than 0? | CREATE TABLE table_name_4 (
rank VARCHAR,
nation VARCHAR,
bronze VARCHAR
) | SELECT COUNT(rank) FROM table_name_4 WHERE nation = "china" AND bronze > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
11003,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
19,
8,
2982,
20576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2982,
3274,
96,
5675,
9,
121,
3430,
13467,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games have a score of 85-92? | CREATE TABLE table_name_36 (
game VARCHAR,
score VARCHAR
) | SELECT COUNT(game) FROM table_name_36 WHERE score = "85-92" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
467,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
43,
3,
9,
2604,
13,
11989,
18,
4508,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
2604,
3274,
96,
4433,
18,
4508,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the date for catalog RCD 10160? | CREATE TABLE table_name_15 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_15 WHERE catalog = "rcd 10160" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5522,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
10173,
391,
6931,
335,
19129,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
10173,
3274,
96,
52,
75,
26,
335,
19129,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how may patients are diagnosed with their primary disease as hypoxia? | 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 WHERE demographic.diagnosis = "HYPOXIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15761,
6618,
4,
196,
188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What lane did Bronte Barratt, who had a rank larger than 4, swim in? | CREATE TABLE table_13749 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT AVG("Lane") FROM table_13749 WHERE "Name" = 'bronte barratt' AND "Rank" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
3647,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
24636,
3647,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
13711,
17,
15,
1207,
1795,
17,
31,
3430,
96,
22557,
121,
2490,
3,
31,
591,
31,
1,
-100,
-100,
... |
Who was the home team when the VFL played Arden Street Oval? | CREATE TABLE table_name_6 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_6 WHERE venue = "arden street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
8,
584,
10765,
1944,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
5669,
3274,
96,
986,
35,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which provider is pay with analogue cable? | CREATE TABLE table_name_83 (provider VARCHAR, free_or_pay VARCHAR, transmission VARCHAR) | SELECT provider FROM table_name_83 WHERE free_or_pay = "pay" AND transmission = "analogue cable" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
29189,
52,
584,
4280,
28027,
6,
339,
834,
127,
834,
8832,
584,
4280,
28027,
6,
5790,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3175,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3175,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
339,
834,
127,
834,
8832,
3274,
96,
8832,
121,
3430,
5790,
3274,
96,
152,
9,
10384,
4807,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which was a higher scoring game , week 1 or week 12 ? | CREATE TABLE table_204_755 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
) | SELECT "week" FROM table_204_755 WHERE "week" IN (1, 12) ORDER BY "result" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3072,
755,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
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,
1... | [
3,
23143,
14196,
96,
8041,
121,
21680,
953,
834,
26363,
834,
3072,
755,
549,
17444,
427,
96,
8041,
121,
3388,
4077,
6,
586,
61,
4674,
11300,
272,
476,
96,
60,
7,
83,
17,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100... |
What is the subject when the highest mark is 79? | CREATE TABLE table_29842201_1 (subject VARCHAR, highest_mark VARCHAR) | SELECT subject FROM table_29842201_1 WHERE highest_mark = 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4608,
357,
22772,
834,
536,
41,
7304,
11827,
584,
4280,
28027,
6,
2030,
834,
3920,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1426,
116,
8,
2030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1426,
21680,
953,
834,
3166,
4608,
357,
22772,
834,
536,
549,
17444,
427,
2030,
834,
3920,
3274,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what Date were the Results 5:1? | CREATE TABLE table_name_72 (
date VARCHAR,
results¹ VARCHAR
) | SELECT date FROM table_name_72 WHERE results¹ = "5:1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
833,
584,
4280,
28027,
6,
772,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
130,
8,
12772,
305,
10,
536,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
772,
536,
3274,
96,
755,
10,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Score, when Home Team is 'Manchester United'? | CREATE TABLE table_49373 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_49373 WHERE "Home team" = 'manchester united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4118,
519,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
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,
134,
9022,
121,
21680,
953,
834,
3647,
4118,
519,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
348,
13263,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date has fewer than 32 against and the opposing team of Australia? | CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_84 WHERE against < 32 AND opposing_teams = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5522,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
3,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
581,
3,
2,
3538,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for how many students are affected by each allergy type?, show by the bar in descending. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY AllergyType DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,
432,
49,
122,
63,
834,
25160,
6157,
332,
357,
9191,
332,
5411,
6838,
49,
122,
63,
3274,
... |
Tell me the launch date/time for payload of gsat-4 | CREATE TABLE table_name_57 (
launch_date_time__utc_ VARCHAR,
payload VARCHAR
) | SELECT launch_date_time__utc_ FROM table_name_57 WHERE payload = "gsat-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3289,
834,
5522,
834,
715,
834,
834,
76,
17,
75,
834,
584,
4280,
28027,
6,
726,
7134,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3289,
834,
5522,
834,
715,
834,
834,
76,
17,
75,
834,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
726,
7134,
3274,
96,
122,
7,
144,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round was a player from the Long Island Lizards drafted in first? | CREATE TABLE table_70600 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text
) | SELECT MAX("Round") FROM table_70600 WHERE "Team" = 'long island lizards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
6007,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
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,
448,
32,
1106,
8512,
21680,
953,
834,
2518,
6007,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
2961,
3368,
3,
13287,
986,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many days in April has a record of 42 22 12 3, and less than 99 points? | CREATE TABLE table_name_98 (
april VARCHAR,
record VARCHAR,
points VARCHAR
) | SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
3,
9,
2246,
40,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
477,
16,
1186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
9,
2246,
40,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1368,
3274,
96,
4165,
104,
2884,
104,
2122,
104,
519,
121,
3430,
979,
3,
2,
12185,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? | CREATE TABLE table_51290 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine \u2020" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Chassis" FROM table_51290 WHERE "Rounds" = 'all' AND "Entrant" = 'benson and hedges jordan' AND "Driver" = 'damon hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
2394,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
3,
2,
76,
22224,
121,
1499,
6,
96,
382,
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,
3541,
6500,
7,
121,
21680,
953,
834,
24163,
2394,
549,
17444,
427,
96,
448,
32,
1106,
7,
121,
3274,
3,
31,
1748,
31,
3430,
96,
16924,
3569,
121,
3274,
3,
31,
28162,
29,
11,
18179,
7,
3,
12775,
3768,
31,
3430... |
What is the Raptors' record against New Jersey? | CREATE TABLE table_15780718_9 (record VARCHAR, team VARCHAR) | SELECT record FROM table_15780718_9 WHERE team = "New Jersey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3940,
4560,
2606,
834,
1298,
41,
60,
7621,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15052,
5535,
31,
1368,
581,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
1808,
3940,
4560,
2606,
834,
1298,
549,
17444,
427,
372,
3274,
96,
6861,
5092,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the verb meaning for class 4? | CREATE TABLE table_name_64 (
verb_meaning VARCHAR,
class VARCHAR
) | SELECT verb_meaning FROM table_name_64 WHERE class = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
7375,
834,
27639,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7375,
2530,
21,
853,
314,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7375,
834,
27639,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
853,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? | CREATE TABLE table_51848 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_51848 WHERE "Constructor" = 'brm' AND "Driver" = 'tony maggs' AND "Laps" > '102' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2606,
3707,
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,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
755,
2606,
3707,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
115,
52,
51,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
17,
106,
63,
6396,
122,
7,
... |
What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3? | CREATE TABLE table_name_52 (
total INTEGER,
nation VARCHAR,
bronze VARCHAR
) | SELECT AVG(total) FROM table_name_52 WHERE nation = "sweden" AND bronze < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
792,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
9273,
6,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2982,
3274,
96,
7,
1123,
537,
121,
3430,
13467,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the output with no IR LEDs? | CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR) | SELECT output FROM table_name_90 WHERE ir_leds = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
670,
2562,
584,
4280,
28027,
6,
3,
23,
52,
834,
1361,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3911,
28,
150,
3,
5705,
442... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3911,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3,
23,
52,
834,
1361,
7,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005? | CREATE TABLE table_66157 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT MIN("Longitude") FROM table_66157 WHERE "Latitude" = '46.843963' AND "Water (sqmi)" < '0.052000000000000005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
27452,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
434,
2444,
20341,
8512,
21680,
953,
834,
3539,
27452,
549,
17444,
427,
96,
3612,
6592,
121,
3274,
3,
31,
4448,
5,
4608,
3288,
3891,
31,
3430,
96,
28632,
41,
7,
1824,
51,
23,
61,
121,
3,
2,
3,... |
What bowler has a record of 4-15? | CREATE TABLE table_67400 (
"Rank" text,
"Bowling" text,
"Player" text,
"Venue" text,
"Date" text
) | SELECT "Player" FROM table_67400 WHERE "Bowling" = '4-15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
5548,
41,
96,
22557,
121,
1499,
6,
96,
279,
2381,
697,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3708,
5548,
549,
17444,
427,
96,
279,
2381,
697,
121,
3274,
3,
31,
591,
10106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0? | CREATE TABLE table_name_52 (starts INTEGER, tournament VARCHAR, wins VARCHAR) | SELECT SUM(starts) FROM table_name_52 WHERE tournament = "hsbc champions" AND wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
10208,
7,
3,
21342,
17966,
6,
5892,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
5892,
13,
3,
4950,
7645,
151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
10208,
7,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
5892,
3274,
96,
107,
7,
115,
75,
6336,
7,
121,
3430,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On October 16, 1966, what was the game site? | CREATE TABLE table_72934 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Game site" FROM table_72934 WHERE "Date" = 'October 16, 1966' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3166,
3710,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
353,
121,
21680,
953,
834,
940,
3166,
3710,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
11940,
20658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Series leader with a Date that is may 31? | CREATE TABLE table_40758 (
"Date" text,
"Event" text,
"Winner" text,
"Team" text,
"Series leader" text
) | SELECT "Series leader" FROM table_40758 WHERE "Date" = 'may 31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3072,
927,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
12106,
7,
2488,
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,
12106,
7,
2488,
121,
21680,
953,
834,
2445,
3072,
927,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
2664,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot? | CREATE TABLE table_name_73 (
enrollment INTEGER,
ihsaa_class VARCHAR,
mascot VARCHAR
) | SELECT MIN(enrollment) FROM table_name_73 WHERE ihsaa_class = "a" AND mascot = "trojans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
17938,
3,
21342,
17966,
6,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3,
23,
107,
7,
9,
9,
834,
4057,
3274,
96,
9,
121,
3430,
3,
2754,
4310,
3274,
96,
17,
52,
32,
7066,
7,
121,
1,
-100,
-100,
... |
which type of drug is the drug with drug code simv10? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.formulary_drug_cd = "SIMV10" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
134,
196,
12569,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
show me the length of stay of patient 010-39202 from the last stay in the icu. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid num... | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-39202') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
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,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
What is the sum of Year, when Rank is less than 19? | CREATE TABLE table_name_4 (
year INTEGER,
rank INTEGER
) | SELECT SUM(year) FROM table_name_4 WHERE rank < 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
215,
3,
21342,
17966,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
2929,
6,
116,
3,
22557,
19,
705,
145,
957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
11003,
3,
2,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize the relationship between ACC_Percent and All_Games_Percent , and group by attribute ACC_Road. | 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 ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Road | [
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,
3,
14775,
834,
12988,
3728,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List document IDs, document names, and document descriptions for all documents. | CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR, document_description VARCHAR) | SELECT document_id, document_name, document_description FROM Documents | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
28244,
834,
23,
26,
584,
4280,
28027,
6,
1708,
834,
4350,
584,
4280,
28027,
6,
1708,
834,
221,
11830,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
1708,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1708,
834,
23,
26,
6,
1708,
834,
4350,
6,
1708,
834,
221,
11830,
21680,
11167,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
alex shelly and robert roode had the same time as which other wrestler ? | CREATE TABLE table_203_277 (
id number,
"entered" number,
"wrestler" text,
"place" text,
"eliminated by" text,
"time" text
) | SELECT "wrestler" FROM table_203_277 WHERE "wrestler" <> 'alex shelley' AND "wrestler" <> 'robert roode' AND "time" = (SELECT "time" FROM table_203_277 WHERE "wrestler" = 'robert roode') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4013,
41,
3,
23,
26,
381,
6,
96,
35,
11196,
121,
381,
6,
96,
210,
6216,
1171,
121,
1499,
6,
96,
4687,
121,
1499,
6,
96,
15,
4941,
77,
920,
57,
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,
210,
6216,
1171,
121,
21680,
953,
834,
23330,
834,
357,
4013,
549,
17444,
427,
96,
210,
6216,
1171,
121,
3,
2,
3155,
3,
31,
138,
994,
7300,
15,
63,
31,
3430,
96,
210,
6216,
1171,
121,
3,
2,
3155,
3,
31,
58... |
where catalog number is 81258 , what are all the studio ? | CREATE TABLE table_11222744_2 (
studio VARCHAR,
catalog_number VARCHAR
) | SELECT studio FROM table_11222744_2 WHERE catalog_number = "81258" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2884,
2555,
3628,
834,
357,
41,
3100,
584,
4280,
28027,
6,
10173,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
213,
10173,
381,
19,
505,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3100,
21680,
953,
834,
2596,
2884,
2555,
3628,
834,
357,
549,
17444,
427,
10173,
834,
5525,
1152,
3274,
96,
4959,
357,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Decembers have calgary flames as the opponent? | CREATE TABLE table_name_90 (december VARCHAR, opponent VARCHAR) | SELECT COUNT(december) FROM table_name_90 WHERE opponent = "calgary flames" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
221,
75,
18247,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1882,
7,
43,
3,
1489,
1478,
63,
12314,
7,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
221,
75,
18247,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
15264,
3274,
96,
1489,
1478,
63,
12314,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
on the current hospital visit what was the first ward id of patient 016-22566? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
c... | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-22566' AND patient.hospitaldischargetime IS NULL) ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
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,
1868,
5,
2239,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
... |
Visualize a scatter chart about the correlation between Body_Builder_ID and Clean_Jerk . | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
) | SELECT Body_Builder_ID, Clean_Jerk FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
26337,
834,
308,
342,
1499,
6,
26337,
834,
345,
11706,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
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,
8501,
834,
24752,
49,
834,
4309,
6,
7433,
834,
683,
49,
157,
21680,
643,
834,
16422,
49,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me a bar chart for how many name of each name, and sort y-axis in desc order. | CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts text,
Age int,
Level int
)
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage ... | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY COUNT(Name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2743,
41,
3440,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
7301,
834,
1201,
834,
10208,
7,
1499,
6,
7526,
16,
17,
6,
7166,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
2412,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
2847,
17161,
599,
23954,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the platform when the developer was Telltale Games? | CREATE TABLE table_65637 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Platform(s)" FROM table_65637 WHERE "Developer(s)" = 'telltale games' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3891,
940,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
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,
96,
10146,
2032,
599,
7,
61,
121,
21680,
953,
834,
4122,
3891,
940,
549,
17444,
427,
96,
2962,
162,
8745,
49,
599,
7,
61,
121,
3274,
3,
31,
6714,
11686,
1031,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Attendance has a Opponent of west bromwich albion, and a Result of 3 3, and a Match larger than 20? | CREATE TABLE table_6304 (
"Match" real,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_6304 WHERE "Opponent" = 'west bromwich albion' AND "Result" = '3 – 3' AND "Match" > '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
6348,
41,
96,
329,
14547,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3891,
6348,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
12425,
9161,
51,
210,
362,
7046,
23,
106,
31,
3430,
96,
20119,
121,
3274,
3,
... |
What is the xDSL in 2010 when the other was 0.6%? | CREATE TABLE table_name_55 (
xdsl VARCHAR,
other VARCHAR,
year VARCHAR
) | SELECT xdsl FROM table_name_55 WHERE other = "0.6%" AND year = "2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
3,
226,
26,
7,
40,
584,
4280,
28027,
6,
119,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
226,
26,
7,
40,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
119,
3274,
96,
22787,
1454,
121,
3430,
215,
3274,
96,
14926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For the game ending with a score of 28-43, what is the listed as the final record? | CREATE TABLE table_name_86 (
record VARCHAR,
score VARCHAR
) | SELECT record FROM table_name_86 WHERE score = "28-43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
467,
7784,
28,
3,
9,
2604,
13,
2059,
18,
4906,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2604,
3274,
96,
2577,
18,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What series number started production on June 6? | CREATE TABLE table_23039 (
"No." real,
"Country" text,
"Local title" text,
"Format" text,
"Start Date" text,
"End Date" text,
"Episodes" real,
"Premiere/Air Dates" text
) | SELECT MIN("No.") FROM table_23039 WHERE "Start Date" = 'June 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
3288,
41,
96,
4168,
535,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
2233,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
7681,
17,
7678,
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,
3,
17684,
599,
121,
4168,
5,
8512,
21680,
953,
834,
13427,
3288,
549,
17444,
427,
96,
7681,
17,
7678,
121,
3274,
3,
31,
683,
444,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was the rank 24? | CREATE TABLE table_66838 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Year" FROM table_66838 WHERE "Rank" = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
927,
3747,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
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,
476,
2741,
121,
21680,
953,
834,
3539,
927,
3747,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which away team played at Lake Oval? | CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_50 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
550,
372,
1944,
44,
2154,
411,
2165,
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,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the trucks for scott neal | CREATE TABLE table_2187178_1 (
truck_s_ VARCHAR,
crew_chief VARCHAR
) | SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4225,
27640,
834,
536,
41,
4072,
834,
7,
834,
584,
4280,
28027,
6,
4627,
834,
20053,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
11370,
21,
3,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4072,
834,
7,
834,
21680,
953,
834,
2658,
4225,
27640,
834,
536,
549,
17444,
427,
4627,
834,
20053,
3274,
96,
134,
10405,
1484,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the author of the submission with the highest score? | CREATE TABLE submission (Author VARCHAR, Scores VARCHAR) | SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
23602,
127,
584,
4280,
28027,
6,
17763,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2291,
13,
8,
8121,
28,
8,
2030,
2604,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10236,
21680,
8121,
4674,
11300,
272,
476,
17763,
7,
309,
25067,
8729,
12604,
209,
1,
-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 opponent in 1992? | CREATE TABLE table_68868 (
"Rank" text,
"Score" text,
"Player" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
) | SELECT "Opponent" FROM table_68868 WHERE "Year" = '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
927,
3651,
41,
96,
22557,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
667,
102,
9977,
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,
667,
102,
9977,
121,
21680,
953,
834,
3651,
927,
3651,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
19479,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many days with frost were there in the City/Town of Lugo have? | CREATE TABLE table_name_22 (
days_with_frost INTEGER,
city_town VARCHAR
) | SELECT SUM(days_with_frost) FROM table_name_22 WHERE city_town = "lugo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
477,
834,
4065,
834,
6155,
7,
17,
3,
21342,
17966,
6,
690,
834,
3540,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
477,
28,
2515,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
1135,
7,
834,
4065,
834,
6155,
7,
17,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
690,
834,
3540,
3274,
96,
8076,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's party with district being tennessee 3 | CREATE TABLE table_1341865_44 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1341865_44 WHERE district = "Tennessee 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4122,
834,
3628,
41,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
1088,
28,
3939,
271,
3,
324,
655,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2606,
4122,
834,
3628,
549,
17444,
427,
3939,
3274,
96,
382,
35,
655,
15,
15,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the D44 when D41 is D 16? | CREATE TABLE table_69289 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"D 47" text,
"D 48" text
) | SELECT "D 44" FROM table_69289 WHERE "D 41" = 'd 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
3914,
41,
96,
308,
8798,
121,
1499,
6,
96,
308,
6426,
121,
1499,
6,
96,
308,
8838,
121,
1499,
6,
96,
308,
8537,
121,
1499,
6,
96,
308,
3479,
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,
308,
8537,
121,
21680,
953,
834,
3951,
357,
3914,
549,
17444,
427,
96,
308,
8798,
121,
3274,
3,
31,
26,
898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Producer has a Role of rizzette? | CREATE TABLE table_name_74 (
producer VARCHAR,
role VARCHAR
) | SELECT producer FROM table_name_74 WHERE role = "rizzette" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
8211,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
25348,
65,
3,
9,
2158,
109,
13,
3,
13266,
172,
1954,
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,
8211,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1075,
3274,
96,
13266,
172,
1954,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct? | CREATE TABLE table_name_57 (blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR) | SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4605,
29,
157,
834,
989,
7,
584,
4280,
28027,
6,
2538,
834,
102,
75,
17,
584,
4280,
28027,
6,
14244,
834,
989,
7,
584,
4280,
28027,
6,
11202,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4605,
29,
157,
834,
989,
7,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
14244,
834,
989,
7,
3274,
1003,
3430,
11202,
3274,
96,
354,
35,
29,
99,
49,
3,
1927,
1496,
121,
3430,
2538,
834,... |
Who was the director of the episode with series number 116? | CREATE TABLE table_30409 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Directed by" FROM table_30409 WHERE "No. in series" = '116' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
4198,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
26,
57,
121,
21680,
953,
834,
23702,
4198,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
20159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many separate values for Years are associated with FA Cup of 5? | CREATE TABLE table_14962287_2 (
years VARCHAR,
fa_cup VARCHAR
) | SELECT COUNT(years) FROM table_14962287_2 WHERE fa_cup = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4314,
2884,
4225,
834,
357,
41,
203,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2450,
2620,
21,
13825... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
7,
61,
21680,
953,
834,
2534,
4314,
2884,
4225,
834,
357,
549,
17444,
427,
3,
89,
9,
834,
4658,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many QB ratings for the player with 1069 completions? | CREATE TABLE table_19418696_3 (qb_rating VARCHAR, completions VARCHAR) | SELECT COUNT(qb_rating) FROM table_19418696_3 WHERE completions = 1069 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4853,
3840,
4314,
834,
519,
41,
1824,
115,
834,
52,
1014,
584,
4280,
28027,
6,
6929,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1593,
279,
9712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1824,
115,
834,
52,
1014,
61,
21680,
953,
834,
2294,
4853,
3840,
4314,
834,
519,
549,
17444,
427,
6929,
7,
3274,
335,
3951,
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.