instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who was eliminated a person at 18:48? | SELECT "Eliminated by" FROM table_31292 WHERE "Time" = '18:48' | [
8241,
373,
15254,
257,
1048,
379,
1248,
25,
2780,
30,
46506,
366,
36,
2475,
3898,
416,
1,
16034,
3084,
62,
27970,
5892,
33411,
366,
7575,
1,
796,
705,
1507,
25,
2780,
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
] | [
8241,
373,
15254,
257,
1048,
379,
1248,
25,
2780,
30,
46506,
366,
36,
2475,
3898,
416,
1,
16034,
3084,
62,
27970,
5892,
33411,
366,
7575,
1,
796,
705,
1507,
25,
2780,
6
] |
show me the flights from ATLANTA to BOSTON | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON... | [
12860,
502,
262,
13956,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
13956,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490... |
What are all the episodes with an episode run time of 24:01? | SELECT "Episode" FROM table_19220 WHERE "Run time" = '24:01' | [
2061,
389,
477,
262,
8640,
351,
281,
4471,
1057,
640,
286,
1987,
25,
486,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
17477,
1238,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
486,
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
] | [
2061,
389,
477,
262,
8640,
351,
281,
4471,
1057,
640,
286,
1987,
25,
486,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
17477,
1238,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
486,
6
] |
what is the venue when the runner-up (average in final) is wayne jones (94.64)? | SELECT venue FROM table_name_6 WHERE runner_up__average_in_final_ = "wayne jones (94.64)" | [
10919,
318,
262,
14359,
618,
262,
17490,
12,
929,
357,
23913,
287,
2457,
8,
318,
835,
710,
474,
1952,
357,
5824,
13,
2414,
19427,
46506,
14359,
16034,
3084,
62,
3672,
62,
21,
33411,
17490,
62,
929,
834,
23913,
62,
259,
62,
20311,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
14359,
618,
262,
17490,
12,
929,
357,
23913,
287,
2457,
8,
318,
835,
710,
474,
1952,
357,
5824,
13,
2414,
19427,
46506,
14359,
16034,
3084,
62,
3672,
62,
21,
33411,
17490,
62,
929,
834,
23913,
62,
259,
62,
20311,
62... |
tell me the name of the drug which patient 003-7849 was prescribed in the same hospital encounter after having had a thrombolytic agent - alteplase procedure until 24 months ago? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | [
33331,
502,
262,
1438,
286,
262,
2563,
543,
5827,
3571,
18,
12,
3695,
2920,
373,
14798,
287,
262,
976,
4436,
8791,
706,
1719,
550,
257,
294,
398,
2127,
306,
13370,
5797,
532,
435,
660,
489,
589,
8771,
1566,
1987,
1933,
2084,
30,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1438,
286,
262,
2563,
543,
5827,
3571,
18,
12,
3695,
2920,
373,
14798,
287,
262,
976,
4436,
8791,
706,
1719,
550,
257,
294,
398,
2127,
306,
13370,
5797,
532,
435,
660,
489,
589,
8771,
1566,
1987,
1933,
2084,
30,
465... |
Who had the highest assists during the game on February 22? | SELECT high_assists FROM table_name_28 WHERE date = "february 22" | [
8241,
550,
262,
4511,
13648,
1141,
262,
983,
319,
3945,
2534,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
2078,
33411,
3128,
796,
366,
69,
1765,
3728,
2534,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
4511,
13648,
1141,
262,
983,
319,
3945,
2534,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
2078,
33411,
3128,
796,
366,
69,
1765,
3728,
2534,
1
] |
What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification? | SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe" | [
2061,
3800,
357,
39791,
8,
468,
41899,
289,
1530,
709,
67,
355,
257,
2276,
17923,
11,
290,
256,
1156,
1877,
68,
355,
257,
17876,
17923,
30,
46506,
3800,
834,
39791,
62,
16034,
3084,
62,
3672,
62,
18,
33411,
2276,
62,
4871,
2649,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
3800,
357,
39791,
8,
468,
41899,
289,
1530,
709,
67,
355,
257,
2276,
17923,
11,
290,
256,
1156,
1877,
68,
355,
257,
17876,
17923,
30,
46506,
3800,
834,
39791,
62,
16034,
3084,
62,
3672,
62,
18,
33411,
2276,
62,
4871,
2649,
796... |
how long did it take fernando alonso to finish the race ? | SELECT "time/retired" FROM table_204_740 WHERE "driver" = 'fernando alonso' | [
4919,
890,
750,
340,
1011,
277,
13023,
78,
435,
26666,
284,
5461,
262,
3234,
5633,
46506,
366,
2435,
14,
1186,
1202,
1,
16034,
3084,
62,
18638,
62,
45598,
33411,
366,
26230,
1,
796,
705,
69,
13023,
78,
435,
26666,
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
] | [
4919,
890,
750,
340,
1011,
277,
13023,
78,
435,
26666,
284,
5461,
262,
3234,
5633,
46506,
366,
2435,
14,
1186,
1202,
1,
16034,
3084,
62,
18638,
62,
45598,
33411,
366,
26230,
1,
796,
705,
69,
13023,
78,
435,
26666,
6
] |
All Post History of a post. | SELECT * FROM PostHistory WHERE PostId = '##postid##' ORDER BY CreationDate DESC | [
3237,
2947,
7443,
286,
257,
1281,
13,
46506,
1635,
16034,
2947,
18122,
33411,
2947,
7390,
796,
705,
2235,
7353,
312,
2235,
6,
38678,
11050,
21582,
10430,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3237,
2947,
7443,
286,
257,
1281,
13,
46506,
1635,
16034,
2947,
18122,
33411,
2947,
7390,
796,
705,
2235,
7353,
312,
2235,
6,
38678,
11050,
21582,
10430,
22196,
34
] |
When interjection is the subject how many performers are there? | SELECT COUNT("Performed by") FROM table_73081 WHERE "Subject" = 'interjection' | [
2215,
987,
29192,
318,
262,
2426,
703,
867,
23827,
389,
612,
30,
46506,
327,
28270,
7203,
5990,
12214,
416,
4943,
16034,
3084,
62,
43916,
6659,
33411,
366,
19776,
1,
796,
705,
3849,
29192,
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
] | [
2215,
987,
29192,
318,
262,
2426,
703,
867,
23827,
389,
612,
30,
46506,
327,
28270,
7203,
5990,
12214,
416,
4943,
16034,
3084,
62,
43916,
6659,
33411,
366,
19776,
1,
796,
705,
3849,
29192,
6
] |
What is the time for PDT when CDT is 6:38 a.m.? | SELECT pdt___7_utc_ FROM table_name_69 WHERE cdt___5_utc_ = "6:38 a.m." | [
2061,
318,
262,
640,
329,
28288,
618,
6458,
51,
318,
718,
25,
2548,
257,
13,
76,
40791,
46506,
279,
28664,
17569,
22,
62,
315,
66,
62,
16034,
3084,
62,
3672,
62,
3388,
33411,
22927,
83,
17569,
20,
62,
315,
66,
62,
796,
366,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
640,
329,
28288,
618,
6458,
51,
318,
718,
25,
2548,
257,
13,
76,
40791,
46506,
279,
28664,
17569,
22,
62,
315,
66,
62,
16034,
3084,
62,
3672,
62,
3388,
33411,
22927,
83,
17569,
20,
62,
315,
66,
62,
796,
366,
21,
... |
On what date or dates did the term with the Centre Party end? | SELECT "Term end" FROM table_68358 WHERE "Party" = 'centre party' | [
2202,
644,
3128,
393,
9667,
750,
262,
3381,
351,
262,
9072,
3615,
886,
30,
46506,
366,
40596,
886,
1,
16034,
3084,
62,
3104,
31128,
33411,
366,
33553,
1,
796,
705,
1087,
260,
2151,
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
] | [
2202,
644,
3128,
393,
9667,
750,
262,
3381,
351,
262,
9072,
3615,
886,
30,
46506,
366,
40596,
886,
1,
16034,
3084,
62,
3104,
31128,
33411,
366,
33553,
1,
796,
705,
1087,
260,
2151,
6
] |
What is the lowest wins the club with a position of 4 and less than 4 losses has? | SELECT MIN(wins) FROM table_name_67 WHERE position = 4 AND loses < 4 | [
2061,
318,
262,
9016,
7864,
262,
3430,
351,
257,
2292,
286,
604,
290,
1342,
621,
604,
9089,
468,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
2292,
796,
604,
5357,
14754,
1279,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
7864,
262,
3430,
351,
257,
2292,
286,
604,
290,
1342,
621,
604,
9089,
468,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
2292,
796,
604,
5357,
14754,
1279,
604
] |
What is the km2 area for the population of 311? | SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311 | [
2061,
318,
262,
10571,
17,
1989,
329,
262,
3265,
286,
35592,
30,
46506,
35224,
7,
20337,
834,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
3265,
796,
35592
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10571,
17,
1989,
329,
262,
3265,
286,
35592,
30,
46506,
35224,
7,
20337,
834,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
3265,
796,
35592
] |
A scatter chart shows the correlation between People_ID and Total . | SELECT People_ID, Total FROM body_builder | [
32,
41058,
8262,
2523,
262,
16096,
1022,
4380,
62,
2389,
290,
7472,
764,
46506,
4380,
62,
2389,
11,
7472,
16034,
1767,
62,
38272
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
41058,
8262,
2523,
262,
16096,
1022,
4380,
62,
2389,
290,
7472,
764,
46506,
4380,
62,
2389,
11,
7472,
16034,
1767,
62,
38272
] |
What percentage of browsers were using Internet Explorer in April 2009? | SELECT internet_explorer FROM table_name_81 WHERE date = "april 2009" | [
2061,
5873,
286,
22616,
547,
1262,
4455,
19142,
287,
3035,
3717,
30,
46506,
5230,
62,
20676,
11934,
16034,
3084,
62,
3672,
62,
6659,
33411,
3128,
796,
366,
499,
22379,
3717,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5873,
286,
22616,
547,
1262,
4455,
19142,
287,
3035,
3717,
30,
46506,
5230,
62,
20676,
11934,
16034,
3084,
62,
3672,
62,
6659,
33411,
3128,
796,
366,
499,
22379,
3717,
1
] |
what venue does tim southee bowl at? | SELECT "Venue" FROM table_67402 WHERE "Player" = 'tim southee' | [
10919,
14359,
857,
4628,
264,
448,
21067,
9396,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3134,
32531,
33411,
366,
14140,
1,
796,
705,
16514,
264,
448,
21067,
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
] | [
10919,
14359,
857,
4628,
264,
448,
21067,
9396,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3134,
32531,
33411,
366,
14140,
1,
796,
705,
16514,
264,
448,
21067,
6
] |
give me the number of patients whose diagnoses icd9 code is 45620? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "45620" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
604,
3980,
1238,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
604,
3980,
1238,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18... |
On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match? | SELECT "Outcome" FROM table_67545 WHERE "Partner" = 'dora djilianova' AND "Date" = 'october 1, 1995' | [
2202,
3267,
352,
11,
8735,
351,
360,
5799,
19307,
35824,
10071,
355,
257,
5212,
11,
644,
373,
262,
8055,
286,
262,
2872,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
42444,
2231,
33411,
366,
7841,
1008,
1,
796,
705,
67,
5799,
426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
3267,
352,
11,
8735,
351,
360,
5799,
19307,
35824,
10071,
355,
257,
5212,
11,
644,
373,
262,
8055,
286,
262,
2872,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
42444,
2231,
33411,
366,
7841,
1008,
1,
796,
705,
67,
5799,
426... |
Which combined score has an overall of 8? | SELECT combined FROM table_name_80 WHERE overall = "8" | [
13828,
5929,
4776,
468,
281,
4045,
286,
807,
30,
46506,
5929,
16034,
3084,
62,
3672,
62,
1795,
33411,
4045,
796,
366,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5929,
4776,
468,
281,
4045,
286,
807,
30,
46506,
5929,
16034,
3084,
62,
3672,
62,
1795,
33411,
4045,
796,
366,
23,
1
] |
how many patients of asian ethnicity are below 50 years of age? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "9600" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
286,
355,
666,
26289,
389,
2174,
2026,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
286,
355,
666,
26289,
389,
2174,
2026,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
... |
When was the earliest year that kakha kaladze moved to milan with a rank above 9? | SELECT MIN("Year") FROM table_14327 WHERE "Moving to" = 'milan' AND "Name" = 'kakha kaladze' AND "Rank" < '9' | [
2215,
373,
262,
14555,
614,
326,
479,
461,
3099,
479,
282,
324,
2736,
3888,
284,
1465,
272,
351,
257,
4279,
2029,
860,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
21139,
1983,
33411,
366,
33622,
284,
1,
796,
705,
25433,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
373,
262,
14555,
614,
326,
479,
461,
3099,
479,
282,
324,
2736,
3888,
284,
1465,
272,
351,
257,
4279,
2029,
860,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
21139,
1983,
33411,
366,
33622,
284,
1,
796,
705,
25433,
272,... |
Who is the player for the School/Club team in Georgia? | SELECT "Player" FROM table_41755 WHERE "School/Club Team" = 'georgia' | [
8241,
318,
262,
2137,
329,
262,
3961,
14,
42350,
1074,
287,
7859,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
38547,
2816,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
469,
2398,
544,
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
] | [
8241,
318,
262,
2137,
329,
262,
3961,
14,
42350,
1074,
287,
7859,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
38547,
2816,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
469,
2398,
544,
6
] |
What year won has a total less than 281? | SELECT year_s__won FROM table_name_71 WHERE total < 281 | [
2061,
614,
1839,
468,
257,
2472,
1342,
621,
39882,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
4869,
33411,
2472,
1279,
39882
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
1839,
468,
257,
2472,
1342,
621,
39882,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
4869,
33411,
2472,
1279,
39882
] |
What is team 1 when team 2 is Manchester United? | SELECT "Team 1" FROM table_61797 WHERE "Team 2" = 'manchester united' | [
2061,
318,
1074,
352,
618,
1074,
362,
318,
9502,
1578,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
47941,
5607,
33411,
366,
15592,
362,
1,
796,
705,
805,
35983,
16503,
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
] | [
2061,
318,
1074,
352,
618,
1074,
362,
318,
9502,
1578,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
47941,
5607,
33411,
366,
15592,
362,
1,
796,
705,
805,
35983,
16503,
6
] |
Can undergrads take the 533 course ? | SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 533 | [
6090,
739,
2164,
5643,
1011,
262,
642,
2091,
1781,
5633,
46506,
360,
8808,
1268,
4177,
20852,
62,
8897,
24615,
11,
20326,
62,
8897,
24615,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
642,
2091
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
739,
2164,
5643,
1011,
262,
642,
2091,
1781,
5633,
46506,
360,
8808,
1268,
4177,
20852,
62,
8897,
24615,
11,
20326,
62,
8897,
24615,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
642,
2091
] |
how many of the patients with sepsis as primary disease had icd9 code 9960? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "SEPSIS" AND procedures.icd9_code = "9960" | [
4919,
867,
286,
262,
3871,
351,
384,
862,
271,
355,
4165,
4369,
550,
14158,
67,
24,
2438,
7388,
1899,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
286,
262,
3871,
351,
384,
862,
271,
355,
4165,
4369,
550,
14158,
67,
24,
2438,
7388,
1899,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... |
Tell me the call sign for frequency of 0 97.3 fm | SELECT "Call sign" FROM table_32088 WHERE "Frequency" = '0 97.3 fm' | [
24446,
502,
262,
869,
1051,
329,
8373,
286,
657,
10111,
13,
18,
277,
76,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
19504,
3459,
33411,
366,
37,
28707,
1,
796,
705,
15,
10111,
13,
18,
277,
76,
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
] | [
24446,
502,
262,
869,
1051,
329,
8373,
286,
657,
10111,
13,
18,
277,
76,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
19504,
3459,
33411,
366,
37,
28707,
1,
796,
705,
15,
10111,
13,
18,
277,
76,
6
] |
what is the crude birth rate (per 1000) when the crude death rate (per 1000) is less than 6.2, the average population (x1000) is larger than 2,770 and the natural change (per 1000) is 17.2? | SELECT SUM("Crude birth rate (per 1000)") FROM table_11432 WHERE "Crude death rate (per 1000)" < '6.2' AND "Average population (x 1000)" > '2,770' AND "Natural change (per 1000)" = '17.2' | [
10919,
318,
262,
14897,
4082,
2494,
357,
525,
8576,
8,
618,
262,
14897,
1918,
2494,
357,
525,
8576,
8,
318,
1342,
621,
718,
13,
17,
11,
262,
2811,
3265,
357,
87,
12825,
8,
318,
4025,
621,
362,
11,
41820,
290,
262,
3288,
1487,
357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
14897,
4082,
2494,
357,
525,
8576,
8,
618,
262,
14897,
1918,
2494,
357,
525,
8576,
8,
318,
1342,
621,
718,
13,
17,
11,
262,
2811,
3265,
357,
87,
12825,
8,
318,
4025,
621,
362,
11,
41820,
290,
262,
3288,
1487,
357,... |
What is the rank of manager Rob Mcdonald? | SELECT COUNT("Rank") FROM table_72294 WHERE "Manager" = 'Rob McDonald' | [
2061,
318,
262,
4279,
286,
4706,
3851,
1982,
40915,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
22,
1828,
5824,
33411,
366,
13511,
1,
796,
705,
14350,
14115,
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
] | [
2061,
318,
262,
4279,
286,
4706,
3851,
1982,
40915,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
22,
1828,
5824,
33411,
366,
13511,
1,
796,
705,
14350,
14115,
6
] |
what is the maximum number of hull nunbers where ship name is kri yos sudarso? | SELECT MAX("Hull Numbers") FROM table_17556 WHERE "Ship Name" = 'KRI Yos Sudarso' | [
10919,
318,
262,
5415,
1271,
286,
23644,
48157,
1213,
810,
4074,
1438,
318,
479,
380,
331,
418,
424,
27455,
568,
30,
46506,
25882,
7203,
39,
724,
27797,
4943,
16034,
3084,
62,
1558,
37864,
33411,
366,
25586,
6530,
1,
796,
705,
42,
711... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5415,
1271,
286,
23644,
48157,
1213,
810,
4074,
1438,
318,
479,
380,
331,
418,
424,
27455,
568,
30,
46506,
25882,
7203,
39,
724,
27797,
4943,
16034,
3084,
62,
1558,
37864,
33411,
366,
25586,
6530,
1,
796,
705,
42,
711... |
What is the date for the player who debuted later than 1972 against Limerick? | SELECT date FROM table_name_32 WHERE début > 1972 AND opposition = "limerick" | [
2061,
318,
262,
3128,
329,
262,
2137,
508,
26376,
1568,
621,
16101,
1028,
7576,
41556,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2624,
33411,
39073,
4360,
1875,
16101,
5357,
5471,
796,
366,
2475,
41556,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
329,
262,
2137,
508,
26376,
1568,
621,
16101,
1028,
7576,
41556,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2624,
33411,
39073,
4360,
1875,
16101,
5357,
5471,
796,
366,
2475,
41556,
1
] |
Where was the game held that was played on 2002-03-07? | SELECT venue FROM table_name_36 WHERE date = "2002-03-07" | [
8496,
373,
262,
983,
2714,
326,
373,
2826,
319,
6244,
12,
3070,
12,
2998,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
16942,
12,
3070,
12,
2998,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
983,
2714,
326,
373,
2826,
319,
6244,
12,
3070,
12,
2998,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
16942,
12,
3070,
12,
2998,
1
] |
Show me the number of born state by born state in a histogram, order by the born_state from low to high. | SELECT born_state, COUNT(born_state) FROM head GROUP BY born_state ORDER BY born_state | [
15307,
502,
262,
1271,
286,
4642,
1181,
416,
4642,
1181,
287,
257,
1554,
21857,
11,
1502,
416,
262,
4642,
62,
5219,
422,
1877,
284,
1029,
13,
46506,
4642,
62,
5219,
11,
327,
28270,
7,
6286,
62,
5219,
8,
16034,
1182,
44441,
11050,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
262,
1271,
286,
4642,
1181,
416,
4642,
1181,
287,
257,
1554,
21857,
11,
1502,
416,
262,
4642,
62,
5219,
422,
1877,
284,
1029,
13,
46506,
4642,
62,
5219,
11,
327,
28270,
7,
6286,
62,
5219,
8,
16034,
1182,
44441,
11050,
46... |
compared to last measured on the first hospital visit patient 015-57922's hct is less than the value first measured on the first hospital visit? | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-57922' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | [
5589,
1144,
284,
938,
8630,
319,
262,
717,
4436,
3187,
5827,
5534,
20,
12,
41734,
1828,
338,
289,
310,
318,
1342,
621,
262,
1988,
717,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5589,
1144,
284,
938,
8630,
319,
262,
717,
4436,
3187,
5827,
5534,
20,
12,
41734,
1828,
338,
289,
310,
318,
1342,
621,
262,
1988,
717,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,... |
A line chart for what are the number of the dates in which the mean sea level pressure was between 303 and 31?, and I want to display date from low to high order. | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date | [
32,
1627,
8262,
329,
644,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
290,
314,
765,
284,
3359,
3128,
422,
1877,
284,
1029,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
1627,
8262,
329,
644,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
290,
314,
765,
284,
3359,
3128,
422,
1877,
284,
1029,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
447... |
show me the flights arriving around noon in BALTIMORE from DENVER | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.arrival_time <= 1230 AND flight.arrival_time >= 1130) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.t... | [
12860,
502,
262,
13956,
14820,
1088,
19613,
287,
347,
31429,
3955,
6965,
422,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
13956,
14820,
1088,
19613,
287,
347,
31429,
3955,
6965,
422,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
... |
When emt 9 is the series what is the date? | SELECT "Date" FROM table_27805 WHERE "Series" = 'EMT 9' | [
2215,
795,
83,
860,
318,
262,
2168,
644,
318,
262,
3128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1983,
28256,
33411,
366,
27996,
1,
796,
705,
3620,
51,
860,
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
] | [
2215,
795,
83,
860,
318,
262,
2168,
644,
318,
262,
3128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1983,
28256,
33411,
366,
27996,
1,
796,
705,
3620,
51,
860,
6
] |
how many patients were diagnosed with breast ca - female in the same hospital visit during the last year following the first diagnosis of pleural effusion? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'breast ca - female' AND DATETIME(diagnosis.diagnosistime, 'start of year'... | [
4919,
867,
3871,
547,
14641,
351,
9296,
1275,
532,
4048,
287,
262,
976,
4436,
3187,
1141,
262,
938,
614,
1708,
262,
717,
13669,
286,
3339,
1523,
914,
4241,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
547,
14641,
351,
9296,
1275,
532,
4048,
287,
262,
976,
4436,
3187,
1141,
262,
938,
614,
1708,
262,
717,
13669,
286,
3339,
1523,
914,
4241,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,... |
What was the loss of the game attended by 29,704? | SELECT loss FROM table_name_21 WHERE attendance = "29,704" | [
2061,
373,
262,
2994,
286,
262,
983,
9141,
416,
2808,
11,
32869,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
2481,
33411,
14858,
796,
366,
1959,
11,
32869,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2994,
286,
262,
983,
9141,
416,
2808,
11,
32869,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
2481,
33411,
14858,
796,
366,
1959,
11,
32869,
1
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, and could you show by the Y-axis in ascending? | SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Manufacturer) | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
714,
345,
905,
416,
262,
575,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
714,
345,
905,
416,
262,
575,
1... |
What is the fewest area in Derrynanool townland? | SELECT MIN(area__acres__) FROM table_30120556_1 WHERE townland = "Derrynanool" | [
2061,
318,
262,
1178,
395,
1989,
287,
360,
6996,
12647,
970,
3240,
1044,
30,
46506,
20625,
7,
20337,
834,
330,
411,
834,
8,
16034,
3084,
62,
18938,
1238,
37864,
62,
16,
33411,
3240,
1044,
796,
366,
35,
6996,
12647,
970,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
1989,
287,
360,
6996,
12647,
970,
3240,
1044,
30,
46506,
20625,
7,
20337,
834,
330,
411,
834,
8,
16034,
3084,
62,
18938,
1238,
37864,
62,
16,
33411,
3240,
1044,
796,
366,
35,
6996,
12647,
970,
1
] |
For nhl team is san jose sharks mention all the college/junior/club team | SELECT college_junior_club_team FROM table_2781227_4 WHERE nhl_team = "San Jose Sharks" | [
1890,
299,
18519,
1074,
318,
5336,
474,
577,
27476,
3068,
477,
262,
4152,
14,
29741,
1504,
14,
18664,
1074,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
25870,
1065,
1983,
62,
19,
33411,
299,
18519,
62,
15097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
299,
18519,
1074,
318,
5336,
474,
577,
27476,
3068,
477,
262,
4152,
14,
29741,
1504,
14,
18664,
1074,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
25870,
1065,
1983,
62,
19,
33411,
299,
18519,
62,
15097,
... |
calculate the duration of patient 41014's first hospital stay. | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 41014 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | [
9948,
3129,
378,
262,
9478,
286,
5827,
6073,
28645,
338,
717,
4436,
2652,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
6381,
354,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
324,
20124,
524,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
9478,
286,
5827,
6073,
28645,
338,
717,
4436,
2652,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
6381,
354,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
13,
324,
20124,
524,
8,
... |
who was in last place ? | SELECT "name" FROM table_204_29 ORDER BY "rank" DESC LIMIT 1 | [
8727,
373,
287,
938,
1295,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1959,
38678,
11050,
366,
43027,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
287,
938,
1295,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1959,
38678,
11050,
366,
43027,
1,
22196,
34,
27564,
2043,
352
] |
What engine does Garvey Team Lotus use? | SELECT "Engine" FROM table_14517 WHERE "Entrant" = 'garvey team lotus' | [
2061,
3113,
857,
7164,
3304,
4816,
27578,
779,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
18781,
1558,
33411,
366,
14539,
5250,
1,
796,
705,
4563,
3304,
1074,
1256,
385,
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
] | [
2061,
3113,
857,
7164,
3304,
4816,
27578,
779,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
18781,
1558,
33411,
366,
14539,
5250,
1,
796,
705,
4563,
3304,
1074,
1256,
385,
6
] |
What position was played ealier then 2004? | SELECT "Position" FROM table_4906 WHERE "From" < '2004' | [
2061,
2292,
373,
2826,
304,
282,
959,
788,
5472,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
2920,
3312,
33411,
366,
4863,
1,
1279,
705,
15724,
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
] | [
2061,
2292,
373,
2826,
304,
282,
959,
788,
5472,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
2920,
3312,
33411,
366,
4863,
1,
1279,
705,
15724,
6
] |
when was the next time spain was a finalist after 1979 ? | SELECT "year" FROM table_204_136 WHERE "final" = 'spain' AND "year" > 1979 ORDER BY "year" LIMIT 1 | [
12518,
373,
262,
1306,
640,
599,
391,
373,
257,
2457,
396,
706,
13521,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
20809,
33411,
366,
20311,
1,
796,
705,
2777,
391,
6,
5357,
366,
1941,
1,
1875,
13521,
38678,
11050,
366,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
373,
262,
1306,
640,
599,
391,
373,
257,
2457,
396,
706,
13521,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
20809,
33411,
366,
20311,
1,
796,
705,
2777,
391,
6,
5357,
366,
1941,
1,
1875,
13521,
38678,
11050,
366,
1... |
What is the Round when there is an overall of 246? | SELECT "Round" FROM table_39999 WHERE "Overall" = '246' | [
2061,
318,
262,
10485,
618,
612,
318,
281,
4045,
286,
34951,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
18,
24214,
33411,
366,
16350,
1,
796,
705,
26912,
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
] | [
2061,
318,
262,
10485,
618,
612,
318,
281,
4045,
286,
34951,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
18,
24214,
33411,
366,
16350,
1,
796,
705,
26912,
6
] |
list flights from LAS VEGAS to SAN DIEGO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LAS VEGAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN ... | [
4868,
13956,
422,
406,
1921,
569,
7156,
1921,
284,
37376,
14766,
7156,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
13956,
422,
406,
1921,
569,
7156,
1921,
284,
37376,
14766,
7156,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... |
what was the name of the output which patient 10855 had for the first time on this month/25? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855)) AND DATETIME(outputevents.charttim... | [
10919,
373,
262,
1438,
286,
262,
5072,
543,
5827,
15495,
2816,
550,
329,
262,
717,
640,
319,
428,
1227,
14,
1495,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
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... | [
10919,
373,
262,
1438,
286,
262,
5072,
543,
5827,
15495,
2816,
550,
329,
262,
717,
640,
319,
428,
1227,
14,
1495,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
3... |
what is the name of the episode whose number of the series episode was 31? | SELECT title FROM table_228973_3 WHERE no_in_series = 31 | [
10919,
318,
262,
1438,
286,
262,
4471,
3025,
1271,
286,
262,
2168,
4471,
373,
3261,
30,
46506,
3670,
16034,
3084,
62,
1828,
4531,
4790,
62,
18,
33411,
645,
62,
259,
62,
25076,
796,
3261
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1438,
286,
262,
4471,
3025,
1271,
286,
262,
2168,
4471,
373,
3261,
30,
46506,
3670,
16034,
3084,
62,
1828,
4531,
4790,
62,
18,
33411,
645,
62,
259,
62,
25076,
796,
3261
] |
give the number of newborns who were born before the year 2168. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.dob_year < "2168" | [
26535,
262,
1271,
286,
23856,
82,
508,
547,
4642,
878,
262,
614,
362,
14656,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
306... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
262,
1271,
286,
23856,
82,
508,
547,
4642,
878,
262,
614,
362,
14656,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
306... |
WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43? | SELECT AVG("LOA (Metres)") FROM table_36481 WHERE "Corrected time d:hh:mm:ss" = '3:12:07:43' | [
12418,
20739,
17579,
32,
357,
9171,
411,
8,
468,
257,
22941,
276,
640,
288,
25,
12337,
25,
3020,
25,
824,
286,
513,
25,
1065,
25,
2998,
25,
3559,
30,
46506,
35224,
7203,
21982,
32,
357,
9171,
411,
8,
4943,
16034,
3084,
62,
26780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12418,
20739,
17579,
32,
357,
9171,
411,
8,
468,
257,
22941,
276,
640,
288,
25,
12337,
25,
3020,
25,
824,
286,
513,
25,
1065,
25,
2998,
25,
3559,
30,
46506,
35224,
7203,
21982,
32,
357,
9171,
411,
8,
4943,
16034,
3084,
62,
26780,
... |
what is admission location and discharge location of subject name elizabeth bateman? | SELECT demographic.admission_location, demographic.discharge_location FROM demographic WHERE demographic.name = "Elizabeth Bateman" | [
10919,
318,
13938,
4067,
290,
17655,
4067,
286,
2426,
1438,
1288,
9924,
7365,
8463,
30,
46506,
16728,
13,
324,
3411,
62,
24886,
11,
16728,
13,
6381,
10136,
62,
24886,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43568,
6577,
8463,
1
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
13938,
4067,
290,
17655,
4067,
286,
2426,
1438,
1288,
9924,
7365,
8463,
30,
46506,
16728,
13,
324,
3411,
62,
24886,
11,
16728,
13,
6381,
10136,
62,
24886,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43568,
6577,
8463,
1
... |
the last player picked came from what school ? | SELECT "school/club team" FROM table_203_291 ORDER BY "pick" DESC LIMIT 1 | [
1169,
938,
2137,
6497,
1625,
422,
644,
1524,
5633,
46506,
366,
14347,
14,
18664,
1074,
1,
16034,
3084,
62,
22416,
62,
33551,
38678,
11050,
366,
27729,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
938,
2137,
6497,
1625,
422,
644,
1524,
5633,
46506,
366,
14347,
14,
18664,
1074,
1,
16034,
3084,
62,
22416,
62,
33551,
38678,
11050,
366,
27729,
1,
22196,
34,
27564,
2043,
352
] |
Find the total balance across checking accounts. | SELECT SUM(balance) FROM checking | [
16742,
262,
2472,
5236,
1973,
10627,
5504,
13,
46506,
35683,
7,
20427,
8,
16034,
10627
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
2472,
5236,
1973,
10627,
5504,
13,
46506,
35683,
7,
20427,
8,
16034,
10627
] |
how many hours have it been since the last time that patient 17667 stayed in careunit micu during their current hospital visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667 AND admissions.dischtime IS NULL) AND transfers.careunit = 'micu' ORDER BY transfers.intime DESC LIMIT 1 | [
4919,
867,
2250,
423,
340,
587,
1201,
262,
938,
640,
326,
5827,
1596,
28933,
9658,
287,
1337,
20850,
12314,
84,
1141,
511,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
423,
340,
587,
1201,
262,
938,
640,
326,
5827,
1596,
28933,
9658,
287,
1337,
20850,
12314,
84,
1141,
511,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28... |
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA? | SELECT "S\u00e3o Paulo career" FROM table_49015 WHERE "Appearances" < '201' AND "Goals" < '2' AND "Name" = 'ricardo rocha' | [
32971,
37376,
8147,
6239,
46,
47342,
1137,
367,
2885,
9447,
7036,
1137,
2320,
1565,
580,
3486,
11401,
1503,
20940,
1546,
11,
9447,
7036,
1137,
2320,
1565,
362,
10351,
23333,
11,
5357,
7473,
371,
2149,
9795,
46,
15107,
49285,
30,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32971,
37376,
8147,
6239,
46,
47342,
1137,
367,
2885,
9447,
7036,
1137,
2320,
1565,
580,
3486,
11401,
1503,
20940,
1546,
11,
9447,
7036,
1137,
2320,
1565,
362,
10351,
23333,
11,
5357,
7473,
371,
2149,
9795,
46,
15107,
49285,
30,
46506,
... |
Find the average rating star for each movie that are not reviewed by Brittany Harris. Plot them as scatter chart. | SELECT mID, AVG(stars) FROM Rating WHERE NOT mID IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris") GROUP BY mID | [
16742,
262,
2811,
7955,
3491,
329,
1123,
3807,
326,
389,
407,
11765,
416,
48773,
10026,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
285,
2389,
11,
35224,
7,
30783,
8,
16034,
12028,
33411,
5626,
285,
2389,
3268,
357,
46506,
309,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
2811,
7955,
3491,
329,
1123,
3807,
326,
389,
407,
11765,
416,
48773,
10026,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
285,
2389,
11,
35224,
7,
30783,
8,
16034,
12028,
33411,
5626,
285,
2389,
3268,
357,
46506,
309,
16,
1... |
what was patient 012-37411's age during their current hospital visit. | SELECT patient.age FROM patient WHERE patient.uniquepid = '012-37411' AND patient.hospitaldischargetime IS NULL | [
10919,
373,
5827,
5534,
17,
12,
31020,
1157,
338,
2479,
1141,
511,
1459,
4436,
3187,
13,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
30206,
12,
31020,
1157,
6,
5357,
5827,
13,
49257,
6381,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
5827,
5534,
17,
12,
31020,
1157,
338,
2479,
1141,
511,
1459,
4436,
3187,
13,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
30206,
12,
31020,
1157,
6,
5357,
5827,
13,
49257,
6381,
354,
... |
when was first the arterial bp [systolic] of patient 8116 measured during a day before? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
12518,
373,
717,
262,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
286,
5827,
807,
18298,
8630,
1141,
257,
1110,
878,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
717,
262,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
286,
5827,
807,
18298,
8630,
1141,
257,
1110,
878,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... |
provide the number of patients who have procedure icd9 code 4591 and are suffering from abdominal abscess. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ABDOMINAL ABSCESS" AND procedures.icd9_code = "4591" | [
15234,
485,
262,
1271,
286,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
604,
48952,
290,
389,
7195,
422,
32692,
2352,
919,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
604,
48952,
290,
389,
7195,
422,
32692,
2352,
919,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Find the brand and name for each camera lens, and sort in descending order of maximum aperture. | SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC | [
16742,
262,
4508,
290,
1438,
329,
1123,
4676,
10317,
11,
290,
3297,
287,
31491,
1502,
286,
5415,
32729,
13,
46506,
4508,
11,
1438,
16034,
4676,
62,
75,
641,
38678,
11050,
3509,
62,
499,
861,
495,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
4508,
290,
1438,
329,
1123,
4676,
10317,
11,
290,
3297,
287,
31491,
1502,
286,
5415,
32729,
13,
46506,
4508,
11,
1438,
16034,
4676,
62,
75,
641,
38678,
11050,
3509,
62,
499,
861,
495,
22196,
34
] |
Name the Valley Vista of Anthony Capuano | SELECT "Valley Vista" FROM table_183 WHERE "Willow Canyon" = 'Anthony Capuano' | [
5376,
262,
6916,
25160,
286,
9953,
4476,
84,
5733,
46506,
366,
7762,
1636,
25160,
1,
16034,
3084,
62,
24839,
33411,
366,
8743,
322,
22099,
1,
796,
705,
32697,
4476,
84,
5733,
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
] | [
5376,
262,
6916,
25160,
286,
9953,
4476,
84,
5733,
46506,
366,
7762,
1636,
25160,
1,
16034,
3084,
62,
24839,
33411,
366,
8743,
322,
22099,
1,
796,
705,
32697,
4476,
84,
5733,
6
] |
which united airlines flight flies from BOSTON to SAN FRANCISCO and makes a stopover in PHILADELPHIA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND CIT... | [
4758,
16503,
26225,
5474,
17607,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
1797,
8220,
290,
1838,
257,
2245,
2502,
287,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4758,
16503,
26225,
5474,
17607,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
1797,
8220,
290,
1838,
257,
2245,
2502,
287,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
... |
What is the population of the parish that has an area of 304.06? | SELECT SUM(population) FROM table_name_78 WHERE area_km_2 = 304.06 | [
2061,
318,
262,
3265,
286,
262,
28830,
326,
468,
281,
1989,
286,
31672,
13,
3312,
30,
46506,
35683,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1989,
62,
13276,
62,
17,
796,
31672,
13,
3312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3265,
286,
262,
28830,
326,
468,
281,
1989,
286,
31672,
13,
3312,
30,
46506,
35683,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1989,
62,
13276,
62,
17,
796,
31672,
13,
3312
] |
What location has the name of Sakakita BS? | SELECT location__all_in_nagano__ FROM table_name_7 WHERE name = "sakakita bs" | [
2061,
4067,
468,
262,
1438,
286,
13231,
461,
5350,
24218,
30,
46506,
4067,
834,
439,
62,
259,
62,
77,
363,
5733,
834,
16034,
3084,
62,
3672,
62,
22,
33411,
1438,
796,
366,
82,
461,
461,
5350,
275,
82,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4067,
468,
262,
1438,
286,
13231,
461,
5350,
24218,
30,
46506,
4067,
834,
439,
62,
259,
62,
77,
363,
5733,
834,
16034,
3084,
62,
3672,
62,
22,
33411,
1438,
796,
366,
82,
461,
461,
5350,
275,
82,
1
] |
Return a bar chart about the distribution of ACC_Regular_Season and School_ID , and show in descending by the y axis. | SELECT ACC_Regular_Season, School_ID FROM basketball_match ORDER BY School_ID DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
40164,
62,
18960,
290,
3961,
62,
2389,
837,
290,
905,
287,
31491,
416,
262,
331,
16488,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
40164,
62,
18960,
290,
3961,
62,
2389,
837,
290,
905,
287,
31491,
416,
262,
331,
16488,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,... |
what is the number of patients whose days of hospital stay is greater than 27 and drug route is id? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "27" AND prescriptions.route = "ID" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
2681,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
2681,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
340... |
number of papers by year from oren etzioni | SELECT DISTINCT COUNT(paper.paperid), paper.year FROM author, paper, writes WHERE author.authorname = 'oren etzioni' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY paper.year | [
17618,
286,
9473,
416,
614,
422,
267,
918,
2123,
89,
295,
72,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
20189,
13,
20189,
312,
828,
3348,
13,
1941,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
295... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
17618,
286,
9473,
416,
614,
422,
267,
918,
2123,
89,
295,
72,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
20189,
13,
20189,
312,
828,
3348,
13,
1941,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
295... |
Count the number of newborn patients whose lab test fluid is blood | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.fluid = "Blood" | [
12332,
262,
1271,
286,
23856,
3871,
3025,
2248,
1332,
11711,
318,
2910,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12332,
262,
1271,
286,
23856,
3871,
3025,
2248,
1332,
11711,
318,
2910,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
Who was the partner of the winner? | SELECT partner FROM table_name_46 WHERE outcome = "winner" | [
8241,
373,
262,
5212,
286,
262,
8464,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
3510,
33411,
8055,
796,
366,
39791,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
5212,
286,
262,
8464,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
3510,
33411,
8055,
796,
366,
39791,
1
] |
Which Character has a Category of favourite naya sadasya? | SELECT character FROM table_name_68 WHERE category = "favourite naya sadasya" | [
13828,
15684,
468,
257,
21743,
286,
12507,
299,
11729,
6507,
292,
3972,
30,
46506,
2095,
16034,
3084,
62,
3672,
62,
3104,
33411,
6536,
796,
366,
69,
29023,
578,
299,
11729,
6507,
292,
3972,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
15684,
468,
257,
21743,
286,
12507,
299,
11729,
6507,
292,
3972,
30,
46506,
2095,
16034,
3084,
62,
3672,
62,
3104,
33411,
6536,
796,
366,
69,
29023,
578,
299,
11729,
6507,
292,
3972,
1
] |
Show the manager name with most number of gas stations opened after 2000. | SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1 | [
15307,
262,
4706,
1438,
351,
749,
1271,
286,
3623,
8985,
4721,
706,
4751,
13,
46506,
4706,
62,
3672,
16034,
3623,
62,
17529,
33411,
1280,
62,
1941,
1875,
4751,
44441,
11050,
4706,
62,
3672,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
4706,
1438,
351,
749,
1271,
286,
3623,
8985,
4721,
706,
4751,
13,
46506,
4706,
62,
3672,
16034,
3623,
62,
17529,
33411,
1280,
62,
1941,
1875,
4751,
44441,
11050,
4706,
62,
3672,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,... |
what is primary disease and diagnoses icd9 code of subject name kelly gallardo? | SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Kelly Gallardo" | [
10919,
318,
4165,
4369,
290,
40567,
14158,
67,
24,
2438,
286,
2426,
1438,
885,
12810,
7976,
13109,
30,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
291,
67,
24,
62,
8189,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
4165,
4369,
290,
40567,
14158,
67,
24,
2438,
286,
2426,
1438,
885,
12810,
7976,
13109,
30,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
291,
67,
24,
62,
8189,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
... |
patient 95986 has produced gastric emesis in 05/this year? | SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95986)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'gastric emesis... | [
26029,
860,
3270,
4521,
468,
4635,
21956,
1173,
795,
9339,
287,
8870,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26029,
860,
3270,
4521,
468,
4635,
21956,
1173,
795,
9339,
287,
8870,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
... |
return me the paper with more than 200 citations . | SELECT title FROM publication WHERE citation_num > 200 | [
7783,
502,
262,
3348,
351,
517,
621,
939,
33499,
764,
46506,
3670,
16034,
9207,
33411,
27860,
62,
22510,
1875,
939
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7783,
502,
262,
3348,
351,
517,
621,
939,
33499,
764,
46506,
3670,
16034,
9207,
33411,
27860,
62,
22510,
1875,
939
] |
Which Format has a Date of 1993, and a Catalog of cleo 2481-2? | SELECT "Format" FROM table_75718 WHERE "Date" = '1993' AND "Catalog" = 'cleo 2481-2' | [
13828,
18980,
468,
257,
7536,
286,
9656,
11,
290,
257,
44515,
286,
1190,
78,
1987,
6659,
12,
17,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
39251,
1507,
33411,
366,
10430,
1,
796,
705,
24465,
6,
5357,
366,
49015,
1,
796,
705,
2375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
18980,
468,
257,
7536,
286,
9656,
11,
290,
257,
44515,
286,
1190,
78,
1987,
6659,
12,
17,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
39251,
1507,
33411,
366,
10430,
1,
796,
705,
24465,
6,
5357,
366,
49015,
1,
796,
705,
2375,
... |
Find the names of the artists who are from UK and have produced English songs. | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | [
16742,
262,
3891,
286,
262,
7912,
508,
389,
422,
3482,
290,
423,
4635,
3594,
7259,
13,
46506,
6802,
62,
3672,
16034,
6802,
33411,
1499,
796,
366,
15039,
1,
17828,
4877,
9782,
33493,
6802,
62,
3672,
16034,
3496,
33411,
8950,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
3891,
286,
262,
7912,
508,
389,
422,
3482,
290,
423,
4635,
3594,
7259,
13,
46506,
6802,
62,
3672,
16034,
6802,
33411,
1499,
796,
366,
15039,
1,
17828,
4877,
9782,
33493,
6802,
62,
3672,
16034,
3496,
33411,
8950,
796,
366,
... |
comparing 1971 and 1972 , which year has the most won matches by osborne ? | SELECT "date" FROM table_204_335 WHERE "date" IN (1971, 1972) AND "outcome" = 'winner' GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1 | [
5589,
1723,
16382,
290,
16101,
837,
543,
614,
468,
262,
749,
1839,
7466,
416,
28686,
13555,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
27326,
33411,
366,
4475,
1,
3268,
357,
41208,
11,
16101,
8,
5357,
366,
448,
2958,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5589,
1723,
16382,
290,
16101,
837,
543,
614,
468,
262,
749,
1839,
7466,
416,
28686,
13555,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
27326,
33411,
366,
4475,
1,
3268,
357,
41208,
11,
16101,
8,
5357,
366,
448,
2958,
1,
... |
what is the average cost of a hospital that involves a drug named lithium carbonate since 2105? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'lithium carbonate') AND STRFTIME('%y', cost.chargetime) >= '2105' GROUP BY cost.hadm_id) AS t1 | [
10919,
318,
262,
2811,
1575,
286,
257,
4436,
326,
9018,
257,
2563,
3706,
28444,
6588,
378,
1201,
362,
13348,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2811,
1575,
286,
257,
4436,
326,
9018,
257,
2563,
3706,
28444,
6588,
378,
1201,
362,
13348,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
... |
What is the total number of Opponents, when Raiders Points is '42', when Attendance is less than 52,505? | SELECT COUNT("Opponents") FROM table_58788 WHERE "Raiders points" = '42' AND "Attendance" < '52,505' | [
2061,
318,
262,
2472,
1271,
286,
9385,
3906,
11,
618,
16120,
11045,
318,
705,
3682,
3256,
618,
46502,
590,
318,
1342,
621,
6740,
11,
31654,
30,
46506,
327,
28270,
7203,
27524,
3906,
4943,
16034,
3084,
62,
44617,
3459,
33411,
366,
49043,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
9385,
3906,
11,
618,
16120,
11045,
318,
705,
3682,
3256,
618,
46502,
590,
318,
1342,
621,
6740,
11,
31654,
30,
46506,
327,
28270,
7203,
27524,
3906,
4943,
16034,
3084,
62,
44617,
3459,
33411,
366,
49043,... |
what is the total amount of input which patient 28447 has received on this month/29? | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28447)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT_TIME()... | [
10919,
318,
262,
2472,
2033,
286,
5128,
543,
5827,
2579,
34825,
468,
2722,
319,
428,
1227,
14,
1959,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2472,
2033,
286,
5128,
543,
5827,
2579,
34825,
468,
2722,
319,
428,
1227,
14,
1959,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1... |
What is the least total votes? | SELECT MIN(total_votes) FROM table_19763199_3 | [
2061,
318,
262,
1551,
2472,
5690,
30,
46506,
20625,
7,
23350,
62,
29307,
8,
16034,
3084,
62,
38108,
18,
19104,
62,
18
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1551,
2472,
5690,
30,
46506,
20625,
7,
23350,
62,
29307,
8,
16034,
3084,
62,
38108,
18,
19104,
62,
18
] |
What member of the original Toronto cast played the character played by Constantine Maroulis in the first national tour cast? | SELECT "Original Toronto Cast" FROM table_2068 WHERE "First National Tour Cast" = 'Constantine Maroulis' | [
2061,
2888,
286,
262,
2656,
6586,
3350,
2826,
262,
2095,
2826,
416,
44665,
1526,
2852,
271,
287,
262,
717,
2260,
4205,
3350,
30,
46506,
366,
20556,
6586,
5833,
1,
16034,
3084,
62,
1238,
3104,
33411,
366,
5962,
2351,
9852,
5833,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2888,
286,
262,
2656,
6586,
3350,
2826,
262,
2095,
2826,
416,
44665,
1526,
2852,
271,
287,
262,
717,
2260,
4205,
3350,
30,
46506,
366,
20556,
6586,
5833,
1,
16034,
3084,
62,
1238,
3104,
33411,
366,
5962,
2351,
9852,
5833,
1,
796... |
Where did the teams play on October 16, 1977? | SELECT "Game site" FROM table_18034 WHERE "Date" = 'October 16, 1977' | [
8496,
750,
262,
3466,
711,
319,
3267,
1467,
11,
15589,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
15259,
2682,
33411,
366,
10430,
1,
796,
705,
18517,
1467,
11,
15589,
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
] | [
8496,
750,
262,
3466,
711,
319,
3267,
1467,
11,
15589,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
15259,
2682,
33411,
366,
10430,
1,
796,
705,
18517,
1467,
11,
15589,
6
] |
What is the average heat that has 52.83 sb mark and lane less than 4? | SELECT AVG(heat) FROM table_name_28 WHERE mark = "52.83 sb" AND lane < 4 | [
2061,
318,
262,
2811,
4894,
326,
468,
6740,
13,
5999,
264,
65,
1317,
290,
11193,
1342,
621,
604,
30,
46506,
35224,
7,
25080,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1317,
796,
366,
4309,
13,
5999,
264,
65,
1,
5357,
11193,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
4894,
326,
468,
6740,
13,
5999,
264,
65,
1317,
290,
11193,
1342,
621,
604,
30,
46506,
35224,
7,
25080,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1317,
796,
366,
4309,
13,
5999,
264,
65,
1,
5357,
11193,
1279,
... |
How many different countries are all the swimmers from? | SELECT COUNT(DISTINCT nationality) FROM swimmer | [
2437,
867,
1180,
2678,
389,
477,
262,
1509,
36904,
422,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
29835,
8,
16034,
9422,
647
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1180,
2678,
389,
477,
262,
1509,
36904,
422,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
29835,
8,
16034,
9422,
647
] |
How many total rounds did Damon Hill come in First Place? | SELECT COUNT(round) FROM table_1137694_3 WHERE winning_driver = "Damon Hill" | [
2437,
867,
2472,
9196,
750,
33572,
3327,
1282,
287,
3274,
8474,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
1157,
2718,
45214,
62,
18,
33411,
5442,
62,
26230,
796,
366,
14550,
261,
3327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2472,
9196,
750,
33572,
3327,
1282,
287,
3274,
8474,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
1157,
2718,
45214,
62,
18,
33411,
5442,
62,
26230,
796,
366,
14550,
261,
3327,
1
] |
Questions this week by tag. | SELECT t.Id, t.TagName, COUNT(*) AS total FROM Tags AS t INNER JOIN PostTags ON PostTags.TagId = t.Id INNER JOIN Posts AS p ON p.Id = PostTags.PostId WHERE p.PostTypeId = 1 AND DATEDIFF(DAY, CreationDate, GETDATE()) <= 7 GROUP BY t.Id, t.TagName ORDER BY total DESC | [
35741,
428,
1285,
416,
7621,
13,
46506,
256,
13,
7390,
11,
256,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
7054,
2472,
16034,
44789,
7054,
256,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
796,
256,
13,
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... | [
35741,
428,
1285,
416,
7621,
13,
46506,
256,
13,
7390,
11,
256,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
7054,
2472,
16034,
44789,
7054,
256,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
796,
256,
13,
7... |
What division was on HBO PPV? | SELECT division FROM table_25840200_1 WHERE tv = "HBO PPV" | [
2061,
7297,
373,
319,
18804,
21082,
53,
30,
46506,
7297,
16034,
3084,
62,
25600,
1821,
2167,
62,
16,
33411,
31557,
796,
366,
39,
8202,
21082,
53,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
7297,
373,
319,
18804,
21082,
53,
30,
46506,
7297,
16034,
3084,
62,
25600,
1821,
2167,
62,
16,
33411,
31557,
796,
366,
39,
8202,
21082,
53,
1
] |
What was the date of release for the episode sorted value of 6Y/AA? | SELECT "Released" FROM table_47744 WHERE "Series Sorted" = '6y/aa' | [
2061,
373,
262,
3128,
286,
2650,
329,
262,
4471,
23243,
1988,
286,
718,
56,
14,
3838,
30,
46506,
366,
45037,
1,
16034,
3084,
62,
32883,
2598,
33411,
366,
27996,
311,
9741,
1,
796,
705,
21,
88,
14,
7252,
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
] | [
2061,
373,
262,
3128,
286,
2650,
329,
262,
4471,
23243,
1988,
286,
718,
56,
14,
3838,
30,
46506,
366,
45037,
1,
16034,
3084,
62,
32883,
2598,
33411,
366,
27996,
311,
9741,
1,
796,
705,
21,
88,
14,
7252,
6
] |
What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina? | SELECT "Year" FROM table_78592 WHERE "Award" = 'kids'' choice awards argentina' AND "Category" = 'best actress' | [
2061,
614,
373,
612,
257,
11872,
329,
6705,
47144,
379,
262,
17476,
6,
18502,
15434,
16519,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
3695,
45839,
33411,
366,
32,
904,
1,
796,
705,
45235,
7061,
3572,
13304,
1822,
298,
1437,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
373,
612,
257,
11872,
329,
6705,
47144,
379,
262,
17476,
6,
18502,
15434,
16519,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
3695,
45839,
33411,
366,
32,
904,
1,
796,
705,
45235,
7061,
3572,
13304,
1822,
298,
1437,
6,
5357,
... |
What was the attendance at Corio Oval? | SELECT "Crowd" FROM table_56173 WHERE "Venue" = 'corio oval' | [
2061,
373,
262,
14858,
379,
2744,
952,
25165,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
3980,
25399,
33411,
366,
37522,
518,
1,
796,
705,
10215,
952,
41186,
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
] | [
2061,
373,
262,
14858,
379,
2744,
952,
25165,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
3980,
25399,
33411,
366,
37522,
518,
1,
796,
705,
10215,
952,
41186,
6
] |
what is the total number of inputs that patient 010-8740 has received on the first icu visit? | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-8740') AND NOT patient.unitdischargetime IS ... | [
10919,
318,
262,
2472,
1271,
286,
17311,
326,
5827,
5534,
15,
12,
5774,
1821,
468,
2722,
319,
262,
717,
14158,
84,
3187,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2472,
1271,
286,
17311,
326,
5827,
5534,
15,
12,
5774,
1821,
468,
2722,
319,
262,
717,
14158,
84,
3187,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915... |
Which Pre-Season has a A-League of 0 1, and a Finals larger than 0? | SELECT MIN(pre_season) FROM table_name_4 WHERE a_league = "0 1" AND finals > 0 | [
13828,
3771,
12,
18960,
468,
257,
317,
12,
24623,
286,
657,
352,
11,
290,
257,
19705,
4025,
621,
657,
30,
46506,
20625,
7,
3866,
62,
6230,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
257,
62,
19316,
796,
366,
15,
352,
1,
5357,
18576,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3771,
12,
18960,
468,
257,
317,
12,
24623,
286,
657,
352,
11,
290,
257,
19705,
4025,
621,
657,
30,
46506,
20625,
7,
3866,
62,
6230,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
257,
62,
19316,
796,
366,
15,
352,
1,
5357,
18576,... |
What are the imperial size for the unit that has a ratio of 1/20? | SELECT imperial FROM table_name_11 WHERE ratio = "1/20" | [
2061,
389,
262,
14312,
2546,
329,
262,
4326,
326,
468,
257,
8064,
286,
352,
14,
1238,
30,
46506,
14312,
16034,
3084,
62,
3672,
62,
1157,
33411,
8064,
796,
366,
16,
14,
1238,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
14312,
2546,
329,
262,
4326,
326,
468,
257,
8064,
286,
352,
14,
1238,
30,
46506,
14312,
16034,
3084,
62,
3672,
62,
1157,
33411,
8064,
796,
366,
16,
14,
1238,
1
] |
Which round was Brian Elder taken in? | SELECT MIN("Round") FROM table_35055 WHERE "Player" = 'brian elder' | [
13828,
2835,
373,
8403,
15624,
2077,
287,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
14877,
2816,
33411,
366,
14140,
1,
796,
705,
65,
4484,
10550,
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
] | [
13828,
2835,
373,
8403,
15624,
2077,
287,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
14877,
2816,
33411,
366,
14140,
1,
796,
705,
65,
4484,
10550,
6
] |
count the number of patients whose admission type is elective and lab test category is chemistry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab."CATEGORY" = "Chemistry" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.