NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the median age where the area is 1.7? | CREATE TABLE table_1174162_1 (
median_age__in_2006_ VARCHAR,
area__km²_ VARCHAR
) | SELECT median_age__in_2006_ FROM table_1174162_1 WHERE area__km²_ = "1.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
4853,
4056,
834,
536,
41,
15572,
834,
545,
834,
834,
77,
834,
21196,
834,
584,
4280,
28027,
6,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15572,
834,
545,
834,
834,
77,
834,
21196,
834,
21680,
953,
834,
20275,
4853,
4056,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
96,
18596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the value for model if processor is Kentsfield and brand name is Xeon? | CREATE TABLE table_2467150_2 (
model__list_ VARCHAR,
processor VARCHAR,
brand_name VARCHAR
) | SELECT model__list_ FROM table_2467150_2 WHERE processor = "Kentsfield" AND brand_name = "Xeon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3708,
12278,
834,
357,
41,
825,
834,
834,
3350,
834,
584,
4280,
28027,
6,
7502,
584,
4280,
28027,
6,
1056,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
825,
834,
834,
3350,
834,
21680,
953,
834,
2266,
3708,
12278,
834,
357,
549,
17444,
427,
7502,
3274,
96,
439,
295,
7,
1846,
121,
3430,
1056,
834,
4350,
3274,
96,
4,
15,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients with lab test item id 51213 have their lab test abnormal as delta? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51213" AND lab.flag = "delta" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What's the 102kg when the snatch was snatch and the olympic record was the world record? | CREATE TABLE table_name_56 (world_record VARCHAR) | SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
7276,
834,
60,
7621,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
14388,
8711,
116,
8,
3,
7,
29,
14547,
47,
3,
7,
29,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
14388,
6157,
9147,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
296,
834,
60,
7621,
3274,
96,
32,
120,
51,
6174,
1368,
121,
3430,
96,
7,
29,
14547,
121,
3274,
96,
7,
29,
14547,
121,
1,
-100,
-100,
-100,
... |
What is the score of player dick metz? | CREATE TABLE table_45929 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Score" FROM table_45929 WHERE "Player" = 'dick metz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3390,
3166,
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,
490,
6,
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,
134,
9022,
121,
21680,
953,
834,
591,
3390,
3166,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
3142,
1736,
172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many parties of the time they took office, binning the took office into WEEKDAY interval, I want to show by the Y-axis in descending. | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_offi... | SELECT Took_office, COUNT(Took_office) FROM party ORDER BY COUNT(Took_office) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
4309,
16,
17,
6,
6163,
834,
4350,
1499,
6,
7678,
1499,
6,
16229,
1499,
6,
12439,
1499,
6,
22424,
76,
15,
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,
304,
1825,
834,
19632,
6,
2847,
17161,
599,
3696,
1825,
834,
19632,
61,
21680,
1088,
4674,
11300,
272,
476,
2847,
17161,
599,
3696,
1825,
834,
19632,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose item id is 50804 and lab test abnormal status is abnormal? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50804" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What championships had a match where Natasha Zvereva played as partner? | CREATE TABLE table_24638867_4 (championship VARCHAR, partner VARCHAR) | SELECT championship FROM table_24638867_4 WHERE partner = "Natasha Zvereva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3891,
4060,
3708,
834,
591,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10183,
7,
141,
3,
9,
1588,
213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
2266,
3891,
4060,
3708,
834,
591,
549,
17444,
427,
2397,
3274,
96,
567,
144,
3198,
9,
1027,
624,
4721,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What 2nd run has a less than 6 rank, and 3 as the total? | CREATE TABLE table_64964 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
) | SELECT "2nd run" FROM table_64964 WHERE "Rank" < '6' AND "Total" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4314,
591,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
536,
7,
17,
661,
121,
1499,
6,
96,
357,
727,
661,
121,
1499,
6,
96,
519,
52,
26,
661,
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,
357,
727,
661,
121,
21680,
953,
834,
4389,
4314,
591,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won? | CREATE TABLE table_name_61 (
bronze INTEGER,
nation VARCHAR,
total VARCHAR
) | SELECT MIN(bronze) FROM table_name_61 WHERE nation = "united states" AND total > 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
13467,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
18279,
2315,
751,
3,
9,
792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
2982,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
792,
2490,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what country has a score of 69-70-72=211? | CREATE TABLE table_37715 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_37715 WHERE "Score" = '69-70-72=211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
1808,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
519,
4013,
1808,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3951,
18,
2518,
18,
5865,
2423,
27278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the first leg score when team 2 is Wagad Mogadishu? | CREATE TABLE table_name_61 (
team_2 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_61 WHERE team_2 = "wagad mogadishu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
4553,
2604,
116,
372,
204,
19,
549,
4711,
26,
283,
19914,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
372,
834,
357,
3274,
96,
15238,
9,
26,
3,
22706,
9,
26,
1273,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of bronze medals for nations with under 0 golds? | CREATE TABLE table_name_46 (
bronze INTEGER,
gold INTEGER
) | SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
13467,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
13467,
9365,
7,
21,
9352,
28,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the purchase time, age and address of each member, and show the results in the order of purchase time. | CREATE TABLE member (Time_of_purchase VARCHAR, age VARCHAR, address VARCHAR) | SELECT Time_of_purchase, age, address FROM member ORDER BY Time_of_purchase | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
13368,
834,
858,
834,
29446,
584,
4280,
28027,
6,
1246,
584,
4280,
28027,
6,
1115,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1242,
97,
6,
1246,
11,
1115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2900,
834,
858,
834,
29446,
6,
1246,
6,
1115,
21680,
1144,
4674,
11300,
272,
476,
2900,
834,
858,
834,
29446,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
display job title and average salary of employees. | CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
countr... | SELECT job_title, AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
613,
834,
23,
26,
1499,
6,
613,
834,
21869,
1499,
6,
3519,
834,
7,
138,
1208,
381,
6,
9858,
834,
7,
138,
1208,
381,
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,
613,
834,
21869,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
2476,
6157,
332,
357,
9191,
332,
5411,
16899,
834,
23,
26,
3274,
332,
4416,
16899,
834,
23,
26,
350,
4630,
6880,
2... |
what are the numbers of wines for different grapes?, and I want to rank in descending by the the total number . | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29083,
6,
2847,
17161,
599,
1935,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for the time of 1-26.21? | CREATE TABLE table_20626467_1 (result VARCHAR, time VARCHAR) | SELECT result FROM table_20626467_1 WHERE time = "1-26.21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
26755,
3708,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
97,
13,
3,
9596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
24643,
26755,
3708,
834,
536,
549,
17444,
427,
97,
3274,
96,
9596,
23913,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many widow patients had transplant from cadaver? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.short_title = "Transplant cadaver donor" | [
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,... |
List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2. | CREATE TABLE table_26706 (
"Major version" text,
"Minor version" text,
"WebKit version" text,
"Operating System" text,
"Release date" text,
"Features" text
) | SELECT "WebKit version" FROM table_26706 WHERE "Major version" = 'Safari 3' AND "Minor version" = '3.1.2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
5176,
41,
96,
329,
9,
12775,
988,
121,
1499,
6,
96,
12858,
127,
988,
121,
1499,
6,
96,
15805,
439,
155,
988,
121,
1499,
6,
96,
667,
883,
1014,
2149,
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,
15805,
439,
155,
988,
121,
21680,
953,
834,
357,
3708,
5176,
549,
17444,
427,
96,
329,
9,
12775,
988,
121,
3274,
3,
31,
134,
9,
5544,
23,
220,
31,
3430,
96,
12858,
127,
988,
121,
3274,
3,
31,
5787,
10917,
31... |
How many rounds had a position of kicker? | CREATE TABLE table_47331 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT SUM("Round") FROM table_47331 WHERE "Position" = 'kicker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3341,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
4177,
519,
3341,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
2168,
3383,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When did the Mixed double Women's singles of isabel rocha, from the year 1970, and a Women's doubles of isabel rocha ana margarida? | CREATE TABLE table_36582 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Mixed doubles" FROM table_36582 WHERE "Women's singles" = 'isabel rocha' AND "Year" > '1970' AND "Women's doubles" = 'isabel rocha ana margarida' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
4613,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
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,
329,
2407,
15,
26,
1486,
7,
121,
21680,
953,
834,
10402,
4613,
549,
17444,
427,
96,
518,
32,
904,
31,
7,
712,
7,
121,
3274,
3,
31,
159,
10333,
3,
11492,
9,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
... |
was the fluticasone-salmeterol 250-50 mcg/dose in aepb prescribed to patient 035-2205 on their current hospital encounter? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
c... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-2205' AND patient.hospitaldischargetime IS NULL)) AND medication.drugn... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
What is the record of the Hartford Whalers home team with the April 13 game date? | CREATE TABLE table_name_7 (record VARCHAR, home VARCHAR, date VARCHAR) | SELECT record FROM table_name_7 WHERE home = "hartford whalers" AND date = "april 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
60,
7621,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
26069,
30300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
234,
3274,
96,
13626,
2590,
18214,
52,
7,
121,
3430,
833,
3274,
96,
9,
2246,
40,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which characters had their first experience in the episode 'consequences'? | CREATE TABLE table_16564 (
"Character" text,
"Portrayed by" text,
"Relationship" text,
"First appearance" text,
"Last appearance" text
) | SELECT "Character" FROM table_16564 WHERE "First appearance" = 'Consequences' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4389,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
14714,
2866,
15,
26,
57,
121,
1499,
6,
96,
1649,
6105,
2009,
121,
1499,
6,
96,
25171,
3179,
121,
1499,
6,
96,
3612... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18947,
2708,
49,
121,
21680,
953,
834,
22823,
4389,
549,
17444,
427,
96,
25171,
3179,
121,
3274,
3,
31,
4302,
7,
15,
835,
3772,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the minimum voted no where percent no is 56.6 | CREATE TABLE table_412 (
"Jurisdiction" text,
"Voted Yes" real,
"Percent Yes" text,
"Voted No" real,
"Percent No" text
) | SELECT MIN("Voted No") FROM table_412 WHERE "Percent No" = '56.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
41,
96,
683,
459,
7,
12472,
121,
1499,
6,
96,
553,
32,
1054,
2163,
121,
490,
6,
96,
12988,
3728,
2163,
121,
1499,
6,
96,
553,
32,
1054,
465,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
553,
32,
1054,
465,
8512,
21680,
953,
834,
591,
2122,
549,
17444,
427,
96,
12988,
3728,
465,
121,
3274,
3,
31,
755,
28833,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942? | CREATE TABLE table_name_3 (
year_left INTEGER,
conference_joined VARCHAR,
year_joined VARCHAR
) | SELECT MAX(year_left) FROM table_name_3 WHERE conference_joined = "sagamore" AND year_joined > 1942 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
215,
834,
17068,
3,
21342,
17966,
6,
2542,
834,
1927,
630,
26,
584,
4280,
28027,
6,
215,
834,
1927,
630,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1201,
834,
17068,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2542,
834,
1927,
630,
26,
3274,
96,
7,
4711,
3706,
121,
3430,
215,
834,
1927,
630,
26,
2490,
24466,
1,
-100,
-100,
-100,
-100,
... |
What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012? | CREATE TABLE table_45279 (
"Series Number" real,
"Number of Episodes" real,
"Original Air Date" real,
"DVD Region 2 release date" text,
"DVD Region 1 release date" text
) | SELECT MAX("Original Air Date") FROM table_45279 WHERE "DVD Region 2 release date" = '23 april 2012' AND "Number of Episodes" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
357,
4440,
41,
96,
12106,
7,
7720,
121,
490,
6,
96,
567,
5937,
49,
13,
16112,
7,
121,
490,
6,
96,
667,
3380,
10270,
1761,
7678,
121,
490,
6,
96,
13529,
308,
6163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
3380,
10270,
1761,
7678,
8512,
21680,
953,
834,
2128,
357,
4440,
549,
17444,
427,
96,
13529,
308,
6163,
204,
1576,
833,
121,
3274,
3,
31,
2773,
3,
9,
2246,
40,
1673,
31,
3430,
96,
567,
5937... |
Show ids for the faculty members who don't advise any student. | CREATE TABLE Faculty (FacID VARCHAR, advisor VARCHAR); CREATE TABLE Student (FacID VARCHAR, advisor VARCHAR) | SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
371,
9,
75,
4309,
584,
4280,
28027,
6,
8815,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
371,
9,
75,
4309,
584,
4280,
28027,
6,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1699,
75,
4309,
21680,
16896,
262,
4,
30416,
3,
23143,
14196,
8815,
21680,
6341,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Points have a December smaller than 6, and a Score of 1 1 ot, and a Game smaller than 28? | CREATE TABLE table_name_1 (
points INTEGER,
game VARCHAR,
december VARCHAR,
score VARCHAR
) | SELECT MIN(points) FROM table_name_1 WHERE december < 6 AND score = "1–1 ot" AND game < 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
979,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
6,
20,
75,
18247,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
20,
75,
18247,
3,
2,
431,
3430,
2604,
3274,
96,
536,
104,
536,
3,
32,
17,
121,
3430,
467,
3,
2,
2059,
1,
-100,
-100,
-100,
-100,
-1... |
How many games had Montreal Canadiens as an opponent? | CREATE TABLE table_name_24 (
game INTEGER,
opponent VARCHAR
) | SELECT SUM(game) FROM table_name_24 WHERE opponent = "montreal canadiens" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
467,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
141,
17219,
1072,
9,
26,
8065,
38,
46,
15264,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
15264,
3274,
96,
4662,
6644,
27114,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent with a score of 141–102? | CREATE TABLE table_name_97 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_97 WHERE score = "141–102" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
3,
9,
2604,
13,
3,
26059,
104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2604,
3274,
96,
26059,
104,
14388,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the population for census ranking 782 of 5,008? | CREATE TABLE table_171236_1 (
population VARCHAR,
census_ranking VARCHAR
) | SELECT population FROM table_171236_1 WHERE census_ranking = "782 of 5,008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
3420,
834,
536,
41,
2074,
584,
4280,
28027,
6,
23087,
834,
6254,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2074,
21,
23087,
11592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
21680,
953,
834,
2517,
2122,
3420,
834,
536,
549,
17444,
427,
23087,
834,
6254,
53,
3274,
96,
3940,
357,
13,
7836,
1206,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What moving has fra as the country? | CREATE TABLE table_name_63 (
moving_from VARCHAR,
country VARCHAR
) | SELECT moving_from FROM table_name_63 WHERE country = "fra" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
1735,
834,
7152,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1735,
65,
8072,
38,
8,
684,
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,
1735,
834,
7152,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
684,
3274,
96,
89,
52,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On the date of 30/01/1991, when the away team was Liverpool, what was the score? | CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_76 WHERE date = "30/01/1991" AND away_team = "liverpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
8,
833,
13,
604,
295... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
833,
3274,
96,
1458,
29511,
2294,
4729,
121,
3430,
550,
834,
11650,
3274,
96,
7591,
52,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the tie against the away team, Leicester City? | CREATE TABLE table_name_21 (
tie_no VARCHAR,
away_team VARCHAR
) | SELECT tie_no FROM table_name_21 WHERE away_team = "leicester city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
6177,
834,
29,
32,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6177,
581,
8,
550,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
550,
834,
11650,
3274,
96,
109,
867,
1370,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the RCM that has a density of 9.7? | CREATE TABLE table_214920_1 (
regional_county_municipality__rcm_ VARCHAR,
density__pop_per_km2_ VARCHAR
) | SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
27749,
834,
536,
41,
3518,
834,
13362,
63,
834,
11760,
3389,
10355,
834,
834,
52,
75,
51,
834,
584,
4280,
28027,
6,
11048,
834,
834,
9791,
834,
883,
834,
5848,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3518,
834,
13362,
63,
834,
11760,
3389,
10355,
834,
834,
52,
75,
51,
834,
21680,
953,
834,
27357,
27749,
834,
536,
549,
17444,
427,
11048,
834,
834,
9791,
834,
883,
834,
5848,
357,
834,
3274,
96,
8797,
940,
121,
1,
... |
What is the highest game with a 24-23 record? | CREATE TABLE table_name_62 (
game INTEGER,
record VARCHAR
) | SELECT MAX(game) FROM table_name_62 WHERE record = "24-23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
467,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
467,
28,
3,
9,
12371,
2773,
1368,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1368,
3274,
96,
2266,
18,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did the Melbourne Tigers score when they were the away team? | CREATE TABLE table_8049 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
) | SELECT "Score" FROM table_8049 WHERE "Away team" = 'melbourne tigers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
3647,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
134,
9022,
121,
21680,
953,
834,
2079,
3647,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
2341,
26255,
3,
2880,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast? | CREATE TABLE table_24353141_1 (original_3rd_us_tour_cast VARCHAR, original_1st_us_tour_cast VARCHAR) | SELECT original_3rd_us_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Scott J. Campbell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4867,
26059,
834,
536,
41,
21878,
834,
519,
52,
26,
834,
302,
834,
17,
1211,
834,
5254,
584,
4280,
28027,
6,
926,
834,
536,
7,
17,
834,
302,
834,
17,
1211,
834,
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,
926,
834,
519,
52,
26,
834,
302,
834,
17,
1211,
834,
5254,
21680,
953,
834,
27730,
4867,
26059,
834,
536,
549,
17444,
427,
926,
834,
536,
7,
17,
834,
302,
834,
17,
1211,
834,
5254,
3274,
96,
134,
10405,
446,
5,
... |
Which Total population (2010 census) has an Area (km 2) smaller than 147,307.00? | CREATE TABLE table_name_11 (total_population__2010_census_ INTEGER, area__km_2__ INTEGER) | SELECT MAX(total_population__2010_census_) FROM table_name_11 WHERE area__km_2__ < 147 OFFSET 307.00 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
235,
1947,
834,
9791,
7830,
834,
834,
14926,
834,
75,
35,
7,
302,
834,
3,
21342,
17966,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
834,
9791,
7830,
834,
834,
14926,
834,
75,
35,
7,
302,
834,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
2,
3,
24719,
3,
15316,
2078... |
What was the result of the game in halifax? | CREATE TABLE table_name_34 (
result VARCHAR,
city VARCHAR
) | SELECT result FROM table_name_34 WHERE city = "halifax" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
741,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
16,
3,
3828,
23,
11517,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
690,
3274,
96,
3828,
23,
11517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the opponent with attendance greater than 73,984 with a result of w 28 14? | CREATE TABLE table_69020 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_69020 WHERE "Attendance" > '73,984' AND "Result" = 'w 28–14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2394,
1755,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
948,
2394,
1755,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
4552,
6,
3916,
591,
31,
3430,
96,
20119,
121,
3274,
3,
31,
210,
2059,
104,
2534,
31,
1,
... |
What place has the score of 67-74=141? | CREATE TABLE table_name_2 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
65,
8,
2604,
13,
3,
3708,
18,
4581,
2423,
26059,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2604,
3274,
3,
3708,
3,
18,
3,
4581,
3274,
3,
26059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is ion life network's PSIP Short Name? | CREATE TABLE table_51513 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Network" text
) | SELECT "PSIP Short Name" FROM table_51513 WHERE "Network" = 'ion life' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1808,
2368,
41,
96,
3541,
4515,
40,
121,
490,
6,
96,
25838,
121,
1499,
6,
96,
188,
5628,
121,
1499,
6,
96,
4176,
4629,
7110,
5570,
121,
1499,
6,
96,
9688,
1981,
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,
4176,
4629,
7110,
5570,
121,
21680,
953,
834,
755,
1808,
2368,
549,
17444,
427,
96,
9688,
1981,
121,
3274,
3,
31,
23,
106,
280,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the description of all aircrafts, and count them by a bar chart, and I want to display in descending by the names. | CREATE TABLE pilot (
Pilot_Id int(11),
Name varchar(50),
Age int(11)
)
CREATE TABLE airport_aircraft (
ID int,
Airport_ID int,
Aircraft_ID int
)
CREATE TABLE aircraft (
Aircraft_ID int(11),
Aircraft varchar(50),
Description varchar(50),
Max_Gross_Weight varchar(50),
Total_d... | SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY Description DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
17777,
834,
196,
26,
16,
17,
599,
2596,
201,
5570,
3,
4331,
4059,
599,
1752,
201,
7526,
16,
17,
599,
2596,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7726,
6,
2847,
17161,
599,
2962,
11830,
61,
21680,
6442,
350,
4630,
6880,
272,
476,
7726,
4674,
11300,
272,
476,
7726,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Time/Retired has Laps smaller than 100, and Points larger than 0? | CREATE TABLE table_64694 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT "Time/Retired" FROM table_64694 WHERE "Laps" < '100' AND "Points" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3951,
591,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
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,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
4389,
3951,
591,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
2915,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-... |
Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum? | CREATE TABLE table_name_78 (
mcintosh VARCHAR,
stuart VARCHAR,
linda_mccartney VARCHAR
) | SELECT mcintosh FROM table_name_78 WHERE stuart = "bass" AND linda_mccartney = "keyboards or drum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3,
51,
75,
77,
235,
7,
107,
584,
4280,
28027,
6,
21341,
1408,
584,
4280,
28027,
6,
3,
9230,
9,
834,
51,
75,
1720,
17,
3186,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
51,
75,
77,
235,
7,
107,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
21341,
1408,
3274,
96,
4883,
7,
121,
3430,
3,
9230,
9,
834,
51,
75,
1720,
17,
3186,
3274,
96,
4397,
1976,
7,
42,
5253,
121,
1,
-10... |
What film did ian mackinnon direct that was in the short film 2007 prix uip category? | CREATE TABLE table_79888 (
"Category" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Nominating Festival" text
) | SELECT "Film" FROM table_79888 WHERE "Category" = 'short film 2007 prix uip' AND "Director(s)" = 'ian mackinnon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
10927,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
4168,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
173,
51,
121,
21680,
953,
834,
4440,
10927,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
7,
14184,
814,
4101,
3407,
3,
76,
23,
102,
31,
3430,
96,
23620,
127,
599,
7,
61,
121,
3274,
3,
31,
... |
Which Record has a December smaller than 22 and a Score of 4 3? | CREATE TABLE table_name_58 (
record VARCHAR,
december VARCHAR,
score VARCHAR
) | SELECT record FROM table_name_58 WHERE december < 22 AND score = "4–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1368,
584,
4280,
28027,
6,
20,
75,
18247,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
9,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
20,
75,
18247,
3,
2,
1630,
3430,
2604,
3274,
96,
591,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 2011 population of the district of East Godavari? | CREATE TABLE table_1610301_1 (population__2011_ VARCHAR, district VARCHAR) | SELECT population__2011_ FROM table_1610301_1 WHERE district = "East Godavari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
1714,
25626,
834,
536,
41,
9791,
7830,
834,
834,
13907,
834,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2722,
2074,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
834,
834,
13907,
834,
21680,
953,
834,
2938,
1714,
25626,
834,
536,
549,
17444,
427,
3939,
3274,
96,
25235,
601,
9,
9504,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Odjidja-Ofoe's transfer fee? | CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
7031,
1010,
834,
89,
15,
15,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9899,
354,
23,
26,
1191,
18,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
564,
3274,
96,
32,
26,
354,
23,
26,
1191,
18,
858,
32,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which European has a Play-Off of relegated? | CREATE TABLE table_name_59 (
european VARCHAR,
play_off VARCHAR
) | SELECT european FROM table_name_59 WHERE play_off = "relegated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
14864,
584,
4280,
28027,
6,
577,
834,
1647,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1611,
65,
3,
9,
2911,
18,
21265,
13,
3,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14864,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
577,
834,
1647,
3274,
96,
60,
8791,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients admitted before year 2182 had the primary disease aortic insufficiency\re-do sternotomy; aortic valve replacement? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " AND demographic.admityear < "2182" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
2990,
18679,
3388,
4138,
9089,
18316,
5332,
17063,
2,
4386,
18,
9... |
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order in a bar chart. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE View_Unit_Status ... | SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6789,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
15970,
7,
350,
4630,
6880,
272,
476,
3,
6789,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
... |
What is the number of dances total number if the average is 22.3? | CREATE TABLE table_23662272_4 (number_of_dances VARCHAR, average VARCHAR) | SELECT COUNT(number_of_dances) FROM table_23662272_4 WHERE average = "22.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3539,
2884,
5865,
834,
591,
41,
5525,
1152,
834,
858,
834,
26,
663,
7,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5525,
1152,
834,
858,
834,
26,
663,
7,
61,
21680,
953,
834,
2773,
3539,
2884,
5865,
834,
591,
549,
17444,
427,
1348,
3274,
96,
357,
18561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Spanish voice actor does the same character as French voice actor Dennis Boileau? | CREATE TABLE table_name_61 (
spanish_voice_actor VARCHAR,
french_voice_actor VARCHAR
) | SELECT spanish_voice_actor FROM table_name_61 WHERE french_voice_actor = "dennis boileau" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
8438,
1273,
834,
23235,
834,
9,
5317,
584,
4280,
28027,
6,
20609,
834,
23235,
834,
9,
5317,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8438,
1273,
834,
23235,
834,
9,
5317,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
20609,
834,
23235,
834,
9,
5317,
3274,
96,
537,
29,
159,
13374,
1607,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the release date of I Wanna Play House? | CREATE TABLE table_63757 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) | SELECT "Release date" FROM table_63757 WHERE "Title" = 'i wanna play house' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3072,
940,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
1174,
51,
535,
1499,
6,
96,
1649,
40,
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,
1649,
40,
14608,
833,
121,
21680,
953,
834,
3891,
3072,
940,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
23,
14371,
9,
577,
629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, find name and price , and group by attribute founder, and visualize them by a bar chart, I want to rank by the Price from high to low. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Price DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145... |
Name the date for sacramento | CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR) | SELECT date FROM table_15780049_8 WHERE team = "Sacramento" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
6192,
3647,
834,
927,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3,
7,
9,
2935,
297,
32,
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,
833,
21680,
953,
834,
27452,
6192,
3647,
834,
927,
549,
17444,
427,
372,
3274,
96,
134,
9,
2935,
297,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score when parkgate is at home? | CREATE TABLE table_10769 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Score" FROM table_10769 WHERE "Home team" = 'parkgate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
3951,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
18057,
3951,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
6334,
5339,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What place did the golfer take whose country is South Africa? | CREATE TABLE table_name_72 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_72 WHERE country = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
4687,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
410,
8,
4319,
49,
240,
3,
2544,
684,
19,
1013,
2648,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which song choice was originally performed by Bonnie Tyler? | CREATE TABLE table_name_23 (
song_choice VARCHAR,
original_artist VARCHAR
) | SELECT song_choice FROM table_name_23 WHERE original_artist = "bonnie tyler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2324,
834,
3995,
867,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2324,
1160,
47,
5330,
3032,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
834,
3995,
867,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
115,
32,
11113,
3,
17,
63,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the game was played at the EMCG venue, who was the away team? | CREATE TABLE table_55671 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Away team" FROM table_55671 WHERE "Venue" = 'emcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3708,
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,
188,
1343,
372,
121,
21680,
953,
834,
3769,
3708,
536,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
15,
51,
75,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a pie to show how many home team from different home team. | CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
... | SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Home_team | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
1210,
834,
23055,
7,
16,
17,
6,
23836,
834,
188,
17,
324,
26,
663,
490,
6,
9273,
834,
188,
17,
324,
26,
663,
490,
6,
4000,
9,
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,
1210,
834,
11650,
6,
2847,
17161,
599,
19040,
834,
11650,
61,
21680,
467,
350,
4630,
6880,
272,
476,
1210,
834,
11650,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number? | CREATE TABLE table_name_52 (
frequency__mhz_ VARCHAR,
type VARCHAR,
call_letters VARCHAR
) | SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7321,
834,
834,
51,
107,
172,
834,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
580,
834,
16024,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
30989,
834,
834,
51,
107,
172,
834,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
686,
3274,
96,
8234,
1208,
121,
3430,
580,
834,
16024,
7,
3274,
96,
157,
17,
115,
115,
18,
89,
51,
121,
... |
Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner? | CREATE TABLE table_name_75 (
team VARCHAR,
driver VARCHAR,
car__number VARCHAR,
pos VARCHAR,
make VARCHAR
) | SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
143,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3,
2748,
2490,
220,
3430,
143,
3274,
96,
235,
63,
32,
17,
9,
121,
3430,
443,
834,
834,
5525,
1152,
3,
2,
3,
3390,
3430,
2535,
3274,
96,
20068,
15,
1133,
68... |
Find id of the candidate whose email is stanley.monahan@example.org? | CREATE TABLE people (
person_id VARCHAR,
email_address VARCHAR
)
CREATE TABLE candidates (
candidate_id VARCHAR
) | SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
568,
834,
23,
26,
584,
4280,
28027,
6,
791,
834,
9,
26,
12039,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4341,
41,
4775,
834,
23,
26,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
1608,
12416,
342,
834,
23,
26,
21680,
151,
6157,
332,
536,
3,
15355,
3162,
4341,
6157,
332,
357,
9191,
332,
5411,
6075,
834,
23,
26,
3274,
332,
4416,
1608,
12416,
342,
834,
23,
26,
549,
17444,
427,
332,
... |
Show the number of fate from each fate, and could you order Y-axis from low to high order? | CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) | SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY COUNT(Fate) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
8960,
834,
4309,
16,
17,
6,
15508,
834,
4309,
16,
17,
6,
3636,
1499,
6,
17113,
15,
26,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
9913,
834,
157,
2264,
7,
16,
17,
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,
11762,
15,
6,
2847,
17161,
599,
371,
342,
61,
21680,
2253,
350,
4630,
6880,
272,
476,
11762,
15,
4674,
11300,
272,
476,
2847,
17161,
599,
371,
342,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the film that Avie Luthra received an award for? | CREATE TABLE table_67766 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
) | SELECT "Director(s)" FROM table_67766 WHERE "Recipient" = 'avie luthra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
940,
3539,
41,
96,
371,
173,
51,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
3174,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
1649,
3389,
4741,
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,
23620,
127,
599,
7,
61,
121,
21680,
953,
834,
3708,
940,
3539,
549,
17444,
427,
96,
1649,
3389,
4741,
121,
3274,
3,
31,
2960,
15,
3,
40,
76,
189,
52,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What host has an original air date of june 11, 2007? | CREATE TABLE table_51762 (
"Production no." text,
"Episode no." real,
"Original Airdate" text,
"Episode Title" text,
"Host" text
) | SELECT "Host" FROM table_51762 WHERE "Original Airdate" = 'june 11, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3959,
357,
41,
96,
3174,
8291,
150,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
150,
535,
490,
6,
96,
667,
3380,
10270,
1761,
5522,
121,
1499,
6,
96,
427,
102,
159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
3481,
121,
21680,
953,
834,
5553,
3959,
357,
549,
17444,
427,
96,
667,
3380,
10270,
1761,
5522,
121,
3274,
3,
31,
6959,
15,
9694,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the original airdate of episode #733? | CREATE TABLE table_25691838_6 (
original_airdate VARCHAR,
episode__number VARCHAR
) | SELECT original_airdate FROM table_25691838_6 WHERE episode__number = 733 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
2606,
3747,
834,
948,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
5522,
21680,
953,
834,
1828,
3951,
2606,
3747,
834,
948,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
489,
4201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the 2008 result associated with a 2009 of A and a 2011 of 2R? | CREATE TABLE table_67937 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2008" FROM table_67937 WHERE "2009" = 'a' AND "2011" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4271,
940,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
121,
21680,
953,
834,
3708,
4271,
940,
549,
17444,
427,
96,
16660,
121,
3274,
3,
31,
9,
31,
3430,
96,
13907,
121,
3274,
3,
31,
357,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team? | CREATE TABLE table_19540 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "NHL team" FROM table_19540 WHERE "College/junior/club team" = 'Oshawa Generals (OMJHL)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
2445,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15743,
434,
372,
121,
21680,
953,
834,
22464,
2445,
549,
17444,
427,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
3274,
3,
31,
667,
15622,
9,
2146,
7,
41,
8638,
683,
13641,
61,
31,
1,
-100,
-100,
... |
What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers? | CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR) | SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3891,
4448,
834,
536,
41,
9791,
7830,
834,
834,
2047,
120,
834,
12172,
834,
3,
21342,
17966,
6,
616,
834,
834,
5848,
357,
834,
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,
4800,
4,
599,
9791,
7830,
834,
834,
2047,
120,
834,
12172,
834,
61,
21680,
953,
834,
2938,
3891,
4448,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
3,
27357,
4314,
2394,
1,
-100,
-100,
-100,
-100,... |
What is Method, when Time is '3:20'? | CREATE TABLE table_name_40 (
method VARCHAR,
time VARCHAR
) | SELECT method FROM table_name_40 WHERE time = "3:20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1573,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7717,
6,
116,
2900,
19,
3,
31,
519,
10,
1755,
31,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
97,
3274,
96,
519,
10,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of Games for Allofs, Klaus, with Goals less than 177? | CREATE TABLE table_name_53 (games INTEGER, name VARCHAR, goals VARCHAR) | SELECT SUM(games) FROM table_name_53 WHERE name = "allofs, klaus" AND goals < 177 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
7261,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
5880,
21,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
564,
3274,
96,
1748,
858,
7,
6,
3,
8142,
302,
121,
3430,
1766,
3,
2,
3,
26793,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was Kilgore's (R) percentage when Potts (I) polled at 1%? | CREATE TABLE table_61996 (
"Source" text,
"Date" text,
"Kaine (D)" text,
"Kilgore (R)" text,
"Potts (I)" text
) | SELECT "Kilgore (R)" FROM table_61996 WHERE "Potts (I)" = '1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
4314,
41,
96,
23799,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
7043,
41,
308,
61,
121,
1499,
6,
96,
439,
173,
839,
60,
41,
448,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
173,
839,
60,
41,
448,
61,
121,
21680,
953,
834,
948,
2294,
4314,
549,
17444,
427,
96,
345,
32,
17,
17,
7,
41,
196,
61,
121,
3274,
3,
31,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the lock with 10 caps born? | CREATE TABLE table_56517 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Date of Birth (Age)" FROM table_56517 WHERE "Position" = 'lock' AND "Caps" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4122,
2517,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
1499,
6,
96,
19566,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
21680,
953,
834,
755,
4122,
2517,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
4029,
31,
3430,
96,
19566,
7,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-10... |
How many electorates are there with Hedmark as a constituency? | CREATE TABLE table_1289762_1 (
electorate VARCHAR,
constituency VARCHAR
) | SELECT COUNT(electorate) FROM table_1289762_1 WHERE constituency = "Hedmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3914,
3959,
357,
834,
536,
41,
11924,
127,
342,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11924,
127,
6203,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
400,
5317,
342,
61,
21680,
953,
834,
2122,
3914,
3959,
357,
834,
536,
549,
17444,
427,
6439,
4392,
3274,
96,
3845,
26,
3920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In 2010 what journal published an article about Trophic Cascade ? | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE author (
authorid int,
autho... | SELECT DISTINCT paper.journalid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Trophic Cascade' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2010 GROUP BY paper.journalid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
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... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
25340,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
382,
52,
10775,
447,
1336,
7,
6615,
31,
3430,
1040,
... |
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday, and I want to sort by the Y-axis in asc. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
For all the claims whose claimed amount is larger than the average, bin the claim date into day of week interval and count them for visualizing a bar chart, I want to list total number in asc order. | CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Clai... | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims) ORDER BY COUNT(Date_Claim_Made) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
7327,
834,
4309,
3,
21342,
17966,
6,
7327,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
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,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
6,
2847,
17161,
599,
308,
342,
834,
254,
521,
603,
834,
329,
9,
221,
61,
21680,
4779,
8345,
549,
17444,
427,
71,
11231,
834,
254,
40,
8287,
2490,
41,
23143,
14196,
71,
... |
How many games played have 4.7 as points per game? | CREATE TABLE table_2387461_1 (
games_played VARCHAR,
points_per_game VARCHAR
) | SELECT games_played FROM table_2387461_1 WHERE points_per_game = "4.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
4581,
4241,
834,
536,
41,
1031,
834,
4895,
15,
26,
584,
4280,
28027,
6,
979,
834,
883,
834,
7261,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1031,
834,
4895,
15,
26,
21680,
953,
834,
357,
3747,
4581,
4241,
834,
536,
549,
17444,
427,
979,
834,
883,
834,
7261,
3274,
96,
25211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team for the match that had a time of 18:30? | CREATE TABLE table_name_45 (
away_team VARCHAR,
time VARCHAR
) | SELECT away_team FROM table_name_45 WHERE time = "18:30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
550,
834,
11650,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
21,
8,
1588,
24,
141,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
97,
3274,
96,
2606,
10,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the total for silver more than 0 for italy with gold less than 29 | CREATE TABLE table_name_26 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT MIN(total) FROM table_name_26 WHERE silver > 0 AND nation = "italy" AND gold < 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
235,
1947,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
4294,
2490,
3,
632,
3430,
2982,
3274,
96,
9538,
63,
121,
3430,
2045,
3,
2,
2838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent with the record of 4-0-0? | CREATE TABLE table_name_46 (
opponent VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_46 WHERE record = "4-0-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
8,
1368,
13,
7769,
18629,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1368,
3274,
96,
591,
18,
18629,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
David James Elliott directed which episode number within the series? | CREATE TABLE table_25519 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "No. in series" FROM table_25519 WHERE "Directed by" = 'David James Elliott' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
2294,
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,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
16,
939,
121,
21680,
953,
834,
25502,
2294,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
308,
9,
6961,
2549,
28597,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What place did Jerry Barber of the United States come in at? | CREATE TABLE table_name_92 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_92 WHERE country = "united states" AND player = "jerry barber" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
4687,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
410,
16637,
11038,
49,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
12488,
651,
9935,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the candidate first elected in 1942 | CREATE TABLE table_1341897_23 (candidates VARCHAR, first_elected VARCHAR) | SELECT candidates FROM table_1341897_23 WHERE first_elected = 1942 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4327,
834,
2773,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4775,
166,
8160,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2606,
4327,
834,
2773,
549,
17444,
427,
166,
834,
19971,
3274,
24466,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many patients underwent annuloplasty procedure and died in or before the year 2183? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2183.0" AND procedures.long_title = "Annuloplasty" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What chassis was paired with climax straight-4? | CREATE TABLE table_name_32 (
chassis VARCHAR,
engine VARCHAR
) | SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
22836,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22836,
47,
3,
13804,
28,
3,
14758,
9128,
2541,
4278,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1948,
3274,
96,
14758,
9128,
2541,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the highest attendance on week 13? | CREATE TABLE table_name_37 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_37 WHERE week = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
15116,
663,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
11364,
30,
471,
1179,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
471,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest round number of a Pick after 209. | CREATE TABLE table_80155 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT MAX("Round") FROM table_80155 WHERE "Pick" > '209' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
20896,
41,
96,
15800,
49,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12619,
434,
1949,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
2079,
20896,
549,
17444,
427,
96,
345,
3142,
121,
2490,
3,
31,
357,
4198,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the rider who has a rank lower than 10, and a time of 1:26.31.20? | CREATE TABLE table_name_57 (
rider VARCHAR,
rank VARCHAR,
time VARCHAR
) | SELECT rider FROM table_name_57 WHERE rank < 10 AND time = "1:26.31.20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2564,
52,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2564,
52,
113,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2564,
52,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
11003,
3,
2,
335,
3430,
97,
3274,
96,
536,
10,
2688,
5,
3341,
5,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the home team score that played the away team of north melbourne? | CREATE TABLE table_name_73 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_73 WHERE away_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
24,
1944,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
550,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Drawn has a Lost of 2, and Played smaller than 14? | CREATE TABLE table_name_46 (
drawn INTEGER,
lost VARCHAR,
played VARCHAR
) | SELECT SUM(drawn) FROM table_name_46 WHERE lost = 2 AND played < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
6796,
3,
21342,
17966,
6,
1513,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
19183,
29,
65,
3,
9,
19576... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1513,
3274,
204,
3430,
1944,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many picks have a Player of pong escobal? | CREATE TABLE table_name_80 (
pick INTEGER,
player VARCHAR
) | SELECT SUM(pick) FROM table_name_80 WHERE player = "pong escobal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1432,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1432,
7,
43,
3,
9,
12387,
13,
3,
26142,
3,
15,
3523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1959,
3274,
96,
26142,
3,
15,
3523,
3849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the year that Dewi Claire Schreefel is the champion? | CREATE TABLE table_12243817_1 (year VARCHAR, champion VARCHAR) | SELECT year FROM table_12243817_1 WHERE champion = "Dewi Claire Schreefel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2266,
3747,
2517,
834,
536,
41,
1201,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
24,
374,
210,
23,
19542,
1880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
2122,
2266,
3747,
2517,
834,
536,
549,
17444,
427,
6336,
3274,
96,
2962,
210,
23,
19542,
1880,
60,
15,
4025,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year was the first union match between new zealand and wales played ? | CREATE TABLE table_203_634 (
id number,
"date" text,
"venue" text,
"score" text,
"victor" text,
"comments" text,
"match reports" text
) | SELECT MIN("date") FROM table_203_634 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3891,
591,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
2099,
5317,
121,
1499,
6,
96,
287,
4128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
5522,
8512,
21680,
953,
834,
23330,
834,
3891,
591,
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,
... |
how long was the strike in 1971 | CREATE TABLE table_203_759 (
id number,
"year" number,
"company" text,
"number of members affected" number,
"duration of strike" text,
"notes" text
) | SELECT "duration of strike" FROM table_203_759 WHERE "year" = 1971 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
3390,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
29179,
121,
1499,
6,
96,
5525,
1152,
13,
724,
4161,
121,
381,
6,
96,
1259,
2661,
13,
6585,
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,
1259,
2661,
13,
6585,
121,
21680,
953,
834,
23330,
834,
940,
3390,
549,
17444,
427,
96,
1201,
121,
3274,
17961,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.