NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many wins have a Series of formula nippon, and a Position of 8th? | CREATE TABLE table_name_78 (
wins VARCHAR,
series VARCHAR,
position VARCHAR
) | SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
9204,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
43,
3,
9,
4531,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
939,
3274,
96,
2032,
83,
9,
3,
29,
23640,
29,
121,
3430,
1102,
3274,
96,
927,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 18 to 49 rating when 9.50 million watched? | CREATE TABLE table_24689168_5 (rating__18_49_ VARCHAR, viewers__millions_ VARCHAR) | SELECT rating__18_49_ FROM table_24689168_5 WHERE viewers__millions_ = "9.50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3651,
4729,
3651,
834,
755,
41,
52,
1014,
834,
834,
2606,
834,
3647,
834,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5773,
834,
834,
2606,
834,
3647,
834,
21680,
953,
834,
2266,
3651,
4729,
3651,
834,
755,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
8797,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least 2 credits for straight hand | CREATE TABLE table_19611 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" real
) | SELECT MIN("2 credits") FROM table_19611 WHERE "Hand" = 'Straight' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
2596,
41,
96,
566,
232,
121,
1499,
6,
96,
536,
998,
121,
490,
6,
96,
357,
11893,
121,
490,
6,
96,
519,
11893,
121,
490,
6,
96,
591,
11893,
121,
490,
6,
96,
755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
357,
11893,
8512,
21680,
953,
834,
26937,
2596,
549,
17444,
427,
96,
566,
232,
121,
3274,
3,
31,
11500,
9,
2632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Money ($) player Loren Roberts has made? | CREATE TABLE table_name_93 (
money___ INTEGER,
player VARCHAR
) | SELECT MAX(money___) AS $__ FROM table_name_93 WHERE player = "loren roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8833,
8785,
61,
1959,
8410,
35,
2715,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1959,
3274,
96,
322,
35,
3,
5840,
49,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was Tim Simpson's place? | CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_94 WHERE player = "tim simpson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
4485,
21965,
31,
7,
286,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1959,
3274,
96,
2998,
108,
1167,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score in the game where the Blazers were the home team? | CREATE TABLE table_name_95 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_95 WHERE home = "blazers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
7,
9022,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
8,
467,
213,
8,
6942,
2558,
7,
130,
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,
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,
3301,
549,
17444,
427,
234,
3274,
96,
21020,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the programming for mrt sobraniski kanal? | CREATE TABLE table_59069 (
"Name" text,
"Owner" text,
"Programming" text,
"Type" text,
"Encryption" text
) | SELECT "Programming" FROM table_59069 WHERE "Name" = 'mrt sobraniski kanal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2394,
3951,
41,
96,
23954,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
3174,
16582,
53,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
13708,
23,
106,
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,
3174,
16582,
53,
121,
21680,
953,
834,
755,
2394,
3951,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
51,
52,
17,
78,
1939,
29,
23,
4009,
3,
3304,
138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the score for record of 2-5 | CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR) | SELECT score FROM table_17432028_1 WHERE record = "2-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
15003,
2577,
834,
536,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
1368,
13,
204,
4525,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
27693,
15003,
2577,
834,
536,
549,
17444,
427,
1368,
3274,
96,
7412,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the cost of a drug known as dextrose 5%/nacl 0.45%? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'dextrose 5%/nacl 0.45%') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
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,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
526,
17530,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
526,
17530,
23,
26,
21680,
... |
Where did the character of Aiden Burn csi detective first appear? | CREATE TABLE table_name_21 (first_appearance VARCHAR, character VARCHAR) | SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
14672,
834,
3096,
2741,
663,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
1848,
13,
12090,
35,
10846,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
3096,
2741,
663,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1848,
3274,
96,
5385,
29,
5958,
3,
75,
7,
23,
23959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose insurance is private and diagnosis long title is fever presenting with conditions classified elsewhere. | 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 lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.long_title = "Fever presenting with conditions classified elsewhere" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What shows for 2006 when 1999 is Grand Slam Tournaments? | CREATE TABLE table_50782 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text... | SELECT "2006" FROM table_50782 WHERE "1990" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3940,
357,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
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,
21196,
121,
21680,
953,
834,
1752,
3940,
357,
549,
17444,
427,
96,
2294,
2394,
121,
3274,
3,
31,
15448,
3,
7,
40,
265,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0? | CREATE TABLE table_24944 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
) | SELECT "Athlete" FROM table_24944 WHERE "Nation" = 'Ethiopia (ETH)' AND "Rank" > '7.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3647,
3628,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
667,
120,
51,
6174,
7,
121,
1499,
6,
96,
23576,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
189,
1655,
15,
121,
21680,
953,
834,
357,
3647,
3628,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
427,
7436,
18916,
41,
27333,
61,
31,
3430,
96,
22557,
121,
2490,
3,
31,
26346,
31,
1,
-100,
-100,
-... |
Please show different denominations and the corresponding number of schools in descending order. | CREATE TABLE school (
Denomination VARCHAR
) | SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
3128,
32,
14484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
863,
504,
315,
28730,
7,
11,
8,
3,
9921,
381,
13,
2061,
16,
3,
30960,
455,
5,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3128,
32,
14484,
6,
2847,
17161,
599,
1935,
61,
21680,
496,
350,
4630,
6880,
272,
476,
3128,
32,
14484,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id. | CREATE TABLE payment (customer_id VARCHAR); CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR) | SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1942,
41,
25697,
49,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
14672,
834,
4350,
6,
332,
5411,
5064,
834,
4350,
6,
332,
5411,
25697,
49,
834,
23,
26,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
1942,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
33... |
What is the total number of u.s. air dates with a title of 'dermabrasion | CREATE TABLE table_483 (
"Season #" real,
"Series #" real,
"Title" text,
"Canadian airdate" text,
"U.S. airdate" text,
"Production code" real
) | SELECT COUNT("U.S. airdate") FROM table_483 WHERE "Title" = 'Dermabrasion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
519,
41,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
14050,
9,
8603,
799,
5522,
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,
2847,
17161,
599,
121,
1265,
5,
134,
5,
799,
5522,
8512,
21680,
953,
834,
3707,
519,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
308,
49,
51,
9,
1939,
1938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0? | CREATE TABLE table_name_46 (
agricultural_panel INTEGER,
industrial_and_commercial_panel INTEGER
) | SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
10687,
834,
28726,
3,
21342,
17966,
6,
2913,
834,
232,
834,
27260,
834,
28726,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
9,
3496,
14700,
834,
28726,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2913,
834,
232,
834,
27260,
834,
28726,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia? | CREATE TABLE table_name_75 (
group_vI VARCHAR,
group_iII VARCHAR,
valencia VARCHAR,
group_i VARCHAR,
group_iV VARCHAR,
sevilla VARCHAR
) | SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
563,
834,
208,
196,
584,
4280,
28027,
6,
563,
834,
23,
196,
196,
584,
4280,
28027,
6,
3,
2165,
35,
4915,
584,
4280,
28027,
6,
563,
834,
23,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
563,
834,
208,
196,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
563,
834,
23,
3274,
96,
221,
1493,
23,
1621,
121,
3430,
563,
834,
23,
553,
3274,
142,
24887,
3430,
563,
834,
23,
196,
196,
3274,
3,
2165,
35,
... |
What are the number of the completion dates of all the tests that have result 'Fail'?, display from low to high by the total number. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
per... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
7699,
109,
1575,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7699,
109,
1575,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
382,
222,
7,
8... |
how many episodes originally aired january19,2013 | CREATE TABLE table_29196086_4 (
no_in_series VARCHAR,
original_air_date VARCHAR
) | SELECT COUNT(no_in_series) FROM table_29196086_4 WHERE original_air_date = "January19,2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2294,
3328,
3840,
834,
591,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
3166,
2294,
3328,
3840,
834,
591,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
30404,
2294,
6,
11138,
121,
1,
-100,
-100,
-100,
-100,
... |
How many points did the Castres have? | CREATE TABLE table_name_59 (
points_for VARCHAR,
club VARCHAR
) | SELECT points_for FROM table_name_59 WHERE club = "castres" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
979,
834,
1161,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
8,
11583,
60,
7,
43,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
1161,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1886,
3274,
96,
5254,
60,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Average Height, when Weight is less than 93, when Spike is less than 336, and when Block is 305? | CREATE TABLE table_40005 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
) | SELECT AVG("Height") FROM table_40005 WHERE "Weight" < '93' AND "Spike" < '336' AND "Block" = '305' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
3076,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
3845,
2632,
121,
490,
6,
96,
1326,
2632,
121,
490,
6,
96,
134,
102,
5208,
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,
71,
17217,
599,
121,
3845,
2632,
8512,
21680,
953,
834,
5548,
3076,
549,
17444,
427,
96,
1326,
2632,
121,
3,
2,
3,
31,
4271,
31,
3430,
96,
134,
102,
5208,
121,
3,
2,
3,
31,
519,
3420,
31,
3430,
96,
279,
4029,
... |
What is the singular if the plural is xweer(a)du? | CREATE TABLE table_39940 (
"singular" text,
"singular gender" text,
"plural" text,
"plural gender" text,
"meaning" text
) | SELECT "singular" FROM table_39940 WHERE "plural" = 'xweer(a)du' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
2445,
41,
96,
7,
53,
4885,
121,
1499,
6,
96,
7,
53,
4885,
7285,
121,
1499,
6,
96,
12456,
4900,
121,
1499,
6,
96,
12456,
4900,
7285,
121,
1499,
6,
96,
27639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
53,
4885,
121,
21680,
953,
834,
519,
3264,
2445,
549,
17444,
427,
96,
12456,
4900,
121,
3274,
3,
31,
226,
1123,
49,
599,
9,
61,
1259,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many assists did the player who played 195 minutes make | CREATE TABLE table_19722233_5 (
assists VARCHAR,
minutes VARCHAR
) | SELECT assists FROM table_19722233_5 WHERE minutes = 195 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
2884,
20879,
834,
755,
41,
13041,
584,
4280,
28027,
6,
676,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
13041,
410,
8,
1959,
113,
1944,
3,
22464,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13041,
21680,
953,
834,
27181,
2884,
20879,
834,
755,
549,
17444,
427,
676,
3274,
3,
22464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is listed for the Class that's got a Team of Cagiva and Points of 4? | CREATE TABLE table_37835 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT "Class" FROM table_37835 WHERE "Team" = 'cagiva' AND "Points" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
2469,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
519,
3940,
2469,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
75,
6623,
900,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell the final for lindsey graham | CREATE TABLE table_1133844_4 (result VARCHAR, senator VARCHAR) | SELECT result FROM table_1133844_4 WHERE senator = "Lindsey Graham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3747,
3628,
834,
591,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
20596,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
817,
8,
804,
21,
3,
9230,
7,
15,
63,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
20522,
3747,
3628,
834,
591,
549,
17444,
427,
20596,
3274,
96,
434,
77,
26,
7,
15,
63,
15146,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Tournament has A in 1987? | CREATE TABLE table_name_11 (tournament VARCHAR) | SELECT tournament FROM table_name_11 WHERE 1987 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
71,
16,
12701,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
12701,
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,
... |
Which 2008 09 has a 2012 13 of q, and a 2006 07 of q, and a 2007 08 of qf? | CREATE TABLE table_38551 (
"Event" text,
"2006\u201307" text,
"2007\u201308" text,
"2008\u201309" text,
"2009\u201310" text,
"2010\u201311" text,
"2012\u201313" text
) | SELECT "2008\u201309" FROM table_38551 WHERE "2012\u201313" = 'q' AND "2006\u201307" = 'q' AND "2007\u201308" = 'qf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3769,
536,
41,
96,
427,
2169,
121,
1499,
6,
96,
21196,
2,
76,
11138,
4560,
121,
1499,
6,
96,
20615,
2,
76,
11138,
4018,
121,
1499,
6,
96,
16128,
2,
76,
11138,
4198,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
2,
76,
11138,
4198,
121,
21680,
953,
834,
3747,
3769,
536,
549,
17444,
427,
96,
12172,
2,
76,
11138,
2368,
121,
3274,
3,
31,
1824,
31,
3430,
96,
21196,
2,
76,
11138,
4560,
121,
3274,
3,
31,
1824,
31,
... |
How many picks did Mike Zaher have? | CREATE TABLE table_5199 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT SUM("Pick #") FROM table_5199 WHERE "Player" = 'mike zaher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3264,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
5553,
3264,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
20068,
15,
3,
1629,
760,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the owner operator who has license number PL 59? | CREATE TABLE table_name_85 (
owner_operator VARCHAR,
licence_number VARCHAR
) | SELECT owner_operator FROM table_name_85 WHERE licence_number = "pl 59" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2527,
834,
32,
883,
1016,
584,
4280,
28027,
6,
11629,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2527,
7221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2527,
834,
32,
883,
1016,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
11629,
834,
5525,
1152,
3274,
96,
102,
40,
3,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Home team's score when the Venue was mcg? | CREATE TABLE table_33053 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_33053 WHERE "Venue" = 'mcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
4867,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
17225,
4867,
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,
-100,
-100,
-100,
-1... |
What are the average prices of products, grouped by manufacturer name, could you show in desc by the y-axis? | 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 T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY AVG(T1.Price) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
71,
17217,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880... |
List the first and last name of the students who do not have any food type allergy. | CREATE TABLE Student (
fname VARCHAR,
lname VARCHAR,
StuID VARCHAR
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR,
allergytype VARCHAR
)
CREATE TABLE Has_allergy (
StuID VARCHAR,
Allergy VARCHAR
) | SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
89,
4350,
584,
4280,
28027,
6,
3,
40,
4350,
584,
4280,
28027,
6,
3,
13076,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
4350,
6,
3,
40,
4350,
21680,
6341,
549,
17444,
427,
4486,
3,
13076,
4309,
3388,
41,
23143,
14196,
332,
5411,
13076,
4309,
21680,
4498,
834,
11211,
122,
63,
6157,
332,
536,
3,
15355,
3162,
432,
49,
122,
63,
... |
Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana? | CREATE TABLE table_44593 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Points" real,
"Final Placing" text
) | SELECT SUM("Poles") FROM table_44593 WHERE "Season" = '2005' AND "Series" = 'formula three sudamericana' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
4271,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
8931,
15,
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,
8931,
15,
7,
8512,
21680,
953,
834,
591,
2128,
4271,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
22594,
31,
3430,
96,
12106,
7,
121,
3274,
3,
31,
2032,
83,
9,
386,
8411,
23064,
... |
Display a bar chart for what are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?, rank in descending by the bar please. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
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,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
4674,
11300,
272,
476,
16873,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the retail space of the Stony Point Fashion Park Mall? | CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR) | SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = "stony point fashion park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
60,
5756,
834,
6633,
834,
7,
1824,
834,
89,
15,
15,
17,
834,
834,
51,
357,
834,
584,
4280,
28027,
6,
13912,
834,
4350,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3549,
834,
6633,
834,
7,
1824,
834,
89,
15,
15,
17,
834,
834,
51,
357,
834,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
13912,
834,
4350,
3274,
96,
4411,
63,
500,
2934,
2447,
121,
1,
-100,
-100,
-100,
-100,... |
What is the movie that Paul Schneider directed? | CREATE TABLE table_34133 (
"Year" text,
"Title" text,
"Director" text,
"Distributor(s)" text,
"Box office" text
) | SELECT "Title" FROM table_34133 WHERE "Director" = 'paul schneider' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
22974,
41,
96,
476,
2741,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
308,
159,
5135,
17,
127,
599,
7,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3710,
22974,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
102,
9,
83,
3,
28557,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What capital has a population of 596268? | CREATE TABLE table_1404414_2 (
capital VARCHAR,
population_census_2009 VARCHAR
) | SELECT capital FROM table_1404414_2 WHERE population_census_2009 = 596268 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3628,
2534,
834,
357,
41,
1784,
584,
4280,
28027,
6,
2074,
834,
75,
35,
7,
302,
834,
16660,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1784,
65,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1784,
21680,
953,
834,
22012,
3628,
2534,
834,
357,
549,
17444,
427,
2074,
834,
75,
35,
7,
302,
834,
16660,
3274,
3,
3390,
4056,
3651,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many distinct characteristic names does the product 'cumin' have? | CREATE TABLE product_characteristics (
product_id VARCHAR,
characteristic_id VARCHAR
)
CREATE TABLE products (
product_id VARCHAR,
product_name VARCHAR
)
CREATE TABLE CHARACTERISTICS (
characteristic_name VARCHAR,
characteristic_id VARCHAR
) | SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
834,
31886,
3040,
7,
41,
556,
834,
23,
26,
584,
4280,
28027,
6,
16115,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17,
5787,
31886,
3040,
834,
4350,
61,
21680,
494,
6157,
3,
17,
536,
3,
15355,
3162,
556,
834,
31886,
3040,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,... |
What is the largest number of gold medals for Canada with more than 7 bronze medals? | CREATE TABLE table_name_31 (
gold INTEGER,
nation VARCHAR,
bronze VARCHAR
) | SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
2045,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
13,
2045,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2982,
3274,
96,
658,
18089,
121,
3430,
13467,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the sum of gold for bronze less than 0 | CREATE TABLE table_name_31 (
gold INTEGER,
bronze INTEGER
) | SELECT SUM(gold) FROM table_name_31 WHERE bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
2045,
3,
21342,
17966,
6,
13467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4505,
13,
2045,
21,
13467,
705,
145,
3,
632,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many students live in HKG or CHI? | CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
) | SELECT COUNT(*) FROM student WHERE city_code = "HKG" OR city_code = "CHI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
834,
6137,
41,
23886,
1499,
6,
23886,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1236,
549,
17444,
427,
690,
834,
4978,
3274,
96,
566,
18256,
121,
4674,
690,
834,
4978,
3274,
96,
17226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the Oregon 5 District incumbent who was first elected in 1996? | CREATE TABLE table_name_18 (results VARCHAR, first_elected VARCHAR, district VARCHAR) | SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = "oregon 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
60,
7,
83,
17,
7,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
166,
834,
19971,
3274,
6911,
3430,
3939,
3274,
96,
127,
15,
5307,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Indian restaurant in Dallas has the highest rating ? | CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varcha... | SELECT business.name FROM business, category AS CATEGORY_0, category AS CATEGORY_1 WHERE business.city = 'Dallas' AND CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'Indian' AND CATEGORY_1.business_id = business.business_id AND CATEGORY_1.category_name = 'restaurant' ORDER BY business.rati... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
23,
26,
16,
17,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5353,
41,
3,
23,
26,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
268,
5,
4350,
21680,
268,
6,
3295,
6157,
205,
6048,
5577,
11824,
834,
632,
6,
3295,
6157,
205,
6048,
5577,
11824,
834,
536,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
308,
1748,
9,
7,
31,
3430,
205,
6048,
5577,
... |
When someone was first elected in 1898 what was the result? | CREATE TABLE table_35753 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
) | SELECT "Result" FROM table_35753 WHERE "First elected" = '1898' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3072,
519,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
2469,
3072,
519,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2606,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the catalog number of Venus Demilo's A-side? | CREATE TABLE table_name_30 (
catalog_number VARCHAR,
a_side VARCHAR
) | SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
10173,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
9,
834,
1583,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10173,
381,
13,
22301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
3,
9,
834,
1583,
3274,
96,
25116,
340,
173,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the number of the player that was 6-6? | CREATE TABLE table_22719663_3 (number VARCHAR, height VARCHAR) | SELECT number FROM table_22719663_3 WHERE height = "6-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
26937,
3891,
834,
519,
41,
5525,
1152,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
381,
13,
8,
1959,
24,
47,
431,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
381,
21680,
953,
834,
357,
2555,
26937,
3891,
834,
519,
549,
17444,
427,
3902,
3274,
96,
948,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the opposing team with 11 against? | CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR) | SELECT opposing_teams FROM table_name_7 WHERE against = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
28236,
7,
53,
834,
11650,
7,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10720,
53,
372,
28,
850,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
53,
834,
11650,
7,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
581,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If team two is Lan s, what was the total number of points? | CREATE TABLE table_16795394_3 (
points VARCHAR,
team__number2 VARCHAR
) | SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = "Lanús" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
4867,
4240,
834,
519,
41,
979,
584,
4280,
28027,
6,
372,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
372,
192,
19,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
2938,
4440,
4867,
4240,
834,
519,
549,
17444,
427,
372,
834,
834,
5525,
1152,
357,
3274,
96,
434,
152,
2,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of the name for number 4? | CREATE TABLE table_12803263_1 (name VARCHAR, _number VARCHAR) | SELECT COUNT(name) FROM table_12803263_1 WHERE _number = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2079,
2668,
3891,
834,
536,
41,
4350,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
8,
564,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4350,
61,
21680,
953,
834,
2122,
2079,
2668,
3891,
834,
536,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What state had November 30, 1962 as the date of the successors formal installation? | CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) | SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = "November 30, 1962" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
1828,
2884,
834,
519,
41,
5540,
834,
834,
4057,
834,
584,
4280,
28027,
6,
833,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
584,
4280,
28027,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
834,
834,
4057,
834,
21680,
953,
834,
20829,
1828,
2884,
834,
519,
549,
17444,
427,
833,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
3274,
96,
28635,
11558,
20236,
121,
1,
-100,
-100,
-100,
-... |
Which Visiting Team has a Stadium of servus centre? | CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3466,
155,
53,
834,
11650,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
30338,
2271,
65,
3,
9,
12750,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3644,
834,
11650,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
14939,
3274,
96,
3473,
302,
2050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
report the number of patients with procedure icd9 code 5781 who were admitted in hospital before 2138. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2138" AND procedures.icd9_code = "5781" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the ceased operation with a launch date of August 8, 1968? | CREATE TABLE table_name_86 (
ceased_operation VARCHAR,
launched VARCHAR
) | SELECT ceased_operation FROM table_name_86 WHERE launched = "august 8, 1968" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3,
29220,
834,
22280,
584,
4280,
28027,
6,
3759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
29220,
2986,
28,
3,
9,
3289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29220,
834,
22280,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3759,
3274,
96,
402,
17198,
9478,
16506,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times was the sabres record 2-5-1? | CREATE TABLE table_29618 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
) | SELECT COUNT("Location/Attendance") FROM table_29618 WHERE "Record" = '2-5-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4314,
2606,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
96,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
357,
4314,
2606,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
357,
4525,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
which player has his high checkout as 116 ? | CREATE TABLE table_203_460 (
id number,
"player" text,
"played" number,
"legs won" number,
"legs lost" number,
"lwat" number,
"100+" number,
"140+" number,
"180s" number,
"high checkout" number,
"3-dart average" number
) | SELECT "player" FROM table_203_460 WHERE "high checkout" = 116 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25991,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
5772,
7,
751,
121,
381,
6,
96,
5772,
7,
1513,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20846,
121,
21680,
953,
834,
23330,
834,
25991,
549,
17444,
427,
96,
6739,
15912,
121,
3274,
3,
20159,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does the player from the MLS New England Revolution team hold? | CREATE TABLE table_name_35 (
position VARCHAR,
mls_team VARCHAR
) | SELECT position FROM table_name_35 WHERE mls_team = "new england revolution" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1102,
584,
4280,
28027,
6,
3,
51,
40,
7,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
8,
3,
17976... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
51,
40,
7,
834,
11650,
3274,
96,
5534,
3,
4606,
40,
232,
9481,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of passengers of the airport ranked 15? | CREATE TABLE table_19007 (
"Rank" real,
"Airport" text,
"Total Passengers" real,
"% Change 2007/2008" text,
"International Passengers" real,
"Domestic Passengers" real,
"Transit Passengers" real,
"Aircraft Movements" real,
"Freight ( Metric Tonnes )" real
) | SELECT "International Passengers" FROM table_19007 WHERE "Rank" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4560,
41,
96,
22557,
121,
490,
6,
96,
20162,
1493,
121,
1499,
6,
96,
3696,
1947,
3424,
4606,
277,
121,
490,
6,
96,
1454,
5968,
4101,
87,
16128,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27490,
3424,
4606,
277,
121,
21680,
953,
834,
11776,
4560,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose primary disease is chest pain and age is less than 54? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.age < "54" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
8360,
6038,
276,
13570,
121,
3430,
14798,
5,
545,
3,
2,
96,
5062,
12... |
What is the average To Par, when Player is 'Julius Boros'? | CREATE TABLE table_47825 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | SELECT AVG("To par") FROM table_47825 WHERE "Player" = 'julius boros' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
1828,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
260,
8512,
21680,
953,
834,
591,
3940,
1828,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2047,
29705,
3,
14901,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What conference is the 1973-74 team in the Atlantic Division (Div.)? | CREATE TABLE table_name_95 (
conference__conf_ VARCHAR,
division__div_ VARCHAR,
team VARCHAR
) | SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2542,
834,
834,
9707,
834,
584,
4280,
28027,
6,
4889,
834,
834,
8481,
834,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2542,
834,
834,
9707,
834,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
4889,
834,
834,
8481,
834,
3274,
96,
31767,
121,
3430,
372,
3274,
96,
2294,
4552,
18,
4581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest number of episodes in a season? | CREATE TABLE table_2113721_7 (
episodes INTEGER
) | SELECT MIN(episodes) FROM table_2113721_7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
24636,
2658,
834,
940,
41,
13562,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
381,
13,
13562,
16,
3,
9,
774,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15,
102,
159,
32,
1395,
61,
21680,
953,
834,
2658,
24636,
2658,
834,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of losses against the Rajasthan Royals with more than 0 ties? | CREATE TABLE table_name_57 (
lost VARCHAR,
opposition VARCHAR,
tied VARCHAR
) | SELECT COUNT(lost) FROM table_name_57 WHERE opposition = "rajasthan royals" AND tied > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1513,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
6,
10422,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
8467,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
8263,
3274,
96,
9655,
9,
7,
6736,
11268,
7,
121,
3430,
10422,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose days of hospital stay is greater than 13 and lab test name is albumin, body fluid? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "13" AND lab.label = "Albumin, Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )? | CREATE TABLE table_24062944_2 (world_record VARCHAR, kenenisa_bekele___eth__ VARCHAR) | SELECT COUNT(world_record) FROM table_24062944_2 WHERE kenenisa_bekele___eth__ = "Marílson Gomes dos Santos ( BRA )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
4056,
4240,
591,
834,
357,
41,
7276,
834,
60,
7621,
584,
4280,
28027,
6,
3,
2217,
35,
159,
9,
834,
346,
5768,
15,
834,
834,
834,
15,
189,
834,
834,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7276,
834,
60,
7621,
61,
21680,
953,
834,
11944,
4056,
4240,
591,
834,
357,
549,
17444,
427,
3,
2217,
35,
159,
9,
834,
346,
5768,
15,
834,
834,
834,
15,
189,
834,
834,
3274,
96,
7286,
2,
40,
73... |
What was date of the bye week 11? | CREATE TABLE table_name_38 (
date VARCHAR,
attendance VARCHAR,
week VARCHAR
) | SELECT date FROM table_name_38 WHERE attendance = "bye" AND week = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
833,
13,
8,
57,
15,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
11364,
3274,
96,
969,
15,
121,
3430,
471,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of rank for the country of greece? | CREATE TABLE table_name_19 (
rank VARCHAR,
country VARCHAR
) | SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
11003,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
11003,
21,
8,
684,
13,
3,
3584,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
684,
3274,
96,
3584,
15,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the b winning car for #88 team mitsubishi 88 mitsubishi starion | CREATE TABLE table_30134 (
"Rnd" real,
"Circuit" text,
"GT Winning Car" text,
"SS Winning Car" text,
"A Winning Car" text,
"B Winning Car" text,
"Report" text
) | SELECT "B Winning Car" FROM table_30134 WHERE "A Winning Car" = '#88 Team Mitsubishi 88 Mitsubishi Starion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
23747,
41,
96,
448,
727,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
18489,
549,
10503,
1184,
121,
1499,
6,
96,
4256,
549,
10503,
1184,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
549,
10503,
1184,
121,
21680,
953,
834,
1458,
23747,
549,
17444,
427,
96,
188,
549,
10503,
1184,
121,
3274,
3,
31,
4663,
4060,
2271,
27753,
3,
4060,
27753,
2042,
23,
106,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3? | CREATE TABLE table_6885 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT COUNT("Events") FROM table_6885 WHERE "Top-5" < '2' AND "Top-25" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4433,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
2847,
17161,
599,
121,
427,
2169,
7,
8512,
21680,
953,
834,
3651,
4433,
549,
17444,
427,
96,
22481,
18,
17395,
3,
2,
3,
31,
357,
31,
3430,
96,
22481,
14855,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
... |
Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week? | CREATE TABLE table_6225 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT MAX("Week") FROM table_6225 WHERE "Game site" = 'miami orange bowl' AND "Attendance" > '49,754' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
1828,
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,
23055,
353,
121,
1499,
6,
96,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
8512,
21680,
953,
834,
4056,
1828,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
51,
23,
3690,
5470,
3047,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3647,
6,
3072... |
What is the highest 2011 population when the ethnic group is asian or asian british: asian other? | CREATE TABLE table_282413_3 (ethnic_group VARCHAR) | SELECT MAX(2011 AS _population) FROM table_282413_3 WHERE ethnic_group = "Asian or Asian British: Asian Other" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2266,
2368,
834,
519,
41,
15,
189,
2532,
834,
10739,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2722,
2074,
116,
8,
11655,
563,
19,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13907,
6157,
3,
834,
9791,
7830,
61,
21680,
953,
834,
2577,
2266,
2368,
834,
519,
549,
17444,
427,
11655,
834,
10739,
3274,
96,
188,
10488,
42,
6578,
2390,
10,
6578,
2502,
121,
1,
-100,
-100,
-100,
-10... |
Which team had the fastest lap of 1:13.516? | CREATE TABLE table_4527 (
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | SELECT "Winning team" FROM table_4527 WHERE "Fastest Lap" = '1:13.516' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2555,
41,
96,
23954,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
372,
121,
21680,
953,
834,
2128,
2555,
549,
17444,
427,
96,
371,
9,
7,
4377,
325,
102,
121,
3274,
3,
31,
536,
10,
536,
9285,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
The golfer who won in 1993 had what total has his total? | CREATE TABLE table_name_97 (total INTEGER, year_s__won VARCHAR) | SELECT SUM(total) FROM table_name_97 WHERE year_s__won = "1993" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
235,
1947,
3,
21342,
17966,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
4319,
49,
113,
751,
16,
8388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the length for iin range 51-55? | CREATE TABLE table_15905399_1 (length VARCHAR, iin_ranges VARCHAR) | SELECT length FROM table_15905399_1 WHERE iin_ranges = "51-55" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2394,
4867,
3264,
834,
536,
41,
19457,
584,
4280,
28027,
6,
3,
23,
77,
834,
5517,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2475,
21,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2475,
21680,
953,
834,
1808,
2394,
4867,
3264,
834,
536,
549,
17444,
427,
3,
23,
77,
834,
5517,
7,
3274,
96,
5553,
4525,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. | CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR) | SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
75,
23954,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
5540,
584,
4280,
28027,
6,
3,
35,
52,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
5540,
6,
332,
5411,
35,
52,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416... |
provide the number of patients whose gender is f and drug code is amid200? | 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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "AMID200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the total of the team with a T score greater than 8 and an E score less than 8.4? | CREATE TABLE table_name_57 (total INTEGER, t_score VARCHAR, e_score VARCHAR) | SELECT SUM(total) FROM table_name_57 WHERE t_score > 8 AND e_score < 8.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
235,
1947,
3,
21342,
17966,
6,
3,
17,
834,
7,
9022,
584,
4280,
28027,
6,
3,
15,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
3,
17,
834,
7,
9022,
2490,
505,
3430,
3,
15,
834,
7,
9022,
3,
2,
4848,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the number of customers that use email as the contact channel and group by customer name and bin active date by year in a stacked bar chart. | CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
address_ty... | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
1942,
834,
23152,
584,
4280,
28027,
599,
1808,
201,
884,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
833,
834,
346,
6527,
15,
834,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1676,
834,
7152,
834,
5522,
6,
2847,
17161,
599,
6645,
834,
7152,
834,
5522,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697... |
What is the total number of episodes where hugh laurie was the 3rd performer? | CREATE TABLE table_37276 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
) | SELECT COUNT("Episode") FROM table_37276 WHERE "Performer 3" = 'hugh laurie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
3959,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
12988,
2032,
49,
209,
121,
1499,
6,
96,
12988,
2032,
49,
204,
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,
2847,
17161,
599,
121,
427,
102,
159,
32,
221,
8512,
21680,
953,
834,
4118,
357,
3959,
549,
17444,
427,
96,
12988,
2032,
49,
220,
121,
3274,
3,
31,
107,
14439,
50,
459,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date. | CREATE TABLE Claims (Date_Claim_Made VARCHAR, Amount_Settled INTEGER) | SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4779,
8345,
41,
308,
342,
834,
254,
521,
603,
834,
329,
9,
221,
584,
4280,
28027,
6,
71,
11231,
834,
17175,
17,
1361,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
3,
7264,
66,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
21680,
4779,
8345,
549,
17444,
427,
71,
11231,
834,
17175,
17,
1361,
3,
2,
2423,
41,
23143,
14196,
71,
17217,
599,
188,
11231,
834,
17175,
17,
1361,
61,
21680,
4779,
8345,... |
What is the best time for a team with a first-qualifying time of 59.448? | CREATE TABLE table_44711 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Best" FROM table_44711 WHERE "Qual 1" = '59.448' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4177,
2596,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17278,
121,
21680,
953,
834,
591,
4177,
2596,
549,
17444,
427,
96,
5991,
138,
209,
121,
3274,
3,
31,
3390,
5,
591,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which home team played an away team with the score of 12.15 (87)? | CREATE TABLE table_10227 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_10227 WHERE "Away team score" = '12.15 (87)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14388,
2555,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
14388,
2555,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
9368,
1808,
41,
4225,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score in the 1st leg when Stade d'Abidjan was Team 2? | CREATE TABLE table_70497 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_70497 WHERE "Team 2" = 'stade d''abidjan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
591,
4327,
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,
536,
7,
17,
4553,
121,
21680,
953,
834,
2518,
591,
4327,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
2427,
221,
3,
26,
31,
31,
9,
9824,
7066,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points did Stuart have when he had less than 1 touchdown? | CREATE TABLE table_name_80 (points INTEGER, player VARCHAR, touchdowns VARCHAR) | SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2700,
7,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
23338,
43,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1959,
3274,
96,
7,
17,
76,
1408,
121,
3430,
19396,
7,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the result of the 2011 Concacaf Gold Cup competition? | CREATE TABLE table_11028 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_11028 WHERE "Competition" = '2011 concacaf gold cup' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
19277,
2577,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
13907,
975,
658,
658,
89,
2045,
4119,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which championship had the final opponents of nathalie dechy andy ram? | CREATE TABLE table_1729366_2 (championship VARCHAR, opponents_in_the_final VARCHAR) | SELECT championship FROM table_1729366_2 WHERE opponents_in_the_final = "Nathalie Dechy Andy Ram" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
4271,
3539,
834,
357,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
10183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
27156,
4271,
3539,
834,
357,
549,
17444,
427,
16383,
834,
77,
834,
532,
834,
12406,
3274,
96,
567,
9,
189,
9,
1896,
374,
11971,
12838,
4425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What away team is the home team richmond? | CREATE TABLE table_name_16 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_16 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
19,
8,
234,
372,
2354,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2938,
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's the romanised name of the official who was Secretary for health, welfare and food? | CREATE TABLE table_2263674_1 (
romanised_name VARCHAR,
portfolio VARCHAR
) | SELECT romanised_name FROM table_2263674_1 WHERE portfolio = "Secretary for Health, Welfare and Food" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
3420,
4581,
834,
536,
41,
3408,
3375,
834,
4350,
584,
4280,
28027,
6,
4833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3408,
3375,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3408,
3375,
834,
4350,
21680,
953,
834,
357,
2688,
3420,
4581,
834,
536,
549,
17444,
427,
4833,
3274,
96,
134,
15,
16794,
1208,
21,
1685,
6,
30132,
11,
3139,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What platform was used for the game directed by Bryan Walker after 2006? | CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) | SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
29100,
834,
7,
834,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1585,
47,
261,
21,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1585,
834,
7,
834,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
215,
2490,
3581,
3430,
2090,
3274,
96,
115,
651,
152,
3,
24063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team won when the visitor was Carolina? | CREATE TABLE table_77645 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Decision" FROM table_77645 WHERE "Visitor" = 'carolina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3959,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
2962,
18901,
121,
21680,
953,
834,
940,
3959,
2128,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
1720,
12057,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
The game on Saturday, May 25 took place on which week? | CREATE TABLE table_24776075_2 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_24776075_2 WHERE date = "Saturday, May 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4013,
3328,
3072,
834,
357,
41,
8041,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
467,
30,
1856,
6,
932,
944,
808,
286,
30,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
2266,
4013,
3328,
3072,
834,
357,
549,
17444,
427,
833,
3274,
96,
134,
6010,
1135,
6,
932,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended? | CREATE TABLE table_39695 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
) | SELECT SUM("Week") FROM table_39695 WHERE "Date" = 'october 21, 1974' AND "Attendance" < '50,623' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
3301,
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,
553,
35,
76,
15,
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,
180,
6122,
599,
121,
518,
10266,
8512,
21680,
953,
834,
519,
4314,
3301,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
12026,
17184,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3,
2,
3,
31,
... |
What amount is the number of hk viewers where chinese title is 十兄弟? | CREATE TABLE table_11173827_1 (hk_viewers VARCHAR, chinese_title VARCHAR) | SELECT hk_viewers FROM table_11173827_1 WHERE chinese_title = "十兄弟" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
41,
107,
157,
834,
4576,
277,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
107,
157,
834,
4576,
277,
21680,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
549,
17444,
427,
3,
1436,
1496,
15,
834,
21869,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the least silver when overall is less than 67, team is saami and gold is less than 5? | CREATE TABLE table_name_2 (
silver INTEGER,
gold VARCHAR,
overall VARCHAR,
team VARCHAR
) | SELECT MIN(silver) FROM table_name_2 WHERE overall < 67 AND team = "saami" AND gold < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
4294,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1879,
3,
2,
3,
3708,
3430,
372,
3274,
96,
7,
9,
3690,
121,
3430,
2045,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of judges for dr steemans ann van elsen | CREATE TABLE table_21144 (
"Country" text,
"Name" text,
"Network" text,
"Premiere" text,
"Host(s)" text,
"Judges" text,
"Seasons and Winners" text
) | SELECT COUNT("Judges") FROM table_21144 WHERE "Host(s)" = 'Dré Steemans Ann Van Elsen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
20885,
41,
96,
10628,
651,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
10572,
2720,
60,
121,
1499,
6,
96,
566,
3481,
599,
7,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
683,
13164,
7,
8512,
21680,
953,
834,
2658,
20885,
549,
17444,
427,
96,
566,
3481,
599,
7,
61,
121,
3274,
3,
31,
308,
2339,
3557,
15,
348,
7,
6206,
4480,
1289,
7,
35,
31,
1,
-100,
-100,
-1... |
What was the word on episode number 673? | CREATE TABLE table_25691838_2 (
the_wørd VARCHAR,
episode__number VARCHAR
) | SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
2606,
3747,
834,
357,
41,
8,
834,
210,
2,
52,
26,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8,
834,
210,
2,
52,
26,
21680,
953,
834,
1828,
3951,
2606,
3747,
834,
357,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
431,
4552,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Points have a Home of pittsburgh, and a Score of 1–7? | CREATE TABLE table_name_11 (points INTEGER, home VARCHAR, score VARCHAR) | SELECT SUM(points) FROM table_name_11 WHERE home = "pittsburgh" AND score = "1–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
2700,
7,
3,
21342,
17966,
6,
234,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4564,
7,
43,
3,
9,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
234,
3274,
96,
5230,
17,
7289,
107,
121,
3430,
2604,
3274,
96,
536,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the position of Greg Fredlund in years after 2008? | CREATE TABLE table_42473 (
"Year" real,
"Team" text,
"Player" text,
"Position" text,
"School" text
) | SELECT "Position" FROM table_42473 WHERE "Year" > '2008' AND "Player" = 'greg fredlund' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
4552,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
2266,
4552,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
16128,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
18301,
3,
89,
1271,
40,
1106,
31,
1,
-100,
-100,
... |
List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'. | CREATE TABLE Documents (
document_type_code VARCHAR,
document_name VARCHAR,
document_description VARCHAR
) | SELECT document_type_code, document_name, document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
1708,
834,
6137,
834,
4978,
584,
4280,
28027,
6,
1708,
834,
4350,
584,
4280,
28027,
6,
1708,
834,
221,
11830,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1708,
834,
6137,
834,
4978,
6,
1708,
834,
4350,
6,
1708,
834,
221,
11830,
21680,
11167,
7,
549,
17444,
427,
1708,
834,
4350,
3274,
3,
31,
4168,
15,
40,
10430,
31,
4674,
1708,
834,
4350,
3274,
3,
31,
439,
53,
3086,... |
Find All_Neutral and Team_ID , and visualize them by a bar chart. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, Team_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.