NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
When 82.74 is the area in kilometers squared what is the pop.density (per km2)? | CREATE TABLE table_29289372_1 (
pop_density__per_km²_ VARCHAR,
area__km²_ VARCHAR
) | SELECT pop_density__per_km²_ FROM table_29289372_1 WHERE area__km²_ = "82.74" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2577,
4271,
5865,
834,
536,
41,
2783,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
584,
4280,
28027,
6,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2783,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
21680,
953,
834,
3166,
2577,
4271,
5865,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
96,
4613,
5,
4581,
121,
1,
-100,
-100,
-100,
-10... |
Who were the starting actors in the time frame of tuesday 22:00~22:54 8 april 2008 to 17 june 2008? | CREATE TABLE table_18539834_2 (
starring_actors VARCHAR,
time_frame VARCHAR
) | SELECT starring_actors FROM table_18539834_2 WHERE time_frame = "Tuesday 22:00~22:54 8 April 2008 to 17 June 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4867,
3916,
3710,
834,
357,
41,
3,
22236,
834,
9,
5317,
7,
584,
4280,
28027,
6,
97,
834,
11415,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
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,
3,
22236,
834,
9,
5317,
7,
21680,
953,
834,
2606,
4867,
3916,
3710,
834,
357,
549,
17444,
427,
97,
834,
11415,
3274,
96,
382,
76,
15,
7,
1135,
204,
24112,
2,
2884,
10,
5062,
505,
1186,
2628,
12,
1003,
1515,
2628,
... |
what is the number of patients whose days of hospital stay is greater than 29 and item id is 50995? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "29" AND lab.itemid = "50995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the lowest draw that has We The Lovers for the english translation, with a place greater than 1? | CREATE TABLE table_59932 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
) | SELECT MIN("Draw") FROM table_59932 WHERE "English translation" = 'we the lovers' AND "Place" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4271,
357,
41,
96,
308,
10936,
121,
490,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
26749,
7314,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
8512,
21680,
953,
834,
3390,
4271,
357,
549,
17444,
427,
96,
26749,
7314,
121,
3274,
3,
31,
1123,
8,
12891,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,... |
What was the attendance number for the Timberwolves game? | CREATE TABLE table_55408 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"Location Attendance" real,
"Record" text
) | SELECT SUM("Location Attendance") FROM table_55408 WHERE "Team" = 'timberwolves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
2445,
927,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
434,
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,
180,
6122,
599,
121,
434,
32,
75,
257,
22497,
663,
8512,
21680,
953,
834,
3769,
2445,
927,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
2998,
1152,
29219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the average amount of transactions for different investors. | CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_details text
)
CREATE TABLE lots (
lot_id number,
investor_id number,
lot_details text
)
CREATE TAB... | SELECT investor_id, AVG(amount_of_transaction) FROM transactions GROUP BY investor_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6413,
41,
5878,
834,
23,
26,
381,
6,
12024,
834,
23,
26,
381,
6,
5878,
834,
6137,
834,
4978,
1499,
6,
833,
834,
858,
834,
7031,
4787,
97,
6,
866,
834,
858,
834,
7031,
4787,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12024,
834,
23,
26,
6,
71,
17217,
599,
9,
11231,
834,
858,
834,
7031,
4787,
61,
21680,
6413,
350,
4630,
6880,
272,
476,
12024,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games did they play on october 9? | CREATE TABLE table_29626 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
) | SELECT COUNT("Opponent") FROM table_29626 WHERE "October" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4314,
2688,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
188,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
102,
9977,
8512,
21680,
953,
834,
357,
4314,
2688,
549,
17444,
427,
96,
28680,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare the total number of different job titles for all those jobs in department 80 using a bar chart. | 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_TITLE, COUNT(JOB_TITLE) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.DEPARTMENT_ID = 80 GROUP BY JOB_TITLE | [
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,
382,
3177,
3765,
6,
2847,
17161,
599,
15355,
279,
834,
382,
3177,
3765,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
2476,
6157,
332,
357,
9191,
332,
5411,
15355,
279,
834,
4309,
3274,
332,
4416,
... |
Who's the partner that played against Alicia Molik Mara Santangelo on clay? | CREATE TABLE table_name_7 (
partner VARCHAR,
surface VARCHAR,
opponents_in_the_final VARCHAR
) | SELECT partner FROM table_name_7 WHERE surface = "clay" AND opponents_in_the_final = "alicia molik mara santangelo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
2397,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2397,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
16383,
834,
77,
834,
532,
834,
12406,
3274,
96,
138,
1294,
9,
2288,
8654,
3157,
9,
3,
7,
288,
3280,
40,
32,
121,
1,
-1... |
What is the Result when the Theme was by Dolly Parton? | CREATE TABLE table_name_42 (result VARCHAR, theme VARCHAR) | SELECT result FROM table_name_42 WHERE theme = "dolly parton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
20119,
116,
8,
37,
526,
47,
57,
531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
3800,
3274,
96,
26,
32,
6073,
294,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what number of patients with rheumatoid arthritis had lab test named hematocrit, calculated? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Rheumatoid arthritis" AND lab.label = "Hematocrit, Calculated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What are the results in the county with Peter Deutsch as a candidate? | CREATE TABLE table_18143 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Results" FROM table_18143 WHERE "Incumbent" = 'Peter Deutsch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
25133,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
96,
20119,
7,
121,
21680,
953,
834,
2606,
25133,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
345,
15,
449,
3,
18609,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A? | CREATE TABLE table_name_16 (
Id VARCHAR
) | SELECT 2012 FROM table_name_16 WHERE 2011 = "1r" AND 2007 = "a" AND 2010 = "1r" AND 2009 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1673,
701,
28,
209,
52,
16,
8558,
4101,
13,
71,
6,
2735,
13,
209,
52,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1673,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2722,
3274,
96,
536,
52,
121,
3430,
4101,
3274,
96,
9,
121,
3430,
2735,
3274,
96,
536,
52,
121,
3430,
2464,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What is Roy Hall's highest round? | CREATE TABLE table_39723 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_39723 WHERE "Name" = 'roy hall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4327,
2773,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
448,
32,
1106,
8512,
21680,
953,
834,
519,
4327,
2773,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
8170,
6358,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the writer who wrote the episode that was aired on September 11, 1972? | CREATE TABLE table_28114 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
) | SELECT "Writer(s)" FROM table_28114 WHERE "Airdate" = 'September 11, 1972' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
18959,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
49,
599,
7,
61,
121,
21680,
953,
834,
2577,
18959,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
27652,
9694,
16583,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the player that went to st. benedict's prep? | CREATE TABLE table_name_61 (
player VARCHAR,
school VARCHAR
) | SELECT player FROM table_name_61 WHERE school = "st. benedict's prep" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1959,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1959,
24,
877,
12,
3,
7,
17,
5,
3,
15719,
12194,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
496,
3274,
96,
7,
17,
5,
3,
15719,
12194,
31,
7,
13422,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which round resulted in 10-52? | CREATE TABLE table_name_67 (
round VARCHAR,
score VARCHAR
) | SELECT round FROM table_name_67 WHERE score = "10-52" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1751,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
741,
15,
26,
16,
9445,
5373,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2604,
3274,
96,
1714,
18,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the original artist of the Top 12 Men theme? | CREATE TABLE table_27614707_1 (original_artist VARCHAR, theme VARCHAR) | SELECT original_artist FROM table_27614707_1 WHERE theme = "Top 12 Men" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
4177,
4560,
834,
536,
41,
21878,
834,
1408,
343,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
926,
2377,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
1408,
343,
21680,
953,
834,
2555,
4241,
4177,
4560,
834,
536,
549,
17444,
427,
3800,
3274,
96,
22481,
586,
3137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5? | CREATE TABLE table_name_77 (white__both_hispanic_and_non_hispanic_ VARCHAR, black__both_hispanic_and_non_hispanic_ VARCHAR, hispanic__of_any_race_ VARCHAR) | SELECT COUNT(white__both_hispanic_and_non_hispanic_) FROM table_name_77 WHERE black__both_hispanic_and_non_hispanic_ = 9.9 AND hispanic__of_any_race_ < 99.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
13698,
834,
834,
17158,
834,
10193,
2837,
447,
834,
232,
834,
29,
106,
834,
10193,
2837,
447,
834,
584,
4280,
28027,
6,
1001,
834,
834,
17158,
834,
10193... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13698,
834,
834,
17158,
834,
10193,
2837,
447,
834,
232,
834,
29,
106,
834,
10193,
2837,
447,
834,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1001,
834,
834,
17158,
834,
10193,
2837,
447,... |
what is the number of buildings taller than 200 feet ? | CREATE TABLE table_203_84 (
id number,
"rank" number,
"name" text,
"height\nft (m)" text,
"floors" number,
"year" text,
"coordinates" text,
"notes" text
) | SELECT COUNT("name") FROM table_203_84 WHERE "height\nft (m)" > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4608,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
88,
2632,
2,
29,
89,
17,
41,
51,
61,
121,
1499,
6,
96,
20924,
7,
121,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
23330,
834,
4608,
549,
17444,
427,
96,
88,
2632,
2,
29,
89,
17,
41,
51,
61,
121,
2490,
2382,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? | CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR) | SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1927,
630,
26,
3,
21342,
17966,
6,
4889,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
167,
1100,
215,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1927,
630,
26,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
4889,
3274,
96,
12425,
121,
3430,
1128,
3274,
96,
6739,
40,
232,
1511,
2009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which NBA draft has a School of st. mary's high school? | CREATE TABLE table_name_91 (
nba_draft VARCHAR,
school VARCHAR
) | SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
3,
29,
115,
9,
834,
26,
10913,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14512,
6488,
65,
3,
9,
1121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
115,
9,
834,
26,
10913,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
496,
3274,
96,
7,
17,
5,
3157,
63,
31,
7,
306,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which track translates to Flemish Women? | CREATE TABLE table_53808 (
"Track" real,
"Title" text,
"Translation" text,
"Composer" text,
"Recorded" text
) | SELECT "Track" FROM table_53808 WHERE "Translation" = 'flemish women' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
2079,
927,
41,
96,
382,
16729,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
18474,
6105,
121,
1499,
6,
96,
5890,
2748,
49,
121,
1499,
6,
96,
1649,
7621,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
16729,
121,
21680,
953,
834,
4867,
2079,
927,
549,
17444,
427,
96,
18474,
6105,
121,
3274,
3,
31,
89,
109,
51,
1273,
887,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What the win - loss recored for January 7? | CREATE TABLE table_27698941_8 (record VARCHAR, date VARCHAR) | SELECT record FROM table_27698941_8 WHERE date = "January 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3951,
3914,
4853,
834,
927,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
8,
1369,
3,
18,
1453,
3,
60,
9022,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2555,
3951,
3914,
4853,
834,
927,
549,
17444,
427,
833,
3274,
96,
30404,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for the palace of auburn hills 14,554 | CREATE TABLE table_27700375_11 (
date VARCHAR,
location_attendance VARCHAR
) | SELECT date FROM table_27700375_11 WHERE location_attendance = "The Palace of Auburn Hills 14,554" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
22954,
834,
2596,
41,
833,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
8,
20212,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2555,
9295,
22954,
834,
2596,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
634,
12530,
13,
28384,
9807,
11363,
3769,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is ramtha when jeel is 1-0 and hussein is 1-0? | CREATE TABLE table_26173063_2 (
ramtha VARCHAR,
jeel VARCHAR,
hussein VARCHAR
) | SELECT ramtha FROM table_26173063_2 WHERE jeel = "1-0" AND hussein = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2517,
1458,
3891,
834,
357,
41,
3,
2375,
189,
9,
584,
4280,
28027,
6,
528,
15,
40,
584,
4280,
28027,
6,
3,
11823,
7,
2455,
584,
4280,
28027,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
2375,
189,
9,
21680,
953,
834,
2688,
2517,
1458,
3891,
834,
357,
549,
17444,
427,
528,
15,
40,
3274,
96,
18930,
121,
3430,
3,
11823,
7,
2455,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the id and last name of the driver who participated in the most races after 2010? | CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
13739,
4055,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
12614,
23,
26,
584,
4280,
28027,
6,
215,
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,
332,
5411,
13739,
4055,
6,
332,
5411,
3042,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
772,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
3,
15355,
3162,
10879,
6157,
332,
519,
91... |
How many players had 8 goals? | CREATE TABLE table_74264 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
) | SELECT COUNT("Player") FROM table_74264 WHERE "Goal(s)" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
26755,
41,
96,
15800,
49,
121,
1499,
6,
96,
19566,
599,
7,
61,
121,
490,
6,
96,
6221,
138,
599,
7,
61,
121,
490,
6,
96,
27490,
374,
2780,
121,
1499,
6,
96,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
15800,
49,
8512,
21680,
953,
834,
4581,
26755,
549,
17444,
427,
96,
6221,
138,
599,
7,
61,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the minimum indoor results that have a 5 for inspection? | CREATE TABLE table_19534874_2 (indoor INTEGER, inspection VARCHAR) | SELECT MIN(indoor) FROM table_19534874_2 WHERE inspection = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4867,
3707,
4581,
834,
357,
41,
77,
11968,
3,
21342,
17966,
6,
6082,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2559,
5297,
772,
24,
43,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
77,
11968,
61,
21680,
953,
834,
2294,
4867,
3707,
4581,
834,
357,
549,
17444,
427,
6082,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the Total of australia and a To par smaller than 7? | CREATE TABLE table_name_48 (
total INTEGER,
country VARCHAR,
to_par VARCHAR
) | SELECT MIN(total) FROM table_name_48 WHERE country = "australia" AND to_par < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
792,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
9273,
13,
23407,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
684,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
12,
834,
1893,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many games were won with 2nd oha was standing and there were 62 games? | CREATE TABLE table_1143966_1 (
won VARCHAR,
standing VARCHAR,
games VARCHAR
) | SELECT won FROM table_1143966_1 WHERE standing = "2nd OHA" AND games = 62 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3288,
3539,
834,
536,
41,
751,
584,
4280,
28027,
6,
4125,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
130,
751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
751,
21680,
953,
834,
18959,
3288,
3539,
834,
536,
549,
17444,
427,
4125,
3274,
96,
357,
727,
411,
5478,
121,
3430,
1031,
3274,
3,
4056,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score when the way team was Wrexham? | CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_12 WHERE away_team = "wrexham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
9022,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
194,
372,
47,
549,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
550,
834,
11650,
3274,
96,
210,
60,
226,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving? | CREATE TABLE table_38267 (
"Driver" text,
"Season" text,
"Entries" real,
"Front row starts" real,
"Percentage" text
) | SELECT MIN("Entries") FROM table_38267 WHERE "Front row starts" < '15' AND "Driver" = 'michael schumacher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
357,
3708,
41,
96,
20982,
52,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
16924,
2593,
121,
490,
6,
96,
371,
4438,
7358,
3511,
121,
490,
6,
96,
12988,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
16924,
2593,
8512,
21680,
953,
834,
3747,
357,
3708,
549,
17444,
427,
96,
371,
4438,
7358,
3511,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
7,... |
The Milford School has what Division Record? | CREATE TABLE table_name_79 (
division_record VARCHAR,
school VARCHAR
) | SELECT division_record FROM table_name_79 WHERE school = "milford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
4889,
834,
60,
7621,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
8573,
2590,
1121,
65,
125,
6022,
11392,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4889,
834,
60,
7621,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
496,
3274,
96,
51,
173,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much did the Modern Pentathlon III Series coin weigh? | CREATE TABLE table_15744 (
"Year" real,
"Denomination" text,
"Alloy" text,
"Reverse" text,
"Diameter" text,
"Weight" text,
"Obverse" text,
"Mintage" real,
"Series" text
) | SELECT "Weight" FROM table_15744 WHERE "Series" = 'iii series' AND "Reverse" = 'modern pentathlon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
3628,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
35,
32,
14484,
121,
1499,
6,
96,
6838,
32,
63,
121,
1499,
6,
96,
1649,
7583,
121,
1499,
6,
96,
23770,
4401,
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,
1326,
2632,
121,
21680,
953,
834,
27452,
3628,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
23,
23,
23,
939,
31,
3430,
96,
1649,
7583,
121,
3274,
3,
31,
18306,
4550,
17,
21774,
31,
1,
-100,
-100,
-100,
-... |
Who were the womens doubles when the mixed doubles were zhang nan zhao yunlei on the tour all england super series? | CREATE TABLE table_27753492_2 (
womens_doubles VARCHAR,
mixed_doubles VARCHAR,
tour VARCHAR
) | SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Zhang Nan Zhao Yunlei" AND tour = "All England Super Series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3710,
4508,
834,
357,
41,
887,
7,
834,
25761,
7,
584,
4280,
28027,
6,
4838,
834,
25761,
7,
584,
4280,
28027,
6,
1552,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
887,
7,
834,
25761,
7,
21680,
953,
834,
2555,
3072,
3710,
4508,
834,
357,
549,
17444,
427,
4838,
834,
25761,
7,
3274,
96,
956,
9270,
15206,
30680,
6214,
29,
4460,
121,
3430,
1552,
3274,
96,
6838,
2789,
2011,
4531,
1... |
history of prostate or breast cancer | CREATE TABLE table_train_263 (
"id" int,
"breast_cancer" bool,
"fasting_blood_glucose_fbg" float,
"prostate_cancer" bool,
"hba1c" float,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_263 WHERE prostate_cancer = 1 OR breast_cancer = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3891,
41,
96,
23,
26,
121,
16,
17,
6,
96,
1999,
9,
7,
17,
834,
1608,
2110,
121,
3,
12840,
40,
6,
96,
11584,
53,
834,
27798,
834,
13492,
509,
7,
15,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
3891,
549,
17444,
427,
25567,
834,
1608,
2110,
3274,
209,
4674,
6748,
834,
1608,
2110,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose primary disease is sigmoid diverticulitis, colovestical fistula/sda and days of hospital stay is greater than 26? | 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 WHERE demographic.diagnosis = "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA" AND demographic.days_stay > "26" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
134,
8834,
5365,
4309,
10826,
16174,
18679,
4254,
3177,
4555,
6,
3,
19... |
Lee Trevino of the United States with a total greater than 294 had what To par? | CREATE TABLE table_name_73 (
to_par VARCHAR,
player VARCHAR,
total VARCHAR,
country VARCHAR
) | SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
792,
2490,
204,
4240,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
109,
15,
3,
929,
2494,
32,
121,
1,
-100,
-100,
-100,
-10... |
What is the 1991 finish for the 1993 Grand Slams? | CREATE TABLE table_name_60 (
Id VARCHAR
) | SELECT 1991 FROM table_name_60 WHERE 1993 = "grand slams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9957,
1992,
21,
8,
8388,
2698,
29291,
7,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9957,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
8388,
3274,
96,
15448,
3,
7,
40,
265,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the MySpace Band with an Original Airdate of 25 march 2008? | CREATE TABLE table_name_77 (
myspace_band VARCHAR,
original_airdate VARCHAR
) | SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
82,
6633,
834,
3348,
584,
4280,
28027,
6,
926,
834,
2256,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
82,
6633,
834,
3348,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
926,
834,
2256,
5522,
3274,
96,
1828,
10556,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320? | CREATE TABLE table_name_58 (rank VARCHAR, matches VARCHAR, goals VARCHAR) | SELECT COUNT(rank) FROM table_name_58 WHERE matches = "427" AND goals < 320 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
6254,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
792,
381,
13,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
6407,
3274,
96,
591,
2555,
121,
3430,
1766,
3,
2,
3,
15003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Skip has a Season of 2002 03? | CREATE TABLE table_name_77 (
skip VARCHAR,
season VARCHAR
) | SELECT skip FROM table_name_77 WHERE season = "2002–03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
11202,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
25378,
65,
3,
9,
7960,
13,
4407,
12811,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11202,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
774,
3274,
96,
24898,
104,
4928,
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 Brigade, when the Type is Rural, and when the value for Tankers is 1? | CREATE TABLE table_9138 (
"Brigade" text,
"Type" text,
"Pumpers" text,
"Tankers" real,
"Slip-Ons" text,
"Cars" text,
"Hazmat" text
) | SELECT "Brigade" FROM table_9138 WHERE "Type" = 'rural' AND "Tankers" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
3747,
41,
96,
279,
3380,
9,
221,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
345,
440,
4660,
121,
1499,
6,
96,
382,
5979,
277,
121,
490,
6,
96,
134,
7446,
18,
7638... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
3380,
9,
221,
121,
21680,
953,
834,
4729,
3747,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
52,
9709,
31,
3430,
96,
382,
5979,
277,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
At what venue did Alex Mettam/Mark Williams be named Man of the Match? | CREATE TABLE table_17120964_6 (
venue VARCHAR,
man_of_the_match VARCHAR
) | SELECT venue FROM table_17120964_6 WHERE man_of_the_match = "Alex Mettam/Mark Williams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
4198,
4389,
834,
948,
41,
5669,
584,
4280,
28027,
6,
388,
834,
858,
834,
532,
834,
19515,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
2517,
2122,
4198,
4389,
834,
948,
549,
17444,
427,
388,
834,
858,
834,
532,
834,
19515,
3274,
96,
27280,
8146,
17,
265,
87,
19762,
6060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2? | CREATE TABLE table_34139 (
"common name" text,
"protein name" text,
"divergence from human lineage (MYA)" real,
"accession number" text,
"sequence length (aa)" real,
"sequence identity to human protein" text
) | SELECT "sequence identity to human protein" FROM table_34139 WHERE "divergence from human lineage (MYA)" > '8.8' AND "sequence length (aa)" > '1587' AND "protein name" = 'soga2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
24090,
41,
96,
287,
2157,
564,
121,
1499,
6,
96,
23083,
564,
121,
1499,
6,
96,
8481,
49,
122,
1433,
45,
936,
689,
545,
41,
329,
17419,
61,
121,
490,
6,
96,
9,
75,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
15,
835,
3772,
4810,
12,
936,
3619,
121,
21680,
953,
834,
3710,
24090,
549,
17444,
427,
96,
8481,
49,
122,
1433,
45,
936,
689,
545,
41,
329,
17419,
61,
121,
2490,
3,
31,
927,
5,
927,
31,
3430,
96,
7,
15... |
What Model number has the sSpec numebr of SLBJG(B1)? | CREATE TABLE table_name_30 (
model_number VARCHAR,
sspec_number VARCHAR
) | SELECT model_number FROM table_name_30 WHERE sspec_number = "slbjg(b1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
825,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
7,
7576,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5154,
381,
65,
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,
825,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
3,
7,
7576,
834,
5525,
1152,
3274,
96,
7,
40,
115,
354,
122,
599,
115,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose gender is f and procedure icd9 code is 9229? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "9229" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the total number of wickets being yuvraj singh | CREATE TABLE table_15700367_2 (
wickets VARCHAR,
name VARCHAR
) | SELECT COUNT(wickets) FROM table_15700367_2 WHERE name = "Yuvraj Singh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
357,
41,
29719,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
29719,
7,
271,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5981,
15,
17,
7,
61,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
357,
549,
17444,
427,
564,
3274,
96,
476,
76,
208,
9655,
16738,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who was the last rider in the 250cc class ? | CREATE TABLE table_203_35 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
) | SELECT "rider" FROM table_203_35 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
715,
87,
10682,
1271,
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,
4055,
49,
121,
21680,
953,
834,
23330,
834,
2469,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What competition took place on 28/04/1906? | CREATE TABLE table_name_11 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_11 WHERE date = "28/04/1906" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2259,
808,
286,
30,
2059,
24288,
13523,
5176,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
833,
3274,
96,
2577,
24288,
13523,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result when the opponent was Arsenal? | CREATE TABLE table_name_56 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_56 WHERE opponent = "arsenal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
116,
8,
15264,
47,
22358,
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,
741,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
15264,
3274,
96,
291,
7,
35,
138,
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 lowest pick number of John Scully? | CREATE TABLE table_name_45 (
pick__number INTEGER,
name VARCHAR
) | SELECT MIN(pick__number) FROM table_name_45 WHERE name = "john scully" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1432,
381,
13,
1079,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
564,
3274,
96,
27341,
3,
7,
1497,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the matches for gold coast | CREATE TABLE table_name_11 (
matches VARCHAR,
team VARCHAR
) | SELECT matches FROM table_name_11 WHERE team = "gold coast" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
6407,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6407,
21,
2045,
4939,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6407,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
372,
3274,
96,
14910,
4939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was their opponent in game 4? | CREATE TABLE table_79595 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_79595 WHERE "Game" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3301,
3301,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
22497,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
940,
3301,
3301,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the CFL Team with #48 as the pick number? | CREATE TABLE table_39809 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "CFL Team" FROM table_39809 WHERE "Pick #" = '48' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3916,
4198,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
10765,
2271,
121,
21680,
953,
834,
519,
3916,
4198,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of candidates for pennsylvania 21 | CREATE TABLE table_18541 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Candidates") FROM table_18541 WHERE "District" = 'Pennsylvania 21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4853,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
14050,
12416,
6203,
8512,
21680,
953,
834,
21594,
4853,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
345,
35,
29,
7,
63,
40,
16658,
9,
1401,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What regular season had an average attendance of 1,242? | CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR) | SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
60,
122,
834,
9476,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
15116,
663,
834,
2,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1646,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5925,
834,
9476,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3,
9,
208,
122,
834,
15116,
663,
834,
2,
3274,
96,
4347,
2266,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team has a home city of Velika? | CREATE TABLE table_name_74 (
team VARCHAR,
home_city VARCHAR
) | SELECT team FROM table_name_74 WHERE home_city = "velika" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
372,
584,
4280,
28027,
6,
234,
834,
6726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
3,
9,
234,
690,
13,
11670,
5561,
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,
372,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
234,
834,
6726,
3274,
96,
4911,
5561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the brand name associated with the model named e4xxx? | CREATE TABLE table_26572 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
) | SELECT "Brand name" FROM table_26572 WHERE "Model (list)" = 'E4xxx' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3436,
357,
41,
96,
3174,
75,
24901,
121,
1499,
6,
96,
18304,
727,
564,
121,
1499,
6,
96,
24663,
41,
3350,
61,
121,
1499,
6,
96,
254,
14846,
121,
490,
6,
96,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18304,
727,
564,
121,
21680,
953,
834,
2688,
3436,
357,
549,
17444,
427,
96,
24663,
41,
3350,
61,
121,
3274,
3,
31,
427,
591,
226,
19230,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the maximum perigee on 1969-01-09? | CREATE TABLE table_12141496_1 (
perigee__km_ INTEGER,
decay_date VARCHAR
) | SELECT MAX(perigee__km_) FROM table_12141496_1 WHERE decay_date = "1969-01-09" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2534,
2534,
4314,
834,
536,
41,
399,
3077,
15,
834,
834,
5848,
834,
3,
21342,
17966,
6,
18907,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4267,
397,
15,
834,
834,
5848,
834,
61,
21680,
953,
834,
2122,
2534,
2534,
4314,
834,
536,
549,
17444,
427,
18907,
834,
5522,
3274,
96,
2294,
3951,
14772,
18,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea? | CREATE TABLE table_name_60 (
total INTEGER,
to_par VARCHAR,
country VARCHAR
) | SELECT AVG(total) FROM table_name_60 WHERE to_par < 10 AND country = "south korea" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
792,
3,
21342,
17966,
6,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
1348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
12,
834,
1893,
3,
2,
335,
3430,
684,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many incumbents was first elected in the Anti-Masonic party? | CREATE TABLE table_2668173_4 (first_elected VARCHAR, party VARCHAR) | SELECT COUNT(first_elected) FROM table_2668173_4 WHERE party = "Anti-Masonic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2517,
519,
834,
591,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
28406,
7,
47,
166,
8160,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
2688,
3651,
2517,
519,
834,
591,
549,
17444,
427,
1088,
3274,
96,
27355,
18,
329,
9,
7,
4554,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which poles were there for the 8th position? | CREATE TABLE table_36575 (
"Season" real,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
) | SELECT "Poles" FROM table_36575 WHERE "Position" = '8th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
3072,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
1499,
6,
96,
18455,
7,
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,
8931,
15,
7,
121,
21680,
953,
834,
10402,
3072,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
927,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of job_id and the average of manager_id , and group by attribute job_id. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
... |
how many male patients had the procedure titled replace small bowel tube? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.short_title = "Replace small bowel tube" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many matches played are associated with 20 losses? | CREATE TABLE table_name_38 (played VARCHAR, lost VARCHAR) | SELECT played FROM table_name_38 WHERE lost = "20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
4895,
15,
26,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6407,
1944,
33,
1968,
28,
460,
8467,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1513,
3274,
96,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission year is less than 2124 and diagnoses long title is hemorrhage of gastrointestinal tract, unspecified? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2124" AND diagnoses.long_title = "Hemorrhage of gastrointestinal tract, unspecified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the type of loan and the transfer fee loan? | CREATE TABLE table_name_32 (
nat VARCHAR,
type VARCHAR,
transfer_fee VARCHAR
) | SELECT nat FROM table_name_32 WHERE type = "loan" AND transfer_fee = "loan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3,
29,
144,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
144,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
686,
3274,
96,
40,
32,
152,
121,
3430,
2025,
834,
89,
15,
15,
3274,
96,
40,
32,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Played has a Points difference of +261? | CREATE TABLE table_name_50 (
played VARCHAR,
points_difference VARCHAR
) | SELECT played FROM table_name_50 WHERE points_difference = "+261" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1944,
584,
4280,
28027,
6,
979,
834,
26,
99,
11788,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2911,
15,
26,
65,
3,
9,
4564,
7,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
979,
834,
26,
99,
11788,
3274,
96,
1220,
357,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what score is it with tathiana garbin as partner? | CREATE TABLE table_name_84 (
score VARCHAR,
partner VARCHAR
) | SELECT score FROM table_name_84 WHERE partner = "tathiana garbin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
2604,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
2604,
19,
34,
28,
3,
17,
9,
189,
13662,
5260,
4517,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2397,
3274,
96,
17,
9,
189,
13662,
5260,
4517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the Residence whose Name is rich gordon? | CREATE TABLE table_59662 (
"Name" text,
"Residence" text,
"Party" text,
"Years in Assembly" text,
"Years in Senate" text
) | SELECT "Residence" FROM table_59662 WHERE "Name" = 'rich gordon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3539,
357,
41,
96,
23954,
121,
1499,
6,
96,
1649,
1583,
3772,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
476,
2741,
7,
16,
11993,
121,
1499,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
1583,
3772,
121,
21680,
953,
834,
3390,
3539,
357,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
3723,
281,
52,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
has patient 004-65662 gone through any lab test since 2103? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TA... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-65662')) AND STRFTIME('%y', lab.labresulttime) >= '2103' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
What was the record on 6 April 2008? | CREATE TABLE table_10653 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_10653 WHERE "Date" = '6 april 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
4867,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
16431,
4867,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
948,
3,
9,
2246,
40,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many customers did not have any event? | CREATE TABLE residents (
resident_id number,
property_id number,
date_moved_in time,
date_moved_out time,
other_details text
)
CREATE TABLE timed_status_of_things (
thing_id number,
date_and_date time,
status_of_thing_code text
)
CREATE TABLE residents_services (
resident_id number... | SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_events) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2797,
41,
8141,
834,
23,
26,
381,
6,
785,
834,
23,
26,
381,
6,
833,
834,
7168,
15,
26,
834,
77,
97,
6,
833,
834,
7168,
15,
26,
834,
670,
97,
6,
119,
834,
221,
5756,
7,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
722,
549,
17444,
427,
4486,
884,
834,
23,
26,
3388,
41,
23143,
14196,
884,
834,
23,
26,
21680,
884,
834,
15,
2169,
7,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average points when played is 9, name is ev pegnitz and position is larger than 1? | CREATE TABLE table_44535 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT AVG("Points") FROM table_44535 WHERE "Played" = '9' AND "Name" = 'ev pegnitz' AND "Position" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
2469,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
591,
2128,
2469,
549,
17444,
427,
96,
15800,
15,
26,
121,
3274,
3,
31,
1298,
31,
3430,
96,
23954,
121,
3274,
3,
31,
15,
208,
158,
122,
29,
5615,
31,
3430,
96... |
Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode? | CREATE TABLE table_name_29 (
species_specific VARCHAR,
link VARCHAR,
comparative VARCHAR,
intra_molecular_structure VARCHAR
) | SELECT species_specific FROM table_name_29 WHERE comparative = "no" AND intra_molecular_structure = "no" AND link = "sourcecode" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
3244,
834,
9500,
584,
4280,
28027,
6,
1309,
584,
4280,
28027,
6,
18858,
15,
584,
4280,
28027,
6,
6344,
834,
4641,
15,
4866,
834,
16180,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3244,
834,
9500,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
18858,
15,
3274,
96,
29,
32,
121,
3430,
6344,
834,
4641,
15,
4866,
834,
16180,
3274,
96,
29,
32,
121,
3430,
1309,
3274,
96,
7928,
4978,
121,
1,
-... |
What record has a november greater than 11, and st. louis blues as the opponent? | CREATE TABLE table_74924 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_74924 WHERE "November" > '11' AND "Opponent" = 'st. louis blues' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3647,
2266,
41,
96,
23055,
121,
490,
6,
96,
28635,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
7621,
121,
21680,
953,
834,
940,
3647,
2266,
549,
17444,
427,
96,
28635,
121,
2490,
3,
31,
2596,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
17,
5,
16585,
159,
1692,
7,
31,
1,
-100,
-100,
-100,
... |
What is the highest Roll of Orere School with a Decile less than 8 with a State Authority? | CREATE TABLE table_55791 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT MAX("Roll") FROM table_55791 WHERE "Decile" < '8' AND "Authority" = 'state' AND "Name" = 'orere school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4440,
536,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
29807,
8512,
21680,
953,
834,
3769,
4440,
536,
549,
17444,
427,
96,
2962,
75,
699,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
23602,
127,
485,
121,
3274,
3,
31,
5540,
31,
3430,
96,
23954,
121,
3274,... |
What is the total number of players who had a money list rank of 96? | CREATE TABLE table_20590020_2 (
best_finish VARCHAR,
money_list_rank VARCHAR
) | SELECT COUNT(best_finish) FROM table_20590020_2 WHERE money_list_rank = 96 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
7015,
1755,
834,
357,
41,
200,
834,
25535,
584,
4280,
28027,
6,
540,
834,
3350,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9606,
834,
25535,
61,
21680,
953,
834,
23201,
7015,
1755,
834,
357,
549,
17444,
427,
540,
834,
3350,
834,
6254,
3274,
3,
4314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Set 3 when the total was 53–75? | CREATE TABLE table_name_26 (set_3 VARCHAR, total VARCHAR) | SELECT set_3 FROM table_name_26 WHERE total = "53–75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
2244,
834,
519,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2821,
220,
116,
8,
792,
47,
12210,
104,
3072... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
356,
834,
519,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
792,
3274,
96,
4867,
104,
3072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the constructor for jo bonnier of 6 rounds? | CREATE TABLE table_11698 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Driver" text,
"Rounds" text
) | SELECT "Constructor" FROM table_11698 WHERE "Entrant" = 'jo bonnier' AND "Rounds" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
3916,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
20982,
52,
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,
4302,
7593,
127,
121,
21680,
953,
834,
20159,
3916,
549,
17444,
427,
96,
16924,
3569,
121,
3274,
3,
31,
1927,
2682,
8632,
31,
3430,
96,
448,
32,
1106,
7,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
... |
Who was the visiting team on November 26, 2007? | CREATE TABLE table_10324 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Visitor" FROM table_10324 WHERE "Date" = 'november 26, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
17864,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
13597,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In 1987 who was the mens singles | CREATE TABLE table_15001681_1 (mens_singles VARCHAR, year VARCHAR) | SELECT mens_singles FROM table_15001681_1 WHERE year = 1987 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2560,
2938,
4959,
834,
536,
41,
904,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
12701,
113,
47,
8,
1076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1076,
7,
834,
7,
53,
965,
21680,
953,
834,
536,
2560,
2938,
4959,
834,
536,
549,
17444,
427,
215,
3274,
12701,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first leg score in that match where Marseille was the first team? | CREATE TABLE table_name_85 (
team_1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
4553,
2604,
16,
24,
1588,
213,
22058,
47,
8,
166,
372,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
372,
834,
536,
3274,
96,
1635,
7,
15955,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show ids for all employees who don't have a certificate. | CREATE TABLE Employee (eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR) | SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
41,
15,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11305,
41,
15,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
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,
3,
15,
23,
26,
21680,
15871,
262,
4,
30416,
3,
23143,
14196,
3,
15,
23,
26,
21680,
11305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 1st leg when team number 1 is CSU SIBIU? | CREATE TABLE table_64691 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_64691 WHERE "Team #1" = 'csu sibiu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3951,
536,
41,
96,
18699,
7172,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
15493,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
7,
17,
4553,
121,
21680,
953,
834,
4389,
3951,
536,
549,
17444,
427,
96,
18699,
7172,
121,
3274,
3,
31,
75,
7,
76,
3,
7,
16775,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which house has an abbreviation of D? | CREATE TABLE table_name_24 (
house VARCHAR,
abbr VARCHAR
) | SELECT house FROM table_name_24 WHERE abbr = "d" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
629,
584,
4280,
28027,
6,
3,
12982,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
629,
65,
46,
703,
1999,
2099,
257,
13,
309,
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,
629,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3,
12982,
52,
3274,
96,
26,
121,
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 that bins the payment date into the Year interval and then shows the total amount of each payment, and then sort the bars in ascending order of date. | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,... | SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments ORDER BY Date_Payment_Made | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
12248,
834,
4309,
3,
21342,
17966,
6,
31044,
834,
4309,
3,
21342,
17966,
6,
12248,
834,
23351,
107,
32,
26,
834,
22737,
584,
4280,
28027,
599,
25502,
201,
7678,
834,
1970... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
19702,
297,
834,
329,
9,
221,
6,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
4674,
11300,
272,
476,
7678,
834,
19702,
297,
834,
329,
9,
221,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose primary disease is hypertension;rule out coronary artery disease\cardiac cath and year of death is less than or equal to 2154? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.dod_year <= "2154.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15761,
8742,
17779,
134,
9215,
117,
8503,
3765,
3,
9744,
2847,
13044,
... |
What fourth-place has 2 (1999, 2005) as the runner(s)-up? | CREATE TABLE table_name_26 (
fourth_place VARCHAR,
runners_up VARCHAR
) | SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4509,
834,
4687,
584,
4280,
28027,
6,
16448,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4509,
18,
4687,
65,
204,
2863,
3264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4509,
834,
4687,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
16448,
834,
413,
3274,
96,
357,
2863,
3264,
6,
3105,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which airport's IATA is pen? | CREATE TABLE table_name_31 (
airport VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_31 WHERE iata = "pen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3761,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3761,
31,
7,
27,
19282,
19,
4550,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3761,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3,
17221,
3274,
96,
3208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result/games of Sun 11/28/10 as the date/year? | CREATE TABLE table_21436373_6 (result_games VARCHAR, date_year VARCHAR) | SELECT result_games FROM table_21436373_6 WHERE date_year = "Sun 11/28/10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
948,
41,
60,
7,
83,
17,
834,
7261,
7,
584,
4280,
28027,
6,
833,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
834,
7261,
7,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
948,
549,
17444,
427,
833,
834,
1201,
3274,
96,
134,
202,
850,
87,
2577,
11476,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What average Wins has Losses 2, and Draws less than 0? | CREATE TABLE table_80279 (
"Year" real,
"Competition" text,
"Wins" real,
"Draws" real,
"Loses" real
) | SELECT AVG("Wins") FROM table_80279 WHERE "Loses" = '2' AND "Draws" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
357,
4440,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
434,
32,
2260,
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,
18455,
7,
8512,
21680,
953,
834,
2079,
357,
4440,
549,
17444,
427,
96,
434,
32,
2260,
121,
3274,
3,
31,
357,
31,
3430,
96,
308,
10936,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-1... |
Who had the highest assists in game 4? | CREATE TABLE table_397 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_397 WHERE "Game" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4327,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
13041,
121,
21680,
953,
834,
519,
4327,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many total races has this racer competed in ? | CREATE TABLE table_204_798 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_798 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3916,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
940,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Royal house has a name of ding? | CREATE TABLE table_name_30 (
royal_house VARCHAR,
name VARCHAR
) | SELECT royal_house FROM table_name_30 WHERE name = "ding" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
11268,
834,
1840,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3671,
629,
65,
3,
9,
564,
13,
3,
26,
53,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11268,
834,
1840,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
564,
3274,
96,
26,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is average Top 10 with 0 wins? | CREATE TABLE table_name_93 (
top_10 INTEGER,
wins INTEGER
) | SELECT AVG(top_10) FROM table_name_93 WHERE wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
420,
834,
1714,
3,
21342,
17966,
6,
9204,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1348,
2224,
335,
28,
3,
632,
9204,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2916,
834,
16968,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for Andrew Gregg? | CREATE TABLE table_28931 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_28931 WHERE "Incumbent" = 'Andrew Gregg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3341,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
357,
3914,
3341,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
7175,
60,
210,
11859,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the locomotive with a standard gauge and a serial number of 83-1015? | CREATE TABLE table_55814 (
"Locomotive" text,
"Serial No" text,
"Entered service" text,
"Gauge" text,
"Livery" text
) | SELECT "Locomotive" FROM table_55814 WHERE "Gauge" = 'standard' AND "Serial No" = '83-1015' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3449,
2534,
41,
96,
434,
32,
287,
32,
3268,
121,
1499,
6,
96,
134,
15,
12042,
465,
121,
1499,
6,
96,
16924,
3737,
313,
121,
1499,
6,
96,
517,
9,
12972,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
287,
32,
3268,
121,
21680,
953,
834,
755,
3449,
2534,
549,
17444,
427,
96,
517,
9,
12972,
121,
3274,
3,
31,
16020,
31,
3430,
96,
134,
15,
12042,
465,
121,
3274,
3,
31,
4591,
4536,
1808,
31,
1,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.