NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
count the number of patients whose procedure icd9 code is 3891. | 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 procedures.icd9_code = "3891" | [
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,... |
How many settlements are named ђурђин (croatian: đurđin)? | CREATE TABLE table_2562572_26 (settlement VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT COUNT(settlement) FROM table_2562572_26 WHERE cyrillic_name_other_names = "Ђурђин (Croatian: Đurđin)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2688,
41,
2244,
17,
3335,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
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,
2244,
17,
3335,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
2688,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
3700,
8452,
2,
22420,
41,
254,
52,
... |
What was Matthew Hoggard's high score when he had a strike rate of n/a? | CREATE TABLE table_name_64 (high_score VARCHAR, strike_rate VARCHAR, player VARCHAR) | SELECT high_score FROM table_name_64 WHERE strike_rate = "n/a" AND player = "matthew hoggard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
6739,
834,
7,
9022,
584,
4280,
28027,
6,
6585,
834,
2206,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
9771,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
306,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
6585,
834,
2206,
3274,
96,
29,
87,
9,
121,
3430,
1959,
3274,
96,
3357,
532,
210,
3,
18330,
6390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003? | CREATE TABLE table_40484 (
"Name" text,
"Rank" real,
"Out of" text,
"Source" text,
"Year" real
) | SELECT "Out of" FROM table_40484 WHERE "Source" = 'united nations' AND "Rank" > '47' AND "Year" < '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
4608,
41,
96,
23954,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
15767,
13,
121,
1499,
6,
96,
23799,
121,
1499,
6,
96,
476,
2741,
121,
490,
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,
96,
15767,
13,
121,
21680,
953,
834,
25285,
4608,
549,
17444,
427,
96,
23799,
121,
3274,
3,
31,
15129,
15,
26,
9352,
31,
3430,
96,
22557,
121,
2490,
3,
31,
4177,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
23948,... |
What is the total number of Ends Won, when Province is 'Saskatchewan', and when Stolen Ends is less than 6? | CREATE TABLE table_49862 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT COUNT("Ends Won") FROM table_49862 WHERE "Province" = 'saskatchewan' AND "Stolen Ends" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3840,
357,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
8532,
26,
7,
549,
106,
121,
490,
6,
96,
8532,
26,
7,
19576,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
8532,
26,
7,
549,
106,
8512,
21680,
953,
834,
3647,
3840,
357,
549,
17444,
427,
96,
3174,
2494,
565,
121,
3274,
3,
31,
7,
9,
7,
8682,
1033,
3877,
31,
3430,
96,
134,
235,
40,
35,
3720,
7,
... |
Who owned winner Blueeyesintherein after 2009? | CREATE TABLE table_name_75 (
owner VARCHAR,
year VARCHAR,
winner VARCHAR
) | SELECT owner FROM table_name_75 WHERE year > 2009 AND winner = "blueeyesintherein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2527,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
4157,
4668,
2419,
13370,
7,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
215,
2490,
2464,
3430,
4668,
3274,
96,
7060,
15,
13370,
7,
77,
12137,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many countries have one more than 10 gold medals ? | CREATE TABLE table_203_497 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_203_497 WHERE "gold" > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
4327,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
8512,
21680,
953,
834,
23330,
834,
591,
4327,
549,
17444,
427,
96,
14910,
121,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients who have had a po oral intake since 6 years ago? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'po oral' AND intakeoutput.cellpath LIKE '%input%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-6 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
21680,
... |
What days were the rounds of 66-67-70-67 recorded? | CREATE TABLE table_72638 (
"Date" text,
"Tournament" text,
"Player" text,
"Country" text,
"Rounds" text,
"Score" real,
"To par" text,
"Finish" text
) | SELECT "Date" FROM table_72638 WHERE "Rounds" = '66-67-70-67' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
448,
32,
1106,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
940,
2688,
3747,
549,
17444,
427,
96,
448,
32,
1106,
7,
121,
3274,
3,
31,
3539,
18,
3708,
18,
2518,
18,
3708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Grid for Rubens Barrichello? | CREATE TABLE table_name_99 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_99 WHERE driver = "rubens barrichello" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3496,
26,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23644,
21,
15612,
35,
7,
1386,
3723,
7126,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8634,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
2535,
3274,
96,
14446,
35,
7,
1207,
3723,
7126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want to know the HP model with a #HDD of 1 of sides of ds | CREATE TABLE table_11563 (
"HP Model" text,
"Command Set" text,
"# FDD" real,
"FDD Type" text,
"Sides" text,
"FDD Capacity (each)" text,
"# HDD" real,
"HDD Capacity" text
) | SELECT "HP Model" FROM table_11563 WHERE "# HDD" = '1' AND "Sides" = 'ds' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
3891,
41,
96,
13201,
5154,
121,
1499,
6,
96,
10205,
232,
2821,
121,
1499,
6,
96,
4663,
377,
11253,
121,
490,
6,
96,
371,
11253,
6632,
121,
1499,
6,
96,
134,
9361,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13201,
5154,
121,
21680,
953,
834,
15660,
3891,
549,
17444,
427,
96,
4663,
3726,
308,
121,
3274,
3,
31,
536,
31,
3430,
96,
134,
9361,
121,
3274,
3,
31,
26,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
State the dates of games with record 1-2-3 | CREATE TABLE table_17360840_4 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_17360840_4 WHERE record = "1-2-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
19208,
26311,
834,
591,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1015,
8,
5128,
13,
1031,
28,
1368,
3,
9596,
3486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2517,
19208,
26311,
834,
591,
549,
17444,
427,
1368,
3274,
96,
9596,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many persons had immunity in the episode when Wanda was eliminated? | CREATE TABLE table_1272844_2 (
immunity VARCHAR,
eliminated VARCHAR
) | SELECT COUNT(immunity) FROM table_1272844_2 WHERE eliminated = "Wanda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
2577,
3628,
834,
357,
41,
26510,
584,
4280,
28027,
6,
17809,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7609,
141,
26510,
16,
8,
5640,
116,
1318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
23,
635,
202,
485,
61,
21680,
953,
834,
22367,
2577,
3628,
834,
357,
549,
17444,
427,
17809,
3274,
96,
518,
232,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the week 2 with daniella mugnolo in week 1? | CREATE TABLE table_name_83 (week_2 VARCHAR, week_1 VARCHAR) | SELECT week_2 FROM table_name_83 WHERE week_1 = "daniella mugnolo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
8041,
834,
357,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
204,
28,
3,
26,
2738,
5303,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
357,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
471,
834,
536,
3274,
96,
26,
2738,
5303,
4035,
6715,
40,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which actor won in 1966? | CREATE TABLE table_name_43 (
actor VARCHAR,
year VARCHAR
) | SELECT actor FROM table_name_43 WHERE year = 1966 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
7556,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7556,
751,
16,
20658,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7556,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
215,
3274,
20658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the surface on 21 june 1993? | CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_60 WHERE date = "21 june 1993" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
26899,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1774,
30,
1401,
3,
6959,
15,
8388,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
2658,
3,
6959,
15,
8388,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the longitude is 147.1w what is the namesake of the feature? | CREATE TABLE table_16768245_2 (
namesake VARCHAR,
longitude VARCHAR
) | SELECT namesake FROM table_16768245_2 WHERE longitude = "147.1W" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3959,
4613,
2128,
834,
357,
41,
3056,
9,
1050,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
307,
20341,
19,
968,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3056,
9,
1050,
21680,
953,
834,
2938,
3959,
4613,
2128,
834,
357,
549,
17444,
427,
307,
20341,
3274,
96,
2534,
25059,
518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Partner has a Date of 8 february 2009? | CREATE TABLE table_name_57 (partner VARCHAR, date VARCHAR) | SELECT partner FROM table_name_57 WHERE date = "8 february 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
12300,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5793,
65,
3,
9,
7678,
13,
505,
29976,
76,
1208,
2464,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
927,
29976,
76,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo? | CREATE TABLE table_20701 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
) | SELECT "Kalamazoo (AZO)" FROM table_20701 WHERE "Lansing (LAN)" = '$433.59' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4542,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
3247,
53,
41,
12303,
61,
121,
1499,
6,
96,
308,
15252,
155,
41,
12111,
518,
61,
121,
1499,
6,
96,
4744,
727,
13836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
439,
138,
265,
17694,
32,
41,
10491,
667,
61,
121,
21680,
953,
834,
26426,
4542,
549,
17444,
427,
96,
434,
3247,
53,
41,
12303,
61,
121,
3274,
3,
31,
3229,
4906,
9285,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What college has a pick smaller than 87 for the position of tackle? | CREATE TABLE table_64360 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_64360 WHERE "Position" = 'tackle' AND "Pick" < '87' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
19208,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
9939,
7883,
121,
21680,
953,
834,
4389,
19208,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
17,
9,
19376,
31,
3430,
96,
345,
3142,
121,
3,
2,
3,
31,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the english version that is buena vista edition is daisuke gouri? | CREATE TABLE table_25173505_13 (english_version VARCHAR, buena_vista_edition VARCHAR) | SELECT english_version FROM table_25173505_13 WHERE buena_vista_edition = "Daisuke Gouri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2517,
2469,
3076,
834,
2368,
41,
4606,
40,
1273,
834,
8674,
584,
4280,
28027,
6,
8524,
35,
9,
834,
17493,
834,
15,
10569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
22269,
834,
8674,
21680,
953,
834,
1828,
2517,
2469,
3076,
834,
2368,
549,
17444,
427,
8524,
35,
9,
834,
17493,
834,
15,
10569,
3274,
96,
308,
9,
159,
1598,
15,
1263,
459,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the incumbent in the election of henry garland dupré (d) unopposed? | CREATE TABLE table_1342426_18 (incumbent VARCHAR, candidates VARCHAR) | SELECT incumbent FROM table_1342426_18 WHERE candidates = "Henry Garland Dupré (D) Unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2266,
2688,
834,
2606,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
28406,
16,
8,
4356,
13,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2266,
2688,
834,
2606,
549,
17444,
427,
4341,
3274,
96,
566,
35,
651,
2776,
7721,
970,
16280,
41,
308,
61,
597,
28236,
3843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who drove the car with over 66 laps with a grid of 5? | CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
13739,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
10719,
8,
443,
28,
147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
14941,
7,
2490,
3,
3539,
3430,
8634,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Winner, when Location is Connie Mack Stadium, and when Year is 1946? | CREATE TABLE table_name_98 (
winner VARCHAR,
location VARCHAR,
year VARCHAR
) | SELECT winner FROM table_name_98 WHERE location = "connie mack stadium" AND year = 1946 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
4668,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
18125,
6,
116,
10450,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1128,
3274,
96,
509,
11113,
3,
20072,
14939,
121,
3430,
215,
3274,
25021,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which away team played against the home team of St Kilda? | CREATE TABLE table_name_66 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_66 WHERE home_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
550,
372,
1944,
581,
8,
234,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Friesland's gdp per capita? | CREATE TABLE table_1067441_1 (_in_€_ VARCHAR, gdp_per_cap__2003 INTEGER, province VARCHAR) | SELECT MIN(gdp_per_cap__2003), _in_€_ FROM table_1067441_1 WHERE province = "Friesland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
4581,
4853,
834,
536,
41,
834,
77,
834,
3378,
834,
584,
4280,
28027,
6,
3,
122,
26,
102,
834,
883,
834,
4010,
834,
834,
23948,
3,
21342,
17966,
6,
7985,
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,
3,
17684,
599,
122,
26,
102,
834,
883,
834,
4010,
834,
834,
23948,
201,
3,
834,
77,
834,
3378,
834,
21680,
953,
834,
16431,
4581,
4853,
834,
536,
549,
17444,
427,
7985,
3274,
96,
371,
2593,
40,
232,
121,
1,
-100,
... |
Which 992 has a 1–2 of 1989 ? | CREATE TABLE table_name_13 (Id VARCHAR) | SELECT 1992 FROM table_name_13 WHERE 1989 = "1–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
668,
4508,
65,
3,
9,
209,
104,
357,
13,
9975,
3,
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,
9047,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
9975,
3274,
96,
536,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many new entries started in the round where winners from the previous round is 16? | CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, winners_from_previous_round VARCHAR) | SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2668,
4433,
3951,
834,
536,
41,
5534,
834,
35,
9000,
834,
8048,
834,
7775,
584,
4280,
28027,
6,
8969,
834,
7152,
834,
2026,
19117,
834,
7775,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
126,
834,
35,
9000,
834,
8048,
834,
7775,
21680,
953,
834,
2606,
2668,
4433,
3951,
834,
536,
549,
17444,
427,
8969,
834,
7152,
834,
2026,
19117,
834,
7775,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113? | CREATE TABLE table_5864 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Position" FROM table_5864 WHERE "Nationality" = 'canada' AND "NHL team" = 'new york islanders' AND "Pick #" = '113' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4389,
41,
96,
345,
3142,
1713,
121,
1499,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
3449,
4389,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
658,
18089,
31,
3430,
96,
15743,
434,
372,
121,
3274,
3,
31,
5534,
25453,
3368,
277,
31,
3430,
96,
345,
... |
Which Rank has Goals larger than 4, and a Scorer of oh seok-jae? | CREATE TABLE table_name_14 (rank VARCHAR, goals VARCHAR, scorer VARCHAR) | SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = "oh seok-jae" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
6254,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
2604,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
22557,
65,
17916,
7,
2186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1766,
2490,
314,
3430,
2604,
52,
3274,
96,
32,
107,
142,
1825,
18,
1191,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest vote number for Bush? | CREATE TABLE table_1756284_1 (
bush_number INTEGER
) | SELECT MAX(bush_number) FROM table_1756284_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4834,
357,
4608,
834,
536,
41,
17907,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
2902,
381,
21,
8905,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3465,
107,
834,
5525,
1152,
61,
21680,
953,
834,
2517,
4834,
357,
4608,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Visualize a pie chart about the proportion of All_Neutral and All_Games_Percent. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, All_Games_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
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,
432,
834,
26288,
8792,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When bas van erp was the athlete what was the quarterfinals? | CREATE TABLE table_22496 (
"Athlete" text,
"Class" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text,
"Final/ Bronze medal match" text
) | SELECT "Quarterfinals" FROM table_22496 WHERE "Athlete" = 'Bas van Erp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4314,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
6687,
121,
1499,
6,
96,
448,
32,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5991,
1408,
49,
12406,
7,
121,
21680,
953,
834,
24622,
4314,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
14885,
4049,
848,
102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many results does the California 29 voting district have? | CREATE TABLE table_18526 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT COUNT("Result") FROM table_18526 WHERE "District" = 'California 29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
2688,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20119,
8512,
21680,
953,
834,
21594,
2688,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
14318,
99,
127,
29,
23,
9,
2838,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the series number for season 12. | CREATE TABLE table_29521 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT COUNT("No. in series") FROM table_29521 WHERE "No. in season" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
2658,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
16,
939,
8512,
21680,
953,
834,
357,
3301,
2658,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give the lab test abnomal status of subject id 6983. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT lab.flag FROM lab WHERE lab.subject_id = "6983" | [
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,
7690,
5,
89,
5430,
21680,
7690,
549,
17444,
427,
7690,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3951,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage of literate people where india is andaman and Nicobar Islands? | CREATE TABLE table_14598_9 (
literate_persons___percentage_ VARCHAR,
india_state_ut VARCHAR
) | SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3916,
834,
1298,
41,
3,
9842,
342,
834,
6075,
7,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
18222,
834,
5540,
834,
76,
17,
584,
4280,
28027,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
9842,
342,
834,
6075,
7,
834,
834,
834,
883,
3728,
545,
834,
21680,
953,
834,
20987,
3916,
834,
1298,
549,
17444,
427,
18222,
834,
5540,
834,
76,
17,
3274,
96,
7175,
9,
348,
11,
23695,
1047,
11654,
121,
1,
-100... |
David Kasouf plays for how many colleges? | CREATE TABLE table_24271 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("College") FROM table_24271 WHERE "Player" = 'David Kasouf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2555,
536,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9939,
7883,
8512,
21680,
953,
834,
2266,
2555,
536,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
308,
9,
6961,
12783,
1063,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who published Weird War Tales? | CREATE TABLE table_55141 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
) | SELECT "Publisher" FROM table_55141 WHERE "Title" = 'weird war tales' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
26059,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
31009,
49,
121,
1499,
6,
96,
25171,
2929,
121,
1499,
6,
96,
3612,
7,
17,
2929,
121,
1499,
6,
96,
13714,
60,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
31009,
49,
121,
21680,
953,
834,
3769,
26059,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
1123,
23,
52,
26,
615,
5221,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Wins has a Tournament of totals, and a Cuts made larger than 42? | CREATE TABLE table_41695 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Wins") FROM table_41695 WHERE "Tournament" = 'totals' AND "Cuts made" > '42' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2938,
3301,
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,
71,
17217,
599,
121,
18455,
7,
8512,
21680,
953,
834,
591,
2938,
3301,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
235,
1947,
7,
31,
3430,
96,
15784,
17,
7,
263,
121,
2490,
3,
31,
4165,
31,
1,
... |
What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4? | CREATE TABLE table_47908 (
"Reservation" text,
"Location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
) | SELECT SUM("2000") FROM table_47908 WHERE "1969" = '54.3' AND "1979" < '48.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2394,
927,
41,
96,
1649,
3473,
257,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
2294,
3951,
121,
490,
6,
96,
2294,
4440,
121,
490,
6,
96,
2294,
3914,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13527,
8512,
21680,
953,
834,
4177,
2394,
927,
549,
17444,
427,
96,
2294,
3951,
121,
3274,
3,
31,
755,
21841,
31,
3430,
96,
2294,
4440,
121,
3,
2,
3,
31,
3707,
5,
591,
31,
1,
-100,
-100,
-10... |
return me the paper after 2000 in PVLDB with more than 200 citations . | CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE publication_keyword (
... | SELECT publication.title FROM journal, publication WHERE journal.name = 'PVLDB' AND publication.citation_num > 200 AND publication.jid = journal.jid AND publication.year > 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3303,
834,
28496,
41,
3,
10812,
16,
17,
6,
410,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
9838,
3,
4331,
4059,
6,
3,
10812,
16,
17,
6,
3,
1390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5707,
5,
21869,
21680,
6378,
6,
5707,
549,
17444,
427,
6378,
5,
4350,
3274,
3,
31,
345,
553,
9815,
279,
31,
3430,
5707,
5,
13903,
834,
5525,
2490,
2382,
3430,
5707,
5,
354,
23,
26,
3274,
6378,
5,
354,
23,
26,
34... |
Who is the lead on the Europe team that has a Liudmila Privivkova as the skip? | CREATE TABLE table_43121 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_43121 WHERE "Team" = 'europe' AND "Skip" = 'liudmila privivkova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
22011,
41,
96,
18699,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
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,
2796,
9,
26,
121,
21680,
953,
834,
4906,
22011,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
28188,
31,
3430,
96,
134,
2168,
102,
121,
3274,
3,
31,
40,
23,
76,
26,
26759,
3,
2246,
7003,
9789,
9,
31,
1,
-1... |
Who was the 3rd performer when christopher smith was the 2nd performer? | CREATE TABLE table_name_19 (performer_3 VARCHAR, performer_2 VARCHAR) | SELECT performer_3 FROM table_name_19 WHERE performer_2 = "christopher smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
883,
2032,
49,
834,
519,
584,
4280,
28027,
6,
1912,
49,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
220,
52,
26,
1912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1912,
49,
834,
519,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1912,
49,
834,
357,
3274,
96,
15294,
10775,
49,
3,
16331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT SEASON HAD A SEASON FINALE OF MAY 21, 1989 AND WAS VIEWED BY 17.98 MILLION HOUSEHOLDS? | CREATE TABLE table_45454 (
"Season" real,
"Episodes" real,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Rank" text,
"Households (millions)" real
) | SELECT MAX("Season") FROM table_45454 WHERE "Season finale" = 'may 21, 1989' AND "Households (millions)" < '17.98' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2128,
591,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
1395,
121,
490,
6,
96,
134,
15,
9,
739,
13539,
121,
1499,
6,
96,
134,
15,
9,
739,
13604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
15,
9,
739,
8512,
21680,
953,
834,
2128,
2128,
591,
549,
17444,
427,
96,
134,
15,
9,
739,
13604,
121,
3274,
3,
31,
13726,
12026,
9975,
31,
3430,
96,
4489,
1074,
6134,
7,
41,
17030,
7,
61,... |
Who had the high points in game is 81? | CREATE TABLE table_27703902_9 (high_points VARCHAR, game VARCHAR) | SELECT high_points FROM table_27703902_9 WHERE game = 81 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
3288,
4305,
834,
1298,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
979,
16,
467,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
21680,
953,
834,
2555,
2518,
3288,
4305,
834,
1298,
549,
17444,
427,
467,
3274,
3,
4959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Outcome has a Opponent of lindsay lee-waters? | CREATE TABLE table_name_83 (
outcome VARCHAR,
opponent VARCHAR
) | SELECT outcome FROM table_name_83 WHERE opponent = "lindsay lee-waters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
6138,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3387,
287,
15,
65,
3,
9,
4495,
9977,
13,
3,
9230,
8735,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6138,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
15264,
3274,
96,
9230,
8735,
90,
15,
18,
3552,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Region of the 1766390 Catalog? | CREATE TABLE table_name_71 (
region VARCHAR,
catalog VARCHAR
) | SELECT region FROM table_name_71 WHERE catalog = "1766390" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1719,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6163,
13,
8,
3,
26782,
3891,
2394,
22424,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
10173,
3274,
96,
26782,
3891,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who did not have any job in the past, show me about the distribution of hire_date and the sum of salary bin hire_date by time in a bar chart, list in desc by the Y please. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
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,
21680,
613... |
When Efrain Valdez was pitching, what was the highest home run? | CREATE TABLE table_name_82 (home_run INTEGER, opposing_pitcher VARCHAR) | SELECT MAX(home_run) FROM table_name_82 WHERE opposing_pitcher = "efrain valdez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
5515,
834,
4312,
3,
21342,
17966,
6,
10720,
53,
834,
5230,
1703,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
262,
89,
6559,
3833,
26,
457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5515,
834,
4312,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
10720,
53,
834,
5230,
1703,
3274,
96,
15,
89,
6559,
3,
2165,
26,
457,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose diagnoses long title is wegener's granulomatosis and lab test category is hematology? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Wegener's granulomatosis" AND lab."CATEGORY" = "Hematology" | [
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,
3... |
How many mls teams had player jamel wallace? | CREATE TABLE table_3285 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT COUNT("MLS Team") FROM table_3285 WHERE "Player" = 'Jamel Wallace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
4433,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
17976,
2271,
8512,
21680,
953,
834,
2668,
4433,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
683,
9,
2341,
25568,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record at the game that had a loss of Huffman (6–18)? | CREATE TABLE table_name_49 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_49 WHERE loss = "huffman (6–18)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
60,
7621,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
44,
8,
467,
24,
141,
3,
9,
1453,
13,
454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1453,
3274,
96,
107,
2999,
348,
11372,
104,
2606,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What To par scored 72-71-68=211? | CREATE TABLE table_name_29 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_29 WHERE score = 72 - 71 - 68 = 211 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
304,
260,
5799,
9455,
18,
4450,
18,
3651,
2423,
2727... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
3,
4450,
3,
18,
3,
3651,
3274,
3,
27278,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the result w 28 7? | CREATE TABLE table_name_85 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_85 WHERE result = "w 28–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
741,
3,
210,
2059,
489,
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,
833,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
741,
3274,
96,
210,
2059,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is number of parts that received their latest amendment before 2010 ? | CREATE TABLE table_203_679 (
id number,
"part" text,
"number" text,
"first public release date (first edition)" number,
"latest public release date (edition)" number,
"latest amendment" text,
"title" text,
"description" text
) | SELECT COUNT("part") FROM table_203_679 WHERE "latest amendment" < 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
948,
4440,
41,
3,
23,
26,
381,
6,
96,
2274,
121,
1499,
6,
96,
5525,
1152,
121,
1499,
6,
96,
14672,
452,
1576,
833,
41,
14672,
4182,
61,
121,
381,
6,
96,
521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2274,
8512,
21680,
953,
834,
23330,
834,
948,
4440,
549,
17444,
427,
96,
521,
4377,
12123,
121,
3,
2,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the wins for best finish being 2nd | CREATE TABLE table_1697190_1 (
wins VARCHAR,
best_finish VARCHAR
) | SELECT wins FROM table_1697190_1 WHERE best_finish = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4327,
11776,
834,
536,
41,
9204,
584,
4280,
28027,
6,
200,
834,
25535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
9204,
21,
200,
1992,
271,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9204,
21680,
953,
834,
2938,
4327,
11776,
834,
536,
549,
17444,
427,
200,
834,
25535,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many students are advised by each rank of faculty? List the rank and the number of students. Plot them as bar chart. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER... | SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
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,
3,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
6157,
332,
536,
3,
15355,
3162,
6341,
6157,
332,
357,
9191,
332,
5411,
371,
9,
75,
4309,
3274,
332,
4416,
188,
26,
24680,
350,
4630,
6880,
272,
476,
332,
5411,
... |
What is the 2nd leg of the Internacional Team 1? | CREATE TABLE table_name_48 (
team_1 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_48 WHERE team_1 = "internacional" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
13,
8,
3037,
11962,
6318,
2271,
209,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
372,
834,
536,
3274,
96,
3870,
11962,
6318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest round with a place of t15 in a year earlier than 1998? | CREATE TABLE table_name_15 (round_1 INTEGER, place VARCHAR, year VARCHAR) | SELECT MIN(round_1) FROM table_name_15 WHERE place = "t15" AND year < 1998 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
7775,
834,
536,
3,
21342,
17966,
6,
286,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1751,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7775,
834,
6982,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
286,
3274,
96,
17,
1808,
121,
3430,
215,
3,
2,
6260,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Third/Vice skip has a Second of ric sylvain? | CREATE TABLE table_49155 (
"Skip" text,
"Third/Vice skip" text,
"Second" text,
"Lead" text,
"City" text
) | SELECT "Third/Vice skip" FROM table_49155 WHERE "Second" = 'éric sylvain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
20896,
41,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
87,
553,
867,
11202,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
26,
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,
382,
9288,
26,
87,
553,
867,
11202,
121,
21680,
953,
834,
3647,
20896,
549,
17444,
427,
96,
134,
15,
1018,
26,
121,
3274,
3,
31,
154,
2234,
3,
7,
63,
40,
900,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average value for Wins, when South West DFL is 'Coleraine', and when Byes is greater than 0? | CREATE TABLE table_name_73 (
wins INTEGER,
south_west_dfl VARCHAR,
byes VARCHAR
) | SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
9204,
3,
21342,
17966,
6,
3414,
834,
12425,
834,
26,
89,
40,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3414,
834,
12425,
834,
26,
89,
40,
3274,
96,
3297,
49,
7043,
121,
3430,
57,
15,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What year did Orlando have a School/Club team in Clemson? | CREATE TABLE table_name_53 (
years_in_orlando VARCHAR,
school_club_team VARCHAR
) | SELECT years_in_orlando FROM table_name_53 WHERE school_club_team = "clemson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
203,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
2482,
51,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the number of vocal types used in song 'Demon Kitty Rag'? | CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE songs (
songid number,
title text
)
CREAT... | SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,
6,
1726,
4718,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
3350,
7,
41,
2306,
23,
26,
381,
6,
1102,
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,
2847,
17161,
599,
1935,
61,
21680,
6721,
7,
6157,
332,
536,
3,
15355,
3162,
3605,
6157,
332,
357,
9191,
332,
5411,
7,
2444,
23,
26,
3274,
332,
4416,
7,
2444,
23,
26,
549,
17444,
427,
2233,
3274,
96,
2962,
2157,
48... |
How many games did the team play when they were 1-3? | CREATE TABLE table_13619053_4 (score VARCHAR, record VARCHAR) | SELECT COUNT(score) FROM table_13619053_4 WHERE record = "1-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
11776,
4867,
834,
591,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
410,
8,
372,
577,
116,
79,
130,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
23459,
11776,
4867,
834,
591,
549,
17444,
427,
1368,
3274,
96,
16737,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which tournament has a value of 2R in 2008? | CREATE TABLE table_name_54 (tournament VARCHAR) | SELECT tournament FROM table_name_54 WHERE 2008 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
65,
3,
9,
701,
13,
204,
448,
16,
2628,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2628,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many times since 4 years ago was the hypotonic fluid administration - half-normal saline solution procedure done? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'hypotonic fluid administration - half-normal saline solution' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-4 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1058,
549,
17444,
427,
1058,
5,
26889,
4350,
3274,
3,
31,
13397,
32,
17,
4554,
5798,
3602,
3,
18,
985,
18,
12110,
3,
7,
9,
747,
1127,
31,
3430,
309,
6048,
382,
15382,
599,
26889,... |
count the number of patients who have received a surgical drains treatment since 2102. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'surgical drains' AND STRFTIME('%y', treatment.treatmenttime) >= '2102') | [
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
10061,
15129,
21545,
23,
26,
21680,
1058,
549,
... |
Tell me the method for pride 33 | CREATE TABLE table_31837 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Method" FROM table_31837 WHERE "Event" = 'pride 33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
4118,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
23351,
107,
32,
26,
121,
21680,
953,
834,
519,
2606,
4118,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
2246,
221,
5400,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many kinds of roles are there for the staff? | CREATE TABLE projects (
project_id number,
organisation_id number,
project_details text
)
CREATE TABLE staff_roles (
role_code text,
role_description text
)
CREATE TABLE organisations (
organisation_id number,
organisation_type text,
organisation_details text
)
CREATE TABLE organisati... | SELECT COUNT(DISTINCT role_code) FROM project_staff | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
516,
834,
23,
26,
381,
6,
5102,
834,
23,
26,
381,
6,
516,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
834,
3491,
15,
7,
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,
2847,
17161,
599,
15438,
25424,
6227,
1075,
834,
4978,
61,
21680,
516,
834,
26416,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name/designation for the 1200kg payload? | CREATE TABLE table_8752 (
"Name/Designation" text,
"Class" text,
"Range (varies with payload weight)" text,
"Payload" text,
"Status" text
) | SELECT "Name/Designation" FROM table_8752 WHERE "Payload" = '1200kg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
5373,
41,
96,
23954,
87,
19103,
257,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
448,
3280,
41,
15550,
28,
726,
7134,
1293,
61,
121,
1499,
6,
96,
19702,
7134,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
87,
19103,
257,
121,
21680,
953,
834,
4225,
5373,
549,
17444,
427,
96,
19702,
7134,
121,
3274,
3,
31,
536,
3632,
8711,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bob Johnson plays for which AFL team? | CREATE TABLE table_12165999_1 (afl_team VARCHAR, player VARCHAR) | SELECT afl_team FROM table_12165999_1 WHERE player = "Bob Johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
22823,
19446,
834,
536,
41,
9,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5762,
5891,
4805,
21,
84,
71,
10765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
9,
89,
40,
834,
11650,
21680,
953,
834,
2122,
22823,
19446,
834,
536,
549,
17444,
427,
1959,
3274,
96,
279,
32,
115,
5891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Per capita income associated with a Median household income of $55,800? | CREATE TABLE table_name_49 (
per_capita_income VARCHAR,
median_household_income VARCHAR
) | SELECT per_capita_income FROM table_name_49 WHERE median_household_income = "$55,800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
399,
834,
4010,
155,
9,
834,
15759,
584,
4280,
28027,
6,
15572,
834,
1840,
6134,
834,
15759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
399,
834,
4010,
155,
9,
834,
15759,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
15572,
834,
1840,
6134,
834,
15759,
3274,
96,
3229,
3769,
6,
6192,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Score on 17 december 1979? | CREATE TABLE table_9177 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_9177 WHERE "Date" = '17 december 1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
4013,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
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,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4729,
4013,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2517,
20,
75,
18247,
15393,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many players retired after playing 12 years ? | CREATE TABLE table_203_622 (
id number,
"date" text,
"team" text,
"name" text,
"position" text,
"years in nba" number,
"notes" text
) | SELECT COUNT("team") FROM table_203_622 WHERE "years in nba" > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4056,
357,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
1201,
7,
16,
3,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11650,
8512,
21680,
953,
834,
23330,
834,
4056,
357,
549,
17444,
427,
96,
1201,
7,
16,
3,
29,
115,
9,
121,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a bar chart for what is the average rating star for each reviewer? | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
71,
17217,
599,
382,
5411,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
4543,
49,
6157,
332,
357,
9191,
332,
5411,
52,
4309,
3274,
332,
4416,
52,
4309,
350,
4630,
6880,
272,
476,
332,
4416,
4... |
What is Player, when Score is '71-69-72-72=284'? | CREATE TABLE table_7946 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Player" FROM table_7946 WHERE "Score" = '71-69-72-72=284' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
4448,
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,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4440,
4448,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4450,
18,
3951,
18,
5865,
18,
5865,
2423,
357,
4608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who ranked below kaitlin sandeno ? | CREATE TABLE table_204_902 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "name" FROM table_204_902 WHERE "rank" = (SELECT "rank" FROM table_204_902 WHERE "name" = 'kaitlin sandeno') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2394,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
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,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
2394,
357,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
26363,
834,
2394,
357,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
1258... |
How many games had 2 goals scored? | CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR) | SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
7261,
7,
834,
4895,
15,
26,
3,
21342,
17966,
6,
1766,
834,
3523,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
141,
204,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7261,
7,
834,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1766,
834,
3523,
1271,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which HQ is associated with a number of employees of 100? | CREATE TABLE table_name_23 (
headquarters VARCHAR,
employees__world_ VARCHAR
) | SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
13767,
584,
4280,
28027,
6,
1652,
834,
834,
7276,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
21447,
19,
1968,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13767,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1652,
834,
834,
7276,
834,
3274,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What To par has a Score of 68-66=134? | CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_15 WHERE score = 68 - 66 = 134 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
304,
260,
65,
3,
9,
17763,
13,
3,
3651,
18,
3539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
3539,
3274,
3,
23747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the race where the jockey was J. Marshall? | CREATE TABLE table_2062148_2 (
result VARCHAR,
jockey VARCHAR
) | SELECT result FROM table_2062148_2 WHERE jockey = "J. Marshall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4056,
24748,
834,
357,
41,
741,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
1964,
213,
8,
8624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
1755,
4056,
24748,
834,
357,
549,
17444,
427,
8624,
4397,
3274,
96,
683,
5,
17410,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the payment method and phone of the party with email 'enrico09@example.com'. | CREATE TABLE organizations (
organization_id number,
date_formed time,
organization_name text,
uk_vat_number text
)
CREATE TABLE organization_contact_individuals (
individual_id number,
organization_id number,
date_contact_from time,
date_contact_to time
)
CREATE TABLE addresses (
... | SELECT payment_method_code, party_phone FROM parties WHERE party_email = "enrico09@example.com" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2371,
41,
1470,
834,
23,
26,
381,
6,
833,
834,
10816,
97,
6,
1470,
834,
4350,
1499,
6,
3,
1598,
834,
900,
17,
834,
5525,
1152,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1942,
834,
23152,
834,
4978,
6,
1088,
834,
6399,
21680,
2251,
549,
17444,
427,
1088,
834,
15,
1963,
3274,
96,
35,
2234,
32,
4198,
1741,
994,
9,
9208,
5,
287,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the district that Otto Passman is the incumbent of? | CREATE TABLE table_1341843_19 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341843_19 WHERE incumbent = "Otto Passman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4906,
834,
2294,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3939,
24,
12881,
32,
3424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
23747,
2606,
4906,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
667,
17,
235,
3424,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are all locations of train stations? | CREATE TABLE station (LOCATION VARCHAR) | SELECT DISTINCT LOCATION FROM station | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
5017,
254,
8015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
3248,
13,
2412,
6991,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
301,
5618,
8015,
21680,
2478,
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,
-... |
Whom is the home team when the away team score is 9.11 (65)? | CREATE TABLE table_77925 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_77925 WHERE "Away team score" = '9.11 (65)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
28456,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19040,
372,
121,
21680,
953,
834,
4013,
28456,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
8797,
2596,
11372,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For how many days did patient with id 18112 stay in the hospital? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "18112" | [
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,
14798,
5,
1135,
7,
834,
21545,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2606,
2596,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I? | CREATE TABLE table_22656187_9 (
round VARCHAR,
w_l VARCHAR,
edition VARCHAR
) | SELECT round FROM table_22656187_9 WHERE w_l = "Loss" AND edition = "2012 Fed Cup Europe/Africa Group I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
4834,
25828,
834,
1298,
41,
1751,
584,
4280,
28027,
6,
3,
210,
834,
40,
584,
4280,
28027,
6,
4182,
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,
1751,
21680,
953,
834,
357,
2688,
4834,
25828,
834,
1298,
549,
17444,
427,
3,
210,
834,
40,
3274,
96,
434,
32,
7,
7,
121,
3430,
4182,
3274,
96,
12172,
10803,
3802,
1740,
87,
29596,
1531,
27,
121,
1,
-100,
-100,
-1... |
What are the famous title of the artists associated with volumes with more than 2 weeks on top? | CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
)
CREATE TABLE a... | SELECT T1.famous_title FROM artist AS T1 JOIN volume AS T2 ON T1.artist_id = T2.artist_id WHERE T2.weeks_on_top > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2908,
41,
2908,
834,
23,
26,
381,
6,
2908,
834,
13159,
1499,
6,
962,
834,
5522,
1499,
6,
1274,
834,
106,
834,
2916,
381,
6,
2324,
1499,
6,
2377,
834,
23,
26,
381,
3,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
89,
265,
1162,
834,
21869,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2908,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
23,
26,
3274,
332,
4416,
1408,
343,
834,
23,
26,
549,
17444,
427,
332,
4416,
... |
What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0? | CREATE TABLE table_52680 (
"Division" text,
"League Apps (Sub)" real,
"League Goals" real,
"FA Cup Apps (Sub)" text,
"FA Cup Goals" real,
"FL Cup Apps (Sub)" real,
"FL Cup Goals" real,
"Other Apps" real,
"Other Goals" real,
"Total Apps (Sub)" text,
"Total Goals" real
) | SELECT AVG("FL Cup Apps (Sub)") FROM table_52680 WHERE "FL Cup Goals" > '0' AND "Other Apps" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2688,
2079,
41,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
41,
25252,
61,
121,
490,
6,
96,
2796,
9,
5398,
17916,
7,
121,
490,
6,
96,
4795,
3802,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10765,
3802,
2276,
7,
41,
25252,
61,
8512,
21680,
953,
834,
755,
2688,
2079,
549,
17444,
427,
96,
10765,
3802,
17916,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
667,
189,
49,
2276,
7,
121,
3,
2... |
What was the home teams score while playing the away team of south melbourne? | CREATE TABLE table_77601 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_77601 WHERE "Away team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3328,
536,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
4013,
3328,
536,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1? | CREATE TABLE table_name_33 (tournament_venue VARCHAR, tournament_champion VARCHAR, record VARCHAR) | SELECT tournament_venue FROM table_name_33 WHERE tournament_champion = "duke" AND record = "15–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
17,
1211,
20205,
17,
834,
15098,
584,
4280,
28027,
6,
5892,
834,
17788,
12364,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
5892,
834,
15098,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
5892,
834,
17788,
12364,
3274,
96,
1259,
1050,
121,
3430,
1368,
3274,
96,
1808,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the domestic freight with change being +8.0% | CREATE TABLE table_141541_5 (
domestic_freight VARCHAR,
change VARCHAR
) | SELECT domestic_freight FROM table_141541_5 WHERE change = "+8.0%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1808,
4853,
834,
755,
41,
4422,
834,
89,
60,
2632,
584,
4280,
28027,
6,
483,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
4422,
17746,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4422,
834,
89,
60,
2632,
21680,
953,
834,
2534,
1808,
4853,
834,
755,
549,
17444,
427,
483,
3274,
96,
1220,
27376,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu? | CREATE TABLE table_name_51 (
opponent VARCHAR,
tournament VARCHAR,
surface VARCHAR,
outcome VARCHAR
) | SELECT opponent FROM table_name_51 WHERE surface = "hardcourt" AND outcome = "runner-up" AND tournament = "honolulu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
15264,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1774,
3274,
96,
5651,
14492,
121,
3430,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
5892,
3274,
96,
107,
106,
32,
40,
83,
76,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the title of the album that has Popup has the original label? | CREATE TABLE table_name_25 (
album_title VARCHAR,
original_label VARCHAR
) | SELECT album_title FROM table_name_25 WHERE original_label = "popup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
2306,
834,
21869,
584,
4280,
28027,
6,
926,
834,
40,
10333,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
2306,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2306,
834,
21869,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
926,
834,
40,
10333,
3274,
96,
9791,
413,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. | CREATE TABLE web_client_accelerator (
id number,
name text,
operating_system text,
client text,
connection text
)
CREATE TABLE browser (
id number,
name text,
market_share number
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id number,
browser_id number,
compa... | SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
765,
834,
26693,
834,
6004,
15,
1171,
1016,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
2699,
834,
3734,
1499,
6,
1188,
1499,
6,
2135,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
2699,
834,
3734,
21680,
765,
834,
26693,
834,
6004,
15,
1171,
1016,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
18140,
1222,
834,
3734,
21680,
765,
834,
26693,
834,
6004,
15,
1171,
1016,
6... |
On what date was their record 46-39? | CREATE TABLE table_name_17 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_17 WHERE record = "46-39" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
70,
1368,
9668,
18,
3288,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1368,
3274,
96,
4448,
18,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which engine has the entrant scuderia ferrari and is driven by Raymond Sommer? | CREATE TABLE table_55327 (
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text
) | SELECT "Engine" FROM table_55327 WHERE "Entrant" = 'scuderia ferrari' AND "Driver" = 'raymond sommer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
519,
2555,
41,
96,
20982,
52,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
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,
31477,
121,
21680,
953,
834,
3769,
519,
2555,
549,
17444,
427,
96,
16924,
3569,
121,
3274,
3,
31,
7,
1071,
26,
4476,
25007,
1665,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
2866,
6764,
78,
635,
49,
31,
1,
-1... |
What is the percentage of total area in the ecozone that the percentage of land area is 2.2? | CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_of_land_area VARCHAR) | SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_of_land_area = "2.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3769,
4834,
4241,
834,
357,
41,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
498,
584,
4280,
28027,
6,
5294,
834,
858,
834,
40,
232,
834,
498,
584,
4280,
28027,
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,
5294,
834,
858,
834,
235,
1947,
834,
498,
21680,
953,
834,
1808,
3769,
4834,
4241,
834,
357,
549,
17444,
427,
5294,
834,
858,
834,
40,
232,
834,
498,
3274,
96,
15300,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show all headquarters with both a company in banking industry and a company in Oil and gas. | CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) | SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
3313,
19973,
7,
584,
4280,
28027,
6,
711,
834,
13580,
7,
8224,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
13767,
28,
321,
3,
9,
349,
16,
8175,
681,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13767,
21680,
349,
549,
17444,
427,
711,
834,
13580,
7,
8224,
3274,
3,
31,
21347,
53,
31,
3,
21342,
5249,
14196,
3,
23143,
14196,
13767,
21680,
349,
549,
17444,
427,
711,
834,
13580,
7,
8224,
3274,
3,
31,
667,
173,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.