NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is subject name of subject id 2560? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT demographic.name FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
4350,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith? | CREATE TABLE table_41164 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? panelists" text
) | SELECT "Musical Guest (Song performed)" FROM table_41164 WHERE "Who knows the most about the guest host? panelists" = 'nancy sorrell and samia smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
26987,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
490,
6,
96,
20162,
7678,
121,
1499,
6,
96,
9105,
222,
1546,
7,
17,
121,
1499,
6,
96,
29035,
138,
14252,
41,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29035,
138,
14252,
41,
134,
2444,
3032,
61,
121,
21680,
953,
834,
4853,
26987,
549,
17444,
427,
96,
20754,
4054,
8,
167,
81,
8,
3886,
2290,
58,
2952,
343,
7,
121,
3274,
3,
31,
29,
6833,
78,
21290,
11,
3,
7,
... |
Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit? | CREATE TABLE table_16670746_2 (
fastest_lap VARCHAR,
winning_team VARCHAR,
circuit VARCHAR
) | SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3708,
4560,
4448,
834,
357,
41,
10391,
834,
8478,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
2938,
3708,
4560,
4448,
834,
357,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
18699,
14472,
83,
121,
3430,
4558,
3274,
96,
382,
3757,
7888,
1290,
17,
11097,
121,
1,
-100,
-100,
-100... |
What is Karl Wendlinger's total grid #? | CREATE TABLE table_52903 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Grid") FROM table_52903 WHERE "Driver" = 'karl wendlinger' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
2394,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
13313,
26,
8512,
21680,
953,
834,
5373,
2394,
519,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
4031,
40,
62,
727,
14043,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the premiere date of the season won by Matt Hoover? | CREATE TABLE table_name_32 (premiere VARCHAR, the_biggest_loser VARCHAR) | SELECT premiere FROM table_name_32 WHERE the_biggest_loser = "matt hoover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
2026,
2720,
60,
584,
4280,
28027,
6,
8,
834,
12911,
122,
222,
834,
2298,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
13539,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13539,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
8,
834,
12911,
122,
222,
834,
2298,
49,
3274,
96,
3357,
17,
3534,
1890,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of members living in each address. | CREATE TABLE member (address VARCHAR) | SELECT COUNT(*), address FROM member GROUP BY address | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
9,
26,
12039,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
381,
13,
724,
840,
16,
284,
1115,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
1115,
21680,
1144,
350,
4630,
6880,
272,
476,
1115,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who took first place in week 6? | CREATE TABLE table_2054561_2 (
first_place VARCHAR,
no_of_weeks VARCHAR
) | SELECT COUNT(first_place) FROM table_2054561_2 WHERE no_of_weeks = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
2128,
4241,
834,
357,
41,
166,
834,
4687,
584,
4280,
28027,
6,
150,
834,
858,
834,
8041,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
808,
166,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
4687,
61,
21680,
953,
834,
23201,
2128,
4241,
834,
357,
549,
17444,
427,
150,
834,
858,
834,
8041,
7,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much time, in minutes, did Chanel Chisholm play? | CREATE TABLE table_73478 (
"Player" text,
"Games Played" real,
"Minutes" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) | SELECT COUNT("Minutes") FROM table_73478 WHERE "Player" = 'Chanel Chisholm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
3940,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
12858,
2810,
7,
8512,
21680,
953,
834,
4552,
591,
3940,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3541,
152,
15,
40,
2695,
7,
2831,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
show me the number of patients on additive type drug prescription who have a diagnoses of personal history of malignant neoplasm of bladder. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hx of bladder malignancy" AND prescriptions.drug_type = "ADDITIVE" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Position in nhl team centre are all smaller pick than 243.0 | CREATE TABLE table_15952 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "NHL team" FROM table_15952 WHERE "Position" = 'Centre' AND "Pick" < '243.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
5373,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15743,
434,
372,
121,
21680,
953,
834,
27904,
5373,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
254,
9578,
31,
3430,
96,
345,
3142,
121,
3,
2,
3,
31,
27730,
5,
632,
31,
1,
-100,
-100,
-100,
-1... |
Give me the number of patients who were admitted before the year 2144 and had a complete heart block. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COMPLETE HEART BLOCK" AND demographic.admityear < "2144" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
6657,
27872,
3463,
3,
6021,
8241,
272,
5017,
10459,
121,
3430,
14798,
... |
which competitor finished immediately after karl hahnel ? | CREATE TABLE table_204_521 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time (hand)" text,
"notes" text
) | SELECT "name" FROM table_204_521 WHERE "rank" = (SELECT "rank" FROM table_204_521 WHERE "name" = 'karl hahnel') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
2658,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
41,
2894,
61,
121,
1499,
6,
96,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
755,
2658,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
26363,
834,
755,
2658,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
4031... |
During the quarter 2012 Q4, how many millions of android phones were shipped? | CREATE TABLE table_972 (
"Quarter" text,
"Android" text,
"iOS" text,
"Symbian" text,
"BlackBerry OS" text,
"Linux" text,
"Windows Phone" text,
"Other" text,
"Total" text
) | SELECT COUNT("Android") FROM table_972 WHERE "Quarter" = '2012 Q4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
357,
41,
96,
5991,
1408,
49,
121,
1499,
6,
96,
7175,
8184,
121,
1499,
6,
96,
23,
3638,
121,
1499,
6,
96,
134,
63,
51,
12032,
121,
1499,
6,
96,
20096,
279,
49,
651... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7175,
8184,
8512,
21680,
953,
834,
4327,
357,
549,
17444,
427,
96,
5991,
1408,
49,
121,
3274,
3,
31,
12172,
1593,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose days of hospital stay is greater than 8 and drug name is acetylcysteine 20%? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "8" AND prescriptions.drug = "Acetylcysteine 20%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
for the ben williams name what was the previous club | CREATE TABLE table_27998152_1 (
previous_club VARCHAR,
name VARCHAR
) | SELECT previous_club FROM table_27998152_1 WHERE name = "Ben Williams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3264,
4959,
5373,
834,
536,
41,
1767,
834,
13442,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
36,
29,
56,
23,
265,
7,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1767,
834,
13442,
21680,
953,
834,
2555,
3264,
4959,
5373,
834,
536,
549,
17444,
427,
564,
3274,
96,
279,
35,
6060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r | CREATE TABLE table_name_68 (tournament VARCHAR) | SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5892,
21,
3581,
13,
3,
9,
6,
6911,
13,
209,
52,
11,
4406,
13,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3581,
3274,
96,
9,
121,
3430,
6911,
3274,
96,
536,
52,
121,
3430,
4406,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the paper about convolution from brian curless ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
nu... | SELECT DISTINCT author.authorid, paper.paperid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'brian curless' AND keyphrase.keyphrasename = 'convolution' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = author.author... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2291,
5,
17415,
23,
26,
6,
1040,
5,
19587,
23,
26,
21680,
2291,
6,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
2160,
152,
5495,
... |
What is Norikazu Murakami's total? | CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR) | SELECT total FROM table_name_41 WHERE name = "norikazu murakami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
235,
1947,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7005,
5561,
1000,
8054,
1639,
3690,
31,
7,
792,
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,
792,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
564,
3274,
96,
29,
127,
5561,
1000,
9593,
1639,
3690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the roll number of the school with a state authority in Waiotira? | CREATE TABLE table_name_76 (
roll VARCHAR,
authority VARCHAR,
area VARCHAR
) | SELECT roll FROM table_name_76 WHERE authority = "state" AND area = "waiotira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3812,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3812,
381,
13,
8,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3812,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
5015,
3274,
96,
5540,
121,
3430,
616,
3274,
96,
210,
9,
23,
32,
17,
23,
52,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Please list the name and id of all artists that have at least 3 albums in alphabetical order. | CREATE TABLE ARTIST (
Name VARCHAR,
ArtistID VARCHAR
)
CREATE TABLE ALBUM (
ArtistId VARCHAR
) | SELECT T2.Name, T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8241,
13582,
41,
5570,
584,
4280,
28027,
6,
9152,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
71,
16976,
6122,
41,
9152,
196,
26,
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,
332,
4416,
23954,
6,
332,
5411,
7754,
343,
196,
26,
21680,
71,
16976,
6122,
6157,
332,
536,
3,
15355,
3162,
3,
8241,
13582,
6157,
332,
357,
9191,
332,
5411,
7754,
343,
196,
26,
3274,
332,
4416,
7754,
343,
196,
26,
... |
What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races? | CREATE TABLE table_name_9 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR) | SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
11584,
222,
834,
8478,
7,
3,
21342,
17966,
6,
22828,
7,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
61,
3,
32102,
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,
4800,
4,
599,
11584,
222,
834,
8478,
7,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
11148,
7,
3274,
3,
632,
3430,
10879,
2490,
627,
3430,
22828,
7,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the race in Melbourne, Victoria? | CREATE TABLE table_50895 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
) | SELECT "Date" FROM table_50895 WHERE "City / State" = 'melbourne, victoria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3914,
755,
41,
96,
448,
3302,
11029,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
1752,
3914,
755,
549,
17444,
427,
96,
254,
485,
3,
87,
1015,
121,
3274,
3,
31,
2341,
26255,
6,
3,
7287,
3600,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many female patients had a lab test for vancomycin? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Vancomycin" | [
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 is the original air date of the Jamie Babbit directed episode? | CREATE TABLE table_11404452_1 (original_air_date VARCHAR, director VARCHAR) | SELECT original_air_date FROM table_11404452_1 WHERE director = "Jamie Babbit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
25285,
2128,
357,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
926,
799,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2596,
25285,
2128,
357,
834,
536,
549,
17444,
427,
2090,
3274,
96,
683,
9,
2720,
11563,
2360,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In Tie #19, what was the name of the away team? | CREATE TABLE table_name_27 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_27 WHERE tie_no = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
2262,
15,
1713,
2294,
6,
125,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of other builders for nant, visual studio | CREATE TABLE table_22903426_1 (other_builders VARCHAR, windows_builders VARCHAR) | SELECT COUNT(other_builders) FROM table_22903426_1 WHERE windows_builders = "NAnt, Visual Studio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
3710,
2688,
834,
536,
41,
9269,
834,
16422,
277,
584,
4280,
28027,
6,
3196,
834,
16422,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9269,
834,
16422,
277,
61,
21680,
953,
834,
2884,
2394,
3710,
2688,
834,
536,
549,
17444,
427,
3196,
834,
16422,
277,
3274,
96,
5999,
29,
17,
6,
10893,
5929,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
How many numbers were recorded under revenue when revenue per capita was $6,126? | CREATE TABLE table_19506 (
"Rank" real,
"State" text,
"Revenue (millions)" text,
"Population" real,
"Revenue per capita" text,
"Spending (millions)" text,
"Spending per capita" text,
"Net contribution per capita" text,
"Presidential majority 2000/2004" text,
"Presidential majorit... | SELECT COUNT("Revenue (millions)") FROM table_19506 WHERE "Revenue per capita" = '$6,126' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
5176,
41,
96,
22557,
121,
490,
6,
96,
134,
4748,
121,
1499,
6,
96,
1649,
15098,
41,
17030,
7,
61,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
1649,
15098,
399,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
15098,
41,
17030,
7,
61,
8512,
21680,
953,
834,
22464,
5176,
549,
17444,
427,
96,
1649,
15098,
399,
23219,
121,
3274,
3,
31,
3229,
11071,
21976,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the qatari male is 1104, what is the grand total? | CREATE TABLE table_26214389_3 (
grand_total INTEGER,
qatari_male VARCHAR
) | SELECT MAX(grand_total) FROM table_26214389_3 WHERE qatari_male = 1104 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2658,
4906,
3914,
834,
519,
41,
1907,
834,
235,
1947,
3,
21342,
17966,
6,
3,
1824,
9,
5310,
834,
13513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15448,
834,
235,
1947,
61,
21680,
953,
834,
2688,
2658,
4906,
3914,
834,
519,
549,
17444,
427,
3,
1824,
9,
5310,
834,
13513,
3274,
209,
15442,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many connections aux in using FIrewire? | CREATE TABLE table_24384861_1 (
aux_in VARCHAR,
dock_connection VARCHAR
) | SELECT COUNT(aux_in) FROM table_24384861_1 WHERE dock_connection = "FireWire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3747,
3707,
4241,
834,
536,
41,
742,
834,
77,
584,
4280,
28027,
6,
12908,
834,
28102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5992,
742,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1724,
834,
77,
61,
21680,
953,
834,
2266,
3747,
3707,
4241,
834,
536,
549,
17444,
427,
12908,
834,
28102,
3274,
96,
3183,
60,
13601,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the different card types, and how many transactions have been made with each? | CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction... | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
884,
834,
5064,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
884,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
895,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
5421,
834,
18474,
4787,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
834,
6936,
26,
7,
6157,
332,
357,
9191,
332,
5411,
6043,
834,
23,
26,
3274,
332,
4... |
How much Elevation (m) has a Prominence (m) larger than 1,754? | CREATE TABLE table_66022 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT SUM("Elevation (m)") FROM table_66022 WHERE "Prominence (m)" > '1,754' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
2884,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
427,
10912,
257,
41,
51,
61,
8512,
21680,
953,
834,
27720,
2884,
549,
17444,
427,
96,
3174,
1109,
1433,
41,
51,
61,
121,
2490,
3,
31,
4347,
3072,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Playoffs MVP of the game with a Result of 4 1 with Champions Daejeon Hyundai Dynat? | CREATE TABLE table_name_65 (
playoffs_mvp VARCHAR,
result VARCHAR,
champions VARCHAR
) | SELECT playoffs_mvp FROM table_name_65 WHERE result = "4–1" AND champions = "daejeon hyundai dynat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
15289,
7,
834,
51,
208,
102,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
6336,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15289,
7,
834,
51,
208,
102,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
741,
3274,
96,
591,
104,
536,
121,
3430,
6336,
7,
3274,
96,
26,
9,
15,
1924,
106,
3,
107,
63,
1106,
9,
23,
3,
24805,
17,
121,
1,
... |
what would be the maximum monthly number of patients diagnosed with meningitis - acute since 2 years ago? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid ... | SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'meningitis - acute' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY STRFTIME('%y-%m', diagnosis.diagnosistime)) AS t1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
17,
5411,
75,
6982,
21680,
41,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
8209,
5,
10061,
15129,
21545,
23,
26,
61,
6157,
3,
75,
536,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
4... |
What is Career Win-Loss, when Tournament is "Hamburg"? | CREATE TABLE table_name_11 (career_win_loss VARCHAR, tournament VARCHAR) | SELECT career_win_loss FROM table_name_11 WHERE tournament = "hamburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
2864,
49,
834,
3757,
834,
2298,
7,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15151,
4871,
18,
434,
32,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1415,
834,
3757,
834,
2298,
7,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
5892,
3274,
96,
1483,
4824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the largest MINS for the San Jose Earthquakes with a SHTS less than 166? | CREATE TABLE table_6736 (
"Rank" real,
"Goalkeeper" text,
"Club" text,
"MINS" real,
"SHTS" real,
"W-L-T" text
) | SELECT MAX("MINS") FROM table_6736 WHERE "Club" = 'san jose earthquakes' AND "SHTS" < '166' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3420,
41,
96,
22557,
121,
490,
6,
96,
6221,
138,
10477,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
17684,
134,
121,
490,
6,
96,
9122,
4578,
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,
4800,
4,
599,
121,
17684,
134,
8512,
21680,
953,
834,
3708,
3420,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
7,
152,
7406,
15,
16145,
7,
31,
3430,
96,
9122,
4578,
121,
3,
2,
3,
31,
26811,
31,
1,
-100,
... |
Which strain has 1,312 genes? | CREATE TABLE table_58060 (
"Species" text,
"Strain" text,
"Type" text,
"Base Pairs" text,
"Genes" text
) | SELECT "Strain" FROM table_58060 WHERE "Genes" = '1,312' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2079,
3328,
41,
96,
7727,
725,
121,
1499,
6,
96,
134,
9719,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
14885,
15,
25072,
7,
121,
1499,
6,
96,
13714,
15,
7,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9719,
121,
21680,
953,
834,
755,
2079,
3328,
549,
17444,
427,
96,
13714,
15,
7,
121,
3274,
3,
31,
4347,
519,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the number of each company whose office is in the building in a bar chart, and sort by the how many name in desc. | CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value_billion text
)
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE building... | SELECT T3.name, COUNT(T3.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T3.name ORDER BY COUNT(T3.name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11239,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
31282,
1499,
6,
9036,
1499,
6,
7107,
834,
115,
14916,
490,
6,
14717,
7,
834,
115,
14916,
490,
6,
18202,
7,
834,
115,
14916,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
4350,
6,
2847,
17161,
599,
382,
5787,
4350,
61,
21680,
2126,
834,
14836,
7,
6157,
332,
536,
3,
15355,
3162,
3950,
6157,
332,
357,
9191,
332,
5411,
10905,
834,
23,
26,
3274,
332,
4416,
23,
26,
3,
15355,
... |
What is the high point total associated with a difference of 1 and 0 draws? | CREATE TABLE table_37999 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Points") FROM table_37999 WHERE "Difference" = '1' AND "Drawn" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
19446,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
4118,
19446,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
536,
31,
3430,
96,
308,
10936,
29,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-1... |
How many total appearances are there when the league appearances is 192? | CREATE TABLE table_31309 (
"Name" text,
"Nationality" text,
"Malm\u00f6 FF career" text,
"League appearances" real,
"League goals" real,
"Total appearances" real,
"Total goals" real
) | SELECT COUNT("Total appearances") FROM table_31309 WHERE "League appearances" = '192' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2368,
4198,
41,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
329,
138,
51,
2,
76,
1206,
89,
948,
3,
9089,
1415,
121,
1499,
6,
96,
2796,
9,
5398,
3179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
3179,
7,
8512,
21680,
953,
834,
519,
2368,
4198,
549,
17444,
427,
96,
2796,
9,
5398,
3179,
7,
121,
3274,
3,
31,
19978,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many players won at least later than 2010 ? | CREATE TABLE table_204_310 (
id number,
"month" text,
"year" number,
"player" text,
"county" text,
"club" text,
"position" number
) | SELECT COUNT("player") FROM table_204_310 WHERE "year" > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19947,
41,
3,
23,
26,
381,
6,
96,
7393,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
13442,
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,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
26363,
834,
19947,
549,
17444,
427,
96,
1201,
121,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many runs did they get against new south wales in 2002/03? | CREATE TABLE table_name_13 (runs VARCHAR, opponent VARCHAR, season VARCHAR) | SELECT runs FROM table_name_13 WHERE opponent = "new south wales" AND season = "2002/03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4312,
7,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3154,
410,
79,
129,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3154,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
15264,
3274,
96,
5534,
3414,
3,
210,
4529,
121,
3430,
774,
3274,
96,
24898,
87,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many u.s. viewers (million) have the number 16? | CREATE TABLE table_22894 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "U.S. viewers (million)" FROM table_22894 WHERE "#" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
4240,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
21680,
953,
834,
357,
2577,
4240,
549,
17444,
427,
96,
4663,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest round for the pick from Finland? | CREATE TABLE table_36402 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
) | SELECT MAX("Round") FROM table_36402 WHERE "Nationality" = 'finland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
2445,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3420,
2445,
357,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
89,
25948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who are all the players for st. thomas aquinas high school | CREATE TABLE table_17090 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Player" FROM table_17090 WHERE "School" = 'St. Thomas Aquinas High School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
2394,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
536,
2518,
2394,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
134,
17,
5,
3576,
71,
1169,
29,
9,
7,
1592,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell? | CREATE TABLE table_name_43 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) | SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ = "100,000" AND entrepreneur_s_ = "kay russell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
15601,
53,
834,
3515,
5307,
834,
7,
834,
584,
4280,
28027,
6,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
584,
4280,
28027,
6,
3,
12290,
834,
7,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8448,
834,
3515,
5307,
834,
7,
834,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
3274,
96,
2915,
6,
2313,
121,
3430,
3,
12290,
834,
7,
834,
3274,
96,
18075,
278... |
How many people attended the game where Footscray was away? | CREATE TABLE table_name_29 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT crowd FROM table_name_29 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
4374,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
213,
15213,
7,
2935,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent the Buffalo Bills played when their record was 4-4? | CREATE TABLE table_7508 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Location" text,
"Record" text,
"Attendance" text
) | SELECT "Opponent" FROM table_7508 WHERE "Record" = '4-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
927,
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,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
9979,
927,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
591,
4278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the call sign that has 20kw of power? | CREATE TABLE table_name_17 (call_sign VARCHAR, power__kw_ VARCHAR) | SELECT call_sign FROM table_name_17 WHERE power__kw_ = "20kw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
579,
834,
834,
157,
210,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
580,
1320,
24,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
579,
834,
834,
157,
210,
834,
3274,
96,
1755,
157,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did the high rebounds in the game against Boston? | CREATE TABLE table_27704187_7 (high_rebounds VARCHAR, team VARCHAR) | SELECT high_rebounds FROM table_27704187_7 WHERE team = "Boston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
4853,
4225,
834,
940,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
306,
3,
23768,
16,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
2555,
2518,
4853,
4225,
834,
940,
549,
17444,
427,
372,
3274,
96,
279,
32,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total number of instructors for each department with a bar chart. | CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8... | SELECT T1.dept_name, COUNT(DISTINCT T3.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
4309,
3,
4331,
4059,
15757,
6,
3,
23,
834,
4309,
3,
4331,
4059,
15757,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
503,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
26,
6707,
834,
4350,
6,
2847,
17161,
599,
15438,
25424,
6227,
332,
5787,
4309,
61,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4350,
3274,
332,
4416,
... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, and rank by the y-axis in asc. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
2168... |
what is the name on top of the list ? | CREATE TABLE table_204_866 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
) | SELECT "name" FROM table_204_866 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26750,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4597,
715,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
2264,
179,
38,
121,
1499,
6,
96,
7977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
26750,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which opponent had 73,428 in attendance? | CREATE TABLE table_name_32 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_32 WHERE attendance = "73,428" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
141,
3,
4552,
6,
591,
2577,
16,
11364,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
11364,
3274,
96,
4552,
6,
591,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Prominence (m) has an Elevation (m) of 3,095? | CREATE TABLE table_64451 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT MIN("Prominence (m)") FROM table_64451 WHERE "Elevation (m)" = '3,095' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
2128,
536,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
1109,
1433,
41,
51,
61,
8512,
21680,
953,
834,
4389,
2128,
536,
549,
17444,
427,
96,
427,
10912,
257,
41,
51,
61,
121,
3274,
3,
31,
6355,
632,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What shows for money ( ) when South Africa is the country? | CREATE TABLE table_name_44 (
money___ INTEGER,
country VARCHAR
) | SELECT MAX(money___) AS £__ FROM table_name_44 WHERE country = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
540,
41,
3,
61,
116,
1013,
2648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28442,
834,
834,
834,
61,
6157,
3996,
834,
834,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose gender is m and lab test name is nonsquamous epithelial cell? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "NonSquamous Epithelial Cell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Top-25 has a Top-5 smaller than 0? | CREATE TABLE table_35979 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Top-25") FROM table_35979 WHERE "Top-5" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3390,
4440,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
180,
6122,
599,
121,
22481,
14855,
8512,
21680,
953,
834,
519,
3390,
4440,
549,
17444,
427,
96,
22481,
18,
17395,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and employee_id , and order FIRST_NAME in descending order. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
... |
What is the least amount of total medals won? | CREATE TABLE table_73378 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
) | SELECT MIN("Total(min. 2 medals)") FROM table_73378 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
3940,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
667,
120,
51,
6174,
7,
121,
1499,
6,
96,
23576,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
599,
1109,
5,
204,
9365,
7,
61,
8512,
21680,
953,
834,
4552,
519,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rooms are there? | CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT COUNT(*) FROM rooms | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
1499,
6,
562,
4350,
1499,
6,
8326,
381,
6,
1953,
6137,
1499,
6,
9858,
13377,
413,
6833,
381,
6,
1247,
102,
4920,
381,
6,
4469,
1499,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2801,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the episode title on original air date of September 30, 2007? | CREATE TABLE table_23799417_2 (
title VARCHAR,
original_airing VARCHAR
) | SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4440,
4240,
2517,
834,
357,
41,
2233,
584,
4280,
28027,
6,
926,
834,
2256,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5640,
2233,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2773,
4440,
4240,
2517,
834,
357,
549,
17444,
427,
926,
834,
2256,
53,
3274,
96,
27652,
11558,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the draw number of the Artist Dav Mcnamara and a place bigger than 4? | CREATE TABLE table_48472 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
) | SELECT COUNT("Draw") FROM table_48472 WHERE "Artist" = 'dav mcnamara' AND "Place" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4177,
357,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
345,
11706,
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,
308,
10936,
8512,
21680,
953,
834,
3707,
4177,
357,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
26,
9,
208,
3,
51,
75,
13363,
2551,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31,
591,
3... |
How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0? | CREATE TABLE table_18600760_15 (
water__sqmi_ VARCHAR,
county VARCHAR,
geo_id VARCHAR
) | SELECT water__sqmi_ FROM table_18600760_15 WHERE county = "Ramsey" AND geo_id > 3807159460.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
1808,
41,
387,
834,
834,
7,
1824,
51,
23,
834,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
9502,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
387,
834,
834,
7,
1824,
51,
23,
834,
21680,
953,
834,
24700,
4560,
3328,
834,
1808,
549,
17444,
427,
5435,
3274,
96,
448,
265,
7,
15,
63,
121,
3430,
9502,
834,
23,
26,
2490,
6654,
4560,
27904,
4448,
11739,
1,
-100... |
Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els? | CREATE TABLE table_48293 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_48293 WHERE "Place" = 't9' AND "Score" = '71-71-72=214' AND "Player" = 'ernie els' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
357,
4271,
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,
10628,
651,
121,
21680,
953,
834,
3707,
357,
4271,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1298,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
4450,
18,
4450,
18,
5865,
2423,
27357,
31,
3430,
96,
... |
how many patients whose days of hospital stay is greater than 6 and diagnoses icd9 code is 59654? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "59654" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is every average when number of dances is 1? | CREATE TABLE table_26375386_28 (
average VARCHAR,
number_of_dances VARCHAR
) | SELECT average FROM table_26375386_28 WHERE number_of_dances = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22954,
519,
3840,
834,
2577,
41,
1348,
584,
4280,
28027,
6,
381,
834,
858,
834,
26,
663,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1348,
21680,
953,
834,
2688,
22954,
519,
3840,
834,
2577,
549,
17444,
427,
381,
834,
858,
834,
26,
663,
7,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the seq is 41, what is the ability to compromise? | CREATE TABLE table_1855342_5 (
ability_to_compromise INTEGER,
seq VARCHAR
) | SELECT MAX(ability_to_compromise) FROM table_1855342_5 WHERE seq = "41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4867,
4165,
834,
755,
41,
1418,
834,
235,
834,
287,
1409,
11248,
3,
21342,
17966,
6,
142,
1824,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2020,
834,
235,
834,
287,
1409,
11248,
61,
21680,
953,
834,
21594,
4867,
4165,
834,
755,
549,
17444,
427,
142,
1824,
3274,
96,
4853,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many games did the club play in september ? | CREATE TABLE table_204_924 (
id number,
"match" number,
"date" text,
"ground" text,
"opponent" text,
"score1" text,
"pos." number,
"pts." number,
"gd" number
) | SELECT COUNT(*) FROM table_204_924 WHERE "date" = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4508,
591,
41,
3,
23,
26,
381,
6,
96,
19515,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
9232,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4508,
591,
549,
17444,
427,
96,
5522,
121,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what date was the handicap 8 st 12 lb? | CREATE TABLE table_2896329_1 (
date VARCHAR,
handicap VARCHAR
) | SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3891,
3166,
834,
536,
41,
833,
584,
4280,
28027,
6,
14214,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
14214,
505,
3,
7,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
357,
3914,
3891,
3166,
834,
536,
549,
17444,
427,
14214,
3274,
96,
927,
3,
7,
17,
586,
3,
40,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was petter ronnquist picked? | CREATE TABLE table_name_49 (overall VARCHAR, player VARCHAR) | SELECT overall FROM table_name_49 WHERE player = "petter ronnquist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1890,
1748,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
3947,
449,
3,
52,
106,
29,
1169,
7,
17,
4758,
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,
1879,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1959,
3274,
96,
102,
15583,
3,
52,
106,
29,
1169,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the name when the state was wey? | CREATE TABLE table_name_22 (
name VARCHAR,
state VARCHAR
) | SELECT name FROM table_name_22 WHERE state = "wey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
564,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
116,
8,
538,
47,
62,
63,
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,
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,
564,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
538,
3274,
96,
1123,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which years have a Decile of 4, an Authority of state, and a Name of mapiu school? | CREATE TABLE table_name_43 (
years VARCHAR,
name VARCHAR,
decile VARCHAR,
authority VARCHAR
) | SELECT years FROM table_name_43 WHERE decile = 4 AND authority = "state" AND name = "mapiu school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
203,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
7908,
109,
3274,
314,
3430,
5015,
3274,
96,
5540,
121,
3430,
564,
3274,
96,
11576,
23,
76,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average car number of all the drivers who have won $111,683? | CREATE TABLE table_74732 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" text,
"Laps" real,
"Winnings" text
) | SELECT AVG("Car #") FROM table_74732 WHERE "Winnings" = '$111,683' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4552,
357,
41,
96,
20982,
52,
121,
1499,
6,
96,
6936,
1713,
121,
490,
6,
96,
22638,
121,
1499,
6,
96,
22512,
7,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
6936,
1713,
8512,
21680,
953,
834,
4581,
4552,
357,
549,
17444,
427,
96,
518,
10503,
7,
121,
3274,
3,
31,
3229,
15866,
6,
3651,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was his partner in 1989? | CREATE TABLE table_26309085_1 (partner VARCHAR, year VARCHAR) | SELECT partner FROM table_26309085_1 WHERE year = 1989 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1458,
2394,
4433,
834,
536,
41,
12300,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
112,
2397,
16,
9975,
58,
3,
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,
2397,
21680,
953,
834,
2688,
1458,
2394,
4433,
834,
536,
549,
17444,
427,
215,
3274,
9975,
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 external weapon of knight zeke? | CREATE TABLE table_name_26 (
external_weapon VARCHAR,
knight VARCHAR
) | SELECT external_weapon FROM table_name_26 WHERE knight = "zeke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3866,
834,
1123,
9,
5041,
584,
4280,
28027,
6,
29816,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3866,
10931,
13,
29816,
3,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3866,
834,
1123,
9,
5041,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
29816,
3274,
96,
776,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the mean number of events where the rank is 1 and there are more than 3 wins? | CREATE TABLE table_name_50 (
events INTEGER,
rank VARCHAR,
wins VARCHAR
) | SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
984,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1243,
381,
13,
984,
213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
11003,
3274,
209,
3430,
9204,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose marital status is divorced and procedure long title is circumcision? | 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,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Circumcision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the sum of heat for christophe lebon when lane is less than 4? | CREATE TABLE table_66341 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT COUNT("Heat") FROM table_66341 WHERE "Lane" < '4' AND "Name" = 'christophe lebon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3710,
536,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
144,
8512,
21680,
953,
834,
3539,
3710,
536,
549,
17444,
427,
96,
434,
152,
15,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
23954,
121,
3274,
3,
31,
15294,
10775,
15,
90,
5407,
31,
1,
-100,... |
Which country had a score of 72-67=139? | CREATE TABLE table_8921 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_8921 WHERE "Score" = '72-67=139' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
2658,
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,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3914,
2658,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
5865,
18,
3708,
2423,
24090,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0? | CREATE TABLE table_name_28 (
gold INTEGER,
nation VARCHAR,
silver VARCHAR
) | SELECT AVG(gold) FROM table_name_28 WHERE nation = "yugoslavia" AND silver > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2045,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2540,
6,
116,
1104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2982,
3274,
96,
63,
76,
839,
17457,
23,
9,
121,
3430,
4294,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the tie no when the attendance is 126? | CREATE TABLE table_name_66 (tie_no INTEGER, attendance VARCHAR) | SELECT AVG(tie_no) FROM table_name_66 WHERE attendance = 126 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
17,
23,
15,
834,
29,
32,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
6177,
150,
116,
8,
11364,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17,
23,
15,
834,
29,
32,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
11364,
3274,
3,
21976,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was willie goggin's score? | CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_49 WHERE player = "willie goggin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
56,
23,
15,
281,
4102,
77,
31,
7,
2604,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1959,
3274,
96,
8894,
23,
15,
281,
4102,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who took office after onn jaafar ? | CREATE TABLE table_204_668 (
id number,
"#" number,
"menteri besar" text,
"took office" text,
"left office" text,
"party" text
) | SELECT "menteri besar" FROM table_204_668 WHERE "took office" > (SELECT "took office" FROM table_204_668 WHERE "menteri besar" = 'onn jaafar') ORDER BY "took office" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3539,
927,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
297,
49,
23,
36,
7,
291,
121,
1499,
6,
96,
235,
1825,
828,
121,
1499,
6,
96,
17068,
828,
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,
297,
49,
23,
36,
7,
291,
121,
21680,
953,
834,
26363,
834,
3539,
927,
549,
17444,
427,
96,
235,
1825,
828,
121,
2490,
41,
23143,
14196,
96,
235,
1825,
828,
121,
21680,
953,
834,
26363,
834,
3539,
927,
549,
174... |
How many schools are in Bloomington, IN? | CREATE TABLE table_10082596_1 (
founded VARCHAR,
location VARCHAR
) | SELECT COUNT(founded) FROM table_10082596_1 WHERE location = "Bloomington, IN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
927,
1828,
4314,
834,
536,
41,
5710,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2061,
33,
16,
17762,
6029,
6,
3388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
23329,
61,
21680,
953,
834,
2915,
927,
1828,
4314,
834,
536,
549,
17444,
427,
1128,
3274,
96,
279,
14351,
6029,
6,
3388,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many losses are there for team tembetary? | CREATE TABLE table_22566 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws P.K. Wins / P.K. Losses" text,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT "Losses" FROM table_22566 WHERE "Team" = 'Tembetary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
3539,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
276,
5,
439... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
13526,
7,
121,
21680,
953,
834,
20489,
3539,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
382,
15,
51,
346,
17,
1208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23? | CREATE TABLE table_33267 (
"Name" text,
"Team" text,
"Laps" real,
"Grid" real,
"Points" real
) | SELECT MAX("Laps") FROM table_33267 WHERE "Points" < '5' AND "Team" = 'garry rogers motorsport' AND "Grid" < '23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2668,
3708,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13313,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
519,
2668,
3708,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
18699,
121,
3274,
3,
31,
1478,
651,
3,
3822,
277,
2340,
6661,
31,
34... |
What team has a home city of Koprivnica? | CREATE TABLE table_name_77 (team VARCHAR, home_city VARCHAR) | SELECT team FROM table_name_77 WHERE home_city = "koprivnica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
11650,
584,
4280,
28027,
6,
234,
834,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
3,
9,
234,
690,
13,
1793,
2246,
208,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
234,
834,
6726,
3274,
96,
17466,
5927,
12878,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times has Aaron Ogden (f), been a successor and has had a formal installation? | CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) | SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
26311,
834,
519,
41,
5522,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
584,
4280,
28027,
6,
22261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
61,
21680,
953,
834,
24622,
26311,
834,
519,
549,
17444,
427,
22261,
3274,
96,
188,
291,
106,
411,
122,
537,
41,
371,
61,
121,
... |
What's the 2010 when Q2 happened in 2011? | CREATE TABLE table_name_45 (
Id VARCHAR
) | SELECT 2010 FROM table_name_45 WHERE 2011 = "q2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2735,
116,
1593,
357,
2817,
16,
2722,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2722,
3274,
96,
1824,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total overall when Kenny Lewis is the player in a round after 5? | CREATE TABLE table_67829 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_67829 WHERE "Player" = 'kenny lewis' AND "Round" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
3166,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
3708,
927,
3166,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
9376,
63,
90,
210,
159,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
755,
31,
1,
-1... |
What is team 1 in group h? | CREATE TABLE table_name_45 (
team__number1 VARCHAR,
round VARCHAR
) | SELECT team__number1 FROM table_name_45 WHERE round = "group h" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
372,
209,
16,
563,
3,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
834,
5525,
1152,
536,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1751,
3274,
96,
10739,
3,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
whose score was the same as crenshaw 's ? | CREATE TABLE table_204_126 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) | SELECT "player" FROM table_204_126 WHERE "player" <> 'ben crenshaw' AND "score" = (SELECT "score" FROM table_204_126 WHERE "player" = 'ben crenshaw') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21976,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
235,
260,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20846,
121,
21680,
953,
834,
26363,
834,
21976,
549,
17444,
427,
96,
20846,
121,
3,
2,
3155,
3,
31,
115,
35,
3935,
29,
15622,
31,
3430,
96,
7,
9022,
121,
3274,
41,
23143,
14196,
96,
7,
9022,
121,
21680,
953,
... |
name the flag bearer directly before zviadauri . | CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
) | SELECT "flag bearer" FROM table_204_266 WHERE "event year" < (SELECT "event year" FROM table_204_266 WHERE "flag bearer" = 'zurab zviadauri') ORDER BY "event year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3539,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
15,
2169,
215,
121,
381,
6,
96,
9476,
121,
1499,
6,
96,
89,
5430,
4595,
49,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
89,
5430,
4595,
49,
121,
21680,
953,
834,
26363,
834,
357,
3539,
549,
17444,
427,
96,
15,
2169,
215,
121,
3,
2,
41,
23143,
14196,
96,
15,
2169,
215,
121,
21680,
953,
834,
26363,
834,
357,
3539,
549,
17444,
427... |
Compare the number of the names of phones by a bar chart, and display by the x axis in asc. | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... | SELECT Name, COUNT(Name) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY Name ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
3611,
834,
4309,
16,
17,
6,
8924,
834,
4309,
1499,
6,
1174,
51,
834,
858,
834,
7149,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
512,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
951,
834,
8809,
6157,
332,
536,
3,
15355,
3162,
512,
6157,
332,
357,
9191,
332,
5411,
22572,
834,
4309,
3274,
332,
4416,
22572,
834,
4309,
3,
15355,
3162,
951,
6157,
332,
... |
What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze medals, and fewer than 395 gold medals? | CREATE TABLE table_71626 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_71626 WHERE "Total" > '3' AND "Bronze" > '22' AND "Gold" < '395' AND "Nation" = 'austria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
2688,
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,
3,
17684,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
940,
2938,
2688,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
519,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
2884,
31,
3430,
96,
23576,
121,
... |
What is the description of the measure that got 39.57% yes votes? | CREATE TABLE table_256286_23 (
description VARCHAR,
_percentage_yes VARCHAR
) | SELECT description FROM table_256286_23 WHERE _percentage_yes = "39.57%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4056,
3840,
834,
2773,
41,
4210,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
10070,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4210,
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,
4210,
21680,
953,
834,
1828,
4056,
3840,
834,
2773,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
10070,
3274,
96,
519,
22321,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the sum of rank for silver less than 0 | CREATE TABLE table_name_55 (
rank INTEGER,
silver INTEGER
) | SELECT SUM(rank) FROM table_name_55 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
11003,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
11003,
21,
4294,
705,
145,
3,
632,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the torque where performance is 0 100km/h: 7.5s auto, vmax: km/h (mph) | CREATE TABLE table_16483 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) | SELECT "Torque" FROM table_16483 WHERE "Performance" = '0–100km/h: 7.5s auto, VMax: km/h (mph)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
4591,
41,
96,
19310,
51,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
450,
115,
32,
121,
1499,
6,
96,
371,
76,
15,
40,
15715,
121,
1499,
6,
96,
23553,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
127,
835,
121,
21680,
953,
834,
26987,
4591,
549,
17444,
427,
96,
12988,
2032,
663,
121,
3274,
3,
31,
632,
104,
2915,
5848,
87,
107,
10,
3,
15731,
7,
1510,
6,
584,
21298,
10,
2280,
87,
107,
41,
7656,
61... |
Which surface had a partner of Sandrine Testud on November 14, 1999? | CREATE TABLE table_75193 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Surface" FROM table_75193 WHERE "Partner" = 'sandrine testud' AND "Date" = 'november 14, 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2294,
519,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
3072,
2294,
519,
549,
17444,
427,
96,
13725,
687,
121,
3274,
3,
31,
7,
232,
9249,
794,
76,
26,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
11363,
5247,
31,
1,... |
I want the sum of Laps with Grid less than 11 for jean-pierre jarier | CREATE TABLE table_name_7 (
laps INTEGER,
grid VARCHAR,
driver VARCHAR
) | SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
4505,
13,
325,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
8634,
3,
2,
850,
3430,
2535,
3274,
96,
26459,
18,
8343,
60,
2662,
6711,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.