instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Average Post Score for IPS. | SELECT p.OwnerUserId AS "user_link", COUNT(p.Id) AS "number_of_posts", AVG(p.Score) AS "average_score_per_post" FROM Posts AS p GROUP BY p.OwnerUserId HAVING COUNT(p.Id) > 3 ORDER BY AVG(p.Score) DESC | [
26287,
2947,
15178,
329,
37632,
13,
46506,
279,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
79,
13,
7390,
8,
7054,
366,
17618,
62,
1659,
62,
24875,
1600,
35224,
7,
79,
13,
26595,
8,
7054,
366,
23913,
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... | [
26287,
2947,
15178,
329,
37632,
13,
46506,
279,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
79,
13,
7390,
8,
7054,
366,
17618,
62,
1659,
62,
24875,
1600,
35224,
7,
79,
13,
26595,
8,
7054,
366,
23913,
62,
... |
provide the number of patients whose religion is jewish and admission year is less than 2145? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "JEWISH" AND demographic.admityear < "2145" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5737,
318,
12711,
680,
290,
13938,
614,
318,
1342,
621,
362,
18781,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
2411,
17035,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
5737,
318,
12711,
680,
290,
13938,
614,
318,
1342,
621,
362,
18781,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
2411,
17035,
796... |
what is the average monthly number of patients that are suffering from carrier nec until 4 years ago? | SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'carrier nec') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY ST... | [
10919,
318,
262,
2811,
9651,
1271,
286,
3871,
326,
389,
7195,
422,
11920,
27576,
1566,
604,
812,
2084,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567,
62,
291,
67,
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... | [
10919,
318,
262,
2811,
9651,
1271,
286,
3871,
326,
389,
7195,
422,
11920,
27576,
1566,
604,
812,
2084,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567,
62,
291,
67,
13,
181... |
what is diagnoses short title of subject name robert hyden? | SELECT diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Robert Hyden" | [
10919,
318,
40567,
1790,
3670,
286,
2426,
1438,
686,
4835,
2537,
6559,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
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
] | [
10919,
318,
40567,
1790,
3670,
286,
2426,
1438,
686,
4835,
2537,
6559,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,... |
how many patients have a medicare insurance policy and diagnosis icd9 code is 4168? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.icd9_code = "4168" | [
4919,
867,
3871,
423,
257,
6924,
533,
5096,
2450,
290,
13669,
14158,
67,
24,
2438,
318,
604,
14656,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
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... | [
4919,
867,
3871,
423,
257,
6924,
533,
5096,
2450,
290,
13669,
14158,
67,
24,
2438,
318,
604,
14656,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
167... |
What was the To par score for the tournament with a margin of victory of 1 stroke? | SELECT to_par FROM table_name_44 WHERE margin_of_victory = "1 stroke" | [
2061,
373,
262,
1675,
1582,
4776,
329,
262,
7756,
351,
257,
10330,
286,
5373,
286,
352,
14000,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2598,
33411,
10330,
62,
1659,
62,
32433,
652,
796,
366,
16,
14000,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1675,
1582,
4776,
329,
262,
7756,
351,
257,
10330,
286,
5373,
286,
352,
14000,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2598,
33411,
10330,
62,
1659,
62,
32433,
652,
796,
366,
16,
14000,
1
] |
Which Venue has a Result of 2 0? | SELECT venue FROM table_name_2 WHERE result = "2–0" | [
13828,
9932,
518,
468,
257,
25414,
286,
362,
657,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
17,
33411,
1255,
796,
366,
17,
1906,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9932,
518,
468,
257,
25414,
286,
362,
657,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
17,
33411,
1255,
796,
366,
17,
1906,
15,
1
] |
What date was Richmond the away team? | SELECT "Date" FROM table_32669 WHERE "Away team" = 'richmond' | [
2061,
3128,
373,
16940,
262,
1497,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
39195,
3388,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
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
] | [
2061,
3128,
373,
16940,
262,
1497,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
39195,
3388,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
6
] |
If the team is Rubio , what is the 08 points? | SELECT "08 Pts" FROM table_24709 WHERE "Team" = 'Rubio Ñú' | [
1532,
262,
1074,
318,
15476,
837,
644,
318,
262,
8487,
2173,
30,
46506,
366,
2919,
350,
912,
1,
16034,
3084,
62,
1731,
31495,
33411,
366,
15592,
1,
796,
705,
21312,
952,
6184,
239,
21356,
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
] | [
1532,
262,
1074,
318,
15476,
837,
644,
318,
262,
8487,
2173,
30,
46506,
366,
2919,
350,
912,
1,
16034,
3084,
62,
1731,
31495,
33411,
366,
15592,
1,
796,
705,
21312,
952,
6184,
239,
21356,
6
] |
WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98? | SELECT AVG(evening_gown) FROM table_name_21 WHERE swimsuit < 7.99 AND interview > 7.98 | [
12418,
488,
31867,
402,
593,
468,
257,
35953,
6063,
4833,
621,
767,
13,
2079,
290,
257,
19371,
4025,
621,
767,
13,
4089,
30,
46506,
35224,
7,
10197,
278,
62,
70,
593,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
9422,
6063,
1279,
767,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
488,
31867,
402,
593,
468,
257,
35953,
6063,
4833,
621,
767,
13,
2079,
290,
257,
19371,
4025,
621,
767,
13,
4089,
30,
46506,
35224,
7,
10197,
278,
62,
70,
593,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
9422,
6063,
1279,
767,... |
how many positions in 2009? | SELECT COUNT("Position") FROM table_16251 WHERE "Season" = '2009' | [
4919,
867,
6116,
287,
3717,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1433,
28072,
33411,
366,
18960,
1,
796,
705,
10531,
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
] | [
4919,
867,
6116,
287,
3717,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
1433,
28072,
33411,
366,
18960,
1,
796,
705,
10531,
6
] |
Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue? | SELECT "Home captain" FROM table_71661 WHERE "Venue" = 'edgbaston' | [
8241,
373,
262,
5995,
10654,
329,
262,
6208,
2872,
286,
4505,
287,
4492,
379,
262,
1717,
22296,
45966,
9932,
518,
30,
46506,
366,
16060,
10654,
1,
16034,
3084,
62,
22,
1433,
5333,
33411,
366,
37522,
518,
1,
796,
705,
276,
22296,
45966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
10654,
329,
262,
6208,
2872,
286,
4505,
287,
4492,
379,
262,
1717,
22296,
45966,
9932,
518,
30,
46506,
366,
16060,
10654,
1,
16034,
3084,
62,
22,
1433,
5333,
33411,
366,
37522,
518,
1,
796,
705,
276,
22296,
45966... |
What is the Weight of the GK Player with 2012 Club of CN Atl tic-Barceloneta? | SELECT "Weight" FROM table_64084 WHERE "Pos." = 'gk' AND "2012 club" = 'cn atlètic-barceloneta' | [
2061,
318,
262,
14331,
286,
262,
402,
42,
7853,
351,
2321,
6289,
286,
31171,
5234,
256,
291,
12,
10374,
5276,
261,
17167,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
31102,
5705,
33411,
366,
21604,
526,
796,
705,
70,
74,
6,
5357,
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
] | [
2061,
318,
262,
14331,
286,
262,
402,
42,
7853,
351,
2321,
6289,
286,
31171,
5234,
256,
291,
12,
10374,
5276,
261,
17167,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
31102,
5705,
33411,
366,
21604,
526,
796,
705,
70,
74,
6,
5357,
366... |
What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010? | SELECT "Category" FROM table_15556 WHERE "Result" = 'nominated' AND "Year" = '2010' AND "Award" = 'kids'' choice awards mexico' AND "Recipient(s)" = 'joe jonas' | [
2061,
6536,
373,
5689,
40458,
19332,
329,
379,
262,
17476,
6,
18502,
15434,
5828,
287,
3050,
30,
46506,
366,
27313,
1,
16034,
3084,
62,
1314,
37864,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
17688,
1,
796,
705,
10333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6536,
373,
5689,
40458,
19332,
329,
379,
262,
17476,
6,
18502,
15434,
5828,
287,
3050,
30,
46506,
366,
27313,
1,
16034,
3084,
62,
1314,
37864,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
17688,
1,
796,
705,
10333,... |
Posts, Views, and View/Post ratio per day. | SELECT DATE(p.CreationDate) AS pdate, COUNT(*) AS nposts_per_day, SUM(p.ViewCount) AS nviews_per_day, SUM(p.ViewCount) / COUNT(*) AS view_post_ratio FROM Tags JOIN PostTags AS pt ON Tags.Id = pt.TagId JOIN Posts AS p ON pt.PostId = p.Id WHERE Tags.TagName = @TagName GROUP BY DATE(p.CreationDate) ORDER BY pdate DESC LIM... | [
21496,
11,
29978,
11,
290,
3582,
14,
6307,
8064,
583,
1110,
13,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
8,
7054,
279,
4475,
11,
327,
28270,
7,
28104,
7054,
299,
24875,
62,
525,
62,
820,
11,
35683,
7,
79,
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,
1,
1,
1,
1... | [
21496,
11,
29978,
11,
290,
3582,
14,
6307,
8064,
583,
1110,
13,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
8,
7054,
279,
4475,
11,
327,
28270,
7,
28104,
7054,
299,
24875,
62,
525,
62,
820,
11,
35683,
7,
79,
13,
7680,
12332,
... |
What is Competition, when Date is '28 March 2001'? | SELECT competition FROM table_name_24 WHERE date = "28 march 2001" | [
2061,
318,
27348,
11,
618,
7536,
318,
705,
2078,
2805,
5878,
30960,
46506,
5449,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
2078,
9960,
5878,
1
] | [
1,
1,
1,
1,
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,
27348,
11,
618,
7536,
318,
705,
2078,
2805,
5878,
30960,
46506,
5449,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
2078,
9960,
5878,
1
] |
For those employees who was hired before 2002-06-21, give me the comparison about the sum of employee_id over the hire_date bin hire_date by time, and order by the sum employee id in descending. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(EMPLOYEE_ID) DESC | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1502,
416,
262,
2160,
6538,
4686,
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... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1502,
416,
262,
2160,
6538,
4686,
2... |
tell me the age and marital status of patient with patient id 990. | SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.subject_id = "990" | [
33331,
502,
262,
2479,
290,
29555,
3722,
286,
5827,
351,
5827,
4686,
860,
3829,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
34155,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
286,
5827,
351,
5827,
4686,
860,
3829,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
34155,
1
] |
What is Argentina's language? | SELECT "Language" FROM table_71120 WHERE "Country" = 'argentina' | [
2061,
318,
16519,
338,
3303,
30,
46506,
366,
32065,
1,
16034,
3084,
62,
4869,
10232,
33411,
366,
33921,
1,
796,
705,
853,
298,
1437,
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
] | [
2061,
318,
16519,
338,
3303,
30,
46506,
366,
32065,
1,
16034,
3084,
62,
4869,
10232,
33411,
366,
33921,
1,
796,
705,
853,
298,
1437,
6
] |
Who was the winner of the tre valli varesine race? | SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine" | [
8241,
373,
262,
8464,
286,
262,
2054,
410,
36546,
410,
3565,
500,
3234,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1899,
33411,
3234,
62,
3672,
796,
366,
33945,
410,
36546,
410,
3565,
500,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8464,
286,
262,
2054,
410,
36546,
410,
3565,
500,
3234,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1899,
33411,
3234,
62,
3672,
796,
366,
33945,
410,
36546,
410,
3565,
500,
1
] |
What was the total number of wins with player Mike Hill with a rank bigger than 2? | SELECT COUNT("Wins") FROM table_51678 WHERE "Rank" > '2' AND "Player" = 'mike hill' | [
2061,
373,
262,
2472,
1271,
286,
7864,
351,
2137,
4995,
3327,
351,
257,
4279,
5749,
621,
362,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
47493,
3695,
33411,
366,
27520,
1,
1875,
705,
17,
6,
5357,
366,
14140,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2472,
1271,
286,
7864,
351,
2137,
4995,
3327,
351,
257,
4279,
5749,
621,
362,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
47493,
3695,
33411,
366,
27520,
1,
1875,
705,
17,
6,
5357,
366,
14140,
1,
79... |
what is the song name for the film name ganga kare insaaf? | SELECT "Song name" FROM table_352 WHERE "Film name" = 'Ganga Kare Insaaf' | [
10919,
318,
262,
3496,
1438,
329,
262,
2646,
1438,
7706,
64,
479,
533,
1035,
64,
1878,
30,
46506,
366,
44241,
1438,
1,
16034,
3084,
62,
33394,
33411,
366,
39750,
1438,
1,
796,
705,
38,
16484,
49396,
7088,
64,
1878,
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
] | [
10919,
318,
262,
3496,
1438,
329,
262,
2646,
1438,
7706,
64,
479,
533,
1035,
64,
1878,
30,
46506,
366,
44241,
1438,
1,
16034,
3084,
62,
33394,
33411,
366,
39750,
1438,
1,
796,
705,
38,
16484,
49396,
7088,
64,
1878,
6
] |
Find the number of routes with destination airports in Italy. | SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' | [
16742,
262,
1271,
286,
11926,
351,
10965,
22600,
287,
8031,
13,
46506,
327,
28270,
7,
28104,
16034,
11926,
7054,
309,
16,
32357,
1268,
22600,
7054,
309,
17,
6177,
309,
16,
13,
67,
301,
62,
499,
312,
796,
309,
17,
13,
499,
312,
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
] | [
16742,
262,
1271,
286,
11926,
351,
10965,
22600,
287,
8031,
13,
46506,
327,
28270,
7,
28104,
16034,
11926,
7054,
309,
16,
32357,
1268,
22600,
7054,
309,
17,
6177,
309,
16,
13,
67,
301,
62,
499,
312,
796,
309,
17,
13,
499,
312,
33411... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the job_id , and display in desc by the bars. | SELECT JOB_ID, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
3359,
287,
1715,
416,
262,
9210,
13,
46506,
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,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
3359,
287,
1715,
416,
262,
9210,
13,
46506,
4... |
What is the highest number of bronzes for countries ranking over 5 with 0 golds? | SELECT MAX("Bronze") FROM table_15486 WHERE "Rank" > '5' AND "Gold" < '0' | [
2061,
318,
262,
4511,
1271,
286,
18443,
12271,
329,
2678,
12759,
625,
642,
351,
657,
3869,
82,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
1314,
34251,
33411,
366,
27520,
1,
1875,
705,
20,
6,
5357,
366,
13306,
1,
1279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
18443,
12271,
329,
2678,
12759,
625,
642,
351,
657,
3869,
82,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
1314,
34251,
33411,
366,
27520,
1,
1875,
705,
20,
6,
5357,
366,
13306,
1,
1279,... |
Which date has the tom gullikson butch walts final, and who was the runner-up? | SELECT "Date" FROM table_33366 WHERE "Outcome" = 'runner-up' AND "Opponents in the final" = 'tom gullikson butch walts' | [
13828,
3128,
468,
262,
16667,
43289,
72,
46505,
475,
354,
6514,
912,
2457,
11,
290,
508,
373,
262,
17490,
12,
929,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2091,
32459,
33411,
366,
7975,
2958,
1,
796,
705,
16737,
12,
929,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3128,
468,
262,
16667,
43289,
72,
46505,
475,
354,
6514,
912,
2457,
11,
290,
508,
373,
262,
17490,
12,
929,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2091,
32459,
33411,
366,
7975,
2958,
1,
796,
705,
16737,
12,
929,
6,
5357,... |
What was the title when 1.121 million US people watched it? | SELECT "Title" FROM table_26136 WHERE "U.S. viewers (millions)" = '1.121' | [
2061,
373,
262,
3670,
618,
352,
13,
19244,
1510,
1294,
661,
7342,
340,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2075,
20809,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
16,
13,
19244,
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
] | [
2061,
373,
262,
3670,
618,
352,
13,
19244,
1510,
1294,
661,
7342,
340,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2075,
20809,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
16,
13,
19244,
6
] |
Name the name for company d | SELECT "Name" FROM table_28104 WHERE "Company" = 'Company D' | [
5376,
262,
1438,
329,
1664,
288,
46506,
366,
5376,
1,
16034,
3084,
62,
2078,
13464,
33411,
366,
39154,
1,
796,
705,
39154,
360,
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
] | [
5376,
262,
1438,
329,
1664,
288,
46506,
366,
5376,
1,
16034,
3084,
62,
2078,
13464,
33411,
366,
39154,
1,
796,
705,
39154,
360,
6
] |
What were the performance lengths in the 3000 m events in and after 2003? | SELECT "Performance" FROM table_54566 WHERE "Season" > '2003' AND "Discipline" = '3000 m' | [
2061,
547,
262,
2854,
20428,
287,
262,
20343,
285,
2995,
287,
290,
706,
5816,
30,
46506,
366,
32273,
1,
16034,
3084,
62,
45326,
2791,
33411,
366,
18960,
1,
1875,
705,
16088,
6,
5357,
366,
7279,
34647,
1,
796,
705,
23924,
285,
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
] | [
2061,
547,
262,
2854,
20428,
287,
262,
20343,
285,
2995,
287,
290,
706,
5816,
30,
46506,
366,
32273,
1,
16034,
3084,
62,
45326,
2791,
33411,
366,
18960,
1,
1875,
705,
16088,
6,
5357,
366,
7279,
34647,
1,
796,
705,
23924,
285,
6
] |
did patient 67418 ever have dpt administration since 2101? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'dpt administration') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 67418) AND STRFTIME('%y', pr... | [
20839,
5827,
718,
4524,
1507,
1683,
423,
288,
457,
3662,
1201,
2310,
486,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
718,
4524,
1507,
1683,
423,
288,
457,
3662,
1201,
2310,
486,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67... |
Show the number of date of notes from each date of notes | SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes | [
15307,
262,
1271,
286,
3128,
286,
4710,
422,
1123,
3128,
286,
4710,
46506,
3128,
62,
1659,
62,
17815,
11,
327,
28270,
7,
4475,
62,
1659,
62,
17815,
8,
16034,
25809,
62,
16130
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
4710,
422,
1123,
3128,
286,
4710,
46506,
3128,
62,
1659,
62,
17815,
11,
327,
28270,
7,
4475,
62,
1659,
62,
17815,
8,
16034,
25809,
62,
16130
] |
Which AFC cup does Masahiro Fukasawa have? | SELECT afc_cup FROM table_name_17 WHERE name = "masahiro fukasawa" | [
13828,
27987,
6508,
857,
11066,
993,
7058,
22431,
292,
6909,
423,
30,
46506,
6580,
66,
62,
25244,
16034,
3084,
62,
3672,
62,
1558,
33411,
1438,
796,
366,
5356,
993,
7058,
277,
2724,
292,
6909,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27987,
6508,
857,
11066,
993,
7058,
22431,
292,
6909,
423,
30,
46506,
6580,
66,
62,
25244,
16034,
3084,
62,
3672,
62,
1558,
33411,
1438,
796,
366,
5356,
993,
7058,
277,
2724,
292,
6909,
1
] |
Count the number of services by services, could you sort X-axis from high to low order? | SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY services DESC | [
12332,
262,
1271,
286,
2594,
416,
2594,
11,
714,
345,
3297,
1395,
12,
22704,
422,
1029,
284,
1877,
1502,
30,
46506,
2594,
11,
327,
28270,
7,
30416,
8,
16034,
4429,
44441,
11050,
2594,
38678,
11050,
2594,
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
] | [
12332,
262,
1271,
286,
2594,
416,
2594,
11,
714,
345,
3297,
1395,
12,
22704,
422,
1029,
284,
1877,
1502,
30,
46506,
2594,
11,
327,
28270,
7,
30416,
8,
16034,
4429,
44441,
11050,
2594,
38678,
11050,
2594,
22196,
34
] |
Show different types of ships and the average tonnage of ships of each type Show bar chart, sort Y in asc order. | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY AVG(Tonnage) | [
15307,
1180,
3858,
286,
7937,
290,
262,
2811,
5680,
77,
496,
286,
7937,
286,
1123,
2099,
5438,
2318,
8262,
11,
3297,
575,
287,
10570,
1502,
13,
46506,
5994,
11,
35224,
7,
35416,
77,
496,
8,
16034,
4074,
44441,
11050,
5994,
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
] | [
15307,
1180,
3858,
286,
7937,
290,
262,
2811,
5680,
77,
496,
286,
7937,
286,
1123,
2099,
5438,
2318,
8262,
11,
3297,
575,
287,
10570,
1502,
13,
46506,
5994,
11,
35224,
7,
35416,
77,
496,
8,
16034,
4074,
44441,
11050,
5994,
38678,
1105... |
give me the top three most commonly prescribed drugs for patients of 30s until 2100? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND STRFTIME('%y', medication.drugstarttime) <= '2100' GROUP BY medication.drugn... | [
26535,
502,
262,
1353,
1115,
749,
8811,
14798,
5010,
329,
3871,
286,
1542,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1115,
749,
8811,
14798,
5010,
329,
3871,
286,
1542,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
... |
Users 'ranking' by sign up date and activity. | SELECT u.Id AS "id", u.Id AS "user_link", u.Reputation, MIN(u.CreationDate) AS "user_creation_date", MIN(DATEDIFF(dd, u.CreationDate, GETDATE())) - 7 AS "days_passed_since", MIN(p.CreationDate) AS "last_activity_date", MIN(DATEDIFF(dd, p.CreationDate, GETDATE())) - 7 AS "days_passed_since" FROM Users AS u INNER JOIN Po... | [
14490,
705,
28405,
6,
416,
1051,
510,
3128,
290,
3842,
13,
46506,
334,
13,
7390,
7054,
366,
312,
1600,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
6207,
7094,
11,
20625,
7,
84,
13,
12443,
341,
10430,
8,
7054,
366,
722... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
705,
28405,
6,
416,
1051,
510,
3128,
290,
3842,
13,
46506,
334,
13,
7390,
7054,
366,
312,
1600,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
6207,
7094,
11,
20625,
7,
84,
13,
12443,
341,
10430,
8,
7054,
366,
722... |
Which Money has a Score of 70-68-73-68=279? | SELECT MIN(money___) AS $__ FROM table_name_25 WHERE score = 70 - 68 - 73 - 68 = 279 | [
13828,
12911,
468,
257,
15178,
286,
4317,
12,
3104,
12,
4790,
12,
3104,
28,
26050,
30,
46506,
20625,
7,
26316,
17569,
8,
7054,
720,
834,
16034,
3084,
62,
3672,
62,
1495,
33411,
4776,
796,
4317,
532,
8257,
532,
8854,
532,
8257,
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
] | [
13828,
12911,
468,
257,
15178,
286,
4317,
12,
3104,
12,
4790,
12,
3104,
28,
26050,
30,
46506,
20625,
7,
26316,
17569,
8,
7054,
720,
834,
16034,
3084,
62,
3672,
62,
1495,
33411,
4776,
796,
4317,
532,
8257,
532,
8854,
532,
8257,
796,
... |
Name the number of played for 16 | SELECT COUNT("Played") FROM table_1127 WHERE "Scored" = '16' | [
5376,
262,
1271,
286,
2826,
329,
1467,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
14686,
22,
33411,
366,
3351,
1850,
1,
796,
705,
1433,
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
] | [
5376,
262,
1271,
286,
2826,
329,
1467,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
14686,
22,
33411,
366,
3351,
1850,
1,
796,
705,
1433,
6
] |
In the 2012 production in Wales, who played the character that Owen Little played in Australia? | SELECT "Wales Cast, 2012" FROM table_31059 WHERE "Australian Cast, 2012" = 'Owen Little' | [
818,
262,
2321,
3227,
287,
11769,
11,
508,
2826,
262,
2095,
326,
22605,
7703,
2826,
287,
4505,
30,
46506,
366,
54,
2040,
5833,
11,
2321,
1,
16034,
3084,
62,
26717,
3270,
33411,
366,
38036,
5833,
11,
2321,
1,
796,
705,
46,
21006,
770... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2321,
3227,
287,
11769,
11,
508,
2826,
262,
2095,
326,
22605,
7703,
2826,
287,
4505,
30,
46506,
366,
54,
2040,
5833,
11,
2321,
1,
16034,
3084,
62,
26717,
3270,
33411,
366,
38036,
5833,
11,
2321,
1,
796,
705,
46,
21006,
770... |
What were the results for the incumbent from Iowa 2 district? | SELECT results FROM table_name_12 WHERE district = "iowa 2" | [
2061,
547,
262,
2482,
329,
262,
23526,
422,
9406,
362,
4783,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
1065,
33411,
4783,
796,
366,
72,
8455,
362,
1
] | [
1,
1,
1,
1,
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,
2482,
329,
262,
23526,
422,
9406,
362,
4783,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
1065,
33411,
4783,
796,
366,
72,
8455,
362,
1
] |
List all payment methods and number of payments using each payment methods. | SELECT payment_method_code, COUNT(*) FROM customer_payments GROUP BY payment_method_code | [
8053,
477,
6074,
5050,
290,
1271,
286,
7524,
1262,
1123,
6074,
5050,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
6491,
62,
15577,
902,
44441,
11050,
6074,
62,
24396,
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,
1,
1,
1,
1
] | [
8053,
477,
6074,
5050,
290,
1271,
286,
7524,
1262,
1123,
6074,
5050,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
6491,
62,
15577,
902,
44441,
11050,
6074,
62,
24396,
62,
8189
] |
What is the distance when the weight is 9.2? | SELECT "Distance" FROM table_8110 WHERE "Weight" = '9.2' | [
2061,
318,
262,
5253,
618,
262,
3463,
318,
860,
13,
17,
30,
46506,
366,
45767,
1,
16034,
3084,
62,
6659,
940,
33411,
366,
25844,
1,
796,
705,
24,
13,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5253,
618,
262,
3463,
318,
860,
13,
17,
30,
46506,
366,
45767,
1,
16034,
3084,
62,
6659,
940,
33411,
366,
25844,
1,
796,
705,
24,
13,
17,
6
] |
find the minimum age of white female patients . | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "WHITE" | [
19796,
262,
5288,
2479,
286,
2330,
4048,
3871,
764,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
2479,
286,
2330,
4048,
3871,
764,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1
] |
What was the U.S birthstone in 1912 when in 2013 the birthstone was amethyst? | SELECT us__1912_ FROM table_name_34 WHERE us__2013_ = "amethyst" | [
2061,
373,
262,
471,
13,
50,
4082,
6440,
287,
34463,
618,
287,
2211,
262,
4082,
6440,
373,
716,
44166,
30,
46506,
514,
834,
1129,
1065,
62,
16034,
3084,
62,
3672,
62,
2682,
33411,
514,
834,
6390,
62,
796,
366,
321,
44166,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
13,
50,
4082,
6440,
287,
34463,
618,
287,
2211,
262,
4082,
6440,
373,
716,
44166,
30,
46506,
514,
834,
1129,
1065,
62,
16034,
3084,
62,
3672,
62,
2682,
33411,
514,
834,
6390,
62,
796,
366,
321,
44166,
1
] |
What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance? | SELECT SUM("Week") FROM table_13299 WHERE "Opponent" = 'tampa bay buccaneers' AND "Attendance" < '60,320' | [
2061,
318,
262,
2160,
319,
1285,
1028,
262,
15528,
4696,
37006,
351,
1342,
621,
3126,
11,
19504,
287,
14858,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
1485,
22579,
33411,
366,
27524,
3471,
1,
796,
705,
83,
13299,
15489,
809,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
1285,
1028,
262,
15528,
4696,
37006,
351,
1342,
621,
3126,
11,
19504,
287,
14858,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
1485,
22579,
33411,
366,
27524,
3471,
1,
796,
705,
83,
13299,
15489,
809,... |
What is the clock multiplier if the voltage range (v) is 3.3 - 3.6; input clock (mhz) is 33 x 3 / 50 x 2; and part number is a80486dx4-100? | SELECT clock_multiplier FROM table_15261_1 WHERE voltage_range__v_ = "3.3 - 3.6" AND input_clock__mhz_ = "33 X 3 / 50 X 2" AND part_number = "A80486DX4-100" | [
2061,
318,
262,
8801,
33090,
611,
262,
15004,
2837,
357,
85,
8,
318,
513,
13,
18,
532,
513,
13,
21,
26,
5128,
8801,
357,
76,
32179,
8,
318,
4747,
2124,
513,
1220,
2026,
2124,
362,
26,
290,
636,
1271,
318,
257,
1795,
34251,
34350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8801,
33090,
611,
262,
15004,
2837,
357,
85,
8,
318,
513,
13,
18,
532,
513,
13,
21,
26,
5128,
8801,
357,
76,
32179,
8,
318,
4747,
2124,
513,
1220,
2026,
2124,
362,
26,
290,
636,
1271,
318,
257,
1795,
34251,
34350,
... |
look up for the number of patients whose discharge location is left against medical advice and their procedure title is cystoscopy nec. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.short_title = "Cystoscopy NEC" | [
5460,
510,
329,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
5608,
290,
511,
8771,
3670,
318,
3075,
301,
17500,
11081,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5460,
510,
329,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
5608,
290,
511,
8771,
3670,
318,
3075,
301,
17500,
11081,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... |
What year was the result did not qualify? | SELECT "Year" FROM table_59413 WHERE "Result" = 'did not qualify' | [
2061,
614,
373,
262,
1255,
750,
407,
12780,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
3270,
44103,
33411,
366,
23004,
1,
796,
705,
20839,
407,
12780,
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
] | [
2061,
614,
373,
262,
1255,
750,
407,
12780,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
3270,
44103,
33411,
366,
23004,
1,
796,
705,
20839,
407,
12780,
6
] |
Sort the names of products in ascending order of their price, and count them by a bar chart | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY Product_Price | [
42758,
262,
3891,
286,
3186,
287,
41988,
1502,
286,
511,
2756,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
8721,
62,
5376,
11,
327,
28270,
7,
15667,
62,
5376,
8,
16034,
18675,
44441,
11050,
8721,
62,
5376,
38678,
11050,
8721,
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
] | [
42758,
262,
3891,
286,
3186,
287,
41988,
1502,
286,
511,
2756,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
8721,
62,
5376,
11,
327,
28270,
7,
15667,
62,
5376,
8,
16034,
18675,
44441,
11050,
8721,
62,
5376,
38678,
11050,
8721,
62,
... |
Return the phone and email of the customer with the first name Aniyah and last name Feest. | SELECT customer_phone, customer_email FROM customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest" | [
13615,
262,
3072,
290,
3053,
286,
262,
6491,
351,
262,
717,
1438,
1052,
46398,
290,
938,
1438,
5452,
395,
13,
46506,
6491,
62,
4862,
11,
6491,
62,
12888,
16034,
4297,
33411,
6491,
62,
11085,
62,
3672,
796,
366,
2025,
46398,
1,
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,
1,
1
] | [
13615,
262,
3072,
290,
3053,
286,
262,
6491,
351,
262,
717,
1438,
1052,
46398,
290,
938,
1438,
5452,
395,
13,
46506,
6491,
62,
4862,
11,
6491,
62,
12888,
16034,
4297,
33411,
6491,
62,
11085,
62,
3672,
796,
366,
2025,
46398,
1,
5357,
... |
what is the cheapest one way fare from BOSTON to WASHINGTON | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | [
10919,
318,
262,
28918,
530,
835,
14505,
422,
347,
10892,
1340,
284,
370,
19436,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28918,
530,
835,
14505,
422,
347,
10892,
1340,
284,
370,
19436,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... |
How tall is the player from Chicago, IL? | SELECT height FROM table_name_48 WHERE hometown = "chicago, il" | [
2437,
7331,
318,
262,
2137,
422,
4842,
11,
14639,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
2780,
33411,
20994,
796,
366,
354,
4549,
11,
4229,
1
] | [
1,
1,
1,
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,
7331,
318,
262,
2137,
422,
4842,
11,
14639,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
2780,
33411,
20994,
796,
366,
354,
4549,
11,
4229,
1
] |
please list all flights from NASHVILLE to MEMPHIS on monday morning | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 21 AND DATE_DAYalias0.month_number = 2 AND DATE_DAYalias0.year = 1991)) AND to... | [
29688,
1351,
477,
13956,
422,
7210,
39,
38526,
284,
35153,
11909,
1797,
319,
285,
3204,
3329,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,
13,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
29688,
1351,
477,
13956,
422,
7210,
39,
38526,
284,
35153,
11909,
1797,
319,
285,
3204,
3329,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,
13,
125... |
a FIRST class flight on AA to SAN FRANCISCO on tuesday in the next week | SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE_DAY_0.day_number = 22 AND DATE_DAY_0.month_number = 3 AND DATE_DAY_0.year = 1991 AND... | [
64,
31328,
1398,
5474,
319,
15923,
284,
37376,
8782,
20940,
1797,
8220,
319,
256,
3322,
287,
262,
1306,
1285,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
7054,
360,
6158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
64,
31328,
1398,
5474,
319,
15923,
284,
37376,
8782,
20940,
1797,
8220,
319,
256,
3322,
287,
262,
1306,
1285,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
7054,
360,
6158... |
Where was the 05/09/1973 venue? | SELECT "Venue" FROM table_46508 WHERE "Date" = '05/09/1973' | [
8496,
373,
262,
8870,
14,
2931,
14,
40220,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3510,
33042,
33411,
366,
10430,
1,
796,
705,
2713,
14,
2931,
14,
40220,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
8870,
14,
2931,
14,
40220,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3510,
33042,
33411,
366,
10430,
1,
796,
705,
2713,
14,
2931,
14,
40220,
6
] |
how many patients whose primary disease is upper gi bleed and year of birth is less than 2076? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "UPPER GI BLEED" AND demographic.dob_year < "2076" | [
4919,
867,
3871,
3025,
4165,
4369,
318,
6727,
308,
72,
30182,
290,
614,
286,
4082,
318,
1342,
621,
1160,
4304,
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,
1,
1
] | [
4919,
867,
3871,
3025,
4165,
4369,
318,
6727,
308,
72,
30182,
290,
614,
286,
4082,
318,
1342,
621,
1160,
4304,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... |
what is patient 027-144847's average value of protein s the last month? | SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-144847')) AND lab.labname = 'protein s' AND DATETIME(lab.labresulttime, 'start... | [
10919,
318,
5827,
657,
1983,
12,
1415,
2780,
2857,
338,
2811,
1988,
286,
7532,
264,
262,
938,
1227,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
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... | [
10919,
318,
5827,
657,
1983,
12,
1415,
2780,
2857,
338,
2811,
1988,
286,
7532,
264,
262,
938,
1227,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
2... |
Name the samurai for stampede of t. mask | SELECT samurai FROM table_name_97 WHERE stampede = "t. mask" | [
5376,
262,
49797,
329,
28305,
68,
286,
256,
13,
9335,
46506,
49797,
16034,
3084,
62,
3672,
62,
5607,
33411,
28305,
68,
796,
366,
83,
13,
9335,
1
] | [
1,
1,
1,
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,
49797,
329,
28305,
68,
286,
256,
13,
9335,
46506,
49797,
16034,
3084,
62,
3672,
62,
5607,
33411,
28305,
68,
796,
366,
83,
13,
9335,
1
] |
What club team has 216 overall? | SELECT club_team FROM table_name_70 WHERE overall = 216 | [
2061,
3430,
1074,
468,
26881,
4045,
30,
46506,
3430,
62,
15097,
16034,
3084,
62,
3672,
62,
2154,
33411,
4045,
796,
26881
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3430,
1074,
468,
26881,
4045,
30,
46506,
3430,
62,
15097,
16034,
3084,
62,
3672,
62,
2154,
33411,
4045,
796,
26881
] |
What is the total number of Week(s), when Attendance is 61,603? | SELECT COUNT(week) FROM table_name_23 WHERE attendance = "61,603" | [
2061,
318,
262,
2472,
1271,
286,
6119,
7,
82,
828,
618,
46502,
590,
318,
8454,
11,
35642,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
14858,
796,
366,
5333,
11,
35642,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6119,
7,
82,
828,
618,
46502,
590,
318,
8454,
11,
35642,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
14858,
796,
366,
5333,
11,
35642,
1
] |
On what date was Kentucky the opponent, and Ragle lost? | SELECT date FROM table_name_9 WHERE opponent = "kentucky" AND loss = "ragle" | [
2202,
644,
3128,
373,
11867,
262,
6125,
11,
290,
371,
19345,
2626,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
6125,
796,
366,
74,
298,
5309,
1,
5357,
2994,
796,
366,
81,
19345,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
11867,
262,
6125,
11,
290,
371,
19345,
2626,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
6125,
796,
366,
74,
298,
5309,
1,
5357,
2994,
796,
366,
81,
19345,
1
] |
What is the men's nickname at the school that has the lady wildcats women's nickname? | SELECT men’s_nickname FROM table_10577579_3 WHERE women’s_nickname = "Lady Wildcats" | [
2061,
318,
262,
1450,
338,
21814,
379,
262,
1524,
326,
468,
262,
10846,
4295,
24619,
1466,
338,
21814,
30,
46506,
1450,
447,
247,
82,
62,
17172,
3672,
16034,
3084,
62,
940,
3553,
2425,
3720,
62,
18,
33411,
1466,
447,
247,
82,
62,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1450,
338,
21814,
379,
262,
1524,
326,
468,
262,
10846,
4295,
24619,
1466,
338,
21814,
30,
46506,
1450,
447,
247,
82,
62,
17172,
3672,
16034,
3084,
62,
940,
3553,
2425,
3720,
62,
18,
33411,
1466,
447,
247,
82,
62,
17... |
Show me minimal weight by sex in a histogram, I want to order names in ascending order please. | SELECT Sex, MIN(Weight) FROM people GROUP BY Sex ORDER BY Sex | [
15307,
502,
10926,
3463,
416,
1714,
287,
257,
1554,
21857,
11,
314,
765,
284,
1502,
3891,
287,
41988,
1502,
3387,
13,
46506,
14419,
11,
20625,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10926,
3463,
416,
1714,
287,
257,
1554,
21857,
11,
314,
765,
284,
1502,
3891,
287,
41988,
1502,
3387,
13,
46506,
14419,
11,
20625,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
14419
] |
Who got high rebounds when Jordan Crawford (27) got high points? | SELECT "High rebounds" FROM table_29815 WHERE "High points" = 'Jordan Crawford (27)' | [
8241,
1392,
1029,
18841,
618,
8078,
24499,
357,
1983,
8,
1392,
1029,
2173,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
27728,
1314,
33411,
366,
11922,
2173,
1,
796,
705,
34522,
24499,
357,
1983,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1392,
1029,
18841,
618,
8078,
24499,
357,
1983,
8,
1392,
1029,
2173,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
27728,
1314,
33411,
366,
11922,
2173,
1,
796,
705,
34522,
24499,
357,
1983,
33047
] |
when was the first hospital admission time that patient 42956 was admitted through an emergency room admit last year? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 42956 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1 | [
12518,
373,
262,
717,
4436,
13938,
640,
326,
5827,
42313,
3980,
373,
6848,
832,
281,
6334,
2119,
9159,
938,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
42313,
3980,
5357,
25349,
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... | [
12518,
373,
262,
717,
4436,
13938,
640,
326,
5827,
42313,
3980,
373,
6848,
832,
281,
6334,
2119,
9159,
938,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
42313,
3980,
5357,
25349,
13,
... |
Questions where accepted answer score lower than any other answer score. | SELECT COUNT(Q.Id) FROM Posts AS Q, Posts AS A, Posts AS OA WHERE Q.AnswerCount > 1 AND A.ParentId = Q.Id AND OA.ParentId = Q.Id AND A.Id = Q.AcceptedAnswerId AND OA.Id != Q.AcceptedAnswerId AND A.Score < OA.Score | [
35741,
810,
6292,
3280,
4776,
2793,
621,
597,
584,
3280,
4776,
13,
46506,
327,
28270,
7,
48,
13,
7390,
8,
16034,
12043,
7054,
1195,
11,
12043,
7054,
317,
11,
12043,
7054,
440,
32,
33411,
1195,
13,
33706,
12332,
1875,
352,
5357,
317,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
810,
6292,
3280,
4776,
2793,
621,
597,
584,
3280,
4776,
13,
46506,
327,
28270,
7,
48,
13,
7390,
8,
16034,
12043,
7054,
1195,
11,
12043,
7054,
317,
11,
12043,
7054,
440,
32,
33411,
1195,
13,
33706,
12332,
1875,
352,
5357,
317,
... |
Get country tags and their frequency. | SELECT Tags.TagName, COUNT(PostTags.TagId) AS no FROM PostTags, Tags WHERE Tags.Id = PostTags.TagId AND TagName = 'france' GROUP BY TagName ORDER BY no DESC | [
3855,
1499,
15940,
290,
511,
8373,
13,
46506,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
6307,
36142,
13,
24835,
7390,
8,
7054,
645,
16034,
2947,
36142,
11,
44789,
33411,
44789,
13,
7390,
796,
2947,
36142,
13,
24835,
7390,
5357,
17467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3855,
1499,
15940,
290,
511,
8373,
13,
46506,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
6307,
36142,
13,
24835,
7390,
8,
7054,
645,
16034,
2947,
36142,
11,
44789,
33411,
44789,
13,
7390,
796,
2947,
36142,
13,
24835,
7390,
5357,
17467,
... |
okay what i would like to know is does TW flight 505 from CHARLOTTE to LAS VEGAS with a stop in ST. LOUIS serve DINNER that 's TW flight 505 or 163 | SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight AS FLIGHT_0, flight AS FLIGHT_1, flight AS FLIGHT_2, flight_leg AS FLIGHT_LEG_0, flight_leg AS FLIGHT_LEG_1, fl... | [
482,
323,
644,
1312,
561,
588,
284,
760,
318,
857,
17306,
5474,
43367,
422,
28521,
43,
2394,
9328,
284,
406,
1921,
569,
7156,
1921,
351,
257,
2245,
287,
3563,
13,
406,
2606,
1797,
4691,
360,
1268,
21479,
326,
705,
82,
17306,
5474,
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... | [
482,
323,
644,
1312,
561,
588,
284,
760,
318,
857,
17306,
5474,
43367,
422,
28521,
43,
2394,
9328,
284,
406,
1921,
569,
7156,
1921,
351,
257,
2245,
287,
3563,
13,
406,
2606,
1797,
4691,
360,
1268,
21479,
326,
705,
82,
17306,
5474,
4... |
Who was the Kit manufacturer that was has shirts sponsored by Walkers? | SELECT kit_manufacturer FROM table_name_63 WHERE shirt_sponsor = "walkers" | [
8241,
373,
262,
10897,
11554,
326,
373,
468,
20858,
15901,
416,
6857,
364,
30,
46506,
6220,
62,
48119,
15051,
16034,
3084,
62,
3672,
62,
5066,
33411,
10147,
62,
20587,
273,
796,
366,
11152,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10897,
11554,
326,
373,
468,
20858,
15901,
416,
6857,
364,
30,
46506,
6220,
62,
48119,
15051,
16034,
3084,
62,
3672,
62,
5066,
33411,
10147,
62,
20587,
273,
796,
366,
11152,
364,
1
] |
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)? | SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula" | [
1890,
262,
38712,
47394,
3754,
290,
2134,
286,
27047,
45508,
4712,
11,
644,
373,
262,
2377,
1883,
357,
41,
11024,
19427,
46506,
2377,
1883,
17569,
73,
11024,
834,
16034,
3084,
62,
3672,
62,
4310,
33411,
38712,
796,
366,
1416,
16300,
375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
38712,
47394,
3754,
290,
2134,
286,
27047,
45508,
4712,
11,
644,
373,
262,
2377,
1883,
357,
41,
11024,
19427,
46506,
2377,
1883,
17569,
73,
11024,
834,
16034,
3084,
62,
3672,
62,
4310,
33411,
38712,
796,
366,
1416,
16300,
375... |
What is the Genre for Malina (ger.-aus.-fr.), an Original Title? | SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" | [
2061,
318,
262,
5215,
260,
329,
4434,
1437,
357,
1362,
7874,
8717,
7874,
8310,
12179,
281,
13745,
11851,
30,
46506,
12121,
16034,
3084,
62,
3672,
62,
1065,
33411,
2656,
62,
7839,
796,
366,
7617,
1437,
357,
1362,
7874,
8717,
7874,
8310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5215,
260,
329,
4434,
1437,
357,
1362,
7874,
8717,
7874,
8310,
12179,
281,
13745,
11851,
30,
46506,
12121,
16034,
3084,
62,
3672,
62,
1065,
33411,
2656,
62,
7839,
796,
366,
7617,
1437,
357,
1362,
7874,
8717,
7874,
8310,
... |
When did the team play an away game against the Toronto Eagles? | SELECT date FROM table_name_39 WHERE away = "toronto eagles" | [
2215,
750,
262,
1074,
711,
281,
1497,
983,
1028,
262,
6586,
13785,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
1497,
796,
366,
13165,
5957,
304,
37803,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1074,
711,
281,
1497,
983,
1028,
262,
6586,
13785,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
1497,
796,
366,
13165,
5957,
304,
37803,
1
] |
How many open unanswered Beamer questions are there?. | SELECT COUNT(Id) FROM Posts WHERE AnswerCount = 0 AND Tags LIKE '%<beamer>%' AND ClosedDate IS NULL | [
2437,
867,
1280,
34001,
1355,
2382,
2683,
389,
612,
30,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
44789,
34178,
705,
4,
27,
1350,
2382,
29,
4,
6,
5357,
30550,
10430,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1280,
34001,
1355,
2382,
2683,
389,
612,
30,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
44789,
34178,
705,
4,
27,
1350,
2382,
29,
4,
6,
5357,
30550,
10430,
3180,
15697
] |
Which race had an average climb of 40%? | SELECT "Location" FROM table_21764 WHERE "Average climb (%)" = '40' | [
13828,
3234,
550,
281,
2811,
12080,
286,
2319,
4,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
24591,
2414,
33411,
366,
26287,
12080,
11509,
1,
796,
705,
1821,
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
] | [
13828,
3234,
550,
281,
2811,
12080,
286,
2319,
4,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
24591,
2414,
33411,
366,
26287,
12080,
11509,
1,
796,
705,
1821,
6
] |
How many television service are in italian and n is greater than 856.0? | SELECT television_service FROM table_15887683_15 WHERE language = "Italian" AND n° > 856.0 | [
2437,
867,
5581,
2139,
389,
287,
340,
7199,
290,
299,
318,
3744,
621,
807,
3980,
13,
15,
30,
46506,
5581,
62,
15271,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
1314,
33411,
3303,
796,
366,
45696,
1,
5357,
299,
7200,
1875,
807,
3980... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5581,
2139,
389,
287,
340,
7199,
290,
299,
318,
3744,
621,
807,
3980,
13,
15,
30,
46506,
5581,
62,
15271,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
1314,
33411,
3303,
796,
366,
45696,
1,
5357,
299,
7200,
1875,
807,
3980... |
How many episodes were titles 'voicemail'? | SELECT COUNT("Directed by") FROM table_16205 WHERE "Title" = 'Voicemail' | [
2437,
867,
8640,
547,
8714,
705,
13038,
291,
12888,
30960,
46506,
327,
28270,
7203,
13470,
276,
416,
4943,
16034,
3084,
62,
1433,
21261,
33411,
366,
19160,
1,
796,
705,
42144,
291,
12888,
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
] | [
2437,
867,
8640,
547,
8714,
705,
13038,
291,
12888,
30960,
46506,
327,
28270,
7203,
13470,
276,
416,
4943,
16034,
3084,
62,
1433,
21261,
33411,
366,
19160,
1,
796,
705,
42144,
291,
12888,
6
] |
among patients from white ethnic origin, calculate the total number of male patients. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.ethnicity = "WHITE" | [
35131,
3871,
422,
2330,
9450,
8159,
11,
15284,
262,
2472,
1271,
286,
4257,
3871,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
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
] | [
35131,
3871,
422,
2330,
9450,
8159,
11,
15284,
262,
2472,
1271,
286,
4257,
3871,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
3... |
Name the opponent for 4th | SELECT opponent FROM table_17120964_5 WHERE date = "4th" | [
5376,
262,
6125,
329,
604,
400,
46506,
6125,
16034,
3084,
62,
1558,
1065,
2931,
2414,
62,
20,
33411,
3128,
796,
366,
19,
400,
1
] | [
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,
6125,
329,
604,
400,
46506,
6125,
16034,
3084,
62,
1558,
1065,
2931,
2414,
62,
20,
33411,
3128,
796,
366,
19,
400,
1
] |
provide the monthly average amount of enteral/gastric tube intake #1 that patient 006-188114 has received until 12/15/2105. | SELECT AVG(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-188114')) AND intakeoutput.celllabel = 'ente... | [
15234,
485,
262,
9651,
2811,
2033,
286,
920,
1691,
14,
70,
459,
1173,
12403,
10337,
1303,
16,
326,
5827,
3571,
21,
12,
20356,
16562,
468,
2722,
1566,
1105,
14,
1314,
14,
17,
13348,
13,
46506,
35224,
7,
600,
539,
22915,
13,
3846,
210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9651,
2811,
2033,
286,
920,
1691,
14,
70,
459,
1173,
12403,
10337,
1303,
16,
326,
5827,
3571,
21,
12,
20356,
16562,
468,
2722,
1566,
1105,
14,
1314,
14,
17,
13348,
13,
46506,
35224,
7,
600,
539,
22915,
13,
3846,
210... |
How many different last names do the actors and actresses have? | SELECT COUNT(DISTINCT last_name) FROM actor | [
2437,
867,
1180,
938,
3891,
466,
262,
10544,
290,
49798,
423,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
938,
62,
3672,
8,
16034,
8674
] | [
1,
1,
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,
938,
3891,
466,
262,
10544,
290,
49798,
423,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
938,
62,
3672,
8,
16034,
8674
] |
Show a bar chart about how many employees does each role have?, and I want to display Y in ascending order please. | SELECT role_description, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code ORDER BY COUNT(*) | [
15307,
257,
2318,
8262,
546,
703,
867,
4409,
857,
1123,
2597,
423,
21747,
290,
314,
765,
284,
3359,
575,
287,
41988,
1502,
3387,
13,
46506,
2597,
62,
11213,
11,
327,
28270,
7,
28104,
16034,
371,
4316,
7054,
309,
16,
32357,
1268,
30260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
546,
703,
867,
4409,
857,
1123,
2597,
423,
21747,
290,
314,
765,
284,
3359,
575,
287,
41988,
1502,
3387,
13,
46506,
2597,
62,
11213,
11,
327,
28270,
7,
28104,
16034,
371,
4316,
7054,
309,
16,
32357,
1268,
30260... |
What's the type of the school whose students are nicknamed Chargers? | SELECT type FROM table_1969577_3 WHERE nickname = "Chargers" | [
2061,
338,
262,
2099,
286,
262,
1524,
3025,
2444,
389,
35786,
23559,
30,
46506,
2099,
16034,
3084,
62,
1129,
37381,
3324,
62,
18,
33411,
21814,
796,
366,
28316,
364,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2099,
286,
262,
1524,
3025,
2444,
389,
35786,
23559,
30,
46506,
2099,
16034,
3084,
62,
1129,
37381,
3324,
62,
18,
33411,
21814,
796,
366,
28316,
364,
1
] |
What is the name of the Constructor with a 19 Grid? | SELECT "Constructor" FROM table_10400 WHERE "Grid" = '19' | [
2061,
318,
262,
1438,
286,
262,
28407,
273,
351,
257,
678,
24846,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
940,
7029,
33411,
366,
41339,
1,
796,
705,
1129,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
28407,
273,
351,
257,
678,
24846,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
940,
7029,
33411,
366,
41339,
1,
796,
705,
1129,
6
] |
What horse was at the Badminton Horse Trials? | SELECT "Horse" FROM table_40646 WHERE "Competition" = 'badminton horse trials' | [
2061,
8223,
373,
379,
262,
7772,
76,
2371,
18455,
28945,
30,
46506,
366,
39,
7615,
1,
16034,
3084,
62,
1821,
27720,
33411,
366,
7293,
15620,
1,
796,
705,
14774,
76,
2371,
8223,
9867,
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,
8223,
373,
379,
262,
7772,
76,
2371,
18455,
28945,
30,
46506,
366,
39,
7615,
1,
16034,
3084,
62,
1821,
27720,
33411,
366,
7293,
15620,
1,
796,
705,
14774,
76,
2371,
8223,
9867,
6
] |
Give me the comparison about ACC_Percent over the All_Neutral , and could you rank All_Neutral in ascending order? | SELECT All_Neutral, ACC_Percent FROM basketball_match ORDER BY All_Neutral | [
23318,
502,
262,
7208,
546,
15859,
62,
31905,
625,
262,
1439,
62,
8199,
6815,
837,
290,
714,
345,
4279,
1439,
62,
8199,
6815,
287,
41988,
1502,
30,
46506,
1439,
62,
8199,
6815,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
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
] | [
23318,
502,
262,
7208,
546,
15859,
62,
31905,
625,
262,
1439,
62,
8199,
6815,
837,
290,
714,
345,
4279,
1439,
62,
8199,
6815,
287,
41988,
1502,
30,
46506,
1439,
62,
8199,
6815,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
1105... |
what is the number of patients whose hospital stay is above 4 days with procedure angioplasty of other non-coronary vessels? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "4" AND procedures.long_title = "Angioplasty of other non-coronary vessel(s)" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4436,
2652,
318,
2029,
604,
1528,
351,
8771,
3550,
14922,
75,
7833,
286,
584,
1729,
12,
10215,
261,
560,
14891,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
4436,
2652,
318,
2029,
604,
1528,
351,
8771,
3550,
14922,
75,
7833,
286,
584,
1729,
12,
10215,
261,
560,
14891,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16... |
What date did 'stanley' originally air? | SELECT "Original air date" FROM table_31184 WHERE "Title" = 'Stanley' | [
2061,
3128,
750,
705,
14192,
1636,
6,
6198,
1633,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
36244,
5705,
33411,
366,
19160,
1,
796,
705,
32140,
1636,
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,
3128,
750,
705,
14192,
1636,
6,
6198,
1633,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
36244,
5705,
33411,
366,
19160,
1,
796,
705,
32140,
1636,
6
] |
What is the name of the building at the Jewellery quarter? | SELECT "Name" FROM table_7882 WHERE "Location" = 'jewellery quarter' | [
2061,
318,
262,
1438,
286,
262,
2615,
379,
262,
3370,
41800,
3860,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
42980,
33411,
366,
14749,
1,
796,
705,
47483,
41800,
3860,
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,
1438,
286,
262,
2615,
379,
262,
3370,
41800,
3860,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
42980,
33411,
366,
14749,
1,
796,
705,
47483,
41800,
3860,
6
] |
provide the number of patients whose ethnicity is hispanic/latino - puerto rican and drug name is latanoprost 0.005% ophth. soln.? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "Latanoprost 0.005% Ophth. Soln." | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
465,
35843,
14,
15460,
2879,
532,
47574,
13806,
374,
7490,
290,
2563,
1438,
318,
3042,
272,
404,
23341,
657,
13,
22544,
4,
267,
746,
400,
13,
1540,
77,
40791,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
465,
35843,
14,
15460,
2879,
532,
47574,
13806,
374,
7490,
290,
2563,
1438,
318,
3042,
272,
404,
23341,
657,
13,
22544,
4,
267,
746,
400,
13,
1540,
77,
40791,
46506,
327,
28270,
7,
... |
What Opponent has a Site of war memorial stadium little rock, ar, and a Result of l6 7? | SELECT "Opponent" FROM table_61509 WHERE "Site" = 'war memorial stadium • little rock, ar' AND "Result" = 'l6–7' | [
2061,
9385,
3471,
468,
257,
14413,
286,
1175,
17357,
10308,
1310,
3881,
11,
610,
11,
290,
257,
25414,
286,
300,
21,
767,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
5333,
29022,
33411,
366,
29123,
1,
796,
705,
5767,
17357,
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,
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,
9385,
3471,
468,
257,
14413,
286,
1175,
17357,
10308,
1310,
3881,
11,
610,
11,
290,
257,
25414,
286,
300,
21,
767,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
5333,
29022,
33411,
366,
29123,
1,
796,
705,
5767,
17357,
10308,... |
give me the number of patients whose diagnoses short title is stevens-johnson-ten syn and drug route is iv bolus? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Stevens-Johnson-TEN syn" AND prescriptions.route = "IV BOLUS" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
2876,
574,
82,
12,
30686,
1559,
12,
1452,
6171,
290,
2563,
6339,
318,
21628,
11572,
385,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
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,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
2876,
574,
82,
12,
30686,
1559,
12,
1452,
6171,
290,
2563,
6339,
318,
21628,
11572,
385,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
1... |
when was patient 002-58884 prescribed for the first time the last month a medication via subq route? | 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-58884')) AND medication.routeadmin = 'subq' AND DATETIME(m... | [
12518,
373,
5827,
3571,
17,
12,
3365,
40353,
14798,
329,
262,
717,
640,
262,
938,
1227,
257,
14103,
2884,
850,
80,
6339,
30,
46506,
14103,
13,
30349,
9688,
2435,
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... | [
12518,
373,
5827,
3571,
17,
12,
3365,
40353,
14798,
329,
262,
717,
640,
262,
938,
1227,
257,
14103,
2884,
850,
80,
6339,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506... |
What was the fineness prior to 2007? | SELECT fineness FROM table_name_28 WHERE year < 2007 | [
2061,
373,
262,
957,
9449,
3161,
284,
4343,
30,
46506,
957,
9449,
16034,
3084,
62,
3672,
62,
2078,
33411,
614,
1279,
4343
] | [
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,
957,
9449,
3161,
284,
4343,
30,
46506,
957,
9449,
16034,
3084,
62,
3672,
62,
2078,
33411,
614,
1279,
4343
] |
What is the first year for Popgun? | SELECT "First Year" FROM table_55144 WHERE "Title" = 'popgun' | [
2061,
318,
262,
717,
614,
329,
8099,
7145,
30,
46506,
366,
5962,
6280,
1,
16034,
3084,
62,
2816,
18444,
33411,
366,
19160,
1,
796,
705,
12924,
7145,
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
] | [
2061,
318,
262,
717,
614,
329,
8099,
7145,
30,
46506,
366,
5962,
6280,
1,
16034,
3084,
62,
2816,
18444,
33411,
366,
19160,
1,
796,
705,
12924,
7145,
6
] |
What kind of institute is in Indiana? | SELECT affiliation FROM table_27961684_1 WHERE state = "Indiana" | [
2061,
1611,
286,
24224,
318,
287,
10278,
30,
46506,
26218,
16034,
3084,
62,
1983,
4846,
1433,
5705,
62,
16,
33411,
1181,
796,
366,
49153,
1
] | [
1,
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,
1611,
286,
24224,
318,
287,
10278,
30,
46506,
26218,
16034,
3084,
62,
1983,
4846,
1433,
5705,
62,
16,
33411,
1181,
796,
366,
49153,
1
] |
The home team york city has what score? | SELECT "Score" FROM table_47849 WHERE "Home team" = 'york city' | [
464,
1363,
1074,
331,
967,
1748,
468,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29059,
2920,
33411,
366,
16060,
1074,
1,
796,
705,
88,
967,
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
] | [
464,
1363,
1074,
331,
967,
1748,
468,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29059,
2920,
33411,
366,
16060,
1074,
1,
796,
705,
88,
967,
1748,
6
] |
What is the lowest win% in the 1999-2013 season? | SELECT MIN("Win %") FROM table_57570 WHERE "Season" = '1999-2013' | [
2061,
318,
262,
9016,
1592,
4,
287,
262,
7358,
12,
6390,
1622,
30,
46506,
20625,
7203,
16643,
4064,
4943,
16034,
3084,
62,
36189,
2154,
33411,
366,
18960,
1,
796,
705,
18946,
12,
6390,
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,
9016,
1592,
4,
287,
262,
7358,
12,
6390,
1622,
30,
46506,
20625,
7203,
16643,
4064,
4943,
16034,
3084,
62,
36189,
2154,
33411,
366,
18960,
1,
796,
705,
18946,
12,
6390,
6
] |
what is the average total hospital cost involving a procedure called a cpap/peep therapy - reduce peep as tolerated since 5 years ago? | SELECT AVG(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 treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'cpap/peep therapy - reduce peep as tolerated... | [
10919,
318,
262,
2811,
2472,
4436,
1575,
7411,
257,
8771,
1444,
257,
31396,
499,
14,
431,
538,
9102,
532,
4646,
613,
538,
355,
28197,
1201,
642,
812,
2084,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
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,
1... | [
10919,
318,
262,
2811,
2472,
4436,
1575,
7411,
257,
8771,
1444,
257,
31396,
499,
14,
431,
538,
9102,
532,
4646,
613,
538,
355,
28197,
1201,
642,
812,
2084,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
1... |
What is Home Team, when Date is '1 February 1984', and when Tie No is '5'? | SELECT "Home team" FROM table_51088 WHERE "Date" = '1 february 1984' AND "Tie no" = '5' | [
2061,
318,
5995,
4816,
11,
618,
7536,
318,
705,
16,
3945,
12844,
3256,
290,
618,
36286,
1400,
318,
705,
20,
30960,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
33690,
3459,
33411,
366,
10430,
1,
796,
705,
16,
730,
65,
3728,
12844,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5995,
4816,
11,
618,
7536,
318,
705,
16,
3945,
12844,
3256,
290,
618,
36286,
1400,
318,
705,
20,
30960,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
33690,
3459,
33411,
366,
10430,
1,
796,
705,
16,
730,
65,
3728,
12844,
6... |
what's the name of the procedure that patient 5866 was given two or more times until 16 months ago? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 586... | [
10919,
338,
262,
1438,
286,
262,
8771,
326,
5827,
7618,
2791,
373,
1813,
734,
393,
517,
1661,
1566,
1467,
1933,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
8771,
326,
5827,
7618,
2791,
373,
1813,
734,
393,
517,
1661,
1566,
1467,
1933,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
94... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.