NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which entrant had a constructor of benetton - playlife? | CREATE TABLE table_name_62 (
entrant VARCHAR,
constructor VARCHAR
) | SELECT entrant FROM table_name_62 WHERE constructor = "benetton - playlife" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3,
295,
3569,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
3569,
141,
3,
9,
6774,
127,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
6774,
127,
3274,
96,
346,
10544,
106,
3,
18,
577,
4597,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the only single from 2009 ? | CREATE TABLE table_203_491 (
id number,
"year" number,
"title" text,
"us hot 100" number,
"us modern rock" number,
"us mainstream rock" number,
"album" text
) | SELECT "title" FROM table_203_491 WHERE "year" = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3647,
536,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
302,
1312,
910,
121,
381,
6,
96,
302,
941,
2480,
121,
381,
6,
96,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
23330,
834,
3647,
536,
549,
17444,
427,
96,
1201,
121,
3274,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? | CREATE TABLE table_69460 (
"Rider" text,
"Year" real,
"Final Position - Giro" real,
"Final Position - Tour" real,
"Final Position - Vuelta" real
) | SELECT COUNT("Final Position - Tour") FROM table_69460 WHERE "Final Position - Giro" > '20' AND "Rider" = 'mariano piccoli' AND "Year" < '1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
25991,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3,
30428,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3351,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
10270,
14258,
3,
18,
3351,
8512,
21680,
953,
834,
3951,
25991,
549,
17444,
427,
96,
371,
10270,
14258,
3,
18,
3,
30428,
121,
2490,
3,
31,
1755,
31,
3430,
96,
448,
23,
588,
121,
3274,
3,... |
What is the total number of played for the entry with a position of less than 1? | CREATE TABLE table_59266 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Played") FROM table_59266 WHERE "Position" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
357,
3539,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
3390,
357,
3539,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the season that had a lost of 9 with 72 games? | CREATE TABLE table_name_10 (
season VARCHAR,
games VARCHAR,
lost VARCHAR
) | SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
774,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
774,
24,
141,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1031,
3274,
96,
5865,
121,
3430,
1513,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all artist names and the number of exhibitions for each artist Show bar chart, show X from high to low order. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2929,
834,
683,
32,
77,
16,
17,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
4473,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
7754,
343,
834,
4309,
3274,
332,
4416,
7754,
343,
834,
4309,
350,
4630,
6880,
272,
476,
332,
5... |
Show the title and score of the movie with a bar chart. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
4811,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the most margin for nco party and p. ramachandran won | CREATE TABLE table_22754310_1 (margin INTEGER, party VARCHAR, winner VARCHAR) | SELECT MAX(margin) FROM table_22754310_1 WHERE party = "NCO" AND winner = "P. Ramachandran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
41,
1635,
122,
77,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1635,
122,
77,
61,
21680,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
549,
17444,
427,
1088,
3274,
96,
567,
5911,
121,
3430,
4668,
3274,
96,
345,
5,
4425,
1836,
232,
2002,
121,
1,
-100,
-100,
-100,
-... |
What is School Year, when Cross Country is Wooster? | CREATE TABLE table_49023 (
"School Year" text,
"Volleyball" text,
"Cross Country" text,
"Soccer" text,
"Tennis" text,
"Golf" text
) | SELECT "School Year" FROM table_49023 WHERE "Cross Country" = 'wooster' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
2773,
41,
96,
29364,
2929,
121,
1499,
6,
96,
22803,
1306,
3184,
121,
1499,
6,
96,
254,
1859,
7,
6993,
121,
1499,
6,
96,
134,
13377,
49,
121,
1499,
6,
96,
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,
96,
29364,
2929,
121,
21680,
953,
834,
591,
2394,
2773,
549,
17444,
427,
96,
254,
1859,
7,
6993,
121,
3274,
3,
31,
14952,
1370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Location Attendance has a Game larger than 5? | CREATE TABLE table_name_32 (location_attendance VARCHAR, game INTEGER) | SELECT location_attendance FROM table_name_32 WHERE game > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
10450,
22497,
663,
65,
3,
9,
4435,
2186,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
467,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me how many destination by destination in a histogram, display by the bars in ascending. | CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
) | SELECT destination, COUNT(destination) FROM flight GROUP BY destination ORDER BY destination | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6017,
41,
3,
15,
23,
26,
381,
599,
1298,
6,
632,
201,
3052,
381,
599,
1298,
6,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3,
15,
23,
26,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3954,
6,
2847,
17161,
599,
13557,
257,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
3954,
4674,
11300,
272,
476,
3954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1? | CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR) | SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
6636,
7,
3,
21342,
17966,
6,
3,
9,
208,
122,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
5026,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
5026,
3,
2,
10630,
3430,
307,
3,
2,
305,
3430,
1959,
3274,
96,
235,
26,
26,
160,
60,
348,
7,
121,
3430,
3,
9,
208,
122,
2490,
209,
... |
list datasets for video segmentation | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
) | SELECT DISTINCT dataset.datasetid FROM dataset, keyphrase, paperdataset, paperkeyphrase WHERE keyphrase.keyphrasename = 'video segmentation' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
17953,
41,
17953,
23,
26,
16,
17,
6,
17953,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17953,
5,
6757,
2244,
23,
26,
21680,
17953,
6,
843,
27111,
6,
1040,
6757,
2244,
6,
1040,
4397,
27111,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
17241,
5508,
257,
31,
3430... |
What is the size of Itwara central forest reserve? | CREATE TABLE table_16577990_1 (size_in_km² INTEGER, central_forest_reserve VARCHAR) | SELECT MIN(size_in_km²) FROM table_16577990_1 WHERE central_forest_reserve = "Itwara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4013,
26901,
834,
536,
41,
7991,
834,
77,
834,
5848,
357,
3,
21342,
17966,
6,
2069,
834,
1161,
222,
834,
60,
3473,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7991,
834,
77,
834,
5848,
7318,
21680,
953,
834,
22823,
4013,
26901,
834,
536,
549,
17444,
427,
2069,
834,
1161,
222,
834,
60,
3473,
15,
3274,
96,
196,
17,
2910,
9,
121,
1,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose gender is f and ethnicity is black/cape verdean? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16... |
give me the number of patients whose death status is 0 and lab test name is ck-mb index? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "0" AND lab.label = "CK-MB Index" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the record of game 26 with beno udrih (4) as the highest assists? | CREATE TABLE table_name_41 (
record VARCHAR,
high_assists VARCHAR,
game VARCHAR
) | SELECT record FROM table_name_41 WHERE high_assists = "beno udrih (4)" AND game = 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1368,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
115,
35,
32,
3,
76,
26,
52,
23,
107,
3,
10820,
121,
3430,
467,
3274,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What county has 2053 households? | CREATE TABLE table_72551 (
"Rank" real,
"Place" text,
"County" text,
"Per Capita Income" text,
"Median House- hold Income" text,
"Population" real,
"Number of Households" real
) | SELECT "County" FROM table_72551 WHERE "Number of Households" = '2053' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1828,
5553,
41,
96,
22557,
121,
490,
6,
96,
345,
11706,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
12988,
4000,
155,
9,
20110,
121,
1499,
6,
96,
24607,
29,
1384,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
940,
1828,
5553,
549,
17444,
427,
96,
567,
5937,
49,
13,
1384,
6134,
7,
121,
3274,
3,
31,
1755,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura | CREATE TABLE table_1099080_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR) | SELECT partial_thromboplastin_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
2394,
2079,
834,
536,
41,
1893,
10646,
834,
8514,
6310,
23918,
77,
834,
715,
584,
4280,
28027,
6,
1706,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
21680,
953,
834,
17304,
2394,
2079,
834,
536,
549,
17444,
427,
1706,
3274,
96,
371,
9,
5317,
3,
4,
20,
4638,
23,
4392,
38,
894,
16,
183,
63,
20253,
3990,
3791,
9,
121,
... |
what is the tie no, on 24 november 1971 and the away team is king's lynn? | CREATE TABLE table_49268 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_49268 WHERE "Date" = '24 november 1971' AND "Away team" = 'king''s lynn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
357,
3651,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
23,
15,
150,
121,
21680,
953,
834,
3647,
357,
3651,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2266,
3,
5326,
18247,
17961,
31,
3430,
96,
188,
1343,
372,
121,
3274,
3,
31,
1765,
31,
31,
7,
3,
12... |
when did raymond h. fogler leave the office of assistant secretary of the navy ? | CREATE TABLE table_202_202 (
id number,
"name" text,
"assumed office" text,
"left office" text,
"president appointed by" text,
"secretary served under" text
) | SELECT "left office" FROM table_202_202 WHERE "name" = 'raymond h. fogler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
19818,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
9,
7,
4078,
15,
26,
828,
121,
1499,
6,
96,
17068,
828,
121,
1499,
6,
96,
102,
15704,
7817,
57,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17068,
828,
121,
21680,
953,
834,
19818,
834,
19818,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
2866,
6764,
3,
107,
5,
20735,
1171,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the driver with 58 laps and a grid smaller than 21? | CREATE TABLE table_10087 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Driver" FROM table_10087 WHERE "Laps" = '58' AND "Grid" < '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
4225,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
121,
21680,
953,
834,
2915,
4225,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
3449,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the area of the civil parish kilworth and townland monadrishane? | CREATE TABLE table_31492 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
) | SELECT "Area( acres )" FROM table_31492 WHERE "Civil parish" = 'Kilworth' AND "Townland" = 'Monadrishane' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
3647,
357,
41,
96,
382,
9197,
40,
232,
121,
1499,
6,
96,
188,
864,
599,
9704,
3,
61,
121,
490,
6,
96,
14851,
106,
63,
121,
1499,
6,
96,
254,
23,
6372,
14961,
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,
188,
864,
599,
9704,
3,
61,
121,
21680,
953,
834,
3341,
3647,
357,
549,
17444,
427,
96,
254,
23,
6372,
14961,
121,
3274,
3,
31,
439,
173,
7048,
31,
3430,
96,
382,
9197,
40,
232,
121,
3274,
3,
31,
9168,
9,
... |
Who is the Runner-up that has a Season less than 2005? | CREATE TABLE table_name_54 (
runner_up VARCHAR,
season INTEGER
) | SELECT runner_up FROM table_name_54 WHERE season < 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
774,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
23572,
18,
413,
24,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
774,
3,
2,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which of the opponents has bye as their box score? | CREATE TABLE table_name_32 (
opponent VARCHAR,
box_scores VARCHAR
) | SELECT opponent FROM table_name_32 WHERE box_scores = "bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
15264,
584,
4280,
28027,
6,
1367,
834,
7,
9022,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
16383,
65,
57,
15,
38,
70,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2668,
549,
17444,
427,
1367,
834,
7,
9022,
7,
3274,
96,
969,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the first ranking player ? | CREATE TABLE table_204_401 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"react" number,
"time" number,
"notes" text
) | SELECT "name" FROM table_204_401 WHERE "rank" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20016,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
8102,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
2708,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
20016,
549,
17444,
427,
96,
6254,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the rings is 58.975, what is the number for the horizontal bar? | CREATE TABLE table_22536 (
"Position" text,
"Country" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Team Total" text
) | SELECT "Horizontal Bar" FROM table_22536 WHERE "Rings" = '58.975' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
3420,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
11251,
127,
121,
1499,
6,
96,
345,
7649,
40,
13538,
121,
1499,
6,
96,
448,
53,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4489,
13266,
106,
1947,
1386,
121,
21680,
953,
834,
20489,
3420,
549,
17444,
427,
96,
448,
53,
7,
121,
3274,
3,
31,
3449,
5,
4327,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the distance when the weight is 9.2? | CREATE TABLE table_name_16 (distance VARCHAR, weight VARCHAR) | SELECT distance FROM table_name_16 WHERE weight = 9.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
26,
23,
8389,
584,
4280,
28027,
6,
1293,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2357,
116,
8,
1293,
19,
5835,
357,
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,
2357,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1293,
3274,
5835,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the power for 1935-45 | CREATE TABLE table_11718 (
"Version" text,
"Year" text,
"Bore x stroke" text,
"Displacement" text,
"Power" text
) | SELECT "Power" FROM table_11718 WHERE "Year" = '1935-45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
2606,
41,
96,
5000,
1938,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
279,
127,
15,
3,
226,
9529,
121,
1499,
6,
96,
23664,
11706,
297,
121,
1499,
6,
96,
23553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23553,
121,
21680,
953,
834,
20275,
2606,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
2469,
18,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which driver was number 2 ? | CREATE TABLE table_20159025_1 (
driver VARCHAR,
no VARCHAR
) | SELECT driver FROM table_20159025_1 WHERE no = "2‡" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8651,
2394,
1828,
834,
536,
41,
2535,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
47,
381,
204,
3,
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,
2535,
21680,
953,
834,
8651,
2394,
1828,
834,
536,
549,
17444,
427,
150,
3274,
96,
357,
2,
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 lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0? | CREATE TABLE table_name_1 (sack INTEGER, yards VARCHAR, solo VARCHAR, tackles VARCHAR) | SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
15525,
3,
21342,
17966,
6,
6460,
584,
4280,
28027,
6,
6729,
584,
4280,
28027,
6,
8000,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
15525,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
6729,
3274,
997,
3430,
8000,
7,
2490,
204,
15938,
3430,
6460,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the week with attendance of 73,572? | CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR) | SELECT MAX(week) FROM table_name_61 WHERE attendance = "73,572" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
8041,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
28,
11364,
13,
3,
4552,
6,
3436,
357,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
11364,
3274,
96,
4552,
6,
3436,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Date of november 29, 1959 had what lowest attendance? | CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR) | SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
7678,
13,
3,
5326,
18247,
14405,
22471,
141,
125,
7402,
11364,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
14405,
22471,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many nations only took one medal ? | CREATE TABLE table_204_383 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_204_383 WHERE "total" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3747,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29,
257,
8512,
21680,
953,
834,
26363,
834,
3747,
519,
549,
17444,
427,
96,
235,
1947,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the points against for cwmllynfell rfc | CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR) | SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
979,
581,
21,
3,
75,
210,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1886,
3274,
96,
75,
210,
51,
6073,
29,
4025,
40,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the combined weight in kilograms of the horses in the race at Chelmsford stakes? | CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR) | SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
9378,
834,
834,
8711,
834,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3334,
1293,
16,
23332,
7,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9378,
834,
834,
8711,
834,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1964,
3274,
96,
8738,
51,
7,
2590,
8474,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many races are there? | CREATE TABLE race (Id VARCHAR) | SELECT COUNT(*) FROM race | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10879,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1964,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Opponent of the game in Week 3? | CREATE TABLE table_63605 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_63605 WHERE "Week" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3328,
755,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3891,
3328,
755,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 1986 value with A in 1991 and A in 1987? | CREATE TABLE table_46448 (
"Tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
) | SELECT "1986" FROM table_46448 WHERE "1991" = 'a' AND "1987" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
3707,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
24151,
20364,
1499,
6,
96,
24151,
17395,
1499,
6,
96,
2294,
3840,
121,
1499,
6,
96,
2294,
4225,
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,
2294,
3840,
121,
21680,
953,
834,
591,
4389,
3707,
549,
17444,
427,
96,
2294,
4729,
121,
3274,
3,
31,
9,
31,
3430,
96,
2294,
4225,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What score has friendly as the competition? | CREATE TABLE table_61467 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_61467 WHERE "Competition" = 'friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3708,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
948,
2534,
3708,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average population when deaths are 3 557 and crude death date is less than 11.9? | CREATE TABLE table_13041 (
"Average population (x 1000)" real,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | SELECT AVG("Average population (x 1000)") FROM table_13041 WHERE "Deaths" = '3 557' AND "Crude death rate (per 1000)" < '11.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
4853,
41,
96,
188,
624,
545,
2074,
41,
226,
5580,
61,
121,
490,
6,
96,
24179,
3879,
7,
121,
1499,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
567,
13149,
40,
483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
624,
545,
2074,
41,
226,
5580,
61,
8512,
21680,
953,
834,
21448,
4853,
549,
17444,
427,
96,
2962,
9,
189,
7,
121,
3274,
3,
31,
519,
305,
3436,
31,
3430,
96,
254,
17237,
15,
1687,
1080,
... |
What was the record of the game with a score of 12 6? | CREATE TABLE table_name_76 (
record VARCHAR,
score VARCHAR
) | SELECT record FROM table_name_76 WHERE score = "12–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
13,
8,
467,
28,
3,
9,
2604,
13,
586,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2604,
3274,
96,
2122,
104,
948,
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 TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL? | CREATE TABLE table_name_98 (
title VARCHAR,
rank VARCHAR,
director VARCHAR
) | SELECT title FROM table_name_98 WHERE rank > 10 AND director = "walter hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2233,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
332,
3177,
3765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
11003,
2490,
335,
3430,
2090,
3274,
96,
210,
8818,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the away team was Bolton Wanderers, what was the score? | CREATE TABLE table_59468 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_59468 WHERE "Away team" = 'bolton wanderers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
591,
3651,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3390,
591,
3651,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
4243,
17,
106,
10735,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team played against the away team that scored 5.5 (35)? | CREATE TABLE table_54823 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_54823 WHERE "Away team score" = '5.5 (35)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
2773,
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,
121,
21680,
953,
834,
755,
3707,
2773,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
15938,
6918,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, visualize the relationship between price and revenue . | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5312,
6,
19764,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Yugoslavia play a friendly game in Belgrade? | CREATE TABLE table_name_88 (date VARCHAR, city VARCHAR, type_of_game VARCHAR) | SELECT date FROM table_name_88 WHERE city = "belgrade" AND type_of_game = "friendly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
5522,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
686,
834,
858,
834,
7261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
6214,
839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
690,
3274,
96,
2370,
6801,
121,
3430,
686,
834,
858,
834,
7261,
3274,
96,
4905,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients younger than 36 years who had theophylline lab test. | 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
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "36" AND lab.label = "Theophylline" | [
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,... |
Name the number of administrative county for area 1961 and 176694 | CREATE TABLE table_14925084_1 (
administrative_county VARCHAR,
area_1961__statute_acres_ VARCHAR
) | SELECT COUNT(administrative_county) FROM table_14925084_1 WHERE area_1961__statute_acres_ = 176694 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
11434,
4608,
834,
536,
41,
6601,
834,
13362,
63,
584,
4280,
28027,
6,
616,
834,
2294,
4241,
834,
834,
8547,
2810,
834,
10610,
7,
834,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9571,
1528,
834,
13362,
63,
61,
21680,
953,
834,
24816,
11434,
4608,
834,
536,
549,
17444,
427,
616,
834,
2294,
4241,
834,
834,
8547,
2810,
834,
10610,
7,
834,
3274,
1003,
3539,
4240,
1,
-100,
-100,
... |
What frequency does Chihuahua Sinaloa Durango cover? | CREATE TABLE table_14670060_1 (frequency VARCHAR, coverage VARCHAR) | SELECT frequency FROM table_14670060_1 WHERE coverage = "Chihuahua Sinaloa Durango" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
9295,
3328,
834,
536,
41,
30989,
584,
4280,
28027,
6,
2591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
7321,
405,
2695,
107,
76,
9,
107,
76,
9,
8271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
21680,
953,
834,
24300,
9295,
3328,
834,
536,
549,
17444,
427,
2591,
3274,
96,
3541,
23,
107,
76,
9,
107,
76,
9,
8271,
138,
32,
9,
8633,
17934,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which problems are reported by the staff with last name 'Bosco'? Show the ids of the problems. | CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE staff (
staff_id number,
staff_first_name text,
staff_last_name text,
other_staff_details text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
problem_description text,
other_problem_details text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
problem_category_code text,
problem_status_code text,
log_entry_date time,
log_entry_description text,
log_entry_fix text,
other_log_details text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
) | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
682,
834,
8367,
839,
651,
834,
4978,
7,
41,
682,
834,
8367,
839,
651,
834,
4978,
1499,
6,
682,
834,
8367,
839,
651,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
19307,
834,
23,
26,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
871,
6157,
332,
357,
9191,
332,
5411,
60,
16262,
834,
969,
834,
26416,
834,
23,
26,
3274,
332,
4416,
26416,
834,
23,
26,
549,
17444,
427,
... |
How many interceptions for the team who played 31 games? | CREATE TABLE table_25368 (
"Player" text,
"Games Played" real,
"Field Goals" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) | SELECT "Steals" FROM table_25368 WHERE "Games Played" = '31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
519,
3651,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
16393,
26191,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14337,
5405,
121,
21680,
953,
834,
1828,
519,
3651,
549,
17444,
427,
96,
23055,
7,
2911,
15,
26,
121,
3274,
3,
31,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team has an incoming manager named Kenny Dalglish? | CREATE TABLE table_24172157_3 (team VARCHAR, incoming_manager VARCHAR) | SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27156,
27452,
834,
519,
41,
11650,
584,
4280,
28027,
6,
3,
19583,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
46,
3,
19583,
2743,
265... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2266,
27156,
27452,
834,
519,
549,
17444,
427,
3,
19583,
834,
24185,
3274,
96,
439,
35,
29,
63,
10729,
4707,
7,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g? | CREATE TABLE table_59542 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
) | SELECT "Total fat" FROM table_59542 WHERE "Polyunsaturated fat" = '11g' AND "Monounsaturated fat" = '73g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
5062,
357,
41,
96,
3696,
1947,
2886,
121,
1499,
6,
96,
134,
6010,
920,
2886,
121,
1499,
6,
96,
9168,
32,
202,
7,
6010,
920,
2886,
121,
1499,
6,
96,
8931,
63,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
2886,
121,
21680,
953,
834,
3390,
5062,
357,
549,
17444,
427,
96,
8931,
63,
202,
7,
6010,
920,
2886,
121,
3274,
3,
31,
2596,
122,
31,
3430,
96,
9168,
32,
202,
7,
6010,
920,
2886,
121,
3274,
3,
31... |
Who voiced Drizella in the English version? | CREATE TABLE table_3238 (
"Character" text,
"English version" text,
"Cinderella" text,
"Cinderella II: Dreams Come True" text,
"Cinderella III: A Twist in Time" text
) | SELECT "English version" FROM table_3238 WHERE "Character" = 'Drizella' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
3747,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
26749,
988,
121,
1499,
6,
96,
254,
77,
588,
5303,
121,
1499,
6,
96,
254,
77,
588,
5303,
2466,
10,
7099,
7,
4589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26749,
988,
121,
21680,
953,
834,
2668,
3747,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
308,
13266,
5303,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest caps for the Club of SBV Excelsior? | CREATE TABLE table_name_86 (
caps INTEGER,
club VARCHAR
) | SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
16753,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
16753,
21,
8,
1949,
13,
180,
22480,
9506,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4010,
7,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1886,
3274,
96,
7,
115,
208,
11197,
7,
23,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the To par of St Andrews before the year 1888? | CREATE TABLE table_name_35 (
to_par_ VARCHAR,
a_ VARCHAR,
course VARCHAR,
year VARCHAR
) | SELECT to_par_ AS "a_" FROM table_name_35 WHERE course = "st andrews" AND year < 1888 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
12,
834,
1893,
834,
584,
4280,
28027,
6,
3,
9,
834,
584,
4280,
28027,
6,
503,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
834,
6157,
96,
9,
834,
121,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
503,
3274,
96,
7,
17,
11,
60,
210,
7,
121,
3430,
215,
3,
2,
507,
4060,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the trend about employee_id over hire_date . | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, EMPLOYEE_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,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
262,
5244,
5017,
476,
5080,
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 county is the unemployment rate 4.8%? | CREATE TABLE table_22815568_6 (
county VARCHAR,
unemployment_rate VARCHAR
) | SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
948,
41,
5435,
584,
4280,
28027,
6,
17646,
834,
2206,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5435,
19,
8,
17646,
1080,
2853... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
948,
549,
17444,
427,
17646,
834,
2206,
3274,
96,
7984,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4? | CREATE TABLE table_name_1 (
attendance VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_1 WHERE opponent = "montreal alouettes" AND date = "oct 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
22497,
663,
6,
116,
4495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
15264,
3274,
96,
4662,
6644,
491,
24043,
7,
121,
3430,
833,
3274,
96,
32,
75,
17,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Anastasija Reiberger from Germany had what 4.00? | CREATE TABLE table_name_51 (nationality VARCHAR, name VARCHAR) | SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
16557,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
389,
12518,
7,
23,
1191,
419,
23,
16170,
45,
3434,
141,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4837,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1157,
485,
3274,
96,
1304,
348,
63,
121,
3430,
564,
3274,
96,
152,
12518,
7,
23,
1191,
3,
60,
23,
16170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What title episode did Paris Barclay direct? | CREATE TABLE table_23852 (
"No. in series" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text
) | SELECT "Title" FROM table_23852 WHERE "Directedby" = 'Paris Barclay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4433,
357,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
969,
121,
1499,
6,
96,
24965,
324,
969,
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,
382,
155,
109,
121,
21680,
953,
834,
2773,
4433,
357,
549,
17444,
427,
96,
23620,
15,
26,
969,
121,
3274,
3,
31,
13212,
159,
1386,
4651,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total for the year (s) won in 1977? | CREATE TABLE table_12195 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Total" FROM table_12195 WHERE "Year(s) won" = '1977' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
22464,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1947,
121,
21680,
953,
834,
2122,
22464,
549,
17444,
427,
96,
476,
2741,
599,
7,
61,
751,
121,
3274,
3,
31,
2294,
4013,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum number of years where the wheel arrangement of 0-4-0t? | CREATE TABLE table_54282 (
"IWCR No." text,
"Name" text,
"Wheel arrangement" text,
"SR No." text,
"Year made" real,
"Year withdrawn" real
) | SELECT COUNT("Year made") FROM table_54282 WHERE "Wheel arrangement" = '0-4-0t' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2577,
357,
41,
96,
196,
518,
4545,
465,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
6857,
465,
535,
1499,
6,
96,
476,
2741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
263,
8512,
21680,
953,
834,
5062,
2577,
357,
549,
17444,
427,
96,
518,
88,
15,
40,
8641,
121,
3274,
3,
31,
9498,
26814,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest lap with the ranking of 19? | CREATE TABLE table_name_99 (
laps INTEGER,
start VARCHAR
) | SELECT MIN(laps) FROM table_name_99 WHERE start = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
14941,
7,
3,
21342,
17966,
6,
456,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
14941,
28,
8,
11592,
13,
957,
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,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
456,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Player for School/Club Team Illinois? | CREATE TABLE table_40972 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Player" FROM table_40972 WHERE "School/Club Team" = 'illinois' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4327,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2445,
4327,
357,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
1092,
77,
32,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the number of points won by great britain ? | CREATE TABLE table_203_486 (
id number,
"place" number,
"team" text,
"matches" number,
"won" number,
"drawn" number,
"lost" number,
"difference" text,
"points" number
) | SELECT "points" FROM table_203_486 WHERE "team" = 'great britain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3840,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
19515,
15,
7,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
19489,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2700,
7,
121,
21680,
953,
834,
23330,
834,
591,
3840,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
20288,
3,
115,
10694,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum number of the bmw championship tournament. | CREATE TABLE table_23108 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT MIN("No.") FROM table_23108 WHERE "Tournament" = 'BMW Championship' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
16169,
41,
96,
4168,
535,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
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,
3,
17684,
599,
121,
4168,
5,
8512,
21680,
953,
834,
2773,
16169,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
279,
16027,
7666,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total University of Dublin value with a labour panel greater than 11? | CREATE TABLE table_6991 (
"Administrative Panel" real,
"Agricultural Panel" real,
"Cultural and Educational Panel" real,
"Industrial and Commercial Panel" real,
"Labour Panel" real,
"National University of Ireland" real,
"University of Dublin" real,
"Nominated by the Taoiseach" real,
"Total" real
) | SELECT COUNT("University of Dublin") FROM table_6991 WHERE "Labour Panel" > '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4729,
41,
96,
16313,
343,
52,
1528,
9871,
121,
490,
6,
96,
24354,
9871,
121,
490,
6,
96,
254,
83,
17,
9709,
11,
19173,
9871,
121,
490,
6,
96,
1570,
8655,
17,
12042,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8313,
485,
13,
14112,
8512,
21680,
953,
834,
3951,
4729,
549,
17444,
427,
96,
18506,
1211,
9871,
121,
2490,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Title when the winner was suntory sungoliath, and a Season of 2011-12 details? | CREATE TABLE table_76144 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Title" FROM table_76144 WHERE "Winner" = 'suntory sungoliath' AND "Season" = '2011-12 details' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
20885,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3959,
20885,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
7,
202,
10972,
3,
7,
425,
4172,
9,
189,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
13907,
5947,
10... |
What is the record for the game against New England Patriots at the Rich Stadium? | CREATE TABLE table_name_89 (
record VARCHAR,
game_site VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_name_89 WHERE game_site = "rich stadium" AND opponent = "new england patriots" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1368,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
467,
834,
3585,
3274,
96,
3723,
14939,
121,
3430,
15264,
3274,
96,
5534,
3,
4606,
40,
232,
6234,
12884,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which language do 706 females speak? | CREATE TABLE table_name_10 (
females VARCHAR,
number VARCHAR
) | SELECT females FROM table_name_10 WHERE number = "706" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
3955,
7,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1612,
103,
489,
5176,
3955,
7,
2516,
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,
3955,
7,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
381,
3274,
96,
2518,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Played has Goals against larger than 34, and Wins smaller than 12, and Goals for smaller than 50, and Losses larger than 15? | CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_39 WHERE goals_against > 34 AND wins < 12 AND goals_for < 50 AND losses > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
4895,
15,
26,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
2490,
6154,
3430,
9204,
3,
2,
586,
3430,
1766,
834,
1161,
3,
2,
943,
3430,
8467,
2490,
627,
1,
-10... |
Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)? | CREATE TABLE table_name_72 (
earnings___ INTEGER,
player VARCHAR,
rank VARCHAR
) | SELECT MAX(earnings___) AS $__ FROM table_name_72 WHERE player = "corey pavin" AND rank > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
8783,
834,
834,
834,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
12387,
13,
2583,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2741,
29,
53,
7,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1959,
3274,
96,
9022,
63,
2576,
2494,
121,
3430,
11003,
2490,
314,
1,
-100,
-100,
-100,
-1... |
Players of judith wiesner and alex antonitsch had what match w-l? | CREATE TABLE table_name_64 (
matches_w_l VARCHAR,
players VARCHAR
) | SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
6407,
834,
210,
834,
40,
584,
4280,
28027,
6,
1508,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
18079,
13,
3,
14312,
23,
189,
587,
7,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6407,
834,
210,
834,
40,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1508,
3274,
96,
14312,
23,
189,
587,
7,
687,
11,
1240,
226,
3,
9,
6992,
155,
860,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the % of boundary by water is 63% what is the overall number of zip code prefix(es)? | CREATE TABLE table_14253123_1 (zip_code_prefix_es_ VARCHAR, _percentage_of_boundary_by_water VARCHAR) | SELECT COUNT(zip_code_prefix_es_) FROM table_14253123_1 WHERE _percentage_of_boundary_by_water = "63%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4867,
14574,
834,
536,
41,
13453,
834,
4978,
834,
2026,
12304,
834,
15,
7,
834,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
858,
834,
6115,
1208,
834,
969,
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,
2847,
17161,
599,
13453,
834,
4978,
834,
2026,
12304,
834,
15,
7,
834,
61,
21680,
953,
834,
24978,
4867,
14574,
834,
536,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
858,
834,
6115,
1208,
834,
969,
834,
3552,
3274... |
Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? | CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
4895,
15,
26,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
9204,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1102,
3,
2,
314,
3430,
9204,
2490,
898,
3430,
979,
3274,
6654,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
3097,
1,
-100,
-100,
-100... |
Name the President has a Media Officer of pete marshall/ nazar striletski? | CREATE TABLE table_8087 (
"Season" text,
"President" text,
"General Sec" text,
"Treasurer" text,
"Fixtures Sec" text,
"Social Sec Bradford" text,
"Social Sec Leeds" text,
"Media Officer" text
) | SELECT "President" FROM table_8087 WHERE "Media Officer" = 'pete marshall/ nazar striletski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
4225,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
20857,
14969,
121,
1499,
6,
96,
382,
864,
3042,
49,
121,
1499,
6,
96,
3183,
226,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
15704,
121,
21680,
953,
834,
2079,
4225,
549,
17444,
427,
96,
24607,
6027,
121,
3274,
3,
31,
4995,
15,
8113,
11516,
87,
28577,
291,
5765,
699,
17,
4009,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What week has December 19, 2004 as the date? | CREATE TABLE table_name_33 (
week VARCHAR,
date VARCHAR
) | SELECT week FROM table_name_33 WHERE date = "december 19, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
471,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
65,
1882,
12370,
4406,
38,
8,
833,
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,
471,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
12370,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the only city name with a population density of 200? | CREATE TABLE table_21284653_1 (
name VARCHAR,
population_density VARCHAR
) | SELECT name FROM table_21284653_1 WHERE population_density = "200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2577,
4448,
4867,
834,
536,
41,
564,
584,
4280,
28027,
6,
2074,
834,
537,
7,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
163,
690,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
2658,
2577,
4448,
4867,
834,
536,
549,
17444,
427,
2074,
834,
537,
7,
485,
3274,
96,
3632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in which tournament did the team score the most points per game ? | CREATE TABLE table_203_527 (
id number,
"tournament" text,
"games played" number,
"points per game" number,
"rebounds per game" number,
"assists per game" number
) | SELECT "tournament" FROM table_203_527 ORDER BY "points per game" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2555,
41,
3,
23,
26,
381,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
7261,
7,
1944,
121,
381,
6,
96,
2700,
7,
399,
467,
121,
381,
6,
96,
23768,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23330,
834,
755,
2555,
4674,
11300,
272,
476,
96,
2700,
7,
399,
467,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Opponent has a Round of 4, and a Rules of thai boxing? | CREATE TABLE table_name_16 (
opponent VARCHAR,
round VARCHAR,
rules VARCHAR
) | SELECT opponent FROM table_name_16 WHERE round = "4" AND rules = "thai boxing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
15264,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
2219,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
3,
9,
9609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1751,
3274,
96,
20364,
3430,
2219,
3274,
96,
189,
9,
23,
1367,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of ACC_Regular_Season and ACC_Percent , show in descending by the y-axis. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match ORDER BY ACC_Percent DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
3,
14775,
834,
12988,
3728,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the transfer fee for the player moving in the winter window and ending in a year after 2010? | CREATE TABLE table_name_33 (
transfer_fee VARCHAR,
ends VARCHAR,
transfer_window VARCHAR
) | SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = "winter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
5542,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
5542,
2490,
2735,
3430,
2025,
834,
5165,
2381,
3274,
96,
210,
3870,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest number of lose for a player named Santos with more than 45 points? | CREATE TABLE table_name_88 (
lose INTEGER,
name VARCHAR,
point VARCHAR
) | SELECT MAX(lose) FROM table_name_88 WHERE name = "santos" AND point > 45 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2615,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
500,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
381,
13,
2615,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10227,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
564,
3274,
96,
7,
288,
32,
7,
121,
3430,
500,
2490,
3479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the sum of played for c.d. luis ngel firpo and place more than 3 | CREATE TABLE table_name_67 (
played INTEGER,
team VARCHAR,
place VARCHAR
) | SELECT SUM(played) FROM table_name_67 WHERE team = "c.d. luis ángel firpo" AND place > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1944,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
1944,
21,
3,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
372,
3274,
96,
75,
5,
26,
5,
759,
7,
3,
12916,
1803,
3,
14581,
102,
32,
121,
3430,
286,
2490,
220,
1,
-100,
-100,
-100,
-100,
... |
What entrant has a year earlier than 1960 and a veritas straight-6 engine? | CREATE TABLE table_name_77 (
entrant VARCHAR,
year VARCHAR,
engine VARCHAR
) | SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
295,
3569,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
215,
3,
2,
8754,
3430,
1948,
3274,
96,
162,
10694,
7,
2541,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the English word for the Russian words loshad, kobyla ( , )? | CREATE TABLE table_19820 (
"Ido" text,
"English" text,
"Italian" text,
"French" text,
"German" text,
"Russian" text,
"Spanish" text
) | SELECT "English" FROM table_19820 WHERE "Russian" = 'loshad, kobyla (лошадь, кобыла)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
1755,
41,
96,
196,
26,
32,
121,
1499,
6,
96,
26749,
121,
1499,
6,
96,
196,
17,
9,
9928,
121,
1499,
6,
96,
371,
60,
5457,
121,
1499,
6,
96,
24518,
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,
26749,
121,
21680,
953,
834,
24151,
1755,
549,
17444,
427,
96,
29613,
29,
121,
3274,
3,
31,
2298,
8399,
6,
3,
157,
32,
969,
521,
41,
21044,
2,
2533,
5814,
2,
6,
3,
12377,
2,
17148,
61,
31,
1,
-100,
-100,
-... |
what is the nation when the world rank is 6 and the birth date is 1971-07-31? | CREATE TABLE table_name_88 (nation VARCHAR, world_rank VARCHAR, birth_date VARCHAR) | SELECT nation FROM table_name_88 WHERE world_rank = "6" AND birth_date = "1971-07-31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
29,
257,
584,
4280,
28027,
6,
296,
834,
6254,
584,
4280,
28027,
6,
3879,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
296,
834,
6254,
3274,
96,
948,
121,
3430,
3879,
834,
5522,
3274,
96,
27181,
18930,
940,
18,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's result with incumbent being connie mack | CREATE TABLE table_705 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_705 WHERE "Incumbent" = 'Connie Mack' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
755,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
2518,
755,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
3881,
11113,
19155,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title the episode directed by Allison Liddi-Brown? | CREATE TABLE table_26318 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_26318 WHERE "Directed by" = 'Allison Liddi-Brown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3891,
2606,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
357,
3891,
2606,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
6838,
23,
739,
1414,
26,
26,
23,
18,
279,
3623,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many editions have a most wins value of Franco Marvulli (4)? | CREATE TABLE table_73009 (
"Six at" text,
"Number of editions" real,
"First ridden" real,
"Last ridden" real,
"Most wins by" text
) | SELECT COUNT("Number of editions") FROM table_73009 WHERE "Most wins by" = 'Franco Marvulli (4)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
4198,
41,
96,
134,
2407,
44,
121,
1499,
6,
96,
567,
5937,
49,
13,
4182,
7,
121,
490,
6,
96,
25171,
3,
28629,
121,
490,
6,
96,
3612,
7,
17,
3,
28629,
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,
2847,
17161,
599,
121,
567,
5937,
49,
13,
4182,
7,
8512,
21680,
953,
834,
940,
1458,
4198,
549,
17444,
427,
96,
329,
3481,
9204,
57,
121,
3274,
3,
31,
371,
2002,
509,
1571,
12388,
40,
23,
3,
10820,
31,
1,
-100,
... |
Which nation had a time of 48.38? | CREATE TABLE table_name_9 (
nation VARCHAR,
time__sec_ VARCHAR
) | SELECT nation FROM table_name_9 WHERE time__sec_ = 48.38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
2982,
584,
4280,
28027,
6,
97,
834,
834,
7549,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
141,
3,
9,
97,
13,
4678,
5,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
97,
834,
834,
7549,
834,
3274,
4678,
5,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score of the Friendly competition where the result was 7-2? | CREATE TABLE table_name_54 (
score VARCHAR,
competition VARCHAR,
result VARCHAR
) | SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2604,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
27105,
2259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2259,
3274,
96,
4905,
121,
3430,
741,
3274,
96,
940,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the qualifying score of the competition whose final score was 12.200? | CREATE TABLE table_25143284_1 (score_qualifying VARCHAR, score_final VARCHAR) | SELECT score_qualifying FROM table_25143284_1 WHERE score_final = "12.200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2534,
2668,
4608,
834,
536,
41,
7,
9022,
834,
11433,
8587,
584,
4280,
28027,
6,
2604,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
18002... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
11433,
8587,
21680,
953,
834,
1828,
2534,
2668,
4608,
834,
536,
549,
17444,
427,
2604,
834,
12406,
3274,
96,
9368,
3632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tournament has a 2007 of wta premier 5 tournaments? | CREATE TABLE table_39607 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_39607 WHERE "2007" = 'wta premier 5 tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
4560,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
519,
4314,
4560,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
210,
17,
9,
2761,
305,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the round when the position is (c)? | CREATE TABLE table_62228 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT MAX("Round") FROM table_62228 WHERE "Position" = '(c)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
2577,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4056,
357,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
599,
75,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals? | CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
235,
1947,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
11003,
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,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
13467,
2490,
204,
3430,
11003,
2490,
220,
3430,
2982,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
4294,
2490,
220,
1,
-100,
-100,
-100,
-1... |
Which site has the CERCLIS ID fld004092532? | CREATE TABLE table_name_88 (name VARCHAR, cerclis_id VARCHAR) | SELECT name FROM table_name_88 WHERE cerclis_id = "fld004092532" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
4350,
584,
4280,
28027,
6,
19259,
40,
159,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
353,
65,
8,
9265,
4902,
25769,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
19259,
40,
159,
834,
23,
26,
3274,
96,
89,
40,
26,
1206,
2445,
28456,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many times is the name Derek Smith when the round is higher than 3? | CREATE TABLE table_44647 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_44647 WHERE "Name" = 'derek smith' AND "Round" > '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
4177,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23847,
1748,
8512,
21680,
953,
834,
591,
4448,
4177,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
588,
15,
157,
3,
16331,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
519,
31,
1,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.