NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which aorist has imperfect form of bijasmo / bejasmo / besmo? | CREATE TABLE table_27298240_26 (aorist VARCHAR, imperfect VARCHAR) | SELECT aorist FROM table_27298240_26 WHERE imperfect = "bijasmo / bejasmo / besmo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
3916,
11944,
834,
2688,
41,
9,
127,
343,
584,
4280,
28027,
6,
28306,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
9,
127,
343,
65,
28306,
607,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
9,
127,
343,
21680,
953,
834,
2555,
357,
3916,
11944,
834,
2688,
549,
17444,
427,
28306,
3274,
96,
115,
23,
1191,
7,
51,
32,
3,
87,
36,
1191,
7,
51,
32,
3,
87,
36,
7,
51,
32,
121,
1,
-100,
-100,
-100,
-10... |
What was the attendance when VFL played MCG? | CREATE TABLE table_32306 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_32306 WHERE "Venue" = 'mcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
1458,
948,
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,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
2668,
1458,
948,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
75,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many games does team Czechoslovakia have that had a drawn greater than 0? | CREATE TABLE table_name_18 (
games INTEGER,
team VARCHAR,
drawn VARCHAR
) | SELECT MAX(games) FROM table_name_18 WHERE team = "czechoslovakia" AND drawn > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1031,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
405,
372,
16870,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
372,
3274,
96,
75,
776,
3995,
7,
5850,
11259,
9,
121,
3430,
6796,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score for Sandy Lyle? | CREATE TABLE table_name_93 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_93 WHERE player = "sandy lyle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
20655,
5225,
109,
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,
2604,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1959,
3274,
96,
7,
232,
63,
3,
120,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what election year has 2nd party conservative with 2nd member henry wyndham and 1st member walter barttelot? | CREATE TABLE table_68102 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "Election" FROM table_68102 WHERE "2nd Party" = 'conservative' AND "2nd Member" = 'henry wyndham' AND "1st Member" = 'walter barttelot' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
14388,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
12252,
121,
21680,
953,
834,
3651,
14388,
549,
17444,
427,
96,
357,
727,
3450,
121,
3274,
3,
31,
1018,
3473,
1528,
31,
3430,
96,
357,
727,
8541,
121,
3274,
3,
31,
3225,
651,
3,
25269,
26,
1483,
31,
3430,
... |
What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of ? | CREATE TABLE table_42747 (
"Inf. Stem" text,
"Sing. Pres." text,
"Plur. Pres." text,
"Sing. Pret." text,
"Plur. Pret." text,
"Subj. Pres." text,
"Subj. Pret." text,
"Past Part." text
) | SELECT "Subj. Pres." FROM table_42747 WHERE "Plur. Pret." = 'u' AND "Sing. Pret." = 'ou' AND "Sing. Pres." = 'û' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
4177,
41,
96,
1570,
89,
5,
3557,
51,
121,
1499,
6,
96,
134,
53,
5,
10131,
535,
1499,
6,
96,
345,
40,
450,
5,
10131,
535,
1499,
6,
96,
134,
53,
5,
1266,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25252,
354,
5,
10131,
535,
21680,
953,
834,
591,
2555,
4177,
549,
17444,
427,
96,
345,
40,
450,
5,
1266,
17,
535,
3274,
3,
31,
76,
31,
3430,
96,
134,
53,
5,
1266,
17,
535,
3274,
3,
31,
1063,
31,
3430,
96,
... |
when did patient 031-17834 receive a microbiology test on the first hospital encounter for the last time? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-17834' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY microlab.culturetakentime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2179,
9339,
5,
10547,
4914,
29,
715,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,... |
What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2? | CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR) | SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND time = "1:10.57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8102,
3,
21342,
17966,
6,
1678,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3,
22412,
11834,
28,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8102,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1678,
2490,
204,
3430,
97,
3274,
96,
536,
10,
10415,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Date of 24 september 2002 had what F-A result? | CREATE TABLE table_70800 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
) | SELECT "Result F\u2013A" FROM table_70800 WHERE "Date" = '24 september 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
6192,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
20119,
377,
2,
76,
11138,
188,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
377,
2,
76,
11138,
188,
121,
21680,
953,
834,
2518,
6192,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2266,
16022,
18247,
4407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the total number for reason for change is district michigan 3rd? | CREATE TABLE table_1652224_5 (
reason_for_change VARCHAR,
district VARCHAR
) | SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2884,
2266,
834,
755,
41,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
864,
739,
834,
1161,
834,
13073,
61,
21680,
953,
834,
22823,
2884,
2266,
834,
755,
549,
17444,
427,
3939,
3274,
96,
329,
362,
12588,
220,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur? | CREATE TABLE table_name_5 (location VARCHAR, name_of_system VARCHAR, traction_type VARCHAR) | SELECT location FROM table_name_5 WHERE name_of_system = "atm (1880–1911) geta (1911–1944)" AND traction_type = "electric" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
14836,
584,
4280,
28027,
6,
564,
834,
858,
834,
3734,
584,
4280,
28027,
6,
3,
10559,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
564,
834,
858,
834,
3734,
3274,
96,
144,
51,
9323,
2079,
104,
2294,
2596,
61,
129,
9,
2863,
2596,
104,
2294,
3628,
61,
121,
3430,
3,
10559,
834,
6137,
3274,
... |
return me the conferences, which have papers by ' H. V. Jagadish ' . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE author (
aid int,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE domain_author (
aid int,
did int
) | SELECT conference.name FROM author, conference, publication, writes WHERE author.name = 'H. V. Jagadish' AND publication.cid = conference.cid AND writes.aid = author.aid AND writes.pid = publication.pid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
9838,
3,
4331,
4059,
6,
3,
10812,
16,
17,
6,
3,
13903,
834,
5525,
16,
17,
6,
3,
354,
23,
26,
16,
17,
6,
3,
12417,
16,
17,
6,
2848,
834,
5525,
16,
17,
6,
2233,
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,
2542,
5,
4350,
21680,
2291,
6,
2542,
6,
5707,
6,
11858,
549,
17444,
427,
2291,
5,
4350,
3274,
3,
31,
566,
5,
584,
5,
21520,
9,
26,
1273,
31,
3430,
5707,
5,
10812,
3274,
2542,
5,
10812,
3430,
11858,
5,
6146,
3274... |
What is the Opposition in the First Round of the UEFA Cup with a Score of 3 1 (h), 2 0 (a)? | CREATE TABLE table_63616 (
"Season" text,
"Competition" text,
"Round" text,
"Opposition" text,
"Score" text
) | SELECT "Opposition" FROM table_63616 WHERE "Round" = 'first round' AND "Competition" = 'uefa cup' AND "Score" = '3–1 (h), 2–0 (a)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3420,
2938,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
4718,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4718,
121,
21680,
953,
834,
948,
3420,
2938,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
14672,
1751,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
76,
15,
89,
9,
4119,
31,
3430,
96,
... |
How many home wins occured win the road games are larger than 3.0 but road win percentage is .000? | CREATE TABLE table_920 (
"Num" real,
"Team" text,
"W" real,
"L" real,
"PCT" text,
"PF" real,
"PA" real,
"Last appearance" real,
"Last championship" text,
"HOME games" real,
"Home wins" real,
"Home losses" real,
"Home Win Pct." text,
"ROAD games" real,
"Road wins" real,
"Road losses" real,
"Road Win Pct." text
) | SELECT "Home wins" FROM table_920 WHERE "Road Win Pct." = '.000' AND "ROAD games" > '3.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27749,
41,
96,
567,
440,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
4051,
382,
121,
1499,
6,
96,
12017,
121,
490,
6,
96,
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,
19040,
9204,
121,
21680,
953,
834,
27749,
549,
17444,
427,
96,
448,
32,
9,
26,
4871,
276,
75,
17,
535,
3274,
3,
31,
5,
2313,
31,
3430,
96,
4630,
6762,
1031,
121,
2490,
3,
31,
5787,
632,
31,
1,
-100,
-100,
... |
Who is the player on round 7 with an overall ranking of #195? | CREATE TABLE table_8410 (
"Player" text,
"Round" text,
"Overall" text,
"NHL Team" text,
"MWEHL Team" text
) | SELECT "Player" FROM table_8410 WHERE "Round" = '7' AND "Overall" = '#195' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
1714,
41,
96,
15800,
49,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
23847,
1748,
121,
1499,
6,
96,
15743,
434,
2271,
121,
1499,
6,
96,
329,
15713,
13641,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4608,
1714,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
940,
31,
3430,
96,
23847,
1748,
121,
3274,
3,
31,
4663,
22464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the western word for 'latrones' in Latin? | CREATE TABLE table_26614365_1 (
western VARCHAR,
latin VARCHAR
) | SELECT western FROM table_26614365_1 WHERE latin = "latrones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
2534,
10402,
834,
536,
41,
8282,
584,
4280,
28027,
6,
3,
14098,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8282,
1448,
21,
3,
31,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8282,
21680,
953,
834,
357,
3539,
2534,
10402,
834,
536,
549,
17444,
427,
3,
14098,
3274,
96,
521,
6255,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of bedrooms of all apartments? | CREATE TABLE Apartments (
bedroom_count INTEGER
) | SELECT AVG(bedroom_count) FROM Apartments | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
2923,
834,
13362,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
8458,
13,
66,
10424,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
24336,
834,
13362,
61,
21680,
15970,
7,
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... |
Name the total number of platforms that waddon railway station has | CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR) | SELECT COUNT(platforms) FROM table_name_41 WHERE stations = "waddon railway station" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
29100,
7,
584,
4280,
28027,
6,
6991,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
5357,
24,
8036,
26,
2029,
14421,
2478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29100,
7,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
6991,
3274,
96,
210,
13039,
106,
14421,
2478,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which tournament had a winning score of 5 (69-69-73=211)? | CREATE TABLE table_name_37 (
tournament VARCHAR,
winning_score VARCHAR
) | SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
5892,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
141,
3,
9,
3447,
2604,
13,
305,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
2,
755,
599,
3951,
3,
18,
3,
3951,
3,
18,
3,
4552,
3274,
1401,
6982,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Retrieve the country that has published the most papers. | CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE authors (
authid number,
lname text,
fname text
) | SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
17529,
21680,
16,
7,
17,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
77,
2248,
26,
3274,
3,
17,
4416,
77,
2248,
26,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
... |
Where was the former private member that was founded in 1891 and left in 1975? | CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR) | SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
14836,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
6,
646,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
646,
3274,
16312,
3430,
686,
3274,
96,
26881,
121,
3430,
5710,
3274,
507,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the column points against? | CREATE TABLE table_13564637_4 (
Id VARCHAR
) | SELECT "points" AS _against FROM table_13564637_4 WHERE "points" = "points" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4834,
4448,
4118,
834,
591,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
6710,
979,
581,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
2700,
7,
121,
6157,
3,
834,
9,
16720,
7,
17,
21680,
953,
834,
2368,
4834,
4448,
4118,
834,
591,
549,
17444,
427,
96,
2700,
7,
121,
3274,
96,
2700,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the original season in 11th place? | CREATE TABLE table_name_15 (
original_season VARCHAR,
placing VARCHAR
) | SELECT original_season FROM table_name_15 WHERE placing = "11th place" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
926,
834,
9476,
584,
4280,
28027,
6,
9308,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
926,
774,
16,
850,
189,
286,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
9476,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
9308,
3274,
96,
2596,
189,
286,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which director is from Italy? | CREATE TABLE table_name_41 (director VARCHAR, country VARCHAR) | SELECT director FROM table_name_41 WHERE country = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
25982,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2090,
19,
45,
5308,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
684,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, return a line chart about the change of commission_pct over hire_date , and I want to order by the x axis in ascending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680... |
What is the result of the UEFA Cup, against Palermo? | CREATE TABLE table_name_49 (
result VARCHAR,
competition VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_49 WHERE competition = "uefa cup" AND opponent = "palermo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
741,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
3,
5078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2259,
3274,
96,
76,
15,
89,
9,
4119,
121,
3430,
15264,
3274,
96,
6459,
49,
51,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the attribute All_Home and the amount of All_Home, show their proportion by a pie chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2847,
17161,
599,
6838,
834,
19040,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Opponent has a Method of submission? | CREATE TABLE table_14591 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Opponent" FROM table_14591 WHERE "Method" = 'submission' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
4729,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
20987,
4729,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
7304,
5451,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the title of garfield episode 2 when 'the horror hostess (part 1)' is episode 1? | CREATE TABLE table_22408 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) | SELECT "Garfield Episode 2" FROM table_22408 WHERE "Garfield Episode 1" = 'The Horror Hostess (Part 1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4018,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
21846,
1846,
16112,
209,
121,
1499,
6,
96,
1265,
5,
134,
5,
4292,
60,
7,
16112,
121,
1499,
6,
96,
21846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21846,
1846,
16112,
204,
121,
21680,
953,
834,
24622,
4018,
549,
17444,
427,
96,
21846,
1846,
16112,
209,
121,
3274,
3,
31,
634,
29792,
1546,
849,
7,
7,
41,
13725,
8925,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
find out the marital status and religious background of patient with patient id 2560. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.marital_status, demographic.religion FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
60,
2825,
23,
106,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most recent episode number written by Matthew Pitts? | CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR) | SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = "Matthew Pitts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4389,
2394,
4613,
834,
536,
41,
834,
5525,
1152,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1100,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2266,
4389,
2394,
4613,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
329,
144,
532,
210,
22042,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What titles come out monthly? | CREATE TABLE table_name_72 (
title VARCHAR,
frequency VARCHAR
) | SELECT title FROM table_name_72 WHERE frequency = "monthly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2233,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
8342,
369,
91,
3718,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
7321,
3274,
96,
7393,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which event had a total of defending champion? | CREATE TABLE table_name_39 (event VARCHAR, total VARCHAR) | SELECT event FROM table_name_39 WHERE total = "defending champion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
15,
2169,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
141,
3,
9,
792,
13,
3,
20309,
6336,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
792,
3274,
96,
20309,
6336,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which school has the Raiders as their mascot? | CREATE TABLE table_72154 (
"School" text,
"Mascot" text,
"Location" text,
"League" text,
"Enrollment" real
) | SELECT "School" FROM table_72154 WHERE "Mascot" = 'Raiders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
27308,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
8532,
4046,
297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
5865,
27308,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
448,
18900,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52? | CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR) | SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
89,
9,
834,
4658,
834,
839,
5405,
3,
21342,
17966,
6,
792,
834,
3096,
7,
834,
834,
7304,
834,
584,
4280,
28027,
6,
792,
834,
839,
5405,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
89,
9,
834,
4658,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
792,
834,
3096,
7,
834,
834,
7304,
834,
3274,
96,
5373,
121,
3430,
792,
834,
839,
5405,
3,
2,
305,
1,
-100,
... |
What is the lowest grid with time of +0.499,when laps are larger than 21? | CREATE TABLE table_name_33 (
grid INTEGER,
time VARCHAR,
laps VARCHAR
) | SELECT MIN(grid) FROM table_name_33 WHERE time = "+0.499" AND laps > 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
8634,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
8634,
28,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
97,
3274,
96,
1220,
22776,
3264,
121,
3430,
14941,
7,
2490,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of Time and ID , and list by the bar from low to high please. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT Time, ID FROM swimmer ORDER BY Time | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
2900,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
2900,
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,
-1... |
For series number 256, what was the original air date? | CREATE TABLE table_17356106_1 (
original_air_date VARCHAR,
series__number VARCHAR
) | SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
948,
16431,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2517,
2469,
948,
16431,
834,
536,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
3,
19337,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is British, when Examples is 'November, rotunda, colossus, proscenium'? | CREATE TABLE table_59712 (
"Initial-syllable open/semi-open unstressed vowels" text,
"17th c." text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
) | SELECT "British" FROM table_59712 WHERE "Examples" = 'november, rotunda, colossus, proscenium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4450,
357,
41,
96,
1570,
23,
10646,
18,
7,
63,
195,
179,
539,
87,
7,
15,
51,
23,
18,
8751,
1149,
9746,
15,
26,
22121,
3573,
121,
1499,
6,
96,
2517,
189,
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,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
13224,
7,
107,
121,
21680,
953,
834,
3390,
4450,
357,
549,
17444,
427,
96,
5420,
9,
9208,
7,
121,
3274,
3,
31,
5326,
18247,
6,
3,
2719,
1106,
9,
6,
3,
8135,
7,
7,
302,
6,
7796,
18778,
440,
31,
1,
-1... |
What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days? | CREATE TABLE table_name_6 (total_tenure_rank VARCHAR, uninterrupted_time VARCHAR) | SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = "49 years, 349 days" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
235,
1947,
834,
324,
1462,
834,
6254,
584,
4280,
28027,
6,
29574,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
20752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
834,
324,
1462,
834,
6254,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
29574,
834,
715,
3274,
96,
3647,
203,
6,
220,
3647,
477,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the project id and detail for the project with at least two documents? | CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
) | SELECT T1.project_id, T1.project_details FROM projects AS T1 JOIN documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2691,
834,
4065,
834,
994,
3801,
15,
7,
41,
1708,
834,
23,
26,
381,
6,
1487,
834,
6137,
834,
4978,
1499,
6,
1708,
834,
221,
5756,
7,
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,
23574,
834,
23,
26,
6,
332,
5411,
23574,
834,
221,
5756,
7,
21680,
1195,
6157,
332,
536,
3,
15355,
3162,
2691,
6157,
332,
357,
9191,
332,
5411,
23574,
834,
23,
26,
3274,
332,
4416,
23574,
834,
23,
26,
3... |
What season had an acquisition of free agency, and was higher than 9? | CREATE TABLE table_name_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR) | SELECT season FROM table_name_89 WHERE acquisition_via = "free agency" AND number > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
9476,
584,
4280,
28027,
6,
6566,
834,
5907,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
141,
46,
6566,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
6566,
834,
5907,
3274,
96,
2113,
3193,
121,
3430,
381,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the comedians on episode 1x03? | CREATE TABLE table_2772 (
"Episode" text,
"Location" text,
"Headliner" text,
"Comedians" text,
"Airdate" text
) | SELECT "Comedians" FROM table_2772 WHERE "Episode" = '1x03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3845,
9,
26,
747,
52,
121,
1499,
6,
96,
5890,
15,
8603,
7,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
15,
8603,
7,
121,
21680,
953,
834,
2555,
5865,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
536,
226,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Select the names of all the products in the store. | CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
) | SELECT name FROM products | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6,
594,
381,
6,
4818,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
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,
564,
21680,
494,
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,
-100,
-100,
-100,
-100,
-... |
Show me the proportion on what are the ids and names of the companies that operated more than one flight? | CREATE TABLE airport (
id int,
City text,
Country text,
IATA text,
ICAO text,
name text
)
CREATE TABLE flight (
id int,
Vehicle_Flight_number text,
Date text,
Pilot text,
Velocity real,
Altitude real,
airport_id int,
company_id int
)
CREATE TABLE operate_company (
id int,
name text,
Type text,
Principal_activities text,
Incorporated_in text,
Group_Equity_Shareholding real
) | SELECT T1.name, T1.id FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
3,
23,
26,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
27,
19282,
1499,
6,
3,
15038,
667,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
6,
332,
5411,
23,
26,
21680,
4368,
834,
29179,
6157,
332,
536,
3,
15355,
3162,
3777,
6157,
3,
17,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
29179,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100... |
What is the date of the match with arnaud di pasquale as the opponent in the final? | CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_69 WHERE opponent_in_the_final = "arnaud di pasquale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
5522,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
1588,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
15918,
76,
26,
1227,
330,
11433,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opposing team played at Riverfront Stadium? | CREATE TABLE table_14563349_11 (opponent VARCHAR, location VARCHAR) | SELECT opponent FROM table_14563349_11 WHERE location = "Riverfront Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4834,
4201,
3647,
834,
2596,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
10720,
53,
372,
1944,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2534,
4834,
4201,
3647,
834,
2596,
549,
17444,
427,
1128,
3274,
96,
448,
23,
624,
6849,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the country when the total is 111 and the day 1 is 69? | CREATE TABLE table_name_4 (country VARCHAR, total VARCHAR, day_1 VARCHAR) | SELECT country FROM table_name_4 WHERE total = 111 AND day_1 = 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
17529,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
239,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
684,
116,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
792,
3274,
3,
15866,
3430,
239,
834,
536,
3274,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the match on June 4, 2008? | CREATE TABLE table_37248 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_37248 WHERE "Date" = 'june 4, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
3707,
41,
96,
6221,
138,
121,
490,
6,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4118,
357,
3707,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
6464,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the names of all artists that have 'a' in their names. | CREATE TABLE invoice (
invoiceid number,
customerid number,
invoicedate time,
billingaddress text,
billingcity text,
billingstate text,
billingcountry text,
billingpostalcode text,
total number
)
CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE track (
trackid number,
name text,
albumid number,
mediatypeid number,
genreid number,
composer text,
milliseconds number,
bytes number,
unitprice number
)
CREATE TABLE mediatype (
mediatypeid number,
name text
)
CREATE TABLE employee (
employeeid number,
lastname text,
firstname text,
title text,
reportsto number,
birthdate time,
hiredate time,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text
)
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
)
CREATE TABLE album (
albumid number,
title text,
artistid number
)
CREATE TABLE playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE artist (
artistid number,
name text
)
CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE customer (
customerid number,
firstname text,
lastname text,
company text,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text,
supportrepid number
) | SELECT name FROM artist WHERE name LIKE "%a%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10921,
41,
10921,
23,
26,
381,
6,
884,
23,
26,
381,
6,
10921,
5522,
97,
6,
14425,
9,
26,
12039,
1499,
6,
14425,
6726,
1499,
6,
14425,
5540,
1499,
6,
14425,
17529,
1499,
6,
14425,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
2377,
549,
17444,
427,
564,
8729,
9914,
96,
1454,
9,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who played as Team 2 against Team 1 SC Gagnoa? | CREATE TABLE table_68473 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 2" FROM table_68473 WHERE "Team 1" = 'sc gagnoa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4177,
519,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
18699,
204,
121,
21680,
953,
834,
3651,
4177,
519,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
7,
75,
7922,
6715,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the driver of the entry constructed by Mercedes-Benz? | CREATE TABLE table_1972 (
"Year" real,
"Formula" text,
"Driver" text,
"Constructor" text,
"Location" text,
"Report" text
) | SELECT "Driver" FROM table_1972 WHERE "Constructor" = 'Mercedes-Benz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
5865,
41,
96,
476,
2741,
121,
490,
6,
96,
3809,
4115,
9,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
20982,
52,
121,
21680,
953,
834,
2294,
5865,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
18180,
15,
1395,
18,
15349,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the away team score when Waverley Park was the ground and the home team was collingwood? | CREATE TABLE table_name_80 (away_team VARCHAR, ground VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_80 WHERE ground = "waverley park" AND home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1591,
3274,
96,
12301,
52,
1306,
2447,
121,
3430,
234,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which College has a Year smaller than 1962, and a Position of rb? | CREATE TABLE table_name_98 (
college VARCHAR,
year VARCHAR,
position VARCHAR
) | SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1900,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1888,
65,
3,
9,
2929,
2755,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
215,
3,
2,
20236,
3430,
1102,
3274,
96,
52,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the Competition of euro 2000 qualifier? | CREATE TABLE table_name_78 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_78 WHERE competition = "euro 2000 qualifier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
15571,
13,
3983,
2766,
10597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
2259,
3274,
96,
1238,
32,
2766,
10597,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are McCain's Percent when Obama has 36.47%? | CREATE TABLE table_20688030_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR) | SELECT mccain_percentage FROM table_20688030_1 WHERE obama_percentage = "36.47%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3651,
2079,
1458,
834,
536,
41,
51,
12464,
77,
834,
883,
3728,
545,
584,
4280,
28027,
6,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
51,
12464,
77,
834,
883,
3728,
545,
21680,
953,
834,
1755,
3651,
2079,
1458,
834,
536,
549,
17444,
427,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
3274,
96,
519,
27869,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What was the method for the resolution of the fight at UFC 160? | CREATE TABLE table_name_33 (
method VARCHAR,
event VARCHAR
) | SELECT method FROM table_name_33 WHERE event = "ufc 160" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1573,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1573,
21,
8,
3161,
13,
8,
2870,
44,
412,
5390,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
605,
3274,
96,
76,
89,
75,
11321,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
subject is a non _ smoker. | CREATE TABLE table_train_94 (
"id" int,
"mini_mental_state_examination_mmse" int,
"substance_dependence" bool,
"psychiatric_disease" bool,
"modified_hachinski_ischemia_scale" int,
"smoking" bool,
"alcohol_abuse" bool,
"NOUSE" float
) | SELECT * FROM table_train_94 WHERE smoking = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4240,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
7304,
8389,
834,
18790,
1433,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4240,
549,
17444,
427,
10257,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity? | CREATE TABLE table_name_49 (
opened VARCHAR,
stadium VARCHAR,
capacity VARCHAR
) | SELECT COUNT(opened) FROM table_name_49 WHERE stadium = "stade de la mosson" AND capacity > 32 OFFSET 939 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
2946,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
792,
381,
13,
2946,
65,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26940,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
14939,
3274,
96,
2427,
221,
20,
50,
3,
3972,
739,
121,
3430,
2614,
2490,
3538,
3,
15316,
20788,
668,
3288,
1,
-100,
-100,
-100,
-100,
-... |
Return a bar chart on what is the average base price of rooms, for each bed type?, and sort from high to low by the mean baseprice. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
) | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the player for east perth | CREATE TABLE table_name_88 (
player VARCHAR,
team VARCHAR
) | SELECT player FROM table_name_88 WHERE team = "east perth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1959,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1959,
21,
5727,
399,
189,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
372,
3274,
96,
11535,
399,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which neighborhood has the highest crime rate? | CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) | SELECT lsoa FROM greatermanchestercrime GROUP BY lsoa ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2123,
348,
13263,
2685,
526,
41,
5447,
23,
26,
1499,
6,
5447,
17,
7,
97,
6,
1128,
1499,
6,
3,
40,
7,
32,
9,
1499,
6,
686,
1499,
6,
6138,
1499,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
7,
32,
9,
21680,
2123,
348,
13263,
2685,
526,
350,
4630,
6880,
272,
476,
3,
40,
7,
32,
9,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
... |
When Richmond was the Home team, who was the away team? | CREATE TABLE table_name_97 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_97 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
17247,
47,
8,
1210,
372,
6,
113,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What District has a College or Campus Name of anna university college of engineering kanchipuram? | CREATE TABLE table_name_31 (
district VARCHAR,
college_or_campus_name VARCHAR
) | SELECT district FROM table_name_31 WHERE college_or_campus_name = "anna university college of engineering kanchipuram" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3939,
584,
4280,
28027,
6,
1900,
834,
127,
834,
25532,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3570,
65,
3,
9,
1888,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1900,
834,
127,
834,
25532,
834,
4350,
3274,
96,
10878,
3819,
1900,
13,
3867,
3,
3304,
1436,
3791,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what team's score is 101? | CREATE TABLE table_name_42 (
team VARCHAR,
score VARCHAR
) | SELECT team FROM table_name_42 WHERE score = "101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
372,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
372,
31,
7,
2604,
19,
13736,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2604,
3274,
96,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the largest amount of spectators when St Kilda was the away team? | CREATE TABLE table_55072 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_55072 WHERE "Away team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17147,
5865,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
17147,
5865,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Club warrnambool has less than 9 wins and what average of draws? | CREATE TABLE table_64312 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Draws") FROM table_64312 WHERE "Wins" < '9' AND "Club" = 'warrnambool' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
519,
2122,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
4389,
519,
2122,
549,
17444,
427,
96,
18455,
7,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
2910,
52,
13363,
12840,
40,
31,
1,
... |
Which teams won when Bobby Rahal was their winning driver? | CREATE TABLE table_10706961_2 (winning_team VARCHAR, winning_driver VARCHAR) | SELECT winning_team FROM table_10706961_2 WHERE winning_driver = "Bobby Rahal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
41,
8163,
834,
11650,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2323,
751,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
11650,
21680,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
279,
32,
115,
969,
20492,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What tournament is in Arizona? | CREATE TABLE table_name_70 (tournament VARCHAR, location VARCHAR) | SELECT tournament FROM table_name_70 WHERE location = "arizona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
19,
16,
7601,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1128,
3274,
96,
1665,
8892,
9,
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 result of the fight when record is 12-2? | CREATE TABLE table_name_79 (
res VARCHAR,
record VARCHAR
) | SELECT res FROM table_name_79 WHERE record = "12-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3,
60,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
2870,
116,
1368,
19,
586,
4949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
7,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1368,
3274,
96,
2122,
4949,
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 location and attendance of the game when the score is 125-100? | CREATE TABLE table_48456 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_48456 WHERE "Score" = '125-100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2128,
948,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
22497,
663,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
3707,
2128,
948,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
10124,
18,
2915,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record of the game with Andrew Bogut (21) as the leading scorer? | CREATE TABLE table_name_43 (record VARCHAR, leading_scorer VARCHAR) | SELECT record FROM table_name_43 WHERE leading_scorer = "andrew bogut (21)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
60,
7621,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
467,
28,
5954,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
232,
60,
210,
3005,
11221,
4743,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people were at the game that took place at the Kingdome? | CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR) | SELECT attendance FROM table_name_21 WHERE game_site = "the kingdome" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
15116,
663,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
130,
44,
8,
467,
24,
808,
286,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
467,
834,
3585,
3274,
96,
532,
14740,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Branding, when Callsign is 'DXED-TV'? | CREATE TABLE table_name_73 (
branding VARCHAR,
callsign VARCHAR
) | SELECT branding FROM table_name_73 WHERE callsign = "dxed-tv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
14282,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4688,
53,
6,
116,
2571,
6732,
19,
3,
31,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14282,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
580,
6732,
3274,
96,
26,
226,
15,
26,
18,
17,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose admission location is emergency room admit and procedure short title is arthrocentesis? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Arthrocentesis" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the sum of the position with less than 0 draws? | CREATE TABLE table_12434 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT SUM("Position") FROM table_12434 WHERE "Draws" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
3710,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
22504,
3710,
549,
17444,
427,
96,
308,
10936,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what day is geelong the home team? | CREATE TABLE table_name_37 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_37 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
239,
19,
873,
15,
2961,
8,
234,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Record is on july 31? | CREATE TABLE table_name_23 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_23 WHERE date = "july 31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
19,
30,
3,
2047,
120,
2664,
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,
1368,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
833,
3274,
96,
2047,
120,
2664,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is drug type and drug route of drug name fat emulsion 20%? | 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 prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Fat Emulsion 20%" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
371,
144,
3967,
83,
1938,
7580,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the 2006 with 2008 of 1r and 2004 of 1r | CREATE TABLE table_name_22 (
Id VARCHAR
) | SELECT 2006 FROM table_name_22 WHERE 2008 = "1r" AND 2004 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3581,
28,
2628,
13,
209,
52,
11,
4406,
13,
209,
52,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3581,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2628,
3274,
96,
536,
52,
121,
3430,
4406,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients with medicare insurance who were diagnosed with acute myocardial infarction of inferolateral wall, initial episode of care. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Acute myocardial infarction of inferolateral wall, initial episode of care" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Tell me the result for venue of a | CREATE TABLE table_name_51 (
result VARCHAR,
venue VARCHAR
) | SELECT result FROM table_name_51 WHERE venue = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
741,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
741,
21,
5669,
13,
3,
9,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
5669,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the position of the player from Saskatchewan Roughriders? | CREATE TABLE table_26197 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"School" text
) | SELECT "Position" FROM table_26197 WHERE "CFL Team" = 'Saskatchewan Roughriders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
27181,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
2688,
27181,
549,
17444,
427,
96,
254,
10765,
2271,
121,
3274,
3,
31,
134,
9,
7,
8682,
1033,
3877,
391,
4607,
4055,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which opponent, before Week 10, had an attendance of 63,672? | CREATE TABLE table_32401 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_32401 WHERE "Week" < '10' AND "Attendance" = '63,672' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
20016,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
2668,
20016,
549,
17444,
427,
96,
518,
10266,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3891,
6,
3708,
357,
31,
1,
-100,
-100,
-10... |
How much Lost has an Against larger than 19, and a Drawn smaller than 1? | CREATE TABLE table_name_67 (
lost INTEGER,
against VARCHAR,
drawn VARCHAR
) | SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1513,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
19576,
65,
46,
3,
20749,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
581,
2490,
957,
3430,
6796,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return the number of music festivals of each category, show by the Category in desc. | CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE volume (
Volume_ID int,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
)
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
) | SELECT Category, COUNT(*) FROM music_festival GROUP BY Category ORDER BY Category DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
723,
834,
89,
24742,
41,
4699,
16,
17,
6,
3057,
834,
371,
24742,
1499,
6,
7678,
834,
858,
834,
2110,
15,
21208,
1499,
6,
17459,
1499,
6,
14816,
16,
17,
6,
3,
20119,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17459,
6,
2847,
17161,
599,
1935,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
17459,
4674,
11300,
272,
476,
17459,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were the results in the election where Albert Wynn was the incumbent? | CREATE TABLE table_1341423_20 (
results VARCHAR,
incumbent VARCHAR
) | SELECT results FROM table_1341423_20 WHERE incumbent = "Albert Wynn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
2773,
834,
1755,
41,
772,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
772,
16,
8,
4356,
213,
11375,
11314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
23747,
2534,
2773,
834,
1755,
549,
17444,
427,
28406,
3274,
96,
25691,
49,
17,
11314,
29,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What were the results against the game against Skoplje? | CREATE TABLE table_name_61 (
results¹ VARCHAR,
city VARCHAR
) | SELECT results¹ FROM table_name_61 WHERE city = "skoplje" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
772,
536,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
772,
581,
8,
467,
581,
180,
17466,
40,
1924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
772,
536,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
690,
3274,
96,
7,
17466,
40,
1924,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1? | CREATE TABLE table_48056 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_48056 WHERE "Rank" = '26' AND "Total" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
4834,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
20579,
4834,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
2688,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most common participant type? | CREATE TABLE participants (participant_type_code VARCHAR) | SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3008,
41,
2274,
23,
3389,
288,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1017,
8344,
686,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8344,
834,
6137,
834,
4978,
21680,
3008,
350,
4630,
6880,
272,
476,
8344,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what date is the winning score –8 (70-71-67=208)? | CREATE TABLE table_name_54 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_54 WHERE winning_score = –8(70 - 71 - 67 = 208) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5522,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
19,
8,
3447,
2604,
3,
104,
927,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
104,
927,
599,
2518,
3,
18,
3,
4450,
3,
18,
3,
3708,
3274,
460,
13520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest win% with an away score of 3-2 in 2011 season? | CREATE TABLE table_name_53 (
win__percentage INTEGER,
away VARCHAR,
season VARCHAR
) | SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1369,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
550,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
550,
3274,
96,
21160,
121,
3430,
774,
3274,
96,
13907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names and prices of all products in the store Plot them as bar chart, sort by the x axis in ascending. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, AVG(Price) FROM Products GROUP BY Name ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
71,
17217,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of employees of the departments whose rank is between 10 and 15? | CREATE TABLE department (
department_id number,
name text,
creation text,
ranking number,
budget_in_billions number,
num_employees number
)
CREATE TABLE management (
department_id number,
head_id number,
temporary_acting text
)
CREATE TABLE head (
head_id number,
name text,
born_state text,
age number
) | SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
3066,
834,
23,
26,
381,
6,
564,
1499,
6,
3409,
1499,
6,
11592,
381,
6,
1487,
834,
77,
834,
115,
14916,
7,
381,
6,
3,
5525,
834,
15,
51,
7379,
63,
15,
15,
7,
381,
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,
71,
17217,
599,
5525,
834,
15,
51,
7379,
63,
15,
15,
7,
61,
21680,
3066,
549,
17444,
427,
11592,
272,
7969,
518,
23394,
335,
3430,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the payment method code used by the most orders? | CREATE TABLE INVOICES (payment_method_code VARCHAR) | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3388,
8040,
8906,
134,
41,
21752,
834,
23152,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1942,
1573,
1081,
261,
57,
8,
167,
5022,
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,
1942,
834,
23152,
834,
4978,
21680,
3388,
8040,
8906,
134,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
... |
What is the position for the university of north carolina carolina dynamo affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) | SELECT position FROM table_29626583_1 WHERE affiliation = "University of North Carolina Carolina Dynamo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4056,
4122,
4591,
834,
536,
41,
4718,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
21,
8,
3819,
13,
3457,
443,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
3166,
4056,
4122,
4591,
834,
536,
549,
17444,
427,
24405,
3274,
96,
8313,
485,
13,
1117,
5089,
5089,
13967,
51,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the attendance of the san diego chargers game before week 6? | CREATE TABLE table_69996 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Attendance") FROM table_69996 WHERE "Week" < '6' AND "Opponent" = 'san diego chargers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3264,
948,
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,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3951,
3264,
948,
549,
17444,
427,
96,
518,
10266,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
152,
67,
839,
17... |
What date has attendance listed as 45,024? | CREATE TABLE table_name_11 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_11 WHERE attendance = "45,024" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
11364,
2616,
38,
3479,
6,
632,
2266,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
11364,
3274,
96,
2128,
6,
4305,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose drug type is main and lab test name is reticulocyte count, manual? | 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "Reticulocyte Count, Manual" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
find the primary disease and diagnoses icd9 code of subject id 990. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
18730,
7,
5,
447,
26,
1298,
834,
4978,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
17... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.