instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and show Y in desc order. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
905,
575,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
905,
575,
287,
... |
What is the production code number for episode named 'chilly scenes of winter golf'? | SELECT MIN("Prod. code") FROM table_22531 WHERE "Title" = 'Chilly Scenes of Winter Golf' | [
2061,
318,
262,
3227,
2438,
1271,
329,
4471,
3706,
705,
354,
6548,
8188,
286,
7374,
13126,
30960,
46506,
20625,
7203,
2964,
67,
13,
2438,
4943,
16034,
3084,
62,
18182,
3132,
33411,
366,
19160,
1,
796,
705,
1925,
6548,
49525,
286,
10633,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3227,
2438,
1271,
329,
4471,
3706,
705,
354,
6548,
8188,
286,
7374,
13126,
30960,
46506,
20625,
7203,
2964,
67,
13,
2438,
4943,
16034,
3084,
62,
18182,
3132,
33411,
366,
19160,
1,
796,
705,
1925,
6548,
49525,
286,
10633,... |
find the number of patients with procedure icd9 code 3142 who died on or before 2133. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2133.0" AND procedures.icd9_code = "3142" | [
19796,
262,
1271,
286,
3871,
351,
8771,
14158,
67,
24,
2438,
513,
23726,
508,
3724,
319,
393,
878,
362,
16945,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
3871,
351,
8771,
14158,
67,
24,
2438,
513,
23726,
508,
3724,
319,
393,
878,
362,
16945,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,... |
When the 200 result was +1.6, what was the percentage? | SELECT "Kerry%" FROM table_21808 WHERE "2000 result" = '+1.6' | [
2215,
262,
939,
1255,
373,
1343,
16,
13,
21,
11,
644,
373,
262,
5873,
30,
46506,
366,
42,
6996,
39658,
16034,
3084,
62,
28727,
2919,
33411,
366,
11024,
1255,
1,
796,
705,
10,
16,
13,
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,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
939,
1255,
373,
1343,
16,
13,
21,
11,
644,
373,
262,
5873,
30,
46506,
366,
42,
6996,
39658,
16034,
3084,
62,
28727,
2919,
33411,
366,
11024,
1255,
1,
796,
705,
10,
16,
13,
21,
6
] |
how many days have passed since patient 013-38992 has been admitted to the hospital? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '013-38992' AND patient.hospitaldischargetime IS NULL | [
4919,
867,
1528,
423,
3804,
1201,
5827,
5534,
18,
12,
2548,
41561,
468,
587,
6848,
284,
262,
4436,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
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... | [
4919,
867,
1528,
423,
3804,
1201,
5827,
5534,
18,
12,
2548,
41561,
468,
587,
6848,
284,
262,
4436,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,... |
What party is the winner K. Anbazhagan from? | SELECT "Party a" FROM table_2699 WHERE "Winner" = 'K. Anbazhagan' | [
2061,
2151,
318,
262,
8464,
509,
13,
1052,
65,
1031,
71,
7329,
422,
30,
46506,
366,
33553,
257,
1,
16034,
3084,
62,
2075,
2079,
33411,
366,
48056,
1,
796,
705,
42,
13,
1052,
65,
1031,
71,
7329,
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,
2151,
318,
262,
8464,
509,
13,
1052,
65,
1031,
71,
7329,
422,
30,
46506,
366,
33553,
257,
1,
16034,
3084,
62,
2075,
2079,
33411,
366,
48056,
1,
796,
705,
42,
13,
1052,
65,
1031,
71,
7329,
6
] |
global lvef between 30 and 45 % . | SELECT * FROM table_test_5 WHERE global_lvef >= 30 AND global_lvef <= 45 | [
20541,
300,
303,
69,
1022,
1542,
290,
4153,
4064,
764,
46506,
1635,
16034,
3084,
62,
9288,
62,
20,
33411,
3298,
62,
75,
303,
69,
18189,
1542,
5357,
3298,
62,
75,
303,
69,
19841,
4153
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20541,
300,
303,
69,
1022,
1542,
290,
4153,
4064,
764,
46506,
1635,
16034,
3084,
62,
9288,
62,
20,
33411,
3298,
62,
75,
303,
69,
18189,
1542,
5357,
3298,
62,
75,
303,
69,
19841,
4153
] |
What is the Termination of Mission with a Title of Ambassador Extraordinary and Plenipotentiary with a Representative of Reynold E. Carlson? | SELECT termination_of_mission FROM table_name_37 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "reynold e. carlson" | [
2061,
318,
262,
15527,
341,
286,
12633,
351,
257,
11851,
286,
20656,
17221,
35947,
290,
1345,
268,
541,
33715,
8042,
351,
257,
19920,
286,
18567,
727,
412,
13,
33059,
30,
46506,
19883,
62,
1659,
62,
3411,
16034,
3084,
62,
3672,
62,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15527,
341,
286,
12633,
351,
257,
11851,
286,
20656,
17221,
35947,
290,
1345,
268,
541,
33715,
8042,
351,
257,
19920,
286,
18567,
727,
412,
13,
33059,
30,
46506,
19883,
62,
1659,
62,
3411,
16034,
3084,
62,
3672,
62,
27... |
Draw a bar chart about the distribution of All_Road and Team_ID , I want to order x axis in desc order. | SELECT All_Road, Team_ID FROM basketball_match ORDER BY All_Road DESC | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
837,
314,
765,
284,
1502,
2124,
16488,
287,
1715,
1502,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
1439,
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
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
837,
314,
765,
284,
1502,
2124,
16488,
287,
1715,
1502,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
1439,
62,... |
Draw a bar chart about the distribution of password and gender_mf . | SELECT password, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
9206,
290,
5279,
62,
76,
69,
764,
46506,
9206,
11,
5279,
62,
76,
69,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
9206,
290,
5279,
62,
76,
69,
764,
46506,
9206,
11,
5279,
62,
76,
69,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
62,
3672
] |
What are the names of representatives and the dates of elections they participated in. | SELECT T2.Name, T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID | [
2061,
389,
262,
3891,
286,
10826,
290,
262,
9667,
286,
7024,
484,
14888,
287,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10430,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
40171,
876,
62,
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
] | [
2061,
389,
262,
3891,
286,
10826,
290,
262,
9667,
286,
7024,
484,
14888,
287,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10430,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
40171,
876,
62,
2... |
Create a bar chart showing how many team across team, and I want to order in descending by the names. | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY Team DESC | [
16447,
257,
2318,
8262,
4478,
703,
867,
1074,
1973,
1074,
11,
290,
314,
765,
284,
1502,
287,
31491,
416,
262,
3891,
13,
46506,
4816,
11,
327,
28270,
7,
15592,
8,
16034,
27405,
1883,
44441,
11050,
4816,
38678,
11050,
4816,
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
] | [
16447,
257,
2318,
8262,
4478,
703,
867,
1074,
1973,
1074,
11,
290,
314,
765,
284,
1502,
287,
31491,
416,
262,
3891,
13,
46506,
4816,
11,
327,
28270,
7,
15592,
8,
16034,
27405,
1883,
44441,
11050,
4816,
38678,
11050,
4816,
22196,
34
] |
among the patients who have been prescribed with clopidogrel bisulfate after having been diagnosed with kidney laceration-open give me the four year survival probability. | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
35131,
262,
3871,
508,
423,
587,
14798,
351,
537,
404,
312,
519,
2411,
47457,
4754,
378,
706,
1719,
587,
14641,
351,
21919,
300,
11736,
341,
12,
9654,
1577,
502,
262,
1440,
614,
9441,
12867,
13,
46506,
35683,
7,
34,
11159,
42099,
3871... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35131,
262,
3871,
508,
423,
587,
14798,
351,
537,
404,
312,
519,
2411,
47457,
4754,
378,
706,
1719,
587,
14641,
351,
21919,
300,
11736,
341,
12,
9654,
1577,
502,
262,
1440,
614,
9441,
12867,
13,
46506,
35683,
7,
34,
11159,
42099,
3871... |
In what round was lyon (32) a 5 seed? | SELECT lyon__32_ FROM table_20711545_1 WHERE seed = 5 | [
818,
644,
2835,
373,
300,
19181,
357,
2624,
8,
257,
642,
9403,
30,
46506,
300,
19181,
834,
2624,
62,
16034,
3084,
62,
22745,
15363,
2231,
62,
16,
33411,
9403,
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,
1,
1,
1,
1
] | [
818,
644,
2835,
373,
300,
19181,
357,
2624,
8,
257,
642,
9403,
30,
46506,
300,
19181,
834,
2624,
62,
16034,
3084,
62,
22745,
15363,
2231,
62,
16,
33411,
9403,
796,
642
] |
What is the name of the player that had a debut in round 6? | SELECT "Name" FROM table_53555 WHERE "Debut" = 'round 6' | [
2061,
318,
262,
1438,
286,
262,
2137,
326,
550,
257,
8886,
287,
2835,
718,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
44465,
2816,
33411,
366,
16587,
315,
1,
796,
705,
744,
718,
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,
1438,
286,
262,
2137,
326,
550,
257,
8886,
287,
2835,
718,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
44465,
2816,
33411,
366,
16587,
315,
1,
796,
705,
744,
718,
6
] |
Number of tags on a post and how that affects post performance. | SELECT p.Id, Score, ViewCount AS "#views", AnswerCount AS "#answers", COUNT(TagName) AS "#tags" FROM Posts AS p LEFT OUTER JOIN PostTags AS pt ON p.Id = pt.PostId LEFT OUTER JOIN Tags AS t ON pt.TagId = t.Id WHERE PostTypeId = 1 AND CreationDate >= '2018-10-1' GROUP BY p.Id, Score, ViewCount, AnswerCount | [
15057,
286,
15940,
319,
257,
1281,
290,
703,
326,
10975,
1281,
2854,
13,
46506,
279,
13,
7390,
11,
15178,
11,
3582,
12332,
7054,
25113,
33571,
1600,
23998,
12332,
7054,
25113,
504,
86,
364,
1600,
327,
28270,
7,
24835,
5376,
8,
7054,
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... | [
15057,
286,
15940,
319,
257,
1281,
290,
703,
326,
10975,
1281,
2854,
13,
46506,
279,
13,
7390,
11,
15178,
11,
3582,
12332,
7054,
25113,
33571,
1600,
23998,
12332,
7054,
25113,
504,
86,
364,
1600,
327,
28270,
7,
24835,
5376,
8,
7054,
2... |
Who were the Opponents in the final in the match with a Score in the final of 1 6, 6 3, 2 6? | SELECT "Opponents in the final" FROM table_7191 WHERE "Score in the final" = '1–6, 6–3, 2–6' | [
8241,
547,
262,
9385,
3906,
287,
262,
2457,
287,
262,
2872,
351,
257,
15178,
287,
262,
2457,
286,
352,
718,
11,
718,
513,
11,
362,
718,
30,
46506,
366,
27524,
3906,
287,
262,
2457,
1,
16034,
3084,
62,
22,
26492,
33411,
366,
26595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
9385,
3906,
287,
262,
2457,
287,
262,
2872,
351,
257,
15178,
287,
262,
2457,
286,
352,
718,
11,
718,
513,
11,
362,
718,
30,
46506,
366,
27524,
3906,
287,
262,
2457,
1,
16034,
3084,
62,
22,
26492,
33411,
366,
26595,
... |
give me the number of patients whose ethnicity is white and primary disease is hypertension;rule out coronary artery disease\cardiac cath? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2330,
290,
4165,
4369,
318,
37454,
26,
25135,
503,
37151,
37646,
4369,
59,
9517,
9607,
32171,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26289,
318,
2330,
290,
4165,
4369,
318,
37454,
26,
25135,
503,
37151,
37646,
4369,
59,
9517,
9607,
32171,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
167... |
How many million u.s. Viewers watched season 1? | SELECT us_viewers__in_millions_ FROM table_19188562_2 WHERE season = 1 | [
2437,
867,
1510,
334,
13,
82,
13,
3582,
364,
7342,
1622,
352,
30,
46506,
514,
62,
1177,
364,
834,
259,
62,
17805,
507,
62,
16034,
3084,
62,
1129,
20356,
43918,
62,
17,
33411,
1622,
796,
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,
1,
1
] | [
2437,
867,
1510,
334,
13,
82,
13,
3582,
364,
7342,
1622,
352,
30,
46506,
514,
62,
1177,
364,
834,
259,
62,
17805,
507,
62,
16034,
3084,
62,
1129,
20356,
43918,
62,
17,
33411,
1622,
796,
352
] |
Which Events has Earnings of $113,259, and an Average larger than 229.5? | SELECT MAX("Events") FROM table_40421 WHERE "Earnings" = '$113,259' AND "Average" > '229.5' | [
13828,
18715,
468,
22535,
654,
286,
720,
16616,
11,
25191,
11,
290,
281,
13475,
4025,
621,
31064,
13,
20,
30,
46506,
25882,
7203,
37103,
4943,
16034,
3084,
62,
26429,
2481,
33411,
366,
49725,
654,
1,
796,
705,
3,
16616,
11,
25191,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
18715,
468,
22535,
654,
286,
720,
16616,
11,
25191,
11,
290,
281,
13475,
4025,
621,
31064,
13,
20,
30,
46506,
25882,
7203,
37103,
4943,
16034,
3084,
62,
26429,
2481,
33411,
366,
49725,
654,
1,
796,
705,
3,
16616,
11,
25191,
6,
... |
count the number of patients who have been treated with a creat esophagastr sphinc procedure in this year. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'creat esophagastr sphinc') AND DATETIME(procedures_i... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
5716,
351,
257,
1827,
1658,
2522,
363,
459,
81,
599,
71,
1939,
8771,
287,
428,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
423,
587,
5716,
351,
257,
1827,
1658,
2522,
363,
459,
81,
599,
71,
1939,
8771,
287,
428,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,... |
tell me the minimum cost of a hospital that involved pancreatitis - relapsing last year? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pancreatitis - relapsing')) AND DATETIME(cos... | [
33331,
502,
262,
5288,
1575,
286,
257,
4436,
326,
2950,
47767,
11815,
532,
823,
1686,
278,
938,
614,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
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... | [
33331,
502,
262,
5288,
1575,
286,
257,
4436,
326,
2950,
47767,
11815,
532,
823,
1686,
278,
938,
614,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
... |
When did lucy benjamin exit? | SELECT "Exited" FROM table_37906 WHERE "Celebrity" = 'lucy benjamin' | [
2215,
750,
300,
84,
948,
1888,
13337,
8420,
30,
46506,
366,
3109,
863,
1,
16034,
3084,
62,
29088,
3312,
33411,
366,
42741,
1671,
414,
1,
796,
705,
2290,
948,
1888,
13337,
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
] | [
2215,
750,
300,
84,
948,
1888,
13337,
8420,
30,
46506,
366,
3109,
863,
1,
16034,
3084,
62,
29088,
3312,
33411,
366,
42741,
1671,
414,
1,
796,
705,
2290,
948,
1888,
13337,
6
] |
What is the tournament with A in 2011? | SELECT "Tournament" FROM table_15089 WHERE "2011" = 'a' | [
2061,
318,
262,
7756,
351,
317,
287,
2813,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
8628,
4531,
33411,
366,
9804,
1,
796,
705,
64,
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,
318,
262,
7756,
351,
317,
287,
2813,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
8628,
4531,
33411,
366,
9804,
1,
796,
705,
64,
6
] |
what number of patients staying in the hospital for more than 3 days have lab test fluid as pleural? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "3" AND lab.fluid = "Pleural" | [
10919,
1271,
286,
3871,
10589,
287,
262,
4436,
329,
517,
621,
513,
1528,
423,
2248,
1332,
11711,
355,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
1271,
286,
3871,
10589,
287,
262,
4436,
329,
517,
621,
513,
1528,
423,
2248,
1332,
11711,
355,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
22... |
When a school has authority of state and a decile greater than 1, what is the roll number? | SELECT "Roll" FROM table_68573 WHERE "Authority" = 'state' AND "Decile" > '1' | [
2215,
257,
1524,
468,
4934,
286,
1181,
290,
257,
875,
576,
3744,
621,
352,
11,
644,
318,
262,
4836,
1271,
30,
46506,
366,
26869,
1,
16034,
3084,
62,
3104,
48638,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
10707,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
1524,
468,
4934,
286,
1181,
290,
257,
875,
576,
3744,
621,
352,
11,
644,
318,
262,
4836,
1271,
30,
46506,
366,
26869,
1,
16034,
3084,
62,
3104,
48638,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
10707,
576,
... |
What was the 2006 population count of the local government area where Coober Pedy is located? | SELECT pop_2006 FROM table_23685890_2 WHERE major_town = "Coober Pedy" | [
2061,
373,
262,
4793,
3265,
954,
286,
262,
1957,
1230,
1989,
810,
1766,
2023,
350,
4716,
318,
5140,
30,
46506,
1461,
62,
13330,
16034,
3084,
62,
1954,
3104,
3365,
3829,
62,
17,
33411,
1688,
62,
12735,
796,
366,
7222,
2023,
350,
4716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4793,
3265,
954,
286,
262,
1957,
1230,
1989,
810,
1766,
2023,
350,
4716,
318,
5140,
30,
46506,
1461,
62,
13330,
16034,
3084,
62,
1954,
3104,
3365,
3829,
62,
17,
33411,
1688,
62,
12735,
796,
366,
7222,
2023,
350,
4716,
... |
Find the number and average age of students living in each city. | SELECT COUNT(*), AVG(age), city_code FROM student GROUP BY city_code | [
16742,
262,
1271,
290,
2811,
2479,
286,
2444,
2877,
287,
1123,
1748,
13,
46506,
327,
28270,
46491,
828,
35224,
7,
496,
828,
1748,
62,
8189,
16034,
3710,
44441,
11050,
1748,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
290,
2811,
2479,
286,
2444,
2877,
287,
1123,
1748,
13,
46506,
327,
28270,
46491,
828,
35224,
7,
496,
828,
1748,
62,
8189,
16034,
3710,
44441,
11050,
1748,
62,
8189
] |
Show me the total number by product category in a histogram, and I want to sort in asc by the x-axis. | SELECT product_category, COUNT(*) FROM Mailshot_Campaigns GROUP BY product_category ORDER BY product_category | [
15307,
502,
262,
2472,
1271,
416,
1720,
6536,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
3297,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
1720,
62,
22872,
11,
327,
28270,
7,
28104,
16034,
11099,
9442,
62,
46102,
82,
44441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
416,
1720,
6536,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
3297,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
1720,
62,
22872,
11,
327,
28270,
7,
28104,
16034,
11099,
9442,
62,
46102,
82,
44441,
... |
Which Week has an Attendance of 63,447? | SELECT week FROM table_name_35 WHERE attendance = "63,447" | [
13828,
6119,
468,
281,
46502,
590,
286,
8093,
11,
34825,
30,
46506,
1285,
16034,
3084,
62,
3672,
62,
2327,
33411,
14858,
796,
366,
5066,
11,
34825,
1
] | [
1,
1,
1,
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,
6119,
468,
281,
46502,
590,
286,
8093,
11,
34825,
30,
46506,
1285,
16034,
3084,
62,
3672,
62,
2327,
33411,
14858,
796,
366,
5066,
11,
34825,
1
] |
Who played against TSV bayer 04 leverkusen when they were team #1? | SELECT "2nd leg" FROM table_39872 WHERE "Team #1" = 'tsv bayer 04 leverkusen' | [
8241,
2826,
1028,
26136,
53,
275,
2794,
8702,
17124,
45614,
268,
618,
484,
547,
1074,
1303,
16,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
31952,
4761,
33411,
366,
15592,
1303,
16,
1,
796,
705,
912,
85,
275,
2794,
8702,
1712... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2826,
1028,
26136,
53,
275,
2794,
8702,
17124,
45614,
268,
618,
484,
547,
1074,
1303,
16,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
31952,
4761,
33411,
366,
15592,
1303,
16,
1,
796,
705,
912,
85,
275,
2794,
8702,
1712... |
Tell me the gold for netherlands | SELECT gold FROM table_name_20 WHERE nation = "netherlands" | [
24446,
502,
262,
3869,
329,
2010,
372,
4447,
46506,
3869,
16034,
3084,
62,
3672,
62,
1238,
33411,
3277,
796,
366,
3262,
372,
4447,
1
] | [
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,
3869,
329,
2010,
372,
4447,
46506,
3869,
16034,
3084,
62,
3672,
62,
1238,
33411,
3277,
796,
366,
3262,
372,
4447,
1
] |
Score of 0 0, and a Date of 02-jan-64 had what result? | SELECT "Result" FROM table_35093 WHERE "Score" = '0–0' AND "Date" = '02-jan-64' | [
26595,
286,
657,
657,
11,
290,
257,
7536,
286,
7816,
12,
13881,
12,
2414,
550,
644,
1255,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
14877,
6052,
33411,
366,
26595,
1,
796,
705,
15,
1906,
15,
6,
5357,
366,
10430,
1,
796,
705,
2999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26595,
286,
657,
657,
11,
290,
257,
7536,
286,
7816,
12,
13881,
12,
2414,
550,
644,
1255,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
14877,
6052,
33411,
366,
26595,
1,
796,
705,
15,
1906,
15,
6,
5357,
366,
10430,
1,
796,
705,
2999... |
how long until there was an appearance on the cts network ? | SELECT (SELECT MIN("year") FROM table_203_756 WHERE "network" = 'cts') - (SELECT MIN("year") FROM table_203_756) | [
4919,
890,
1566,
612,
373,
281,
5585,
319,
262,
269,
912,
3127,
5633,
46506,
357,
46506,
20625,
7203,
1941,
4943,
16034,
3084,
62,
22416,
62,
38219,
33411,
366,
27349,
1,
796,
705,
310,
82,
11537,
532,
357,
46506,
20625,
7203,
1941,
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
] | [
4919,
890,
1566,
612,
373,
281,
5585,
319,
262,
269,
912,
3127,
5633,
46506,
357,
46506,
20625,
7203,
1941,
4943,
16034,
3084,
62,
22416,
62,
38219,
33411,
366,
27349,
1,
796,
705,
310,
82,
11537,
532,
357,
46506,
20625,
7203,
1941,
4... |
The Proto-Germanic origin of /w/ is associated with what Roman entry? | SELECT "Roman" FROM table_14075 WHERE "Proto-Germanic origin" = '/w/' | [
464,
45783,
12,
16010,
291,
8159,
286,
1220,
86,
14,
318,
3917,
351,
644,
7993,
5726,
30,
46506,
366,
32454,
1,
16034,
3084,
62,
15187,
2425,
33411,
366,
2964,
1462,
12,
16010,
291,
8159,
1,
796,
31051,
86,
14,
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
] | [
464,
45783,
12,
16010,
291,
8159,
286,
1220,
86,
14,
318,
3917,
351,
644,
7993,
5726,
30,
46506,
366,
32454,
1,
16034,
3084,
62,
15187,
2425,
33411,
366,
2964,
1462,
12,
16010,
291,
8159,
1,
796,
31051,
86,
14,
6
] |
Give me the number of patients diagnosed with uncontrolled diabetes with ketoacidosis type i (juvenile type) who are younger than 43 years of age. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "43" AND diagnoses.long_title = "Diabetes with ketoacidosis, type I [juvenile type], uncontrolled" | [
23318,
502,
262,
1271,
286,
3871,
14641,
351,
47913,
12593,
351,
22354,
78,
46309,
5958,
2099,
1312,
357,
39427,
576,
2099,
8,
508,
389,
7099,
621,
5946,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
262,
1271,
286,
3871,
14641,
351,
47913,
12593,
351,
22354,
78,
46309,
5958,
2099,
1312,
357,
39427,
576,
2099,
8,
508,
389,
7099,
621,
5946,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796... |
What is the description for the results whose project detail is 'sint'? | SELECT T1.outcome_description FROM research_outcomes AS T1 JOIN project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' | [
2061,
318,
262,
6764,
329,
262,
2482,
3025,
1628,
3703,
318,
705,
82,
600,
30960,
46506,
309,
16,
13,
448,
2958,
62,
11213,
16034,
2267,
62,
448,
8988,
7054,
309,
16,
32357,
1268,
1628,
62,
448,
8988,
7054,
309,
17,
6177,
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... | [
2061,
318,
262,
6764,
329,
262,
2482,
3025,
1628,
3703,
318,
705,
82,
600,
30960,
46506,
309,
16,
13,
448,
2958,
62,
11213,
16034,
2267,
62,
448,
8988,
7054,
309,
16,
32357,
1268,
1628,
62,
448,
8988,
7054,
309,
17,
6177,
309,
16,
... |
provide the date of birth and gender of the subject name bessie giordano. | SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.name = "Bessie Giordano" | [
15234,
485,
262,
3128,
286,
4082,
290,
5279,
286,
262,
2426,
1438,
275,
408,
494,
308,
72,
585,
5733,
13,
46506,
16728,
13,
67,
672,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
33,
408,
494,
8118,
585,
5733,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
4082,
290,
5279,
286,
262,
2426,
1438,
275,
408,
494,
308,
72,
585,
5733,
13,
46506,
16728,
13,
67,
672,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
33,
408,
494,
8118,
585,
5733,... |
What is the number of gold medals for Lithuania (ltu), when the total is more than 1? | SELECT MAX("Gold") FROM table_79456 WHERE "Nation" = 'lithuania (ltu)' AND "Total" > '1' | [
2061,
318,
262,
1271,
286,
3869,
28057,
329,
31295,
357,
2528,
84,
828,
618,
262,
2472,
318,
517,
621,
352,
30,
46506,
25882,
7203,
13306,
4943,
16034,
3084,
62,
3720,
29228,
33411,
366,
46108,
1,
796,
705,
75,
342,
29743,
357,
2528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3869,
28057,
329,
31295,
357,
2528,
84,
828,
618,
262,
2472,
318,
517,
621,
352,
30,
46506,
25882,
7203,
13306,
4943,
16034,
3084,
62,
3720,
29228,
33411,
366,
46108,
1,
796,
705,
75,
342,
29743,
357,
2528,
... |
Who plays the right wing position? | SELECT player FROM table_name_66 WHERE position = "right wing" | [
8241,
5341,
262,
826,
8539,
2292,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2791,
33411,
2292,
796,
366,
3506,
8539,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
5341,
262,
826,
8539,
2292,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2791,
33411,
2292,
796,
366,
3506,
8539,
1
] |
What was the share of votes when there were more than 56 electors and the year was more recent than 1950? | SELECT "Share of votes" FROM table_36131 WHERE "Electors" > '56' AND "Year" > '1950' | [
2061,
373,
262,
2648,
286,
5690,
618,
612,
547,
517,
621,
7265,
39259,
290,
262,
614,
373,
517,
2274,
621,
11445,
30,
46506,
366,
11649,
286,
5690,
1,
16034,
3084,
62,
2623,
22042,
33411,
366,
19453,
669,
1,
1875,
705,
3980,
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,
373,
262,
2648,
286,
5690,
618,
612,
547,
517,
621,
7265,
39259,
290,
262,
614,
373,
517,
2274,
621,
11445,
30,
46506,
366,
11649,
286,
5690,
1,
16034,
3084,
62,
2623,
22042,
33411,
366,
19453,
669,
1,
1875,
705,
3980,
6,
5357... |
Which first's surname is Cook? | SELECT "First" FROM table_6137 WHERE "Surname" = 'cook' | [
13828,
717,
338,
40358,
318,
8261,
30,
46506,
366,
5962,
1,
16034,
3084,
62,
21,
19708,
33411,
366,
50,
700,
480,
1,
796,
705,
27916,
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
] | [
13828,
717,
338,
40358,
318,
8261,
30,
46506,
366,
5962,
1,
16034,
3084,
62,
21,
19708,
33411,
366,
50,
700,
480,
1,
796,
705,
27916,
6
] |
Users with highest Rep/Posts ratio. | SELECT u.Id, u.DisplayName, u.Reputation, COUNT(*) AS "total_number_of_posts", u.Reputation / COUNT(*) AS Ratio FROM Users AS u JOIN Posts AS p ON p.OwnerUserId = u.Id WHERE p.PostTypeId IN (1, 2) GROUP BY u.Id, u.DisplayName, u.Reputation ORDER BY Ratio DESC LIMIT 1000 | [
14490,
351,
4511,
1432,
14,
21496,
8064,
13,
46506,
334,
13,
7390,
11,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
327,
28270,
7,
28104,
7054,
366,
23350,
62,
17618,
62,
1659,
62,
24875,
1600,
334,
13,
6207,
7094,
1220,
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,
1,
1,
1,
1,
1... | [
14490,
351,
4511,
1432,
14,
21496,
8064,
13,
46506,
334,
13,
7390,
11,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
327,
28270,
7,
28104,
7054,
366,
23350,
62,
17618,
62,
1659,
62,
24875,
1600,
334,
13,
6207,
7094,
1220,
327,
... |
What was the max mach when the maximum speed was 3887? | SELECT max_mach FROM table_221315_3 WHERE max_speed__mph_ = 3887 | [
2061,
373,
262,
3509,
3235,
618,
262,
5415,
2866,
373,
43550,
22,
30,
46506,
3509,
62,
76,
620,
16034,
3084,
62,
1828,
1485,
1314,
62,
18,
33411,
3509,
62,
12287,
834,
23335,
62,
796,
43550,
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
] | [
2061,
373,
262,
3509,
3235,
618,
262,
5415,
2866,
373,
43550,
22,
30,
46506,
3509,
62,
76,
620,
16034,
3084,
62,
1828,
1485,
1314,
62,
18,
33411,
3509,
62,
12287,
834,
23335,
62,
796,
43550,
22
] |
Team 2 Al-Ain played in what venue? | SELECT "Venue" FROM table_45738 WHERE "Team 2" = 'al-ain' | [
15592,
362,
978,
12,
32,
259,
2826,
287,
644,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
33032,
2548,
33411,
366,
15592,
362,
1,
796,
705,
282,
12,
391,
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
] | [
15592,
362,
978,
12,
32,
259,
2826,
287,
644,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
33032,
2548,
33411,
366,
15592,
362,
1,
796,
705,
282,
12,
391,
6
] |
For each phone, show its names and total number of stocks Visualize by bar chart, and could you sort in ascending by the names? | SELECT Name, SUM(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name ORDER BY Name | [
1890,
1123,
3072,
11,
905,
663,
3891,
290,
2472,
1271,
286,
14420,
15612,
1096,
416,
2318,
8262,
11,
290,
714,
345,
3297,
287,
41988,
416,
262,
3891,
30,
46506,
6530,
11,
35683,
7,
51,
16,
13,
33111,
62,
1659,
62,
13578,
8,
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... | [
1890,
1123,
3072,
11,
905,
663,
3891,
290,
2472,
1271,
286,
14420,
15612,
1096,
416,
2318,
8262,
11,
290,
714,
345,
3297,
287,
41988,
416,
262,
3891,
30,
46506,
6530,
11,
35683,
7,
51,
16,
13,
33111,
62,
1659,
62,
13578,
8,
16034,
... |
give me the three top diagnoses that had the highest four year mortality rate? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | [
26535,
502,
262,
1115,
1353,
40567,
326,
550,
262,
4511,
1440,
614,
12430,
2494,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
1353,
40567,
326,
550,
262,
4511,
1440,
614,
12430,
2494,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
... |
What was the Score when the Losing Semifinalists were Toluca Unam? | SELECT "Score" FROM table_40557 WHERE "Losing Semifinalists" = 'toluca unam' | [
2061,
373,
262,
15178,
618,
262,
406,
2752,
12449,
361,
1292,
1023,
547,
20054,
43120,
791,
321,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1821,
41948,
33411,
366,
43,
2752,
12449,
361,
1292,
1023,
1,
796,
705,
83,
349,
43120,
555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
618,
262,
406,
2752,
12449,
361,
1292,
1023,
547,
20054,
43120,
791,
321,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1821,
41948,
33411,
366,
43,
2752,
12449,
361,
1292,
1023,
1,
796,
705,
83,
349,
43120,
555,
... |
What director directed the role of shelby barret wyatt in 1935? | SELECT "Director" FROM table_51412 WHERE "Year" = '1935' AND "Role" = 'shelby barret wyatt' | [
2061,
3437,
7924,
262,
2597,
286,
7497,
1525,
2318,
1186,
266,
88,
1078,
287,
30704,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
47396,
1065,
33411,
366,
17688,
1,
796,
705,
1129,
2327,
6,
5357,
366,
47445,
1,
796,
705,
82,
2978,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3437,
7924,
262,
2597,
286,
7497,
1525,
2318,
1186,
266,
88,
1078,
287,
30704,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
47396,
1065,
33411,
366,
17688,
1,
796,
705,
1129,
2327,
6,
5357,
366,
47445,
1,
796,
705,
82,
2978,
152... |
Who directed series episode number 201? | SELECT "Director" FROM table_29107 WHERE "Series #" = '201' | [
8241,
7924,
2168,
4471,
1271,
580,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1959,
15982,
33411,
366,
27996,
1303,
1,
796,
705,
1264,
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
] | [
8241,
7924,
2168,
4471,
1271,
580,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1959,
15982,
33411,
366,
27996,
1303,
1,
796,
705,
1264,
6
] |
When the tries against is 90 how many points are there? | SELECT points FROM table_name_92 WHERE tries_against = "90" | [
2215,
262,
8404,
1028,
318,
4101,
703,
867,
2173,
389,
612,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
5892,
33411,
8404,
62,
32826,
796,
366,
3829,
1
] | [
1,
1,
1,
1,
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,
8404,
1028,
318,
4101,
703,
867,
2173,
389,
612,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
5892,
33411,
8404,
62,
32826,
796,
366,
3829,
1
] |
Which catalog is in cd format? | SELECT "Catalog" FROM table_79942 WHERE "Format" = 'cd' | [
13828,
18388,
318,
287,
22927,
5794,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
45455,
3682,
33411,
366,
26227,
1,
796,
705,
10210,
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
] | [
13828,
18388,
318,
287,
22927,
5794,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
45455,
3682,
33411,
366,
26227,
1,
796,
705,
10210,
6
] |
all NW and UA flights with stopovers in DENVER | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE ((flight.airline_code = 'NW') OR (flight.airline_code = 'UA')) AND city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight_stop.stop_airport = airport_service.airport_code AND flight.flight_id = flight_sto... | [
439,
21966,
290,
46164,
13956,
351,
2245,
13801,
287,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
11,
5474,
62,
11338,
33411,
14808,
22560,
13,
958,
1370,
62,
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... | [
439,
21966,
290,
46164,
13956,
351,
2245,
13801,
287,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
11,
5474,
62,
11338,
33411,
14808,
22560,
13,
958,
1370,
62,
8... |
What are the full names and salaries for any employees earning less than 6000? | SELECT first_name, last_name, salary FROM employees WHERE salary < 6000 | [
2061,
389,
262,
1336,
3891,
290,
17058,
329,
597,
4409,
13748,
1342,
621,
39064,
30,
46506,
717,
62,
3672,
11,
938,
62,
3672,
11,
9588,
16034,
4409,
33411,
9588,
1279,
39064
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1336,
3891,
290,
17058,
329,
597,
4409,
13748,
1342,
621,
39064,
30,
46506,
717,
62,
3672,
11,
938,
62,
3672,
11,
9588,
16034,
4409,
33411,
9588,
1279,
39064
] |
Who did they play at Atlanta-Fulton County Stadium? | SELECT opponent FROM table_name_20 WHERE game_site = "atlanta-fulton county stadium" | [
8241,
750,
484,
711,
379,
9371,
12,
37,
37944,
3418,
10499,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1238,
33411,
983,
62,
15654,
796,
366,
25864,
4910,
12,
69,
37944,
7968,
10308,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
484,
711,
379,
9371,
12,
37,
37944,
3418,
10499,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1238,
33411,
983,
62,
15654,
796,
366,
25864,
4910,
12,
69,
37944,
7968,
10308,
1
] |
What championship was played with Allan Stone as a partner? | SELECT championship FROM table_2820584_3 WHERE partner = "Allan Stone" | [
2061,
12184,
373,
2826,
351,
31908,
8026,
355,
257,
5212,
30,
46506,
12184,
16034,
3084,
62,
2078,
1238,
46352,
62,
18,
33411,
5212,
796,
366,
3237,
272,
8026,
1
] | [
1,
1,
1,
1,
1,
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,
12184,
373,
2826,
351,
31908,
8026,
355,
257,
5212,
30,
46506,
12184,
16034,
3084,
62,
2078,
1238,
46352,
62,
18,
33411,
5212,
796,
366,
3237,
272,
8026,
1
] |
What is the total population with less than 789 males? | SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789 | [
2061,
318,
262,
2472,
3265,
351,
1342,
621,
767,
4531,
10835,
30,
46506,
327,
28270,
7,
23350,
62,
39748,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
4257,
1279,
767,
4531
] | [
1,
1,
1,
1,
1,
1,
1,
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,
3265,
351,
1342,
621,
767,
4531,
10835,
30,
46506,
327,
28270,
7,
23350,
62,
39748,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
4257,
1279,
767,
4531
] |
What is the highest sd when the status is second round lost to iveta bene ov ? | SELECT MAX(sd) FROM table_26218783_7 WHERE status = "Second round lost to Iveta Benešová" | [
2061,
318,
262,
4511,
45647,
618,
262,
3722,
318,
1218,
2835,
2626,
284,
220,
425,
8326,
10004,
19643,
5633,
46506,
25882,
7,
21282,
8,
16034,
3084,
62,
2075,
28727,
50165,
62,
22,
33411,
3722,
796,
366,
12211,
2835,
2626,
284,
314,
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
] | [
2061,
318,
262,
4511,
45647,
618,
262,
3722,
318,
1218,
2835,
2626,
284,
220,
425,
8326,
10004,
19643,
5633,
46506,
25882,
7,
21282,
8,
16034,
3084,
62,
2075,
28727,
50165,
62,
22,
33411,
3722,
796,
366,
12211,
2835,
2626,
284,
314,
3... |
What stadium(sO does san juan jabloteh play in? | SELECT "Stadium" FROM table_3425 WHERE "Team" = 'San Juan Jabloteh' | [
2061,
10308,
7,
82,
46,
857,
5336,
474,
7258,
474,
23117,
1258,
71,
711,
287,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
2682,
1495,
33411,
366,
15592,
1,
796,
705,
15017,
16852,
449,
23117,
1258,
71,
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,
10308,
7,
82,
46,
857,
5336,
474,
7258,
474,
23117,
1258,
71,
711,
287,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
2682,
1495,
33411,
366,
15592,
1,
796,
705,
15017,
16852,
449,
23117,
1258,
71,
6
] |
has patient 23475 been administered any nutramigen po in 06/this year? | SELECT COUNT(*) > 0 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 = 23475)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'nutramig... | [
10134,
5827,
2242,
32576,
587,
17169,
597,
6701,
859,
9324,
745,
287,
9130,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
2242,
32576,
587,
17169,
597,
6701,
859,
9324,
745,
287,
9130,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,... |
Which policy type has the most records in the database? | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
2450,
2099,
468,
262,
749,
4406,
287,
262,
6831,
30,
46506,
2450,
62,
4906,
62,
8189,
16034,
1695,
62,
79,
4160,
444,
44441,
11050,
2450,
62,
4906,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
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,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2450,
2099,
468,
262,
749,
4406,
287,
262,
6831,
30,
46506,
2450,
62,
4906,
62,
8189,
16034,
1695,
62,
79,
4160,
444,
44441,
11050,
2450,
62,
4906,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
What player(s) drafted by the hamilton tiger-cats? | SELECT "Player" FROM table_23586 WHERE "CFL Team" = 'Hamilton Tiger-Cats' | [
2061,
2137,
7,
82,
8,
15937,
416,
262,
8891,
9044,
26241,
12,
24619,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1954,
29796,
33411,
366,
34,
3697,
4816,
1,
796,
705,
45405,
17030,
12,
34,
1381,
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
] | [
2061,
2137,
7,
82,
8,
15937,
416,
262,
8891,
9044,
26241,
12,
24619,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1954,
29796,
33411,
366,
34,
3697,
4816,
1,
796,
705,
45405,
17030,
12,
34,
1381,
6
] |
how many representatives are republican ? | SELECT COUNT("representative") FROM table_204_887 WHERE "party" = 'republican' | [
4919,
867,
10826,
389,
41477,
5633,
46506,
327,
28270,
7203,
15603,
876,
4943,
16034,
3084,
62,
18638,
62,
46660,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
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
] | [
4919,
867,
10826,
389,
41477,
5633,
46506,
327,
28270,
7203,
15603,
876,
4943,
16034,
3084,
62,
18638,
62,
46660,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
6
] |
Which campus has the San Agustin gym? | SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym" | [
13828,
7611,
468,
262,
2986,
2449,
436,
259,
11550,
30,
46506,
1363,
62,
43842,
16034,
3084,
62,
3672,
62,
17,
33411,
13478,
62,
4080,
796,
366,
12807,
556,
436,
259,
11550,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
7611,
468,
262,
2986,
2449,
436,
259,
11550,
30,
46506,
1363,
62,
43842,
16034,
3084,
62,
3672,
62,
17,
33411,
13478,
62,
4080,
796,
366,
12807,
556,
436,
259,
11550,
1
] |
Who are the runners-up in 1996? | SELECT "Runners-up" FROM table_14692 WHERE "Year" = '1996' | [
8241,
389,
262,
19323,
12,
929,
287,
8235,
30,
46506,
366,
10987,
2741,
12,
929,
1,
16034,
3084,
62,
1415,
46589,
33411,
366,
17688,
1,
796,
705,
22288,
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
] | [
8241,
389,
262,
19323,
12,
929,
287,
8235,
30,
46506,
366,
10987,
2741,
12,
929,
1,
16034,
3084,
62,
1415,
46589,
33411,
366,
17688,
1,
796,
705,
22288,
6
] |
Plot salary by grouped by email as a bar graph, and rank x-axis in asc order. | SELECT EMAIL, SALARY FROM employees ORDER BY EMAIL | [
43328,
9588,
416,
32824,
416,
3053,
355,
257,
2318,
4823,
11,
290,
4279,
2124,
12,
22704,
287,
10570,
1502,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
412,
5673,
4146
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
9588,
416,
32824,
416,
3053,
355,
257,
2318,
4823,
11,
290,
4279,
2124,
12,
22704,
287,
10570,
1502,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
412,
5673,
4146
] |
When did the season finale reached an audience of 10.02 million viewers? | SELECT "Season finale" FROM table_74025 WHERE "Viewers (in millions)" = '10.02' | [
2215,
750,
262,
1622,
19523,
4251,
281,
5386,
286,
838,
13,
2999,
1510,
10209,
30,
46506,
366,
18960,
19523,
1,
16034,
3084,
62,
45598,
1495,
33411,
366,
7680,
364,
357,
259,
5242,
16725,
796,
705,
940,
13,
2999,
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
] | [
2215,
750,
262,
1622,
19523,
4251,
281,
5386,
286,
838,
13,
2999,
1510,
10209,
30,
46506,
366,
18960,
19523,
1,
16034,
3084,
62,
45598,
1495,
33411,
366,
7680,
364,
357,
259,
5242,
16725,
796,
705,
940,
13,
2999,
6
] |
For how many patients with int insert lead in vent was the death status left unspecified? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Int insert lead in vent" | [
1890,
703,
867,
3871,
351,
493,
7550,
1085,
287,
7435,
373,
262,
1918,
3722,
1364,
29547,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
867,
3871,
351,
493,
7550,
1085,
287,
7435,
373,
262,
1918,
3722,
1364,
29547,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
181... |
what was the first dioceses established ? | SELECT "latin name" FROM table_204_10 ORDER BY "established" LIMIT 1 | [
10919,
373,
262,
717,
2566,
420,
274,
274,
4920,
5633,
46506,
366,
75,
10680,
1438,
1,
16034,
3084,
62,
18638,
62,
940,
38678,
11050,
366,
27718,
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
] | [
10919,
373,
262,
717,
2566,
420,
274,
274,
4920,
5633,
46506,
366,
75,
10680,
1438,
1,
16034,
3084,
62,
18638,
62,
940,
38678,
11050,
366,
27718,
1,
27564,
2043,
352
] |
Who directed the episode that had 0.54 million U.S. viewers? | SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.54" | [
8241,
7924,
262,
4471,
326,
550,
657,
13,
4051,
1510,
471,
13,
50,
13,
10209,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
26276,
1415,
2998,
21,
62,
19,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
15,
13,
4051,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
262,
4471,
326,
550,
657,
13,
4051,
1510,
471,
13,
50,
13,
10209,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
26276,
1415,
2998,
21,
62,
19,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
15,
13,
4051,
1
] |
How many different songs have shared vocals? | SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE type = "shared" | [
2437,
867,
1180,
7259,
423,
4888,
25355,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
3670,
8,
16034,
25355,
7054,
309,
16,
32357,
1268,
7259,
7054,
309,
17,
6177,
309,
16,
13,
34050,
312,
796,
309,
17,
13,
34050,
312,
33411,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7259,
423,
4888,
25355,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
3670,
8,
16034,
25355,
7054,
309,
16,
32357,
1268,
7259,
7054,
309,
17,
6177,
309,
16,
13,
34050,
312,
796,
309,
17,
13,
34050,
312,
33411,
209... |
How many Professors are in building NEB? | SELECT COUNT(*) FROM faculty WHERE rank = "Professor" AND building = "NEB" | [
2437,
867,
4415,
23295,
389,
287,
2615,
10635,
33,
30,
46506,
327,
28270,
7,
28104,
16034,
12829,
33411,
4279,
796,
366,
25031,
1,
5357,
2615,
796,
366,
12161,
33,
1
] | [
1,
1,
1,
1,
1,
1,
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,
4415,
23295,
389,
287,
2615,
10635,
33,
30,
46506,
327,
28270,
7,
28104,
16034,
12829,
33411,
4279,
796,
366,
25031,
1,
5357,
2615,
796,
366,
12161,
33,
1
] |
until 8 months ago, when was the first time that patient 002-56583 was prescribed medication via dialysis? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-56583')) AND medication.routeadmin = 'dialysis' AND DATETI... | [
28446,
807,
1933,
2084,
11,
618,
373,
262,
717,
640,
326,
5827,
3571,
17,
12,
47372,
5999,
373,
14798,
14103,
2884,
5980,
3097,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
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... | [
28446,
807,
1933,
2084,
11,
618,
373,
262,
717,
640,
326,
5827,
3571,
17,
12,
47372,
5999,
373,
14798,
14103,
2884,
5980,
3097,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357... |
Return a bar chart about the distribution of meter_400 and meter_100 . | SELECT meter_400, meter_100 FROM swimmer | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
7029,
290,
16430,
62,
3064,
764,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
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,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
7029,
290,
16430,
62,
3064,
764,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647
] |
In 1946, what is the Runner(s)-up of the Women's Western Open Championship? | SELECT runner_s__up FROM table_name_60 WHERE championship = "women's western open" AND year = 1946 | [
818,
22717,
11,
644,
318,
262,
21529,
7,
82,
13219,
929,
286,
262,
6926,
338,
4885,
4946,
10749,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
1899,
33411,
12184,
796,
366,
25878,
338,
8830,
1280,
1,
5357,
614,
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
] | [
818,
22717,
11,
644,
318,
262,
21529,
7,
82,
13219,
929,
286,
262,
6926,
338,
4885,
4946,
10749,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
1899,
33411,
12184,
796,
366,
25878,
338,
8830,
1280,
1,
5357,
614,
796,... |
How many countries has a gdp (nominal) of $29.9 billion? | SELECT COUNT(gdp_per_capita__nominal_) FROM table_11780179_1 WHERE gdp__nominal_ = "$29.9 billion" | [
2437,
867,
2678,
468,
257,
308,
26059,
357,
26601,
1292,
8,
286,
720,
1959,
13,
24,
2997,
30,
46506,
327,
28270,
7,
21287,
79,
62,
525,
62,
11128,
5350,
834,
26601,
1292,
62,
8,
16034,
3084,
62,
1157,
3695,
486,
3720,
62,
16,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2678,
468,
257,
308,
26059,
357,
26601,
1292,
8,
286,
720,
1959,
13,
24,
2997,
30,
46506,
327,
28270,
7,
21287,
79,
62,
525,
62,
11128,
5350,
834,
26601,
1292,
62,
8,
16034,
3084,
62,
1157,
3695,
486,
3720,
62,
16,
3341... |
give me the number of patients whose days of hospital stay is greater than 17 and procedure long title is combined right and left heart cardiac catheterization? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "17" AND procedures.long_title = "Combined right and left heart cardiac catheterization" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1596,
290,
8771,
890,
3670,
318,
5929,
826,
290,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1596,
290,
8771,
890,
3670,
318,
5929,
826,
290,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62... |
What director(s) have the intouchables as the title? | SELECT director_s_ FROM table_name_67 WHERE title = "the intouchables" | [
2061,
3437,
7,
82,
8,
423,
262,
493,
7673,
2977,
355,
262,
3670,
30,
46506,
3437,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3134,
33411,
3670,
796,
366,
1169,
493,
7673,
2977,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3437,
7,
82,
8,
423,
262,
493,
7673,
2977,
355,
262,
3670,
30,
46506,
3437,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3134,
33411,
3670,
796,
366,
1169,
493,
7673,
2977,
1
] |
Which nominee won the Drama Desk Award for outstanding choreography? | SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography" | [
13828,
10429,
1839,
262,
30647,
39246,
11289,
329,
11660,
30569,
4867,
30,
46506,
10429,
16034,
3084,
62,
3672,
62,
6659,
33411,
5764,
796,
366,
67,
20058,
6915,
5764,
1,
5357,
1255,
796,
366,
26502,
1,
5357,
6536,
796,
366,
448,
5646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10429,
1839,
262,
30647,
39246,
11289,
329,
11660,
30569,
4867,
30,
46506,
10429,
16034,
3084,
62,
3672,
62,
6659,
33411,
5764,
796,
366,
67,
20058,
6915,
5764,
1,
5357,
1255,
796,
366,
26502,
1,
5357,
6536,
796,
366,
448,
5646,
... |
could you give me a flight between PITTSBURGH and PHILADELPHIA | 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHI... | [
24089,
345,
1577,
502,
257,
5474,
1022,
49040,
4694,
38926,
17511,
290,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
24089,
345,
1577,
502,
257,
5474,
1022,
49040,
4694,
38926,
17511,
290,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
how many more total goals does leandro de almeida has than zsombor kerekes ? | SELECT (SELECT "total" FROM table_204_978 WHERE "name" = 'leandro de almeida') - (SELECT "total" FROM table_204_978 WHERE "name" = 'zsombor kerekes') | [
4919,
867,
517,
2472,
4661,
857,
443,
28092,
390,
435,
1326,
3755,
468,
621,
1976,
82,
2381,
273,
885,
260,
5209,
5633,
46506,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
18638,
62,
32196,
33411,
366,
3672,
1,
796,
705,
293,
28092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
2472,
4661,
857,
443,
28092,
390,
435,
1326,
3755,
468,
621,
1976,
82,
2381,
273,
885,
260,
5209,
5633,
46506,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
18638,
62,
32196,
33411,
366,
3672,
1,
796,
705,
293,
28092,
... |
Show the number of races that had any driver whose forename is Lewis in each year with a line chart, show from high to low by the X-axis please. | SELECT year, COUNT(year) FROM results AS T1 JOIN races AS T2 ON T1.raceId = T2.raceId JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.forename = "Lewis" ORDER BY year DESC | [
15307,
262,
1271,
286,
9558,
326,
550,
597,
4639,
3025,
1674,
3672,
318,
10174,
287,
1123,
614,
351,
257,
1627,
8262,
11,
905,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
3387,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
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... | [
15307,
262,
1271,
286,
9558,
326,
550,
597,
4639,
3025,
1674,
3672,
318,
10174,
287,
1123,
614,
351,
257,
1627,
8262,
11,
905,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
3387,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,... |
Compute the number of each type of job ids for employees who make more than the highest-earning employee with title PU_MAN, with a bar chart, and rank by the bars from low to high. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY > (SELECT MAX(SALARY) FROM employees WHERE JOB_ID = 'PU_MAN') GROUP BY JOB_ID ORDER BY JOB_ID | [
7293,
1133,
262,
1271,
286,
1123,
2099,
286,
1693,
220,
2340,
329,
4409,
508,
787,
517,
621,
262,
4511,
12,
451,
768,
6538,
351,
3670,
24676,
62,
10725,
11,
351,
257,
2318,
8262,
11,
290,
4279,
416,
262,
9210,
422,
1877,
284,
1029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7293,
1133,
262,
1271,
286,
1123,
2099,
286,
1693,
220,
2340,
329,
4409,
508,
787,
517,
621,
262,
4511,
12,
451,
768,
6538,
351,
3670,
24676,
62,
10725,
11,
351,
257,
2318,
8262,
11,
290,
4279,
416,
262,
9210,
422,
1877,
284,
1029,
... |
What round was a player from Indiana picked? | SELECT "Round" FROM table_39746 WHERE "College" = 'indiana' | [
2061,
2835,
373,
257,
2137,
422,
10278,
6497,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
33372,
3510,
33411,
366,
38951,
1,
796,
705,
521,
7484,
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,
2835,
373,
257,
2137,
422,
10278,
6497,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
33372,
3510,
33411,
366,
38951,
1,
796,
705,
521,
7484,
6
] |
What was the Bill's attendance on December 6? | SELECT "Attendance" FROM table_41929 WHERE "Date" = 'december 6' | [
2061,
373,
262,
3941,
338,
14858,
319,
3426,
718,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
45068,
1959,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
718,
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,
373,
262,
3941,
338,
14858,
319,
3426,
718,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
45068,
1959,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
718,
6
] |
Name the highest pick number for PI GP more than 55 | SELECT MAX("Pick #") FROM table_55419 WHERE "Pl GP" > '55' | [
5376,
262,
4511,
2298,
1271,
329,
30434,
14714,
517,
621,
5996,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
44218,
1129,
33411,
366,
3646,
14714,
1,
1875,
705,
2816,
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
] | [
5376,
262,
4511,
2298,
1271,
329,
30434,
14714,
517,
621,
5996,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
44218,
1129,
33411,
366,
3646,
14714,
1,
1875,
705,
2816,
6
] |
What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? | SELECT AVG("PCT.") FROM table_67593 WHERE "PTS." < '9' AND "Wins" > '1' | [
2061,
318,
262,
2811,
350,
4177,
618,
340,
468,
257,
20907,
4833,
621,
860,
257,
7864,
4025,
621,
352,
30,
46506,
35224,
7203,
47,
4177,
19570,
16034,
3084,
62,
42444,
6052,
33411,
366,
47,
4694,
526,
1279,
705,
24,
6,
5357,
366,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
350,
4177,
618,
340,
468,
257,
20907,
4833,
621,
860,
257,
7864,
4025,
621,
352,
30,
46506,
35224,
7203,
47,
4177,
19570,
16034,
3084,
62,
42444,
6052,
33411,
366,
47,
4694,
526,
1279,
705,
24,
6,
5357,
366,
54... |
What was the record when Canty (5) was the high assists? | SELECT record FROM table_17118657_7 WHERE high_assists = "Canty (5)" | [
2061,
373,
262,
1700,
618,
16821,
88,
357,
20,
8,
373,
262,
1029,
13648,
30,
46506,
1700,
16034,
3084,
62,
1558,
16817,
37680,
62,
22,
33411,
1029,
62,
562,
1023,
796,
366,
34,
46098,
357,
20,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
618,
16821,
88,
357,
20,
8,
373,
262,
1029,
13648,
30,
46506,
1700,
16034,
3084,
62,
1558,
16817,
37680,
62,
22,
33411,
1029,
62,
562,
1023,
796,
366,
34,
46098,
357,
20,
16725
] |
What is the smallest area that has a Population Density of 3,216 and a Population larger than 16,650,000? | SELECT MIN("Area (km\u00b2)") FROM table_48879 WHERE "Population Density (People/km\u00b2)" = '3,216' AND "Population" > '16,650,000' | [
2061,
318,
262,
18197,
1989,
326,
468,
257,
20133,
360,
6377,
286,
513,
11,
20666,
290,
257,
20133,
4025,
621,
1467,
11,
17544,
11,
830,
30,
46506,
20625,
7203,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
4943,
16034,
3084,
62,
33646... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
1989,
326,
468,
257,
20133,
360,
6377,
286,
513,
11,
20666,
290,
257,
20133,
4025,
621,
1467,
11,
17544,
11,
830,
30,
46506,
20625,
7203,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
4943,
16034,
3084,
62,
33646... |
Who did the Browns play on October 13, 1968? | SELECT "Opponent" FROM table_33797 WHERE "Date" = 'october 13, 1968' | [
8241,
750,
262,
17671,
711,
319,
3267,
1511,
11,
15963,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2091,
44673,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1511,
11,
15963,
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
] | [
8241,
750,
262,
17671,
711,
319,
3267,
1511,
11,
15963,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2091,
44673,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1511,
11,
15963,
6
] |
SELECT * FROM PendingFlags WHERE FlagTypeId = 14. | SELECT *, PostId AS "post_link" FROM PendingFlags WHERE FlagTypeId = 14 | [
46506,
1635,
16034,
350,
1571,
40053,
33411,
19762,
6030,
7390,
796,
1478,
13,
46506,
1635,
11,
2947,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
350,
1571,
40053,
33411,
19762,
6030,
7390,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
46506,
1635,
16034,
350,
1571,
40053,
33411,
19762,
6030,
7390,
796,
1478,
13,
46506,
1635,
11,
2947,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
350,
1571,
40053,
33411,
19762,
6030,
7390,
796,
1478
] |
Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus? | SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = "ashley callus" | [
13828,
2351,
414,
468,
257,
10916,
4025,
621,
352,
11,
290,
257,
3862,
4833,
621,
2534,
13,
1065,
11,
290,
257,
15016,
4833,
621,
604,
11,
290,
257,
6530,
286,
12530,
1636,
869,
385,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2079... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2351,
414,
468,
257,
10916,
4025,
621,
352,
11,
290,
257,
3862,
4833,
621,
2534,
13,
1065,
11,
290,
257,
15016,
4833,
621,
604,
11,
290,
257,
6530,
286,
12530,
1636,
869,
385,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2079... |
On what Date was the Attendance 75,891? | SELECT "Date" FROM table_46707 WHERE "Attendance" = '75,891' | [
2202,
644,
7536,
373,
262,
46502,
590,
5441,
11,
4531,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3510,
24038,
33411,
366,
8086,
437,
590,
1,
796,
705,
2425,
11,
4531,
16,
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,
7536,
373,
262,
46502,
590,
5441,
11,
4531,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3510,
24038,
33411,
366,
8086,
437,
590,
1,
796,
705,
2425,
11,
4531,
16,
6
] |
What is the status of bel with a Transfer window of winter? | SELECT "Status" FROM table_57821 WHERE "Country" = 'bel' AND "Transfer window" = 'winter' | [
2061,
318,
262,
3722,
286,
894,
351,
257,
20558,
4324,
286,
7374,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
38907,
2481,
33411,
366,
33921,
1,
796,
705,
6667,
6,
5357,
366,
43260,
4324,
1,
796,
705,
40078,
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,
318,
262,
3722,
286,
894,
351,
257,
20558,
4324,
286,
7374,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
38907,
2481,
33411,
366,
33921,
1,
796,
705,
6667,
6,
5357,
366,
43260,
4324,
1,
796,
705,
40078,
6
] |
How many clubs were founded in the westfalenstadion stadium? | SELECT COUNT("Founded") FROM table_28441 WHERE "Stadium" = 'Westfalenstadion' | [
2437,
867,
9784,
547,
9393,
287,
262,
7421,
42932,
268,
24107,
295,
10308,
30,
46506,
327,
28270,
7203,
37,
6302,
4943,
16034,
3084,
62,
2078,
39710,
33411,
366,
1273,
6271,
1,
796,
705,
15045,
42932,
268,
24107,
295,
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
] | [
2437,
867,
9784,
547,
9393,
287,
262,
7421,
42932,
268,
24107,
295,
10308,
30,
46506,
327,
28270,
7203,
37,
6302,
4943,
16034,
3084,
62,
2078,
39710,
33411,
366,
1273,
6271,
1,
796,
705,
15045,
42932,
268,
24107,
295,
6
] |
What is Player, when To Par is '+1', when Country is 'United States', and when Score is '71-70=141'? | SELECT "Player" FROM table_43880 WHERE "To par" = '+1' AND "Country" = 'united states' AND "Score" = '71-70=141' | [
2061,
318,
7853,
11,
618,
1675,
2547,
318,
705,
10,
16,
3256,
618,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
15178,
318,
705,
4869,
12,
2154,
28,
23756,
30960,
46506,
366,
14140,
1,
16034,
3084,
62,
43704,
1795,
33411,
366,
2514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
11,
618,
1675,
2547,
318,
705,
10,
16,
3256,
618,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
15178,
318,
705,
4869,
12,
2154,
28,
23756,
30960,
46506,
366,
14140,
1,
16034,
3084,
62,
43704,
1795,
33411,
366,
2514,
... |
show me all YX flights from DETROIT to CHICAGO | 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 = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETRO... | [
12860,
502,
477,
575,
55,
13956,
422,
38267,
13252,
2043,
284,
5870,
2149,
4760,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
575,
55,
13956,
422,
38267,
13252,
2043,
284,
5870,
2149,
4760,
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,
... |
What is the largest amount of spectators when the home team scored 13.11 (89)? | SELECT MAX("Crowd") FROM table_55974 WHERE "Home team score" = '13.11 (89)' | [
2061,
318,
262,
4387,
2033,
286,
31704,
618,
262,
1363,
1074,
7781,
1511,
13,
1157,
357,
4531,
19427,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
38605,
4524,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1157,
357,
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
] | [
2061,
318,
262,
4387,
2033,
286,
31704,
618,
262,
1363,
1074,
7781,
1511,
13,
1157,
357,
4531,
19427,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
38605,
4524,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1157,
357,
4... |
what is the number of patients who had rash as primary disease and died in 2155 or before that? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RASH" AND demographic.dod_year <= "2155.0" | [
10919,
318,
262,
1271,
286,
3871,
508,
550,
28509,
355,
4165,
4369,
290,
3724,
287,
362,
18742,
393,
878,
326,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
550,
28509,
355,
4165,
4369,
290,
3724,
287,
362,
18742,
393,
878,
326,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... |
What are all the 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt | SELECT "300 m group (mm)" FROM table_17499 WHERE ".308 Winchester cartridge type" = 'RUAG Swiss P Target 168 gr HP-BT' | [
2061,
389,
477,
262,
5867,
285,
1448,
357,
3020,
8,
351,
257,
764,
21495,
1592,
35983,
26904,
2099,
286,
7422,
363,
1509,
747,
279,
2496,
23378,
1036,
27673,
12,
18347,
46506,
366,
6200,
285,
1448,
357,
3020,
16725,
16034,
3084,
62,
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... | [
2061,
389,
477,
262,
5867,
285,
1448,
357,
3020,
8,
351,
257,
764,
21495,
1592,
35983,
26904,
2099,
286,
7422,
363,
1509,
747,
279,
2496,
23378,
1036,
27673,
12,
18347,
46506,
366,
6200,
285,
1448,
357,
3020,
16725,
16034,
3084,
62,
2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.