NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Give the section titles of the document with the name 'David CV'. | CREATE TABLE documents (
document_code text,
document_structure_code text,
document_type_code text,
access_count number,
document_name text
)
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE document_functional_areas (
d... | SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2691,
41,
1708,
834,
4978,
1499,
6,
1708,
834,
16180,
834,
4978,
1499,
6,
1708,
834,
6137,
834,
4978,
1499,
6,
592,
834,
13362,
381,
6,
1708,
834,
4350,
1499,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
4416,
14309,
834,
21869,
21680,
2691,
6157,
3,
17,
536,
3,
15355,
3162,
1708,
834,
14309,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28244,
834,
4978,
3274,
3,
17,
4416,
28244,
834,
4978,
549,
17444,
427,
3,
... |
Who was the winner of the race that had a distance of 175.6km? | CREATE TABLE table_60900 (
"Stage" text,
"Route" text,
"Distance" text,
"Date" text,
"Winner" text
) | SELECT "Winner" FROM table_60900 WHERE "Distance" = '175.6km' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
7015,
41,
96,
134,
6505,
121,
1499,
6,
96,
448,
670,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3328,
7015,
549,
17444,
427,
96,
308,
23,
8389,
121,
3274,
3,
31,
2517,
25134,
5848,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which built by HM Dockyard has September 1830 as the laid down? | CREATE TABLE table_7076 (
"Name" text,
"Built by HM Dockyard" text,
"Ordered" text,
"Laid down" text,
"Launched" text
) | SELECT "Built by HM Dockyard" FROM table_7076 WHERE "Laid down" = 'september 1830' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3959,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
57,
3,
20611,
22314,
6636,
121,
1499,
6,
96,
7395,
26,
3737,
121,
1499,
6,
96,
434,
6146,
323,
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,
173,
17,
57,
3,
20611,
22314,
6636,
121,
21680,
953,
834,
2518,
3959,
549,
17444,
427,
96,
434,
6146,
323,
121,
3274,
3,
31,
7,
6707,
18247,
507,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the highest area (km2) with a population estimate 2005 less than 93,116 named polewali mandar regency? | CREATE TABLE table_11223 (
"Name" text,
"Area (km 2 )" real,
"Population Estimate 2005" real,
"Population Census 2010" real,
"Capital" text
) | SELECT MAX("Area (km 2 )") FROM table_11223 WHERE "Population Estimate 2005" < '93,116' AND "Name" = 'polewali mandar regency' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
2773,
41,
96,
23954,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
27773,
7830,
23621,
15,
3105,
121,
490,
6,
96,
27773,
7830,
23086,
2735... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
864,
41,
5848,
204,
3,
61,
8512,
21680,
953,
834,
2596,
357,
2773,
549,
17444,
427,
96,
27773,
7830,
23621,
15,
3105,
121,
3,
2,
3,
31,
4271,
6,
20159,
31,
3430,
96,
23954,
121,
3274,
3,
... |
Which Home team score has an Away team of st kilda? | CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_2 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
372,
2604,
65,
46,
71,
1343,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the region for cd format on february 22, 1984 | CREATE TABLE table_name_30 (region VARCHAR, format VARCHAR, date VARCHAR) | SELECT region FROM table_name_30 WHERE format = "cd" AND date = "february 22, 1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
18145,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1719,
21,
3,
75,
26,
1910,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1910,
3274,
96,
75,
26,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
12889,
13480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Nationality has a Name of janne happonen? | CREATE TABLE table_name_33 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_33 WHERE name = "janne happonen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
16557,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
868,
485,
65,
3,
9,
5570,
13,
3,
354,
4515,
3,
9516,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
564,
3274,
96,
354,
4515,
3,
9516,
5041,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the highest rebounds of the game with A. Johnson (14) as the highest assists? | CREATE TABLE table_name_55 (high_rebounds VARCHAR, high_assists VARCHAR) | SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (14)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
2030,
3,
23768,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
9,
5,
3,
27341,
739,
4077,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date has a theme of fate or fortune? | CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR) | SELECT date FROM table_name_21 WHERE theme = "fate or fortune" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5522,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
3,
9,
3800,
13,
15126,
42,
13462,
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,
833,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3800,
3274,
96,
89,
342,
42,
13462,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose days of hospital stay is greater than 5 and drug type is additive? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug_type = "ADDITIVE" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the highest production code of an episode written by Tim Loane? | CREATE TABLE table_18335117_2 (
production_code INTEGER,
writer VARCHAR
) | SELECT MAX(production_code) FROM table_18335117_2 WHERE writer = "Tim Loane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
2469,
20275,
834,
357,
41,
999,
834,
4978,
3,
21342,
17966,
6,
4346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
999,
1081,
13,
46,
564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
20762,
834,
4978,
61,
21680,
953,
834,
24361,
2469,
20275,
834,
357,
549,
17444,
427,
4346,
3274,
96,
382,
603,
12183,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nation(s) won silver in Doha? | CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR) | SELECT silver FROM table_name_51 WHERE location = "doha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
7,
173,
624,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
599,
7,
61,
751,
4294,
16,
531,
1024,
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,
4294,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1128,
3274,
96,
26,
32,
1024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which tier of the tournament has Mont de Marson in it? | CREATE TABLE table_name_61 (tier VARCHAR, tournament VARCHAR) | SELECT tier FROM table_name_61 WHERE tournament = "mont de marson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
3276,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
3276,
13,
8,
5892,
65,
5788,
20,
11856,
106,
16,
34,
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,
3,
3276,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
5892,
3274,
96,
4662,
20,
8113,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751? | CREATE TABLE table_name_88 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR, location VARCHAR, rna_segment__gene_ VARCHAR) | SELECT copies_per_particle FROM table_name_88 WHERE location = "nonstructural" AND rna_segment__gene_ > 5 AND size___s_base_pair__ < 751 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
17634,
7,
834,
883,
834,
102,
8372,
584,
4280,
28027,
6,
812,
834,
834,
834,
7,
834,
10925,
834,
102,
2256,
834,
834,
584,
4280,
28027,
6,
1128,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8167,
834,
883,
834,
102,
8372,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1128,
3274,
96,
29,
106,
7593,
9709,
121,
3430,
3,
52,
29,
9,
834,
7,
15,
122,
297,
834,
834,
729,
15,
834,
2490,
305,
3430,
812... |
Who scored the highest points and how much against the raptors? | CREATE TABLE table_23248910_6 (
high_points VARCHAR,
team VARCHAR
) | SELECT high_points FROM table_23248910_6 WHERE team = "Raptors" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
1714,
834,
948,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
5799,
8,
2030,
979,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2773,
2266,
3914,
1714,
834,
948,
549,
17444,
427,
372,
3274,
96,
448,
9,
102,
5535,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the kickoff time for the Miami Dolphins? | CREATE TABLE table_33561 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Kickoff" text,
"Attendance" text
) | SELECT "Kickoff" FROM table_33561 WHERE "Opponent" = 'miami dolphins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4241,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
3142,
1647,
121,
21680,
953,
834,
519,
2469,
4241,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
51,
23,
3690,
25903,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If Socialist is at 46.1%, what are all percentages for social democratic? | CREATE TABLE table_1463383_1 (
social_democratic VARCHAR,
socialist VARCHAR
) | SELECT social_democratic FROM table_1463383_1 WHERE socialist = "46.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4201,
4591,
834,
536,
41,
569,
834,
23319,
447,
584,
4280,
28027,
6,
23737,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
2730,
343,
19,
44,
9668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
569,
834,
23319,
447,
21680,
953,
834,
24300,
4201,
4591,
834,
536,
549,
17444,
427,
23737,
3274,
96,
4448,
5,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name how other lyers say enga ullale | CREATE TABLE table_67102 (
"Pure Tamil" text,
"How Ashtagrama Iyers say it" text,
"How other Iyers say it" text,
"How other Tamils say it" text,
"English Meaning" text
) | SELECT "How other Iyers say it" FROM table_67102 WHERE "How Ashtagrama Iyers say it" = 'enga ullale' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
14388,
41,
96,
345,
1462,
22503,
121,
1499,
6,
96,
7825,
7153,
2408,
10819,
27,
63,
277,
497,
34,
121,
1499,
6,
96,
7825,
119,
27,
63,
277,
497,
34,
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,
7825,
119,
27,
63,
277,
497,
34,
121,
21680,
953,
834,
3708,
14388,
549,
17444,
427,
96,
7825,
7153,
2408,
10819,
27,
63,
277,
497,
34,
121,
3274,
3,
31,
4606,
9,
3,
83,
521,
109,
31,
1,
-100,
-100,
-100,
... |
What is the highest Established for the kuntz stadium? | CREATE TABLE table_name_79 (established INTEGER, venue VARCHAR) | SELECT MAX(established) FROM table_name_79 WHERE venue = "kuntz stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
24109,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
25275,
21,
8,
3,
2729,
26897,
14939,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
24109,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
5669,
3274,
96,
2729,
26897,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score for the date of December 7? | CREATE TABLE table_23286112_7 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_23286112_7 WHERE date = "December 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
4241,
2122,
834,
940,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
833,
13,
1882,
489,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2773,
2577,
4241,
2122,
834,
940,
549,
17444,
427,
833,
3274,
96,
29835,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the bubbles for onscroll | CREATE TABLE table_39430 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
) | SELECT "Bubbles" FROM table_39430 WHERE "Attribute" = 'onscroll' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
25449,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
188,
17,
5135,
17,
15,
121,
1499,
6,
96,
7793,
7310,
7,
121,
1499,
6,
96,
254,
663,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7310,
7,
121,
21680,
953,
834,
3288,
25449,
549,
17444,
427,
96,
188,
17,
5135,
17,
15,
121,
3274,
3,
31,
106,
7,
75,
4046,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which female athlete has been the flag bearer for georgia in the olympics twice ? | CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
) | SELECT "flag bearer" FROM table_204_266 GROUP BY "flag bearer" HAVING COUNT(*) = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3539,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
15,
2169,
215,
121,
381,
6,
96,
9476,
121,
1499,
6,
96,
89,
5430,
4595,
49,
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,
89,
5430,
4595,
49,
121,
21680,
953,
834,
26363,
834,
357,
3539,
350,
4630,
6880,
272,
476,
96,
89,
5430,
4595,
49,
121,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is Player, when Place is 2? | CREATE TABLE table_name_93 (
player VARCHAR,
place VARCHAR
) | SELECT player FROM table_name_93 WHERE place = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1959,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
3399,
19,
204,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
286,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the outcome on May 18, 2008? | CREATE TABLE table_69098 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Outcome" FROM table_69098 WHERE "Date" = 'may 18, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2394,
3916,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
102,
997... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
948,
2394,
3916,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
14985,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose age is less than 79 and procedure short title is suture of artery? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "79" AND procedures.short_title = "Suture of artery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
games released by psikyo in 2004 ? | CREATE TABLE table_203_583 (
id number,
"title" text,
"release" number,
"6th gen" text,
"handheld" text,
"note" text
) | SELECT "title" FROM table_203_583 WHERE "release" = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
519,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
21019,
121,
381,
6,
96,
948,
189,
3,
729,
121,
1499,
6,
96,
2894,
14796,
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,
21869,
121,
21680,
953,
834,
23330,
834,
3449,
519,
549,
17444,
427,
96,
21019,
121,
3274,
4406,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total heat ranked higher than 7? | CREATE TABLE table_66158 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
) | SELECT SUM("Heat") FROM table_66158 WHERE "Rank" > '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
26556,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
254,
63,
75,
3350,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
3845,
144,
8512,
21680,
953,
834,
3539,
26556,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for the match at the tournament in canada f7, toronto? | CREATE TABLE table_name_87 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_87 WHERE tournament = "canada f7, toronto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
1588,
44,
8,
5892,
16,
19343,
3,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
5892,
3274,
96,
658,
18089,
3,
89,
940,
6,
12,
4438,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date was the circuit, snetterton, when riki christodoulou had the fastest lap? | CREATE TABLE table_name_10 (
date VARCHAR,
circuit VARCHAR,
fastest_lap VARCHAR
) | SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
4558,
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,
833,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4558,
3274,
96,
7,
10544,
24471,
121,
3430,
10391,
834,
8478,
3274,
96,
9629,
23,
3,
15294,
32,
26,
7115,
1063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)? | CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) | SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
6726,
584,
4280,
28027,
6,
1475,
834,
5651,
6096,
834,
9431,
584,
4280,
28027,
6,
3,
7066,
76,
1208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1475,
834,
5651,
6096,
834,
9431,
3274,
96,
357,
115,
121,
3430,
3,
7066,
76,
1208,
3274,
96,
2,
2122,
87,
2,
2773,
1956,
75,
11704,
87,
7141,
1956,
89,
61,
... |
What's the highest League Cup with an FA Cup thats larger than 2? | CREATE TABLE table_name_95 (league INTEGER, fa_cup INTEGER) | SELECT MAX(league) AS Cup FROM table_name_95 WHERE fa_cup > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
29512,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
3815,
3802,
28,
46,
8536,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29512,
61,
6157,
3802,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3,
89,
9,
834,
4658,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the deceased spouse who was married for 4 years? | CREATE TABLE table_24143253_5 (deceased_spouse VARCHAR, length_of_marriage VARCHAR) | SELECT deceased_spouse FROM table_24143253_5 WHERE length_of_marriage = "4 years" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2534,
2668,
4867,
834,
755,
41,
221,
29220,
834,
7990,
1074,
584,
4280,
28027,
6,
2475,
834,
858,
834,
51,
10269,
545,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22449,
834,
7990,
1074,
21680,
953,
834,
2266,
2534,
2668,
4867,
834,
755,
549,
17444,
427,
2475,
834,
858,
834,
51,
10269,
545,
3274,
96,
591,
203,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year? | CREATE TABLE table_12275654_1 (year VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR) | SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2555,
4834,
5062,
834,
536,
41,
1201,
584,
4280,
28027,
6,
1076,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
2122,
2555,
4834,
5062,
834,
536,
549,
17444,
427,
1076,
7,
834,
7,
53,
965,
3274,
96,
567,
23,
3573,
2826,
5740,
26,
402,
121,
3430,
887,
7,
834,
7,
53,
965,
3274,
9... |
Which final round had a first round of 20? | CREATE TABLE table_name_22 (
final_round VARCHAR,
first_round VARCHAR
) | SELECT final_round FROM table_name_22 WHERE first_round = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
804,
834,
7775,
584,
4280,
28027,
6,
166,
834,
7775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
804,
1751,
141,
3,
9,
166,
1751,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
834,
7775,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
166,
834,
7775,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how long did anne churchill/spencer live ? | CREATE TABLE table_204_626 (
id number,
"image" number,
"name" text,
"birth date" text,
"death date" text,
"brief biography" text
) | SELECT "death date" - "birth date" FROM table_204_626 WHERE "name" = 'anne churchill (later spencer)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2688,
41,
3,
23,
26,
381,
6,
96,
8221,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
20663,
833,
121,
1499,
6,
96,
221,
9,
189,
833,
121,
1499,
6,
96,
255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
221,
9,
189,
833,
121,
3,
18,
96,
20663,
833,
121,
21680,
953,
834,
26363,
834,
948,
2688,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
4515,
2078,
1092,
41,
5867,
52,
3,
7,
3208,
2110,
61,
31,
1,
-100,
-1... |
Name the score for january 26 | CREATE TABLE table_17058226_7 (score VARCHAR, date VARCHAR) | SELECT score FROM table_17058226_7 WHERE date = "January 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3076,
4613,
2688,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
3,
7066,
76,
1208,
2208,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2517,
3076,
4613,
2688,
834,
940,
549,
17444,
427,
833,
3274,
96,
30404,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of attendance for october 8 | CREATE TABLE table_name_52 (
attendance VARCHAR,
date VARCHAR
) | SELECT COUNT(attendance) FROM table_name_52 WHERE date = "october 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
11364,
21,
3,
32,
75,
235,
1152,
505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of employees of each gender whose salary is lower than 50000. Show a pie chart. | CREATE TABLE works_on (
Essn INTEGER,
Pno INTEGER,
Hours REAL
)
CREATE TABLE dependent (
Essn INTEGER,
Dependent_name TEXT,
Sex TEXT,
Bdate TEXT,
Relationship TEXT
)
CREATE TABLE project (
Pname Text,
Pnumber INTEGER,
Plocation TEXT,
Dnum INTEGER
)
CREATE TABLE employe... | SELECT Sex, COUNT(*) FROM employee WHERE Salary < 50000 GROUP BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
930,
834,
106,
41,
1122,
7,
29,
3,
21342,
17966,
6,
276,
29,
32,
3,
21342,
17966,
6,
10768,
7,
17833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8976,
41,
1122,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
3490,
549,
17444,
427,
5158,
1208,
3,
2,
943,
2313,
350,
4630,
6880,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5? | CREATE TABLE table_name_77 (debut_in_europe VARCHAR, rank VARCHAR, goals VARCHAR, games VARCHAR) | SELECT COUNT(debut_in_europe) FROM table_name_77 WHERE goals < 76 AND games > 151 AND rank > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
221,
2780,
834,
77,
834,
28188,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
221,
2780,
834,
77,
834,
28188,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1766,
3,
2,
3,
3959,
3430,
1031,
2490,
3,
26578,
3430,
11003,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was drafted by the Washington Capitals? | CREATE TABLE table_2840500_2 (
player VARCHAR,
nhl_team VARCHAR
) | SELECT player FROM table_2840500_2 WHERE nhl_team = "Washington Capitals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
357,
41,
1959,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3,
23505,
57,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2577,
2445,
2560,
834,
357,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
518,
3198,
6029,
5826,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When emt 9 is the series what is the date? | CREATE TABLE table_25572118_1 (
date VARCHAR,
series VARCHAR
) | SELECT date FROM table_25572118_1 WHERE series = "EMT 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
5865,
20056,
834,
536,
41,
833,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
15,
51,
17,
668,
19,
8,
939,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
25502,
5865,
20056,
834,
536,
549,
17444,
427,
939,
3274,
96,
6037,
382,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients who had percu gastrojejunostomy were discharged to wdisc-tran cancer/chldrn h | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.short_title = "Percu gastrojejunostomy" | [
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 is the result in 1994? | CREATE TABLE table_name_36 (
result VARCHAR,
year VARCHAR
) | SELECT result FROM table_name_36 WHERE year = 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
16,
7520,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
215,
3274,
7520,
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,... |
What is California State University, Hayward's new conference for Western Collegiate Lacrosse? | CREATE TABLE table_14976504_2 (
new_conference VARCHAR,
institution VARCHAR
) | SELECT new_conference FROM table_14976504_2 WHERE institution = "California State University, Hayward" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4327,
15348,
591,
834,
357,
41,
126,
834,
28496,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1826,
1015,
636,
6,
8567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
126,
834,
28496,
21680,
953,
834,
2534,
4327,
15348,
591,
834,
357,
549,
17444,
427,
6568,
3274,
96,
14318,
99,
127,
29,
23,
9,
1015,
636,
6,
8567,
2239,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, and I want to rank by the Y-axis in descending. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTME... | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(SALARY) 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,
446,
10539,
834,
4309,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
834,
4309,
... |
what is date of birth and death status of subject name james sloan? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT demographic.dob, demographic.expire_flag FROM demographic WHERE demographic.name = "James Sloan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
9,
2687,
18043,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7? | CREATE TABLE table_name_6 (bronze VARCHAR, nation VARCHAR, total VARCHAR) | SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
13711,
776,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13467,
7,
43,
3,
9,
1104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
2982,
3274,
96,
1191,
6840,
658,
41,
1191,
51,
61,
121,
3430,
792,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Played on Clay Surface, what was the Score of the Dortmund Tournament? | CREATE TABLE table_71911 (
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_71911 WHERE "Surface" = 'clay' AND "Tournament" = 'dortmund' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
2596,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
7,
16,
8,
804,
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,
134,
9022,
16,
8,
804,
121,
21680,
953,
834,
940,
2294,
2596,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
4651,
63,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
26,
127,
17,
51,
1106,
3... |
Which Name has a Nationality of nor, and Points of 136? | CREATE TABLE table_name_99 (
name VARCHAR,
nationality VARCHAR,
points VARCHAR
) | SELECT name FROM table_name_99 WHERE nationality = "nor" AND points = 136 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
564,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5570,
65,
3,
9,
868,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1157,
485,
3274,
96,
29,
127,
121,
3430,
979,
3274,
3,
23459,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which method had a time of 0:46? | CREATE TABLE table_name_85 (
method VARCHAR,
time VARCHAR
) | SELECT method FROM table_name_85 WHERE time = "0:46" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1573,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1573,
141,
3,
9,
97,
13,
3,
632,
10,
4448,
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,
1573,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
97,
3274,
96,
632,
10,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose primary disease is celo-vessicle fistula and age is less than 64? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "64" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4770,
5017,
18,
553,
10087,
196,
22704,
377,
13582,
4254,
188,
121,
34... |
Can you tell me the Opponent that has the Series of 4-2? | CREATE TABLE table_70591 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Series" text
) | SELECT "Opponent" FROM table_70591 WHERE "Series" = '4-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3390,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
2518,
3390,
536,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
591,
4949,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many people watched the away team of Geelong? | CREATE TABLE table_name_63 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT crowd FROM table_name_63 WHERE away_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
4374,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
7533,
8,
550,
372,
13,
961,
15,
2961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4374,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
550,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is days of hospital stay and procedure long title of subject name dona cole? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT demographic.days_stay, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Dona Cole" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
4293,
5,
2961,
834,
21869,
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,
427,
14798,
5,... |
How many position did a player took while weighing 170? | CREATE TABLE table_27431 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Former school" text,
"Hometown" text
) | SELECT COUNT("Position") FROM table_27431 WHERE "Weight" = '170' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
591,
3341,
41,
96,
23954,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
2555,
591,
3341,
549,
17444,
427,
96,
1326,
2632,
121,
3274,
3,
31,
536,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r? | CREATE TABLE table_name_98 (
Id VARCHAR
) | SELECT 2009 FROM table_name_98 WHERE 2008 = "a" AND 2012 = "1r" AND 2010 = "q2" AND 2011 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
2464,
116,
2628,
19,
71,
6,
1673,
19,
209,
52,
6,
2735,
19,
3,
1824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2464,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2628,
3274,
96,
9,
121,
3430,
1673,
3274,
96,
536,
52,
121,
3430,
2735,
3274,
96,
1824,
357,
121,
3430,
2722,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-... |
Who won third place with the runner up being dynamo moscow? | CREATE TABLE table_17034 (
"Season" text,
"Champion" text,
"Runner-up" text,
"Third place" text,
"Top scorer" text
) | SELECT "Third place" FROM table_17034 WHERE "Runner-up" = 'Dynamo Moscow' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3710,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
286,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
9288,
26,
286,
121,
21680,
953,
834,
536,
2518,
3710,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
308,
63,
13363,
32,
15363,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the total when the first was November 1966? | CREATE TABLE table_58732 (
"Name" text,
"Total" real,
"First" text,
"Last" text,
"Highest rank" text
) | SELECT SUM("Total") FROM table_58732 WHERE "First" = 'november 1966' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4552,
357,
41,
96,
23954,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
25171,
121,
1499,
6,
96,
3612,
7,
17,
121,
1499,
6,
96,
21417,
222,
11003,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3449,
4552,
357,
549,
17444,
427,
96,
25171,
121,
3274,
3,
31,
5326,
18247,
20658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who are all of the players on the Westchester High School club team? | CREATE TABLE table_10015132_9 (
player VARCHAR,
school_club_team VARCHAR
) | SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
1298,
41,
1959,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
13,
8,
1508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
2915,
1808,
23757,
834,
1298,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
19069,
13263,
1592,
1121,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
find out the birth date and status of death for patient dominga garvin. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT demographic.dob, demographic.expire_flag FROM demographic WHERE demographic.name = "Dominga Garvin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
4135,
51,
53,
9,
3121,
2494,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the pinyin for explaining beasts? | CREATE TABLE table_1216675_1 (
pinyin VARCHAR,
translation VARCHAR
) | SELECT pinyin FROM table_1216675_1 WHERE translation = "Explaining Beasts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
26811,
3072,
834,
536,
41,
4522,
63,
77,
584,
4280,
28027,
6,
7314,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4522,
63,
77,
21,
13834,
21168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4522,
63,
77,
21680,
953,
834,
2122,
26811,
3072,
834,
536,
549,
17444,
427,
7314,
3274,
96,
5420,
18689,
53,
26695,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which event had an opponent of Yasuhito Namekawa with a decision method? | CREATE TABLE table_name_35 (
event VARCHAR,
opponent VARCHAR,
method VARCHAR
) | SELECT event FROM table_name_35 WHERE opponent = "yasuhito namekawa" AND method = "decision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
605,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
141,
46,
15264,
13,
4701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
15264,
3274,
96,
63,
9,
7,
76,
10536,
32,
564,
157,
7396,
121,
3430,
1573,
3274,
96,
221,
18901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Number has a Year Start smaller than 1874, and a Year End larger than 1873? | CREATE TABLE table_name_13 (number INTEGER, year_start VARCHAR, year_end VARCHAR) | SELECT MAX(number) FROM table_name_13 WHERE year_start < 1874 AND year_end > 1873 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
5525,
1152,
3,
21342,
17966,
6,
215,
834,
10208,
584,
4280,
28027,
6,
215,
834,
989,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7720,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
215,
834,
10208,
3,
2,
507,
4581,
3430,
215,
834,
989,
2490,
507,
4552,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which federally-funded state performs worst on the NAEP math exam for eighth graders? | CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
... | SELECT state FROM ndecoreexcel_math_grade8 ORDER BY average_scale_score LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
29,
221,
9022,
994,
7125,
834,
3357,
107,
834,
6801,
927,
41,
215,
381,
6,
538,
1499,
6,
66,
834,
8637,
295,
7,
1499,
6,
1348,
834,
6649,
834,
7,
9022,
381,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
21680,
3,
29,
221,
9022,
994,
7125,
834,
3357,
107,
834,
6801,
927,
4674,
11300,
272,
476,
1348,
834,
6649,
834,
7,
9022,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the successor seated when the district was California 10th? | CREATE TABLE table_1134091_4 (date_successor_seated VARCHAR, district VARCHAR) | SELECT date_successor_seated FROM table_1134091_4 WHERE district = "California 10th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
2445,
4729,
834,
591,
41,
5522,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
22261,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
7,
17431,
24901,
834,
22933,
21680,
953,
834,
20522,
2445,
4729,
834,
591,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
335,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488? | CREATE TABLE table_45488 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | SELECT MIN("Long") FROM table_45488 WHERE "Avg/G" > '-2.2' AND "Name" = 'total' AND "Gain" > '2,488' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
4060,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
517,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
2444,
8512,
21680,
953,
834,
2128,
591,
4060,
549,
17444,
427,
96,
188,
208,
122,
87,
517,
121,
2490,
3,
31,
18,
15300,
31,
3430,
96,
23954,
121,
3274,
3,
31,
235,
1947,
31,
3430,
96,
51... |
Who is the winner when bigten (2-1) is the challenge leader? | CREATE TABLE table_21330550_2 (
winner VARCHAR,
challenge_leader VARCHAR
) | SELECT winner FROM table_21330550_2 WHERE challenge_leader = "BigTen (2-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17225,
17147,
834,
357,
41,
4668,
584,
4280,
28027,
6,
1921,
834,
22900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4668,
116,
600,
324,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
2658,
17225,
17147,
834,
357,
549,
17444,
427,
1921,
834,
22900,
3274,
96,
23805,
382,
35,
41,
17234,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
end stage renal failure ( creatinin > 220 micromol / l ) | CREATE TABLE table_test_12 (
"id" int,
"serum_potassium" float,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"haemoglobin" float,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"anaemia" bool,
"cr... | SELECT * FROM table_test_12 WHERE renal_disease = 1 OR creatinine_clearance_cl > 220 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2122,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
49,
440,
834,
3013,
6500,
440,
121,
3,
12660,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2122,
549,
17444,
427,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
8830,
77,
630,
834,
2482,
9,
5219,
834,
75,
40,
2490,
204,
1755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all employees who have the letters D or S in their first name, find job_id and the sum of salary , and group by attribute job_id, and visualize them by a bar chart, and display by the JOB_ID in desc. | 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 T... | 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,
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,
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 is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site? | CREATE TABLE table_41825 (
"Week" real,
"Date" text,
"Time (CST)" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"NFL Recap" text
) | SELECT MIN("Week") FROM table_41825 WHERE "Time (CST)" = '7:15 p.m.' AND "Game site" = 'fedexfield' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
1828,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
13368,
41,
254,
4209,
61,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
8512,
21680,
953,
834,
591,
2606,
1828,
549,
17444,
427,
96,
13368,
41,
254,
4209,
61,
121,
3274,
3,
31,
940,
10,
1808,
3,
102,
5,
51,
5,
31,
3430,
96,
23055,
353,
121,
3274,
3,
... |
what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507 | CREATE TABLE table_name_8 (
water__sqmi_ INTEGER,
longitude VARCHAR,
pop__2010_ VARCHAR,
township VARCHAR
) | SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
387,
834,
834,
7,
1824,
51,
23,
834,
3,
21342,
17966,
6,
307,
20341,
584,
4280,
28027,
6,
2783,
834,
834,
14926,
834,
584,
4280,
28027,
6,
1511,
2009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3552,
834,
834,
7,
1824,
51,
23,
834,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2783,
834,
834,
14926,
834,
2490,
10635,
3430,
1511,
2009,
3274,
96,
1999,
29,
29,
9,
121,
3430,
307,
203... |
out of total number of patients on urgent admission, how many of them were asian? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.ethnicity = "ASIAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274... |
Name the high points for record 9-4 | CREATE TABLE table_22654073_6 (
high_points VARCHAR,
record VARCHAR
) | SELECT high_points FROM table_22654073_6 WHERE record = "9-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4122,
2445,
4552,
834,
948,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
979,
21,
1368,
668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
2884,
4122,
2445,
4552,
834,
948,
549,
17444,
427,
1368,
3274,
96,
1298,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 5th is the regular season what is the highest season? | CREATE TABLE table_22963 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT MAX("Division") FROM table_22963 WHERE "Regular Season" = '5th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3166,
3891,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
23,
6610,
8512,
21680,
953,
834,
357,
3166,
3891,
549,
17444,
427,
96,
17748,
4885,
7960,
121,
3274,
3,
31,
755,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score to par for 156 strokes? | CREATE TABLE table_71859 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT COUNT("To par") FROM table_71859 WHERE "Total" > '156' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2606,
3390,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
260,
8512,
21680,
953,
834,
940,
2606,
3390,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
25463,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many total garratts did south african railways have ? | CREATE TABLE table_204_637 (
id number,
"type" text,
"gauge" text,
"railway" text,
"works no." text,
"year" text,
"builder" text
) | SELECT COUNT(*) FROM table_204_637 WHERE "railway" = 'south african railways' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3891,
940,
41,
3,
23,
26,
381,
6,
96,
6137,
121,
1499,
6,
96,
20038,
397,
121,
1499,
6,
96,
12977,
1343,
121,
1499,
6,
96,
13631,
150,
535,
1499,
6,
96,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
3891,
940,
549,
17444,
427,
96,
12977,
1343,
121,
3274,
3,
31,
7,
670,
107,
24040,
29,
14421,
7,
31,
1,
-100,
-100,
-100,
-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 job_id and manager_id , sort Y from low to high order please. | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
... |
What's the maximum game in the javale mcgee (5) high rebounds? | CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR) | SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
2658,
22048,
834,
357,
41,
7261,
3,
21342,
17966,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2411,
467,
16,
8,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
357,
4013,
2658,
22048,
834,
357,
549,
17444,
427,
306,
834,
23768,
3274,
96,
683,
9,
18392,
15,
13528,
15,
15,
3,
15757,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the difference of the team with 12 points? | CREATE TABLE table_name_57 (difference VARCHAR, points VARCHAR) | SELECT difference FROM table_name_57 WHERE points = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
26,
99,
11788,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1750,
13,
8,
372,
28,
586,
979,
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,
1750,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
979,
3274,
586,
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,... |
What was the decision on November 26? | CREATE TABLE table_name_18 (
decision VARCHAR,
date VARCHAR
) | SELECT decision FROM table_name_18 WHERE date = "november 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1357,
30,
1671,
2208,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1357,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What subdivision names (RU) have a code of by-hr? | CREATE TABLE table_290017_1 (
subdivision_name___ru____bgn_pcgn_ VARCHAR,
code VARCHAR
) | SELECT subdivision_name___ru____bgn_pcgn_ FROM table_290017_1 WHERE code = "BY-HR" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
7015,
2517,
834,
536,
41,
27444,
834,
4350,
834,
834,
834,
52,
76,
834,
834,
834,
834,
115,
122,
29,
834,
102,
75,
122,
29,
834,
584,
4280,
28027,
6,
1081,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
27444,
834,
4350,
834,
834,
834,
52,
76,
834,
834,
834,
834,
115,
122,
29,
834,
102,
75,
122,
29,
834,
21680,
953,
834,
357,
7015,
2517,
834,
536,
549,
17444,
427,
1081,
3274,
96,
279,
476,
18,
11120,
121,
1,
-1... |
What genre is the song recorded in 1929? | CREATE TABLE table_59657 (
"Year recorded" text,
"Title" text,
"Genre" text,
"Label" text,
"Year inducted" text
) | SELECT "Genre" FROM table_59657 WHERE "Year recorded" = '1929' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
948,
3436,
41,
96,
476,
2741,
4381,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
476,
2741,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13714,
60,
121,
21680,
953,
834,
3390,
948,
3436,
549,
17444,
427,
96,
476,
2741,
4381,
121,
3274,
3,
31,
2294,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On what date did Jesse Levine play on a hard surface? | CREATE TABLE table_name_78 (
date VARCHAR,
surface VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_78 WHERE surface = "hard" AND opponent = "jesse levine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
446,
6119,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
15264,
3274,
96,
354,
6119,
90,
8402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average Number, when Position is Forward? | CREATE TABLE table_name_13 (
number INTEGER,
position VARCHAR
) | SELECT AVG(number) FROM table_name_13 WHERE position = "forward" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
381,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
7720,
6,
116,
14258,
19,
25633,
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,
71,
17217,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1102,
3274,
96,
26338,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What average deaths have 15,0 as the IMR, with a CDR greater than 4,0? | CREATE TABLE table_59308 (
"Periodo" text,
"Births" real,
"Deaths" real,
"Difference" real,
"CBR*" real,
"CDR*" real,
"IMR*" real,
"TFR*" real
) | SELECT AVG("Deaths") FROM table_59308 WHERE "IMR*" = '15,0' AND "CDR*" > '4,0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
1458,
927,
41,
96,
12988,
23,
32,
26,
32,
121,
1499,
6,
96,
279,
23,
52,
189,
7,
121,
490,
6,
96,
2962,
9,
189,
7,
121,
490,
6,
96,
308,
99,
11788,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
2962,
9,
189,
7,
8512,
21680,
953,
834,
3390,
1458,
927,
549,
17444,
427,
96,
196,
9320,
1935,
121,
3274,
3,
31,
1808,
6,
632,
31,
3430,
96,
254,
3913,
1935,
121,
2490,
3,
31,
8525,
632,
31,... |
How many artists are male and how many are female? | CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating num... | SELECT COUNT(*), gender FROM artist GROUP BY gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
3,
122,
834,
4350,
1499,
6,
5773,
1499,
6,
167,
834,
27302,
834,
77,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
7285,
21680,
2377,
350,
4630,
6880,
272,
476,
7285,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose discharge location is disch-tran to psych hosp and admission year is less than 2148? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.admityear < "2148" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
8360,
18,
11359,
567,
3001,
5610,
476,
8360,
3,
6299,
... |
When did the series number 23 air? | CREATE TABLE table_11630008_3 (original_air_date VARCHAR, series_no VARCHAR) | SELECT original_air_date FROM table_11630008_3 WHERE series_no = 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
5426,
4018,
834,
519,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
939,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
20159,
5426,
4018,
834,
519,
549,
17444,
427,
939,
834,
29,
32,
3274,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the label for catalogue of RT-346-5? | CREATE TABLE table_name_93 (label VARCHAR, catalogue VARCHAR) | SELECT label FROM table_name_93 WHERE catalogue = "rt-346-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
40,
10333,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3783,
21,
14978,
13,
3,
5934,
3486,
4448,
4525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
14978,
3274,
96,
52,
17,
3486,
4448,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
list at least one show that she was on in 2012 . | CREATE TABLE table_203_543 (
id number,
"year" text,
"show" text,
"role" text,
"channel" text,
"extra" text
) | SELECT "show" FROM table_203_543 WHERE "year" = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5062,
519,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
10049,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
19778,
121,
1499,
6,
96,
25666,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10049,
121,
21680,
953,
834,
23330,
834,
5062,
519,
549,
17444,
427,
96,
1201,
121,
3274,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Goals win an Average larger than 1? | CREATE TABLE table_name_94 (goals VARCHAR, average INTEGER) | SELECT COUNT(goals) FROM table_name_94 WHERE average > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
839,
5405,
584,
4280,
28027,
6,
1348,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
17916,
7,
1369,
46,
23836,
2186,
145,
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,
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,
4240,
549,
17444,
427,
1348,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opponent for week of 2 | CREATE TABLE table_name_6 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_6 WHERE week = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
21,
471,
13,
204,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
471,
3274,
204,
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,... |
At what time is the site usf softball field tampa, fl and w4-0 is the result? | CREATE TABLE table_24783 (
"Date" text,
"Time" text,
"Opponent" text,
"Rank#" text,
"Site" text,
"Result" text,
"Attendance" text,
"Winning Pitcher" text,
"Losing Pitcher" text
) | SELECT "Time" FROM table_24783 WHERE "Site" = 'USF Softball Field • Tampa, FL' AND "Result" = 'W4-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3940,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
22557,
4663,
121,
1499,
6,
96,
26030,
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,
13368,
121,
21680,
953,
834,
2266,
3940,
519,
549,
17444,
427,
96,
26030,
121,
3274,
3,
31,
3063,
371,
11759,
3184,
7257,
1697,
18855,
6,
7212,
31,
3430,
96,
20119,
121,
3274,
3,
31,
518,
26814,
31,
1,
-100,
-... |
What is the week with a record of 2-1? | CREATE TABLE table_name_56 (week VARCHAR, record VARCHAR) | SELECT COUNT(week) FROM table_name_56 WHERE record = "2-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
8041,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
28,
3,
9,
1368,
13,
3,
17234,
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,
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,
8041,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1368,
3274,
96,
17234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the first superhero movie to gross over 300,000,000 ? | CREATE TABLE table_203_79 (
id number,
"year" number,
"film" text,
"publisher" text,
"director" text,
"distributor" text,
"worldwide gross" text,
"notes" text
) | SELECT "film" FROM table_203_79 WHERE "worldwide gross" > 300000000 ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4440,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
29337,
49,
121,
1499,
6,
96,
25982,
121,
1499,
6,
96,
26,
159,
5135,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9988,
121,
21680,
953,
834,
23330,
834,
4440,
549,
17444,
427,
96,
7276,
6728,
8690,
121,
2490,
3147,
2313,
2313,
4674,
11300,
272,
476,
96,
1201,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Position has a Name of john taft? | CREATE TABLE table_name_17 (position VARCHAR, name VARCHAR) | SELECT position FROM table_name_17 WHERE name = "john taft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4718,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
5570,
13,
3,
27341,
3,
17,
9,
89,
17,
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,
1102,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
564,
3274,
96,
27341,
3,
17,
9,
89,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many rounds did germ n s nchez drive in where the chassis was dallara f308? | CREATE TABLE table_name_34 (
rounds VARCHAR,
chassis VARCHAR,
driver VARCHAR
) | SELECT rounds FROM table_name_34 WHERE chassis = "dallara f308" AND driver = "germán sánchez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
14419,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
410,
19652,
3,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
14419,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
22836,
3274,
96,
26,
1748,
2551,
3,
89,
1458,
927,
121,
3430,
2535,
3274,
96,
1304,
51,
12916,
3,
7,
12916,
20095,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Post Town has a Dialcode of 020 and is located in Hook? | CREATE TABLE table_name_54 (post_town VARCHAR, dialcode VARCHAR, location VARCHAR) | SELECT post_town FROM table_name_54 WHERE dialcode = "020" AND location = "hook" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5950,
834,
3540,
584,
4280,
28027,
6,
10362,
4978,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1844,
4463,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
442,
834,
3540,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
10362,
4978,
3274,
96,
632,
1755,
121,
3430,
1128,
3274,
96,
20978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the points with 7 races? | CREATE TABLE table_name_34 (points VARCHAR, races VARCHAR) | SELECT points FROM table_name_34 WHERE races = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2700,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
979,
28,
489,
10879,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
10879,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Dec. (J2000) has a Redshift (km/ s) of 1331 3? | CREATE TABLE table_61575 (
"Name" text,
"Type" text,
"R.A. ( J2000 )" text,
"Dec. ( J2000 )" text,
"Redshift (km/ s )" text,
"Apparent Magnitude" real
) | SELECT "Dec. ( J2000 )" FROM table_61575 WHERE "Redshift (km/ s )" = '1331 ± 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1808,
3072,
41,
96,
23954,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
448,
5,
188,
5,
41,
446,
13527,
3,
61,
121,
1499,
6,
96,
2962,
75,
5,
41,
446,
13527,
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,
2962,
75,
5,
41,
446,
13527,
3,
61,
121,
21680,
953,
834,
948,
1808,
3072,
549,
17444,
427,
96,
1649,
26,
22872,
41,
5848,
87,
3,
7,
3,
61,
121,
3274,
3,
31,
2368,
3341,
3,
2,
220,
31,
1,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.