NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what was the last single kitty wells released ? | CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
) | SELECT "title" FROM table_204_500 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2560,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
14661,
5059,
4655,
2,
29,
302,
684,
121,
381,
6,
96,
14661,
5059,
4655,
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,
21869,
121,
21680,
953,
834,
26363,
834,
2560,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the competition on October 21, 2003? | CREATE TABLE table_name_83 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_83 WHERE date = "october 21, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2259,
30,
1797,
12026,
3888,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
12026,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What were property taxes in a year when total revenue was $40,891,700 after 2002? | CREATE TABLE table_name_33 (
property_taxes VARCHAR,
year VARCHAR,
total_revenue VARCHAR
) | SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
785,
834,
14727,
15,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
792,
834,
60,
15098,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
785,
834,
14727,
15,
7,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
215,
2490,
4407,
3430,
792,
834,
60,
15098,
3274,
96,
3229,
2445,
6,
3914,
4347,
9295,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Prize, when Runner-Up is 'Simon Ehne', and when Winner is 'David Tighe'? | CREATE TABLE table_name_37 (
prize VARCHAR,
runner_up VARCHAR,
winner VARCHAR
) | SELECT prize FROM table_name_37 WHERE runner_up = "simon ehne" AND winner = "david tighe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
6441,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11329,
6,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6441,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
28348,
29,
3,
15,
12836,
121,
3430,
4668,
3274,
96,
26,
9,
6961,
3,
2880,
88,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who did the Patriots play in week 4? | CREATE TABLE table_74786 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_74786 WHERE "Week" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4177,
3840,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
940,
4177,
3840,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find all the forenames of distinct drivers who was in position 1 as standing and won? | CREATE TABLE driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR) | SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2535,
11018,
7,
41,
13739,
4055,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
1161,
15,
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,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
1161,
15,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
2535,
11018,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
549,
17444,
427,
332,
4416,
47... |
What is the EASA (EU) when the notes show aoc 135? | CREATE TABLE table_41081 (
"Airline" text,
"Fleet Size" real,
"Notes" text,
"IOSA (IATA)" text,
"EASA (EU)" text,
"IASA (FAA)" text
) | SELECT "EASA (EU)" FROM table_41081 WHERE "Notes" = 'aoc 135' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
4959,
41,
96,
20162,
747,
121,
1499,
6,
96,
371,
109,
15,
17,
8941,
121,
490,
6,
96,
10358,
15,
7,
121,
1499,
6,
96,
7550,
4507,
41,
196,
19282,
61,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
21245,
41,
12062,
61,
121,
21680,
953,
834,
24175,
4959,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
9,
32,
75,
209,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the language when the points is more than 119 and the place is higher than 5? | CREATE TABLE table_name_24 (
language VARCHAR,
points VARCHAR,
place VARCHAR
) | SELECT language FROM table_name_24 WHERE points > 119 AND place > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1612,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1612,
116,
8,
979,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
979,
2490,
3,
19993,
3430,
286,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many legs were lost when the high checkout was 101? | CREATE TABLE table_27906667_2 (legs_lost VARCHAR, high_checkout VARCHAR) | SELECT COUNT(legs_lost) FROM table_27906667_2 WHERE high_checkout = 101 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2394,
3539,
3708,
834,
357,
41,
5772,
7,
834,
2298,
17,
584,
4280,
28027,
6,
306,
834,
10031,
670,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5772,
7,
834,
2298,
17,
61,
21680,
953,
834,
2555,
2394,
3539,
3708,
834,
357,
549,
17444,
427,
306,
834,
10031,
670,
3274,
13736,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many citation richard anderson has ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE author (
authorid i... | SELECT DISTINCT COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'richard anderson' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
8464,
5,
11675,
19587,
23,
26,
61,
21680,
2291,
6,
3,
8464,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
3723,
986,
11,
13515,
31,
3430,
1040,
5,
... |
Show the names of products and the number of events they are in Visualize by bar chart, and I want to sort by the total number in asc. | CREATE TABLE Agreements (
Document_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID INTEGER,
Location_ID... | SELECT Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7139,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10450,
7,
41,
10450,
834,
4309,
3,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6246,
834,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
7554,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
7472,
834,
4309,
3274,
332,
4416,
3174,
7472,
83... |
What home team played against Crystal Palace? | CREATE TABLE table_name_68 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
1944,
581,
12961,
12530,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
550,
834,
11650,
3274,
96,
75,
651,
8407,
20212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the format of 'callanetics: 10 years younger in 10 hours'? | CREATE TABLE table_163 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
) | SELECT "Format" FROM table_163 WHERE "Title" = 'Callanetics: 10 Years Younger In 10 Hours' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
1649,
40,
14608,
7678... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3809,
3357,
121,
21680,
953,
834,
2938,
519,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
14318,
8102,
7636,
10,
335,
13825,
5209,
49,
86,
335,
10768,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients on id route of drug administration who have been diagnosed with stevens-johnson syndrome-toxic epidermal necrolysis overlap syndrome. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Stevens-Johnson-TEN syn" AND prescriptions.route = "ID" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
which country had the highest total ? | CREATE TABLE table_204_383 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_383 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3747,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
3747,
519,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many seats were in the parliament for the february 27 , 1994 election ? | CREATE TABLE table_204_28 (
id number,
"election" text,
"name of the party/alliance" text,
"number of votes" number,
"percentage" text,
"seats in the parliament" number
) | SELECT "seats in the parliament" FROM table_204_28 WHERE "election" = '27 february 1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2577,
41,
3,
23,
26,
381,
6,
96,
15,
12252,
121,
1499,
6,
96,
4350,
13,
8,
1088,
87,
1748,
23,
663,
121,
1499,
6,
96,
5525,
1152,
13,
11839,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
1544,
7,
16,
8,
20417,
121,
21680,
953,
834,
26363,
834,
2577,
549,
17444,
427,
96,
15,
12252,
121,
3274,
3,
31,
2555,
29976,
76,
1208,
7520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who played 20 questions during the issue in which Pamela Horton is on the cover? | CREATE TABLE table_26823 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "20 Questions" FROM table_26823 WHERE "Cover model" = 'Pamela Horton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
2773,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1755,
14218,
121,
21680,
953,
834,
357,
3651,
2773,
549,
17444,
427,
96,
254,
1890,
825,
121,
3274,
3,
31,
345,
9,
2341,
9,
1546,
17330,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest jews and others 1 for the localities 11? | CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER, localities VARCHAR) | SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4240,
2518,
4448,
834,
536,
41,
1924,
210,
7,
834,
232,
834,
9269,
7,
834,
536,
3,
21342,
17966,
6,
415,
2197,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1924,
210,
7,
834,
232,
834,
9269,
7,
834,
6982,
21680,
953,
834,
1828,
4240,
2518,
4448,
834,
536,
549,
17444,
427,
415,
2197,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is every description if NO votes is 233759? | CREATE TABLE table_256286_43 (
description VARCHAR,
no_votes VARCHAR
) | SELECT description FROM table_256286_43 WHERE no_votes = 233759 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4056,
3840,
834,
4906,
41,
4210,
584,
4280,
28027,
6,
150,
834,
1621,
1422,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
4210,
3,
99,
5693,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4210,
21680,
953,
834,
1828,
4056,
3840,
834,
4906,
549,
17444,
427,
150,
834,
1621,
1422,
3274,
1902,
4118,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which state does Jimmy Quillen represent? | CREATE TABLE table_80458 (
"Representative" text,
"Years" text,
"State" text,
"Party" text,
"Lifespan" text
) | SELECT "State" FROM table_80458 WHERE "Representative" = 'jimmy quillen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
2128,
927,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
16427,
7,
2837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
2079,
2128,
927,
549,
17444,
427,
96,
1649,
12640,
1528,
121,
3274,
3,
31,
354,
603,
2258,
285,
195,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many items are listed under the column 'viewing figure' for 'the looking glass'? | CREATE TABLE table_3411 (
"No." real,
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" real
) | SELECT COUNT("Viewing figure") FROM table_3411 WHERE "Episode" = 'The Looking Glass' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
2596,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
15270,
53,
2320,
8512,
21680,
953,
834,
3710,
2596,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
634,
4878,
7642,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the birth places that are shared by at least two people? | CREATE TABLE people (
Birth_Place VARCHAR
) | SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
26337,
834,
345,
11706,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3879,
1747,
24,
33,
2471,
57,
44,
709,
192,
151,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
26337,
834,
345,
11706,
21680,
151,
350,
4630,
6880,
272,
476,
26337,
834,
345,
11706,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opponent when the resultwas w 12-11 | CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_45 WHERE result = "w 12-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
116,
8,
741,
9491,
3,
210,
586,
9169,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
741,
3274,
96,
210,
586,
9169,
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 type of boat built in Port Blakeley | CREATE TABLE table_name_31 (type VARCHAR, where_built VARCHAR) | SELECT type FROM table_name_31 WHERE where_built = "port blakeley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
6137,
584,
4280,
28027,
6,
213,
834,
16152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
686,
13,
3432,
1192,
16,
3625,
21581,
1306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
213,
834,
16152,
3274,
96,
1493,
3,
115,
16948,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the earliest date when the championship was Monterrey WCT, Mexico? | CREATE TABLE table_name_76 (date INTEGER, championship VARCHAR) | SELECT MIN(date) FROM table_name_76 WHERE championship = "monterrey wct, mexico" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5522,
3,
21342,
17966,
6,
10183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
833,
116,
8,
10183,
47,
5788,
49,
60,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
5522,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
10183,
3274,
96,
4662,
49,
60,
63,
3,
210,
75,
17,
6,
140,
226,
5807,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the preliminaries of the contestant from Massachusetts with an evening gown higher than 8.631, an average less than 8.791, and an interview higher than 8.608? | CREATE TABLE table_name_97 (
preliminaries VARCHAR,
interview VARCHAR,
state VARCHAR,
evening_gown VARCHAR,
average VARCHAR
) | SELECT COUNT(preliminaries) FROM table_name_97 WHERE evening_gown > 8.631 AND average < 8.791 AND state = "massachusetts" AND interview > 8.608 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
554,
4941,
77,
5414,
584,
4280,
28027,
6,
2772,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
6,
1348,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2026,
4941,
77,
5414,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2272,
834,
122,
9197,
2490,
4848,
3891,
536,
3430,
1348,
3,
2,
4848,
4440,
536,
3430,
538,
3274,
96,
2754,
7,
1836,
1074... |
What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912? | CREATE TABLE table_42767 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Result" FROM table_42767 WHERE "Venue" = 'sydney cricket ground' AND "Date" = '23,24,26,27,28,29 feb, 1 mar 1912' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
3708,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
591,
2555,
3708,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
7,
63,
26,
3186,
18096,
1591,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2773,
6,
2266,
6,
2688,
6,
2555... |
What is Michael's surname? | CREATE TABLE table_36834 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) | SELECT "Surname" FROM table_36834 WHERE "First" = 'michael' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
3710,
41,
96,
134,
450,
4350,
121,
1499,
6,
96,
25171,
121,
1499,
6,
96,
308,
5,
667,
5,
279,
535,
1499,
6,
96,
279,
144,
7,
121,
1499,
6,
96,
11889,
2381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4350,
121,
21680,
953,
834,
519,
3651,
3710,
549,
17444,
427,
96,
25171,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which genre was used the most ? | CREATE TABLE table_204_652 (
id number,
"title" text,
"year" number,
"director" text,
"country" text,
"genre" text,
"notes" text
) | SELECT "genre" FROM table_204_652 GROUP BY "genre" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4122,
357,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
25982,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
729,
60,
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,
729,
60,
121,
21680,
953,
834,
26363,
834,
4122,
357,
350,
4630,
6880,
272,
476,
96,
729,
60,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100... |
How many mystic arte have hisui (jadeite) hearts 1 as the character? | CREATE TABLE table_28178595_2 (
mystic_arte VARCHAR,
character VARCHAR
) | SELECT COUNT(mystic_arte) FROM table_28178595_2 WHERE character = "Hisui (Jadeite) Hearts 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2517,
4433,
3301,
834,
357,
41,
82,
7,
1225,
834,
1408,
15,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
82,
7,
1225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2258,
7,
1225,
834,
1408,
15,
61,
21680,
953,
834,
2577,
2517,
4433,
3301,
834,
357,
549,
17444,
427,
1848,
3274,
96,
12146,
7,
76,
23,
41,
683,
9,
221,
155,
15,
61,
6219,
7,
209,
121,
1,
-100,... |
With a 2011 of 0 what was the 2006 result? | CREATE TABLE table_name_83 (Id VARCHAR) | SELECT 2006 FROM table_name_83 WHERE 2011 = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
2722,
13,
3,
632,
125,
47,
8,
3581,
741,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3581,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2722,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest points opponents have scored when the Cowboys score 36? | CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR) | SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2079,
2368,
3341,
834,
536,
41,
32,
102,
9977,
7,
3,
21342,
17966,
6,
9321,
7531,
7,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
32,
102,
9977,
7,
61,
21680,
953,
834,
2884,
2079,
2368,
3341,
834,
536,
549,
17444,
427,
9321,
7531,
7,
834,
2700,
7,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA? | CREATE TABLE table_name_45 (são_paulo_career VARCHAR, name VARCHAR, appearances VARCHAR, goals VARCHAR) | SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = "ricardo rocha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
7,
2,
32,
834,
102,
9,
83,
32,
834,
2864,
49,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
3179,
7,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2,
32,
834,
102,
9,
83,
32,
834,
2864,
49,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3179,
7,
3,
2,
3,
22772,
3430,
1766,
3,
2,
204,
3430,
564,
3274,
96,
2234,
986,
32,
3,
11492,
9,
121,
1,
... |
What player's original team are the Oakland Raiders? | CREATE TABLE table_80251 (
"Original NFL team" text,
"Player" text,
"Pos." text,
"College" text,
"Conf." text
) | SELECT "Player" FROM table_80251 WHERE "Original NFL team" = 'oakland raiders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
1828,
536,
41,
96,
667,
3380,
10270,
10439,
372,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
9939,
7883,
121,
1499,
6,
96,
4302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2079,
1828,
536,
549,
17444,
427,
96,
667,
3380,
10270,
10439,
372,
121,
3274,
3,
31,
32,
1639,
40,
232,
15941,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me the number of all home by all home in a histogram, I want to show X-axis from low to high order please. | 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_Per... | 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... |
Which city has an ICAO of VCCJ? | CREATE TABLE table_34981 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "City" FROM table_34981 WHERE "ICAO" = 'vccj' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
3916,
536,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
3710,
3916,
536,
549,
17444,
427,
96,
15038,
667,
121,
3274,
3,
31,
208,
75,
75,
354,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest lane with a time of 2:05.90, and a Heat larger than 3? | CREATE TABLE table_name_43 (
lane INTEGER,
time VARCHAR,
heat VARCHAR
) | SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3,
8102,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3,
8102,
28,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8102,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
97,
3274,
96,
357,
10,
3076,
5,
2394,
121,
3430,
1678,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart about the name and age for all male people who don't have a wedding, and show by the Y in descending please. | CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of t... | SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) ORDER BY Age DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1683,
41,
2345,
834,
4309,
16,
17,
6,
17830,
834,
4309,
16,
17,
6,
27144,
834,
4309,
16,
17,
6,
2929,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
151,
549,
17444,
427,
27,
7,
834,
329,
9,
109,
3274,
3,
31,
382,
31,
3430,
4486,
2449,
834,
4309,
3388,
41,
23143,
14196,
17830,
834,
4309,
21680,
1683,
61,
4674,
11300,
272,
476,
7526,
309,
... |
In which round was Barbara Hawcroft the loser? | CREATE TABLE table_name_84 (
round VARCHAR,
loser VARCHAR
) | SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1751,
584,
4280,
28027,
6,
2615,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
1751,
47,
13163,
1626,
210,
30750,
8,
2615,
52,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2615,
52,
3274,
96,
1047,
1047,
9,
4244,
210,
30750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
subjects must have an admission blood glucose > 140 mg and < 400 mg / dl without laboratory evidence of diabetic ketoacidosis ( serum bicarbonate < 18 meq / l or positive serum or urinary ketones ) . | CREATE TABLE table_dev_4 (
"id" int,
"hypothyroidism" bool,
"serum_bicarbonate" int,
"c_peptide_level" float,
"autoimmune_disease" bool,
"hemoglobin_a1c_hba1c" float,
"positive_serum" bool,
"inhaled_steroids" bool,
"diabetic_ketoacidosis" bool,
"creatinine_clearance_cl" float,
... | SELECT * FROM table_dev_4 WHERE admission_blood_glucose > 140 AND admission_blood_glucose < 400 OR (diabetic_ketoacidosis = 0 OR serum_bicarbonate < 18 OR positive_serum = 1 OR urinary_ketones = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
591,
41,
96,
23,
26,
121,
16,
17,
6,
96,
13397,
32,
17,
31878,
159,
51,
121,
3,
12840,
40,
6,
96,
7,
49,
440,
834,
115,
23,
17089,
342,
121,
16,
17,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
591,
549,
17444,
427,
7209,
834,
27798,
834,
13492,
509,
7,
15,
2490,
11397,
3430,
7209,
834,
27798,
834,
13492,
509,
7,
15,
3,
2,
4837,
4674,
41,
26,
23,
9,
346,
1225,
834,
8044,... |
Name the howard baker for ronald reagan of 72% | CREATE TABLE table_name_46 (howard_baker VARCHAR, ronald_reagan VARCHAR) | SELECT howard_baker FROM table_name_46 WHERE ronald_reagan = "72%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
4067,
986,
834,
19272,
49,
584,
4280,
28027,
6,
3,
52,
9533,
26,
834,
864,
2565,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
149,
986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
149,
986,
834,
19272,
49,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
3,
52,
9533,
26,
834,
864,
2565,
3274,
96,
940,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the notes distance for 2nd position earlier than 1986? | CREATE TABLE table_name_31 (
notes VARCHAR,
position VARCHAR,
year VARCHAR
) | SELECT notes FROM table_name_31 WHERE position = "2nd" AND year < 1986 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3358,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3358,
2357,
21,
204,
727... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3358,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1102,
3274,
96,
357,
727,
121,
3430,
215,
3,
2,
12698,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which song has a ending theme, and is sung by miriam yeung? | CREATE TABLE table_68210 (
"Number" real,
"Name of the song" text,
"Singer" text,
"Drama" text,
"Kind of the song" text
) | SELECT "Name of the song" FROM table_68210 WHERE "Kind of the song" = 'ending theme' AND "Singer" = 'miriam yeung' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
15239,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
13,
8,
2324,
121,
1499,
6,
96,
134,
9963,
121,
1499,
6,
96,
308,
10819,
121,
1499,
6,
96,
439,
77,
26,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
13,
8,
2324,
121,
21680,
953,
834,
3651,
15239,
549,
17444,
427,
96,
439,
77,
26,
13,
8,
2324,
121,
3274,
3,
31,
9303,
3800,
31,
3430,
96,
134,
9963,
121,
3274,
3,
31,
5884,
23,
265,
3,
63,
15,
425,... |
What is the womens singles of marcus ellis gabrielle white? | CREATE TABLE table_72272 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens singles" FROM table_72272 WHERE "Mixed doubles" = 'Marcus Ellis Gabrielle White' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
2555,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
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,
518,
32,
904,
7,
712,
7,
121,
21680,
953,
834,
5865,
2555,
357,
549,
17444,
427,
96,
329,
2407,
15,
26,
1486,
7,
121,
3274,
3,
31,
7286,
1071,
7,
22342,
11997,
109,
1945,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What is T3 Place Player Bobby Locke's Score? | CREATE TABLE table_9956 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ($)" text
) | SELECT "Score" FROM table_9956 WHERE "Place" = 't3' AND "Player" = 'bobby locke' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
4834,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3264,
4834,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
17396,
969,
6081,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many games were played by the player at FB? | CREATE TABLE table_name_18 (
games VARCHAR,
position VARCHAR
) | SELECT COUNT(games) AS ↑ FROM table_name_18 WHERE position = "fb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1031,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
130,
1944,
57,
8,
1959,
44,
3,
15586,
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,
2847,
17161,
599,
7261,
7,
61,
6157,
3,
2,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1102,
3274,
96,
89,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Opponent has a February larger than 7 and Record of 37-16-4? | CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
32,
102,
9977,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
29976,
76,
1208,
2490,
489,
3430,
1368,
3274,
96,
4118,
10892,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score when TSV Siegen was the runner-up? | CREATE TABLE table_66063 (
"Year" text,
"Champions" text,
"Score" text,
"Runners-up" text,
"Venue" text
) | SELECT "Score" FROM table_66063 WHERE "Runners-up" = 'tsv siegen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
3891,
41,
96,
476,
2741,
121,
1499,
6,
96,
3541,
4624,
2865,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
553,
35,
76,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
27720,
3891,
549,
17444,
427,
96,
23572,
7,
18,
413,
121,
3274,
3,
31,
17,
7,
208,
680,
729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Blagojevich (D) has a Source of zogby/wsj, and a Topinka (R) of 33.2%? | CREATE TABLE table_name_5 (
blagojevich__d_ VARCHAR,
source VARCHAR,
topinka__r_ VARCHAR
) | SELECT blagojevich__d_ FROM table_name_5 WHERE source = "zogby/wsj" AND topinka__r_ = "33.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
3,
4605,
839,
1924,
208,
362,
834,
834,
26,
834,
584,
4280,
28027,
6,
1391,
584,
4280,
28027,
6,
420,
6090,
9,
834,
834,
52,
834,
584,
4280,
28027,
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,
4605,
839,
1924,
208,
362,
834,
834,
26,
834,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1391,
3274,
96,
17328,
969,
87,
210,
7,
354,
121,
3430,
420,
6090,
9,
834,
834,
52,
834,
3274,
96,
4201,
5,
5406... |
What is the margin of victory that has masters gc ladies as the tournament? | CREATE TABLE table_name_45 (margin_of_victory VARCHAR, tournament VARCHAR) | SELECT margin_of_victory FROM table_name_45 WHERE tournament = "masters gc ladies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6346,
13,
6224,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
5892,
3274,
96,
7429,
7,
3,
122,
75,
10989,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which County has an Opposition of offaly? | CREATE TABLE table_13328 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT "County" FROM table_13328 WHERE "Opposition" = 'offaly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2577,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
382,
1427,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
22974,
2577,
549,
17444,
427,
96,
667,
102,
4718,
121,
3274,
3,
31,
1647,
9,
120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me a bar chart, that group by location and count them. | CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge... | SELECT Location, COUNT(Location) FROM party GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
3450,
834,
634,
526,
1499,
6,
10450,
1499,
6,
1485,
834,
1201,
1499,
6,
2506,
834,
1201,
1499,
6,
7720,
834,
858,
834,
12675,
7,
16,
17,
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,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what are all the party with district being kansas 1 | CREATE TABLE table_1342359_15 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1342359_15 WHERE district = "Kansas 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3390,
834,
1808,
41,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
66,
8,
1088,
28,
3939,
271,
3,
3304,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2773,
3390,
834,
1808,
549,
17444,
427,
3939,
3274,
96,
439,
3247,
9,
7,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the most crowd for essendon | CREATE TABLE table_20751 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Crowd" real
) | SELECT MAX("Crowd") FROM table_20751 WHERE "Away team" = 'Essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
5553,
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,
517,
7775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
8512,
21680,
953,
834,
26426,
5553,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
427,
4932,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which party is Lawrence H. Fountain part of? | CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341738_34 WHERE incumbent = "Lawrence H. Fountain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3710,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
19,
16617,
454,
5,
30566,
294,
13,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
3747,
834,
3710,
549,
17444,
427,
28406,
3274,
96,
3612,
210,
52,
1433,
454,
5,
30566,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the names of companies in the banking or retailing industry? | CREATE TABLE company (Name VARCHAR, Industry VARCHAR) | SELECT Name FROM company WHERE Industry = "Banking" OR Industry = "Retailing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
23954,
584,
4280,
28027,
6,
9036,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3056,
13,
688,
16,
8,
8175,
42,
3549,
53,
681,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5570,
21680,
349,
549,
17444,
427,
9036,
3274,
96,
21347,
53,
121,
4674,
9036,
3274,
96,
1649,
17,
17446,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the procedure for the patient id 74032? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "74032" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4293,
5,
7,
14184,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
940,
2445,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Count the number of urgent hospital admission patients who have unspecified myelodysplastic syndrome diagnoses. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.short_title = "Myelodysplastic synd NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
what comes immediately after complete series 11 ? | CREATE TABLE table_203_461 (
id number,
"dvd title" text,
"discs" number,
"year" text,
"no. of ep." number,
"dvd release\nregion 2" text,
"dvd release\nregion 4" text
) | SELECT "dvd title" FROM table_203_461 WHERE id = (SELECT id FROM table_203_461 WHERE "dvd title" = 'complete series 11') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4448,
536,
41,
3,
23,
26,
381,
6,
96,
26,
208,
26,
2233,
121,
1499,
6,
96,
19315,
7,
121,
381,
6,
96,
1201,
121,
1499,
6,
96,
29,
32,
5,
13,
3,
15,
102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26,
208,
26,
2233,
121,
21680,
953,
834,
23330,
834,
4448,
536,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
4448,
536,
549,
17444,
427,
96,
26,
208,
26,
2233,
... |
What is the Pashto word for the Malayalam word vyazham? | CREATE TABLE table_name_76 (
pashto VARCHAR,
malayalam VARCHAR
) | SELECT pashto FROM table_name_76 WHERE malayalam = "വ്യാഴം vyazham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
330,
107,
235,
584,
4280,
28027,
6,
3,
51,
22858,
40,
265,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6156,
107,
235,
1448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
330,
107,
235,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3,
51,
22858,
40,
265,
3274,
96,
2,
3,
208,
63,
9,
172,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the tigrinya for ams- | CREATE TABLE table_29134 (
"English" text,
"Proto-Semitic" text,
"IPA" text,
"Arabic" text,
"Hebrew" text,
"Tigrinya" text,
"Sabaean" text
) | SELECT COUNT("Tigrinya") FROM table_29134 WHERE "Arabic" = 'χams-' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
23747,
41,
96,
26749,
121,
1499,
6,
96,
3174,
235,
18,
134,
15,
1538,
447,
121,
1499,
6,
96,
25981,
121,
1499,
6,
96,
188,
7093,
447,
121,
1499,
6,
96,
3845,
1999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
23,
18363,
63,
9,
8512,
21680,
953,
834,
3166,
23747,
549,
17444,
427,
96,
188,
7093,
447,
121,
3274,
3,
31,
2,
265,
7,
18,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the years for engin 5.7l hemi v8? | CREATE TABLE table_name_82 (years VARCHAR, engine VARCHAR) | SELECT years FROM table_name_82 WHERE engine = "5.7l hemi v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
1201,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
203,
21,
3,
4606,
77,
3,
27220,
40,
3,
6015,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1948,
3274,
96,
27220,
40,
3,
6015,
23,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year gave a nominated result for the room 222 series? | CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR) | SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1201,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
1891,
3,
9,
150,
1109,
920,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
939,
3274,
96,
3082,
3,
26144,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which label was in the United Kingdom region? | CREATE TABLE table_52777 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_52777 WHERE "Region" = 'united kingdom' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
26225,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
434,
10333,
121,
21680,
953,
834,
5373,
26225,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
15129,
15,
26,
14740,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the constructor of the car driven by Heikki Kovalainen? | CREATE TABLE table_37765 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | SELECT "Constructor" FROM table_37765 WHERE "Driver" = 'heikki kovalainen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
4122,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
519,
4013,
4122,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
88,
23,
8511,
23,
3,
9789,
138,
9,
77,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the last names of students with major 50. | CREATE TABLE STUDENT (LName VARCHAR, Major VARCHAR) | SELECT LName FROM STUDENT WHERE Major = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
434,
23954,
584,
4280,
28027,
6,
9236,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
336,
3056,
13,
481,
28,
779,
943,
5,
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,
301,
23954,
21680,
5097,
10161,
6431,
549,
17444,
427,
9236,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player is from France? | CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR) | SELECT player FROM table_name_63 WHERE country = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
45,
1410,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
684,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
tell me the intake method for potassium chloride tab? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'potassium chloride tab' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
7757,
5,
20300,
20466,
29,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
3013,
6500,
440,
19782,
1599,
3808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the team classification for stage of 20 | CREATE TABLE table_name_92 (team_classification VARCHAR, stage VARCHAR) | SELECT team_classification FROM table_name_92 WHERE stage = "20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
11650,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
13774,
21,
1726,
13,
460,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1726,
3274,
96,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How big was the crowd when Richmond was the away team? | CREATE TABLE table_name_28 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT crowd FROM table_name_28 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
4374,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
600,
47,
8,
4374,
116,
17247,
47,
8,
550,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the total number of patients who had diverticulosis of colon with hemorrhage and abnormal lab test rsults. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Diverticulosis of colon with hemorrhage" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What years played did the player with a rank under 10, more than 271 matches, and 152 goals have? | CREATE TABLE table_name_82 (
years VARCHAR,
goals VARCHAR,
rank VARCHAR,
matches VARCHAR
) | SELECT years FROM table_name_82 WHERE rank < 10 AND matches > 271 AND goals = 152 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
203,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
11003,
3,
2,
335,
3430,
6407,
2490,
204,
4450,
3430,
1766,
3274,
3,
26320,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the name of each party and the corresponding number of delegates from that party. | CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE party (
... | SELECT T2.party, COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id GROUP BY T1.party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
5435,
834,
23,
26,
381,
6,
5435,
834,
4350,
1499,
6,
2074,
381,
6,
10658,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
4356,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
8071,
6,
2847,
17161,
599,
1935,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
8071,
3274,
332,
4416,
8071,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
807... |
What is the Magnitude on the Date May 28, 2004? | CREATE TABLE table_32289 (
"Date" text,
"Time" text,
"Epicenter" text,
"Magnitude" text,
"Fatalities" text,
"Name" text
) | SELECT "Magnitude" FROM table_32289 WHERE "Date" = 'may 28, 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
357,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
427,
102,
23,
13866,
121,
1499,
6,
96,
22909,
29,
20341,
121,
1499,
6,
96,
371,
9,
1947,
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,
22909,
29,
20341,
121,
21680,
953,
834,
2668,
357,
3914,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
13719,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the club with a 4:03.63 time? | CREATE TABLE table_name_91 (club VARCHAR, time VARCHAR) | SELECT club FROM table_name_91 WHERE time = "4:03.63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
13442,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1886,
28,
3,
9,
314,
10,
13267,
3891,
97,
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,
1886,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
97,
3274,
96,
591,
10,
13267,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Johnny Palmer with a To larger than 6 Money sum? | CREATE TABLE table_76217 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT SUM("Money ( $ )") FROM table_76217 WHERE "To par" > '6' AND "Player" = 'johnny palmer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
357,
2517,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
9168,
15,
63,
41,
1514,
3,
61,
8512,
21680,
953,
834,
3959,
357,
2517,
549,
17444,
427,
96,
3696,
260,
121,
2490,
3,
31,
948,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
27341,
29,
63,
8466,
... |
who was the only champion ? | CREATE TABLE table_203_200 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
) | SELECT "team" FROM table_203_200 WHERE "finished" = 'champion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3632,
41,
3,
23,
26,
381,
6,
96,
18145,
121,
1499,
6,
96,
7,
6958,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
509,
1836,
121,
1499,
6,
96,
19420,
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,
11650,
121,
21680,
953,
834,
23330,
834,
3632,
549,
17444,
427,
96,
19420,
121,
3274,
3,
31,
17788,
12364,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest Game when Morris Peterson (8) had the high assists? | CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR) | SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
7261,
3,
21342,
17966,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
4435,
116,
12193,
2737,
739,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
2528,
52,
159,
3947,
13515,
3,
28007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the number of goals conceded that has a played greater than 18? | CREATE TABLE table_79832 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | SELECT COUNT("Goals Conceded") FROM table_79832 WHERE "Played" > '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
4591,
357,
41,
96,
345,
11706,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6221,
5405,
1193,
565,
221,
26,
8512,
21680,
953,
834,
4440,
4591,
357,
549,
17444,
427,
96,
15800,
15,
26,
121,
2490,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me a histogram for what are the name and level of catalog structure with level number between 5 and 10, and sort y-axis in asc order. | CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
... | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_number | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
134,
17,
11783,
2693,
41,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17966,
6,
10173,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
4350,
584,
4280,
28027,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
4563,
834,
4350,
6,
10173,
834,
4563,
834,
5525,
1152,
21680,
22424,
834,
134,
17,
11783,
2693,
549,
17444,
427,
10173,
834,
4563,
834,
5525,
1152,
272,
7969,
518,
23394,
305,
3430,
335,
4674,
11300,
272,
... |
What is the Winner of the Event in Punta del Este? | CREATE TABLE table_name_67 (winner VARCHAR, city VARCHAR) | SELECT winner FROM table_name_67 WHERE city = "punta del este" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3757,
687,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
18125,
13,
8,
8042,
16,
276,
14016,
20,
40,
2972,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
690,
3274,
96,
102,
14016,
20,
40,
249,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the least season | CREATE TABLE table_2223177_3 (season INTEGER) | SELECT MIN(season) FROM table_2223177_3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2773,
26793,
834,
519,
41,
9476,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
774,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9476,
61,
21680,
953,
834,
2884,
2773,
26793,
834,
519,
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,
... |
Who remixed a music video in 1985? | CREATE TABLE table_6754 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT "Remixed by" FROM table_6754 WHERE "Year" = '1985' AND "Version" = 'music video' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
5062,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
13682,
15,
26,
57,
121,
21680,
953,
834,
3708,
5062,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4433,
31,
3430,
96,
5000,
1938,
121,
3274,
3,
31,
22170,
671,
31,
1,
-100,
-100,
-100,
-100,
... |
How many games were played by the player at FB? | CREATE TABLE table_38148 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT COUNT("Games\u2191") FROM table_38148 WHERE "Position" = 'fb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
24748,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23055,
7,
2,
76,
2658,
4729,
8512,
21680,
953,
834,
3747,
24748,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
89,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Compute the total how many class across class as a pie chart. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Class, COUNT(Class) FROM captain GROUP BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4501,
6,
2847,
17161,
599,
21486,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which City has a Country of spain, and a Stadium of palacio de deportes de santander? | CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, stadium VARCHAR) | SELECT city FROM table_name_57 WHERE country = "spain" AND stadium = "palacio de deportes de santander" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
6726,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
896,
65,
3,
9,
6993,
13,
4174,
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,
690,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
684,
3274,
96,
14147,
77,
121,
3430,
14939,
3274,
96,
6459,
4268,
32,
20,
20,
1493,
15,
7,
20,
3,
7,
288,
11849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the series number of the episode titled 'Rapture'? | CREATE TABLE table_23465 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT "No. in series" FROM table_23465 WHERE "Title" = 'Rapture' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3710,
4122,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
16,
939,
121,
21680,
953,
834,
357,
3710,
4122,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
448,
6789,
1462,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the night rank is 9, what is the total share number? | CREATE TABLE table_19805130_3 (
share VARCHAR,
rank__night_ VARCHAR
) | SELECT COUNT(share) FROM table_19805130_3 WHERE rank__night_ = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
3076,
21448,
834,
519,
41,
698,
584,
4280,
28027,
6,
11003,
834,
834,
7602,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
706,
11003,
19,
9902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
12484,
61,
21680,
953,
834,
24151,
3076,
21448,
834,
519,
549,
17444,
427,
11003,
834,
834,
7602,
834,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game that had 56,500 in attendance? | CREATE TABLE table_name_15 (
result VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_name_15 WHERE attendance = "56,500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
24,
141,
11526,
6,
2560,
16,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
11364,
3274,
96,
4834,
6,
2560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What difference has a points greater than 10, and a drawn less than 2? | CREATE TABLE table_75933 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT "Difference" FROM table_75933 WHERE "Points" > '10' AND "Drawn" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4271,
519,
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,
96,
308,
99,
11788,
121,
21680,
953,
834,
3072,
4271,
519,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
1714,
31,
3430,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong | CREATE TABLE table_20119 (
"Rd" real,
"Race" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | SELECT "Report" FROM table_20119 WHERE "Pole Position" = 'Carl Skerlong' AND "Winning team" = 'Newman Wachs Racing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13907,
1298,
41,
96,
448,
26,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
518,
10503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
1493,
121,
21680,
953,
834,
13907,
1298,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
6936,
40,
6458,
49,
2961,
31,
3430,
96,
518,
10503,
372,
121,
3274,
3,
31,
6861,
348,
27228,
7,
16046,
31,... |
Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no? | CREATE TABLE table_name_91 (
calendar VARCHAR,
image_attachment VARCHAR,
wysiwyg_editor VARCHAR,
unread_message_tracking VARCHAR
) | SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
4793,
584,
4280,
28027,
6,
1023,
834,
21148,
297,
584,
4280,
28027,
6,
3,
210,
63,
7,
23,
210,
63,
122,
834,
11272,
127,
584,
4280,
28027,
6,
73,
523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4793,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
3,
210,
63,
7,
23,
210,
63,
122,
834,
11272,
127,
3274,
96,
29,
32,
121,
3430,
73,
5236,
834,
2687,
7,
545,
834,
17,
22499,
3274,
96,
22197,
121,
3430,
10... |
which primary disease is the patient paul edwards suffering from? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Paul Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
23183,
8200,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the longest track in terms of time ? | CREATE TABLE table_203_353 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"time" text
) | SELECT "title" FROM table_203_353 ORDER BY "time" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
519,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
30844,
26,
3886,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
23330,
834,
2469,
519,
4674,
11300,
272,
476,
96,
715,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many times did drinking games win the poll? | CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR) | SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3940,
2596,
2518,
834,
519,
41,
834,
5525,
1152,
584,
4280,
28027,
6,
5492,
834,
3757,
687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
410,
666... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
834,
5525,
1152,
61,
21680,
953,
834,
1808,
3940,
2596,
2518,
834,
519,
549,
17444,
427,
5492,
834,
3757,
687,
3274,
96,
308,
13419,
53,
5880,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs? | CREATE TABLE table_70383 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "College/junior/club team" FROM table_70383 WHERE "NHL team" = 'toronto maple leafs' AND "Nationality" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3747,
519,
41,
96,
345,
3142,
1713,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
21680,
953,
834,
2518,
3747,
519,
549,
17444,
427,
96,
15743,
434,
372,
121,
3274,
3,
31,
235,
4438,
32,
22007,
8384,
7,
31,
3430,
96,
24732,
485,
121,
3274,... |
Which staff handled least number of payments? List the full name and the id. | CREATE TABLE payment (
staff_id VARCHAR
)
CREATE TABLE staff (
first_name VARCHAR,
last_name VARCHAR,
staff_id VARCHAR
) | SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1942,
41,
871,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
166,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14672,
834,
4350,
6,
332,
5411,
5064,
834,
4350,
6,
332,
5411,
26416,
834,
23,
26,
21680,
871,
6157,
332,
536,
3,
15355,
3162,
1942,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
26,
3274,
332,
4416,
... |
What is the current income inequality for the country of Seychelles? | CREATE TABLE table_name_15 (
income_inequality_1994_2011__latest_available_ VARCHAR,
country VARCHAR
) | SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = "seychelles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
2055,
834,
630,
4497,
834,
2294,
4240,
834,
13907,
834,
834,
521,
4377,
834,
28843,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2055,
834,
630,
4497,
834,
2294,
4240,
834,
13907,
834,
834,
521,
4377,
834,
28843,
834,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
684,
3274,
96,
7,
15,
14731,
3167,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of earning for more than 2 wins and less than 25 events? | CREATE TABLE table_name_97 (
earnings___ INTEGER,
wins VARCHAR,
events VARCHAR
) | SELECT SUM(earnings___) AS $__ FROM table_name_97 WHERE wins > 2 AND events < 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8783,
834,
834,
834,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2741,
29,
53,
7,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
9204,
2490,
204,
3430,
984,
3,
2,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the name of the first team on this chart ? | CREATE TABLE table_203_452 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "team" FROM table_203_452 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2128,
357,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
8478,
7,
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,
11650,
121,
21680,
953,
834,
23330,
834,
2128,
357,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.