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 Birthdate for the person with a height less than 191, and weight of 84 kg? | CREATE TABLE table_6845 (
"Position" text,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1997\u20131998 Team" text
) | SELECT "Birthdate" FROM table_6845 WHERE "Height (cm)" < '191' AND "Weight (kg)" = '84' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2128,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6,
96,
1326,
2632,
41,
8711,
61,
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,
279,
23,
52,
189,
5522,
121,
21680,
953,
834,
3651,
2128,
549,
17444,
427,
96,
3845,
2632,
41,
75,
51,
61,
121,
3,
2,
3,
31,
2294,
536,
31,
3430,
96,
1326,
2632,
41,
8711,
61,
121,
3274,
3,
31,
4608,
31,
... |
How many results were there on 19/06/2009? | CREATE TABLE table_21311525_1 (
result VARCHAR,
date VARCHAR
) | SELECT COUNT(result) FROM table_21311525_1 WHERE date = "19/06/2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
15660,
1828,
834,
536,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
772,
130,
132,
30,
957,
87,
5176,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
357,
2368,
15660,
1828,
834,
536,
549,
17444,
427,
833,
3274,
96,
2294,
87,
5176,
87,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and manager_id , and sort by the x-axis in desc. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varch... | SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
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,
3,
8023,
7894,
834,
567,
6122,
12920,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
Which Tournament has a Date of jul 14, 2013? | CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_6 WHERE date = "jul 14, 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
3,
9,
7678,
13,
3,
354,
83,
11363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
833,
3274,
96,
354,
83,
11363,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the record after the game against the Sharks at Arrowhead Pond of Anaheim? | CREATE TABLE table_name_72 (
record VARCHAR,
arena VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_name_72 WHERE arena = "arrowhead pond of anaheim" AND opponent = "sharks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1368,
584,
4280,
28027,
6,
15134,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
227,
8,
467,
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,
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,
5865,
549,
17444,
427,
15134,
3274,
96,
6770,
3313,
3,
7290,
13,
46,
9,
3254,
121,
3430,
15264,
3274,
96,
7,
3272,
157,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the episode that originally aired on March 1, 1998? | CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR) | SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
14973,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
24,
5330,
3,
2378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
926,
834,
2256,
5522,
3274,
96,
51,
7064,
1914,
6260,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the IHSA cheerleading class for the enrollment of 2600? | CREATE TABLE table_29706 (
"School" text,
"Location" text,
"Mascot" text,
"Colors" text,
"Enrollment" real,
"IHSA Classes 2/3/4" text,
"IHSA Music Class" text,
"IHSA Football Class" text,
"IHSA Cheerleading Class" text
) | SELECT "IHSA Cheerleading Class" FROM table_29706 WHERE "Enrollment" = '2600' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4327,
5176,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
3881,
322,
7,
121,
1499,
6,
96,
8532,
4046,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
196,
4950,
188,
2556,
49,
17103,
4501,
121,
21680,
953,
834,
357,
4327,
5176,
549,
17444,
427,
96,
8532,
4046,
297,
121,
3274,
3,
31,
357,
6007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the maximum and mininum number of stars a rating can receive? | CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
) | SELECT MAX(stars), MIN(stars) FROM rating | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
49,
41,
5413,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3624,
7,
201,
3,
17684,
599,
3624,
7,
61,
21680,
5773,
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,
... |
What is the 2008 value that was 2nd in 2006? | CREATE TABLE table_35738 (
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2013" text,
"Total" real
) | SELECT "2008" FROM table_35738 WHERE "2006" = '2nd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3436,
3747,
41,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
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,
16128,
121,
21680,
953,
834,
519,
3436,
3747,
549,
17444,
427,
96,
21196,
121,
3274,
3,
31,
357,
727,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When rank is 7 and silver is less than 0, what is the total gold? | CREATE TABLE table_60393 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_60393 WHERE "Rank" = '7' AND "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3288,
519,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
3328,
3288,
519,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
940,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose admission type is elective and ethnicity is hispanic/latino - puerto rican | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
15,
189,
2532,
485,
32... |
what is the name of the first competition on this chart ? | CREATE TABLE table_204_4 (
id number,
"date" text,
"race" text,
"competition" text,
"rider" text,
"country" text,
"location" text
) | SELECT "competition" FROM table_204_4 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
121,
1499,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
4055,
49,
121,
1499,
6,
96,
17529,
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,
287,
4995,
4749,
121,
21680,
953,
834,
26363,
834,
591,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the manner of departure of Nicolae Manea? | CREATE TABLE table_1609 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Manner of departure" FROM table_1609 WHERE "Outgoing manager" = 'Nicolae Manea' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4198,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7296,
687,
13,
12028,
121,
21680,
953,
834,
2938,
4198,
549,
17444,
427,
96,
15767,
9545,
2743,
121,
3274,
3,
31,
21926,
9,
15,
1140,
15,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Alireza Rouzbahani did not advance to the quarterfinal in what event? | CREATE TABLE table_56719 (
"Athlete" text,
"Event" text,
"Round of 16" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
) | SELECT "Event" FROM table_56719 WHERE "Quarterfinal" = 'did not advance' AND "Athlete" = 'alireza rouzbahani' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3708,
2294,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
898,
121,
1499,
6,
96,
5991,
1408,
49,
12406,
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,
427,
2169,
121,
21680,
953,
834,
755,
3708,
2294,
549,
17444,
427,
96,
5991,
1408,
49,
12406,
121,
3274,
3,
31,
12416,
59,
3245,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
4288,
2638,
9,
3,
3964,
17... |
What Player had a Score of 70-69-75=214? | CREATE TABLE table_name_11 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_11 WHERE score = 70 - 69 - 75 = 214 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1959,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
12387,
141,
3,
9,
17763,
13,
2861,
18,
3951,
18,
3072,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
3,
3951,
3,
18,
6374,
3274,
3,
27357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest rank of the building with 12 floors? | CREATE TABLE table_9308 (
"Rank" real,
"Name" text,
"Floors*" real,
"Year* (est.)" text,
"Status" text
) | SELECT MIN("Rank") FROM table_9308 WHERE "Floors*" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
4018,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
11251,
127,
7,
1935,
121,
490,
6,
96,
476,
2741,
1935,
41,
222,
5,
61,
121,
1499,
6,
96,
134,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
4271,
4018,
549,
17444,
427,
96,
11251,
127,
7,
1935,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many surfaces are grass ? | CREATE TABLE table_204_94 (
id number,
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent in the final" text,
"score in the final" text
) | SELECT COUNT("surface") FROM table_204_94 WHERE "surface" = 'grass' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4240,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
26899,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
26899,
8512,
21680,
953,
834,
26363,
834,
4240,
549,
17444,
427,
96,
26899,
121,
3274,
3,
31,
16446,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the event name for michael mcdowell and billy leslie | CREATE TABLE table_74483 (
"Date" text,
"Track" text,
"Event Name" text,
"Pole Winner" text,
"Race Winner" text
) | SELECT "Event Name" FROM table_74483 WHERE "Pole Winner" = 'michael mcdowell' AND "Race Winner" = 'billy leslie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3707,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
427,
2169,
5570,
121,
1499,
6,
96,
8931,
15,
18125,
121,
1499,
6,
96,
448,
3302,
18125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
2169,
5570,
121,
21680,
953,
834,
4581,
3707,
519,
549,
17444,
427,
96,
8931,
15,
18125,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
51,
75,
26,
32,
2091,
31,
3430,
96,
448,
3302,
18125,
121,
3274,
3,
31... |
What is the venue of teh carfax 250 race? | CREATE TABLE table_name_62 (
venue VARCHAR,
race VARCHAR
) | SELECT venue FROM table_name_62 WHERE race = "carfax 250" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
5669,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
13,
3,
17,
15,
107,
443,
11517,
5986,
1964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1964,
3274,
96,
1720,
11517,
5986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of silver medals when there are 0 Bronze medals, and the nation is the United Kingdom? | CREATE TABLE table_name_71 (silver VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(silver) FROM table_name_71 WHERE bronze = 0 AND nation = "united kingdom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
7,
173,
624,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
13467,
3274,
3,
632,
3430,
2982,
3274,
96,
15129,
15,
26,
14740,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the maximum enrollment for niagara university | CREATE TABLE table_16383772_1 (enrollment INTEGER, school VARCHAR) | SELECT MAX(enrollment) FROM table_16383772_1 WHERE school = "Niagara University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4118,
5865,
834,
536,
41,
35,
4046,
297,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2411,
17938,
21,
3,
29,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
35,
4046,
297,
61,
21680,
953,
834,
2938,
3747,
4118,
5865,
834,
536,
549,
17444,
427,
496,
3274,
96,
567,
23,
9,
1478,
9,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When Rocco Mediate has a To par of +2 and a 69-73=142 score, what is the country listed? | CREATE TABLE table_name_36 (
country VARCHAR,
player VARCHAR,
to_par VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_36 WHERE to_par = "+2" AND score = 69 - 73 = 142 AND player = "rocco mediate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
357,
121,
3430,
2604,
3274,
3,
3951,
3,
18,
3,
4552,
3274,
3,
24978,
3430,
1959,
3274,
96,
7818,
509,
783,
17,
15,
121,
1,
-... |
What is the biggest week with an opponent of washington redskins? | CREATE TABLE table_45259 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MAX("Week") FROM table_45259 WHERE "Opponent" = 'washington redskins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
357,
3390,
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,
4800,
4,
599,
121,
518,
10266,
8512,
21680,
953,
834,
2128,
357,
3390,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
14710,
6029,
1131,
7,
7815,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, draw a scatter chart about the correlation between employee_id and department_id . | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(... | SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
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,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
... |
What is the prothrombin time in Von willebrand disease? | CREATE TABLE table_1557752_1 (
prothrombin_time VARCHAR,
condition VARCHAR
) | SELECT prothrombin_time FROM table_1557752_1 WHERE condition = "Von Willebrand disease" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4013,
5373,
834,
536,
41,
813,
8514,
51,
4517,
834,
715,
584,
4280,
28027,
6,
1706,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
813,
8514,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
813,
8514,
51,
4517,
834,
715,
21680,
953,
834,
20896,
4013,
5373,
834,
536,
549,
17444,
427,
1706,
3274,
96,
553,
106,
2003,
15,
12164,
1994,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose discharge location is snf and admission year is less than 2154? | 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 WHERE demographic.discharge_location = "SNF" AND demographic.admityear < "2154" | [
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,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,... |
In which year were the authors or editors Delia Sherman? | CREATE TABLE table_23611 (
"Year" real,
"Author(s) or Editor(s)" text,
"Book Title" text,
"Publisher" text,
"Category" text,
"Result" text
) | SELECT MAX("Year") FROM table_23611 WHERE "Author(s) or Editor(s)" = 'Delia Sherman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
2596,
41,
96,
476,
2741,
121,
490,
6,
96,
23602,
127,
599,
7,
61,
42,
11953,
599,
7,
61,
121,
1499,
6,
96,
13355,
11029,
121,
1499,
6,
96,
31009,
49,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
357,
3420,
2596,
549,
17444,
427,
96,
23602,
127,
599,
7,
61,
42,
11953,
599,
7,
61,
121,
3274,
3,
31,
308,
13240,
29485,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score1 of Match 42? | CREATE TABLE table_name_9 (score1 VARCHAR, match VARCHAR) | SELECT score1 FROM table_name_9 WHERE match = 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
7,
9022,
536,
584,
4280,
28027,
6,
1588,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
536,
13,
12296,
6426,
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,
2604,
536,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1588,
3274,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many time was points 6675? | CREATE TABLE table_28437 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
) | SELECT COUNT("Points won") FROM table_28437 WHERE "Points" = '6675' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
4118,
41,
96,
134,
26,
121,
490,
6,
96,
448,
157,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
751,
8512,
21680,
953,
834,
357,
4608,
4118,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
3539,
3072,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many dates have a Match number of 5? | CREATE TABLE table_17103566_1 (date VARCHAR, match_number VARCHAR) | SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
2469,
3539,
834,
536,
41,
5522,
584,
4280,
28027,
6,
1588,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5128,
43,
3,
9,
12296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
2517,
1714,
2469,
3539,
834,
536,
549,
17444,
427,
1588,
834,
5525,
1152,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was the Gila Bend Overpass built? | CREATE TABLE table_name_79 (built VARCHAR, name VARCHAR) | SELECT built FROM table_name_79 WHERE name = "gila bend overpass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
16152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
8,
12798,
9,
22435,
2035,
3968,
1192,
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,
1192,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
564,
3274,
96,
122,
173,
9,
17995,
147,
3968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was blue mink 's earliest charting single ? | CREATE TABLE table_204_672 (
id number,
"year" number,
"title" text,
"label" text,
"uk singles chart" number,
"u.s. billboard hot 100 chart" number
) | SELECT "title" FROM table_204_672 ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
357,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
1598,
712,
7,
5059,
121,
381,
6,
96,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
121,
21680,
953,
834,
26363,
834,
3708,
357,
4674,
11300,
272,
476,
96,
1201,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the winning team the most number of times ? | CREATE TABLE table_204_137 (
id number,
"race" number,
"race name" text,
"pole position" text,
"fastest lap" text,
"winning driver" text,
"winning team" text,
"yokohama winner" text,
"jay-ten winner" text,
"report" text
) | SELECT "winning team" FROM table_204_137 GROUP BY "winning team" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24636,
41,
3,
23,
26,
381,
6,
96,
12614,
121,
381,
6,
96,
12614,
564,
121,
1499,
6,
96,
14332,
1102,
121,
1499,
6,
96,
11584,
222,
14941,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8163,
372,
121,
21680,
953,
834,
26363,
834,
24636,
350,
4630,
6880,
272,
476,
96,
8163,
372,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
... |
List all employees in the circulation history of the document with id 1. List the employee's name. | CREATE TABLE Employees (
Id VARCHAR
)
CREATE TABLE Circulation_History (
Id VARCHAR
) | SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
13054,
1497,
257,
834,
12146,
13029,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15871,
7,
5,
15,
51,
7379,
63,
15,
15,
834,
4350,
21680,
15871,
7,
3,
15355,
3162,
13054,
1497,
257,
834,
12146,
13029,
9191,
13054,
1497,
257,
834,
12146,
13029,
5,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
3274,
... |
What is the name of the episode written by alison cross? | CREATE TABLE table_30144 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
) | SELECT "Title" FROM table_30144 WHERE "Written by" = 'Alison Cross' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
20885,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
1458,
20885,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
188,
40,
23,
739,
4737,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Give me the comparison about meter_100 over the meter_700 , could you show bars in desc order? | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT meter_700, meter_100 FROM swimmer ORDER BY meter_700 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
9295,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
9295,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the elevation for port elizabeth? | CREATE TABLE table_27708484_3 (elevation VARCHAR, city VARCHAR) | SELECT elevation FROM table_27708484_3 WHERE city = "Port Elizabeth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
4608,
4608,
834,
519,
41,
15,
10912,
257,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
16417,
21,
2147,
3,
15,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16417,
21680,
953,
834,
2555,
2518,
4608,
4608,
834,
519,
549,
17444,
427,
690,
3274,
96,
14714,
9066,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which venue did the home team have a score of 6.10 (46)? | CREATE TABLE table_4777 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_4777 WHERE "Home team score" = '6.10 (46)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
4013,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4177,
4013,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
23769,
632,
8457,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, I want to show by the Y in asc please. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
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,
... |
Find the states of the colleges that have students in the tryout who played in striker position. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
75,
23954,
584,
4280,
28027,
6,
3,
102,
345,
32,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
5540,
584,
4280,
28027,
6,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
5540,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416,
102,
345,
32,
7,
3274,
3,
31,
7,
1788,
23... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a line chart about the change of department_id over hire_date . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
... |
What is the Owner of the Frequency with a Format of First Nations Community Radio? | CREATE TABLE table_name_40 (owner VARCHAR, format VARCHAR) | SELECT owner FROM table_name_40 WHERE format = "first nations community radio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
13238,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13307,
13,
8,
5532,
835,
11298,
28,
3,
9,
12439,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1910,
3274,
96,
14672,
9352,
573,
2252,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest numbered division Cleveland played in? | CREATE TABLE table_26156 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT MIN("Division") FROM table_26156 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25463,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
23,
6610,
8512,
21680,
953,
834,
2688,
25463,
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,
... |
did patient 035-11300 have laboratory test in 2105? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-11300')) AND STRFTIME('%y', lab.labresulttime) = '2105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7690,
549,
17444,
427,
7690,
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,... |
which surname is listed above the duke of albuquerque ? | CREATE TABLE table_203_172 (
id number,
"title" text,
"date of creation" text,
"surname" text,
"first titular" text
) | SELECT "surname" FROM table_203_172 WHERE id = (SELECT id FROM table_203_172 WHERE "title" = 'duke of albuquerque') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
27156,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
5522,
13,
3409,
121,
1499,
6,
96,
3042,
4350,
121,
1499,
6,
96,
14672,
29470,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3042,
4350,
121,
21680,
953,
834,
23330,
834,
27156,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
27156,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
1259,
1050,
... |
In which year did the most recent crime happen? | CREATE TABLE perpetrator (YEAR INTEGER) | SELECT MAX(YEAR) FROM perpetrator | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
28998,
127,
41,
476,
19356,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
215,
410,
8,
167,
1100,
5447,
1837,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
476,
19356,
61,
21680,
28998,
127,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the engine make/capacity is MWM 6.10 TCA-EURO III (Turbo Intercooler) and GVM (kg) Technical Capacity is 23000, what is the Torque Nm@rpm? | CREATE TABLE table_243 (
"Model" text,
"Engine make/Capacity" text,
"Power kW@rpm" text,
"Torque Nm@rpm" text,
"Transmission Make/Type/Speed" text,
"GVM (kg) Technical Capacity" text,
"GCM (kg) Technical Capacity" text
) | SELECT "Torque Nm@rpm" FROM table_243 WHERE "GCM (kg) Technical Capacity" = '23000' AND "Engine make/Capacity" = 'MWM 6.10 TCA-EURO III (Turbo Intercooler)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
41,
96,
24663,
121,
1499,
6,
96,
31477,
143,
87,
19566,
9,
6726,
121,
1499,
6,
96,
23553,
3,
21729,
1741,
52,
2028,
121,
1499,
6,
96,
382,
127,
835,
445,
51,
1741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
127,
835,
445,
51,
1741,
52,
2028,
121,
21680,
953,
834,
27730,
549,
17444,
427,
96,
517,
5518,
41,
8711,
61,
10728,
4000,
9,
6726,
121,
3274,
3,
31,
2773,
2313,
31,
3430,
96,
31477,
143,
87,
19566,
9,
... |
what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia | CREATE TABLE table_21566 (
"1391 Carelia" text,
"1398 Donnera" text,
"1405 Sibelius" text,
"1406 Komppa" text,
"1407 Lindel\u00f6f" text
) | SELECT "1406 Komppa" FROM table_21566 WHERE "1391 Carelia" = '1460 Haltia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
3539,
41,
96,
2368,
4729,
1184,
13240,
121,
1499,
6,
96,
2368,
3916,
1008,
687,
9,
121,
1499,
6,
96,
2534,
3076,
925,
346,
29705,
121,
1499,
6,
96,
2534,
5176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2534,
5176,
5837,
1572,
9,
121,
21680,
953,
834,
357,
1808,
3539,
549,
17444,
427,
96,
2368,
4729,
1184,
13240,
121,
3274,
3,
31,
2534,
3328,
5648,
17,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which game date only had 31,840 people in attendance ? | CREATE TABLE table_203_598 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT "date" FROM table_203_598 WHERE "attendance" = 31840 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3916,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
17,
208,
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,
5522,
121,
21680,
953,
834,
23330,
834,
755,
3916,
549,
17444,
427,
96,
15116,
663,
121,
3274,
2664,
26311,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the surface against monaco | CREATE TABLE table_25435 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"W\u2013L" text,
"Result" text
) | SELECT "Surface" FROM table_25435 WHERE "Against" = 'Monaco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
591,
2469,
41,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20749,
121,
1499,
6,
96,
134,
450,
4861,
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,
450,
4861,
121,
21680,
953,
834,
1828,
591,
2469,
549,
17444,
427,
96,
20749,
121,
3274,
3,
31,
9168,
9,
509,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the color commentator for Andrea Kremer and Tiki Barber? | CREATE TABLE table_name_22 (
color_commentator_s_ VARCHAR,
sideline_reporter_s_ VARCHAR
) | SELECT color_commentator_s_ FROM table_name_22 WHERE sideline_reporter_s_ = "andrea kremer and tiki barber" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
6,
596,
747,
834,
60,
1493,
49,
834,
7,
834,
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,
0,
0... | [
3,
23143,
14196,
945,
834,
287,
297,
1016,
834,
7,
834,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
596,
747,
834,
60,
1493,
49,
834,
7,
834,
3274,
96,
232,
864,
3,
157,
60,
935,
11,
3,
4414,
23,
9935,
49,
121,
1,
-100,... |
What was the result on 29/09/07? | CREATE TABLE table_name_14 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_14 WHERE date = "29/09/07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
30,
2838,
31497,
4560,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
833,
3274,
96,
3166,
31497,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who came in 3rd place in 1990? | CREATE TABLE table_name_20 (
year VARCHAR
) | SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
764,
16,
220,
52,
26,
286,
16,
5541,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
834,
4687,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
215,
3274,
96,
2294,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has date started from 30 Sep 1913? | CREATE TABLE table_name_79 (
date__to_ VARCHAR,
date__from_ VARCHAR
) | SELECT date__to_ FROM table_name_79 WHERE date__from_ = "30 sep 1913" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
833,
834,
834,
235,
834,
584,
4280,
28027,
6,
833,
834,
834,
7152,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
833,
708... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
834,
235,
834,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
834,
834,
7152,
834,
3274,
96,
1458,
142,
102,
957,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Zach Banner is a player at which school? | CREATE TABLE table_17081 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "School" FROM table_17081 WHERE "Player" = 'Zach Banner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
2517,
4018,
536,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
956,
1836,
25004,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Motherwell win? | CREATE TABLE table_name_15 (date VARCHAR, winners VARCHAR) | SELECT date FROM table_name_15 WHERE winners = "motherwell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5522,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8007,
2091,
1369,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
8969,
3274,
96,
21226,
2091,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the minimum age of cape speaking patients who had complete heart block as primary disease | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.language = "CAPE" AND demographic.diagnosis = "COMPLETE HEART BLOCK" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
24925,
3274,
96,
16986,
427,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
6657,
27872,
3463,
3,
6021,
8241,
272,
5017,
10459,
121,
... |
Who was the opposition in the game on July 29? | CREATE TABLE table_name_22 (
opposition VARCHAR,
date VARCHAR
) | SELECT opposition FROM table_name_22 WHERE date = "july 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
8263,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
8263,
16,
8,
467,
30,
1718,
2838,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8263,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
833,
3274,
96,
2047,
120,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country did ekaterina karsten row for with fa listed under notes? | CREATE TABLE table_66482 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Country" FROM table_66482 WHERE "Notes" = 'fa' AND "Athlete" = 'ekaterina karsten' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3707,
357,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3539,
3707,
357,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
89,
9,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
15,
8682,
6655,
9,
3,
4031,
1913,
31,
1,
... |
Tell me the region for catalog of 576 096-2 | CREATE TABLE table_75092 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Region" FROM table_75092 WHERE "Catalog" = '576 096-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
4508,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
9979,
4508,
549,
17444,
427,
96,
18610,
9,
2152,
121,
3274,
3,
31,
755,
3959,
14146,
25369,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest position number when goals against was 59, and a goals for is smaller than 24? | CREATE TABLE table_name_92 (
position INTEGER,
goals_against VARCHAR,
goals_for VARCHAR
) | SELECT MIN(position) FROM table_name_92 WHERE goals_against = 59 AND goals_for < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1102,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4718,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3274,
3,
3390,
3430,
1766,
834,
1161,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest League, when Title Playoff is greater than 0? | CREATE TABLE table_44971 (
"Player" text,
"League" real,
"Title Playoff" real,
"Super Cup" real,
"Total" real
) | SELECT MAX("League") FROM table_44971 WHERE "Title Playoff" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4327,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
382,
155,
109,
2911,
1647,
121,
490,
6,
96,
23290,
3802,
121,
490,
6,
96,
3696,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
2796,
9,
5398,
8512,
21680,
953,
834,
3628,
4327,
536,
549,
17444,
427,
96,
382,
155,
109,
2911,
1647,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What height has a floor count less than 25? | CREATE TABLE table_42334 (
"State / Territory" text,
"Building" text,
"Height" text,
"Floor count" real,
"Completed" real
) | SELECT "Height" FROM table_42334 WHERE "Floor count" < '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2773,
3710,
41,
96,
134,
4748,
3,
87,
30110,
121,
1499,
6,
96,
24752,
53,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
11251,
127,
3476,
121,
490,
6,
96,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
2632,
121,
21680,
953,
834,
591,
2773,
3710,
549,
17444,
427,
96,
11251,
127,
3476,
121,
3,
2,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12? | CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR) | SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
698,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
5547,
834,
6254,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5640,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
2490,
7806,
2688,
3430,
5547,
834,
6254,
3274,
96,
4663,
927,
121,
3430,
698,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of Goal For which has a Ties larger 0? | CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER) | SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
839,
5405,
834,
1161,
3,
21342,
17966,
6,
3,
3010,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
17916,
242,
84,
65,
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,
3,
17684,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
3010,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the high assists for 1-2 series | CREATE TABLE table_25857 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "High assists" FROM table_25857 WHERE "Series" = '1-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
3436,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
13041,
121,
21680,
953,
834,
357,
3449,
3436,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
9596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many settlements are in český krumlov (ck) with a population density higher than 38? | CREATE TABLE table_name_76 (noof_settlements INTEGER, district VARCHAR, pop_dens VARCHAR) | SELECT SUM(noof_settlements) FROM table_name_76 WHERE district = "český krumlov (ck)" AND pop_dens > 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
29,
32,
858,
834,
2244,
17,
3335,
7,
3,
21342,
17966,
6,
3939,
584,
4280,
28027,
6,
2783,
834,
537,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
29,
32,
858,
834,
2244,
17,
3335,
7,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3939,
3274,
96,
2,
15,
7,
157,
2,
3,
157,
2781,
5850,
41,
2406,
61,
121,
3430,
2783,
834,
537,
7,
249... |
Which series episode has a segment c that is Electric pole s transformer? | CREATE TABLE table_name_59 (
series_ep VARCHAR,
segment_c VARCHAR
) | SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
939,
834,
15,
102,
584,
4280,
28027,
6,
5508,
834,
75,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
939,
5640,
65,
3,
9,
5508,
3,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
834,
15,
102,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
5508,
834,
75,
3274,
96,
17470,
11148,
3,
7,
19903,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show all ages and corresponding number of students. | CREATE TABLE Student (age VARCHAR) | SELECT age, COUNT(*) FROM Student GROUP BY age | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
3,
2568,
11,
3,
9921,
381,
13,
481,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1246,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
1246,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the label for 2002, in Germany, Catalog Dos 195? | CREATE TABLE table_name_23 (label VARCHAR, catalog VARCHAR, date VARCHAR, region VARCHAR) | SELECT label FROM table_name_23 WHERE date = "2002" AND region = "germany" AND catalog = "dos 195" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
40,
10333,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
833,
3274,
96,
24898,
121,
3430,
1719,
3274,
96,
1304,
348,
63,
121,
3430,
10173,
3274,
96,
26,
32,
7,
957,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What province/region is RJTQ located? | CREATE TABLE table_name_91 (
province_region VARCHAR,
icao VARCHAR
) | SELECT province_region FROM table_name_91 WHERE icao = "rjtq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
7985,
834,
18145,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7985,
87,
18145,
19,
391,
683,
382,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7985,
834,
18145,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
3,
2617,
32,
3274,
96,
52,
354,
17,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the investors who have invested in two or more entrepreneurs. | CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
) | SELECT investor FROM entrepreneur GROUP BY investor HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
564,
1499,
6,
3902,
381,
6,
1293,
381,
6,
833,
834,
858,
834,
20663,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12024,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
12024,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the second leg score from the group stage on matchday 5? | CREATE TABLE table_34947 (
"Phase" text,
"Round" text,
"Draw date" text,
"First leg" text,
"Second leg" text
) | SELECT "Second leg" FROM table_34947 WHERE "Phase" = 'group stage' AND "Round" = 'matchday 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
4177,
41,
96,
345,
10293,
15,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
10936,
833,
121,
1499,
6,
96,
25171,
4553,
121,
1499,
6,
96,
134,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
1018,
26,
4553,
121,
21680,
953,
834,
519,
3647,
4177,
549,
17444,
427,
96,
345,
10293,
15,
121,
3274,
3,
31,
10739,
1726,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
19515,
1135,
305,
31,
1,
-10... |
How many weeks in total were games played at Cleveland Browns Stadium? | CREATE TABLE table_67702 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Host Team" text,
"Stadium" text
) | SELECT COUNT("Week") FROM table_67702 WHERE "Stadium" = 'cleveland browns stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
2518,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
566,
3481,
2271,
121,
1499,
6,
96,
134,
17,
9,
12925,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3708,
2518,
357,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
75,
4563,
232,
4216,
7,
14939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which To par has a Country of australia, and a Year(s) won of 1990? | CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) | SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
235,
834,
1893,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
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,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
684,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
2394,
121,
1,
-100,
-100,
-100,
... |
Bar chart of how many date of enrolment from each date of enrolment | CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
fam... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19237,
7,
41,
1426,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
4350,
584,
4280,
28027,
599,
15518,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party is John McHugh a member of? | CREATE TABLE table_1341453_34 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1341453_34 WHERE incumbent = "John McHugh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
4867,
834,
3710,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
19,
1079,
3038,
566,
14439,
3,
9,
1144,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
23747,
2534,
4867,
834,
3710,
549,
17444,
427,
28406,
3274,
96,
18300,
3038,
566,
14439,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4? | CREATE TABLE table_name_20 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_20 WHERE bronze < 13 AND nation = "netherlands (ned)" AND gold > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
235,
1947,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
13467,
3,
2,
1179,
3430,
2982,
3274,
96,
29,
16764,
6347,
41,
29,
15,
26,
61,
121,
3430,
2045,
2490,
314,
1,
-100,
-100,
-100,
-1... |
What is the tie number for Middlesbrough? | CREATE TABLE table_59958 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_59958 WHERE "Home team" = 'middlesbrough' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3264,
3449,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
23,
15,
150,
121,
21680,
953,
834,
755,
3264,
3449,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
6983,
26,
965,
115,
13245,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many segment b's when segment a is filigree glass | CREATE TABLE table_15187735_16 (
segment_b VARCHAR,
segment_a VARCHAR
) | SELECT COUNT(segment_b) FROM table_15187735_16 WHERE segment_a = "Filigree Glass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
2938,
41,
5508,
834,
115,
584,
4280,
28027,
6,
5508,
834,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5508,
3,
115,
31,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
15,
122,
297,
834,
115,
61,
21680,
953,
834,
26578,
27697,
2469,
834,
2938,
549,
17444,
427,
5508,
834,
9,
3274,
96,
3183,
2825,
60,
15,
7642,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many years did the team in slot number 9 have a franchise? | CREATE TABLE table_name_16 (years_with_franchise VARCHAR, number VARCHAR) | SELECT years_with_franchise FROM table_name_16 WHERE number = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1201,
7,
834,
4065,
834,
6296,
1436,
7,
15,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
4065,
834,
6296,
1436,
7,
15,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
381,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the Score on 17 december 1979? | CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_80 WHERE date = "17 december 1979" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
17763,
30,
1003,
20,
75,
18247,
15393,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
3274,
96,
2517,
20,
75,
18247,
15393,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the destinations and number of flights to each one Visualize by bar chart, and display X from low to high order. | CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE employee (
ei... | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY destination | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6017,
41,
3,
15,
23,
26,
381,
599,
1298,
6,
632,
201,
3052,
381,
599,
1298,
6,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3954,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
3954,
4674,
11300,
272,
476,
3954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the fastest lap time at the British Grand Prix with Mercedes as the constructor? | CREATE TABLE table_name_2 (fastest_lap VARCHAR, constructor VARCHAR, race VARCHAR) | SELECT fastest_lap FROM table_name_2 WHERE constructor = "mercedes" AND race = "british grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10391,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
6774,
127,
3274,
96,
935,
565,
1395,
121,
3430,
1964,
3274,
96,
2160,
17,
1273,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What positions does Tom Hammond play? | CREATE TABLE table_19275 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT "Position" FROM table_19275 WHERE "Player" = 'Tom Hammond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
3072,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
19978,
3072,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3696,
51,
5845,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, order from high to low by the Y-axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNT... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
What is the train name that has a destination of Tuticorin? | CREATE TABLE table_24573 (
"Train No." text,
"Train Name" text,
"Destination" text,
"Category" text,
"Frequency" text
) | SELECT "Train Name" FROM table_24573 WHERE "Destination" = 'Tuticorin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
4552,
41,
96,
9402,
77,
465,
535,
1499,
6,
96,
9402,
77,
5570,
121,
1499,
6,
96,
308,
222,
77,
257,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9402,
77,
5570,
121,
21680,
953,
834,
357,
2128,
4552,
549,
17444,
427,
96,
308,
222,
77,
257,
121,
3274,
3,
31,
382,
76,
1225,
127,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the shirt sponsor for the team with a head coach of andre schubert and a kitmaker of puma? | CREATE TABLE table_name_48 (
shirt_sponsor VARCHAR,
kitmaker VARCHAR,
head_coach VARCHAR
) | SELECT shirt_sponsor FROM table_name_48 WHERE kitmaker = "puma" AND head_coach = "andre schubert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
8677,
834,
7,
5041,
7,
127,
584,
4280,
28027,
6,
3650,
8337,
584,
4280,
28027,
6,
819,
834,
509,
1836,
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,
8677,
834,
7,
5041,
7,
127,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3650,
8337,
3274,
96,
102,
440,
9,
121,
3430,
819,
834,
509,
1836,
3274,
96,
232,
60,
3,
860,
14659,
17,
121,
1,
-100,
-100,
-100,
-... |
give me the number of patients whose days of hospital stay is greater than 6 and lab test category is blood gas? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "6" AND lab."CATEGORY" = "Blood Gas" | [
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 is the Population of the nation that has a Member countries consisting of existing members (1973)? | CREATE TABLE table_71507 (
"Member countries" text,
"Population" text,
"Area (km\u00b2)" text,
"GDP (billion US$)" text,
"GDP per capita (US$)" text
) | SELECT "Population" FROM table_71507 WHERE "Member countries" = 'existing members (1973)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
1752,
940,
41,
96,
329,
18247,
1440,
121,
1499,
6,
96,
27773,
7830,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499,
6,
96,
517,
7410,
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,
96,
27773,
7830,
121,
21680,
953,
834,
4450,
1752,
940,
549,
17444,
427,
96,
329,
18247,
1440,
121,
3274,
3,
31,
12135,
53,
724,
2863,
4552,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date had the home team as brentford? | CREATE TABLE table_name_30 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_30 WHERE home_team = "brentford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
141,
8,
234,
372,
38,
6397,
295,
2590,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
234,
834,
11650,
3274,
96,
115,
5320,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
where was mazouz ghaouti executed? | CREATE TABLE table_2861364_1 (
place_of_execution VARCHAR,
executed_person VARCHAR
) | SELECT place_of_execution FROM table_2861364_1 WHERE executed_person = "Mazouz Ghaouti" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
2368,
4389,
834,
536,
41,
286,
834,
858,
834,
6667,
75,
14548,
584,
4280,
28027,
6,
13763,
834,
6075,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
834,
858,
834,
6667,
75,
14548,
21680,
953,
834,
357,
3840,
2368,
4389,
834,
536,
549,
17444,
427,
13763,
834,
6075,
3274,
96,
329,
17694,
76,
172,
350,
1024,
670,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
provide me the lab test and lab test category of patient with patient id 3343. | 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 lab.label, lab."CATEGORY" FROM lab WHERE lab.subject_id = "3343" | [
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,
7690,
5,
40,
10333,
6,
7690,
535,
254,
6048,
5577,
11824,
121,
21680,
7690,
549,
17444,
427,
7690,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date was the home team score 5.9 (39)? | CREATE TABLE table_51204 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Date" FROM table_51204 WHERE "Home team score" = '5.9 (39)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
6348,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
24163,
6348,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
9125,
1298,
6918,
11728,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opponent with score of 1 6, 6 4, 6 4 | CREATE TABLE table_69265 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_69265 WHERE "Score" = '1–6, 6–4, 6–4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3951,
357,
4122,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
536,
104,
11071,
431,
104,
8525,
431,
104,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which result has a Goal of deacon 2/5? | CREATE TABLE table_56161 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
) | SELECT "Result" FROM table_56161 WHERE "Goals" = 'deacon 2/5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2938,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4834,
2938,
536,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
221,
9,
1018,
204,
16936,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Product Name, when the Company Name is HTC Corporation? | CREATE TABLE table_7803 (
"Company Name" text,
"Product Name" text,
"Hardware Model" text,
"Accreditation type" text,
"Accreditation level" text,
"Accreditation status" text
) | SELECT "Product Name" FROM table_7803 WHERE "Company Name" = 'htc corporation' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4928,
41,
96,
5890,
2837,
63,
5570,
121,
1499,
6,
96,
3174,
7472,
5570,
121,
1499,
6,
96,
15537,
26,
3404,
5154,
121,
1499,
6,
96,
188,
75,
15547,
257,
686,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
7472,
5570,
121,
21680,
953,
834,
3940,
4928,
549,
17444,
427,
96,
5890,
2837,
63,
5570,
121,
3274,
3,
31,
107,
17,
75,
11861,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id? | CREATE TABLE problems (
product_id VARCHAR,
date_problem_reported INTEGER
)
CREATE TABLE product (
product_id VARCHAR
) | SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
982,
41,
556,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
19307,
834,
60,
16262,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
41,
556,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
4416,
15892,
834,
23,
26,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
556,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
23,
26,
3274,
332,
4416,
15892,
834,
23,
26,
549,
17444,
427,... |
how many of the patients treated with meth10sy had a lab test for cerebrospinal fluid (csf)? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "METH10SY" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
Which polling firm put T. Papadopoulos at 31%? | CREATE TABLE table_69603 (
"Polling Firm" text,
"Date Published" text,
"T. Papadopoulos" text,
"D. Christofias" text,
"I. Kasoulidis" text,
"K. Themistokleous" text
) | SELECT "Polling Firm" FROM table_69603 WHERE "T. Papadopoulos" = '31%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3328,
519,
41,
96,
8931,
697,
13530,
121,
1499,
6,
96,
308,
342,
14722,
121,
1499,
6,
96,
382,
5,
17822,
26,
32,
102,
1063,
2298,
121,
1499,
6,
96,
308,
5,
2144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
697,
13530,
121,
21680,
953,
834,
3951,
3328,
519,
549,
17444,
427,
96,
382,
5,
17822,
26,
32,
102,
1063,
2298,
121,
3274,
3,
31,
519,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.