NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which tourist attractions does the visitor with detail 'Vincent' visit? | CREATE TABLE VISITORS (
Tourist_ID VARCHAR,
Tourist_Details VARCHAR
)
CREATE TABLE Tourist_Attractions (
Name VARCHAR,
Tourist_Attraction_ID VARCHAR
)
CREATE TABLE VISITS (
Tourist_Attraction_ID VARCHAR,
Tourist_ID VARCHAR
) | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
20186,
3177,
22500,
41,
21375,
834,
4309,
584,
4280,
28027,
6,
21375,
834,
2962,
5756,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21375,
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,
1... | [
3,
23143,
14196,
332,
5411,
23954,
21680,
21375,
834,
188,
17,
10559,
7,
6157,
332,
536,
3,
15355,
3162,
3,
20186,
21273,
6157,
332,
357,
9191,
332,
5411,
382,
1211,
343,
834,
188,
17,
10559,
834,
4309,
3274,
332,
4416,
382,
1211,
3... |
Who replaced the manager of Akhisar B.G.S.? | CREATE TABLE table_74062 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Replaced by" FROM table_74062 WHERE "Team" = 'Akhisar B.G.S.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
5176,
357,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4687,
26,
57,
121,
21680,
953,
834,
4581,
5176,
357,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
188,
29392,
7,
291,
272,
5,
517,
5,
134,
5,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws? | CREATE TABLE table_43365 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT COUNT("Draws") FROM table_43365 WHERE "Losses" < '4' AND "Wins" < '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
10402,
41,
96,
279,
1748,
9,
1795,
7212,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
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,
2847,
17161,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
4906,
10402,
549,
17444,
427,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-10... |
presence of history of panel _ reactive anti _ hla antibodies > 10 % | CREATE TABLE table_train_250 (
"id" int,
"gender" string,
"waist_to_hip_ratio" float,
"creatinine_clearance_cl" float,
"panel_reactive_antibodies" int,
"insulin_requirement" float,
"serum_creatinine" float,
"NOUSE" float
) | SELECT * FROM table_train_250 WHERE panel_reactive_antibodies > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
11434,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
210,
9,
343,
834,
235,
834,
10462,
834,
6850,
32,
121,
3,
12660,
6,
96,
5045,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
11434,
549,
17444,
427,
2952,
834,
60,
6645,
834,
5965,
19987,
725,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find all movies written by ' Matt Damon | CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE actor (
... | SELECT movie.title FROM movie, writer, written_by WHERE writer.name = 'Matt Damon' AND written_by.msid = movie.mid AND written_by.wid = writer.wid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
17,
208,
834,
10833,
7,
41,
108,
26,
16,
17,
6,
2233,
1499,
6,
1576,
834,
1201,
16,
17,
6,
3,
5525,
834,
858,
834,
9476,
7,
16,
17,
6,
3,
5525,
834,
858,
834,
15,
102,
159... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1974,
5,
21869,
21680,
1974,
6,
4346,
6,
1545,
834,
969,
549,
17444,
427,
4346,
5,
4350,
3274,
3,
31,
329,
144,
17,
10939,
106,
31,
3430,
1545,
834,
969,
5,
51,
7,
23,
26,
3274,
1974,
5,
6983,
3430,
1545,
834,
... |
among patients diagnosed with fever in other diseases, how many of them were female? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Fever in other diseases" | [
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,
5... |
what datasets are used in papers by oren etzioni | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphr... | SELECT DISTINCT paperdataset.datasetid FROM author, paper, paperdataset, writes WHERE author.authorname = 'oren etzioni' AND paper.paperid = paperdataset.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
3,
4331,
4059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
6757,
2244,
5,
6757,
2244,
23,
26,
21680,
2291,
6,
1040,
6,
1040,
6757,
2244,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
127,
35,
3,
6706,
23,
106,
23,
31,
3430,
1... |
What is Segment B for series episode 12-08? | CREATE TABLE table_15187735_12 (
segment_b VARCHAR,
series_ep VARCHAR
) | SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-08" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
2122,
41,
5508,
834,
115,
584,
4280,
28027,
6,
939,
834,
15,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15696,
297,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5508,
834,
115,
21680,
953,
834,
26578,
27697,
2469,
834,
2122,
549,
17444,
427,
939,
834,
15,
102,
3274,
96,
2122,
18,
4018,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many seats were up for election during the vote where the election result was 9 and the new council 27? | CREATE TABLE table_name_10 (
seats_up_for_election INTEGER,
election_result VARCHAR,
new_council VARCHAR
) | SELECT SUM(seats_up_for_election) FROM table_name_10 WHERE election_result = 9 AND new_council > 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
6116,
834,
413,
834,
1161,
834,
15,
12252,
3,
21342,
17966,
6,
4356,
834,
60,
7,
83,
17,
584,
4280,
28027,
6,
126,
834,
509,
15254,
40,
584,
4280,
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,
180,
6122,
599,
7,
1544,
7,
834,
413,
834,
1161,
834,
15,
12252,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4356,
834,
60,
7,
83,
17,
3274,
668,
3430,
126,
834,
509,
15254,
40,
2490,
2307,
1,
-100,
-... |
what player went to ul-monroe | CREATE TABLE table_6516 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT "Player" FROM table_6516 WHERE "School" = 'ul-monroe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2938,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
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,
15800,
49,
121,
21680,
953,
834,
4122,
2938,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
83,
18,
2157,
52,
32,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the engine for the team of Alex Morales Motorsports? | CREATE TABLE table_name_19 (engine VARCHAR, team VARCHAR) | SELECT engine FROM table_name_19 WHERE team = "alex morales motorsports" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
20165,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1948,
21,
8,
372,
13,
5104,
28466,
15,
7,
30045,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
372,
3274,
96,
138,
994,
4854,
15,
7,
2340,
6661,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the Significant of a value 1.0? | CREATE TABLE table_38688 (
"Type" text,
"Actual Exponent" text,
"Exp (biased)" text,
"Exponent field" text,
"Significand (fraction field)" text,
"Value" text
) | SELECT "Significand (fraction field)" FROM table_38688 WHERE "Value" = '1.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3840,
4060,
41,
96,
25160,
121,
1499,
6,
96,
23312,
3471,
1881,
9977,
121,
1499,
6,
96,
12882,
41,
15500,
3843,
61,
121,
1499,
6,
96,
5420,
9977,
1057,
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,
134,
3191,
3286,
232,
41,
22513,
1057,
61,
121,
21680,
953,
834,
519,
3840,
4060,
549,
17444,
427,
96,
18392,
76,
15,
121,
3274,
3,
31,
12734,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate? | CREATE TABLE table_25635 (
"Season" text,
"Junior (South) Winners" text,
"Intermediate (South) Winners" text,
"Minor (South) Winners" text,
"Primary (South) Winners" text
) | SELECT COUNT("Minor (South) Winners") FROM table_25635 WHERE "Primary (South) Winners" = 'Mendip Gate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
2469,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
683,
202,
23,
127,
41,
22081,
61,
18125,
7,
121,
1499,
6,
96,
17555,
5700,
342,
41,
22081,
61,
18125,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
12858,
127,
41,
22081,
61,
18125,
7,
8512,
21680,
953,
834,
19337,
2469,
549,
17444,
427,
96,
7855,
51,
1208,
41,
22081,
61,
18125,
7,
121,
3274,
3,
31,
329,
35,
21981,
11118,
31,
1,
-100,
-... |
Where is the headquarter of the conglomerate industry? | CREATE TABLE table_35914 (
"Rank" real,
"Name" text,
"Headquarters" text,
"Primary industry" text,
"Market value ( USD million)" real
) | SELECT "Headquarters" FROM table_35914 WHERE "Primary industry" = 'conglomerate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3390,
2534,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
9,
26,
19973,
7,
121,
1499,
6,
96,
7855,
51,
1208,
681,
121,
1499,
6,
96,
22572,
701,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
9,
26,
19973,
7,
121,
21680,
953,
834,
519,
3390,
2534,
549,
17444,
427,
96,
7855,
51,
1208,
681,
121,
3274,
3,
31,
1018,
24422,
342,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE BUDGET FOR THE INCREDIBLES? | CREATE TABLE table_name_28 (
budget VARCHAR,
film VARCHAR
) | SELECT budget FROM table_name_28 WHERE film = "the incredibles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1487,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
272,
10161,
20750,
5652,
1853,
16003,
13729,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1487,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
814,
3274,
96,
532,
3904,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who manufactured the car driven by Will Power and Scott Dixon had the most laps? | CREATE TABLE table_27913160_3 (manufacturer VARCHAR, driver VARCHAR, most_laps_led VARCHAR) | SELECT manufacturer FROM table_27913160_3 WHERE driver = "Will Power" AND most_laps_led = "Scott Dixon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
2368,
19129,
834,
519,
41,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
167,
834,
8478,
7,
834,
1361,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4818,
21680,
953,
834,
357,
4440,
2368,
19129,
834,
519,
549,
17444,
427,
2535,
3274,
96,
518,
1092,
2621,
121,
3430,
167,
834,
8478,
7,
834,
1361,
3274,
96,
134,
10405,
30368,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many times did patient 005-87465 produce bulb #1 on the current icu visit? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-87465') AND patient.unitdischargetime IS NULL) AND intakeoutput.cellpa... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
11963,
670,
2562,
549,
17444,
427,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
... |
what is hisor her total semifinal points to qualify for the 12th position ? | CREATE TABLE table_203_439 (
id number,
"pos." number,
"rider" text,
"semi-final points" number,
"final points" number,
"final heats" text,
"total points" number
) | SELECT "semi-final points" FROM table_203_439 WHERE "pos." = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3288,
41,
3,
23,
26,
381,
6,
96,
2748,
535,
381,
6,
96,
4055,
49,
121,
1499,
6,
96,
7,
15,
51,
23,
18,
12406,
979,
121,
381,
6,
96,
12406,
979,
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,
7,
15,
51,
23,
18,
12406,
979,
121,
21680,
953,
834,
23330,
834,
591,
3288,
549,
17444,
427,
96,
2748,
535,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the year Elected of Republican Incumbent Dave Reichert? | CREATE TABLE table_name_31 (
elected VARCHAR,
party VARCHAR,
incumbent VARCHAR
) | SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "dave reichert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
8160,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
215,
1289,
7633,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8160,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
28406,
3274,
96,
26,
9,
162,
3,
4994,
49,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for set 2 when set 3 was 25 22? | CREATE TABLE table_name_74 (
set_2 VARCHAR,
set_3 VARCHAR
) | SELECT set_2 FROM table_name_74 WHERE set_3 = "25–22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
356,
834,
357,
584,
4280,
28027,
6,
356,
834,
519,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
356,
204,
116,
356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
356,
834,
357,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
356,
834,
519,
3274,
96,
1828,
104,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people? | CREATE TABLE table_name_2 (
municipality VARCHAR,
population VARCHAR,
county VARCHAR,
area VARCHAR,
area_km² VARCHAR
) | SELECT municipality FROM table_name_2 WHERE area = "outer circle south" AND area_km² < 368 AND county = "akershus" AND population > 14 OFFSET 398 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
27597,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
6,
616,
834,
5848,
357,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
27597,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
616,
3274,
96,
670,
49,
8196,
3414,
121,
3430,
616,
834,
5848,
357,
3,
2,
220,
3651,
3430,
5435,
3274,
96,
9,
11758,
11823,
121,
3430,
2074,
2490,
968,
3,
1... |
What date did Footscray play and Away game? | CREATE TABLE table_11795 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_11795 WHERE "Away team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
3301,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
20275,
3301,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all role codes and the number of employees in each role by a bar chart, could you sort from low to high by the names? | CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Documents_to_be_Des... | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code ORDER BY Role_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
434,
32,
75,
1628,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
10450,
834,
22737,
3,
28027,
599,
1808,
201,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
309,
6048,
382... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2158,
109,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
15871,
7,
350,
4630,
6880,
272,
476,
2158,
109,
834,
22737,
4674,
11300,
272,
476,
2158,
109,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the number of viewers in millions for the broadcast from 2010? | CREATE TABLE table_24212608_1 (viewers__millions_ VARCHAR, broadcast_date VARCHAR) | SELECT viewers__millions_ FROM table_24212608_1 WHERE broadcast_date = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2658,
2688,
4018,
834,
536,
41,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
6878,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13569,
834,
834,
17030,
7,
834,
21680,
953,
834,
2266,
2658,
2688,
4018,
834,
536,
549,
17444,
427,
6878,
834,
5522,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
fasting plasma glucose ( fpg ) <= 210 mg / deciliter ( dl; central lab ) at screening. if the first fpg value does not meet eligibility criterion | CREATE TABLE table_train_252 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"fasting_plasma_glucose_fpg" float,
"hemoglobin_a1c_hba1c" float,
"hba1c" float,
"serum_creatinine" float,
"metformin" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_252 WHERE fasting_plasma_glucose_fpg <= 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
1828,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
11584,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
1828,
357,
549,
17444,
427,
1006,
53,
834,
21178,
9,
834,
13492,
509,
7,
15,
834,
89,
102,
122,
3,
2,
2423,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the sales in Japan for the release totaling 1.82 million? | CREATE TABLE table_13487 (
"Date" text,
"Japan" text,
"Americas" text,
"Other" text,
"Total" text
) | SELECT "Japan" FROM table_13487 WHERE "Total" = '1.82 million' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
4225,
41,
96,
308,
342,
121,
1499,
6,
96,
683,
9,
2837,
121,
1499,
6,
96,
28746,
7,
121,
1499,
6,
96,
667,
189,
49,
121,
1499,
6,
96,
3696,
1947,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
683,
9,
2837,
121,
21680,
953,
834,
23747,
4225,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
16253,
357,
770,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine? | CREATE TABLE table_name_22 (
season INTEGER,
podiums VARCHAR,
engine VARCHAR,
driver VARCHAR
) | SELECT MAX(season) FROM table_name_22 WHERE engine = "ferrari" AND driver = "fernando alonso" AND podiums > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
774,
3,
21342,
17966,
6,
22828,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9476,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1948,
3274,
96,
1010,
52,
1665,
121,
3430,
2535,
3274,
96,
8377,
232,
32,
3,
9,
14061,
32,
121,
3430,
22828,
7,
2490,
1179,
1,
-100,
-100,... |
What is the value for Wins when the Position is 7th? | CREATE TABLE table_name_67 (wins VARCHAR, position VARCHAR) | SELECT wins FROM table_name_67 WHERE position = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3757,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
21,
4871,
7,
116,
8,
14258,
19,
489,
189,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1102,
3274,
96,
940,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Place, when Score is '66', when Country is 'United States', and when Player is 'Dudley Hart'? | CREATE TABLE table_59722 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Place" FROM table_59722 WHERE "Score" = '66' AND "Country" = 'united states' AND "Player" = 'dudley hart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
5865,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
3390,
5865,
357,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3539,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
... |
Who did they play on August 12? | CREATE TABLE table_name_48 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_48 WHERE date = "august 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
79,
577,
30,
1660,
586,
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,
15264,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
402,
17198,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the class for the ERP W of 500? | CREATE TABLE table_49053 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "Class" FROM table_49053 WHERE "ERP W" = '500' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3076,
519,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
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,
21486,
121,
21680,
953,
834,
3647,
3076,
519,
549,
17444,
427,
96,
3316,
345,
549,
121,
3274,
3,
31,
2560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
HOW MANY GAMES WERE TIED AT 76? | CREATE TABLE table_17822 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Drawn" FROM table_17822 WHERE "Points" = '76' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
2884,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10936,
29,
121,
21680,
953,
834,
27640,
2884,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is solo when total tackles is 6? | CREATE TABLE table_name_82 (
solo VARCHAR,
total_tackles VARCHAR
) | SELECT solo FROM table_name_82 WHERE total_tackles = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
6729,
584,
4280,
28027,
6,
792,
834,
17,
4365,
965,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
6729,
116,
792,
8000,
7,
19,
431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6729,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
792,
834,
17,
4365,
965,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the segment c for pottery | CREATE TABLE table_15187735_3 (
segment_c VARCHAR,
segment_b VARCHAR
) | SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Pottery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
519,
41,
5508,
834,
75,
584,
4280,
28027,
6,
5508,
834,
115,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5508,
3,
75,
21,
2717... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5508,
834,
75,
21680,
953,
834,
26578,
27697,
2469,
834,
519,
549,
17444,
427,
5508,
834,
115,
3274,
96,
345,
14708,
651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the chassis for engine of brm v12 | CREATE TABLE table_68920 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Chassis" FROM table_68920 WHERE "Engine" = 'brm v12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
27749,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
3651,
27749,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
115,
52,
51,
3,
208,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest attendance at Venue H in Round R2? | CREATE TABLE table_name_27 (attendance INTEGER, venue VARCHAR, round VARCHAR) | SELECT MIN(attendance) FROM table_name_27 WHERE venue = "h" AND round = "r2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
15116,
663,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11364,
44,
29940,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
5669,
3274,
96,
107,
121,
3430,
1751,
3274,
96,
52,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What value in 2013 corresponds to Grand Slam Tournaments in 2012? | CREATE TABLE table_33199 (
"Tournament" text,
"2007" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "2013" FROM table_33199 WHERE "2012" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
19479,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
121,
1499,
6,
96,
11138,
121,
1499,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
11138,
121,
21680,
953,
834,
4201,
19479,
549,
17444,
427,
96,
12172,
121,
3274,
3,
31,
15448,
3,
7,
40,
265,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average total for 0 bronze? | CREATE TABLE table_name_98 (total INTEGER, bronze INTEGER) | SELECT AVG(total) FROM table_name_98 WHERE bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
235,
1947,
3,
21342,
17966,
6,
13467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
792,
21,
3,
632,
13467,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many locations does Elon University have? | CREATE TABLE table_16403890_1 (
location VARCHAR,
institution VARCHAR
) | SELECT COUNT(location) FROM table_16403890_1 WHERE institution = "Elon University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2445,
3747,
2394,
834,
536,
41,
1128,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3248,
405,
1289,
106,
636,
43,
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,
2847,
17161,
599,
14836,
61,
21680,
953,
834,
2938,
2445,
3747,
2394,
834,
536,
549,
17444,
427,
6568,
3274,
96,
10991,
106,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which purse has the most money ? | CREATE TABLE table_204_865 (
id number,
"date" text,
"tournament" text,
"winner" text,
"purse ($)" number,
"notes" text
) | SELECT "tournament" FROM table_204_865 ORDER BY "purse ($)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3840,
755,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
3757,
687,
121,
1499,
6,
96,
3791,
7,
15,
8785,
61,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17,
1211,
20205,
17,
121,
21680,
953,
834,
26363,
834,
3840,
755,
4674,
11300,
272,
476,
96,
3791,
7,
15,
8785,
61,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the school/club team of the player with a pick larger than 83? | CREATE TABLE table_name_26 (school_club_team VARCHAR, pick INTEGER) | SELECT school_club_team FROM table_name_26 WHERE pick > 83 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
496,
87,
13442,
372,
13,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1432,
2490,
3,
4591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which nationality had the larger amount of names listed ? | CREATE TABLE table_204_698 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
) | SELECT "nationality" FROM table_204_698 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
927,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4597,
715,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
2264,
179,
38,
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,
16557,
485,
121,
21680,
953,
834,
26363,
834,
3951,
927,
350,
4630,
6880,
272,
476,
96,
16557,
485,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
4350,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,... |
What is the total rank of team roanne, which has less than 14 games? | CREATE TABLE table_name_58 (rank VARCHAR, team VARCHAR, games VARCHAR) | SELECT COUNT(rank) FROM table_name_58 WHERE team = "roanne" AND games < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
6254,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
11003,
13,
372,
3,
52,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
372,
3274,
96,
52,
32,
4515,
121,
3430,
1031,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me the total number of patients in the hospital last year? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientuni... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
10208,
13,
215,
31,
61,
3274,
309,
6048,
382,... |
has patient 035-3162 had any prescription for any medicines since 2103? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-3162')) AND STRFTIME('%y', medication.drugstarttime) >= '2103' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Which Winners club has a Week of 4.5? | CREATE TABLE table_78862 (
"Week" real,
"Event" text,
"Air Date" text,
"Winning team" text,
"Winners club" text
) | SELECT "Winners club" FROM table_78862 WHERE "Week" = '4.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3840,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
427,
2169,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
518,
10503,
372,
121,
1499,
6,
96,
18455,
687,
7,
1886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
7,
1886,
121,
21680,
953,
834,
3940,
3840,
357,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
12451,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did the home team score 12.7 (79)? | CREATE TABLE table_11102 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_11102 WHERE "Home team score" = '12.7 (79)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
14388,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2596,
14388,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
9368,
940,
41,
4440,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the away team was collingwood, what was the away team score? | CREATE TABLE table_name_86 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_86 WHERE away_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
550,
372,
47,
8029,
53,
2037,
6,
125,
47,
8,
550,
372,
2604,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the home team score when the away team was Hawthorn? | CREATE TABLE table_56613 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_56613 WHERE "Away team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
2368,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
755,
3539,
2368,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who wrote the episode that had 5.93 million viewers? | CREATE TABLE table_27846651_1 (writer VARCHAR, viewers__millions_ VARCHAR) | SELECT writer FROM table_27846651_1 WHERE viewers__millions_ = "5.93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4608,
3539,
5553,
834,
536,
41,
12756,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
2555,
4608,
3539,
5553,
834,
536,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
9125,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6? | CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR) | SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = "bmw" AND time = "1:18.47.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
4687,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1437,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
286,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4687,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
979,
2490,
209,
3430,
1437,
3274,
96,
29471,
121,
3430,
97,
3274,
96,
536,
10,
2606,
5,
4177,
5,
948,
121,
1,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a scatter chart about the correlation between employee_id and manager_id . | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382... |
What shows at 12:30 pm when 1:30 pm is All My Children? | CREATE TABLE table_61202 (
"7:00 am" text,
"7:30 am" text,
"8:00 am" text,
"9:00 am" text,
"11:00 am" text,
"noon" text,
"12:30 pm" text,
"1:00 pm" text,
"1:30 pm" text,
"2:00 pm" text,
"3:00 pm" text,
"3:30 pm" text,
"4:00 pm" text,
"4:30 pm" text,
"5:00 pm" ... | SELECT "12:30 pm" FROM table_61202 WHERE "1:30 pm" = 'all my children' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
19818,
41,
96,
18735,
183,
121,
1499,
6,
96,
18078,
183,
121,
1499,
6,
96,
15692,
183,
121,
1499,
6,
96,
1298,
10,
1206,
183,
121,
1499,
6,
96,
536,
24294,
183,
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,
536,
21876,
6366,
121,
21680,
953,
834,
4241,
19818,
549,
17444,
427,
96,
20120,
6366,
121,
3274,
3,
31,
1748,
82,
502,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of purchases for each coffee shop address in a pie chart. | CREATE TABLE member (
Member_ID int,
Name text,
Membership_card text,
Age int,
Time_of_purchase int,
Level_of_membership int,
Address text
)
CREATE TABLE shop (
Shop_ID int,
Address text,
Num_of_staff text,
Score real,
Open_Year text
)
CREATE TABLE happy_hour (
HH_I... | SELECT Address, COUNT(Address) FROM member GROUP BY Address ORDER BY Time_of_purchase | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
16,
17,
6,
5570,
1499,
6,
19428,
834,
6043,
1499,
6,
7526,
16,
17,
6,
2900,
834,
858,
834,
29446,
16,
17,
6,
7166,
834,
858,
834,
12066,
2009,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
13246,
6,
2847,
17161,
599,
20773,
9377,
61,
21680,
1144,
350,
4630,
6880,
272,
476,
13246,
4674,
11300,
272,
476,
2900,
834,
858,
834,
29446,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the date with game being 72 | CREATE TABLE table_18821 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_18821 WHERE "Game" = '72' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2658,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
25794,
2658,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
5865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Is Jasper being producted? | CREATE TABLE table_name_66 (
in_production VARCHAR,
codename VARCHAR
) | SELECT in_production FROM table_name_66 WHERE codename = "jasper" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
16,
834,
20762,
584,
4280,
28027,
6,
1081,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
7,
2215,
4339,
271,
556,
15,
26,
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,
16,
834,
20762,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1081,
4350,
3274,
96,
1191,
4339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had an attendance of 76,518? | CREATE TABLE table_name_27 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_27 WHERE attendance = "76,518" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
141,
46,
11364,
13,
3,
3959,
6,
755,
2606,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
11364,
3274,
96,
3959,
6,
755,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the player for fc dallas pick number less than 3 | CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR) | SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
20846,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
51,
40,
7,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
220,
3430,
3,
51,
40,
7,
834,
11650,
3274,
96,
89,
75,
836,
195,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many metres is the tallest pylon ? | CREATE TABLE table_203_375 (
id number,
"name" text,
"year built" text,
"country" text,
"town" text,
"height" text,
"remarks" text
) | SELECT "height" FROM table_203_375 ORDER BY "height" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
22954,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
1201,
1192,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
3540,
121,
1499,
6,
96,
88,
2632,
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,
88,
2632,
121,
21680,
953,
834,
23330,
834,
22954,
4674,
11300,
272,
476,
96,
88,
2632,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the digital for tuner of thomson dtt75105 | CREATE TABLE table_name_91 (
digital VARCHAR,
tuner VARCHAR
) | SELECT digital FROM table_name_91 WHERE tuner = "thomson dtt75105" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1125,
584,
4280,
28027,
6,
5240,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1125,
21,
5240,
49,
13,
3,
17,
10207,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1125,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
5240,
49,
3274,
96,
17,
10207,
739,
3,
26,
17,
17,
3072,
12869,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name for district total:? | CREATE TABLE table_61068 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT "Name" FROM table_61068 WHERE "District" = 'total:' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
3651,
41,
96,
4302,
2248,
17,
76,
4392,
381,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
1649,
3473,
15,
26,
21,
41,
6508,
3,
87,
5097,
3,
87,
567,
782,
61,
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,
23954,
121,
21680,
953,
834,
27097,
3651,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
235,
1947,
10,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the last names of all the authors that have written a paper with title containing the word "Monadic". | CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR) | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Monadic%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
2009,
41,
402,
17,
11740,
584,
4280,
28027,
6,
1040,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
40,
4350,
584,
4280,
28027,
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,
17,
5411,
40,
4350,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
... |
How many times was the rank (night) 11? | CREATE TABLE table_11253290_2 (
viewers__millions_ VARCHAR,
rank__night_ VARCHAR
) | SELECT COUNT(viewers__millions_) FROM table_11253290_2 WHERE rank__night_ = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1828,
2668,
2394,
834,
357,
41,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
11003,
834,
834,
7602,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4576,
277,
834,
834,
17030,
7,
834,
61,
21680,
953,
834,
2596,
1828,
2668,
2394,
834,
357,
549,
17444,
427,
11003,
834,
834,
7602,
834,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2006 figure for Argentina when 2007 is less than 0,15? | CREATE TABLE table_50092 (
"Country" text,
"Unit p koe/$05" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real
) | SELECT COUNT("2006") FROM table_50092 WHERE "Country" = 'argentina' AND "2007" < '0,15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4508,
41,
96,
10628,
651,
121,
1499,
6,
96,
5110,
155,
3,
102,
3,
157,
32,
15,
87,
3229,
3076,
121,
1499,
6,
96,
21196,
121,
490,
6,
96,
20615,
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,
21196,
8512,
21680,
953,
834,
2560,
4508,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
9917,
77,
9,
31,
3430,
96,
20615,
121,
3,
2,
3,
31,
632,
6,
1808,
31,
1,
-100,
-100,
-100,
-100... |
At what latitude can the name origin of yuzut-arkh fossae be found? | CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR) | SELECT latitude FROM table_16799784_11 WHERE name = "Yuzut-Arkh Fossae" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
21441,
591,
834,
2596,
41,
521,
6592,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
50,
6592,
54,
8,
564,
5233,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
50,
6592,
21680,
953,
834,
2938,
4440,
21441,
591,
834,
2596,
549,
17444,
427,
564,
3274,
96,
476,
76,
1000,
17,
18,
188,
52,
157,
107,
4452,
7,
7,
9,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pr ? | CREATE TABLE table_29302781_12 (
semifinalists VARCHAR,
week_of VARCHAR,
runner_up VARCHAR
) | SELECT semifinalists FROM table_29302781_12 WHERE week_of = "13 November" AND runner_up = "Pat Du Pré" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1458,
2555,
4959,
834,
2122,
41,
4772,
28077,
584,
4280,
28027,
6,
471,
834,
858,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
4772,
28077,
21680,
953,
834,
3166,
1458,
2555,
4959,
834,
2122,
549,
17444,
427,
471,
834,
858,
3274,
96,
2368,
1671,
121,
3430,
3,
10806,
834,
413,
3274,
96,
345,
144,
970,
14559,
121,
1,
-100,
-100,
-100,
-100,
-... |
What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5? | CREATE TABLE table_name_75 (
bronze INTEGER,
silver VARCHAR,
rank VARCHAR
) | SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13467,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
13467,
9365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4294,
3,
2,
209,
3430,
11003,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Commissioned, when Laid Down is "6 September 2003"? | CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) | SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
17183,
584,
4280,
28027,
6,
7245,
834,
3035,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3527,
15,
26,
6,
116,
325,
23,
26,
7309,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17183,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
7245,
834,
3035,
3274,
96,
948,
16022,
18247,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What time is it for the southern home team? | CREATE TABLE table_63149 (
"Time" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text
) | SELECT "Time" FROM table_63149 WHERE "Home team" = 'southern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
24816,
41,
96,
13368,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
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,
96,
13368,
121,
21680,
953,
834,
3891,
24816,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
670,
760,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How much time is required for less than 35 laps and less than 10 grids? | CREATE TABLE table_name_9 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_9 WHERE laps < 35 AND grid < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
97,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
14941,
7,
3,
2,
3097,
3430,
8634,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who won the womens singles in the 1958/1959 season? | CREATE TABLE table_12266757_1 (
womens_singles VARCHAR,
season VARCHAR
) | SELECT womens_singles FROM table_12266757_1 WHERE season = "1958/1959" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2688,
3708,
3436,
834,
536,
41,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
887,
7,
712... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
887,
7,
834,
7,
53,
965,
21680,
953,
834,
2122,
2688,
3708,
3436,
834,
536,
549,
17444,
427,
774,
3274,
96,
2294,
3449,
13523,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many different people directed the episode titled 'Born under a bad sign'? | CREATE TABLE table_1840 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT COUNT("Directed by") FROM table_1840 WHERE "Title" = 'Born Under a Bad Sign' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2445,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23620,
15,
26,
57,
8512,
21680,
953,
834,
2606,
2445,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
279,
127,
29,
3526,
3,
9,
3862,
6365,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host? | CREATE TABLE table_name_1 (
studio_host VARCHAR,
year VARCHAR,
play_by_play VARCHAR,
flagship_station VARCHAR
) | SELECT studio_host FROM table_name_1 WHERE play_by_play = "sean grande" AND flagship_station = "wrko" AND year = "2005-06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3100,
834,
12675,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
577,
834,
969,
834,
4895,
584,
4280,
28027,
6,
19241,
834,
6682,
584,
4280,
28027,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3100,
834,
12675,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
577,
834,
969,
834,
4895,
3274,
96,
7,
15,
152,
3749,
121,
3430,
19241,
834,
6682,
3274,
96,
210,
52,
157,
32,
121,
3430,
215,
3274,
96,
22594,
1... |
Who is every stage winner at the distance of 162.5? | CREATE TABLE table_3792 (
"Year" text,
"Stage" real,
"Start of stage" text,
"Distance (km)" text,
"Category of climb" text,
"Stage winner" text,
"Nationality" text,
"Yellow jersey" text,
"Bend" real
) | SELECT "Stage winner" FROM table_3792 WHERE "Distance (km)" = '162.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4508,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
6505,
121,
490,
6,
96,
7681,
17,
13,
1726,
121,
1499,
6,
96,
308,
23,
8389,
41,
5848,
61,
121,
1499,
6,
96,
18610,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6505,
4668,
121,
21680,
953,
834,
4118,
4508,
549,
17444,
427,
96,
308,
23,
8389,
41,
5848,
61,
121,
3274,
3,
31,
2938,
15967,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Record has a Visitor of pittsburgh, and a Score of 4–0? | CREATE TABLE table_name_23 (record VARCHAR, visitor VARCHAR, score VARCHAR) | SELECT record FROM table_name_23 WHERE visitor = "pittsburgh" AND score = "4–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
60,
7621,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
9,
4957,
127,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
7019,
3274,
96,
5230,
17,
7289,
107,
121,
3430,
2604,
3274,
96,
591,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result of the match on 30 July 2004? | CREATE TABLE table_name_78 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_78 WHERE date = "30 july 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
1588,
30,
604,
1718,
4406,
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,
741,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
833,
3274,
96,
1458,
3,
2047,
120,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the venue of the match with more than 8 against and ireland as the opposing team? | CREATE TABLE table_name_33 (
venue VARCHAR,
against VARCHAR,
opposing_teams VARCHAR
) | SELECT venue FROM table_name_33 WHERE against > 8 AND opposing_teams = "ireland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5669,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
581,
2490,
505,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
2060,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was Leeds United the away team? | CREATE TABLE table_name_36 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_36 WHERE away_team = "leeds united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
23370,
907,
8,
550,
372,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
550,
834,
11650,
3274,
96,
40,
6958,
7,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the name for round of e | CREATE TABLE table_name_29 (name VARCHAR, round VARCHAR) | SELECT name FROM table_name_29 WHERE round = "e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
4350,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
564,
21,
1751,
13,
3,
15,
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,
564,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1751,
3274,
96,
15,
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 was the margin of victory for the event in lake forest, illinois? | CREATE TABLE table_275162_1 (
margin_of_victory VARCHAR,
location VARCHAR
) | SELECT margin_of_victory FROM table_275162_1 WHERE location = "Lake Forest, Illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
2938,
357,
834,
536,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6346,
13,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
25988,
2938,
357,
834,
536,
549,
17444,
427,
1128,
3274,
96,
3612,
1050,
6944,
6,
7659,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What company built the ship named excellent in 1998? | CREATE TABLE table_name_59 (company VARCHAR, built VARCHAR, ship VARCHAR) | SELECT company FROM table_name_59 WHERE built = 1998 AND ship = "excellent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
29179,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
349,
1192,
8,
4383,
2650,
1287,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
349,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1192,
3274,
6260,
3430,
4383,
3274,
96,
29745,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE WORLDWIDE BOX OFFICE FOR BRAVE? | CREATE TABLE table_76669 (
"Film" text,
"Opening" text,
"Budget" text,
"Domestic" text,
"Worldwide" text
) | SELECT "Worldwide" FROM table_76669 WHERE "Film" = 'brave' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3539,
3951,
41,
96,
371,
173,
51,
121,
1499,
6,
96,
22696,
53,
121,
1499,
6,
96,
279,
13164,
17,
121,
1499,
6,
96,
4135,
2687,
1225,
121,
1499,
6,
96,
17954,
6728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17954,
6728,
121,
21680,
953,
834,
940,
3539,
3951,
549,
17444,
427,
96,
371,
173,
51,
121,
3274,
3,
31,
1939,
162,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When voronezh is the oblast\age what is the lowest result of 65 to 69? | CREATE TABLE table_20842 (
"C/W 15+" real,
"Oblast\\Age" text,
"15 to 17" real,
"18 to 19" text,
"20 to 24" real,
"25 to 29" real,
"30 to 34" real,
"35 to 39" real,
"40 to 44" real,
"45 to 49" real,
"50 to 54" real,
"55 to 59" real,
"60 to 64" real,
"65 to 69" rea... | SELECT MIN("65 to 69") FROM table_20842 WHERE "Oblast\\Age" = 'Voronezh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
4165,
41,
96,
254,
87,
518,
627,
1220,
121,
490,
6,
96,
667,
21234,
2,
188,
397,
121,
1499,
6,
96,
1808,
12,
1003,
121,
490,
6,
96,
2606,
12,
957,
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,
3,
17684,
599,
121,
4122,
12,
3,
3951,
8512,
21680,
953,
834,
23946,
4165,
549,
17444,
427,
96,
667,
21234,
2,
188,
397,
121,
3274,
3,
31,
553,
127,
106,
457,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission type is elective and lab test name is cd4/cd8 ratio? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "CD4/CD8 Ratio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is To Par, when Year(s) Won is '1968 , 1971'? | CREATE TABLE table_name_99 (
to_par VARCHAR,
year_s__won VARCHAR
) | SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
12,
834,
1893,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
304,
2180,
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,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
3651,
3,
6,
17961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Result when the week is later than 9, and there are 65,858 people in attendance? | CREATE TABLE table_40814 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_40814 WHERE "Week" > '9' AND "Attendance" = '65,858' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
2534,
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,
20119,
121,
21680,
953,
834,
2445,
927,
2534,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
1298,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4122,
6,
927,
3449,
31,
1,
-100,
-100,
-100,
-100... |
What date was the Madonie Circuit? | CREATE TABLE table_name_22 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_22 WHERE circuit = "madonie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
5522,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
5428,
106,
23,
15,
17007,
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,
833,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
4558,
3274,
96,
11374,
106,
23,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Series of oilers win 4 3 had what highest game? | CREATE TABLE table_75435 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | SELECT MAX("Game") FROM table_75435 WHERE "Series" = 'oilers win 4–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
2469,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
12106,
7,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
3072,
591,
2469,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
32,
173,
277,
1369,
314,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show card number, name, and hometown for all members in a descending order of level. | CREATE TABLE membership_register_branch (
member_id number,
branch_id text,
register_year text
)
CREATE TABLE branch (
branch_id number,
name text,
open_year text,
address_road text,
city text,
membership_amount text
)
CREATE TABLE member (
member_id number,
card_number tex... | SELECT card_number, name, hometown FROM member ORDER BY level DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4757,
834,
22149,
834,
1939,
5457,
41,
1144,
834,
23,
26,
381,
6,
6421,
834,
23,
26,
1499,
6,
3691,
834,
1201,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6421,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
895,
834,
5525,
1152,
6,
564,
6,
22295,
21680,
1144,
4674,
11300,
272,
476,
593,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which nation won the boxing championship in 2012? | CREATE TABLE table_name_1 (
nation_represented VARCHAR,
year VARCHAR
) | SELECT nation_represented FROM table_name_1 WHERE year = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
2982,
834,
29845,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
751,
8,
1367,
53,
10183,
16,
1673,
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,
2982,
834,
29845,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
215,
3274,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When did the country that produced 1,213,000 (21st) bbl/day join Opec? | CREATE TABLE table_20921 (
"Country" text,
"Region" text,
"Joined OPEC" real,
"Population (July 2012)" real,
"Area (km\u00b2)" real,
"Production ( bbl /day)" text
) | SELECT "Joined OPEC" FROM table_20921 WHERE "Production ( bbl /day)" = '1,213,000 (21st)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4198,
2658,
41,
96,
10628,
651,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
683,
32,
630,
26,
3,
4652,
3073,
121,
490,
6,
96,
27773,
7830,
41,
683,
83,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
683,
32,
630,
26,
3,
4652,
3073,
121,
21680,
953,
834,
357,
4198,
2658,
549,
17444,
427,
96,
3174,
8291,
41,
3,
115,
115,
40,
3,
87,
1135,
61,
121,
3274,
3,
31,
4347,
2658,
11212,
41,
2658,
7,
17,
61,
31,
... |
What is the Result of the 2010 (83rd) Ceremony? | CREATE TABLE table_name_11 (
result VARCHAR,
year__ceremony_ VARCHAR
) | SELECT result FROM table_name_11 WHERE year__ceremony_ = "2010 (83rd)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
741,
584,
4280,
28027,
6,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
20119,
13,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
215,
834,
834,
2110,
15,
21208,
834,
3274,
96,
14926,
41,
4591,
52,
26,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
find the insurance of subject id 6983. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT demographic.insurance FROM demographic WHERE demographic.subject_id = "6983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
29441,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3951,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score on 19/08/2012? | CREATE TABLE table_9033 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Score" FROM table_9033 WHERE "Date" = '19/08/2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
4201,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2394,
4201,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2294,
87,
4018,
87,
12172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest attendance for December 14, 1958 for after week 12 | CREATE TABLE table_65593 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MAX("Attendance") FROM table_65593 WHERE "Date" = 'december 14, 1958' AND "Week" > '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3390,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
4122,
3390,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
11363,
22306,
31,
3430,
96,
518,
10266,
121,
2490,
3,
31,
2122,
... |
What was the score for the episode with Matt Smith as Andrew and Jack's guest? | CREATE TABLE table_29141354_7 (scores VARCHAR, andrew_and_jacks_guest VARCHAR) | SELECT scores FROM table_29141354_7 WHERE andrew_and_jacks_guest = "Matt Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2534,
2368,
5062,
834,
940,
41,
7,
9022,
7,
584,
4280,
28027,
6,
11,
60,
210,
834,
232,
834,
9325,
7,
834,
15991,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
7586,
21680,
953,
834,
3166,
2534,
2368,
5062,
834,
940,
549,
17444,
427,
11,
60,
210,
834,
232,
834,
9325,
7,
834,
15991,
17,
3274,
96,
329,
144,
17,
3931,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472? | CREATE TABLE table_71102 (
"State" text,
"Preliminaries" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT MIN("Preliminaries") FROM table_71102 WHERE "Evening Gown" = '8.472' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
14388,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
5414,
121,
490,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
10572,
4941,
77,
5414,
8512,
21680,
953,
834,
4450,
14388,
549,
17444,
427,
96,
427,
1926,
53,
350,
9197,
121,
3274,
3,
31,
927,
5,
4177,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the tally with total less than 27 and average more than 3.41 | CREATE TABLE table_name_86 (
tally VARCHAR,
total VARCHAR,
average VARCHAR
) | SELECT tally FROM table_name_86 WHERE total < 27 AND average > 3.41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3,
17,
1427,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
17,
1427,
28,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
1427,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
792,
3,
2,
2307,
3430,
1348,
2490,
1877,
4853,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the gender and insurance of patient id 15898? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.gender, demographic.insurance FROM demographic WHERE demographic.subject_id = "15898" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
122,
3868,
6,
14798,
5,
29441,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
26556,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the correlation between ACC_Percent and All_Games_Percent , and group by attribute All_Games in a scatter chart. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
12988,
3728,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-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.