instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the value of time/retired for Jean Alesi? | SELECT "Time/Retired" FROM table_56663 WHERE "Driver" = 'jean alesi' | [
2061,
318,
262,
1988,
286,
640,
14,
1186,
1202,
329,
11320,
317,
36027,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
20,
2791,
5066,
33411,
366,
32103,
1,
796,
705,
73,
11025,
435,
46551,
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
] | [
2061,
318,
262,
1988,
286,
640,
14,
1186,
1202,
329,
11320,
317,
36027,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
20,
2791,
5066,
33411,
366,
32103,
1,
796,
705,
73,
11025,
435,
46551,
6
] |
WHat is the Valency change of associative type? | SELECT valency_change FROM table_name_1 WHERE type = "associative" | [
12418,
265,
318,
262,
3254,
1387,
1487,
286,
2570,
876,
2099,
30,
46506,
1188,
1387,
62,
3803,
16034,
3084,
62,
3672,
62,
16,
33411,
2099,
796,
366,
562,
1733,
876,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
265,
318,
262,
3254,
1387,
1487,
286,
2570,
876,
2099,
30,
46506,
1188,
1387,
62,
3803,
16034,
3084,
62,
3672,
62,
16,
33411,
2099,
796,
366,
562,
1733,
876,
1
] |
What party is class 1 in wisconsin? | SELECT party FROM table_name_99 WHERE class = 1 AND state = "wisconsin" | [
2061,
2151,
318,
1398,
352,
287,
266,
8816,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
2079,
33411,
1398,
796,
352,
5357,
1181,
796,
366,
86,
8816,
1
] | [
1,
1,
1,
1,
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,
2151,
318,
1398,
352,
287,
266,
8816,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
2079,
33411,
1398,
796,
352,
5357,
1181,
796,
366,
86,
8816,
1
] |
how many district with incumbent being david delano glover | SELECT COUNT("District") FROM table_18666 WHERE "Incumbent" = 'David Delano Glover' | [
4919,
867,
4783,
351,
23526,
852,
21970,
1619,
5733,
1278,
2502,
46506,
327,
28270,
7203,
44857,
4943,
16034,
3084,
62,
1507,
27310,
33411,
366,
25517,
2178,
298,
1,
796,
705,
11006,
4216,
5733,
43487,
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
] | [
4919,
867,
4783,
351,
23526,
852,
21970,
1619,
5733,
1278,
2502,
46506,
327,
28270,
7203,
44857,
4943,
16034,
3084,
62,
1507,
27310,
33411,
366,
25517,
2178,
298,
1,
796,
705,
11006,
4216,
5733,
43487,
6
] |
when was the last time patient 006-147098 had the minimum heartrate since 354 days ago. | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-147098')) AND NOT vitalperiodic.heartrate IS NU... | [
12518,
373,
262,
938,
640,
5827,
3571,
21,
12,
1415,
2154,
4089,
550,
262,
5288,
2612,
4873,
1201,
46752,
1528,
2084,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
640,
5827,
3571,
21,
12,
1415,
2154,
4089,
550,
262,
5288,
2612,
4873,
1201,
46752,
1528,
2084,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
... |
the last time patient 14413 was diagnosed since 2105 with dieulafoy les,stom&duod? | SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dieulafoy les,stom&duod') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14413) AND STRFTIM... | [
1169,
938,
640,
5827,
20224,
1485,
373,
14641,
1201,
362,
13348,
351,
4656,
377,
1878,
726,
10287,
11,
301,
296,
5,
646,
375,
30,
46506,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
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,
1,
1... | [
1169,
938,
640,
5827,
20224,
1485,
373,
14641,
1201,
362,
13348,
351,
4656,
377,
1878,
726,
10287,
11,
301,
296,
5,
646,
375,
30,
46506,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
... |
count the number of patients whose admission type is newborn and diagnoses long title is unspecified erythematous condition? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "NEWBORN" AND diagnoses.long_title = "Unspecified erythematous condition" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
40567,
890,
3670,
318,
29547,
220,
1924,
1169,
6759,
516,
4006,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
40567,
890,
3670,
318,
29547,
220,
1924,
1169,
6759,
516,
4006,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
who is the home team when the away team is bolton wanderers? | SELECT "Home team" FROM table_8554 WHERE "Away team" = 'bolton wanderers' | [
8727,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
11572,
1122,
11569,
19288,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
23,
44218,
33411,
366,
32,
1014,
1074,
1,
796,
705,
28984,
1122,
11569,
19288,
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
] | [
8727,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
11572,
1122,
11569,
19288,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
23,
44218,
33411,
366,
32,
1014,
1074,
1,
796,
705,
28984,
1122,
11569,
19288,
6
] |
What is the total number of positions having 1 loss and more than 9 conceded? | SELECT COUNT("Position") FROM table_14062 WHERE "Losses" = '1' AND "Conceded" > '9' | [
2061,
318,
262,
2472,
1271,
286,
6116,
1719,
352,
2994,
290,
517,
621,
860,
24684,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1415,
3312,
17,
33411,
366,
43,
793,
274,
1,
796,
705,
16,
6,
5357,
366,
3103,
771,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6116,
1719,
352,
2994,
290,
517,
621,
860,
24684,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1415,
3312,
17,
33411,
366,
43,
793,
274,
1,
796,
705,
16,
6,
5357,
366,
3103,
771,
276,
... |
Which English name has a Color of green? | SELECT english_name FROM table_name_54 WHERE color = "green" | [
13828,
3594,
1438,
468,
257,
5315,
286,
4077,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
3672,
62,
4051,
33411,
3124,
796,
366,
14809,
1
] | [
1,
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,
3594,
1438,
468,
257,
5315,
286,
4077,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
3672,
62,
4051,
33411,
3124,
796,
366,
14809,
1
] |
What is the original air date of the episode 'Another Happy Day'? | SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode_title = "Another Happy Day" | [
2061,
318,
262,
2656,
1633,
3128,
286,
262,
4471,
705,
6610,
14628,
3596,
30960,
46506,
2656,
62,
958,
62,
4475,
834,
2724,
62,
16034,
3084,
62,
1495,
2154,
26276,
62,
18,
33411,
4471,
62,
7839,
796,
366,
6610,
14628,
3596,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
1633,
3128,
286,
262,
4471,
705,
6610,
14628,
3596,
30960,
46506,
2656,
62,
958,
62,
4475,
834,
2724,
62,
16034,
3084,
62,
1495,
2154,
26276,
62,
18,
33411,
4471,
62,
7839,
796,
366,
6610,
14628,
3596,
1
] |
What is Record, when Location Attendance is 'Pepsi Center 19,749'? | SELECT "Record" FROM table_45096 WHERE "Location Attendance" = 'pepsi center 19,749' | [
2061,
318,
13266,
11,
618,
13397,
46502,
590,
318,
705,
47,
538,
13396,
3337,
678,
11,
22,
2920,
30960,
46506,
366,
23739,
1,
16034,
3084,
62,
17885,
4846,
33411,
366,
14749,
46502,
590,
1,
796,
705,
431,
862,
72,
3641,
678,
11,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
13266,
11,
618,
13397,
46502,
590,
318,
705,
47,
538,
13396,
3337,
678,
11,
22,
2920,
30960,
46506,
366,
23739,
1,
16034,
3084,
62,
17885,
4846,
33411,
366,
14749,
46502,
590,
1,
796,
705,
431,
862,
72,
3641,
678,
11,
22,... |
Which Series Ep has a Netflix of s08e18? | SELECT series_ep FROM table_name_83 WHERE netflix = "s08e18" | [
13828,
7171,
4551,
468,
257,
12074,
286,
264,
2919,
68,
1507,
30,
46506,
2168,
62,
538,
16034,
3084,
62,
3672,
62,
5999,
33411,
2010,
10046,
796,
366,
82,
2919,
68,
1507,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
7171,
4551,
468,
257,
12074,
286,
264,
2919,
68,
1507,
30,
46506,
2168,
62,
538,
16034,
3084,
62,
3672,
62,
5999,
33411,
2010,
10046,
796,
366,
82,
2919,
68,
1507,
1
] |
What week 14 has the lowest attendance? | SELECT MIN(attendance) FROM table_name_75 WHERE week = 14 | [
2061,
1285,
1478,
468,
262,
9016,
14858,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
1285,
796,
1478
] | [
1,
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,
1285,
1478,
468,
262,
9016,
14858,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
1285,
796,
1478
] |
Which position was morristown minutemen in? | SELECT "Position" FROM table_54367 WHERE "Team" = 'morristown minutemen' | [
13828,
2292,
373,
2146,
1585,
593,
949,
315,
8952,
287,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
4051,
27824,
33411,
366,
15592,
1,
796,
705,
4491,
1585,
593,
949,
315,
8952,
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
] | [
13828,
2292,
373,
2146,
1585,
593,
949,
315,
8952,
287,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
4051,
27824,
33411,
366,
15592,
1,
796,
705,
4491,
1585,
593,
949,
315,
8952,
6
] |
How many married patients have had a percutaneous (endoscopic) jejunostomy [pej] procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Percutaneous (endoscopic) jejunostomy [PEJ]" | [
2437,
867,
6405,
3871,
423,
550,
257,
583,
8968,
11655,
357,
437,
48228,
8,
11223,
29741,
455,
9145,
685,
431,
73,
60,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
6405,
3871,
423,
550,
257,
583,
8968,
11655,
357,
437,
48228,
8,
11223,
29741,
455,
9145,
685,
431,
73,
60,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... |
List the number of enrolment students in each day and bin date of enrolment by weekday with a bar chart, I want to show in asc by the total number. | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment ORDER BY COUNT(date_of_enrolment) | [
8053,
262,
1271,
286,
34311,
434,
2444,
287,
1123,
1110,
290,
9874,
3128,
286,
34311,
434,
416,
28269,
351,
257,
2318,
8262,
11,
314,
765,
284,
905,
287,
10570,
416,
262,
2472,
1271,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8053,
262,
1271,
286,
34311,
434,
2444,
287,
1123,
1110,
290,
9874,
3128,
286,
34311,
434,
416,
28269,
351,
257,
2318,
8262,
11,
314,
765,
284,
905,
287,
10570,
416,
262,
2472,
1271,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11... |
What is the sum of Date of Official Foundation of Municipality, when Province is 'Kerm n', when 2006 us '167014', and when Rank is less than 46? | SELECT SUM(date_of_official_foundation_of_municipality) FROM table_name_65 WHERE province = "kermān" AND 2006 = 167014 AND rank < 46 | [
2061,
318,
262,
2160,
286,
7536,
286,
15934,
5693,
286,
27338,
1483,
11,
618,
22783,
318,
705,
42,
7780,
299,
3256,
618,
4793,
514,
705,
21940,
28645,
3256,
290,
618,
10916,
318,
1342,
621,
6337,
30,
46506,
35683,
7,
4475,
62,
1659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
7536,
286,
15934,
5693,
286,
27338,
1483,
11,
618,
22783,
318,
705,
42,
7780,
299,
3256,
618,
4793,
514,
705,
21940,
28645,
3256,
290,
618,
10916,
318,
1342,
621,
6337,
30,
46506,
35683,
7,
4475,
62,
1659,
... |
count the number of times epinephrine had been prescribed to patient 002-25577 in their last hospital encounter. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-25577' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp... | [
9127,
262,
1271,
286,
1661,
2462,
500,
47723,
550,
587,
14798,
284,
5827,
3571,
17,
12,
13381,
3324,
287,
511,
938,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
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... | [
9127,
262,
1271,
286,
1661,
2462,
500,
47723,
550,
587,
14798,
284,
5827,
3571,
17,
12,
13381,
3324,
287,
511,
938,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,... |
do the republicans have the same number of elected officials as democrats ? | SELECT (SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'republican') = (SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'democratic') | [
4598,
262,
17146,
504,
423,
262,
976,
1271,
286,
7018,
2828,
355,
5084,
1381,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
7029,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
11537,
796,
357,
46506,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4598,
262,
17146,
504,
423,
262,
976,
1271,
286,
7018,
2828,
355,
5084,
1381,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
7029,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
11537,
796,
357,
46506,
327... |
Which MLS team had a pick number of 32? | SELECT "MLS Team" FROM table_6041 WHERE "Pick #" = '32' | [
13828,
13981,
1074,
550,
257,
2298,
1271,
286,
3933,
30,
46506,
366,
5805,
50,
4816,
1,
16034,
3084,
62,
1899,
3901,
33411,
366,
31686,
1303,
1,
796,
705,
2624,
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
] | [
13828,
13981,
1074,
550,
257,
2298,
1271,
286,
3933,
30,
46506,
366,
5805,
50,
4816,
1,
16034,
3084,
62,
1899,
3901,
33411,
366,
31686,
1303,
1,
796,
705,
2624,
6
] |
Show id, first name and last name for all customers and the number of accounts. | SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id | [
15307,
4686,
11,
717,
1438,
290,
938,
1438,
329,
477,
4297,
290,
262,
1271,
286,
5504,
13,
46506,
309,
16,
13,
23144,
263,
62,
312,
11,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
11,
309,
17,
13,
23144,
263,
62,
12957,
62,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
4686,
11,
717,
1438,
290,
938,
1438,
329,
477,
4297,
290,
262,
1271,
286,
5504,
13,
46506,
309,
16,
13,
23144,
263,
62,
312,
11,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
11,
309,
17,
13,
23144,
263,
62,
12957,
62,
36... |
What is the high school of the player number 5? | SELECT high_school FROM table_24055352_1 WHERE number = 5 | [
2061,
318,
262,
1029,
1524,
286,
262,
2137,
1271,
642,
30,
46506,
1029,
62,
14347,
16034,
3084,
62,
1731,
47838,
33394,
62,
16,
33411,
1271,
796,
642
] | [
1,
1,
1,
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,
1029,
1524,
286,
262,
2137,
1271,
642,
30,
46506,
1029,
62,
14347,
16034,
3084,
62,
1731,
47838,
33394,
62,
16,
33411,
1271,
796,
642
] |
Who was the home team when Hawthorn was the away team? | SELECT home_team FROM table_name_39 WHERE away_team = "hawthorn" | [
8241,
373,
262,
1363,
1074,
618,
41457,
1211,
373,
262,
1497,
1074,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2670,
33411,
1497,
62,
15097,
796,
366,
26615,
400,
1211,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1363,
1074,
618,
41457,
1211,
373,
262,
1497,
1074,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2670,
33411,
1497,
62,
15097,
796,
366,
26615,
400,
1211,
1
] |
What were the July ( C) temperatures when the July ( F) temperatures were 71/55? | SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55" | [
2061,
547,
262,
2901,
357,
327,
8,
10101,
618,
262,
2901,
357,
376,
8,
10101,
547,
9166,
14,
2816,
30,
46506,
474,
2062,
834,
7200,
66,
62,
16034,
3084,
62,
17,
23664,
62,
16,
33411,
474,
2062,
834,
7200,
69,
62,
796,
366,
4869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
2901,
357,
327,
8,
10101,
618,
262,
2901,
357,
376,
8,
10101,
547,
9166,
14,
2816,
30,
46506,
474,
2062,
834,
7200,
66,
62,
16034,
3084,
62,
17,
23664,
62,
16,
33411,
474,
2062,
834,
7200,
69,
62,
796,
366,
4869,
... |
List each donator name and the amount of endowment in descending order of the amount of endowment. | SELECT donator_name, SUM(amount) FROM endowment GROUP BY donator_name ORDER BY SUM(amount) DESC | [
8053,
1123,
836,
1352,
1438,
290,
262,
2033,
286,
886,
36569,
287,
31491,
1502,
286,
262,
2033,
286,
886,
36569,
13,
46506,
836,
1352,
62,
3672,
11,
35683,
7,
17287,
8,
16034,
886,
36569,
44441,
11050,
836,
1352,
62,
3672,
38678,
1105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
1123,
836,
1352,
1438,
290,
262,
2033,
286,
886,
36569,
287,
31491,
1502,
286,
262,
2033,
286,
886,
36569,
13,
46506,
836,
1352,
62,
3672,
11,
35683,
7,
17287,
8,
16034,
886,
36569,
44441,
11050,
836,
1352,
62,
3672,
38678,
1105... |
What is the type of electronic with the Gamecube Platform? | SELECT "Type" FROM table_48576 WHERE "Platform" = 'gamecube' | [
2061,
318,
262,
2099,
286,
7914,
351,
262,
3776,
40296,
19193,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
2780,
37452,
33411,
366,
37148,
1,
796,
705,
6057,
40296,
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,
318,
262,
2099,
286,
7914,
351,
262,
3776,
40296,
19193,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
2780,
37452,
33411,
366,
37148,
1,
796,
705,
6057,
40296,
6
] |
For directors who had more than one movie, bin the dates of release into Year interval and them compute the total number of movies in each year bucket Show me the result using a line chart, I want to rank year from low to high order. | SELECT year, COUNT(year) FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY year | [
1890,
13445,
508,
550,
517,
621,
530,
3807,
11,
9874,
262,
9667,
286,
2650,
656,
6280,
16654,
290,
606,
24061,
262,
2472,
1271,
286,
6918,
287,
1123,
614,
19236,
5438,
502,
262,
1255,
1262,
257,
1627,
8262,
11,
314,
765,
284,
4279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13445,
508,
550,
517,
621,
530,
3807,
11,
9874,
262,
9667,
286,
2650,
656,
6280,
16654,
290,
606,
24061,
262,
2472,
1271,
286,
6918,
287,
1123,
614,
19236,
5438,
502,
262,
1255,
1262,
257,
1627,
8262,
11,
314,
765,
284,
4279,
... |
What is the Score that has a Winnipeg Jets as Visitor on april 7? | SELECT "Score" FROM table_70440 WHERE "Visitor" = 'winnipeg jets' AND "Date" = 'april 7' | [
2061,
318,
262,
15178,
326,
468,
257,
23434,
14728,
355,
6911,
2072,
319,
46593,
346,
767,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2154,
25644,
33411,
366,
15854,
2072,
1,
796,
705,
86,
3732,
21700,
20792,
6,
5357,
366,
10430,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
326,
468,
257,
23434,
14728,
355,
6911,
2072,
319,
46593,
346,
767,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2154,
25644,
33411,
366,
15854,
2072,
1,
796,
705,
86,
3732,
21700,
20792,
6,
5357,
366,
10430,
1,
... |
What is the weight number when the distance was 5 f? | SELECT COUNT("Weight") FROM table_76969 WHERE "Distance" = '5 ½ f' | [
2061,
318,
262,
3463,
1271,
618,
262,
5253,
373,
642,
277,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
22,
3388,
3388,
33411,
366,
45767,
1,
796,
705,
20,
25208,
277,
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
] | [
2061,
318,
262,
3463,
1271,
618,
262,
5253,
373,
642,
277,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
22,
3388,
3388,
33411,
366,
45767,
1,
796,
705,
20,
25208,
277,
6
] |
what does CO mean | SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'CO' | [
10919,
857,
7375,
1612,
46506,
360,
8808,
1268,
4177,
18091,
62,
8189,
16034,
18091,
33411,
18091,
62,
8189,
796,
705,
8220,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
857,
7375,
1612,
46506,
360,
8808,
1268,
4177,
18091,
62,
8189,
16034,
18091,
33411,
18091,
62,
8189,
796,
705,
8220,
6
] |
Who was the home team at the game held at Princes Park? | SELECT "Home team" FROM table_57344 WHERE "Venue" = 'princes park' | [
8241,
373,
262,
1363,
1074,
379,
262,
983,
2714,
379,
7489,
728,
3250,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3553,
33535,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
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,
373,
262,
1363,
1074,
379,
262,
983,
2714,
379,
7489,
728,
3250,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3553,
33535,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6
] |
For player Les Ames, what was the venue? | SELECT venue FROM table_name_29 WHERE player = "les ames" | [
1890,
2137,
11732,
46843,
11,
644,
373,
262,
14359,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1959,
33411,
2137,
796,
366,
829,
716,
274,
1
] | [
1,
1,
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,
2137,
11732,
46843,
11,
644,
373,
262,
14359,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1959,
33411,
2137,
796,
366,
829,
716,
274,
1
] |
i want to travel from ATLANTA to BALTIMORE early in the morning first flight | 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 = 'BALT... | [
72,
765,
284,
3067,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
1903,
287,
262,
3329,
717,
5474,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
765,
284,
3067,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
1903,
287,
262,
3329,
717,
5474,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11... |
select * from users;. | SELECT * FROM Users | [
19738,
1635,
422,
2985,
26,
13,
46506,
1635,
16034,
18987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
1635,
422,
2985,
26,
13,
46506,
1635,
16034,
18987
] |
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0? | SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 | [
10919,
318,
262,
2472,
1271,
286,
18034,
618,
277,
388,
81,
318,
657,
11,
2472,
30488,
318,
7175,
290,
5695,
318,
1342,
621,
657,
30,
46506,
327,
28270,
7,
83,
441,
829,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
277,
388,
81,
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
] | [
10919,
318,
262,
2472,
1271,
286,
18034,
618,
277,
388,
81,
318,
657,
11,
2472,
30488,
318,
7175,
290,
5695,
318,
1342,
621,
657,
30,
46506,
327,
28270,
7,
83,
441,
829,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
277,
388,
81,
796... |
What candidates ran in the election when john s. wood was the incumbent? | SELECT "Candidates" FROM table_18651 WHERE "Incumbent" = 'John S. Wood' | [
2061,
5871,
4966,
287,
262,
3071,
618,
45610,
264,
13,
4898,
373,
262,
23526,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
1507,
40639,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
311,
13,
5326,
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
] | [
2061,
5871,
4966,
287,
262,
3071,
618,
45610,
264,
13,
4898,
373,
262,
23526,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
1507,
40639,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
311,
13,
5326,
6
] |
What is the total appearances when the total goals is 289? | SELECT MIN("Total appearances") FROM table_31307 WHERE "Total goals" = '289' | [
2061,
318,
262,
2472,
11057,
618,
262,
2472,
4661,
318,
38902,
30,
46506,
20625,
7203,
14957,
11057,
4943,
16034,
3084,
62,
3132,
22996,
33411,
366,
14957,
4661,
1,
796,
705,
27693,
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,
262,
2472,
11057,
618,
262,
2472,
4661,
318,
38902,
30,
46506,
20625,
7203,
14957,
11057,
4943,
16034,
3084,
62,
3132,
22996,
33411,
366,
14957,
4661,
1,
796,
705,
27693,
6
] |
How many districts had an depravity level of 27.7 | SELECT COUNT(district) FROM table_13618358_1 WHERE income_poverty_f = "27.7" | [
2437,
867,
12815,
550,
281,
1207,
16995,
1241,
286,
2681,
13,
22,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
20809,
1507,
31128,
62,
16,
33411,
3739,
62,
79,
24085,
62,
69,
796,
366,
1983,
13,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
12815,
550,
281,
1207,
16995,
1241,
286,
2681,
13,
22,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
20809,
1507,
31128,
62,
16,
33411,
3739,
62,
79,
24085,
62,
69,
796,
366,
1983,
13,
22,
1
] |
How many of the patients admitted to the emergency room were born before the year 1850? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "1850" | [
2437,
867,
286,
262,
3871,
6848,
284,
262,
6334,
2119,
547,
4642,
878,
262,
614,
35745,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
286,
262,
3871,
6848,
284,
262,
6334,
2119,
547,
4642,
878,
262,
614,
35745,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
36... |
When did the episode written by Jim Morris air? | SELECT us_air_date FROM table_10470082_8 WHERE writer = "Jim Morris" | [
2215,
750,
262,
4471,
3194,
416,
5395,
14433,
1633,
30,
46506,
514,
62,
958,
62,
4475,
16034,
3084,
62,
940,
2857,
405,
6469,
62,
23,
33411,
6260,
796,
366,
18050,
14433,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
4471,
3194,
416,
5395,
14433,
1633,
30,
46506,
514,
62,
958,
62,
4475,
16034,
3084,
62,
940,
2857,
405,
6469,
62,
23,
33411,
6260,
796,
366,
18050,
14433,
1
] |
What district is incumbent albert w. johnson from? | SELECT "District" FROM table_18413 WHERE "Incumbent" = 'Albert W. Johnson' | [
2061,
4783,
318,
23526,
435,
4835,
266,
13,
45610,
1559,
422,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
22883,
1485,
33411,
366,
25517,
2178,
298,
1,
796,
705,
42590,
370,
13,
5030,
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
] | [
2061,
4783,
318,
23526,
435,
4835,
266,
13,
45610,
1559,
422,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
22883,
1485,
33411,
366,
25517,
2178,
298,
1,
796,
705,
42590,
370,
13,
5030,
6
] |
A list of the top 5 countries by number of invoices. List country name and number of invoices. | SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5 | [
32,
1351,
286,
262,
1353,
642,
2678,
416,
1271,
286,
800,
78,
1063,
13,
7343,
1499,
1438,
290,
1271,
286,
800,
78,
1063,
13,
46506,
26297,
62,
19315,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
44441,
11050,
26297,
62,
19315,
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,
1,
1
] | [
32,
1351,
286,
262,
1353,
642,
2678,
416,
1271,
286,
800,
78,
1063,
13,
7343,
1499,
1438,
290,
1271,
286,
800,
78,
1063,
13,
46506,
26297,
62,
19315,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
44441,
11050,
26297,
62,
19315,
38... |
What is Lost, when Points For is '257'? | SELECT lost FROM table_name_11 WHERE points_for = "257" | [
2061,
318,
9164,
11,
618,
11045,
1114,
318,
705,
28676,
30960,
46506,
2626,
16034,
3084,
62,
3672,
62,
1157,
33411,
2173,
62,
1640,
796,
366,
28676,
1
] | [
1,
1,
1,
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,
9164,
11,
618,
11045,
1114,
318,
705,
28676,
30960,
46506,
2626,
16034,
3084,
62,
3672,
62,
1157,
33411,
2173,
62,
1640,
796,
366,
28676,
1
] |
which has the least number or academic staff ? | SELECT "institution" FROM table_203_592 ORDER BY "academic staff" LIMIT 1 | [
4758,
468,
262,
1551,
1271,
393,
8233,
3085,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
22416,
62,
45839,
38678,
11050,
366,
330,
49113,
3085,
1,
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
] | [
4758,
468,
262,
1551,
1271,
393,
8233,
3085,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
22416,
62,
45839,
38678,
11050,
366,
330,
49113,
3085,
1,
27564,
2043,
352
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of code , and group by attribute name, and I want to list by the X in asc. | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
314,
765,
284,
1351,
416,
262,
1395,
287,
1057... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
314,
765,
284,
1351,
416,
262,
1395,
287,
1057... |
tell me the cost of a lab test for epithelial cells? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'epithelial cells')) | [
33331,
502,
262,
1575,
286,
257,
2248,
1332,
329,
21240,
35566,
4778,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
23912,
31534,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
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... | [
33331,
502,
262,
1575,
286,
257,
2248,
1332,
329,
21240,
35566,
4778,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
23912,
31534,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
3... |
How many were Wounded while in a Unit with a Complement of 83 off 9 Men? | SELECT "Wounded" FROM table_56585 WHERE "Complement" = '83 off 9 men' | [
2437,
867,
547,
370,
6302,
981,
287,
257,
11801,
351,
257,
955,
26908,
286,
9698,
572,
860,
6065,
30,
46506,
366,
54,
6302,
1,
16034,
3084,
62,
47372,
5332,
33411,
366,
5377,
26908,
1,
796,
705,
5999,
572,
860,
1450,
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
] | [
2437,
867,
547,
370,
6302,
981,
287,
257,
11801,
351,
257,
955,
26908,
286,
9698,
572,
860,
6065,
30,
46506,
366,
54,
6302,
1,
16034,
3084,
62,
47372,
5332,
33411,
366,
5377,
26908,
1,
796,
705,
5999,
572,
860,
1450,
6
] |
Which club was founded after 1998? | SELECT "Club" FROM table_51183 WHERE "Founded" > '1998' | [
13828,
3430,
373,
9393,
706,
7795,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
41647,
5999,
33411,
366,
37,
6302,
1,
1875,
705,
21113,
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
] | [
13828,
3430,
373,
9393,
706,
7795,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
41647,
5999,
33411,
366,
37,
6302,
1,
1875,
705,
21113,
6
] |
On week 11 when Dixon scored an 8, what was tonioli's score? | SELECT "Tonioli" FROM table_30233 WHERE "Week #" = '11' AND "Dixon" = '8' | [
2202,
1285,
1367,
618,
31178,
7781,
281,
807,
11,
644,
373,
5680,
1669,
72,
338,
4776,
30,
46506,
366,
35416,
1669,
72,
1,
16034,
3084,
62,
1270,
25429,
33411,
366,
20916,
1303,
1,
796,
705,
1157,
6,
5357,
366,
35,
12305,
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
] | [
2202,
1285,
1367,
618,
31178,
7781,
281,
807,
11,
644,
373,
5680,
1669,
72,
338,
4776,
30,
46506,
366,
35416,
1669,
72,
1,
16034,
3084,
62,
1270,
25429,
33411,
366,
20916,
1303,
1,
796,
705,
1157,
6,
5357,
366,
35,
12305,
1,
796,
... |
Who has 5 losses and has played 11 matches? | SELECT "Name" FROM table_71371 WHERE "Losses" = '5' AND "Matches" = '11' | [
8241,
468,
642,
9089,
290,
468,
2826,
1367,
7466,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
50055,
4869,
33411,
366,
43,
793,
274,
1,
796,
705,
20,
6,
5357,
366,
19044,
2052,
1,
796,
705,
1157,
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
] | [
8241,
468,
642,
9089,
290,
468,
2826,
1367,
7466,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
50055,
4869,
33411,
366,
43,
793,
274,
1,
796,
705,
20,
6,
5357,
366,
19044,
2052,
1,
796,
705,
1157,
6
] |
Find the address line 1 and 2 of the customer with email 'vbogisich@example.org'. | SELECT address_line_1, address_line_2 FROM customers WHERE email_address = "vbogisich@example.org" | [
16742,
262,
2209,
1627,
352,
290,
362,
286,
262,
6491,
351,
3053,
705,
85,
65,
519,
271,
488,
31,
20688,
13,
2398,
4458,
46506,
2209,
62,
1370,
62,
16,
11,
2209,
62,
1370,
62,
17,
16034,
4297,
33411,
3053,
62,
21975,
796,
366,
85,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2209,
1627,
352,
290,
362,
286,
262,
6491,
351,
3053,
705,
85,
65,
519,
271,
488,
31,
20688,
13,
2398,
4458,
46506,
2209,
62,
1370,
62,
16,
11,
2209,
62,
1370,
62,
17,
16034,
4297,
33411,
3053,
62,
21975,
796,
366,
85,... |
what's the party with incumbent being john sparkman | SELECT "Party" FROM table_18634 WHERE "Incumbent" = 'John Sparkman' | [
10919,
338,
262,
2151,
351,
23526,
852,
45610,
9009,
805,
46506,
366,
33553,
1,
16034,
3084,
62,
25096,
2682,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
17732,
805,
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,
338,
262,
2151,
351,
23526,
852,
45610,
9009,
805,
46506,
366,
33553,
1,
16034,
3084,
62,
25096,
2682,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
17732,
805,
6
] |
Top users from Ahmedabad, India. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%ahmedabad, gujarat, india%' OR UPPER(Location) LIKE '%AHMEDABAD, GUJARAT, INDIA%' OR Location LIKE '%Ahmedabad, Gujarat, India%' AND Reputation >= 1000 ORDER BY Reputation DESC | [
9126,
2985,
422,
21157,
17325,
11,
3794,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
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... | [
9126,
2985,
422,
21157,
17325,
11,
3794,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
... |
Which event was against Pat Barry? | SELECT "Event" FROM table_44496 WHERE "Opponent" = 'pat barry' | [
13828,
1785,
373,
1028,
3208,
14488,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
2598,
37747,
33411,
366,
27524,
3471,
1,
796,
705,
8071,
2318,
563,
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
] | [
13828,
1785,
373,
1028,
3208,
14488,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
2598,
37747,
33411,
366,
27524,
3471,
1,
796,
705,
8071,
2318,
563,
6
] |
what were the three most frequent diagnoses for the patients of 20s since 2 years ago? | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-2 yea... | [
10919,
547,
262,
1115,
749,
10792,
40567,
329,
262,
3871,
286,
1160,
82,
1201,
362,
812,
2084,
30,
46506,
256,
16,
13,
47356,
5958,
3672,
16034,
357,
46506,
13669,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
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,
547,
262,
1115,
749,
10792,
40567,
329,
262,
3871,
286,
1160,
82,
1201,
362,
812,
2084,
30,
46506,
256,
16,
13,
47356,
5958,
3672,
16034,
357,
46506,
13669,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357... |
what is the tournament when the country is united states? | SELECT tournament FROM table_name_38 WHERE country = "united states" | [
10919,
318,
262,
7756,
618,
262,
1499,
318,
16503,
2585,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2548,
33411,
1499,
796,
366,
41187,
2585,
1
] | [
1,
1,
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,
7756,
618,
262,
1499,
318,
16503,
2585,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2548,
33411,
1499,
796,
366,
41187,
2585,
1
] |
which is the only year with promotion playoffs and promoted | SELECT "season" FROM table_204_738 WHERE "movements" = 'promotion playoffs - promoted' | [
4758,
318,
262,
691,
614,
351,
12148,
12980,
290,
13722,
46506,
366,
6230,
1,
16034,
3084,
62,
18638,
62,
22,
2548,
33411,
366,
21084,
902,
1,
796,
705,
16963,
9650,
12980,
532,
13722,
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
] | [
4758,
318,
262,
691,
614,
351,
12148,
12980,
290,
13722,
46506,
366,
6230,
1,
16034,
3084,
62,
18638,
62,
22,
2548,
33411,
366,
21084,
902,
1,
796,
705,
16963,
9650,
12980,
532,
13722,
6
] |
what is the difference between the number of total medals the first place nation won and the total number of medals the second place nation won ? | SELECT (SELECT "total" FROM table_203_206 WHERE "rank" = 1) - (SELECT "total" FROM table_203_206 WHERE "rank" = 2) | [
10919,
318,
262,
3580,
1022,
262,
1271,
286,
2472,
28057,
262,
717,
1295,
3277,
1839,
290,
262,
2472,
1271,
286,
28057,
262,
1218,
1295,
3277,
1839,
5633,
46506,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
22136,
33411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
3580,
1022,
262,
1271,
286,
2472,
28057,
262,
717,
1295,
3277,
1839,
290,
262,
2472,
1271,
286,
28057,
262,
1218,
1295,
3277,
1839,
5633,
46506,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
22136,
33411,
366,
... |
did cromer , chipperfield or cheshunt have the most windmills ? | SELECT "location" FROM table_204_929 WHERE "location" IN ('cromer', 'chipperfield', 'cheshunt') GROUP BY "location" ORDER BY COUNT("name of mill and\ngrid reference") DESC LIMIT 1 | [
20839,
269,
398,
263,
837,
442,
14710,
3245,
393,
269,
956,
35060,
423,
262,
749,
2344,
76,
2171,
5633,
46506,
366,
24886,
1,
16034,
3084,
62,
18638,
62,
24,
1959,
33411,
366,
24886,
1,
3268,
19203,
66,
398,
263,
3256,
705,
11072,
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... | [
20839,
269,
398,
263,
837,
442,
14710,
3245,
393,
269,
956,
35060,
423,
262,
749,
2344,
76,
2171,
5633,
46506,
366,
24886,
1,
16034,
3084,
62,
18638,
62,
24,
1959,
33411,
366,
24886,
1,
3268,
19203,
66,
398,
263,
3256,
705,
11072,
2... |
What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is '25', and when Draws is less than 5? | SELECT COUNT(losses) FROM table_name_13 WHERE position > 8 AND goals_for > 34 AND points = 25 AND draws < 5 | [
2061,
318,
262,
2472,
1271,
286,
22014,
274,
11,
618,
23158,
318,
3744,
621,
807,
11,
618,
28510,
1114,
318,
3744,
621,
4974,
11,
618,
11045,
318,
705,
1495,
3256,
290,
618,
15315,
82,
318,
1342,
621,
642,
30,
46506,
327,
28270,
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... | [
2061,
318,
262,
2472,
1271,
286,
22014,
274,
11,
618,
23158,
318,
3744,
621,
807,
11,
618,
28510,
1114,
318,
3744,
621,
4974,
11,
618,
11045,
318,
705,
1495,
3256,
290,
618,
15315,
82,
318,
1342,
621,
642,
30,
46506,
327,
28270,
7,
... |
tell me the age and location of admission for the patient with patient id 2560. | SELECT demographic.age, demographic.admission_location FROM demographic WHERE demographic.subject_id = "2560" | [
33331,
502,
262,
2479,
290,
4067,
286,
13938,
329,
262,
5827,
351,
5827,
4686,
1679,
1899,
13,
46506,
16728,
13,
496,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
290,
4067,
286,
13938,
329,
262,
5827,
351,
5827,
4686,
1679,
1899,
13,
46506,
16728,
13,
496,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
is yesterday patient 5828's arterial bp [systolic] normal? | SELECT COUNT(*) > 0 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 = 5828)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systo... | [
271,
7415,
5827,
7618,
2078,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
7415,
5827,
7618,
2078,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... |
Which Visitor has a Decision of myre, and a Record of 44 7 15? | SELECT "Visitor" FROM table_33912 WHERE "Decision" = 'myre' AND "Record" = '44–7–15' | [
13828,
6911,
2072,
468,
257,
26423,
286,
616,
260,
11,
290,
257,
13266,
286,
5846,
767,
1315,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
29626,
1065,
33411,
366,
10707,
1166,
1,
796,
705,
1820,
260,
6,
5357,
366,
23739,
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
] | [
13828,
6911,
2072,
468,
257,
26423,
286,
616,
260,
11,
290,
257,
13266,
286,
5846,
767,
1315,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
29626,
1065,
33411,
366,
10707,
1166,
1,
796,
705,
1820,
260,
6,
5357,
366,
23739,
1,
796... |
Who is the third alternate for Germany? | SELECT third FROM table_name_56 WHERE nation = "germany" | [
8241,
318,
262,
2368,
13527,
329,
4486,
30,
46506,
2368,
16034,
3084,
62,
3672,
62,
3980,
33411,
3277,
796,
366,
1362,
21834,
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,
2368,
13527,
329,
4486,
30,
46506,
2368,
16034,
3084,
62,
3672,
62,
3980,
33411,
3277,
796,
366,
1362,
21834,
1
] |
In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal? | SELECT "Open Cup" FROM table_8386 WHERE "Playoffs" = 'conference semifinal' AND "Year" = '2012' | [
818,
2321,
11,
543,
2835,
287,
262,
4946,
5454,
750,
6416,
7492,
5426,
274,
787,
340,
284,
262,
4495,
32948,
1292,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
23,
21734,
33411,
366,
11002,
8210,
1,
796,
705,
41124,
32948,
1292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
2321,
11,
543,
2835,
287,
262,
4946,
5454,
750,
6416,
7492,
5426,
274,
787,
340,
284,
262,
4495,
32948,
1292,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
23,
21734,
33411,
366,
11002,
8210,
1,
796,
705,
41124,
32948,
1292,
... |
Who has a walking data of 214.061km? | SELECT athlete FROM table_name_66 WHERE data = "214.061km" | [
8241,
468,
257,
6155,
1366,
286,
28277,
13,
3312,
16,
13276,
30,
46506,
16076,
16034,
3084,
62,
3672,
62,
2791,
33411,
1366,
796,
366,
22291,
13,
3312,
16,
13276,
1
] | [
1,
1,
1,
1,
1,
1,
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,
468,
257,
6155,
1366,
286,
28277,
13,
3312,
16,
13276,
30,
46506,
16076,
16034,
3084,
62,
3672,
62,
2791,
33411,
1366,
796,
366,
22291,
13,
3312,
16,
13276,
1
] |
What year did was the Inside Soap Awards won? | SELECT AVG(year) FROM table_name_41 WHERE result = "won" AND award = "inside soap awards" | [
2061,
614,
750,
373,
262,
14384,
1406,
499,
15434,
1839,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
1255,
796,
366,
26502,
1,
5357,
5764,
796,
366,
48787,
19533,
13304,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
373,
262,
14384,
1406,
499,
15434,
1839,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
1255,
796,
366,
26502,
1,
5357,
5764,
796,
366,
48787,
19533,
13304,
1
] |
What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird? | SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird" | [
2061,
318,
262,
337,
14630,
286,
262,
1105,
13,
5333,
308,
14331,
10888,
12,
817,
305,
515,
11054,
2229,
16944,
30,
46506,
327,
28270,
7,
76,
14630,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
3463,
796,
366,
1065,
13,
5333,
308,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
337,
14630,
286,
262,
1105,
13,
5333,
308,
14331,
10888,
12,
817,
305,
515,
11054,
2229,
16944,
30,
46506,
327,
28270,
7,
76,
14630,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
3463,
796,
366,
1065,
13,
5333,
308,
1,
... |
What are the names and average salaries for departments with average salary higher than 42000? | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000 | [
2061,
389,
262,
3891,
290,
2811,
17058,
329,
13346,
351,
2811,
9588,
2440,
621,
5433,
830,
30,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,
62,
3672,
367,
10116,
2751,
35224,
7,
21680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
290,
2811,
17058,
329,
13346,
351,
2811,
9588,
2440,
621,
5433,
830,
30,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,
62,
3672,
367,
10116,
2751,
35224,
7,
21680,
... |
who has scored more goals than any other melbourne player ? | SELECT "name" FROM table_203_221 ORDER BY "goals scored" DESC LIMIT 1 | [
8727,
468,
7781,
517,
4661,
621,
597,
584,
7758,
12544,
2137,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
26115,
38678,
11050,
366,
2188,
874,
7781,
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,
1,
1
] | [
8727,
468,
7781,
517,
4661,
621,
597,
584,
7758,
12544,
2137,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
26115,
38678,
11050,
366,
2188,
874,
7781,
1,
22196,
34,
27564,
2043,
352
] |
What is the total number of bronze medals for teams with less than 0 silver? | SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
329,
3466,
351,
1342,
621,
657,
8465,
30,
46506,
327,
28270,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
8465,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22101,
28057,
329,
3466,
351,
1342,
621,
657,
8465,
30,
46506,
327,
28270,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
8465,
1279,
657
] |
Bar graph to show how many location from different location, and list total number from low to high order. | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) | [
10374,
4823,
284,
905,
703,
867,
4067,
422,
1180,
4067,
11,
290,
1351,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
4429,
44441,
11050,
13397,
38678,
11050,
327,
28270,
7,
14749,
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
] | [
10374,
4823,
284,
905,
703,
867,
4067,
422,
1180,
4067,
11,
290,
1351,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
4429,
44441,
11050,
13397,
38678,
11050,
327,
28270,
7,
14749,
8
] |
What was the number of others votes in Columbia county? | SELECT MIN("Others#") FROM table_73224 WHERE "County" = 'Columbia' | [
2061,
373,
262,
1271,
286,
1854,
5690,
287,
9309,
7968,
30,
46506,
20625,
7203,
25599,
2,
4943,
16034,
3084,
62,
22,
2624,
1731,
33411,
366,
12332,
88,
1,
796,
705,
36063,
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
] | [
2061,
373,
262,
1271,
286,
1854,
5690,
287,
9309,
7968,
30,
46506,
20625,
7203,
25599,
2,
4943,
16034,
3084,
62,
22,
2624,
1731,
33411,
366,
12332,
88,
1,
796,
705,
36063,
544,
6
] |
What is the rank when 233 shows for places and SP+FS smaller than 27? | SELECT COUNT("Rank") FROM table_57227 WHERE "Places" = '233' AND "SP+FS" < '27' | [
2061,
318,
262,
4279,
618,
30435,
2523,
329,
4113,
290,
6226,
10,
10652,
4833,
621,
2681,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
3553,
24403,
33411,
366,
3646,
2114,
1,
796,
705,
25429,
6,
5357,
366,
4303,
10,
1065... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
618,
30435,
2523,
329,
4113,
290,
6226,
10,
10652,
4833,
621,
2681,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
3553,
24403,
33411,
366,
3646,
2114,
1,
796,
705,
25429,
6,
5357,
366,
4303,
10,
1065... |
What was the final score on week 14 ? | SELECT final_score FROM table_name_53 WHERE week = 14 | [
2061,
373,
262,
2457,
4776,
319,
1285,
1478,
5633,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
4310,
33411,
1285,
796,
1478
] | [
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,
2457,
4776,
319,
1285,
1478,
5633,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
4310,
33411,
1285,
796,
1478
] |
When the total was smaller than 290, what was the highest To par? | SELECT MAX(to_par) FROM table_name_24 WHERE total < 290 | [
2215,
262,
2472,
373,
4833,
621,
26481,
11,
644,
373,
262,
4511,
1675,
1582,
30,
46506,
25882,
7,
1462,
62,
1845,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
2472,
1279,
26481
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2472,
373,
4833,
621,
26481,
11,
644,
373,
262,
4511,
1675,
1582,
30,
46506,
25882,
7,
1462,
62,
1845,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
2472,
1279,
26481
] |
Search for copyright notices in posts. | SELECT Post.Id AS "post_link", Post.OwnerUserId AS "user_link", Post.Score, Post.CreationDate, Post.ViewCount FROM Posts AS Post WHERE Post.Body LIKE '%// Copyright%' LIMIT 100 | [
18243,
329,
6634,
19748,
287,
6851,
13,
46506,
2947,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
2947,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
2947,
13,
26595,
11,
2947,
13,
12443,
341,
10430,
11,
2947,
13,
7680,
12332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
18243,
329,
6634,
19748,
287,
6851,
13,
46506,
2947,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
2947,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
2947,
13,
26595,
11,
2947,
13,
12443,
341,
10430,
11,
2947,
13,
7680,
12332... |
When is the club founded that founed prsl in 2008 and the home city is carolina 1? | SELECT MAX("Founded") FROM table_76183 WHERE "Joined PRSL" = '2008' AND "Home city" = 'carolina 1' | [
2215,
318,
262,
3430,
9393,
326,
277,
977,
276,
778,
6649,
287,
3648,
290,
262,
1363,
1748,
318,
1097,
47196,
352,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
4304,
24839,
33411,
366,
24363,
4810,
8634,
1,
796,
705,
11528... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
3430,
9393,
326,
277,
977,
276,
778,
6649,
287,
3648,
290,
262,
1363,
1748,
318,
1097,
47196,
352,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
4304,
24839,
33411,
366,
24363,
4810,
8634,
1,
796,
705,
11528... |
provide the number of patients whose lab test abnormal status is delta and lab test name is promyelocytes? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "delta" AND lab.label = "Promyelocytes" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2248,
1332,
18801,
3722,
318,
25979,
290,
2248,
1332,
1438,
318,
1552,
88,
417,
30309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
2248,
1332,
18801,
3722,
318,
25979,
290,
2248,
1332,
1438,
318,
1552,
88,
417,
30309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... |
What bowler has a record of 4-15? | SELECT "Player" FROM table_67400 WHERE "Bowling" = '4-15' | [
2061,
9563,
1754,
468,
257,
1700,
286,
604,
12,
1314,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
3134,
7029,
33411,
366,
39961,
1359,
1,
796,
705,
19,
12,
1314,
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,
9563,
1754,
468,
257,
1700,
286,
604,
12,
1314,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
3134,
7029,
33411,
366,
39961,
1359,
1,
796,
705,
19,
12,
1314,
6
] |
How many games had an average of 12796? | SELECT COUNT(overall_gms) FROM table_27094070_4 WHERE overall_avg = 12796 | [
2437,
867,
1830,
550,
281,
2811,
286,
1105,
41060,
30,
46506,
327,
28270,
7,
2502,
439,
62,
70,
907,
8,
16034,
3084,
62,
1983,
2931,
1821,
2154,
62,
19,
33411,
4045,
62,
615,
70,
796,
1105,
41060
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
550,
281,
2811,
286,
1105,
41060,
30,
46506,
327,
28270,
7,
2502,
439,
62,
70,
907,
8,
16034,
3084,
62,
1983,
2931,
1821,
2154,
62,
19,
33411,
4045,
62,
615,
70,
796,
1105,
41060
] |
Number of posts with a tag name grouped by day. | SELECT DATE(CreationDate), COUNT(PostId) FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Tags.TagName = '##TagName:string##' GROUP BY DATE(CreationDate) ORDER BY DATE(CreationDate) | [
15057,
286,
6851,
351,
257,
7621,
1438,
32824,
416,
1110,
13,
46506,
360,
6158,
7,
12443,
341,
10430,
828,
327,
28270,
7,
6307,
7390,
8,
16034,
44789,
11,
2947,
36142,
11,
12043,
33411,
44789,
13,
7390,
796,
2947,
36142,
13,
24835,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
6851,
351,
257,
7621,
1438,
32824,
416,
1110,
13,
46506,
360,
6158,
7,
12443,
341,
10430,
828,
327,
28270,
7,
6307,
7390,
8,
16034,
44789,
11,
2947,
36142,
11,
12043,
33411,
44789,
13,
7390,
796,
2947,
36142,
13,
24835,
73... |
when was the last hospital admission that patient 17694 was admitted since 3 years ago via the transfer from hosp/extram? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 17694 AND admissions.admission_location = 'transfer from hosp/extram' AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.admittime DESC LIMIT 1 | [
12518,
373,
262,
938,
4436,
13938,
326,
5827,
1596,
45214,
373,
6848,
1201,
513,
812,
2084,
2884,
262,
4351,
422,
10496,
14,
2302,
859,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
4436,
13938,
326,
5827,
1596,
45214,
373,
6848,
1201,
513,
812,
2084,
2884,
262,
4351,
422,
10496,
14,
2302,
859,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1596,
... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and manufacturer , and group by attribute name, I want to sort Y-axis in desc order please. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Manufacturer DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1715,
1502,
3387,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1715,
1502,
3387,
13,
4... |
What is the location of the track that opened in 1950? | SELECT location FROM table_1245148_1 WHERE year_opened = 1950 | [
2061,
318,
262,
4067,
286,
262,
2610,
326,
4721,
287,
11445,
30,
46506,
4067,
16034,
3084,
62,
1065,
2231,
18294,
62,
16,
33411,
614,
62,
26350,
796,
11445
] | [
1,
1,
1,
1,
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,
4067,
286,
262,
2610,
326,
4721,
287,
11445,
30,
46506,
4067,
16034,
3084,
62,
1065,
2231,
18294,
62,
16,
33411,
614,
62,
26350,
796,
11445
] |
Would there be any upper level classes that do n't require 494 ? | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%topic0%' OR name LIKE '%topic0%') AND department = 'EECS' | [
17353,
612,
307,
597,
6727,
1241,
6097,
326,
466,
299,
470,
2421,
5125,
19,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
26652,
15,
4,
6,
6375,
1438,
34178,
705,
4,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17353,
612,
307,
597,
6727,
1241,
6097,
326,
466,
299,
470,
2421,
5125,
19,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
26652,
15,
4,
6,
6375,
1438,
34178,
705,
4,
266... |
A pie chart shows the proportion of All_Home and the sum of school id. | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home | [
32,
2508,
8262,
2523,
262,
9823,
286,
1439,
62,
16060,
290,
262,
2160,
286,
1524,
4686,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2508,
8262,
2523,
262,
9823,
286,
1439,
62,
16060,
290,
262,
2160,
286,
1524,
4686,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060
] |
What's the sSpec number of the processor having an ultra-low power I/O? | SELECT sspec_number FROM table_name_57 WHERE i_o_bus = "ultra-low power" | [
2061,
338,
262,
264,
22882,
1271,
286,
262,
12649,
1719,
281,
14764,
12,
9319,
1176,
314,
14,
46,
30,
46506,
264,
16684,
62,
17618,
16034,
3084,
62,
3672,
62,
3553,
33411,
1312,
62,
78,
62,
10885,
796,
366,
586,
430,
12,
9319,
1176,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
338,
262,
264,
22882,
1271,
286,
262,
12649,
1719,
281,
14764,
12,
9319,
1176,
314,
14,
46,
30,
46506,
264,
16684,
62,
17618,
16034,
3084,
62,
3672,
62,
3553,
33411,
1312,
62,
78,
62,
10885,
796,
366,
586,
430,
12,
9319,
1176,... |
Who is the Original Australian performer when the Original West End Performer is Linzi Hateley? | SELECT original_australian_performer FROM table_1901751_1 WHERE original_west_end_performer = "Linzi Hateley" | [
8241,
318,
262,
13745,
6638,
26960,
618,
262,
13745,
2688,
5268,
2448,
16354,
318,
5164,
17027,
28334,
1636,
30,
46506,
2656,
62,
64,
436,
1373,
666,
62,
525,
16354,
16034,
3084,
62,
1129,
486,
48365,
62,
16,
33411,
2656,
62,
7038,
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
] | [
8241,
318,
262,
13745,
6638,
26960,
618,
262,
13745,
2688,
5268,
2448,
16354,
318,
5164,
17027,
28334,
1636,
30,
46506,
2656,
62,
64,
436,
1373,
666,
62,
525,
16354,
16034,
3084,
62,
1129,
486,
48365,
62,
16,
33411,
2656,
62,
7038,
62... |
What is the points for when the total points is 6? | SELECT "Points for" FROM table_1527 WHERE "Points" = '6' | [
2061,
318,
262,
2173,
329,
618,
262,
2472,
2173,
318,
718,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
1314,
1983,
33411,
366,
40710,
1,
796,
705,
21,
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,
318,
262,
2173,
329,
618,
262,
2472,
2173,
318,
718,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
1314,
1983,
33411,
366,
40710,
1,
796,
705,
21,
6
] |
In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )? | SELECT "Place" FROM table_59274 WHERE "Silver" = 'valeri postoianov ( urs )' AND "Year" > '1969' AND "Bronze" = 'alexander gazov ( urs )' | [
818,
543,
8474,
373,
262,
7698,
1839,
416,
1188,
33442,
1281,
78,
666,
709,
357,
220,
1834,
1267,
1568,
621,
16450,
290,
262,
19461,
1839,
416,
257,
2588,
4066,
308,
1031,
709,
357,
220,
1834,
1267,
30,
46506,
366,
27271,
1,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
818,
543,
8474,
373,
262,
7698,
1839,
416,
1188,
33442,
1281,
78,
666,
709,
357,
220,
1834,
1267,
1568,
621,
16450,
290,
262,
19461,
1839,
416,
257,
2588,
4066,
308,
1031,
709,
357,
220,
1834,
1267,
30,
46506,
366,
27271,
1,
16034,
... |
how many hours have it been since patient 006-202970 was admitted in the icu? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '006-202970' AND patient.unitdischargetime IS NULL | [
4919,
867,
2250,
423,
340,
587,
1201,
5827,
3571,
21,
12,
1238,
1959,
2154,
373,
6848,
287,
262,
14158,
84,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
3571,
21,
12,
1238,
1959,
2154,
373,
6848,
287,
262,
14158,
84,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
107... |
Which entrant scored less than 8 points and used a Maserati chassis? | SELECT "Entrant" FROM table_70593 WHERE "Points" < '8' AND "Chassis" = 'maserati' | [
13828,
920,
5250,
7781,
1342,
621,
807,
2173,
290,
973,
257,
337,
6005,
7246,
24587,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
2154,
49051,
33411,
366,
40710,
1,
1279,
705,
23,
6,
5357,
366,
1925,
20297,
1,
796,
705,
5356,
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
] | [
13828,
920,
5250,
7781,
1342,
621,
807,
2173,
290,
973,
257,
337,
6005,
7246,
24587,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
2154,
49051,
33411,
366,
40710,
1,
1279,
705,
23,
6,
5357,
366,
1925,
20297,
1,
796,
705,
5356,
26... |
whats the name of the insurance for patient 1903 during the last hospital encounter? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 1903 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
1929,
1381,
262,
1438,
286,
262,
5096,
329,
5827,
41625,
1141,
262,
938,
4436,
8791,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
41625,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
3867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1929,
1381,
262,
1438,
286,
262,
5096,
329,
5827,
41625,
1141,
262,
938,
4436,
8791,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
41625,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
3867... |
What is the highest number of games with more than 0 draws and 11 losses? | SELECT MAX("Games") FROM table_47038 WHERE "Draws" > '0' AND "Lost" = '11' | [
2061,
318,
262,
4511,
1271,
286,
1830,
351,
517,
621,
657,
14293,
290,
1367,
9089,
30,
46506,
25882,
7203,
24474,
4943,
16034,
3084,
62,
27790,
2548,
33411,
366,
25302,
82,
1,
1875,
705,
15,
6,
5357,
366,
31042,
1,
796,
705,
1157,
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
] | [
2061,
318,
262,
4511,
1271,
286,
1830,
351,
517,
621,
657,
14293,
290,
1367,
9089,
30,
46506,
25882,
7203,
24474,
4943,
16034,
3084,
62,
27790,
2548,
33411,
366,
25302,
82,
1,
1875,
705,
15,
6,
5357,
366,
31042,
1,
796,
705,
1157,
6... |
Where the away team is Bradford City, who is the home team? | SELECT "Home team" FROM table_41723 WHERE "Away team" = 'bradford city' | [
8496,
262,
1497,
1074,
318,
28199,
2254,
11,
508,
318,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
38547,
1954,
33411,
366,
32,
1014,
1074,
1,
796,
705,
1671,
324,
3841,
1748,
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
] | [
8496,
262,
1497,
1074,
318,
28199,
2254,
11,
508,
318,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
38547,
1954,
33411,
366,
32,
1014,
1074,
1,
796,
705,
1671,
324,
3841,
1748,
6
] |
Which city has tasmania as the state/territory and a ICAO of ymhb? | SELECT "City" FROM table_36854 WHERE "State/Territory" = 'tasmania' AND "ICAO" = 'ymhb' | [
13828,
1748,
468,
256,
292,
45733,
355,
262,
1181,
14,
353,
799,
652,
290,
257,
314,
8141,
46,
286,
331,
76,
71,
65,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
27412,
4051,
33411,
366,
9012,
14,
15156,
799,
652,
1,
796,
705,
83,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
468,
256,
292,
45733,
355,
262,
1181,
14,
353,
799,
652,
290,
257,
314,
8141,
46,
286,
331,
76,
71,
65,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
27412,
4051,
33411,
366,
9012,
14,
15156,
799,
652,
1,
796,
705,
83,
... |
What is my accepted answer percentage rate?. What is my accepted answer percentage rate
On avg how often are answers I give, accepted.
----
Original source: https://data.stackexchange.com/stackoverflow/query/949/what-is-my-accepted-answer-percentage-rate | SELECT (CAST(COUNT(a.Id) AS FLOAT) / (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 2) * 100) AS AcceptedPercentage FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 | [
2061,
318,
616,
6292,
3280,
5873,
2494,
30,
13,
1867,
318,
616,
6292,
3280,
5873,
2494,
201,
198,
2202,
42781,
703,
1690,
389,
7429,
314,
1577,
11,
6292,
13,
201,
198,
201,
198,
650,
201,
198,
201,
198,
20556,
2723,
25,
3740,
1378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
616,
6292,
3280,
5873,
2494,
30,
13,
1867,
318,
616,
6292,
3280,
5873,
2494,
201,
198,
2202,
42781,
703,
1690,
389,
7429,
314,
1577,
11,
6292,
13,
201,
198,
201,
198,
650,
201,
198,
201,
198,
20556,
2723,
25,
3740,
1378,
... |
What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia? | SELECT "Date" FROM table_35915 WHERE "Venue" = 'hrazdan stadium, yerevan, armenia' | [
2061,
3128,
373,
262,
983,
2826,
379,
262,
14359,
286,
367,
3247,
25604,
10499,
11,
575,
567,
10438,
11,
32369,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
30743,
1314,
33411,
366,
37522,
518,
1,
796,
705,
71,
3247,
25604,
10308,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
262,
983,
2826,
379,
262,
14359,
286,
367,
3247,
25604,
10499,
11,
575,
567,
10438,
11,
32369,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
30743,
1314,
33411,
366,
37522,
518,
1,
796,
705,
71,
3247,
25604,
10308,
11,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.