NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the most recent year for Dean Van Lines? | CREATE TABLE table_name_41 (
year INTEGER,
entrant VARCHAR
) | SELECT MAX(year) FROM table_name_41 WHERE entrant = "dean van lines" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
215,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
167,
1100,
215,
21,
12738,
4480,
4919,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
295,
3569,
3274,
96,
221,
152,
4049,
2356,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the names of buildings except for those having an institution founded in 2003. | CREATE TABLE building (
building_id text,
name text,
street_address text,
years_as_tallest text,
height_feet number,
floors number
)
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage number,
accession_number text,
sequence_length numbe... | SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
740,
41,
740,
834,
23,
26,
1499,
6,
564,
1499,
6,
2815,
834,
9,
26,
12039,
1499,
6,
203,
834,
9,
7,
834,
17,
1748,
222,
1499,
6,
3902,
834,
89,
15,
15,
17,
381,
6,
8242,
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,
564,
21680,
740,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
4350,
21680,
740,
6157,
332,
536,
3,
15355,
3162,
6568,
6157,
332,
357,
9191,
332,
5411,
10905,
834,
23,
26,
3274,
332,
4416,
10905,
834,
23,
26,
549,
1744... |
what is the number of patients whose marital status is single and diagnoses long title is other chronic pulmonary heart diseases? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.long_title = "Other chronic pulmonary heart diseases" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
For those products with a price between 60 and 120, draw a scatter chart about the correlation between code and price . | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Code, Price FROM Products WHERE Price BETWEEN 60 AND 120 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3636,
6,
5312,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the destinations and number of flights to each one. Visualize by bar chart. | CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
ai... | SELECT destination, COUNT(*) FROM flight GROUP BY destination | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6017,
41,
3,
15,
23,
26,
381,
599,
1298,
6,
632,
201,
3052,
381,
599,
1298,
6,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
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,
3954,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
3954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Attendance, when Date is 'February 4', and when Points is less than 57? | CREATE TABLE table_60109 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) | SELECT MIN("Attendance") FROM table_60109 WHERE "Date" = 'february 4' AND "Points" < '57' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
17304,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3328,
17304,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
314,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
3436,
31,
1,
... |
What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire? | CREATE TABLE table_name_99 (chorley INTEGER, preston VARCHAR, west_lancashire VARCHAR) | SELECT MIN(chorley) FROM table_name_99 WHERE preston = 6 AND west_lancashire < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
19220,
1306,
3,
21342,
17966,
6,
11504,
106,
584,
4280,
28027,
6,
4653,
834,
1618,
658,
5718,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19220,
1306,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11504,
106,
3274,
431,
3430,
4653,
834,
1618,
658,
5718,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what date was a two-way tie (8) the high rebound? | CREATE TABLE table_57443 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_57443 WHERE "High rebounds" = 'two-way tie (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3628,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3436,
3628,
519,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
8264,
18,
1343,
6177,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many customers does Steve Johnson support? | CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE playlists (
id number,
name text
)
... | SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
3,
23,
26,
381,
6,
166,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
6,
349,
1499,
6,
1115,
1499,
6,
690,
1499,
6,
538,
1499,
6,
684,
1499,
6,
19085,
834,
4978,
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,
2847,
17161,
599,
1935,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
722,
6157,
332,
357,
9191,
332,
4416,
20390,
834,
60,
102,
834,
23,
26,
3274,
332,
5411,
23,
26,
549,
17444,
427,
332,
5411,
14672,
834,
4350,... |
What was the result of the game with the record of 3-1? | CREATE TABLE table_20849830_1 (
result VARCHAR,
record VARCHAR
) | SELECT result FROM table_20849830_1 WHERE record = "3-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4608,
3916,
1458,
834,
536,
41,
741,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
28,
8,
1368,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
1755,
4608,
3916,
1458,
834,
536,
549,
17444,
427,
1368,
3274,
96,
519,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose admission location is clinic referral/premature and primary disease is brain mass;intracranial hemorrhage? | 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 WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
1... |
Name the season outcome for smyrna | CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR) | SELECT season_outcome FROM table_name_89 WHERE school = "smyrna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
9476,
834,
670,
287,
15,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
774,
6138,
21,
3,
7,
2258,
52,
29,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
834,
670,
287,
15,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
496,
3274,
96,
7,
2258,
52,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most first elected for james c. davis? | CREATE TABLE table_1341930_11 (
first_elected INTEGER,
incumbent VARCHAR
) | SELECT MAX(first_elected) FROM table_1341930_11 WHERE incumbent = "James C. Davis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
1458,
834,
2596,
41,
166,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
166,
8160,
21,
7620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2294,
1458,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
683,
9,
2687,
205,
5,
8688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0? | CREATE TABLE table_18852984_2 (bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR) | SELECT bills_originally_cosponsored FROM table_18852984_2 WHERE all_amendments_cosponsored = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4433,
3166,
4608,
834,
357,
41,
3727,
40,
7,
834,
21878,
120,
834,
509,
27959,
584,
4280,
28027,
6,
66,
834,
265,
989,
4128,
834,
509,
27959,
584,
4280,
28027,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7200,
834,
21878,
120,
834,
509,
27959,
21680,
953,
834,
2606,
4433,
3166,
4608,
834,
357,
549,
17444,
427,
66,
834,
265,
989,
4128,
834,
509,
27959,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue features a home team scoring 12.12 (84)? | CREATE TABLE table_33507 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33507 WHERE "Home team score" = '12.12 (84)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4560,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
519,
2469,
4560,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
9368,
2122,
13642,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many debates are held for each venue? Show a pie chart. | CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affirmative_Win bool
)
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party text,
Age int
... | SELECT Venue, COUNT(Venue) FROM debate GROUP BY Venue | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5054,
834,
16588,
41,
9794,
342,
834,
4309,
16,
17,
6,
71,
89,
7001,
1528,
16,
17,
6,
17141,
1528,
16,
17,
6,
156,
834,
188,
89,
7001,
1528,
834,
18455,
3,
12840,
40,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29940,
6,
2847,
17161,
599,
553,
35,
76,
15,
61,
21680,
5054,
350,
4630,
6880,
272,
476,
29940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names and ages of editors? | CREATE TABLE editor (Name VARCHAR, Age VARCHAR) | SELECT Name, Age FROM editor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6005,
41,
23954,
584,
4280,
28027,
6,
7526,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
11,
3,
2568,
13,
18008,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
6005,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the opponent in the final on 5 July 1992? | CREATE TABLE table_71679 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_71679 WHERE "Date" = '5 july 1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
940,
2938,
4440,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
755,
3,
2047,
120,
9047,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the name of rooms with king or queen bed. | CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT roomname FROM rooms WHERE bedtype = "King" OR bedtype = "Queen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
1499,
6,
562,
4350,
1499,
6,
8326,
381,
6,
1953,
6137,
1499,
6,
9858,
13377,
413,
6833,
381,
6,
1247,
102,
4920,
381,
6,
4469,
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,
562,
4350,
21680,
2801,
549,
17444,
427,
1953,
6137,
3274,
96,
439,
53,
121,
4674,
1953,
6137,
3274,
96,
5991,
15,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what city has a past season of n/a? | CREATE TABLE table_name_43 (
city VARCHAR,
past_season VARCHAR
) | SELECT city FROM table_name_43 WHERE past_season = "n/a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
690,
584,
4280,
28027,
6,
657,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
690,
65,
3,
9,
657,
774,
13,
3,
29,
87,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
657,
834,
9476,
3274,
96,
29,
87,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most high schools for 31851 | CREATE TABLE table_26252 (
"Year" text,
"District-wide" real,
"High schools" real,
"Middle schools" real,
"Elementary schools" real,
"Other programs & adjustments" real
) | SELECT MAX("High schools") FROM table_26252 WHERE "District-wide" = '31851' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
357,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
23,
20066,
18,
6728,
121,
490,
6,
96,
21417,
2061,
121,
490,
6,
96,
329,
23,
8437,
2061,
121,
490,
6,
96,
427... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
21417,
2061,
8512,
21680,
953,
834,
2688,
1828,
357,
549,
17444,
427,
96,
308,
23,
20066,
18,
6728,
121,
3274,
3,
31,
519,
2606,
5553,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Of the players whose lead began at the australian championships, what was the shortest span of years led? | CREATE TABLE table_26047 (
"Years led" text,
"Span of years led" real,
"Player" text,
"Titles won at point of lead" real,
"Total Career titles" real,
"Tournament at which lead began" text
) | SELECT MIN("Span of years led") FROM table_26047 WHERE "Tournament at which lead began" = 'Australian Championships' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4177,
41,
96,
476,
2741,
7,
2237,
121,
1499,
6,
96,
19675,
13,
203,
2237,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
382,
155,
965,
751,
44,
500,
13,
991,
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,
19675,
13,
203,
2237,
8512,
21680,
953,
834,
18365,
4177,
549,
17444,
427,
96,
382,
1211,
20205,
17,
44,
84,
991,
1553,
121,
3274,
3,
31,
31971,
29,
7666,
7,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot of rebels? | CREATE TABLE table_name_88 (
year_joined INTEGER,
mascot VARCHAR,
size VARCHAR,
previous_conference VARCHAR
) | SELECT AVG(year_joined) FROM table_name_88 WHERE size > 93 AND previous_conference = "none (new school)" AND mascot = "rebels" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
215,
834,
1927,
630,
26,
3,
21342,
17966,
6,
3,
2754,
4310,
584,
4280,
28027,
6,
812,
584,
4280,
28027,
6,
1767,
834,
28496,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1201,
834,
1927,
630,
26,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
812,
2490,
3,
4271,
3430,
1767,
834,
28496,
3274,
96,
29,
782,
41,
5534,
496,
61,
121,
3430,
3,
2754,
4310,
3274,
96... |
What is every value on Tuesday August 25 if August Friday 28 is 23' 54.54 94.684mph? | CREATE TABLE table_23465864_5 (
tues_25_aug VARCHAR,
fri_28_aug VARCHAR
) | SELECT tues_25_aug FROM table_23465864_5 WHERE fri_28_aug = "23' 54.54 94.684mph" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4448,
3449,
4389,
834,
755,
41,
3,
17,
76,
15,
7,
834,
1828,
834,
402,
122,
584,
4280,
28027,
6,
9030,
834,
2577,
834,
402,
122,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
76,
15,
7,
834,
1828,
834,
402,
122,
21680,
953,
834,
2773,
4448,
3449,
4389,
834,
755,
549,
17444,
427,
9030,
834,
2577,
834,
402,
122,
3274,
96,
2773,
31,
10630,
5,
5062,
668,
25652,
4608,
7656,
121,
1,
... |
What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009? | CREATE TABLE table_name_34 (tournament VARCHAR) | SELECT 2011 FROM table_name_34 WHERE 2008 = "a" AND 2012 = "a" AND 2009 = "a" AND tournament = "paris masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2722,
701,
13,
8,
260,
159,
2325,
7,
6,
84,
141,
71,
16,
2628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2628,
3274,
96,
9,
121,
3430,
1673,
3274,
96,
9,
121,
3430,
2464,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
1893,
159,
2325,
7,
121,
1,
-100,
-100,
-100,
-100... |
how long was huang le 's longest jump in 2002 ? | CREATE TABLE table_204_706 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "notes" FROM table_204_706 WHERE "year" = 2002 ORDER BY "notes" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2518,
948,
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,
96,
7977,
7,
121,
21680,
953,
834,
26363,
834,
2518,
948,
549,
17444,
427,
96,
1201,
121,
3274,
4407,
4674,
11300,
272,
476,
96,
7977,
7,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is shintaro ishiwatari's time? | CREATE TABLE table_name_6 (time VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_6 WHERE opponent = "shintaro ishiwatari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
715,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
7,
2907,
2046,
32,
3,
1273,
23,
210,
9,
5310,
31,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
15264,
3274,
96,
7,
2907,
2046,
32,
3,
1273,
23,
210,
9,
5310,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup? | CREATE TABLE table_name_9 (
division VARCHAR,
fa_cup VARCHAR,
season VARCHAR
) | SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = "round of 16" AND season > 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4889,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4889,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
26,
23,
6610,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3,
89,
9,
834,
4658,
3274,
96,
7775,
13,
898,
121,
3430,
774,
2490,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Cover Model was featured on 8-03? | CREATE TABLE table_43058 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Cover model" FROM table_43058 WHERE "Date" = '8-03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
3449,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
254,
1890,
825,
121,
21680,
953,
834,
25449,
3449,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
927,
18,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the number of documents in each day for all documents on project with details 'Graph Database project' and bin document date by year interval and group by document name with a group line chart, and order by the Document_Date in ascending. | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
... | SELECT Document_Date, COUNT(Document_Date) FROM Documents AS T1 JOIN Projects AS T2 ON T1.Project_ID = T2.Project_ID WHERE T2.Project_Details = 'Graph Database project' GROUP BY Document_Name ORDER BY Document_Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
6288,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
4309,
3,
21342,
17966,
6,
6288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
308,
342,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
308,
342,
61,
21680,
11167,
7,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3174... |
Name the broadcast date for run timke of 25:04 | CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, run_time VARCHAR) | SELECT broadcast_date FROM table_2102782_1 WHERE run_time = "25:04" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
2555,
4613,
834,
536,
41,
115,
8635,
5254,
834,
5522,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6878,
833,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6878,
834,
5522,
21680,
953,
834,
15239,
2555,
4613,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
1828,
10,
6348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the written by for production code 4g07 | CREATE TABLE table_24030 (
"Ep." real,
"Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
) | SELECT "Written by" FROM table_24030 WHERE "Prod. Code" = '4G07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
1458,
41,
96,
427,
102,
535,
490,
6,
96,
134,
15,
9,
739,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
11944,
1458,
549,
17444,
427,
96,
3174,
26,
5,
3636,
121,
3274,
3,
31,
591,
517,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many were first elected when the incumbent was Morgan M. Moulder? | CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
24151,
834,
1828,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
130,
166,
8160,
116,
8,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
2368,
4165,
24151,
834,
1828,
549,
17444,
427,
28406,
3274,
96,
329,
11127,
283,
5,
1290,
83,
588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Status has a Building of the rhombus? | CREATE TABLE table_name_25 (status VARCHAR, building VARCHAR) | SELECT status FROM table_name_25 WHERE building = "the rhombus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8547,
302,
584,
4280,
28027,
6,
740,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19318,
65,
3,
9,
5450,
13,
8,
3,
52,
10207,
3465,
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,
2637,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
740,
3274,
96,
532,
3,
52,
10207,
3465,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
before rudhra gangadharan , how many directors were before him ? | CREATE TABLE table_203_141 (
id number,
"sr. no." number,
"name" text,
"from" text,
"till" text,
"occupation" text
) | SELECT COUNT("name") FROM table_203_141 WHERE "sr. no." > (SELECT "sr. no." FROM table_203_141 WHERE "name" = 'rudhra gangadharan') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26059,
41,
3,
23,
26,
381,
6,
96,
7,
52,
5,
150,
535,
381,
6,
96,
4350,
121,
1499,
6,
96,
7152,
121,
1499,
6,
96,
17,
1092,
121,
1499,
6,
96,
24911,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
23330,
834,
26059,
549,
17444,
427,
96,
7,
52,
5,
150,
535,
2490,
41,
23143,
14196,
96,
7,
52,
5,
150,
535,
21680,
953,
834,
23330,
834,
26059,
549,
17444,
427,
... |
On what date was My Lord What a Mornin' recorded? | CREATE TABLE table_name_55 (recording_date VARCHAR, title VARCHAR) | SELECT recording_date FROM table_name_55 WHERE title = "my lord what a mornin'" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
60,
7621,
53,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
499,
2809,
363,
3,
9,
4574,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5592,
834,
5522,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2233,
3274,
96,
2258,
3,
322,
26,
125,
3,
9,
8030,
29,
77,
31,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What transfer fee has both winter as the transfer window, and Madureira as the moving to? | CREATE TABLE table_name_68 (
transfer_fee VARCHAR,
transfer_window VARCHAR,
moving_to VARCHAR
) | SELECT transfer_fee FROM table_name_68 WHERE transfer_window = "winter" AND moving_to = "madureira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2025,
834,
5165,
2381,
3274,
96,
210,
3870,
121,
3430,
1735,
834,
235,
3274,
96,
11374,
450,
15809,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was Silva's Partner in the Amarante Tournament played on a Hard Surface? | CREATE TABLE table_name_35 (
partner VARCHAR,
surface VARCHAR,
tournament VARCHAR
) | SELECT partner FROM table_name_35 WHERE surface = "hard" AND tournament = "amarante" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2397,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
26551,
31,
7,
5793,
16,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
5892,
3274,
96,
9,
1635,
1841,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Competition, when Date is 30 December 2005? | CREATE TABLE table_name_96 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_96 WHERE date = "30 december 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15571,
6,
116,
7678,
19,
604,
1882,
3105,
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,
2259,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
833,
3274,
96,
1458,
20,
75,
18247,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For the team whose shirt sponsor is Krombacher, who is the team captain? | CREATE TABLE table_name_12 (
team VARCHAR,
shirt_sponsor VARCHAR
) | SELECT team AS Captain FROM table_name_12 WHERE shirt_sponsor = "krombacher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
372,
584,
4280,
28027,
6,
8677,
834,
7,
5041,
7,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
372,
3,
2544,
8677,
9037,
19,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
6157,
12202,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
8677,
834,
7,
5041,
7,
127,
3274,
96,
22318,
18015,
1703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is at 10:00 when at 9:00 it is lost (#19, 4.6 rating) and at 8:30 it is lost (reruns)? | CREATE TABLE table_78116 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "10:00" FROM table_78116 WHERE "9:00" = 'lost (#19, 4.6 rating)' AND "8:30" = 'lost (reruns)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
20159,
41,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
21150,
121,
1499,
6,
96,
536,
25713,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
25713,
121,
21680,
953,
834,
3940,
20159,
549,
17444,
427,
96,
1298,
10,
1206,
121,
3274,
3,
31,
2298,
17,
41,
4663,
2294,
6,
3,
25652,
5773,
61,
31,
3430,
96,
927,
10,
1458,
121,
3274,
3,
31,
2298,
17,... |
What are the names of the directors who made exactly one movie excluding director NULL? | CREATE TABLE Movie (
director VARCHAR
) | SELECT director FROM Movie WHERE director <> "null" GROUP BY director HAVING COUNT(*) = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
8,
10392,
113,
263,
1776,
80,
1974,
3,
21763,
2090,
13046,
10376,
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,
2090,
21680,
10743,
549,
17444,
427,
2090,
3,
2,
3155,
96,
29,
83,
40,
121,
350,
4630,
6880,
272,
476,
2090,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the route/via when the train name is Parasuram Express? | CREATE TABLE table_29202276_2 (
route_via VARCHAR,
train_name VARCHAR
) | SELECT route_via FROM table_29202276_2 WHERE train_name = "Parasuram Express" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1755,
2884,
3959,
834,
357,
41,
2981,
834,
5907,
584,
4280,
28027,
6,
2412,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2981,
87,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2981,
834,
5907,
21680,
953,
834,
3166,
1755,
2884,
3959,
834,
357,
549,
17444,
427,
2412,
834,
4350,
3274,
96,
13212,
9,
3042,
265,
7319,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many seasons have an Actual adjusted record of 0–19? | CREATE TABLE table_name_13 (season VARCHAR, actual_adjusted_record VARCHAR) | SELECT COUNT(season) FROM table_name_13 WHERE actual_adjusted_record = "0–19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
9476,
584,
4280,
28027,
6,
1805,
834,
9,
26,
4998,
15,
26,
834,
60,
7621,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9385,
43,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1805,
834,
9,
26,
4998,
15,
26,
834,
60,
7621,
3274,
96,
632,
104,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the Record 41–32–6? | CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_95 WHERE record = "41–32–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
11392,
8798,
104,
2668,
104,
948,
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,
833,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1368,
3274,
96,
4853,
104,
2668,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Extra points have Touchdowns larger than 2, and Field goals larger than 0? | CREATE TABLE table_38078 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Extra points") FROM table_38078 WHERE "Touchdowns" > '2' AND "Field goals" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
3940,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
22512,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
5420,
1313,
979,
8512,
21680,
953,
834,
22671,
3940,
549,
17444,
427,
96,
3696,
2295,
3035,
7,
121,
2490,
3,
31,
357,
31,
3430,
96,
3183,
8804,
1766,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100... |
Name the title that aired for november 08, 1985 | CREATE TABLE table_24028 (
"Ep." real,
"Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
) | SELECT "Title" FROM table_24028 WHERE "Original air date" = 'November 08, 1985' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2577,
41,
96,
427,
102,
535,
490,
6,
96,
134,
15,
9,
739,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
155,
109,
121,
21680,
953,
834,
11944,
2577,
549,
17444,
427,
96,
667,
3380,
10270,
799,
833,
121,
3274,
3,
31,
28635,
12046,
6,
13200,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What location is less than 7.1 km away, and has a Rapid of ? | CREATE TABLE table_name_77 (
location VARCHAR,
distance__km_ VARCHAR,
rapid VARCHAR
) | SELECT location FROM table_name_77 WHERE distance__km_ < 7.1 AND rapid = "●" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1128,
584,
4280,
28027,
6,
2357,
834,
834,
5848,
834,
584,
4280,
28027,
6,
3607,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2357,
834,
834,
5848,
834,
3,
2,
3,
25059,
3430,
3607,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date for the race that had the time of 2:43:19? | CREATE TABLE table_2268216_1 (
date VARCHAR,
race_time VARCHAR
) | SELECT date FROM table_2268216_1 WHERE race_time = "2:43:19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3651,
27184,
834,
536,
41,
833,
584,
4280,
28027,
6,
1964,
834,
715,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
1964,
24,
141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2884,
3651,
27184,
834,
536,
549,
17444,
427,
1964,
834,
715,
3274,
96,
357,
10,
4906,
10,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the ids of documents with expenses that have the budget code 'SF'. | CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description tex... | SELECT document_id FROM documents_with_expenses WHERE budget_type_code = 'SF' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
11073,
2782,
834,
4978,
7,
41,
1487,
834,
6137,
834,
4978,
1499,
6,
1487,
834,
6137,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3744,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1708,
834,
23,
26,
21680,
2691,
834,
4065,
834,
994,
3801,
15,
7,
549,
17444,
427,
1487,
834,
6137,
834,
4978,
3274,
3,
31,
7016,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which cornerback has the lowest overall and a pick number smaller than 16? | CREATE TABLE table_name_30 (overall INTEGER, position VARCHAR, pick__number VARCHAR) | SELECT MIN(overall) FROM table_name_30 WHERE position = "cornerback" AND pick__number < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1890,
1748,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2752,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1102,
3274,
96,
13165,
49,
1549,
121,
3430,
1432,
834,
834,
5525,
1152,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What game is the first with the Pittsburgh Penguins the opponent? | CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR) | SELECT MIN(game) FROM table_name_49 WHERE opponent = "pittsburgh penguins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
7261,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
19,
8,
166,
28,
8,
16226,
27076,
7,
8,
15264,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
15264,
3274,
96,
5230,
17,
7289,
107,
4550,
17996,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which run 2 with final of 5:24.47? | CREATE TABLE table_name_18 (
run_2 VARCHAR,
final VARCHAR
) | SELECT run_2 FROM table_name_18 WHERE final = "5:24.47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
661,
834,
357,
584,
4280,
28027,
6,
804,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
661,
204,
28,
804,
13,
305,
10,
2266,
5,
4177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
834,
357,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
804,
3274,
96,
755,
10,
2266,
5,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose procedure long title is incision of vessel, abdominal arteries? | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Incision of vessel, abdominal arteries" | [
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,... |
find the number of emergency hospital admission patients who have procedure icd9 code 4233. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.icd9_code = "4233" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What Result has a Date of october 14, 1967? | CREATE TABLE table_61510 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_61510 WHERE "Date" = 'october 14, 1967' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
25926,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4241,
25926,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
11363,
18148,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many silvers for the nation with under 6 total and under 0 bronze? | CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
7,
173,
624,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4294,
7,
21,
8,
2982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
792,
3,
2,
431,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Score, when Name is Nicole 赖淞凤? | CREATE TABLE table_name_38 (score VARCHAR, name VARCHAR) | SELECT score FROM table_name_38 WHERE name = "nicole 赖淞凤" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
7,
9022,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
5570,
19,
18063,
3,
2,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
564,
3274,
96,
2532,
32,
109,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year is the happy planet index? | CREATE TABLE table_77747 (
"Index" text,
"Organization" text,
"Year" real,
"Rank" text,
"Out of" real
) | SELECT SUM("Year") FROM table_77747 WHERE "Index" = 'happy planet index' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
4177,
41,
96,
26267,
226,
121,
1499,
6,
96,
14878,
257,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
15767,
13,
121,
490,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
26225,
4177,
549,
17444,
427,
96,
26267,
226,
121,
3274,
3,
31,
1024,
9632,
4345,
5538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is emergency and diagnoses long title is urinary incontinence, unspecified? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Urinary incontinence, unspecified" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What are the lowest laps of grid 17? | CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR) | SELECT MIN(laps) FROM table_name_69 WHERE grid = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
7402,
14941,
7,
13,
8634,
1003,
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,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
8634,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many years was the original title was (swopnodanay)? | CREATE TABLE table_17156199_1 (
year__ceremony_ VARCHAR,
original_title VARCHAR
) | SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE original_title = "স্বপ্নডানায় (Swopnodanay)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
25463,
19479,
834,
536,
41,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
834,
834,
2110,
15,
21208,
834,
61,
21680,
953,
834,
2517,
25463,
19479,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
2,
41,
134,
210,
32,
102,
29,
32,
3768,
9,
63,
61,
121,
1,
-... |
What state or district has a charter date of april 17, 2011? | CREATE TABLE table_name_51 (
us_state_district VARCHAR,
charter_date VARCHAR
) | SELECT us_state_district FROM table_name_51 WHERE charter_date = "april 17, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
178,
834,
5540,
834,
26,
23,
20066,
584,
4280,
28027,
6,
13382,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
538,
42,
3939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
178,
834,
5540,
834,
26,
23,
20066,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
13382,
834,
5522,
3274,
96,
9,
2246,
40,
12864,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all distinct cities in the address record. | CREATE TABLE addresses (
city VARCHAR
) | SELECT DISTINCT city FROM addresses | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
6746,
3119,
16,
8,
1115,
1368,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
690,
21680,
7181,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the round that had 32 winners from previous round? | CREATE TABLE table_30235 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
) | SELECT "Round" FROM table_30235 WHERE "Winners from previous round" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
25174,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
7,
4080,
121,
490,
6,
96,
254,
11158,
7,
1381,
121,
490,
6,
96,
18455,
687,
7,
45,
1767,
1751,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
1458,
25174,
549,
17444,
427,
96,
18455,
687,
7,
45,
1767,
1751,
121,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest amount of bronze medals when the rank was larger than 9? | CREATE TABLE table_name_46 (bronze INTEGER, rank INTEGER) | SELECT MAX(bronze) FROM table_name_46 WHERE rank > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
13711,
776,
3,
21342,
17966,
6,
11003,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
866,
13,
13467,
9365,
7,
116,
8,
11003,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
11003,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return the results of all music festivals using a bar chart. | CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE volume (
Volume_ID int,
V... | SELECT Result, COUNT(Result) FROM music_festival GROUP BY Result | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
9152,
1499,
6,
7526,
16,
17,
6,
29952,
834,
382,
155,
109,
1499,
6,
29952,
834,
1649,
40,
14608,
834,
5522,
1499,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20119,
6,
2847,
17161,
599,
20119,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
3,
20119,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the category Anuya Bhagvath was nominated for at vijay award? | CREATE TABLE table_name_39 (ceremony VARCHAR, name VARCHAR, award VARCHAR, outcome VARCHAR) | SELECT ceremony FROM table_name_39 WHERE award = "vijay award" AND outcome = "nominated" AND name = "anuya bhagvath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
2110,
15,
21208,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7252,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2760,
3274,
96,
2099,
1191,
63,
2760,
121,
3430,
6138,
3274,
96,
3114,
77,
920,
121,
3430,
564,
3274,
96,
152,
76,
63,
9,
3,
115,
1024,
122,
900,
189,
121,
... |
Visualize the average experience working length of journalists working on different role type using a bar chart, and sort X from high to low order. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance... | SELECT Work_Type, AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type ORDER BY Work_Type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1506,
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,
3118,
834,
25160,
6,
71,
17217,
599,
476,
2741,
7,
834,
9238,
61,
21680,
9994,
6157,
3,
17,
536,
3,
15355,
3162,
1506,
834,
60,
1493,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25340,
343,
834,
4309,
3274,
3,
17,
4416... |
What's the minimal number of population served? | CREATE TABLE table_22234 (
"Location" text,
"Partner" text,
"Construction Start" text,
"Inauguration Date" text,
"Population Served" real,
"Design flow (LPM)" real
) | SELECT MIN("Population Served") FROM table_22234 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3710,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
4302,
7,
26853,
3273,
121,
1499,
6,
96,
1570,
402,
7840,
257,
7678,
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,
3,
17684,
599,
121,
27773,
7830,
3,
28060,
8512,
21680,
953,
834,
26144,
3710,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average attendance for the date of 7 November 2007 with an H/A of H? | CREATE TABLE table_name_38 (
attendance INTEGER,
h___a VARCHAR,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_38 WHERE h___a = "h" AND date = "7 november 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
11364,
3,
21342,
17966,
6,
3,
107,
834,
834,
834,
9,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
3,
107,
834,
834,
834,
9,
3274,
96,
107,
121,
3430,
833,
3274,
96,
940,
3,
5326,
18247,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What school colors for the friends' school with over 1000 enrolled? | CREATE TABLE table_name_70 (
school VARCHAR,
enrolment VARCHAR
) | SELECT school AS Colors FROM table_name_70 WHERE enrolment > 1000 AND school = "the friends' school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
496,
584,
4280,
28027,
6,
3,
35,
3491,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
2602,
21,
8,
803,
31,
496,
28,
147,
558... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
6157,
6088,
7,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
35,
3491,
297,
2490,
5580,
3430,
496,
3274,
96,
532,
803,
31,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many attendances have w 48-10 as the result? | CREATE TABLE table_name_6 (
attendance INTEGER,
result VARCHAR
) | SELECT SUM(attendance) FROM table_name_6 WHERE result = "w 48-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
11364,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11364,
7,
43,
3,
210,
4678,
4536,
38,
8,
741,
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,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
741,
3274,
96,
210,
4678,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which away team had a Score of 2 0? | CREATE TABLE table_name_53 (
away_team VARCHAR,
score VARCHAR
) | SELECT away_team FROM table_name_53 WHERE score = "2–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
550,
834,
11650,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
550,
372,
141,
3,
9,
17763,
13,
204,
3,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2604,
3274,
96,
357,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who are the blockers where points are scored by Zach Randolph (24)? | CREATE TABLE table_13050003_2 (blocks VARCHAR, points VARCHAR) | SELECT blocks FROM table_13050003_2 WHERE points = "Zach Randolph (24)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
12814,
519,
834,
357,
41,
10734,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
2463,
277,
213,
979,
33,
5799,
57,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6438,
21680,
953,
834,
21448,
12814,
519,
834,
357,
549,
17444,
427,
979,
3274,
96,
956,
1836,
11377,
23589,
4743,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Year with Wins of 1, and Losses smaller than 1? | CREATE TABLE table_62039 (
"Year" real,
"Result" text,
"Matches" real,
"Wins" real,
"Draws" real,
"Losses" real
) | SELECT SUM("Year") FROM table_62039 WHERE "Wins" = '1' AND "Losses" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26898,
3288,
41,
96,
476,
2741,
121,
490,
6,
96,
20119,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
26898,
3288,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
return me the number of papers in PVLDB after 2000 in ' University of Michigan ' . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE dom... | SELECT COUNT(DISTINCT (publication.title)) FROM author, journal, organization, publication, writes WHERE journal.name = 'PVLDB' AND organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.jid = journal.jid AND publication.year > 2000 AND writes.aid = author.aid AND writes.pid = pu... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
9838,
3,
4331,
4059,
6,
3,
10812,
16,
17,
6,
3,
13903,
834,
5525,
16,
17,
6,
3,
354,
23,
26,
16,
17,
6,
3,
12417,
16,
17,
6,
2848,
834,
5525,
16,
17,
6,
2233,
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,
15438,
25424,
6227,
41,
15727,
257,
5,
21869,
61,
61,
21680,
2291,
6,
6378,
6,
1470,
6,
5707,
6,
11858,
549,
17444,
427,
6378,
5,
4350,
3274,
3,
31,
345,
553,
9815,
279,
31,
3430,
1470,
5,
4350,
... |
Who directed the episode seen by 3.93 million people in the US? | CREATE TABLE table_18268826_1 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT directed_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2688,
4060,
2688,
834,
536,
41,
6640,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2606,
2688,
4060,
2688,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
5787,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which leagues have Raiders as their mascot? | CREATE TABLE table_11044765_1 (
league VARCHAR,
mascot VARCHAR
) | SELECT league FROM table_11044765_1 WHERE mascot = "Raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
15442,
4177,
4122,
834,
536,
41,
5533,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5533,
7,
43,
13016,
588,
7,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
536,
15442,
4177,
4122,
834,
536,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
448,
18900,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which championship after 1985 had a winning score of 8 (68-72-69-71=280)? | CREATE TABLE table_name_17 (
championship VARCHAR,
year VARCHAR,
winning_score VARCHAR
) | SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
10183,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10183,
227,
13200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
215,
2490,
13200,
3430,
3447,
834,
7,
9022,
3274,
3,
104,
927,
599,
3651,
3,
18,
9455,
3,
18,
3,
3951,
3,
18,
3,
4450,
3274,
3,
17518,
61,
1,
-100,
-100,... |
chronic respiratory insufficiency | CREATE TABLE table_train_3 (
"id" int,
"pregnancy_or_lactation" bool,
"severe_sepsis" bool,
"systolic_blood_pressure_sbp" int,
"mean_arterial_pressure_map" int,
"leukocyte_count" int,
"renal_disease" bool,
"temperature" float,
"sepsis" bool,
"hypotension" bool,
"heart_rate" i... | SELECT * FROM table_train_3 WHERE chronic_respiratory_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
519,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
7,
3258,
15,
834,
7,
15,
102,
7,
159,
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,
1429,
21680,
953,
834,
9719,
834,
519,
549,
17444,
427,
6658,
834,
60,
7,
2388,
6546,
834,
26,
159,
14608,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the prominence in m of moussa ali terara peak? | CREATE TABLE table_79280 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT SUM("Prominence (m)") FROM table_79280 WHERE "Peak" = 'moussa ali terara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
17518,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
3174,
1109,
1433,
41,
51,
61,
8512,
21680,
953,
834,
4440,
17518,
549,
17444,
427,
96,
345,
15,
1639,
121,
3274,
3,
31,
51,
1162,
7,
9,
3,
4288,
3,
449,
2551,
31,
1,
-100,
-100,
-100,
-100,
... |
Return a bar chart on how many events are there for each party?, and order in descending by the y axis. | CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text... | SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
15,
2169,
7,
41,
8042,
834,
4309,
16,
17,
6,
8042,
834,
23954,
1499,
6,
3450,
834,
4309,
16,
17,
6,
8541,
834,
77,
834,
7993,
834,
4309,
16,
17,
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,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1088,
834,
15,
2169,
7,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,... |
Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment. | CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
) | SELECT cname FROM college WHERE enr < 13000 AND state = "AZ" UNION SELECT cname FROM college WHERE enr > 15000 AND state = "LA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
12417,
381,
6,
3,
75,
4350,
1499,
6,
3,
102,
2748,
1499,
6,
1357,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
3,
12417,
381,
6,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
75,
4350,
21680,
1900,
549,
17444,
427,
3,
35,
52,
3,
2,
1179,
2313,
3430,
538,
3274,
96,
10491,
121,
4417,
9215,
3,
23143,
14196,
3,
75,
4350,
21680,
1900,
549,
17444,
427,
3,
35,
52,
2490,
627,
2313,
3430,
... |
What was the Location/Attendance on Dec 2? | CREATE TABLE table_46785 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Location/Attendance" FROM table_46785 WHERE "Date" = 'dec 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
4433,
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,
87,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
591,
3708,
4433,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return the unique name for stations that have ever had 7 bikes available. | CREATE TABLE status (
station_id VARCHAR,
bikes_available VARCHAR
)
CREATE TABLE station (
name VARCHAR,
id VARCHAR
) | SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
584,
4280,
28027,
6,
13490,
834,
28843,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
564,
584,
4280,
28027,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
4350,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
549,
17444,
427,
332,
4416,
15214,
7,
834,
2884... |
What is the company from Greece with author Aeschylus? | CREATE TABLE table_63765 (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
) | SELECT "company" FROM table_63765 WHERE "country" = 'greece' AND "author" = 'aeschylus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3959,
755,
41,
96,
4895,
121,
1499,
6,
96,
17415,
121,
1499,
6,
96,
29179,
121,
1499,
6,
96,
10925,
121,
1499,
6,
96,
17529,
121,
1499,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
29179,
121,
21680,
953,
834,
3891,
3959,
755,
549,
17444,
427,
96,
17529,
121,
3274,
3,
31,
3584,
15,
565,
31,
3430,
96,
17415,
121,
3274,
3,
31,
9,
15,
7,
11971,
7650,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
How many budget types do we have? | CREATE TABLE Ref_budget_codes (Id VARCHAR) | SELECT COUNT(*) FROM Ref_budget_codes | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
11073,
2782,
834,
4978,
7,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1487,
1308,
103,
62,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
419,
89,
834,
11073,
2782,
834,
4978,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the calculated activity (CI) is 4.96 10 11, what is the specimen weight/size? | CREATE TABLE table_28432 (
"Specimen weight/size" text,
"Calculated activity ( Bq )" real,
"Calculated activity ( Ci )" text,
"Estimated activity GR(api)" text,
"Estimated exposure ( mRem )/hr*" text
) | SELECT "Specimen weight/size" FROM table_28432 WHERE "Calculated activity ( Ci )" = '4.96×10 −11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2668,
41,
96,
7727,
23,
904,
1293,
87,
7991,
121,
1499,
6,
96,
14318,
1497,
920,
1756,
41,
272,
1824,
3,
61,
121,
490,
6,
96,
14318,
1497,
920,
1756,
41,
4385,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7727,
23,
904,
1293,
87,
7991,
121,
21680,
953,
834,
357,
4608,
2668,
549,
17444,
427,
96,
14318,
1497,
920,
1756,
41,
4385,
3,
61,
121,
3274,
3,
31,
7984,
4314,
2,
1714,
3,
2,
2596,
31,
1,
-100,
-100,
-100,... |
Name the number of area where population density 2010 for 514 | CREATE TABLE table_14986292_1 (area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR) | SELECT COUNT(area__km²_) FROM table_14986292_1 WHERE population_density_2010___km²_ = 514 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
3840,
3166,
357,
834,
536,
41,
498,
834,
834,
5848,
357,
834,
584,
4280,
28027,
6,
2074,
834,
537,
7,
485,
834,
14926,
834,
834,
834,
5848,
357,
834,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
24816,
3840,
3166,
357,
834,
536,
549,
17444,
427,
2074,
834,
537,
7,
485,
834,
14926,
834,
834,
834,
5848,
357,
834,
3274,
305,
2534,
1,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
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,
... |
Name the label with catalog of mhcl-20005 | CREATE TABLE table_66871 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text,
"Note" text
) | SELECT "Label" FROM table_66871 WHERE "Catalog" = 'mhcl-20005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4225,
536,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
434,
10333,
121,
21680,
953,
834,
3539,
4225,
536,
549,
17444,
427,
96,
18610,
9,
2152,
121,
3274,
3,
31,
51,
107,
75,
40,
18,
3632,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people can attend games in the stadium of the team whose captain is Vasil Vasilev? | CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR) | SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
24748,
4201,
834,
536,
41,
4010,
9,
6726,
584,
4280,
28027,
6,
372,
834,
4010,
17,
9,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
54,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2614,
21680,
953,
834,
23188,
24748,
4201,
834,
536,
549,
17444,
427,
372,
834,
4010,
17,
9,
77,
3274,
96,
553,
9,
7,
173,
21800,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest Pick for Lonnie Brockman before round 9? | CREATE TABLE table_8356 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT MAX("Pick") FROM table_8356 WHERE "Player" = 'lonnie brockman' AND "Round" < '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
4834,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
8512,
21680,
953,
834,
4591,
4834,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
40,
32,
11113,
3,
115,
6133,
348,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
1298,
31,
1,
... |
What is the highest floor for the building measuring 220 meters? | CREATE TABLE table_name_97 (
floors INTEGER,
metres INTEGER
) | SELECT MAX(floors) FROM table_name_97 WHERE metres > 220 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8242,
3,
21342,
17966,
6,
14604,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1501,
21,
8,
740,
11297,
204,
1755,
8848,
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,
4800,
4,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
14604,
2490,
204,
1755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What nation had 1399.3 points? | CREATE TABLE table_name_35 (
nation VARCHAR,
points VARCHAR
) | SELECT nation FROM table_name_35 WHERE points = 1399.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2982,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,
141,
1179,
3264,
5,
519,
979,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
979,
3274,
1179,
3264,
5,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Non-Suited Match that has greater than 6 Number of Decks. | CREATE TABLE table_name_60 (
non_suited_match VARCHAR,
number_of_decks INTEGER
) | SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
529,
834,
10967,
834,
19515,
584,
4280,
28027,
6,
381,
834,
858,
834,
9622,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5388,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
529,
834,
10967,
834,
19515,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
381,
834,
858,
834,
9622,
7,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the best top 10 when there are fewer than 0 wins? | CREATE TABLE table_61719 (
"Year" text,
"Tournaments played" real,
"Cuts made*" real,
"Wins" real,
"Top 10s" real,
"Best finish" text,
"Earnings ( $ )" text,
"Money list rank" text,
"Scoring average" text,
"Scoring rank" text
) | SELECT MAX("Top 10s") FROM table_61719 WHERE "Wins" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
2294,
41,
96,
476,
2741,
121,
1499,
6,
96,
382,
1211,
29,
9,
4128,
1944,
121,
490,
6,
96,
15784,
17,
7,
263,
1935,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22481,
335,
7,
8512,
21680,
953,
834,
948,
2517,
2294,
549,
17444,
427,
96,
18455,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who led the metas volantes classification for stage 4? | CREATE TABLE table_name_36 (metas_volantes_classification VARCHAR, stage VARCHAR) | SELECT metas_volantes_classification FROM table_name_36 WHERE stage = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
3493,
9,
7,
834,
4571,
8386,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2237,
8,
10531,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10531,
7,
834,
4571,
8386,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1726,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the total number of students and total number of instructors for each department. | CREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR) | SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
26,
6707,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
23,
26,
584,
4280,
28027,
6,
20,
102,
17,
834,
4350,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
332,
4416,
23,
26,
201,
2847,
17161,
599,
15438,
25424,
6227,
332,
5787,
23,
26,
201,
332,
5787,
26,
6707,
834,
4350,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.