NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the year with runs of 144? | CREATE TABLE table_57555 (
"Runs" text,
"Against" text,
"City/Country" text,
"Venue" text,
"Result" text,
"Year" text
) | SELECT "Year" FROM table_57555 WHERE "Runs" = '144' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
28803,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
20749,
121,
1499,
6,
96,
254,
485,
87,
10628,
651,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
3436,
28803,
549,
17444,
427,
96,
448,
202,
7,
121,
3274,
3,
31,
20885,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a line chart about the change of employee_id over hire_date , rank by the X-axis in ascending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
Find the names of all races held in 2017. | CREATE TABLE driverstandings (
driverstandingsid number,
raceid number,
driverid number,
points number,
position number,
positiontext text,
wins number
)
CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
number number,
position number,
q1 text,
q2 text,
q3 text
)
CREATE TABLE drivers (
driverid number,
driverref text,
number number,
code text,
forename text,
surname text,
dob text,
nationality text,
url text
)
CREATE TABLE status (
statusid number,
status text
)
CREATE TABLE constructorresults (
constructorresultsid number,
raceid number,
constructorid number,
points number,
status number
)
CREATE TABLE seasons (
year number,
url text
)
CREATE TABLE results (
resultid number,
raceid number,
driverid number,
constructorid number,
number number,
grid number,
position number,
positiontext text,
positionorder number,
points number,
laps number,
time text,
milliseconds number,
fastestlap number,
rank number,
fastestlaptime text,
fastestlapspeed text,
statusid number
)
CREATE TABLE circuits (
circuitid number,
circuitref text,
name text,
location text,
country text,
lat number,
lng number,
alt number,
url text
)
CREATE TABLE constructorstandings (
constructorstandingsid number,
raceid number,
constructorid number,
points number,
position number,
positiontext text,
wins number
)
CREATE TABLE races (
raceid number,
year number,
round number,
circuitid number,
name text,
date text,
time text,
url text
)
CREATE TABLE pitstops (
raceid number,
driverid number,
stop number,
lap number,
time text,
duration text,
milliseconds number
)
CREATE TABLE laptimes (
raceid number,
driverid number,
lap number,
position number,
time text,
milliseconds number
)
CREATE TABLE constructors (
constructorid number,
constructorref text,
name text,
nationality text,
url text
) | SELECT name FROM races WHERE year = 2017 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2535,
11018,
7,
41,
2535,
11018,
7,
23,
26,
381,
6,
1964,
23,
26,
381,
6,
1262,
4055,
381,
6,
979,
381,
6,
1102,
381,
6,
1102,
6327,
1499,
6,
9204,
381,
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,
564,
21680,
10879,
549,
17444,
427,
215,
3274,
1233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the last name of each student who is not allergic to any type of food? Count them with a bar chart, and could you rank from high to low by the total number please? | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT LName, COUNT(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") GROUP BY LName ORDER BY COUNT(LName) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
23954,
6,
2847,
17161,
599,
434,
23954,
61,
21680,
6341,
549,
17444,
427,
4486,
3,
13076,
4309,
3388,
41,
23143,
14196,
332,
5411,
13076,
4309,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,... |
What is the Mayor of Riva del Garda in 2010? | CREATE TABLE table_50467 (
"Municipality" text,
"Inhabitants" real,
"Mayor" text,
"Party" text,
"Election" real
) | SELECT "Mayor" FROM table_50467 WHERE "Election" = '2010' AND "Municipality" = 'riva del garda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
3708,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
1570,
29884,
7,
121,
490,
6,
96,
15881,
127,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
427,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15881,
127,
121,
21680,
953,
834,
1752,
591,
3708,
549,
17444,
427,
96,
427,
12252,
121,
3274,
3,
31,
14926,
31,
3430,
96,
329,
202,
23,
3389,
10355,
121,
3274,
3,
31,
5927,
9,
20,
40,
3,
6390,
9,
31,
1,
-... |
How many bronzes for nations with over 22 golds and ranked under 2? | CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, rank VARCHAR) | SELECT MAX(bronze) FROM table_name_66 WHERE gold > 22 AND rank < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13467,
7,
21,
9352,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
2045,
2490,
1630,
3430,
11003,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of silver medals for countries with 0 gold and rank under 3? | CREATE TABLE table_74892 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_74892 WHERE "Gold" = '0' AND "Rank" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3914,
357,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
173,
624,
8512,
21680,
953,
834,
4581,
3914,
357,
549,
17444,
427,
96,
23576,
121,
3274,
3,
31,
632,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
List the ids of the problems from the product 'voluptatem' that are reported after 1995? | CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
problem_category_code text,
problem_status_code text,
log_entry_date time,
log_entry_description text,
log_entry_fix text,
other_log_details text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
)
CREATE TABLE staff (
staff_id number,
staff_first_name text,
staff_last_name text,
other_staff_details text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
problem_description text,
other_problem_details text
) | SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
682,
834,
8367,
839,
651,
834,
4978,
7,
41,
682,
834,
8367,
839,
651,
834,
4978,
1499,
6,
682,
834,
8367,
839,
651,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
19307,
834,
23,
26,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
556,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
23,
26,
3274,
332,
4416,
15892,
834,
23,
26,
549,
17444,
427,
332,
4416,
15892,
834,
4350,... |
How many years did aivaras kvedarauskas juozas spelveris participate in the men's doubles? | CREATE TABLE table_15001753_1 (year VARCHAR, mens_doubles VARCHAR) | SELECT COUNT(year) FROM table_15001753_1 WHERE mens_doubles = "Aivaras Kvedarauskas Juozas Spelveris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2560,
2517,
4867,
834,
536,
41,
1201,
584,
4280,
28027,
6,
1076,
7,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,
3,
9,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
536,
2560,
2517,
4867,
834,
536,
549,
17444,
427,
1076,
7,
834,
25761,
7,
3274,
96,
188,
23,
4331,
9,
7,
480,
162,
3439,
2064,
1258,
7,
3736,
13277,
7,
8974,
40,
624,
... |
How many times did li ju win the womens singles and wang liqin win the mens singles? | CREATE TABLE table_30321 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) | SELECT COUNT("Womens Doubles") FROM table_30321 WHERE "Womens Singles" = 'Li Ju' AND "Mens Singles" = 'Wang Liqin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
2658,
41,
96,
476,
2741,
10450,
121,
1499,
6,
96,
329,
35,
7,
7871,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
7871,
7,
121,
1499,
6,
96,
329,
35,
7,
8405,
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,
2847,
17161,
599,
121,
518,
32,
904,
7,
8405,
7,
8512,
21680,
953,
834,
23335,
2658,
549,
17444,
427,
96,
518,
32,
904,
7,
7871,
7,
121,
3274,
3,
31,
434,
23,
3736,
31,
3430,
96,
329,
35,
7,
7871,
7,
121,
3274... |
What was the outcome of the match on August 20, 1978? | CREATE TABLE table_44392 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Outcome" FROM table_44392 WHERE "Date" = 'august 20, 1978' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3288,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15767,
287,
15,
121,
21680,
953,
834,
3628,
3288,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
16047,
14834,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the 2005 with 2007 of sf | CREATE TABLE table_name_16 (Id VARCHAR) | SELECT 2005 FROM table_name_16 WHERE 2007 = "sf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3105,
28,
4101,
13,
3,
7,
89,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3105,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
4101,
3274,
96,
7,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of high rebounds for february 10 | CREATE TABLE table_17058151_8 (
high_rebounds VARCHAR,
date VARCHAR
) | SELECT COUNT(high_rebounds) FROM table_17058151_8 WHERE date = "February 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3449,
26578,
834,
927,
41,
306,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
306,
3,
2376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
23768,
61,
21680,
953,
834,
536,
2518,
3449,
26578,
834,
927,
549,
17444,
427,
833,
3274,
96,
31122,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the frequency of KQLX? | CREATE TABLE table_name_76 (
frequency VARCHAR,
call_sign VARCHAR
) | SELECT frequency FROM table_name_76 WHERE call_sign = "kqlx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
7321,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
13,
480,
2247,
434,
4,
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,
7321,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
1824,
40,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the minimum crowd on January 24, 1987? | CREATE TABLE table_20489 (
"#" real,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
) | SELECT MIN("Attendance") FROM table_20489 WHERE "Date" = 'January 24, 1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
3914,
41,
96,
4663,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
144,
87,
208,
7,
535,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
26363,
3914,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
14320,
12701,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Radio Station/Production Company that has a Role of interviewee & monologues is what radio station? | CREATE TABLE table_67777 (
"Year" real,
"Role" text,
"Author" text,
"Radio Station/Production Company" text,
"Release/Air Date" text
) | SELECT "Radio Station/Production Company" FROM table_67777 WHERE "Role" = 'interviewee & monologues' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
26225,
41,
96,
476,
2741,
121,
490,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
31313,
5939,
87,
3174,
8291,
1958,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31313,
5939,
87,
3174,
8291,
1958,
121,
21680,
953,
834,
3708,
26225,
549,
17444,
427,
96,
448,
32,
109,
121,
3274,
3,
31,
3870,
4576,
15,
15,
3,
184,
7414,
10384,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and commission_pct , I want to list from high to low by the X. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
4... |
What was the total number of average attendance for games of 1311? | CREATE TABLE table_name_11 (
average_attendance INTEGER,
games VARCHAR
) | SELECT SUM(average_attendance) FROM table_name_11 WHERE games = 1311 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1348,
834,
15116,
663,
3,
21342,
17966,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
381,
13,
1348,
11364,
21,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
28951,
834,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1031,
3274,
1179,
2596,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many goals ranked 6? | CREATE TABLE table_name_36 (
goals VARCHAR,
rank VARCHAR
) | SELECT COUNT(goals) FROM table_name_36 WHERE rank = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1766,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
3,
8232,
431,
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,
2847,
17161,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
11003,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was strikeforce: barnett vs. cormier's record? | CREATE TABLE table_name_26 (record VARCHAR, event VARCHAR) | SELECT record FROM table_name_26 WHERE event = "strikeforce: barnett vs. cormier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
60,
7621,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
6585,
10880,
10,
1207,
10544,
3,
208,
7,
5,
4301,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
605,
3274,
96,
7,
1788,
1050,
10880,
10,
1207,
10544,
3,
208,
7,
5,
4301,
51,
972,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of goals against for positions higher than 14, with fewer than 30 played? | CREATE TABLE table_name_22 (goals_against INTEGER, position VARCHAR, played VARCHAR) | SELECT SUM(goals_against) FROM table_name_22 WHERE position > 14 AND played < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1102,
2490,
968,
3430,
1944,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Between November 25 30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what? | CREATE TABLE table_22123920_4 (
shows___sellout VARCHAR,
sellout___percentage_ VARCHAR
) | SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = "75%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
14574,
27749,
834,
591,
41,
1267,
834,
834,
834,
12019,
670,
584,
4280,
28027,
6,
1789,
670,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1267,
834,
834,
834,
12019,
670,
21680,
953,
834,
2884,
14574,
27749,
834,
591,
549,
17444,
427,
1789,
670,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
940,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which engine had a 48kw (65 ps) @ 5600 rpm power? | CREATE TABLE table_name_61 (
engine VARCHAR,
power VARCHAR
) | SELECT engine FROM table_name_61 WHERE power = "48kw (65 ps) @ 5600 rpm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1948,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1948,
141,
3,
9,
4678,
157,
210,
41,
4122,
3,
102,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
579,
3274,
96,
3707,
157,
210,
41,
4122,
3,
102,
7,
61,
3320,
305,
6007,
3,
52,
2028,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Thai name for the word abbreviated . .? | CREATE TABLE table_60470 (
"English name" text,
"Thai name" text,
"Abbr." text,
"Transcription" text,
"Sanskrit word" text,
"Zodiac sign" text
) | SELECT "Thai name" FROM table_60470 WHERE "Abbr." = 'มี.ค.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
27760,
41,
96,
26749,
564,
121,
1499,
6,
96,
8991,
9,
23,
564,
121,
1499,
6,
96,
8952,
115,
52,
535,
1499,
6,
96,
9402,
29,
11830,
121,
1499,
6,
96,
134,
3247,
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,
8991,
9,
23,
564,
121,
21680,
953,
834,
3328,
27760,
549,
17444,
427,
96,
8952,
115,
52,
535,
3274,
3,
31,
2,
5,
2,
5,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Year has a Community Award of jarrod harbrow? | CREATE TABLE table_name_85 (year INTEGER, community_award VARCHAR) | SELECT SUM(year) FROM table_name_85 WHERE community_award = "jarrod harbrow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1201,
3,
21342,
17966,
6,
573,
834,
9,
2239,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
3,
9,
3092,
3677,
13,
3,
5670,
9488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
573,
834,
9,
2239,
3274,
96,
5670,
9488,
3,
3272,
14853,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the maximum ties played where player is josip palada category:articles with hcards | CREATE TABLE table_10294071_1 (ties_played INTEGER, player VARCHAR) | SELECT MAX(ties_played) FROM table_10294071_1 WHERE player = "Josip Palada Category:Articles with hCards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
41,
3010,
834,
4895,
15,
26,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2411,
3,
3010,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4800,
4,
599,
3010,
834,
4895,
15,
26,
61,
21680,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
549,
17444,
427,
1959,
3274,
96,
683,
32,
7,
23,
102,
14294,
26,
9,
17459,
10,
7754,
447,
965,
28,
3,
107,
6936,
26,
... |
How many titles have a production code of 211? | CREATE TABLE table_16581695_3 (title VARCHAR, production_code VARCHAR) | SELECT COUNT(title) FROM table_16581695_3 WHERE production_code = 211 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3449,
2938,
3301,
834,
519,
41,
21869,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
43,
3,
9,
999,
1081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
61,
21680,
953,
834,
2938,
3449,
2938,
3301,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
3,
27278,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the 2(vf) for ? | CREATE TABLE table_76517 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
) | SELECT "2 (VF)" FROM table_76517 WHERE "2 (F)" = 'তুমি বললে' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
755,
2517,
41,
96,
5000,
115,
121,
1499,
6,
96,
357,
41,
22502,
61,
121,
1499,
6,
96,
357,
41,
371,
61,
121,
1499,
6,
96,
519,
41,
371,
61,
121,
1499,
6,
96,
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,
357,
41,
22502,
61,
121,
21680,
953,
834,
3959,
755,
2517,
549,
17444,
427,
96,
357,
41,
371,
61,
121,
3274,
3,
31,
2,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the home team when Sheffield United is the away team? | CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_38 WHERE away_team = "sheffield united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
372,
116,
23826,
907,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
88,
89,
1846,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Outcome of the match with Partner Andoni Vivanco? | CREATE TABLE table_name_7 (
outcome VARCHAR,
partner VARCHAR
) | SELECT outcome FROM table_name_7 WHERE partner = "andoni vivanco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
6138,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3387,
287,
15,
13,
8,
1588,
28,
5793,
275,
106,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2397,
3274,
96,
232,
106,
23,
3,
7003,
152,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What years played did the player with a rank under 10, more than 271 matches, and 152 goals have? | CREATE TABLE table_40848 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) | SELECT "Years" FROM table_40848 WHERE "Rank" < '10' AND "Matches" > '271' AND "Goals" = '152' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
3707,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
6221,
5405,
121,
490,
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,
476,
2741,
7,
121,
21680,
953,
834,
2445,
927,
3707,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
329,
144,
2951,
121,
2490,
3,
31,
2555,
536,
31,
3430,
96,
6221,
5405,
121,
3274,
3,
3... |
What is the name of the player with 305 points? | CREATE TABLE table_name_46 (
name VARCHAR,
points VARCHAR
) | SELECT name FROM table_name_46 WHERE points = 305 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
564,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
28,
3,
26724,
979,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
979,
3274,
3,
26724,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62? | CREATE TABLE table_7207 (
"Objects" text,
"Date" text,
"SiO 2" real,
"Al 2 O 3" real,
"Fe 2 O 3" real,
"K 2 O" real,
"Na 2 O" real
) | SELECT MAX("K 2 O") FROM table_7207 WHERE "Na 2 O" > '1.87' AND "Fe 2 O 3" > '0.07' AND "Objects" = 'ritual disk' AND "Al 2 O 3" < '0.62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
940,
41,
96,
17057,
7,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
23,
667,
204,
121,
490,
6,
96,
188,
40,
204,
411,
220,
121,
490,
6,
96,
371,
15,
204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
439,
204,
411,
8512,
21680,
953,
834,
18517,
940,
549,
17444,
427,
96,
567,
9,
204,
411,
121,
2490,
3,
31,
16253,
940,
31,
3430,
96,
371,
15,
204,
411,
220,
121,
2490,
3,
31,
11739,
940,
31,
... |
which Label is in 15 december 1992? | CREATE TABLE table_name_45 (
label VARCHAR,
date VARCHAR
) | SELECT label FROM table_name_45 WHERE date = "15 december 1992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3783,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
16229,
19,
16,
627,
20,
75,
18247,
9047,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
833,
3274,
96,
1808,
20,
75,
18247,
9047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the sum of revenue , and group by attribute founder. | 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 Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
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,
3,
19145,
6,
180,
6122,
599,
1649,
15098,
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,
272,
476,
3,
... |
What is the Area of the Allardville Parish with a Population smaller than 2,151? | CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR) | SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
498,
834,
5848,
834,
357,
3,
21342,
17966,
6,
2314,
834,
4350,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
1748,
986,
1420,
121,
3430,
2074,
3,
2,
204,
3,
15316,
20788,
3,
26578,
1,
-100,
-100,
-100,
... |
Find the names of stadiums which have never had any event. | CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
)
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
time text
) | SELECT name FROM stadium WHERE NOT id IN (SELECT stadium_id FROM event) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
2614,
381,
6,
690,
1499,
6,
684,
1499,
6,
2101,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
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,
564,
21680,
14939,
549,
17444,
427,
4486,
3,
23,
26,
3388,
41,
23143,
14196,
14939,
834,
23,
26,
21680,
605,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many years have claudia beni as the artist? | CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR) | SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1201,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
3,
4651,
5291,
9,
36,
29,
23,
38,
8,
2377,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2377,
3274,
96,
4651,
5291,
9,
36,
29,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers? | CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_18 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "january 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
234,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
7019,
3274,
96,
5534,
25453,
620,
52,
7,
121,
3430,
833,
3274,
96,
7066,
76,
1208,
968,
121,
1,... |
What is the Country that has a Player of Scott Hoch? | CREATE TABLE table_name_31 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_31 WHERE player = "scott hoch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6993,
24,
65,
3,
9,
12387,
13,
4972,
7341,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1959,
3274,
96,
7,
10405,
6012,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7? | CREATE TABLE table_name_49 (
athlete VARCHAR,
nationality VARCHAR,
time VARCHAR,
lane VARCHAR
) | SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
17893,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
17893,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
97,
3,
2,
204,
10917,
3430,
3,
8102,
3,
2,
489,
3430,
1157,
485,
3274,
96,
5012,
77,
2617,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Pop/Area (1/km ) has a No P. larger than 1, and a Name of albergaria-a-velha? | CREATE TABLE table_62220 (
"Name" text,
"Area (km\u00b2)" real,
"Pop." real,
"Pop/Area (1/km\u00b2)" real,
"No P." real,
"No C./No T." text,
"Subregion" text
) | SELECT AVG("Pop/Area (1/km\u00b2)") FROM table_62220 WHERE "No P." > '1' AND "Name" = 'albergaria-a-velha' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
1755,
41,
96,
23954,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
535,
490,
6,
96,
27773,
87,
188,
864,
4077,
87,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
27773,
87,
188,
864,
4077,
87,
5848,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
4056,
357,
1755,
549,
17444,
427,
96,
4168,
276,
535,
2490,
3,
31,
536,
31,
3430,
96,
23954,
121,
3274,
3,
... |
In what years was a film submitted with the title The Enigma of Kaspar Hauser? | CREATE TABLE table_16349 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
) | SELECT "Year [e ] (Ceremony)" FROM table_16349 WHERE "Film title used in nomination" = 'The Enigma of Kaspar Hauser' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
3647,
41,
96,
476,
2741,
784,
15,
3,
908,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
1027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
784,
15,
3,
908,
41,
254,
49,
15,
21208,
61,
121,
21680,
953,
834,
2938,
519,
3647,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
634,
695,
23528,
13,
12783,
1893,
459... |
Who was the driver of the Ford EDB 3.0 v8 engine? | CREATE TABLE table_name_82 (driver VARCHAR, engine VARCHAR) | SELECT driver FROM table_name_82 WHERE engine = "ford edb 3.0 v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
13739,
52,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2535,
13,
8,
5222,
262,
9213,
1877,
632,
3,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1948,
3274,
96,
2590,
3,
15,
26,
115,
1877,
632,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are all high points in game 14? | CREATE TABLE table_2808 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_2808 WHERE "Game" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4018,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
96,
21417,
979,
121,
21680,
953,
834,
2577,
4018,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest number of attendees at Kardinia Park? | CREATE TABLE table_name_36 (
crowd INTEGER,
venue VARCHAR
) | SELECT MIN(crowd) FROM table_name_36 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
381,
13,
13229,
44,
4556,
2644,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the lowest year with the result is nominated for the work title is love bites? | CREATE TABLE table_name_99 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR) | SELECT MIN(year) FROM table_name_99 WHERE result = "nominated" AND nominated_work_title = "love bites" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1201,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
150,
1109,
920,
834,
1981,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
150,
1109,
920,
834,
1981,
834,
21869,
3274,
96,
5850,
15,
9133,
7,
121,
1,
-100,
-100,
-100,
-1... |
What's the location for the Spartans? | CREATE TABLE table_name_99 (location VARCHAR, mascot VARCHAR) | SELECT location FROM table_name_99 WHERE mascot = "spartans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
14836,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1128,
21,
8,
13063,
17,
3247,
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,
1128,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
7,
2274,
3247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many games were played against a team with a 9-19-6 record against the Islanders? | CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR) | SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3301,
2469,
834,
755,
41,
221,
75,
18247,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
130,
1944,
581,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
221,
75,
18247,
61,
21680,
953,
834,
2555,
4867,
3301,
2469,
834,
755,
549,
17444,
427,
1368,
3274,
96,
1298,
4481,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total cloud cover rates of the dates (bin into day of the week interval) that had the top 5 cloud cover rates? You can show me a bar chart. | CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
) | SELECT date, SUM(cloud_cover) FROM weather | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
833,
3,
3463,
4,
382,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
1243,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
3519,
834,
21010,
15,
834,
89,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
180,
6122,
599,
23742,
834,
9817,
61,
21680,
1969,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the game with a score of w 116–93 (ot)? | CREATE TABLE table_27715173_6 (date VARCHAR, score VARCHAR) | SELECT date FROM table_27715173_6 WHERE score = "W 116–93 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
26578,
4552,
834,
948,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
467,
28,
3,
9,
2604,
13,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
357,
4013,
26578,
4552,
834,
948,
549,
17444,
427,
2604,
3274,
96,
518,
3,
20159,
104,
4271,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Bonecrusher win the championship at Bayam n, Puerto Rico? | CREATE TABLE table_68147 (
"Championship" text,
"Champion(s)" text,
"Previous champion(s)" text,
"Date Won" text,
"Location" text
) | SELECT "Date Won" FROM table_68147 WHERE "Location" = 'bayamón, puerto rico' AND "Champion(s)" = 'bonecrusher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
24719,
41,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
254,
1483,
12364,
599,
7,
61,
121,
1499,
6,
96,
10572,
19117,
6336,
599,
7,
61,
121,
1499,
6,
96,
308,
342,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
549,
106,
121,
21680,
953,
834,
3651,
24719,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
11119,
265,
15742,
6,
4353,
49,
235,
3,
2234,
32,
31,
3430,
96,
254,
1483,
12364,
599,
7,
61,
... |
show the number of patients with procedure icd code 8852 who are younger than 31 years. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "31" AND procedures.icd9_code = "8852" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What are the ids of stations that are located in San Francisco and have average bike availability above 10. | CREATE TABLE status (
id VARCHAR,
station_id VARCHAR,
city VARCHAR,
bikes_available INTEGER
)
CREATE TABLE station (
id VARCHAR,
station_id VARCHAR,
city VARCHAR,
bikes_available INTEGER
) | SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
3,
23,
26,
584,
4280,
28027,
6,
2478,
834,
23,
26,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
13490,
834,
28843,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
26,
21680,
2478,
549,
17444,
427,
690,
3274,
96,
134,
152,
5901,
121,
3,
21342,
5249,
14196,
3,
23143,
14196,
2478,
834,
23,
26,
21680,
2637,
350,
4630,
6880,
272,
476,
2478,
834,
23,
26,
454,
6968,
2365,
7... |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, rank x-axis in descending order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
13... |
What teams has a home of 5-0? | CREATE TABLE table_name_58 (teams VARCHAR, home VARCHAR) | SELECT teams FROM table_name_58 WHERE home = "5-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
11650,
7,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2323,
65,
3,
9,
234,
13,
3,
29325,
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,
2323,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
234,
3274,
96,
29325,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What State has an Opened (closing date if defunct) that shows 1960? | CREATE TABLE table_name_28 (state VARCHAR, opened__closing_date_if_defunct_ VARCHAR) | SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = "1960" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
5540,
584,
4280,
28027,
6,
2946,
834,
834,
3903,
7,
53,
834,
5522,
834,
99,
834,
221,
25322,
17,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2946,
834,
834,
3903,
7,
53,
834,
5522,
834,
99,
834,
221,
25322,
17,
834,
3274,
96,
2294,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest grid for new zealand? | CREATE TABLE table_name_59 (
grid INTEGER,
team VARCHAR
) | SELECT MAX(grid) FROM table_name_59 WHERE team = "new zealand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
8634,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
8634,
21,
126,
3,
776,
138,
232,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
372,
3274,
96,
5534,
3,
776,
138,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest year that has athens, greece as the venue? | CREATE TABLE table_name_83 (
year INTEGER,
venue VARCHAR
) | SELECT MIN(year) FROM table_name_83 WHERE venue = "athens, greece" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
215,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
215,
24,
65,
44,
3225,
7,
6,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
5669,
3274,
96,
9,
189,
35,
7,
6,
3,
3584,
15,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the result when there's less than 2 goals? | CREATE TABLE table_40025 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_40025 WHERE "Goal" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
1828,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
5548,
1828,
549,
17444,
427,
96,
6221,
138,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tom Lagarde Category:Articles with hCards used what Jersey Number(s)? | CREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR) | SELECT jersey_number_s_ FROM table_name_22 WHERE player = "tom lagarde category:articles with hcards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
12488,
7,
15,
63,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3059,
325,
6390,
15,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
13426,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1959,
3274,
96,
235,
51,
50,
6390,
15,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the director for the episode in season #50? | CREATE TABLE table_16471432_4 (
directed_by VARCHAR,
series__number VARCHAR
) | SELECT directed_by FROM table_16471432_4 WHERE series__number = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4177,
2534,
2668,
834,
591,
41,
6640,
834,
969,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2938,
4177,
2534,
2668,
834,
591,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the Result listed that has a Date of June 12, 1997? | CREATE TABLE table_52995 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_52995 WHERE "Date" = 'june 12, 1997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
3301,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
755,
3166,
3301,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
10440,
6622,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the notes where withdrawn is 1956 57 | CREATE TABLE table_1181375_1 (
notes VARCHAR,
withdrawn VARCHAR
) | SELECT notes FROM table_1181375_1 WHERE withdrawn = "1956–57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2368,
3072,
834,
536,
41,
3358,
584,
4280,
28027,
6,
3,
28032,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
3358,
213,
3,
28032,
19,
22951,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3358,
21680,
953,
834,
20056,
2368,
3072,
834,
536,
549,
17444,
427,
3,
28032,
3274,
96,
2294,
4834,
104,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who is the buena vista edidtion where special edition is koichi sakaguchi? | CREATE TABLE table_73752 (
"Character" text,
"English version" text,
"Laserdisc edition" text,
"Buena Vista edition" text,
"Special edition" text
) | SELECT "Buena Vista edition" FROM table_73752 WHERE "Special edition" = 'Koichi Sakaguchi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
5373,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
26749,
988,
121,
1499,
6,
96,
3612,
7,
49,
19315,
4182,
121,
1499,
6,
96,
7793,
35,
9,
16695,
4182,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7793,
35,
9,
16695,
4182,
121,
21680,
953,
834,
27931,
5373,
549,
17444,
427,
96,
7727,
23,
138,
4182,
121,
3274,
3,
31,
439,
32,
362,
23,
23499,
9,
1744,
1436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the enrollment at the institution in New London, Connecticut? | CREATE TABLE table_261931_2 (
enrollment VARCHAR,
location VARCHAR
) | SELECT enrollment FROM table_261931_2 WHERE location = "New London, Connecticut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
3341,
834,
357,
41,
17938,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17938,
44,
8,
6568,
16,
368,
1524,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17938,
21680,
953,
834,
2688,
2294,
3341,
834,
357,
549,
17444,
427,
1128,
3274,
96,
6861,
1524,
6,
15505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165 | CREATE TABLE table_16530 (
"Year" real,
"Numer of Jamaicans granted British citizenship" real,
"Naturalisation by residence" real,
"Naturalisation by marriage" real,
"Registration of a minor child" real,
"Registration by other means" real
) | SELECT "Naturalisation by marriage" FROM table_16530 WHERE "Numer of Jamaicans granted British citizenship" = '3165' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
1458,
41,
96,
476,
2741,
121,
490,
6,
96,
21456,
52,
13,
21450,
29,
7,
7020,
2390,
22214,
121,
490,
6,
96,
567,
13149,
40,
2121,
57,
6198,
121,
490,
6,
96,
567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
13149,
40,
2121,
57,
5281,
121,
21680,
953,
834,
22823,
1458,
549,
17444,
427,
96,
21456,
52,
13,
21450,
29,
7,
7020,
2390,
22214,
121,
3274,
3,
31,
3341,
4122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the official target date for the Swedish Krona? | CREATE TABLE table_name_34 (official_target_date VARCHAR, currency VARCHAR) | SELECT official_target_date FROM table_name_34 WHERE currency = "swedish krona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
20884,
834,
24315,
834,
5522,
584,
4280,
28027,
6,
7481,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2314,
2387,
833,
21,
8,
16531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
834,
24315,
834,
5522,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
7481,
3274,
96,
7,
1123,
26,
1273,
3,
22318,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which team picked a player(s) from South Carolina? | CREATE TABLE table_9493 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "CFL Team" FROM table_9493 WHERE "College" = 'south carolina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
4271,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
10765,
2271,
121,
21680,
953,
834,
4240,
4271,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
7,
670,
107,
443,
12057,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5? | CREATE TABLE table_name_98 (
total_g INTEGER,
c_apps VARCHAR,
l_apps VARCHAR,
player VARCHAR
) | SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
792,
834,
122,
3,
21342,
17966,
6,
3,
75,
834,
3096,
7,
584,
4280,
28027,
6,
3,
40,
834,
3096,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
834,
122,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
40,
834,
3096,
7,
3274,
2838,
3430,
1959,
3274,
96,
1047,
235,
40,
32,
121,
3430,
3,
75,
834,
3096,
7,
2490,
305,
1,... |
Which Lead has a Nation of croatia? | CREATE TABLE table_5353 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_5353 WHERE "Nation" = 'croatia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
4867,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
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,
96,
2796,
9,
26,
121,
21680,
953,
834,
4867,
4867,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
2771,
144,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find job_id and the average of department_id , and group by attribute job_id, and visualize them by a bar chart, I want to sort by the x-axis in desc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051... |
Name the least game for arco arena 13,330 | CREATE TABLE table_17102076_10 (
game INTEGER,
location_attendance VARCHAR
) | SELECT MIN(game) FROM table_17102076_10 WHERE location_attendance = "ARCO Arena 13,330" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
1755,
3959,
834,
1714,
41,
467,
3,
21342,
17966,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
467,
21,
1584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
61,
21680,
953,
834,
2517,
1714,
1755,
3959,
834,
1714,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
18971,
667,
14904,
10670,
17225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the gdp per capita for world rank being 131 | CREATE TABLE table_25046 (
"Asian rank" real,
"World rank" real,
"Country" text,
"GDP per capita" text,
"GDP world rank" text
) | SELECT "GDP per capita" FROM table_25046 WHERE "GDP world rank" = '131' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
4448,
41,
96,
188,
10488,
11003,
121,
490,
6,
96,
17954,
11003,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
517,
7410,
399,
23219,
121,
1499,
6,
96,
517,
7410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
7410,
399,
23219,
121,
21680,
953,
834,
11434,
4448,
549,
17444,
427,
96,
517,
7410,
296,
11003,
121,
3274,
3,
31,
22048,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did Limerick play in the All-Ireland Final game? | CREATE TABLE table_name_38 (date VARCHAR, opposition VARCHAR, game VARCHAR) | SELECT date FROM table_name_38 WHERE opposition = "limerick" AND game = "all-ireland final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5522,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
10908,
15,
5206,
577,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
8263,
3274,
96,
4941,
15,
5206,
121,
3430,
467,
3274,
96,
1748,
18,
2060,
40,
232,
804,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the date of the game that led to a 4-3 record? | CREATE TABLE table_name_64 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_64 WHERE record = "4-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
2237,
12,
3,
9,
314,
3486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1368,
3274,
96,
591,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the the womens singles with mixed doubles being bernd frohnwieser hilde themel and year being smaller than 1959.0 | CREATE TABLE table_19795 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens singles" FROM table_19795 WHERE "Mixed doubles" = 'Bernd Frohnwieser Hilde Themel' AND "Year" < '1959.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3301,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
32,
904,
7,
712,
7,
121,
21680,
953,
834,
27181,
3301,
549,
17444,
427,
96,
329,
2407,
15,
26,
1486,
7,
121,
3274,
3,
31,
279,
49,
727,
6248,
13669,
6092,
7,
49,
11995,
221,
37,
2341,
31,
3430,
96,
47... |
Name the air date for the seasons before 14 and series less than 183 with production code more than 709 | CREATE TABLE table_53531 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"Production code" real
) | SELECT "Original air date" FROM table_53531 WHERE "Season #" < '14' AND "Production code" > '709' AND "Series #" < '183' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
3341,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
755,
2469,
3341,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3,
2,
3,
31,
2534,
31,
3430,
96,
3174,
8291,
1081,
121,
2490,
3,
31,
2518,
1298,
31,
3430,
... |
Which Round has a Club team of brandon wheat kings (whl)? | CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR) | SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7775,
584,
4280,
28027,
6,
1886,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
1949,
372,
13,
1056,
106,
13221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1886,
834,
11650,
3274,
96,
12164,
106,
13221,
3,
1765,
7,
41,
210,
107,
40,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What power belongs to the LP Class and has an Identifier of CBLI? | CREATE TABLE table_name_98 (power VARCHAR, class VARCHAR, identifier VARCHAR) | SELECT power FROM table_name_98 WHERE class = "lp" AND identifier = "cbli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
6740,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
3,
8826,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
579,
16952,
12,
8,
3,
6892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
853,
3274,
96,
40,
102,
121,
3430,
3,
8826,
52,
3274,
96,
75,
7437,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What rank was caerphilly with a Swing smaller than 6.92? | CREATE TABLE table_name_25 (
rank VARCHAR,
swing_to_gain VARCHAR,
constituency VARCHAR
) | SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = "caerphilly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
11003,
584,
4280,
28027,
6,
7180,
834,
235,
834,
16720,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
7180,
834,
235,
834,
16720,
3,
2,
4357,
4508,
3430,
6439,
4392,
3274,
96,
658,
49,
18118,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many times was iran barkley an opponent? | CREATE TABLE table_12206918_2 (number VARCHAR, opponent VARCHAR) | SELECT number FROM table_12206918_2 WHERE opponent = "Iran Barkley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
1755,
3951,
2606,
834,
357,
41,
5525,
1152,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
3,
23,
2002,
21696,
1306... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2122,
1755,
3951,
2606,
834,
357,
549,
17444,
427,
15264,
3274,
96,
196,
2002,
24828,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game site has december 24, 2000 as a date? | CREATE TABLE table_name_58 (game_site VARCHAR, date VARCHAR) | SELECT game_site FROM table_name_58 WHERE date = "december 24, 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
353,
65,
20,
75,
18247,
14320,
2766,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
14320,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of wins when position was larger than 6, and conceded was smaller than 19? | CREATE TABLE table_63815 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT COUNT("Wins") FROM table_63815 WHERE "Position" > '6' AND "Conceded" < '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3747,
1808,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
948,
3747,
1808,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
948,
31,
3430,
96,
4302,
565,
221,
26,
121,
3,
2,
3,
31,
2294,
31,
1,
-100,
-10... |
Who are the ministers and what parties do they belong to, listed descending by the times they took office? | CREATE TABLE region (
region_id number,
region_name text,
date text,
label text,
format text,
catalogue text
)
CREATE TABLE party (
party_id number,
minister text,
took_office text,
left_office text,
region_id number,
party_name text
)
CREATE TABLE member (
member_id number,
member_name text,
party_id text,
in_office text
)
CREATE TABLE party_events (
event_id number,
event_name text,
party_id number,
member_in_charge_id number
) | SELECT minister, party_name FROM party ORDER BY took_office DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
1719,
834,
23,
26,
381,
6,
1719,
834,
4350,
1499,
6,
833,
1499,
6,
3783,
1499,
6,
1910,
1499,
6,
14978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6323,
6,
1088,
834,
4350,
21680,
1088,
4674,
11300,
272,
476,
808,
834,
19632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the finalist of the hard surface tournament in Miami? | CREATE TABLE table_name_66 (
finalist VARCHAR,
surface VARCHAR,
tournament VARCHAR
) | SELECT finalist FROM table_name_66 WHERE surface = "hard" AND tournament = "miami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
804,
343,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
804,
343,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
343,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
5892,
3274,
96,
51,
23,
3690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest rank for the team that raced a time of 6:17.62 and a notes of sa/b? | CREATE TABLE table_name_87 (rank INTEGER, notes VARCHAR, time VARCHAR) | SELECT MIN(rank) FROM table_name_87 WHERE notes = "sa/b" AND time = "6:17.62" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
6254,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11003,
21,
8,
372,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3358,
3274,
96,
7,
9,
87,
115,
121,
3430,
97,
3274,
96,
948,
10,
2517,
5,
4056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course? | CREATE TABLE table_6210 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Date" FROM table_6210 WHERE "Course" = 'la granja de san ildefonso to alto de navacerrada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
1714,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18455,
687,
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,
308,
342,
121,
21680,
953,
834,
4056,
1714,
549,
17444,
427,
96,
3881,
3589,
15,
121,
3274,
3,
31,
521,
3,
7662,
1191,
20,
3,
7,
152,
3,
173,
221,
89,
106,
7,
32,
12,
4445,
32,
20,
3,
14128,
9,
2110,
148... |
Which season was Manresa the champion? | CREATE TABLE table_14474 (
"Season" text,
"Champion" text,
"Runner-up" text,
"Series Result" text,
"Finals MVP" text,
"Champion's Coach" text
) | SELECT "Season" FROM table_14474 WHERE "Champion" = 'manresa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
4581,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
12106,
7,
3,
20119,
121,
1499,
6,
96,
371,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
20885,
4581,
549,
17444,
427,
96,
254,
1483,
12364,
121,
3274,
3,
31,
348,
60,
7,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the game played at glenferrie oval? | CREATE TABLE table_name_70 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_name_70 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
1944,
44,
3,
3537,
29,
1010,
1753,
17986,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Say the region for 6854 altitudes | CREATE TABLE table_name_97 (
region VARCHAR,
altitude__metres_ VARCHAR
) | SELECT region FROM table_name_97 WHERE altitude__metres_ = 6854 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
1719,
584,
4280,
28027,
6,
491,
6592,
834,
834,
22404,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
10403,
8,
1719,
21,
3,
3651,
506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
491,
6592,
834,
834,
22404,
7,
834,
3274,
3,
3651,
5062,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is listed for the Wins with a Year of 1989? | CREATE TABLE table_37834 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT "Wins" FROM table_37834 WHERE "Year" = '1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
3710,
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,
0... | [
3,
23143,
14196,
96,
18455,
7,
121,
21680,
953,
834,
519,
3940,
3710,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification? | CREATE TABLE table_47854 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_47854 WHERE "Competition" = '1978 world cup qualification' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
4433,
591,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4177,
4433,
591,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3940,
296,
4119,
15513,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the rank of the time of 6:30.53? | CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_89 WHERE time = "6:30.53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
6254,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
97,
13,
23096,
5,
4867,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
97,
3274,
96,
948,
10,
1458,
5,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The match against Paul-Henri Mathieu had what outcome? | CREATE TABLE table_60566 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Outcome" FROM table_60566 WHERE "Opponent" = 'paul-henri mathieu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
755,
3539,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
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,
15767,
287,
15,
121,
21680,
953,
834,
3328,
755,
3539,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
102,
9,
83,
18,
3225,
52,
23,
7270,
23,
15,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of losses when there are under 1 games played? | CREATE TABLE table_71081 (
"First game" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Percentage" text
) | SELECT MAX("Lost") FROM table_71081 WHERE "Played" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1714,
4959,
41,
96,
25171,
467,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
12988,
3728,
545,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
3481,
8512,
21680,
953,
834,
940,
1714,
4959,
549,
17444,
427,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was North Melbourne's home opponent? | CREATE TABLE table_78308 (
"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_78308 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
1458,
927,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
3940,
1458,
927,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What show is on at 9:30 when Dating in the Dark is on at 10:00? | CREATE TABLE table_41224 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "9:30" FROM table_41224 WHERE "10:00" = 'dating in the dark' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
24622,
41,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
21150,
121,
1499,
6,
96,
536,
25713,
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,
21150,
121,
21680,
953,
834,
4853,
24622,
549,
17444,
427,
96,
536,
25713,
121,
3274,
3,
31,
26,
1014,
16,
8,
2164,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the extra result of the 4th game? | CREATE TABLE table_name_37 (extra VARCHAR, result VARCHAR) | SELECT extra FROM table_name_37 WHERE result = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
25666,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
996,
741,
13,
8,
314,
189,
467,
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,
996,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
741,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, could you order by the X-axis in ascending please? | 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 T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
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,
272,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.