NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many runs did Vijay Hazare and Gul Mohammad score? | CREATE TABLE table_name_98 (runs VARCHAR, batting_partners VARCHAR) | SELECT runs FROM table_name_98 WHERE batting_partners = "vijay hazare and gul mohammad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
4312,
7,
584,
4280,
28027,
6,
3,
27759,
834,
12300,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3154,
410,
1813,
1191,
63,
1626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3154,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
27759,
834,
12300,
7,
3274,
96,
2099,
1191,
63,
3,
10557,
355,
11,
3,
6106,
2288,
1483,
11374,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Name with an overall of less than 123 for the Detroit Lions? | CREATE TABLE table_5163 (
"Round" text,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"Team" text
) | SELECT "Name" FROM table_5163 WHERE "Overall" < '123' AND "Team" = 'detroit lions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3891,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
23954,
121,
21680,
953,
834,
5553,
3891,
549,
17444,
427,
96,
23847,
1748,
121,
3,
2,
3,
31,
14574,
31,
3430,
96,
18699,
121,
3274,
3,
31,
26,
15252,
155,
3,
7325,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score for set 1 when the score for set 3 is 22 25? | CREATE TABLE table_9150 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Set 1" FROM table_9150 WHERE "Set 3" = '22–25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
1752,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17175,
209,
121,
21680,
953,
834,
4729,
1752,
549,
17444,
427,
96,
17175,
220,
121,
3274,
3,
31,
2884,
104,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least int yards when sacks is 11.5 | CREATE TABLE table_15581223_8 (
int INTEGER,
sacks VARCHAR
) | SELECT MIN(int) AS yards FROM table_15581223_8 WHERE sacks = "11.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3449,
2122,
2773,
834,
927,
41,
16,
17,
3,
21342,
17966,
6,
3,
15525,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
16,
17,
6460,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
77,
17,
61,
6157,
6460,
21680,
953,
834,
1808,
3449,
2122,
2773,
834,
927,
549,
17444,
427,
3,
15525,
7,
3274,
96,
10032,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9? | CREATE TABLE table_name_39 (
drawn INTEGER,
lost VARCHAR,
against VARCHAR,
points VARCHAR
) | SELECT MAX(drawn) FROM table_name_39 WHERE against > 15 AND points < 15 AND lost < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
6796,
3,
21342,
17966,
6,
1513,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19489,
29,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
581,
2490,
627,
3430,
979,
3,
2,
627,
3430,
1513,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What city in the east region in North Carolina was the round where the University of Richmond was the host? | CREATE TABLE table_4673 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "City" FROM table_4673 WHERE "Region" = 'east' AND "State" = 'north carolina' AND "Host" = 'university of richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4552,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
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,
254,
485,
121,
21680,
953,
834,
4448,
4552,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
11535,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
29,
127,
189,
443,
12057,
9,
31,
3430,
96,
566,
3481,
121,... |
did atlantic coast conference or independent have a higher win percentage ? | CREATE TABLE table_203_187 (
id number,
"conference" text,
"bids" number,
"record" text,
"win %" number,
"quarterfinals" number,
"semifinals" number,
"final" number,
"champions" number
) | SELECT "conference" FROM table_203_187 WHERE "conference" IN ('atlantic coast conference', 'independent') ORDER BY "win %" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25828,
41,
3,
23,
26,
381,
6,
96,
28496,
121,
1499,
6,
96,
9824,
7,
121,
381,
6,
96,
60,
7621,
121,
1499,
6,
96,
3757,
3,
1454,
121,
381,
6,
96,
19973,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28496,
121,
21680,
953,
834,
23330,
834,
25828,
549,
17444,
427,
96,
28496,
121,
3388,
41,
31,
31767,
4939,
2542,
31,
6,
3,
31,
77,
17631,
31,
61,
4674,
11300,
272,
476,
96,
3757,
3,
1454,
121,
309,
25067,
872... |
For those records from the products and each product's manufacturer, find headquarter and the amount of headquarter , and group by attribute headquarter, and visualize them by a bar chart, and I want to display x axis in descending order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
2847,
17161,
599,
3845,
9,
26,
19973,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272... |
Which pick's round was 5 when Kellen Davis was a player? | CREATE TABLE table_35028 (
"Round" text,
"Pick" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Pick" FROM table_35028 WHERE "Round" = '5' AND "Player" = 'kellen davis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
2577,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
345,
3142,
121,
21680,
953,
834,
16975,
2577,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
755,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
157,
8890,
836,
3466,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the Q1+Q2 time for the driver whose Q1 order was 13? | CREATE TABLE table_name_35 (
q1 VARCHAR,
q2_time VARCHAR,
q1_order VARCHAR
) | SELECT q1 + q2_time FROM table_name_35 WHERE q1_order = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3,
1824,
536,
584,
4280,
28027,
6,
3,
1824,
357,
834,
715,
584,
4280,
28027,
6,
3,
1824,
536,
834,
9397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
3,
1824,
536,
1768,
3,
1824,
357,
834,
715,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
1824,
536,
834,
9397,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of points for beta team march 1975 and chassis of march 751 | CREATE TABLE table_name_86 (
points VARCHAR,
chassis VARCHAR,
entrant VARCHAR,
year VARCHAR
) | SELECT COUNT(points) FROM table_name_86 WHERE entrant = "beta team march" AND year = 1975 AND chassis = "march 751" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
979,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
295,
3569,
3274,
96,
346,
17,
9,
372,
10556,
121,
3430,
215,
3274,
16312,
3430,
22836,
3274,
96,
51,
7064,
489,
5553,
121,
1,
-1... |
What date did the episode with a weekly ranking of 14 air? | CREATE TABLE table_70458 (
"Episode No." real,
"Airdate" text,
"Total Viewers" real,
"Share" text,
"BBC One Weekly Ranking" real
) | SELECT "Airdate" FROM table_70458 WHERE "BBC One Weekly Ranking" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2128,
927,
41,
96,
427,
102,
159,
32,
221,
465,
535,
490,
6,
96,
20162,
5522,
121,
1499,
6,
96,
3696,
1947,
4197,
277,
121,
490,
6,
96,
24501,
121,
1499,
6,
96,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20162,
5522,
121,
21680,
953,
834,
2518,
2128,
927,
549,
17444,
427,
96,
7640,
254,
555,
22297,
29153,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many papers has luke zettlemoyer published ? | CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
) | SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, writes WHERE author.authorname = 'luke zettlemoyer' AND writes.authorid = author.authorid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
4397,
27111,
41,
1040,
23,
26,
16,
17,
6,
843,
27111,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
61,
21680,
2291,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
40,
1598,
15,
3,
776,
8692,
51,
32,
7975,
31,
34... |
What is the date the high rebounds were by lamarcus aldridge (6)? | CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR) | SELECT date FROM table_27734769_8 WHERE high_rebounds = "LaMarcus Aldridge (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
41,
5522,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
8,
306,
3,
23768,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
549,
17444,
427,
306,
834,
23768,
3274,
96,
3612,
7286,
1071,
7,
901,
26,
7700,
3,
18669,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which bats did mitchell play first? | CREATE TABLE table_name_23 (
bats VARCHAR,
first VARCHAR
) | SELECT bats FROM table_name_23 WHERE first = "mitchell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
3795,
7,
584,
4280,
28027,
6,
166,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3795,
7,
410,
181,
1033,
195,
577,
166,
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,
3795,
7,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
166,
3274,
96,
1538,
1033,
195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the market for KLRJ? | CREATE TABLE table_2709_4 (
target_city__market VARCHAR,
call_sign VARCHAR
) | SELECT target_city__market FROM table_2709_4 WHERE call_sign = "KLRJ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4198,
834,
591,
41,
2387,
834,
6726,
834,
834,
8809,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
512,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2387,
834,
6726,
834,
834,
8809,
21680,
953,
834,
2555,
4198,
834,
591,
549,
17444,
427,
580,
834,
6732,
3274,
96,
439,
12564,
683,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many papers does Graham Neubig have in TACL ? | CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
) | SELECT DISTINCT COUNT(paper.paperid) FROM author, paper, venue, writes WHERE author.authorname = 'Graham Neubig' AND venue.venueid = paper.venueid AND venue.venuename = 'TACL' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
843,
27111,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
61,
21680,
2291,
6,
1040,
6,
5669,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
4744,
1483,
3617,
12911,
31,
3430,
5669,
5,
15098,
... |
how many endings have american pronounciation əs | CREATE TABLE table_17798093_20 (australian VARCHAR, american VARCHAR) | SELECT COUNT(australian) FROM table_17798093_20 WHERE american = "əs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4440,
2079,
4271,
834,
1755,
41,
402,
3109,
9928,
584,
4280,
28027,
6,
10211,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
7784,
7,
43,
10211,
813,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
402,
3109,
9928,
61,
21680,
953,
834,
2517,
4440,
2079,
4271,
834,
1755,
549,
17444,
427,
10211,
3274,
96,
2,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which design has a serial format of AB-12-34? | CREATE TABLE table_name_46 (design VARCHAR, serial_format VARCHAR) | SELECT design FROM table_name_46 WHERE serial_format = "ab-12-34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
9124,
584,
4280,
28027,
6,
10501,
834,
8995,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
408,
65,
3,
9,
10501,
1910,
13,
3,
5359,
5947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
408,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
10501,
834,
8995,
3274,
96,
9,
115,
5947,
3486,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the highest rank when the nation is united states (usa) and bronze is more than 1? | CREATE TABLE table_name_23 (
rank INTEGER,
nation VARCHAR,
bronze VARCHAR
) | SELECT MAX(rank) FROM table_name_23 WHERE nation = "united states (usa)" AND bronze > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
11003,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
11003,
116,
8,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
2982,
3274,
96,
15129,
15,
26,
2315,
41,
302,
9,
61,
121,
3430,
13467,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has a highest Long with 26 Yards and less than 9 Car? | CREATE TABLE table_53257 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"Long" real
) | SELECT MAX("Long") FROM table_53257 WHERE "Yards" = '26' AND "Car." < '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
357,
3436,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
1499,
6,
96,
188,
208,
122,
535,
1499,
6,
96,
434,
2444,
121,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
2444,
8512,
21680,
953,
834,
4867,
357,
3436,
549,
17444,
427,
96,
476,
986,
7,
121,
3274,
3,
31,
2688,
31,
3430,
96,
6936,
535,
3,
2,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many floors have a Height m / feet of 900 / 2,952? | CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR) | SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
20924,
7,
584,
4280,
28027,
6,
3902,
834,
51,
834,
834,
834,
89,
15,
15,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8242,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
8242,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
3902,
834,
51,
834,
834,
834,
89,
15,
15,
17,
3274,
96,
7015,
3,
87,
3547,
3301,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Date of the game with a Record of 27 21 13? | CREATE TABLE table_47171 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_47171 WHERE "Record" = '27–21–13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2517,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
308,
342,
121,
21680,
953,
834,
4177,
2517,
536,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2555,
104,
2658,
104,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the venue where the result was 2-1? | CREATE TABLE table_77942 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_77942 WHERE "Result" = '2-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4240,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
4013,
4240,
357,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
17234,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose age is less than 72 and year of death is less than or equal to 2158? | 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
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "72" AND demographic.dod_year <= "2158.0" | [
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,
545,
3,
2,
96,
5865,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
2423,
96,
357,
1808,
... |
What is Coverage (Transmitter Site), when Power (kW) is '10kW', and when Callsign is 'DYFX-TV'? | CREATE TABLE table_8143 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power (kW)" text,
"Station Type" text,
"Coverage (Transmitter site)" text
) | SELECT "Coverage (Transmitter site)" FROM table_8143 WHERE "Power (kW)" = '10kw' AND "Callsign" = 'dyfx-tv' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
4906,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
3541,
5,
1713,
121,
1499,
6,
96,
23553,
41,
21729,
61,
121,
1499,
6,
96,
134,
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,
254,
1890,
545,
41,
18474,
1538,
449,
353,
61,
121,
21680,
953,
834,
4959,
4906,
549,
17444,
427,
96,
23553,
41,
21729,
61,
121,
3274,
3,
31,
1714,
157,
210,
31,
3430,
96,
254,
1748,
6732,
121,
3274,
3,
31,
... |
what is the sum of attendance of week 11 | CREATE TABLE table_name_62 (
attendance INTEGER,
week VARCHAR
) | SELECT SUM(attendance) FROM table_name_62 WHERE week = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
11364,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
4505,
13,
11364,
13,
471,
850,
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,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
471,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who had a transfer fee of released and played the position of DF? | CREATE TABLE table_name_30 (
player VARCHAR,
transfer_fee VARCHAR,
pos VARCHAR
) | SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1959,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
21019,
26,
121,
3430,
3,
2748,
3274,
96,
26,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the away team of the game with tie number 31? | CREATE TABLE table_name_33 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_33 WHERE tie_no = "31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
13,
8,
467,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the mutated having a patent number of US plant patent 9645? | CREATE TABLE table_name_39 (
mutated_from VARCHAR,
plant_patent_number VARCHAR
) | SELECT mutated_from FROM table_name_39 WHERE plant_patent_number = "us plant patent 9645" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
3,
4246,
920,
834,
7152,
584,
4280,
28027,
6,
1475,
834,
4665,
295,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
4246,
920,
834,
7152,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1475,
834,
4665,
295,
834,
5525,
1152,
3274,
96,
302,
1475,
7432,
3,
4314,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What rocket has a COSPAR ID of 2002-001a? | CREATE TABLE table_name_31 (
rocket VARCHAR,
cospar_id VARCHAR
) | SELECT rocket FROM table_name_31 WHERE cospar_id = "2002-001a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
15721,
584,
4280,
28027,
6,
576,
7,
1893,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15721,
65,
3,
9,
2847,
21215,
448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15721,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
576,
7,
1893,
834,
23,
26,
3274,
96,
24898,
18,
17465,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest position for less than 42 played? | CREATE TABLE table_name_48 (
position INTEGER,
played INTEGER
) | SELECT MAX(position) FROM table_name_48 WHERE played < 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1102,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1102,
21,
705,
145,
6426,
1944,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1944,
3,
2,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game with a 13-5 record played, and in front of how many people? | CREATE TABLE table_18894744_6 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_18894744_6 WHERE record = "13-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3914,
4177,
3628,
834,
948,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
28,
3,
9,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2606,
3914,
4177,
3628,
834,
948,
549,
17444,
427,
1368,
3274,
96,
2368,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What driver has less than 18 laps and a grid number under 16? | CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
13739,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
65,
705,
145,
507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
14941,
7,
3,
2,
507,
3430,
8634,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the profits in billions for Berkshire Hathaway? | CREATE TABLE table_1682026_6 (
profits__billion_$_ VARCHAR,
company VARCHAR
) | SELECT profits__billion_$_ FROM table_1682026_6 WHERE company = "Berkshire Hathaway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
1755,
2688,
834,
948,
41,
9613,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9613,
834,
834,
115,
14916,
834,
3229,
834,
21680,
953,
834,
24274,
1755,
2688,
834,
948,
549,
17444,
427,
349,
3274,
96,
279,
49,
157,
5718,
1626,
189,
8006,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the lowest cuts made that have events less than 4? | CREATE TABLE table_name_84 (cuts_made INTEGER, events INTEGER) | SELECT MIN(cuts_made) FROM table_name_84 WHERE events < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
984,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
7402,
8620,
263,
24,
43,
984,
705,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
984,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the player with a score of 68-71=139? | CREATE TABLE table_name_84 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1959,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
3,
9,
2604,
13,
3,
3651,
18,
4450,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4608,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
4450,
3274,
3,
24090,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name, and order x-axis in ascending order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification. | CREATE TABLE table_name_21 (general_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR) | SELECT general_classification FROM table_name_21 WHERE points_classification = "daniele bennati" AND young_rider_classification = "morris possoni" AND stage = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1021,
834,
4055,
49,
834,
4057,
2420,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
26,
2738,
400,
36,
29,
18530,
121,
3430,
1021,
834,
4055,
49,
834,
4057,
2420,
3274,
96,
2528,
52,
159,
3,
2... |
what is the total amount of tries where the points were 325? | CREATE TABLE table_13564637_3 (
tries_against VARCHAR,
points_for VARCHAR
) | SELECT COUNT(tries_against) FROM table_13564637_3 WHERE points_for = "325" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4834,
4448,
4118,
834,
519,
41,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
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,
2847,
17161,
599,
9000,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
2368,
4834,
4448,
4118,
834,
519,
549,
17444,
427,
979,
834,
1161,
3274,
96,
2668,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which event was the opponent jose carlos oliveira? | CREATE TABLE table_59339 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_59339 WHERE "Opponent" = 'jose carlos oliveira' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
3288,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
3390,
519,
3288,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1927,
7,
15,
443,
2298,
7994,
23,
52,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of games with less than 1 loss? | CREATE TABLE table_37827 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MIN("Games") FROM table_37827 WHERE "Lost" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
2555,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23055,
7,
8512,
21680,
953,
834,
519,
3940,
2555,
549,
17444,
427,
96,
434,
3481,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What player is on the Montreal Alouettes CFl team? | CREATE TABLE table_16319 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_16319 WHERE "CFL Team" = 'Montreal Alouettes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
2294,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2938,
519,
2294,
549,
17444,
427,
96,
254,
10765,
2271,
121,
3274,
3,
31,
9168,
17,
6644,
901,
24043,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Average for South Carolina with an Interview less than 9.626? | CREATE TABLE table_name_21 (average INTEGER, state VARCHAR, interview VARCHAR) | SELECT SUM(average) FROM table_name_21 WHERE state = "south carolina" AND interview < 9.626 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
28951,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
2772,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23836,
21,
1013,
5089,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
28951,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
538,
3274,
96,
7,
670,
107,
443,
12057,
9,
121,
3430,
2772,
3,
2,
5835,
948,
2688,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients less than 50 years who have diagnoses icd9 code 5849. | 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,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.icd9_code = "5849" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Show the players and years played for players from team "Columbus Crew". | CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) | SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
15800,
49,
584,
4280,
28027,
6,
13825,
834,
15800,
15,
26,
584,
4280,
28027,
6,
2271,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
372,
41,
1869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
6,
332,
5411,
476,
2741,
7,
834,
15800,
15,
26,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
372,
6157,
332,
357,
9191,
332,
5411,
18699,
3274,
332,
4416,
18699,
834,
23,
26,
549,
17444,
427,
... |
How many tie no have team 1 as borac banja luka? | CREATE TABLE table_22937 (
"Tie no" real,
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Tie no" FROM table_22937 WHERE "Team 1" = 'Borac Banja Luka' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3166,
4118,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
3166,
4118,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
279,
32,
3738,
5185,
1191,
2318,
1258,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the place ranking for the player from Australia? | CREATE TABLE table_68969 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Place" FROM table_68969 WHERE "Country" = 'australia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3914,
3951,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
948,
3914,
3951,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest number of stories in homes with a height of 42 m.? | CREATE TABLE table_name_7 (stories INTEGER, height VARCHAR) | SELECT MAX(stories) FROM table_name_7 WHERE height = "42 m." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7279,
725,
3,
21342,
17966,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
1937,
16,
2503,
28,
3,
9,
3902,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7279,
725,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3902,
3274,
96,
4165,
3,
51,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory? | CREATE TABLE table_1889619_5 (country_territory VARCHAR, story_no VARCHAR, missing_episodes_with_recovered_footage VARCHAR) | SELECT country_territory FROM table_1889619_5 WHERE story_no = "032" AND missing_episodes_with_recovered_footage = "Episode 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
4314,
2294,
834,
755,
41,
17529,
834,
17,
21301,
10972,
584,
4280,
28027,
6,
733,
834,
29,
32,
584,
4280,
28027,
6,
3586,
834,
15,
102,
159,
32,
1395,
834,
4065,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
834,
17,
21301,
10972,
21680,
953,
834,
25794,
4314,
2294,
834,
755,
549,
17444,
427,
733,
834,
29,
32,
3274,
96,
4928,
357,
121,
3430,
3586,
834,
15,
102,
159,
32,
1395,
834,
4065,
834,
60,
28161,
834,
6259,
... |
how many more games did allan houston play than mark jackson ? | CREATE TABLE table_203_621 (
id number,
"player" text,
"games played" number,
"minutes played" number,
"minutes played per game" number,
"rebounds" number,
"rebounds per game" number,
"assists" number,
"assists per game" number,
"field goal %" number,
"free throw %" number,
"3-point %" number,
"points" number,
"points per game" number
) | SELECT (SELECT "games played" FROM table_203_621 WHERE "player" = 'allan houston') - (SELECT "games played" FROM table_203_621 WHERE "player" = 'mark jackson') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4056,
536,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
7261,
7,
1944,
121,
381,
6,
96,
6890,
7,
1944,
121,
381,
6,
96,
6890,
7,
1944,
399,
467,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
7261,
7,
1944,
121,
21680,
953,
834,
23330,
834,
4056,
536,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
138,
1618,
3,
9492,
4411,
31,
61,
3,
18,
41,
23143,
14196,
96,
7261,
7,
1944,
121,
... |
What is the home score with a crowd larger than 25,603? | CREATE TABLE table_56904 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_56904 WHERE "Crowd" > '25,603' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2394,
591,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
4834,
2394,
591,
549,
17444,
427,
96,
254,
3623,
26,
121,
2490,
3,
31,
1828,
6,
3328,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the player in position lb and an overall of 128? | CREATE TABLE table_67828 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_67828 WHERE "Position" = 'lb' AND "Overall" = '128' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
2577,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3708,
927,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
40,
115,
31,
3430,
96,
23847,
1748,
121,
3274,
3,
31,
536,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What results has euro '84 qualifying as the type of game and norway as the opponent? | CREATE TABLE table_5123 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
) | SELECT "Results\u00b9" FROM table_5123 WHERE "Type of game" = 'euro ''84 qualifying' AND "Opponent" = 'norway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
14574,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
7,
2,
76,
1206,
115,
1298,
121,
1499,
6,
96,
25160,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2,
76,
1206,
115,
1298,
121,
21680,
953,
834,
755,
14574,
549,
17444,
427,
96,
25160,
13,
467,
121,
3274,
3,
31,
1238,
32,
3,
31,
31,
4608,
18002,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
... |
how many patients are admitted before the year 2166 and followed the procedure exteriorization of small intestine? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2166" AND procedures.long_title = "Exteriorization of small intestine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Fumb Yds has a Fumb F. of 0, and a Int LG smaller than 0? | CREATE TABLE table_name_9 (
fumb_yds INTEGER,
fumb_f VARCHAR,
int_lg VARCHAR
) | SELECT MAX(fumb_yds) FROM table_name_9 WHERE fumb_f = 0 AND int_lg < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
11349,
115,
834,
63,
26,
7,
3,
21342,
17966,
6,
11349,
115,
834,
89,
584,
4280,
28027,
6,
16,
17,
834,
40,
122,
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,
4800,
4,
599,
89,
5937,
834,
63,
26,
7,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
11349,
115,
834,
89,
3274,
3,
632,
3430,
16,
17,
834,
40,
122,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What series number had the local title of Fort Boyard? | CREATE TABLE table_1949994_8 (
no INTEGER,
local_title VARCHAR
) | SELECT MAX(no) FROM table_1949994_8 WHERE local_title = "Fort Boyard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3647,
3264,
591,
834,
927,
41,
150,
3,
21342,
17966,
6,
415,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
939,
381,
141,
8,
415,
2233,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
2294,
3647,
3264,
591,
834,
927,
549,
17444,
427,
415,
834,
21869,
3274,
96,
3809,
17,
7508,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What parish has the lowest area and a population of more than 1,776 and a 579 of 5,008 census ranking? | CREATE TABLE table_61532 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT MIN("Area km 2") FROM table_61532 WHERE "Population" > '1,776' AND "Census Ranking" = '579 of 5,008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1808,
2668,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
864,
2280,
204,
8512,
21680,
953,
834,
948,
1808,
2668,
549,
17444,
427,
96,
27773,
7830,
121,
2490,
3,
31,
4347,
940,
3959,
31,
3430,
96,
254,
35,
7,
302,
29153,
121,
3274,
3,
31,
755,
... |
Name the junes | CREATE TABLE table_1539201_1 (june VARCHAR) | SELECT june FROM table_1539201_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3288,
22772,
834,
536,
41,
6959,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
6959,
15,
7,
1,
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,
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... | [
3,
23143,
14196,
3,
6959,
15,
21680,
953,
834,
1808,
3288,
22772,
834,
536,
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,
... |
How many entries are shown for date of successors formal installation where successor is john w. walker (dr)? | CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) | SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
3264,
834,
519,
41,
5522,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
584,
4280,
28027,
6,
22261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
61,
21680,
953,
834,
357,
11434,
3264,
834,
519,
549,
17444,
427,
22261,
3274,
96,
18300,
549,
5,
13521,
41,
3913,
61,
121,
1,
... |
Which region had a release format of CD Maxi? | CREATE TABLE table_name_8 (
region VARCHAR,
format VARCHAR
) | SELECT region FROM table_name_8 WHERE format = "cd maxi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1719,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1719,
141,
3,
9,
1576,
1910,
13,
3190,
15236,
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,
1719,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1910,
3274,
96,
75,
26,
9858,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result of Frank Langella? | CREATE TABLE table_76288 (
"Year" real,
"Category" text,
"President" text,
"Nominee" text,
"Film or Television Series or Miniseries" text,
"Result" text
) | SELECT "Result" FROM table_76288 WHERE "Nominee" = 'frank langella' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
357,
4060,
41,
96,
476,
2741,
121,
490,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
371,
173,
51,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3959,
357,
4060,
549,
17444,
427,
96,
4168,
8695,
15,
121,
3274,
3,
31,
89,
6254,
12142,
5303,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many years had a total earnings amount of 2254598? | CREATE TABLE table_25413 (
"Year" real,
"Majors" real,
"ATP wins" real,
"Total wins" real,
"Earnings ($)" real,
"Money list rank" real
) | SELECT COUNT("Year") FROM table_25413 WHERE "Earnings ($)" = '2254598' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
591,
2368,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
9,
12775,
7,
121,
490,
6,
96,
26758,
9204,
121,
490,
6,
96,
3696,
1947,
9204,
121,
490,
6,
96,
427,
291,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
1828,
591,
2368,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
8785,
61,
121,
3274,
3,
31,
20489,
2128,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a line chart about the change of manager_id over hire_date , list in desc by the x axis. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 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)
) | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
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,
427,
283,
... |
What was the home team score when the away team was Carlton? | CREATE TABLE table_name_43 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_43 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
2604,
116,
8,
550,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart about what are the statuses and average populations of each city?, and sort names in descending order. | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE farm_competition (
Competition_ID int,
Year int,
Theme text,
Host_city_ID int,
Hosts text
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
) | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY Status DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
4990,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
9273,
834,
566,
127,
2260,
490,
6,
7301,
834,
566,
127,
2260,
490,
6,
9273,
834,
254,
9,
8692,
490,
6,
20919,
35,
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,
19318,
6,
71,
17217,
599,
27773,
7830,
61,
21680,
690,
350,
4630,
6880,
272,
476,
19318,
4674,
11300,
272,
476,
19318,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What parishes are in Solvorn? | CREATE TABLE table_21967 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT "Parish (Prestegjeld)" FROM table_21967 WHERE "Location of the Church" = 'Solvorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
3708,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
1499,
6,
96,
3541,
450,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
21680,
953,
834,
357,
2294,
3708,
549,
17444,
427,
96,
434,
32,
75,
257,
13,
8,
2345,
121,
3274,
3,
31,
5231,
40,
1967,
29,
31,
1,
-100,
-100,
-100,
-100... |
Which score has a record of 58 15 8? | CREATE TABLE table_name_80 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_80 WHERE record = "58–15–8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
65,
3,
9,
1368,
13,
3,
3449,
627,
505,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1368,
3274,
96,
3449,
104,
1808,
104,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is every current club for the player Artūrs Štālbergs? | CREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR) | SELECT current_club FROM table_23670057_7 WHERE player = "Artūrs Štālbergs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
9295,
3436,
834,
940,
41,
14907,
834,
13442,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
750,
1886,
21,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
834,
13442,
21680,
953,
834,
357,
3420,
9295,
3436,
834,
940,
549,
17444,
427,
1959,
3274,
96,
7754,
2,
52,
7,
3,
2,
17,
2,
40,
2235,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want the away team score for away team of fitzroy | CREATE TABLE table_name_41 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_41 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
550,
372,
2604,
21,
550,
372,
13,
1400,
172,
8170,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the pinyin for where population is 44617 | CREATE TABLE table_20720 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Area" text,
"Population" real,
"Density" text
) | SELECT "Pinyin" FROM table_20720 WHERE "Population" = '44617' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
18517,
41,
96,
26749,
5570,
121,
1499,
6,
96,
134,
10296,
3676,
121,
1499,
6,
96,
9402,
10569,
138,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
188,
864,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
77,
63,
77,
121,
21680,
953,
834,
1755,
18517,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
591,
4448,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which players scored the most points when the opposing team was Seattle and how many points did they score? | CREATE TABLE table_18883 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_18883 WHERE "Team" = 'Seattle' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
4591,
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,
3,
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,
21417,
979,
121,
21680,
953,
834,
25794,
4591,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
15,
9,
8692,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
in which season the position was center | CREATE TABLE table_19897896_7 (season VARCHAR, position VARCHAR) | SELECT season FROM table_19897896_7 WHERE position = "Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
21441,
4314,
834,
940,
41,
9476,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
16,
84,
774,
8,
1102,
47,
1530,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
24151,
21441,
4314,
834,
940,
549,
17444,
427,
1102,
3274,
96,
24382,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the highest points that have a difference of 8, with a position less than 4? | CREATE TABLE table_42691 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Points") FROM table_42691 WHERE "Difference" = '8' AND "Position" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
4729,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
591,
2688,
4729,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
927,
31,
3430,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
... |
Who is the 1st member of the parliament assembled on 5 April 1614? | CREATE TABLE table_name_41 (assembled VARCHAR) | SELECT 1 AS st_member FROM table_name_41 WHERE assembled = "5 april 1614" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
15222,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
209,
7,
17,
1144,
13,
8,
20417,
17583,
30,
305,
1186,
898,
2534,
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,
209,
6157,
3,
7,
17,
834,
12066,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
17583,
3274,
96,
755,
3,
9,
2246,
40,
898,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of All_Home and the amount of All_Home , and group by attribute All_Home, and rank by the X from low to high. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2847,
17161,
599,
6838,
834,
19040,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find those themes and years for all exhibitions with ticket prices lower than 15, show me a stacked bar chart that groups by themes, counts year, and the x-axis is Year, I want to show how many year in descending order. | CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
) | SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Theme ORDER BY COUNT(Year) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
22371,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
37,
526,
1499,
6,
9152,
834,
4309,
16,
17,
6,
3,
15569,
834,
345,
4920,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
21680,
4473,
549,
17444,
427,
3,
15569,
834,
345,
4920,
3,
2,
627,
350,
4630,
6880,
272,
476,
37,
526,
4674,
11300,
272,
476,
2847,
17161,
599,
476,
2741,
61,
309,
25067,
... |
Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS? | CREATE TABLE table_name_54 (
fat32 VARCHAR,
ntfs VARCHAR,
hpfs VARCHAR,
refs VARCHAR
) | SELECT fat32 FROM table_name_54 WHERE hpfs = "no" AND refs = "no" AND ntfs = "yes v3.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2886,
2668,
584,
4280,
28027,
6,
3,
29,
17,
89,
7,
584,
4280,
28027,
6,
3,
107,
102,
89,
7,
584,
4280,
28027,
6,
6273,
7,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2886,
2668,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
107,
102,
89,
7,
3274,
96,
29,
32,
121,
3430,
6273,
7,
3274,
96,
29,
32,
121,
3430,
3,
29,
17,
89,
7,
3274,
96,
10070,
3,
208,
5787,
632,
121,
... |
What position did he finish in 1987? | CREATE TABLE table_73589 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Position" FROM table_73589 WHERE "Year" = '1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2469,
3914,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
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,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
940,
2469,
3914,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Road team has a Home team of portland, and a Date of may 31? | CREATE TABLE table_name_17 (road_team VARCHAR, home_team VARCHAR, date VARCHAR) | SELECT road_team FROM table_name_17 WHERE home_team = "portland" AND date = "may 31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
8635,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2409,
372,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
1373,
834,
11650,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1493,
40,
232,
121,
3430,
833,
3274,
96,
13726,
2664,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which ralliers won the stages that were at 18:54 GMT? | CREATE TABLE table_21326205_2 (
winner VARCHAR,
time__gmt_ VARCHAR
) | SELECT winner FROM table_21326205_2 WHERE time__gmt_ = "18:54" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
2688,
23201,
834,
357,
41,
4668,
584,
4280,
28027,
6,
97,
834,
834,
122,
51,
17,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
26930,
52,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
357,
2368,
2688,
23201,
834,
357,
549,
17444,
427,
97,
834,
834,
122,
51,
17,
834,
3274,
96,
2606,
10,
5062,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the number of who were patients admitted before the year 2138 and had a procedure titled endosc destr stomach les. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2138" AND procedures.short_title = "Endosc destr stomach les" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the coin with a equivalency of 0.30 made of? | CREATE TABLE table_name_67 (
composition VARCHAR,
€_equiv VARCHAR
) | SELECT composition FROM table_name_67 WHERE €_equiv = "0.30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5761,
584,
4280,
28027,
6,
3416,
834,
15,
1169,
208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7485,
28,
3,
9,
3,
15,
1169,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5761,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
3416,
834,
15,
1169,
208,
3274,
96,
19997,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest bronze when the silver was 0, the gold was larger than 0, and the total was larger than 2? | CREATE TABLE table_name_67 (
bronze INTEGER,
total VARCHAR,
silver VARCHAR,
gold VARCHAR
) | SELECT MAX(bronze) FROM table_name_67 WHERE silver = 0 AND gold > 0 AND total > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13467,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4294,
3274,
3,
632,
3430,
2045,
2490,
3,
632,
3430,
792,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which CONMEBOL 1995 has river plate team? | CREATE TABLE table_38606 (
"Team" text,
"Recopa 1995" text,
"Supercopa 1995" text,
"CONMEBOL 1995" text,
"Copa Libertadores 1996" text
) | SELECT "CONMEBOL 1995" FROM table_38606 WHERE "Team" = 'river plate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3840,
5176,
41,
96,
18699,
121,
1499,
6,
96,
1649,
10845,
9,
7273,
121,
1499,
6,
96,
23290,
10845,
9,
7273,
121,
1499,
6,
96,
17752,
4369,
279,
5194,
7273,
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,
17752,
4369,
279,
5194,
7273,
121,
21680,
953,
834,
519,
3840,
5176,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5927,
49,
3829,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the low score for the jaguar r3 chasis? | CREATE TABLE table_57859 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
) | SELECT MIN("Points") FROM table_57859 WHERE "Chassis" = 'jaguar r3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3940,
3390,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
22512,
7,
121,
490,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
755,
3940,
3390,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
1191,
1744,
291,
3,
52,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? | CREATE TABLE table_name_88 (
top_5 INTEGER,
cuts_made VARCHAR,
events VARCHAR
) | SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
420,
834,
755,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2224,
4525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
9120,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
8620,
834,
4725,
3274,
335,
3430,
984,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which IHSAA Class has a School of mitchell? | CREATE TABLE table_65536 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"County" text
) | SELECT "IHSAA Class" FROM table_65536 WHERE "School" = 'mitchell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
755,
3420,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
134,
1737,
121,
490,
6,
96,
196,
4950,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5498,
4501,
121,
21680,
953,
834,
4122,
755,
3420,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
1538,
1033,
195,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many bookings do we have? | CREATE TABLE BOOKINGS (
Id VARCHAR
) | SELECT COUNT(*) FROM BOOKINGS | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
25793,
2365,
134,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5038,
7,
103,
62,
43,
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,
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... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3,
25793,
2365,
134,
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... |
Which Bronze has a Rank of 4, and a Gold smaller than 0? | CREATE TABLE table_65778 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_65778 WHERE "Rank" = '4' AND "Gold" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3436,
3940,
41,
96,
22557,
121,
490,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
948,
3436,
3940,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
591,
31,
3430,
96,
23576,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis? | CREATE TABLE table_66778 (
"Counting Method" text,
"Basis" text,
"Name" text,
"Directed / Undirected" text,
"Induced / Non-Induced" text
) | SELECT "Name" FROM table_66778 WHERE "Directed / Undirected" = 'both' AND "Basis" = 'subgraph-centric' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
940,
3940,
41,
96,
10628,
53,
7717,
121,
1499,
6,
96,
14885,
159,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23620,
15,
26,
3,
87,
597,
22955,
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,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3539,
940,
3940,
549,
17444,
427,
96,
23620,
15,
26,
3,
87,
597,
22955,
121,
3274,
3,
31,
17158,
31,
3430,
96,
14885,
159,
121,
3274,
3,
31,
7304,
9413,
18,
17456,
31,
1,
-100,
-... |
Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22? | CREATE TABLE table_name_93 (
males_rank INTEGER,
females___percentage_ VARCHAR,
females_rank VARCHAR
) | SELECT MAX(males_rank) FROM table_name_93 WHERE females___percentage_ < 40 AND females_rank < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
5069,
7,
834,
6254,
3,
21342,
17966,
6,
3955,
7,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
3955,
7,
834,
6254,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
13513,
7,
834,
6254,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3955,
7,
834,
834,
834,
883,
3728,
545,
834,
3,
2,
1283,
3430,
3955,
7,
834,
6254,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,... |
modified hachinski less than or equal to 4 | CREATE TABLE table_train_107 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"modified_hachinski_ischemia_scale" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_107 WHERE modified_hachinski_ischemia_scale <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
18057,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6965,
834,
9378,
121,
3,
1266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
18057,
549,
17444,
427,
8473,
834,
1024,
5675,
4009,
834,
2499,
11658,
834,
6649,
3,
2,
2423,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010? | CREATE TABLE table_31047 (
"City/Municipality" text,
"Population (2010)" real,
"Area (km\u00b2)" text,
"Pop. density (per km\u00b2)" text,
"Income Classification" text
) | SELECT COUNT("Population (2010)") FROM table_31047 WHERE "Income Classification" = '1st Class' AND "City/Municipality" = 'Itogon, Benguet' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
4177,
41,
96,
254,
485,
87,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
27773,
7830,
26118,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
27773,
7830,
26118,
8512,
21680,
953,
834,
19947,
4177,
549,
17444,
427,
96,
1570,
287,
15,
4501,
2420,
121,
3274,
3,
31,
536,
7,
17,
4501,
31,
3430,
96,
254,
485,
87,
329,
202,
23,
3389,
10... |
Which opponent has a date of July 7? | CREATE TABLE table_name_35 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_35 WHERE date = "july 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
65,
3,
9,
833,
13,
1718,
489,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
833,
3274,
96,
2047,
120,
489,
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 average attendance that has 83-52 as the record? | CREATE TABLE table_5562 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT AVG("Attendance") FROM table_5562 WHERE "Record" = '83-52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4056,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3769,
4056,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
4591,
18,
5373,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was Kelin nominated? | CREATE TABLE table_60379 (
"Year/Ceremony" text,
"English title" text,
"Russian title" text,
"Kazakh title" text,
"Director" text,
"Result" text
) | SELECT "Year/Ceremony" FROM table_60379 WHERE "English title" = 'kelin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
4440,
41,
96,
476,
2741,
87,
254,
49,
15,
21208,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
29613,
29,
2233,
121,
1499,
6,
96,
439,
9,
172,
18965,
2233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
87,
254,
49,
15,
21208,
121,
21680,
953,
834,
3328,
519,
4440,
549,
17444,
427,
96,
26749,
2233,
121,
3274,
3,
31,
5768,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the name for longitude more than 103.8 and latitude of -11.4 | CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR) | SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
4350,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
564,
21,
307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
307,
20341,
2490,
335,
26195,
3430,
50,
6592,
3274,
3,
2292,
14912,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what couple had a vote percentage of 5.8%? | CREATE TABLE table_26375386_20 (
couple VARCHAR,
vote_percentage VARCHAR
) | SELECT couple FROM table_26375386_20 WHERE vote_percentage = "5.8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22954,
519,
3840,
834,
1755,
41,
1158,
584,
4280,
28027,
6,
2902,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
1158,
141,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1158,
21680,
953,
834,
2688,
22954,
519,
3840,
834,
1755,
549,
17444,
427,
2902,
834,
883,
3728,
545,
3274,
96,
9125,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the nickname that was founded 1798 | CREATE TABLE table_2293402_2 (nickname VARCHAR, founded VARCHAR) | SELECT nickname FROM table_2293402_2 WHERE founded = 1798 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4271,
2445,
357,
834,
357,
41,
11191,
4350,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
24649,
24,
47,
5710,
1003,
3916,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24649,
21680,
953,
834,
2884,
4271,
2445,
357,
834,
357,
549,
17444,
427,
5710,
3274,
1003,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.