NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the land area of Hopewell parish in km2? | CREATE TABLE table_170958_2 (area_km_2 VARCHAR, official_name VARCHAR) | SELECT area_km_2 FROM table_170958_2 WHERE official_name = "Hopewell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4198,
3449,
834,
357,
41,
498,
834,
5848,
834,
357,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1322,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
616,
834,
5848,
834,
357,
21680,
953,
834,
2517,
4198,
3449,
834,
357,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
4489,
855,
2091,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which opponent has a week of 11? | CREATE TABLE table_name_49 (
opponent VARCHAR,
week VARCHAR
) | SELECT opponent FROM table_name_49 WHERE week = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
65,
3,
9,
471,
13,
850,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
471,
3274,
850,
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... |
Which name has a Kanji of ? | CREATE TABLE table_34248 (
"Kanji" text,
"Name" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" text
) | SELECT "Name" FROM table_34248 WHERE "Kanji" = '朧' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
3707,
41,
96,
439,
9,
21391,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
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,
23954,
121,
21680,
953,
834,
3710,
357,
3707,
549,
17444,
427,
96,
439,
9,
21391,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where did Steve Gotsche win? | CREATE TABLE table_name_26 (
venue VARCHAR,
champion VARCHAR
) | SELECT venue FROM table_name_26 WHERE champion = "steve gotsche" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
5669,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
5659,
13031,
3992,
1369,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
6336,
3274,
96,
849,
162,
530,
3992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many results were there for the Stan Fox Stakes race? | CREATE TABLE table_1360997_2 (result VARCHAR, race VARCHAR) | SELECT COUNT(result) FROM table_1360997_2 WHERE race = "Stan Fox Stakes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4198,
4327,
834,
357,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
772,
130,
132,
21,
8,
11469,
7547,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
23459,
4198,
4327,
834,
357,
549,
17444,
427,
1964,
3274,
96,
134,
17,
152,
7547,
180,
4914,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the gold for the nation with a record of bronze 1, Syria nation with a grand total less than 1? | CREATE TABLE table_39690 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Gold") FROM table_39690 WHERE "Bronze" = '1' AND "Nation" = 'syria' AND "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
2394,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23576,
8512,
21680,
953,
834,
519,
4314,
2394,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
536,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
7,
63,
52,
23,
9,
31,
3430,
96,
3696,
1... |
How many songs have a shared vocal? | CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) | SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
7,
2444,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3605,
41,
7,
2444,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
2233,
61,
21680,
6721,
7,
6157,
332,
536,
3,
15355,
3162,
3605,
6157,
332,
357,
9191,
332,
5411,
7,
2444,
23,
26,
3274,
332,
4416,
7,
2444,
23,
26,
549,
17444,
427,
3,
12016,
... |
Name the timeslot for season 5 | CREATE TABLE table_143554_1 (
timeslot VARCHAR,
season VARCHAR
) | SELECT timeslot FROM table_143554_1 WHERE season = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2469,
5062,
834,
536,
41,
648,
3171,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
648,
3171,
21,
774,
305,
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,
648,
3171,
21680,
953,
834,
2534,
2469,
5062,
834,
536,
549,
17444,
427,
774,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest points of British Racing after 1963? | CREATE TABLE table_name_90 (points INTEGER, year INTEGER) | SELECT MIN(points) FROM table_name_90 WHERE year > 1963 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
2700,
7,
3,
21342,
17966,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
979,
13,
2390,
16046,
227,
20613,
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,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
2490,
20613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was Peter Woolfolk's Total Rebound average? | CREATE TABLE table_name_59 (total_rebounds INTEGER, player VARCHAR) | SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = "peter woolfolk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
235,
1947,
834,
23768,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
2737,
19690,
89,
32,
40,
157,
31,
7,
927... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
23768,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1959,
3274,
96,
4995,
49,
13996,
89,
32,
40,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Website has a Frequency smaller than 760 and a Callsign of kkyx? | CREATE TABLE table_name_85 (
website VARCHAR,
frequency VARCHAR,
callsign VARCHAR
) | SELECT website FROM table_name_85 WHERE frequency < 760 AND callsign = "kkyx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
475,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3637,
65,
3,
9,
5532,
835... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
475,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
7321,
3,
2,
3,
28212,
3430,
580,
6732,
3274,
96,
8511,
63,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who wrote with original air date being september23,1995 | CREATE TABLE table_14637853_3 (written_by VARCHAR, original_air_date VARCHAR) | SELECT written_by FROM table_14637853_3 WHERE original_air_date = "September23,1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3891,
3940,
4867,
834,
519,
41,
14973,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
2832,
28,
926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2534,
3891,
3940,
4867,
834,
519,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
27652,
2773,
6,
19479,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose discharge location is short term hospital and procedure short title is attach pedicle graft nec. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND procedures.short_title = "Attach pedicle graft NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What's the venue for the asian games tournament? | CREATE TABLE table_58605 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Venue" FROM table_58605 WHERE "Tournament" = 'asian games' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3328,
755,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
3449,
3328,
755,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
9,
10488,
1031,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Bar chart of mean salary from each dept name, and could you order by the Y-axis from high to low? | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
) | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
71,
17217,
599,
7,
138,
1208,
61,
309,
25067,
1,
-100,
-100,
-... |
Show the number of document types. | CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_to time
)
CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE ref_locations (
location_code text,
location_name text,
location_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
destroyed_by_employee_id number,
planned_destruction_date time,
actual_destruction_date time,
other_details text
) | SELECT COUNT(*) FROM ref_document_types | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6270,
41,
1075,
834,
4978,
1499,
6,
1075,
834,
4350,
1499,
6,
1075,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1708,
834,
14836,
7,
41,
1708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6273,
834,
28244,
834,
6137,
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,
-100,
-100,... |
What is the total number of weeks where games were on November 5, 1973 and the attendance was larger than 49,220? | CREATE TABLE table_6527 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_6527 WHERE "Date" = 'november 5, 1973' AND "Attendance" > '49,220' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2555,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
4122,
2555,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
7836,
17107,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3647,
6,
357,... |
What Title has a Presentation of Credentials of October 4, 1988? | CREATE TABLE table_name_90 (
title VARCHAR,
presentation_of_credentials VARCHAR
) | SELECT title FROM table_name_90 WHERE presentation_of_credentials = "october 4, 1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
2233,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11029,
65,
3,
9,
25885,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
32,
75,
235,
1152,
6464,
10414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the tally in Kilkenny county with 10 as the total and opposition of Waterford? | CREATE TABLE table_54035 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT "Tally" FROM table_54035 WHERE "County" = 'kilkenny' AND "Total" = '10' AND "Opposition" = 'waterford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
2469,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
382,
1427,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1427,
121,
21680,
953,
834,
25379,
2469,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
157,
173,
9376,
63,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
1714,
31,
3430,
96,
667,
102,
4718,
121,
3274,
... |
what is the score when the tie no is 28? | CREATE TABLE table_name_97 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_97 WHERE tie_no = 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
116,
8,
6177,
150,
19,
2059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
6177,
834,
29,
32,
3274,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name of rivelino had how many highest caps? | CREATE TABLE table_name_65 (caps INTEGER, name VARCHAR) | SELECT MAX(caps) FROM table_name_65 WHERE name = "rivelino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
4010,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
13,
3,
52,
757,
40,
77,
32,
141,
149,
186,
2030,
16753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4010,
7,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
564,
3274,
96,
52,
757,
40,
77,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team? | CREATE TABLE table_name_74 (overall VARCHAR, opponent VARCHAR, plyff VARCHAR, home VARCHAR) | SELECT overall FROM table_name_74 WHERE plyff = "(0-0)" AND home = "(0-1)" AND opponent = "green bay blizzard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1890,
1748,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
3,
102,
120,
89,
89,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
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,
1879,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
3,
102,
120,
89,
89,
3274,
96,
599,
18629,
61,
121,
3430,
234,
3274,
96,
599,
9498,
6982,
121,
3430,
15264,
3274,
96,
9423,
10210,
3,
7437,
5271,
986,
121,
... |
During the Hamburg Masters Tournament, during which Jiří Novák was absent(A) in 1998, how did he do in 1997? | CREATE TABLE table_name_93 (tournament VARCHAR) | SELECT 1997 FROM table_name_93 WHERE 1998 = "a" AND tournament = "hamburg masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
8,
7330,
14119,
20502,
6,
383,
84,
7802,
2,
5098,
2975,
157,
47,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6622,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
6260,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
1483,
4824,
2325,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54? | CREATE TABLE table_42877 (
"Episode" text,
"Rating" real,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" real,
"Rank (Timeslot)" text,
"Rank (Night)" text,
"Rank (Week)" text
) | SELECT AVG("Share") FROM table_42877 WHERE "Viewers (millions)" > '7.82' AND "Rank (Timeslot)" = '3' AND "Rank (Week)" = '54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
27697,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
448,
1014,
121,
490,
6,
96,
24501,
121,
490,
6,
96,
448,
1014,
87,
24501,
9323,
18,
3647,
61,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
24501,
8512,
21680,
953,
834,
4165,
27697,
549,
17444,
427,
96,
15270,
277,
41,
17030,
7,
61,
121,
2490,
3,
31,
940,
5,
4613,
31,
3430,
96,
22557,
41,
13368,
7,
3171,
61,
121,
3274,
3,
31,
5... |
Which province has an elevation of 4550? | CREATE TABLE table_2251578_4 (province VARCHAR, elevation__m_ VARCHAR) | SELECT province FROM table_2251578_4 WHERE elevation__m_ = 4550 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
1808,
3940,
834,
591,
41,
1409,
2494,
565,
584,
4280,
28027,
6,
16417,
834,
834,
51,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7985,
65,
46,
1641... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7985,
21680,
953,
834,
20489,
1808,
3940,
834,
591,
549,
17444,
427,
16417,
834,
834,
51,
834,
3274,
3479,
1752,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which title, directed by David Kendall, had 3.7 million viewers? | CREATE TABLE table_22123 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real,
"Viewers (millions)" text
) | SELECT "Title" FROM table_22123 WHERE "Viewers (millions)" = '3.7' AND "Directed by" = 'David Kendall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
14574,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
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,
382,
155,
109,
121,
21680,
953,
834,
2884,
14574,
549,
17444,
427,
96,
15270,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
25168,
31,
3430,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
308,
9,
6961,
31842,
31,
1,
... |
How much is the track Fast As a Shark? | CREATE TABLE tracks (unit_price VARCHAR, name VARCHAR) | SELECT unit_price FROM tracks WHERE name = "Fast As a Shark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6542,
41,
15129,
834,
102,
4920,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
19,
8,
1463,
6805,
282,
3,
9,
23442,
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,
1745,
834,
102,
4920,
21680,
6542,
549,
17444,
427,
564,
3274,
96,
371,
9,
7,
17,
282,
3,
9,
23442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
NHL players are all centre in Florida panthers. | CREATE TABLE table_1013129_10 (player VARCHAR, position VARCHAR, nhl_team VARCHAR) | SELECT player FROM table_1013129_10 WHERE position = "Centre" AND nhl_team = "Florida Panthers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2368,
22174,
834,
1714,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
1714,
2368,
22174,
834,
1714,
549,
17444,
427,
1102,
3274,
96,
254,
9578,
121,
3430,
3,
29,
107,
40,
834,
11650,
3274,
96,
11251,
4055,
9,
21149,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was Kuwait City a venue? | CREATE TABLE table_53179 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_53179 WHERE "Venue" = 'kuwait city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
26593,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
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,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4867,
26593,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2729,
26745,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd? | CREATE TABLE table_77433 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT "Competition" FROM table_77433 WHERE "Event" = '50km' AND "Year" < '2010' AND "Position" = '3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4906,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
4013,
4906,
519,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
1752,
5848,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
14926,
31,
3430,
96,
345,
32,
7,
4749,
121,
... |
I want to see trend the number of season over season by Away_team, and list Season in descending order. | CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
) | SELECT Season, COUNT(Season) FROM game GROUP BY Away_team ORDER BY Season DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
467,
41,
14939,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
7960,
16,
17,
6,
7678,
1499,
6,
1210,
834,
11650,
1499,
6,
71,
1343,
834,
11650,
1499,
6,
17763,
1499,
6,
15571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7960,
6,
2847,
17161,
599,
134,
15,
9,
739,
61,
21680,
467,
350,
4630,
6880,
272,
476,
71,
1343,
834,
11650,
4674,
11300,
272,
476,
7960,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World? | CREATE TABLE table_name_82 (miss_universe_philippines VARCHAR, first_runner_up VARCHAR, binibining_pilipinas_world VARCHAR) | SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = "danielle castaño" AND binibining_pilipinas_world = "janina san miguel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
11502,
834,
7846,
15,
834,
18118,
23,
1572,
4477,
584,
4280,
28027,
6,
166,
834,
10806,
834,
413,
584,
4280,
28027,
6,
2701,
23,
4517,
53,
834,
102,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3041,
834,
7846,
15,
834,
18118,
23,
1572,
4477,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
166,
834,
10806,
834,
413,
3274,
96,
26,
2738,
693,
4061,
9,
2,
32,
121,
3430,
2701,
23,
4517,
53,
834,
102,
173,... |
return me the number of papers published in the VLDB conference in each year . | CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE author (
aid int,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
) | SELECT COUNT(DISTINCT (publication.title)), publication.year FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid GROUP BY publication.year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
3052,
16,
17,
6,
3,
12417,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15693,
41,
15693,
3,
4331,
4059,
6,
4984,
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,
2847,
17161,
599,
15438,
25424,
6227,
41,
15727,
257,
5,
21869,
61,
201,
5707,
5,
1201,
21680,
2542,
6,
5707,
549,
17444,
427,
2542,
5,
4350,
3274,
3,
31,
553,
9815,
279,
31,
3430,
5707,
5,
10812,
3274,
2542,
5,
1... |
What is the first year for Popgun? | CREATE TABLE table_55144 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
) | SELECT "First Year" FROM table_55144 WHERE "Title" = 'popgun' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
20885,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
31009,
49,
121,
1499,
6,
96,
25171,
2929,
121,
1499,
6,
96,
3612,
7,
17,
2929,
121,
1499,
6,
96,
13714,
60,
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,
0,
0... | [
3,
23143,
14196,
96,
25171,
2929,
121,
21680,
953,
834,
3769,
20885,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
9791,
8765,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Q1+Q2 time for the driver whose Q1 order was 13? | CREATE TABLE table_12091 (
"Driver" text,
"Constructor" text,
"Q1 order" real,
"Q1 time" text,
"Q1 pos" real,
"Q1+Q2 time" text
) | SELECT "Q1+Q2 time" FROM table_12091 WHERE "Q1 order" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4729,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
2247,
536,
455,
121,
490,
6,
96,
2247,
536,
97,
121,
1499,
6,
96,
2247,
536,
3,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2247,
536,
1220,
2247,
357,
97,
121,
21680,
953,
834,
15518,
4729,
549,
17444,
427,
96,
2247,
536,
455,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which week has a result L 56-3? | CREATE TABLE table_47998 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT AVG("Week") FROM table_47998 WHERE "Result" = 'l 56-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
3916,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
591,
4440,
3916,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
305,
24262,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
any history of stroke, transient ischemic attack, dementia or structural cns damage e.g. neoplasm, aneurysm, av malformation | CREATE TABLE table_test_2 (
"id" int,
"loss_of_consciousness" bool,
"gender" string,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"stroke" bool,
"renal_disease" bool,
"hemorrhagic_diathesis" bool,
"transient_ischemic_attack" bool,
"creatinine_clearance_cl" float,
"dementia" bool,
"glasgow_come_score_gcs" int,
"prior_creatinine" float,
"immunological_dysfunction" bool,
"diastolic_blood_pressure_dbp" int,
"health_coverage" bool,
"structural_cns_damage" bool,
"neoplasm" bool,
"av_malformation" bool,
"disorder" bool,
"aneurysm" bool,
"final_timi" int,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_test_2 WHERE stroke = 1 OR transient_ischemic_attack = 1 OR dementia = 1 OR structural_cns_damage = 1 OR neoplasm = 1 OR aneurysm = 1 OR av_malformation = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2298,
7,
834,
858,
834,
25098,
655,
121,
3,
12840,
40,
6,
96,
122,
3868,
121,
6108,
6,
96,
27779,
53,
121,
16,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
357,
549,
17444,
427,
9529,
3274,
209,
4674,
3017,
4741,
834,
2014,
3113,
834,
27673,
3274,
209,
4674,
19398,
3274,
209,
4674,
8649,
834,
75,
29,
7,
834,
7812,
545,
3274,
209,
4674,
... |
What extra has world championships as the tournament, and 1st as the result? | CREATE TABLE table_66808 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Extra" FROM table_66808 WHERE "Tournament" = 'world championships' AND "Result" = '1st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2079,
927,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
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,
5420,
1313,
121,
21680,
953,
834,
3539,
2079,
927,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7276,
10183,
7,
31,
3430,
96,
20119,
121,
3274,
3,
31,
536,
7,
17,
31,
1,
-100,
-100,
-100,
-10... |
What is the average rank of the city of el paso, which has a population greater than 672,538? | CREATE TABLE table_name_69 (
rank INTEGER,
city VARCHAR,
population VARCHAR
) | SELECT AVG(rank) FROM table_name_69 WHERE city = "el paso" AND population > 672 OFFSET 538 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
11003,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
11003,
13,
8,
690,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6254,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
690,
3274,
96,
15,
40,
330,
32,
121,
3430,
2074,
2490,
431,
5865,
3,
15316,
20788,
305,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Valmir Benavides won pole position at which circuit? | CREATE TABLE table_31110 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Circuit" FROM table_31110 WHERE "Pole Position" = 'Valmir Benavides' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
19277,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
3341,
19277,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
18392,
5884,
2798,
2960,
1395,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When the high assists were Shawn Marion (6) who had high rebounds? | CREATE TABLE table_21532 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_21532 WHERE "High assists" = 'Shawn Marion (6)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
2668,
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,
21417,
3,
23768,
121,
21680,
953,
834,
357,
1808,
2668,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
10499,
9,
210,
29,
23816,
3,
18669,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the 3 most common cloud covers in the zip code of 94107? | CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE weather (
date text,
max_temperature_f number,
mean_temperature_f number,
min_temperature_f number,
max_dew_point_f number,
mean_dew_point_f number,
min_dew_point_f number,
max_humidity number,
mean_humidity number,
min_humidity number,
max_sea_level_pressure_inches number,
mean_sea_level_pressure_inches number,
min_sea_level_pressure_inches number,
max_visibility_miles number,
mean_visibility_miles number,
min_visibility_miles number,
max_wind_speed_mph number,
mean_wind_speed_mph number,
max_gust_speed_mph number,
precipitation_inches number,
cloud_cover number,
events text,
wind_dir_degrees number,
zip_code number
)
CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
) | SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT(*) DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
381,
6,
13490,
834,
28843,
381,
6,
12908,
7,
834,
28843,
381,
6,
97,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3126,
834,
9817,
21680,
1969,
549,
17444,
427,
10658,
834,
4978,
3274,
3,
4240,
18057,
350,
4630,
6880,
272,
476,
3126,
834,
9817,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
220,
1,
-1... |
What is the Flagship of the Show Hosted by Rover (Shane French)? | CREATE TABLE table_50180 (
"Show" text,
"Host(s)" text,
"Flagship" text,
"Market" text,
"iHeartRadio" text
) | SELECT "Flagship" FROM table_50180 WHERE "Host(s)" = 'rover (shane french)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
20829,
41,
96,
134,
4067,
121,
1499,
6,
96,
566,
3481,
599,
7,
61,
121,
1499,
6,
96,
371,
5430,
2009,
121,
1499,
6,
96,
22572,
121,
1499,
6,
96,
23,
3845,
1408,
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,
371,
5430,
2009,
121,
21680,
953,
834,
1752,
20829,
549,
17444,
427,
96,
566,
3481,
599,
7,
61,
121,
3274,
3,
31,
52,
1890,
41,
7,
2618,
15,
20609,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the lowest height for class of hewitt and prom less than 148 | CREATE TABLE table_52934 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
) | SELECT MIN("Height (m)") FROM table_52934 WHERE "Class" = 'hewitt' AND "Prom. (m)" < '148' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
3710,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
3845,
2632,
41,
51,
61,
121,
490,
6,
96,
3174,
51,
5,
41,
51,
61,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3845,
2632,
41,
51,
61,
8512,
21680,
953,
834,
755,
3166,
3710,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
88,
7820,
17,
31,
3430,
96,
3174,
51,
5,
41,
51,
61,
121,
3,
2,
3,
31,
24748,
... |
What's the most wins of Tatong? | CREATE TABLE table_name_43 (wins INTEGER, benalla_dfl VARCHAR) | SELECT MAX(wins) FROM table_name_43 WHERE benalla_dfl = "tatong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3757,
7,
3,
21342,
17966,
6,
36,
29,
1748,
9,
834,
26,
89,
40,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
167,
9204,
13,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
36,
29,
1748,
9,
834,
26,
89,
40,
3274,
96,
17,
144,
2444,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What week was September 24, 2000 on? | CREATE TABLE table_name_55 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_55 WHERE date = "september 24, 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
8041,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
47,
1600,
14320,
2766,
30,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
14320,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What regular seasons occurred in 2011? | CREATE TABLE table_14723382_1 (
regular_season VARCHAR,
year VARCHAR
) | SELECT regular_season FROM table_14723382_1 WHERE year = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
20879,
4613,
834,
536,
41,
1646,
834,
9476,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1646,
9385,
6935,
16,
2722,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1646,
834,
9476,
21680,
953,
834,
24719,
20879,
4613,
834,
536,
549,
17444,
427,
215,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 1976 value of the Australian Open? | CREATE TABLE table_name_35 (tournament VARCHAR) | SELECT 1976 FROM table_name_35 WHERE tournament = "australian open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16164,
701,
13,
8,
3746,
2384,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16164,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
5892,
3274,
96,
402,
3109,
9928,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names of companies and the number of employees they have | CREATE TABLE people (
People_ID VARCHAR
)
CREATE TABLE employment (
People_ID VARCHAR,
Company_ID VARCHAR
)
CREATE TABLE company (
Name VARCHAR,
Company_ID VARCHAR
) | SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4311,
41,
2449,
834,
4309,
584,
4280,
28027,
6,
1958,
834,
4309,
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,
1,
1... | [
3,
23143,
14196,
332,
5787,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
4311,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
3,
15355,
3162,
349,
6157,
332,
... |
Which Platelet count has a Partial thromboplastin time of prolonged or unaffected? | CREATE TABLE table_name_20 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR) | SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = "prolonged or unaffected" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
17628,
1655,
834,
13362,
584,
4280,
28027,
6,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14477... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3829,
1655,
834,
13362,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
3274,
96,
1409,
23629,
42,
73,
9,
27488,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the par for the t5 place player Steve Jones? | CREATE TABLE table_44634 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_44634 WHERE "Place" = 't5' AND "Player" = 'steve jones' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3891,
591,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3628,
3891,
591,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
755,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
849,
162,
3,
1927,
1496,
31,
1,
-100,
-100,
-100,
-100... |
What country has a place of 4? | CREATE TABLE table_name_66 (
country VARCHAR,
place VARCHAR
) | SELECT country FROM table_name_66 WHERE place = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
286,
13,
314,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
286,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1999 tournament that has a Q1 in 2003 and a Q3 in 2002? | CREATE TABLE table_name_2 (Id VARCHAR) | SELECT 1999 FROM table_name_2 WHERE 2003 = "q1" AND 2002 = "q3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5247,
5892,
24,
65,
3,
9,
1593,
536,
16,
3888,
11,
3,
9,
1593,
519,
16,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5247,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3888,
3274,
96,
1824,
536,
121,
3430,
4407,
3274,
96,
1824,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers? | CREATE TABLE table_33514 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
) | SELECT "Score" FROM table_33514 WHERE "Result" = 'hunter mariners def. castleford tigers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
2534,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
2469,
2534,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
107,
5957,
8769,
52,
7,
20,
89,
5,
13243,
2590,
3,
2880,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average year for the Olympic Games? | CREATE TABLE table_63840 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT AVG("Year") FROM table_63840 WHERE "Competition" = 'olympic games' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
26311,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3891,
26311,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
32,
120,
51,
6174,
1031,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On week 7, what were the opponents? | CREATE TABLE table_25380472_2 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_25380472_2 WHERE week = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
22671,
4177,
357,
834,
357,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
471,
7973,
125,
130,
8,
16383,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
1828,
22671,
4177,
357,
834,
357,
549,
17444,
427,
471,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many players have the pick number 166? | CREATE TABLE table_1965650_11 (player VARCHAR, pick__number VARCHAR) | SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4122,
15348,
834,
2596,
41,
20846,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
43,
8,
1432,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
2294,
4122,
15348,
834,
2596,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
3,
26811,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team. | CREATE TABLE table_23292220_6 (episode VARCHAR, jasons_team VARCHAR) | SELECT episode FROM table_23292220_6 WHERE jasons_team = "Duncan James and Johnny Vegas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3166,
2884,
1755,
834,
948,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
2662,
6577,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
21680,
953,
834,
2773,
3166,
2884,
1755,
834,
948,
549,
17444,
427,
2662,
6577,
834,
11650,
3274,
96,
308,
202,
1608,
2549,
11,
18398,
7615,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What type of car does Jeff Fuller drive? | CREATE TABLE table_2182170_1 (
car_s_ VARCHAR,
driver_s_ VARCHAR
) | SELECT car_s_ FROM table_2182170_1 WHERE driver_s_ = "Jeff Fuller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
2658,
2518,
834,
536,
41,
443,
834,
7,
834,
584,
4280,
28027,
6,
2535,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
834,
7,
834,
21680,
953,
834,
357,
2606,
2658,
2518,
834,
536,
549,
17444,
427,
2535,
834,
7,
834,
3274,
96,
7851,
89,
89,
4043,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many poles were there in 1996? | CREATE TABLE table_2182573_2 (
poles INTEGER,
year VARCHAR
) | SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
1828,
4552,
834,
357,
41,
11148,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11148,
7,
130,
132,
16,
6911,
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,
3,
17684,
599,
14332,
7,
61,
21680,
953,
834,
357,
2606,
1828,
4552,
834,
357,
549,
17444,
427,
215,
3274,
6911,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many games were Tied during the Span of 2011–2013 with a less than 80% Win %? | CREATE TABLE table_name_57 (tied VARCHAR, span VARCHAR, win__percentage VARCHAR) | SELECT COUNT(tied) FROM table_name_57 WHERE span = "2011–2013" AND win__percentage < 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
17,
5973,
584,
4280,
28027,
6,
8438,
584,
4280,
28027,
6,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
17,
5973,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
8438,
3274,
96,
13907,
104,
11138,
121,
3430,
1369,
834,
834,
883,
3728,
545,
3,
2,
2775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show? | CREATE TABLE table_51074 (
"Date" text,
"Distance" text,
"Handler" text,
"Event" text,
"Location" text
) | SELECT "Date" FROM table_51074 WHERE "Handler" = 'mike jackson' AND "Event" = 'indianapolis boat, sport & travel show' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
4581,
41,
96,
308,
342,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
566,
232,
1171,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
25926,
4581,
549,
17444,
427,
96,
566,
232,
1171,
121,
3274,
3,
31,
20068,
15,
3,
9325,
739,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
77,
8603,
9,
15621,
3432,
6,
2600,
3,
... |
When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications? | CREATE TABLE table_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR) | SELECT general_classification FROM table_18733814_2 WHERE points_classification = "Alessandro Petacchi" AND young_rider_classification = "Thomas Löfkvist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4552,
3747,
2534,
834,
357,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1021,
834,
4055,
49,
834,
4057,
2420,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
2606,
4552,
3747,
2534,
834,
357,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
188,
924,
9,
22357,
5520,
9,
75,
1436,
121,
3430,
1021,
834,
4055,
49,
834,
4057,
2420,
3274,... |
give me the number of patients whose age is less than 67 and lab test fluid is blood? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "67" AND lab.fluid = "Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What year was holly hunter a nominee? | CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR) | SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1201,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
7556,
834,
2708,
9377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
741,
3274,
96,
3114,
630,
15,
121,
3430,
7556,
834,
2708,
9377,
3274,
96,
2831,
120,
8069,
49,
121,
1,
-100,
-100,
-100,
-100,
... |
What females have males of 1 234? | CREATE TABLE table_name_21 (
females VARCHAR,
males VARCHAR
) | SELECT females FROM table_name_21 WHERE males = "1 234" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
3955,
7,
584,
4280,
28027,
6,
5069,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3955,
7,
43,
5069,
7,
13,
209,
204,
3710,
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,
3955,
7,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
5069,
7,
3274,
96,
536,
1902,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tell me the number of juniors on the team . | CREATE TABLE table_204_534 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
) | SELECT COUNT(*) FROM table_204_534 WHERE "class" = 'jr' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3710,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
88,
2632,
121,
1499,
6,
96,
9378,
41,
9949,
5,
61,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
755,
3710,
549,
17444,
427,
96,
4057,
121,
3274,
3,
31,
354,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Height (ft) of the Churchill House with a Height (m) less than 59? | CREATE TABLE table_name_12 (height__ft_ VARCHAR, name VARCHAR, height__m_ VARCHAR) | SELECT COUNT(height__ft_) FROM table_name_12 WHERE name = "churchill house" AND height__m_ < 59 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
88,
2632,
834,
834,
89,
17,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
88,
2632,
834,
834,
89,
17,
834,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
564,
3274,
96,
28854,
1092,
629,
121,
3430,
3902,
834,
834,
51,
834,
3,
2,
3,
3390,
1,
-100,
-100,
-100,
... |
Which city does has most number of customers? | CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_code text,
staff_id number,
vehicle_id number,
lesson_date time,
lesson_time text,
price number
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE TABLE staff (
staff_id number,
staff_address_id number,
nickname text,
first_name text,
middle_name text,
last_name text,
date_of_birth time,
date_joined_staff time,
date_left_staff time
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE vehicles (
vehicle_id number,
vehicle_details text
)
CREATE TABLE customers (
customer_id number,
customer_address_id number,
customer_status_code text,
date_became_customer time,
date_of_birth time,
first_name text,
last_name text,
amount_outstanding number,
email_address text,
phone_number text,
cell_mobile_phone_number text
) | SELECT T2.city FROM customers AS T1 JOIN addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5182,
41,
6114,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
6114,
834,
8547,
302,
834,
4978,
1499,
6,
871,
834,
23,
26,
381,
6,
1689,
834,
23,
26,
381,
6,
6114,
834,
5522,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
6726,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
7181,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
23,
26,
350,
4630,
6880,
272,
476,... |
What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009? | CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
)
CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE employees (
employee_id number,
first_name text,
last_name text,
email text,
phone_number text,
hire_date time,
job_id text,
salary number,
commission_pct number,
manager_id number,
department_id number
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE regions (
region_id number,
region_name text
) | SELECT job_id, hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
684,
834,
23,
26,
1499,
6,
684,
834,
4350,
1499,
6,
1719,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
613,
834,
23,
26,
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,
613,
834,
23,
26,
6,
3804,
834,
5522,
21680,
1652,
549,
17444,
427,
3804,
834,
5522,
272,
7969,
518,
23394,
3,
31,
20615,
9169,
18,
3076,
31,
3430,
3,
31,
16660,
18,
4560,
18,
3076,
31,
1,
-100,
-100,
-100,
-100,
... |
what position did the player from connecticut play | CREATE TABLE table_10015132_7 (position VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_10015132_7 WHERE school_club_team = "Connecticut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
940,
41,
4718,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
1102,
410,
8,
1959,
45,
197... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
2915,
1808,
23757,
834,
940,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
25772,
23,
3044,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue hosted a tournament in 1965? | CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR) | SELECT venue FROM table_name_78 WHERE year = 1965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
15098,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
6523,
3,
9,
5892,
16,
19201,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
215,
3274,
19201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Series for the uefa cup, in the 2006 07 season, and a Round of group, and an opponent of az? | CREATE TABLE table_43373 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Series" text
) | SELECT "Series" FROM table_43373 WHERE "Competition" = 'uefa cup' AND "Season" = '2006–07' AND "Round" = 'group' AND "Opponent" = 'az' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4118,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
12106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
4906,
4118,
519,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
76,
15,
89,
9,
4119,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
21196,
104,
4560,
31,
3430,
9... |
what is the total number of wins for macau ? | CREATE TABLE table_203_14 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT COUNT(*) FROM table_203_14 WHERE "result" = 'win' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2534,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
2534,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
3757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, show me about the change of salary over hire_date in a line chart, could you order X in ascending order? | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834,
10193,
10972,
... |
what was the 1st leg score in the match between lamia and kastoria ? | CREATE TABLE table_203_350 (
id number,
"team #1" text,
"agg." text,
"team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_203_350 WHERE "team #1" = 'lamia' AND "team #2" = 'kastoria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
16975,
41,
3,
23,
26,
381,
6,
96,
11650,
7172,
121,
1499,
6,
96,
9,
4102,
535,
1499,
6,
96,
11650,
15493,
121,
1499,
6,
96,
536,
7,
17,
4553,
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,
536,
7,
17,
4553,
121,
21680,
953,
834,
23330,
834,
16975,
549,
17444,
427,
96,
11650,
7172,
121,
3274,
3,
31,
40,
3690,
9,
31,
3430,
96,
11650,
15493,
121,
3274,
3,
31,
1258,
7,
3600,
9,
31,
1,
-100,
-100,
... |
Can you tell me the TV Time that has the Date of november 22, 1998? | CREATE TABLE table_44893 (
"Week" real,
"Date" text,
"TV Time" text,
"Opponent" text,
"Result" text
) | SELECT "TV Time" FROM table_44893 WHERE "Date" = 'november 22, 1998' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3914,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
4562,
2900,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4562,
2900,
121,
21680,
953,
834,
3628,
3914,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
12889,
6260,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the name of the epiode written by Gary M. Goodrich? | CREATE TABLE table_2409041_9 (
title VARCHAR,
written_by VARCHAR
) | SELECT title FROM table_2409041_9 WHERE written_by = "Gary M. Goodrich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2394,
4853,
834,
1298,
41,
2233,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
13,
8,
9241,
32,
221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
11944,
2394,
4853,
834,
1298,
549,
17444,
427,
1545,
834,
969,
3274,
96,
517,
1208,
283,
5,
1804,
3723,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When did they play Dayton? | CREATE TABLE table_25461946_8 (
date VARCHAR,
team VARCHAR
) | SELECT date FROM table_25461946_8 WHERE team = "Dayton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4448,
2294,
4448,
834,
927,
41,
833,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
79,
577,
878,
21220,
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,
833,
21680,
953,
834,
1828,
4448,
2294,
4448,
834,
927,
549,
17444,
427,
372,
3274,
96,
16803,
17,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw? | CREATE TABLE table_name_92 (
total_goals INTEGER,
position VARCHAR,
fa_cup_goals VARCHAR,
fa_cup_apps VARCHAR
) | SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = "3" AND position = "fw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
792,
834,
839,
5405,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
3,
89,
9,
834,
4658,
834,
839,
5405,
3274,
3,
632,
3430,
3,
89,
9,
834,
4658,
834,
3096,
7,
3274,
96,
519,
121,
... |
Which Telebooms have a Brigade of total? | CREATE TABLE table_name_78 (
telebooms VARCHAR,
brigade VARCHAR
) | SELECT telebooms FROM table_name_78 WHERE brigade = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3,
1931,
12840,
51,
7,
584,
4280,
28027,
6,
6397,
12581,
221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7338,
12840,
51,
7,
43,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1931,
12840,
51,
7,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
6397,
12581,
221,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the total number of positions on the Toronto team in 2006-07? | CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR) | SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = "2006-07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
1298,
41,
4718,
584,
4280,
28027,
6,
203,
834,
77,
834,
235,
4438,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
792,
381,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
2915,
1808,
23757,
834,
1298,
549,
17444,
427,
203,
834,
77,
834,
235,
4438,
32,
3274,
96,
21196,
18,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the driver for Laps less than 9 and a grid of 13 | CREATE TABLE table_name_60 (
driver VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2535,
21,
325,
102,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
14941,
7,
3,
2,
668,
3430,
8634,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the earliest episode of the series that is set in Boston, Massachusetts? | CREATE TABLE table_67345 (
"Ep #" real,
"Total" real,
"Title" text,
"Location" text,
"Party Theme" text,
"Airdate" text
) | SELECT MIN("Total") FROM table_67345 WHERE "Location" = 'boston, massachusetts' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
519,
2128,
41,
96,
427,
102,
1713,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13725,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3708,
519,
2128,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
115,
32,
4411,
6,
3294,
1836,
1074,
17,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What was the archive for the episode with a run time of 25:24? | CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR) | SELECT archive FROM table_2102714_1 WHERE run_time = "25:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
2555,
2534,
834,
536,
41,
15917,
15,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
13269,
21,
8,
5640,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13269,
21680,
953,
834,
15239,
2555,
2534,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
1828,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum of caps for players with less than 9 goals ranked below 8? | CREATE TABLE table_33426 (
"Rank" real,
"Player" text,
"Nation" text,
"Caps" real,
"Goals" real,
"Years" text
) | SELECT SUM("Caps") FROM table_33426 WHERE "Goals" < '9' AND "Rank" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3710,
2688,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
19566,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19566,
7,
8512,
21680,
953,
834,
519,
3710,
2688,
549,
17444,
427,
96,
6221,
5405,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
22557,
121,
2490,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Which state includes the Harry A. Gampel Pavilion venue? | CREATE TABLE table_name_10 (
state VARCHAR,
venue VARCHAR
) | SELECT state FROM table_name_10 WHERE venue = "harry a. gampel pavilion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
538,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
538,
963,
8,
8929,
71,
5,
19871,
4343,
27890,
5669,
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,
538,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
5669,
3274,
96,
3272,
651,
3,
9,
5,
3,
8758,
4343,
28407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Agg., when Team 2 is Mukungwa? | CREATE TABLE table_name_42 (
agg VARCHAR,
team_2 VARCHAR
) | SELECT agg FROM table_name_42 WHERE team_2 = "mukungwa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
3,
9,
4102,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
71,
4102,
5,
6,
116,
2271,
204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
4102,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
372,
834,
357,
3274,
96,
51,
1598,
425,
210,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps? | CREATE TABLE table_38081 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_38081 WHERE "Manufacturer" = 'aprilia' AND "Laps" < '19' AND "Rider" = 'sandro cortese' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
4959,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
22671,
4959,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
9,
102,
52,
13565,
31,
3430,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
2294,
31,
34... |
What is the verb meaning for class 4? | CREATE TABLE table_name_64 (verb_meaning VARCHAR, class VARCHAR) | SELECT verb_meaning FROM table_name_64 WHERE class = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
11868,
834,
27639,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7375,
2530,
21,
853,
314,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7375,
834,
27639,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
853,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How big was the crowd for Essendon? | CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_78 WHERE home_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
600,
47,
8,
4374,
21,
11722,
2029,
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,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
234,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest crowd size when Carlton was the away team. | CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_65 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
75,
3623,
26,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
4374,
812,
116,
3,
30339,
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,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the artist of the album Soul? | CREATE TABLE table_name_18 (artist VARCHAR, album VARCHAR) | SELECT artist FROM table_name_18 WHERE album = "soul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1408,
343,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2377,
13,
8,
2306,
13759,
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,
2377,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
2306,
3274,
96,
7,
7115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the constructor for 10 august | CREATE TABLE table_name_75 (constructor VARCHAR, date VARCHAR) | SELECT constructor FROM table_name_75 WHERE date = "10 august" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
15982,
5317,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6774,
127,
21,
335,
14663,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6774,
127,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
833,
3274,
96,
1714,
14663,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of laps that also has a finish total of 8? | CREATE TABLE table_name_98 (laps INTEGER, finish VARCHAR) | SELECT MAX(laps) FROM table_name_98 WHERE finish = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
8478,
7,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
14941,
7,
24,
92,
65,
3,
9,
1992,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1992,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the lowest Green with a Year larger than 2010, and a Labour larger than 29? Question 3 | CREATE TABLE table_name_82 (green INTEGER, year VARCHAR, labour VARCHAR) | SELECT MIN(green) FROM table_name_82 WHERE year > 2010 AND labour > 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
9423,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
12568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7402,
1862,
28,
3,
9,
2929,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9423,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
2490,
2735,
3430,
12568,
2490,
2838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is language of subject name charles deshay? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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
) | SELECT demographic.language FROM demographic WHERE demographic.name = "Charles Deshay" | [
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,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
18947,
965,
2973,
12687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the college for the player damon bailey? | CREATE TABLE table_11677760_1 (
college VARCHAR,
player VARCHAR
) | SELECT college FROM table_11677760_1 WHERE player = "Damon Bailey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
26225,
3328,
834,
536,
41,
1900,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1900,
21,
8,
1959,
10157,
106,
3,
944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
20159,
26225,
3328,
834,
536,
549,
17444,
427,
1959,
3274,
96,
308,
9,
2157,
24042,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of artists on Scarface? | CREATE TABLE table_name_67 (
number INTEGER,
artist VARCHAR
) | SELECT MAX(number) FROM table_name_67 WHERE artist = "scarface" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
381,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
3153,
30,
14586,
4861,
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,
4800,
4,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2377,
3274,
96,
7,
1720,
4861,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Rank with 100 goals, and less than 300 matches? | CREATE TABLE table_43329 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) | SELECT COUNT("Rank") FROM table_43329 WHERE "Goals" = '100' AND "Matches" < '300' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
519,
3166,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
6221,
5405,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
4906,
519,
3166,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
2915,
31,
3430,
96,
329,
144,
2951,
121,
3,
2,
3,
31,
5426,
31,
1,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.