instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Return the name of each physician and the number of patients he or she treats by a pie chart. | SELECT T1.Name, COUNT(*) FROM Physician AS T1 JOIN Patient AS T2 ON T1.EmployeeID = T2.PCP GROUP BY T1.EmployeeID | [
13615,
262,
1438,
286,
1123,
14325,
290,
262,
1271,
286,
3871,
339,
393,
673,
18432,
416,
257,
2508,
8262,
13,
46506,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8687,
6749,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
1438,
286,
1123,
14325,
290,
262,
1271,
286,
3871,
339,
393,
673,
18432,
416,
257,
2508,
8262,
13,
46506,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8687,
6749,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
... |
What is the lowest revenue for the rank of 14? | SELECT MIN(revenue__) AS $m_ FROM table_name_95 WHERE rank = 14 | [
2061,
318,
262,
9016,
6426,
329,
262,
4279,
286,
1478,
30,
46506,
20625,
7,
260,
4080,
834,
8,
7054,
720,
76,
62,
16034,
3084,
62,
3672,
62,
3865,
33411,
4279,
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
] | [
2061,
318,
262,
9016,
6426,
329,
262,
4279,
286,
1478,
30,
46506,
20625,
7,
260,
4080,
834,
8,
7054,
720,
76,
62,
16034,
3084,
62,
3672,
62,
3865,
33411,
4279,
796,
1478
] |
How many games did the home team score 16.16 (112)? | SELECT COUNT("Crowd") FROM table_4807 WHERE "Home team score" = '16.16 (112)' | [
2437,
867,
1830,
750,
262,
1363,
1074,
4776,
1467,
13,
1433,
357,
14686,
19427,
46506,
327,
28270,
7203,
34,
3986,
4943,
16034,
3084,
62,
22148,
22,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1433,
13,
1433,
357,
14686,
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,
1,
1,
1,
1
] | [
2437,
867,
1830,
750,
262,
1363,
1074,
4776,
1467,
13,
1433,
357,
14686,
19427,
46506,
327,
28270,
7203,
34,
3986,
4943,
16034,
3084,
62,
22148,
22,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1433,
13,
1433,
357,
14686,
33047
] |
When was the earliest game date in March where the match ended with a record of 25-29-10? | SELECT MIN(march) FROM table_name_32 WHERE record = "25-29-10" | [
2215,
373,
262,
14555,
983,
3128,
287,
2805,
810,
262,
2872,
4444,
351,
257,
1700,
286,
1679,
12,
1959,
12,
940,
30,
46506,
20625,
7,
76,
998,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
1700,
796,
366,
1495,
12,
1959,
12,
940,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
14555,
983,
3128,
287,
2805,
810,
262,
2872,
4444,
351,
257,
1700,
286,
1679,
12,
1959,
12,
940,
30,
46506,
20625,
7,
76,
998,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
1700,
796,
366,
1495,
12,
1959,
12,
940,
1
] |
What is the Time with a Home that is high park demons? | SELECT time FROM table_name_31 WHERE home = "high park demons" | [
2061,
318,
262,
3862,
351,
257,
5995,
326,
318,
1029,
3952,
17708,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3132,
33411,
1363,
796,
366,
8929,
3952,
17708,
1
] | [
1,
1,
1,
1,
1,
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,
3862,
351,
257,
5995,
326,
318,
1029,
3952,
17708,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3132,
33411,
1363,
796,
366,
8929,
3952,
17708,
1
] |
What is Home Team, when Away Team is 'Brentford'? | SELECT "Home team" FROM table_12436 WHERE "Away team" = 'brentford' | [
2061,
318,
5995,
4816,
11,
618,
21986,
4816,
318,
705,
33,
1156,
3841,
30960,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
17464,
2623,
33411,
366,
32,
1014,
1074,
1,
796,
705,
65,
1156,
3841,
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
] | [
2061,
318,
5995,
4816,
11,
618,
21986,
4816,
318,
705,
33,
1156,
3841,
30960,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
17464,
2623,
33411,
366,
32,
1014,
1074,
1,
796,
705,
65,
1156,
3841,
6
] |
how many students does each advisor have? | SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor | [
4919,
867,
2444,
857,
1123,
20685,
423,
30,
46506,
35399,
11,
327,
28270,
7,
28104,
16034,
13613,
44441,
11050,
35399
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2444,
857,
1123,
20685,
423,
30,
46506,
35399,
11,
327,
28270,
7,
28104,
16034,
13613,
44441,
11050,
35399
] |
What was the home team score at Melbourne's away match? | SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne" | [
2061,
373,
262,
1363,
1074,
4776,
379,
14819,
338,
1497,
2872,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
4776,
379,
14819,
338,
1497,
2872,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] |
What are the names of gymnasts, ordered by their heights ascending? | SELECT T2.name FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id ORDER BY T2.height | [
2061,
389,
262,
3891,
286,
38581,
5773,
11,
6149,
416,
511,
23245,
41988,
30,
46506,
309,
17,
13,
3672,
16034,
38581,
459,
7054,
309,
16,
32357,
1268,
661,
7054,
309,
17,
6177,
309,
16,
13,
1360,
10295,
459,
62,
312,
796,
309,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
38581,
5773,
11,
6149,
416,
511,
23245,
41988,
30,
46506,
309,
17,
13,
3672,
16034,
38581,
459,
7054,
309,
16,
32357,
1268,
661,
7054,
309,
17,
6177,
309,
16,
13,
1360,
10295,
459,
62,
312,
796,
309,
17,
... |
Which Home has a Round of r1, and an Opponent of dundee united? | SELECT "Home" FROM table_75828 WHERE "Round" = 'r1' AND "Opponent" = 'dundee united' | [
13828,
5995,
468,
257,
10485,
286,
374,
16,
11,
290,
281,
9385,
3471,
286,
288,
917,
1453,
16503,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
38569,
2078,
33411,
366,
22685,
1,
796,
705,
81,
16,
6,
5357,
366,
27524,
3471,
1,
796,
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
] | [
13828,
5995,
468,
257,
10485,
286,
374,
16,
11,
290,
281,
9385,
3471,
286,
288,
917,
1453,
16503,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
38569,
2078,
33411,
366,
22685,
1,
796,
705,
81,
16,
6,
5357,
366,
27524,
3471,
1,
796,
7... |
What is Player, when Total is '294', and when Year(s) Won is '1955'? | SELECT player FROM table_name_61 WHERE total = 294 AND year_s__won = "1955" | [
2061,
318,
7853,
11,
618,
7472,
318,
705,
27696,
3256,
290,
618,
6280,
7,
82,
8,
23306,
318,
705,
1129,
2816,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
5333,
33411,
2472,
796,
41235,
5357,
614,
62,
82,
834,
26502,
796,
366,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
318,
705,
27696,
3256,
290,
618,
6280,
7,
82,
8,
23306,
318,
705,
1129,
2816,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
5333,
33411,
2472,
796,
41235,
5357,
614,
62,
82,
834,
26502,
796,
366,
112... |
what is the competition in a year after 1911 with the position of 1st for the rings? | SELECT "Competition" FROM table_51759 WHERE "Year" > '1911' AND "Position" = '1st' AND "Event" = 'rings' | [
10919,
318,
262,
5449,
287,
257,
614,
706,
32216,
351,
262,
2292,
286,
352,
301,
329,
262,
13917,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
48170,
3270,
33411,
366,
17688,
1,
1875,
705,
1129,
1157,
6,
5357,
366,
26545,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5449,
287,
257,
614,
706,
32216,
351,
262,
2292,
286,
352,
301,
329,
262,
13917,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
48170,
3270,
33411,
366,
17688,
1,
1875,
705,
1129,
1157,
6,
5357,
366,
26545,
1,
796... |
what was the appointment date for outgoing manager luis c sar sampedro | SELECT date_of_appointment FROM table_27495117_3 WHERE outgoing_manager = "Luis César Sampedro" | [
10919,
373,
262,
12557,
3128,
329,
28181,
4706,
300,
84,
271,
269,
29008,
264,
13322,
305,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
1983,
33781,
17657,
62,
18,
33411,
28181,
62,
37153,
796,
366,
25596,
271,
327,
20954,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12557,
3128,
329,
28181,
4706,
300,
84,
271,
269,
29008,
264,
13322,
305,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
1983,
33781,
17657,
62,
18,
33411,
28181,
62,
37153,
796,
366,
25596,
271,
327,
20954,
... |
What's greatest attendance on May 7? | SELECT MAX("Attendance") FROM table_35455 WHERE "Date" = 'may 7' | [
2061,
338,
6000,
14858,
319,
1737,
767,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
2327,
30505,
33411,
366,
10430,
1,
796,
705,
11261,
767,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
6000,
14858,
319,
1737,
767,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
2327,
30505,
33411,
366,
10430,
1,
796,
705,
11261,
767,
6
] |
What is the average Points when equipe ligier gauloises blondes is the entrant? | SELECT AVG("Points") FROM table_70752 WHERE "Entrant" = 'equipe ligier gauloises blondes' | [
2061,
318,
262,
2811,
11045,
618,
1602,
3757,
26106,
959,
308,
2518,
78,
2696,
32749,
274,
318,
262,
920,
5250,
30,
46506,
35224,
7203,
40710,
4943,
16034,
3084,
62,
2154,
43665,
33411,
366,
14539,
5250,
1,
796,
705,
4853,
3757,
26106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11045,
618,
1602,
3757,
26106,
959,
308,
2518,
78,
2696,
32749,
274,
318,
262,
920,
5250,
30,
46506,
35224,
7203,
40710,
4943,
16034,
3084,
62,
2154,
43665,
33411,
366,
14539,
5250,
1,
796,
705,
4853,
3757,
26106,
... |
50 most viewed questions on 2015-03-08 on Ask Ubuntu. | SELECT * FROM Posts, PostTypes WHERE Posts.PostTypeId = PostTypes.Id AND PostTypes.Id = 1 AND Posts.CreationDate BETWEEN '2015-03-08 00:00:00' AND '2015-03-08 23:59:59' ORDER BY Posts.ViewCount DESC LIMIT 50 | [
1120,
749,
9569,
2683,
319,
1853,
12,
3070,
12,
2919,
319,
16981,
14949,
13,
46506,
1635,
16034,
12043,
11,
2947,
31431,
33411,
12043,
13,
6307,
6030,
7390,
796,
2947,
31431,
13,
7390,
5357,
2947,
31431,
13,
7390,
796,
352,
5357,
12043,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1120,
749,
9569,
2683,
319,
1853,
12,
3070,
12,
2919,
319,
16981,
14949,
13,
46506,
1635,
16034,
12043,
11,
2947,
31431,
33411,
12043,
13,
6307,
6030,
7390,
796,
2947,
31431,
13,
7390,
5357,
2947,
31431,
13,
7390,
796,
352,
5357,
12043,... |
Who's the First District with a Fifth District of prudy adam? | SELECT "First District" FROM table_41874 WHERE "Fifth District" = 'prudy adam' | [
8241,
338,
262,
3274,
5665,
351,
257,
19383,
5665,
286,
25220,
88,
23197,
30,
46506,
366,
5962,
5665,
1,
16034,
3084,
62,
39667,
4524,
33411,
366,
44403,
400,
5665,
1,
796,
705,
1050,
463,
88,
23197,
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
] | [
8241,
338,
262,
3274,
5665,
351,
257,
19383,
5665,
286,
25220,
88,
23197,
30,
46506,
366,
5962,
5665,
1,
16034,
3084,
62,
39667,
4524,
33411,
366,
44403,
400,
5665,
1,
796,
705,
1050,
463,
88,
23197,
6
] |
What are the number of the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?, and show by the total number in asc please. | SELECT payment_date, COUNT(payment_date) FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' ORDER BY COUNT(payment_date) | [
2061,
389,
262,
1271,
286,
262,
6074,
9667,
329,
597,
7524,
326,
423,
281,
2033,
3744,
621,
838,
393,
547,
12118,
416,
257,
3085,
2888,
351,
262,
717,
1438,
19226,
21747,
290,
905,
416,
262,
2472,
1271,
287,
10570,
3387,
13,
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... | [
2061,
389,
262,
1271,
286,
262,
6074,
9667,
329,
597,
7524,
326,
423,
281,
2033,
3744,
621,
838,
393,
547,
12118,
416,
257,
3085,
2888,
351,
262,
717,
1438,
19226,
21747,
290,
905,
416,
262,
2472,
1271,
287,
10570,
3387,
13,
46506,
... |
What is the highest number of wins for years after 1999 with averages over 73.02? | SELECT MAX("Wins") FROM table_40371 WHERE "Average" > '73.02' AND "Year" > '1999' | [
2061,
318,
262,
4511,
1271,
286,
7864,
329,
812,
706,
7358,
351,
25694,
625,
8854,
13,
2999,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
1821,
38056,
33411,
366,
26287,
1,
1875,
705,
4790,
13,
2999,
6,
5357,
366,
17688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7864,
329,
812,
706,
7358,
351,
25694,
625,
8854,
13,
2999,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
1821,
38056,
33411,
366,
26287,
1,
1875,
705,
4790,
13,
2999,
6,
5357,
366,
17688,
... |
what is admission type and admission location of subject name michelle medina? | SELECT demographic.admission_type, demographic.admission_location FROM demographic WHERE demographic.name = "Michelle Medina" | [
10919,
318,
13938,
2099,
290,
13938,
4067,
286,
2426,
1438,
12314,
34454,
1117,
1437,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
48736,
41946,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
13938,
2099,
290,
13938,
4067,
286,
2426,
1438,
12314,
34454,
1117,
1437,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
48736,
41946,
1
] |
left ventricular ejection fraction less than 40 % | SELECT * FROM table_test_16 WHERE left_ventricular_ejection_fraction_lvef < 40 | [
9464,
7435,
41001,
22189,
295,
13390,
1342,
621,
2319,
4064,
46506,
1635,
16034,
3084,
62,
9288,
62,
1433,
33411,
1364,
62,
1151,
41001,
62,
68,
29192,
62,
69,
7861,
62,
75,
303,
69,
1279,
2319
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9464,
7435,
41001,
22189,
295,
13390,
1342,
621,
2319,
4064,
46506,
1635,
16034,
3084,
62,
9288,
62,
1433,
33411,
1364,
62,
1151,
41001,
62,
68,
29192,
62,
69,
7861,
62,
75,
303,
69,
1279,
2319
] |
how many seasons finishing better than 7th place ? | SELECT COUNT("season") FROM table_203_183 WHERE "place" < 7 | [
4919,
867,
7028,
12848,
1365,
621,
767,
400,
1295,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
22416,
62,
24839,
33411,
366,
5372,
1,
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
] | [
4919,
867,
7028,
12848,
1365,
621,
767,
400,
1295,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
22416,
62,
24839,
33411,
366,
5372,
1,
1279,
767
] |
For those employees whose first name is ending with the letter m, sum their salary for visualizing a bar chart, and I want to display in descending by the bars please. | SELECT FIRST_NAME, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY FIRST_NAME DESC | [
1890,
883,
4409,
3025,
717,
1438,
318,
7464,
351,
262,
3850,
285,
11,
2160,
511,
9588,
329,
5874,
2890,
257,
2318,
8262,
11,
290,
314,
765,
284,
3359,
287,
31491,
416,
262,
9210,
3387,
13,
46506,
31328,
62,
20608,
11,
35683,
7,
50,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
717,
1438,
318,
7464,
351,
262,
3850,
285,
11,
2160,
511,
9588,
329,
5874,
2890,
257,
2318,
8262,
11,
290,
314,
765,
284,
3359,
287,
31491,
416,
262,
9210,
3387,
13,
46506,
31328,
62,
20608,
11,
35683,
7,
50,
... |
How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3? | SELECT SUM(gold) FROM table_name_78 WHERE bronze < 2 AND silver = 0 AND rank > 3 | [
2437,
881,
3561,
468,
257,
19461,
4833,
621,
362,
11,
290,
257,
7698,
286,
657,
11,
290,
257,
10916,
4025,
621,
513,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
22101,
1279,
362,
5357,
8465,
796,
657,
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
] | [
2437,
881,
3561,
468,
257,
19461,
4833,
621,
362,
11,
290,
257,
7698,
286,
657,
11,
290,
257,
10916,
4025,
621,
513,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
22101,
1279,
362,
5357,
8465,
796,
657,
5357... |
Show different types of ships and the number of ships of each type Show bar chart, and order from high to low by the Type. | SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY Type DESC | [
15307,
1180,
3858,
286,
7937,
290,
262,
1271,
286,
7937,
286,
1123,
2099,
5438,
2318,
8262,
11,
290,
1502,
422,
1029,
284,
1877,
416,
262,
5994,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
7937,
286,
1123,
2099,
5438,
2318,
8262,
11,
290,
1502,
422,
1029,
284,
1877,
416,
262,
5994,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
... |
For those dates with a max temperature greater than or equal to 80, I would like a line chart to show the tendency, I want to list x axis from high to low order. | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 GROUP BY date ORDER BY date DESC | [
1890,
883,
9667,
351,
257,
3509,
5951,
3744,
621,
393,
4961,
284,
4019,
11,
314,
561,
588,
257,
1627,
8262,
284,
905,
262,
13542,
11,
314,
765,
284,
1351,
2124,
16488,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
11,
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... | [
1890,
883,
9667,
351,
257,
3509,
5951,
3744,
621,
393,
4961,
284,
4019,
11,
314,
561,
588,
257,
1627,
8262,
284,
905,
262,
13542,
11,
314,
765,
284,
1351,
2124,
16488,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
... |
What was the finishing position for the car that started in grid 6? | SELECT "Fin. Pos" FROM table_48009 WHERE "Grid" = '6' | [
2061,
373,
262,
12848,
2292,
329,
262,
1097,
326,
2067,
287,
10706,
718,
30,
46506,
366,
18467,
13,
18574,
1,
16034,
3084,
62,
2780,
28694,
33411,
366,
41339,
1,
796,
705,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
12848,
2292,
329,
262,
1097,
326,
2067,
287,
10706,
718,
30,
46506,
366,
18467,
13,
18574,
1,
16034,
3084,
62,
2780,
28694,
33411,
366,
41339,
1,
796,
705,
21,
6
] |
What is Melaine Walker's Rank? | SELECT SUM("Rank") FROM table_66246 WHERE "Name" = 'melaine walker' | [
2061,
318,
5616,
5718,
10120,
338,
10916,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2791,
26912,
33411,
366,
5376,
1,
796,
705,
17694,
5718,
2513,
263,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5616,
5718,
10120,
338,
10916,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2791,
26912,
33411,
366,
5376,
1,
796,
705,
17694,
5718,
2513,
263,
6
] |
What was the branding in Dagupan? | SELECT branding FROM table_12547903_3 WHERE location = "Dagupan" | [
2061,
373,
262,
24150,
287,
32167,
929,
272,
30,
46506,
24150,
16034,
3084,
62,
11623,
31714,
3070,
62,
18,
33411,
4067,
796,
366,
35,
363,
929,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
24150,
287,
32167,
929,
272,
30,
46506,
24150,
16034,
3084,
62,
11623,
31714,
3070,
62,
18,
33411,
4067,
796,
366,
35,
363,
929,
272,
1
] |
For those records from the products and each product's manufacturer, find name and the sum of code , and group by attribute name, and visualize them by a bar chart. | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
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,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
1... |
How many tries against for the team with 67 tries for? | SELECT "Tries against" FROM table_59235 WHERE "Tries for" = '67' | [
2437,
867,
8404,
1028,
329,
262,
1074,
351,
8275,
8404,
329,
30,
46506,
366,
51,
1678,
1028,
1,
16034,
3084,
62,
3270,
22370,
33411,
366,
51,
1678,
329,
1,
796,
705,
3134,
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,
8404,
1028,
329,
262,
1074,
351,
8275,
8404,
329,
30,
46506,
366,
51,
1678,
1028,
1,
16034,
3084,
62,
3270,
22370,
33411,
366,
51,
1678,
329,
1,
796,
705,
3134,
6
] |
Do you know what Dr. Richard Valliant is teaching next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Richard Valliant%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.... | [
5211,
345,
760,
644,
1583,
13,
6219,
46929,
3014,
318,
7743,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5211,
345,
760,
644,
1583,
13,
6219,
46929,
3014,
318,
7743,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
... |
What is the lowest number of losses for Nottingham City with fewer than 0 wins? | SELECT MIN(losses) FROM table_name_28 WHERE team = "nottingham city" AND wins < 0 | [
2061,
318,
262,
9016,
1271,
286,
9089,
329,
39802,
2254,
351,
7380,
621,
657,
7864,
30,
46506,
20625,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1074,
796,
366,
1662,
889,
2763,
1748,
1,
5357,
7864,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
9089,
329,
39802,
2254,
351,
7380,
621,
657,
7864,
30,
46506,
20625,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1074,
796,
366,
1662,
889,
2763,
1748,
1,
5357,
7864,
1279,
657
] |
List the name for storms and the number of affected regions for each storm with a bar chart, and display the total number in ascending order. | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY COUNT(*) | [
8053,
262,
1438,
329,
20228,
290,
262,
1271,
286,
5676,
7652,
329,
1123,
6388,
351,
257,
2318,
8262,
11,
290,
3359,
262,
2472,
1271,
287,
41988,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
6388,
7054,
309,
16,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8053,
262,
1438,
329,
20228,
290,
262,
1271,
286,
5676,
7652,
329,
1123,
6388,
351,
257,
2318,
8262,
11,
290,
3359,
262,
2472,
1271,
287,
41988,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
6388,
7054,
309,
16,
32357,
1268,... |
Search History by revision ID. Enter Query Description | SELECT * FROM PostHistory WHERE RevisionGUID = '##RevID##' | [
18243,
7443,
416,
18440,
4522,
13,
6062,
43301,
12489,
46506,
1635,
16034,
2947,
18122,
33411,
46604,
38,
27586,
796,
705,
2235,
18009,
2389,
2235,
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
] | [
18243,
7443,
416,
18440,
4522,
13,
6062,
43301,
12489,
46506,
1635,
16034,
2947,
18122,
33411,
46604,
38,
27586,
796,
705,
2235,
18009,
2389,
2235,
6
] |
User answers sorted by quality. | SELECT Q.Id AS "post_link", A.CreationDate, A.Score, Q.ViewCount, COALESCE(CAST(A.Score AS FLOAT) / NULLIF(Q.ViewCount, 0), 0) AS Traffic FROM Posts AS Q JOIN Posts AS A ON A.ParentId = Q.Id WHERE A.PostTypeId = 2 AND A.OwnerUserId = '##UserId##' ORDER BY A.Score DESC LIMIT 34100 | [
12982,
7429,
23243,
416,
3081,
13,
46506,
1195,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
317,
13,
12443,
341,
10430,
11,
317,
13,
26595,
11,
1195,
13,
7680,
12332,
11,
7375,
1847,
1546,
5222,
7,
44647,
7,
32,
13,
26595,
7054,
9977... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12982,
7429,
23243,
416,
3081,
13,
46506,
1195,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
317,
13,
12443,
341,
10430,
11,
317,
13,
26595,
11,
1195,
13,
7680,
12332,
11,
7375,
1847,
1546,
5222,
7,
44647,
7,
32,
13,
26595,
7054,
9977... |
count the number of patients whose admission year is less than 2179 and procedure long title is (aorto)coronary bypass of one coronary artery? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2179" AND procedures.long_title = "(Aorto)coronary bypass of one coronary artery" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21738,
290,
8771,
890,
3670,
318,
357,
64,
419,
78,
8,
10215,
261,
560,
17286,
286,
530,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
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... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21738,
290,
8771,
890,
3670,
318,
357,
64,
419,
78,
8,
10215,
261,
560,
17286,
286,
530,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... |
What papers has li dong written in 2016 | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'li dong' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
9473,
468,
7649,
288,
506,
3194,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
4528,
288,
506,
6,
5357,
3348,
13,
1941,
796,
1584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9473,
468,
7649,
288,
506,
3194,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
4528,
288,
506,
6,
5357,
3348,
13,
1941,
796,
1584,
... |
Which Home team is on Wednesday, 25 february 1998? | SELECT home_team FROM table_name_65 WHERE date = "wednesday, 25 february 1998" | [
13828,
5995,
1074,
318,
319,
3583,
11,
1679,
730,
65,
3728,
7795,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2996,
33411,
3128,
796,
366,
19103,
3462,
11,
1679,
730,
65,
3728,
7795,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
318,
319,
3583,
11,
1679,
730,
65,
3728,
7795,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2996,
33411,
3128,
796,
366,
19103,
3462,
11,
1679,
730,
65,
3728,
7795,
1
] |
Do any 400 -level classes occur in the Fall or Winter term ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 400 AND 400 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_of... | [
5211,
597,
7337,
532,
5715,
6097,
3051,
287,
262,
7218,
393,
10633,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
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... | [
5211,
597,
7337,
532,
5715,
6097,
3051,
287,
262,
7218,
393,
10633,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
62,
... |
What day is miami the venue with 38 goals? | SELECT date FROM table_name_67 WHERE venue = "miami" AND goal = 38 | [
2061,
1110,
318,
285,
7871,
262,
14359,
351,
4353,
4661,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3134,
33411,
14359,
796,
366,
76,
7871,
1,
5357,
3061,
796,
4353
] | [
1,
1,
1,
1,
1,
1,
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,
1110,
318,
285,
7871,
262,
14359,
351,
4353,
4661,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3134,
33411,
14359,
796,
366,
76,
7871,
1,
5357,
3061,
796,
4353
] |
What is the Tie No with a Score of 2 2? | SELECT tie_no FROM table_name_26 WHERE score = "2–2" | [
2061,
318,
262,
36286,
1400,
351,
257,
15178,
286,
362,
362,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2075,
33411,
4776,
796,
366,
17,
1906,
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
] | [
2061,
318,
262,
36286,
1400,
351,
257,
15178,
286,
362,
362,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2075,
33411,
4776,
796,
366,
17,
1906,
17,
1
] |
Which home team played against Los Angeles in game 1? | SELECT home_team FROM table_name_26 WHERE road_team = "los angeles" AND game = "game 1" | [
13828,
1363,
1074,
2826,
1028,
5401,
5652,
287,
983,
352,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2075,
33411,
2975,
62,
15097,
796,
366,
33280,
18304,
274,
1,
5357,
983,
796,
366,
6057,
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
] | [
13828,
1363,
1074,
2826,
1028,
5401,
5652,
287,
983,
352,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2075,
33411,
2975,
62,
15097,
796,
366,
33280,
18304,
274,
1,
5357,
983,
796,
366,
6057,
352,
1
] |
How many laps were in grid 4? | SELECT laps FROM table_name_97 WHERE grid = 4 | [
2437,
867,
24590,
547,
287,
10706,
604,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
5607,
33411,
10706,
796,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
24590,
547,
287,
10706,
604,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
5607,
33411,
10706,
796,
604
] |
What is the Title of the LT Series Filmography with a Release date of 1964-02-08? | SELECT "Title" FROM table_14210 WHERE "Series" = 'lt' AND "Release date" = '1964-02-08' | [
2061,
318,
262,
11851,
286,
262,
34146,
7171,
13741,
4867,
351,
257,
13868,
3128,
286,
17575,
12,
2999,
12,
2919,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1415,
21536,
33411,
366,
27996,
1,
796,
705,
2528,
6,
5357,
366,
26362,
3128,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11851,
286,
262,
34146,
7171,
13741,
4867,
351,
257,
13868,
3128,
286,
17575,
12,
2999,
12,
2919,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1415,
21536,
33411,
366,
27996,
1,
796,
705,
2528,
6,
5357,
366,
26362,
3128,... |
Which Builder has a Pennant number of Q149? | SELECT "Builder" FROM table_39485 WHERE "Pennant number" = 'q149' | [
13828,
35869,
468,
257,
6595,
415,
1271,
286,
1195,
19442,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2670,
32642,
33411,
366,
39899,
415,
1271,
1,
796,
705,
80,
19442,
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
] | [
13828,
35869,
468,
257,
6595,
415,
1271,
286,
1195,
19442,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2670,
32642,
33411,
366,
39899,
415,
1271,
1,
796,
705,
80,
19442,
6
] |
What was the result when the couple was steve & anna? | SELECT "Result" FROM table_36663 WHERE "Couple" = 'steve & anna' | [
2061,
373,
262,
1255,
618,
262,
3155,
373,
2876,
303,
1222,
1529,
64,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2623,
45791,
33411,
366,
34,
43846,
1,
796,
705,
4169,
303,
1222,
1529,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
618,
262,
3155,
373,
2876,
303,
1222,
1529,
64,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2623,
45791,
33411,
366,
34,
43846,
1,
796,
705,
4169,
303,
1222,
1529,
64,
6
] |
Which Mountain Peak has a Region of baja california, and a Location of 28.1301 n 115.2206 w? | SELECT "Mountain Peak" FROM table_77145 WHERE "Region" = 'baja california' AND "Location" = '28.1301°n 115.2206°w' | [
13828,
9638,
23974,
468,
257,
17718,
286,
275,
27792,
2386,
361,
3317,
11,
290,
257,
13397,
286,
2579,
13,
1485,
486,
299,
12279,
13,
17572,
21,
266,
30,
46506,
366,
44,
18635,
23974,
1,
16034,
3084,
62,
3324,
18781,
33411,
366,
47371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9638,
23974,
468,
257,
17718,
286,
275,
27792,
2386,
361,
3317,
11,
290,
257,
13397,
286,
2579,
13,
1485,
486,
299,
12279,
13,
17572,
21,
266,
30,
46506,
366,
44,
18635,
23974,
1,
16034,
3084,
62,
3324,
18781,
33411,
366,
47371... |
Name the original air date for number in season being 1 | SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 1 | [
5376,
262,
2656,
1633,
3128,
329,
1271,
287,
1622,
852,
352,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
24096,
25600,
4304,
62,
16,
33411,
645,
62,
259,
62,
6230,
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
] | [
5376,
262,
2656,
1633,
3128,
329,
1271,
287,
1622,
852,
352,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
24096,
25600,
4304,
62,
16,
33411,
645,
62,
259,
62,
6230,
796,
352
] |
How much is after debt when cash on hand is $651,300? | SELECT "After Debt" FROM table_53763 WHERE "Cash On Hand" = '$651,300' | [
2437,
881,
318,
706,
5057,
618,
5003,
319,
1021,
318,
720,
40639,
11,
6200,
30,
46506,
366,
3260,
30319,
1,
16034,
3084,
62,
46096,
5066,
33411,
366,
35361,
1550,
7157,
1,
796,
705,
3,
40639,
11,
6200,
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
] | [
2437,
881,
318,
706,
5057,
618,
5003,
319,
1021,
318,
720,
40639,
11,
6200,
30,
46506,
366,
3260,
30319,
1,
16034,
3084,
62,
46096,
5066,
33411,
366,
35361,
1550,
7157,
1,
796,
705,
3,
40639,
11,
6200,
6
] |
What are the names and number of hours spent training for each player who trains for less than 1500 hours. Visualize by pie chart. | SELECT pName, HS FROM Player WHERE HS < 1500 | [
2061,
389,
262,
3891,
290,
1271,
286,
2250,
3377,
3047,
329,
1123,
2137,
508,
13404,
329,
1342,
621,
20007,
2250,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
279,
5376,
11,
18070,
16034,
7853,
33411,
18070,
1279,
20007
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
290,
1271,
286,
2250,
3377,
3047,
329,
1123,
2137,
508,
13404,
329,
1342,
621,
20007,
2250,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
279,
5376,
11,
18070,
16034,
7853,
33411,
18070,
1279,
20007
] |
What is the municipality that has an area of exactly 214.44 sq. km? | SELECT municipality FROM table_255885_1 WHERE area__km²_ = "214.44" | [
2061,
318,
262,
27264,
326,
468,
281,
1989,
286,
3446,
28277,
13,
2598,
19862,
13,
10571,
30,
46506,
27264,
16034,
3084,
62,
1495,
3365,
5332,
62,
16,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
22291,
13,
2598,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27264,
326,
468,
281,
1989,
286,
3446,
28277,
13,
2598,
19862,
13,
10571,
30,
46506,
27264,
16034,
3084,
62,
1495,
3365,
5332,
62,
16,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
22291,
13,
2598,
1
] |
What is the club/province of player Alberto Sgarbi, who played wing, with less than 2 caps? | SELECT "Club/province" FROM table_6069 WHERE "Caps" < '2' AND "Position" = 'wing' AND "Player" = 'alberto sgarbi' | [
2061,
318,
262,
3430,
14,
15234,
924,
286,
2137,
40649,
311,
4563,
8482,
11,
508,
2826,
8539,
11,
351,
1342,
621,
362,
11022,
30,
46506,
366,
42350,
14,
15234,
924,
1,
16034,
3084,
62,
1899,
3388,
33411,
366,
34,
1686,
1,
1279,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3430,
14,
15234,
924,
286,
2137,
40649,
311,
4563,
8482,
11,
508,
2826,
8539,
11,
351,
1342,
621,
362,
11022,
30,
46506,
366,
42350,
14,
15234,
924,
1,
16034,
3084,
62,
1899,
3388,
33411,
366,
34,
1686,
1,
1279,
705,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of salary over the job_id , and group by attribute job_id, sort by the bar in ascending. | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
9588,
625,
262,
1693,
62,
312,
837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
9588,
625,
262,
1693,
62,
312,
837,
... |
What is the total pick number of Virginia Tech? | SELECT COUNT("Pick") FROM table_56987 WHERE "School" = 'virginia tech' | [
2061,
318,
262,
2472,
2298,
1271,
286,
6025,
9634,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
20,
3388,
5774,
33411,
366,
26130,
1,
796,
705,
85,
4672,
544,
7261,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
2298,
1271,
286,
6025,
9634,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
20,
3388,
5774,
33411,
366,
26130,
1,
796,
705,
85,
4672,
544,
7261,
6
] |
Name the sum of hull number for italy and year more than 1999 | SELECT SUM("Hull No.") FROM table_71732 WHERE "Destination" = 'italy' AND "Year" > '1999' | [
5376,
262,
2160,
286,
23644,
1271,
329,
340,
3400,
290,
614,
517,
621,
7358,
46506,
35683,
7203,
39,
724,
1400,
19570,
16034,
3084,
62,
22,
1558,
2624,
33411,
366,
24159,
1883,
1,
796,
705,
1287,
88,
6,
5357,
366,
17688,
1,
1875,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
23644,
1271,
329,
340,
3400,
290,
614,
517,
621,
7358,
46506,
35683,
7203,
39,
724,
1400,
19570,
16034,
3084,
62,
22,
1558,
2624,
33411,
366,
24159,
1883,
1,
796,
705,
1287,
88,
6,
5357,
366,
17688,
1,
1875,
70... |
What's the to par of the United States with the score of 71-71=142? | SELECT "To par" FROM table_49165 WHERE "Country" = 'united states' AND "Score" = '71-71=142' | [
2061,
338,
262,
284,
1582,
286,
262,
1578,
1829,
351,
262,
4776,
286,
9166,
12,
4869,
28,
23726,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
2920,
20986,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
26595,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
284,
1582,
286,
262,
1578,
1829,
351,
262,
4776,
286,
9166,
12,
4869,
28,
23726,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
2920,
20986,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
26595,
1,
796,
... |
calculate the average age of unmarried patients belonging to black/cape verdean ethnic origin | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | [
9948,
3129,
378,
262,
2811,
2479,
286,
39183,
3871,
16686,
284,
2042,
14,
36435,
3326,
2934,
272,
9450,
8159,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
39183,
3871,
16686,
284,
2042,
14,
36435,
3326,
2934,
272,
9450,
8159,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,... |
Which languages are offered in the coverage area of klang petaling jaya shah alam? | SELECT language FROM table_1837570_1 WHERE coverage_area = "Klang Petaling Jaya Shah Alam" | [
13828,
8950,
389,
4438,
287,
262,
5197,
1989,
286,
479,
17204,
4273,
4272,
474,
11729,
427,
993,
435,
321,
30,
46506,
3303,
16034,
3084,
62,
1507,
22318,
2154,
62,
16,
33411,
5197,
62,
20337,
796,
366,
42,
17204,
4767,
4272,
9180,
64,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8950,
389,
4438,
287,
262,
5197,
1989,
286,
479,
17204,
4273,
4272,
474,
11729,
427,
993,
435,
321,
30,
46506,
3303,
16034,
3084,
62,
1507,
22318,
2154,
62,
16,
33411,
5197,
62,
20337,
796,
366,
42,
17204,
4767,
4272,
9180,
64,... |
How many people directed the show written by Chris Sheridan? | SELECT COUNT(directed_by) FROM table_14724369_1 WHERE written_by = "Chris Sheridan" | [
2437,
867,
661,
7924,
262,
905,
3194,
416,
5180,
47813,
30,
46506,
327,
28270,
7,
34762,
62,
1525,
8,
16034,
3084,
62,
20198,
1731,
30803,
62,
16,
33411,
3194,
62,
1525,
796,
366,
15645,
47813,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
7924,
262,
905,
3194,
416,
5180,
47813,
30,
46506,
327,
28270,
7,
34762,
62,
1525,
8,
16034,
3084,
62,
20198,
1731,
30803,
62,
16,
33411,
3194,
62,
1525,
796,
366,
15645,
47813,
1
] |
What position has siim ennemuist as the player? | SELECT "Position" FROM table_12390 WHERE "Player" = 'siim ennemuist' | [
2061,
2292,
468,
33721,
320,
551,
77,
368,
84,
396,
355,
262,
2137,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1065,
25964,
33411,
366,
14140,
1,
796,
705,
13396,
320,
551,
77,
368,
84,
396,
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,
2292,
468,
33721,
320,
551,
77,
368,
84,
396,
355,
262,
2137,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1065,
25964,
33411,
366,
14140,
1,
796,
705,
13396,
320,
551,
77,
368,
84,
396,
6
] |
Draw a bar chart for what is average age of male for different job title? | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job | [
25302,
257,
2318,
8262,
329,
644,
318,
2811,
2479,
286,
4257,
329,
1180,
1693,
3670,
30,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
33411,
5279,
796,
705,
22606,
6,
44441,
11050,
1693
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
644,
318,
2811,
2479,
286,
4257,
329,
1180,
1693,
3670,
30,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
33411,
5279,
796,
705,
22606,
6,
44441,
11050,
1693
] |
which players only scored one goal ? | SELECT "player" FROM table_204_784 WHERE "league" = 1 | [
4758,
1938,
691,
7781,
530,
3061,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
37688,
33411,
366,
19316,
1,
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
] | [
4758,
1938,
691,
7781,
530,
3061,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
37688,
33411,
366,
19316,
1,
796,
352
] |
A bar chart shows the distribution of Sex and the average of Weight , and group by attribute Sex, and list y axis from high to low order. | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2811,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
290,
1351,
331,
16488,
422,
1029,
284,
1877,
1502,
13,
46506,
14419,
11,
35224,
7,
25844,
8,
16034,
661,
44441,
11050,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2811,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
290,
1351,
331,
16488,
422,
1029,
284,
1877,
1502,
13,
46506,
14419,
11,
35224,
7,
25844,
8,
16034,
661,
44441,
11050,
144... |
look for the number of female patients who were discharged dead/expired. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "DEAD/EXPIRED" | [
5460,
329,
262,
1271,
286,
4048,
3871,
508,
547,
26476,
2636,
14,
1069,
6474,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
6381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
262,
1271,
286,
4048,
3871,
508,
547,
26476,
2636,
14,
1069,
6474,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
6381... |
Who was the guest at Stadion Prljanije? | SELECT guest FROM table_name_16 WHERE venue = "stadion prljanije" | [
8241,
373,
262,
8319,
379,
520,
324,
295,
1736,
75,
13881,
2926,
68,
30,
46506,
8319,
16034,
3084,
62,
3672,
62,
1433,
33411,
14359,
796,
366,
24107,
295,
778,
75,
13881,
2926,
68,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8319,
379,
520,
324,
295,
1736,
75,
13881,
2926,
68,
30,
46506,
8319,
16034,
3084,
62,
3672,
62,
1433,
33411,
14359,
796,
366,
24107,
295,
778,
75,
13881,
2926,
68,
1
] |
Which county includes Himco Dump? | SELECT county FROM table_name_80 WHERE name = "himco dump" | [
13828,
7968,
3407,
10978,
1073,
360,
931,
30,
46506,
7968,
16034,
3084,
62,
3672,
62,
1795,
33411,
1438,
796,
366,
38400,
1073,
10285,
1
] | [
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,
7968,
3407,
10978,
1073,
360,
931,
30,
46506,
7968,
16034,
3084,
62,
3672,
62,
1795,
33411,
1438,
796,
366,
38400,
1073,
10285,
1
] |
How many architects haven't built a mill before year 1850? | SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850) | [
2437,
867,
29518,
4398,
470,
3170,
257,
3939,
878,
614,
35745,
30,
46506,
327,
28270,
7,
28104,
16034,
7068,
33411,
5626,
4686,
3268,
357,
46506,
7068,
62,
312,
16034,
3939,
33411,
3170,
62,
1941,
1279,
35745,
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
] | [
2437,
867,
29518,
4398,
470,
3170,
257,
3939,
878,
614,
35745,
30,
46506,
327,
28270,
7,
28104,
16034,
7068,
33411,
5626,
4686,
3268,
357,
46506,
7068,
62,
312,
16034,
3939,
33411,
3170,
62,
1941,
1279,
35745,
8
] |
Who was the visitor on October 31? | SELECT "Visitor" FROM table_37046 WHERE "Date" = 'october 31' | [
8241,
373,
262,
21493,
319,
3267,
3261,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
20167,
3510,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
3261,
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
] | [
8241,
373,
262,
21493,
319,
3267,
3261,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
20167,
3510,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
3261,
6
] |
How many users are there? | SELECT COUNT(*) FROM useracct | [
2437,
867,
2985,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
2836,
330,
310
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2985,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
2836,
330,
310
] |
what is the percentile of 39.0 in a laboratory test of total co2 with the same age as patient 002-31956 in the first hospital visit? | SELECT DISTINCT t1.c1 FROM (SELECT lab.labresult, PERCENT_RANK() OVER (ORDER BY lab.labresult) AS c1 FROM lab WHERE lab.labname = 'total co2' AND lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age = (SELECT patient.age FROM patient WHERE patient.uniquepid = '002-31956' AND NOT pat... | [
10919,
318,
262,
37894,
286,
5014,
13,
15,
287,
257,
14010,
1332,
286,
2472,
763,
17,
351,
262,
976,
2479,
355,
5827,
3571,
17,
12,
35175,
3980,
287,
262,
717,
4436,
3187,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37894,
286,
5014,
13,
15,
287,
257,
14010,
1332,
286,
2472,
763,
17,
351,
262,
976,
2479,
355,
5827,
3571,
17,
12,
35175,
3980,
287,
262,
717,
4436,
3187,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
160... |
how many canadians listed were born in scotland ? | SELECT COUNT(*) FROM table_204_665 WHERE "birthplace" = 'scotland' | [
4919,
867,
460,
324,
1547,
5610,
547,
4642,
287,
629,
313,
1044,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
36879,
33411,
366,
24280,
5372,
1,
796,
705,
1416,
313,
1044,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
460,
324,
1547,
5610,
547,
4642,
287,
629,
313,
1044,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
36879,
33411,
366,
24280,
5372,
1,
796,
705,
1416,
313,
1044,
6
] |
how many patients diagnosed with arthropathy nos-unspec received po/ng therapy? | 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 = "Arthropathy NOS-unspec" AND prescriptions.route = "PO/NG" | [
4919,
867,
3871,
14641,
351,
610,
11360,
10036,
43630,
12,
403,
16684,
2722,
745,
14,
782,
9102,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
14641,
351,
610,
11360,
10036,
43630,
12,
403,
16684,
2722,
745,
14,
782,
9102,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... |
How many transactions do we have? | SELECT COUNT(*) FROM Financial_transactions | [
2437,
867,
8945,
466,
356,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
11302,
62,
7645,
4658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
8945,
466,
356,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
11302,
62,
7645,
4658
] |
what was the drug that was prescribed to patient 30228 within 2 days after the egd with closed biopsy since 05/2104? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 30228 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | [
10919,
373,
262,
2563,
326,
373,
14798,
284,
5827,
1542,
23815,
1626,
362,
1528,
706,
262,
304,
21287,
351,
4838,
3182,
44522,
1201,
8870,
14,
17,
13464,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2563,
326,
373,
14798,
284,
5827,
1542,
23815,
1626,
362,
1528,
706,
262,
304,
21287,
351,
4838,
3182,
44522,
1201,
8870,
14,
17,
13464,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,... |
What was the minor version released on April 16, 2008? | SELECT "Minor version" FROM table_26705 WHERE "Release date" = 'April 16, 2008' | [
2061,
373,
262,
4159,
2196,
2716,
319,
3035,
1467,
11,
3648,
30,
46506,
366,
39825,
2196,
1,
16034,
3084,
62,
2075,
34801,
33411,
366,
26362,
3128,
1,
796,
705,
16784,
1467,
11,
3648,
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,
373,
262,
4159,
2196,
2716,
319,
3035,
1467,
11,
3648,
30,
46506,
366,
39825,
2196,
1,
16034,
3084,
62,
2075,
34801,
33411,
366,
26362,
3128,
1,
796,
705,
16784,
1467,
11,
3648,
6
] |
what is the latest flight from SALT LAKE CITY to ST. PETERSBURG | 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 = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name =... | [
10919,
318,
262,
3452,
5474,
422,
311,
31429,
9131,
7336,
27993,
284,
3563,
13,
32043,
4877,
38926,
38,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
3452,
5474,
422,
311,
31429,
9131,
7336,
27993,
284,
3563,
13,
32043,
4877,
38926,
38,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... |
What date did Adriano Buzaid have the pole position? | SELECT "Date" FROM table_2447 WHERE "Pole Position" = 'Adriano Buzaid' | [
2061,
3128,
750,
21462,
78,
9842,
89,
1698,
423,
262,
16825,
2292,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1731,
2857,
33411,
366,
47,
2305,
23158,
1,
796,
705,
2782,
4484,
78,
9842,
89,
1698,
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,
3128,
750,
21462,
78,
9842,
89,
1698,
423,
262,
16825,
2292,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1731,
2857,
33411,
366,
47,
2305,
23158,
1,
796,
705,
2782,
4484,
78,
9842,
89,
1698,
6
] |
who is the opponent on 31 jul? | SELECT opponent FROM table_name_43 WHERE date = "31 jul" | [
8727,
318,
262,
6125,
319,
3261,
474,
377,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3559,
33411,
3128,
796,
366,
3132,
474,
377,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
262,
6125,
319,
3261,
474,
377,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3559,
33411,
3128,
796,
366,
3132,
474,
377,
1
] |
Users with non-CW answers in most tags. | SELECT RANK() OVER (ORDER BY COUNT(DISTINCT pt.TagId) DESC) AS Rank, u.Id AS "user_link", COUNT(DISTINCT pt.TagId) AS "#_of_tags" FROM Users AS u INNER JOIN Posts AS a ON a.OwnerUserId = u.Id INNER JOIN Posts AS q ON a.ParentId = q.Id INNER JOIN PostTags AS pt ON pt.PostId = q.Id WHERE (a.CommunityOwnedDate IS NULL) GR... | [
14490,
351,
1729,
12,
43538,
7429,
287,
749,
15940,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
35,
8808,
1268,
4177,
42975,
13,
24835,
7390,
8,
22196,
34,
8,
7054,
10916,
11,
334,
13,
7390,
7054,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
351,
1729,
12,
43538,
7429,
287,
749,
15940,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
35,
8808,
1268,
4177,
42975,
13,
24835,
7390,
8,
22196,
34,
8,
7054,
10916,
11,
334,
13,
7390,
7054,
366,
... |
hba1c > 7 % and not to exceed 10.5 % . | SELECT * FROM table_dev_26 WHERE hba1c > 7 AND hemoglobin_a1c_hba1c < 10.5 | [
71,
7012,
16,
66,
1875,
767,
4064,
290,
407,
284,
7074,
838,
13,
20,
4064,
764,
46506,
1635,
16034,
3084,
62,
7959,
62,
2075,
33411,
289,
7012,
16,
66,
1875,
767,
5357,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
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
] | [
71,
7012,
16,
66,
1875,
767,
4064,
290,
407,
284,
7074,
838,
13,
20,
4064,
764,
46506,
1635,
16034,
3084,
62,
7959,
62,
2075,
33411,
289,
7012,
16,
66,
1875,
767,
5357,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
8... |
What's the patent number of Fukuda? | SELECT plant_patent_number FROM table_name_21 WHERE "inventor" = "fukuda" | [
2061,
338,
262,
12701,
1271,
286,
22431,
15339,
30,
46506,
4618,
62,
8071,
298,
62,
17618,
16034,
3084,
62,
3672,
62,
2481,
33411,
366,
259,
1151,
273,
1,
796,
366,
69,
2724,
15339,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12701,
1271,
286,
22431,
15339,
30,
46506,
4618,
62,
8071,
298,
62,
17618,
16034,
3084,
62,
3672,
62,
2481,
33411,
366,
259,
1151,
273,
1,
796,
366,
69,
2724,
15339,
1
] |
Discussion in comments after moving comments to chat. | SELECT DISTINCT MovedToChat.* FROM Posts, Comments AS MovedToChat WHERE MovedToChat.PostId = Posts.Id AND MovedToChat.Text LIKE 'Comments are not for extended discussion%' | [
34255,
287,
3651,
706,
3867,
3651,
284,
8537,
13,
46506,
360,
8808,
1268,
4177,
337,
2668,
2514,
30820,
15885,
16034,
12043,
11,
19502,
7054,
337,
2668,
2514,
30820,
33411,
337,
2668,
2514,
30820,
13,
6307,
7390,
796,
12043,
13,
7390,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
34255,
287,
3651,
706,
3867,
3651,
284,
8537,
13,
46506,
360,
8808,
1268,
4177,
337,
2668,
2514,
30820,
15885,
16034,
12043,
11,
19502,
7054,
337,
2668,
2514,
30820,
33411,
337,
2668,
2514,
30820,
13,
6307,
7390,
796,
12043,
13,
7390,
5... |
In the US Open championship and the outcome is runner-up, what is the minimum year? | SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open" | [
818,
262,
1294,
4946,
12184,
290,
262,
8055,
318,
17490,
12,
929,
11,
644,
318,
262,
5288,
614,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
18182,
24,
4304,
2075,
62,
17,
33411,
8055,
796,
366,
49493,
12,
929,
1,
5357,
12184,
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
] | [
818,
262,
1294,
4946,
12184,
290,
262,
8055,
318,
17490,
12,
929,
11,
644,
318,
262,
5288,
614,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
18182,
24,
4304,
2075,
62,
17,
33411,
8055,
796,
366,
49493,
12,
929,
1,
5357,
12184,
7... |
What is orthodoxy when x is wehdat? | SELECT "Orthodoxy" FROM table_73887 WHERE "\u00d7" = 'Wehdat' | [
2061,
318,
49371,
618,
2124,
318,
356,
71,
19608,
30,
46506,
366,
5574,
12836,
88,
1,
16034,
3084,
62,
22,
2548,
5774,
33411,
37082,
84,
405,
67,
22,
1,
796,
705,
1135,
71,
19608,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
49371,
618,
2124,
318,
356,
71,
19608,
30,
46506,
366,
5574,
12836,
88,
1,
16034,
3084,
62,
22,
2548,
5774,
33411,
37082,
84,
405,
67,
22,
1,
796,
705,
1135,
71,
19608,
6
] |
What is the y = 2011 when the y = 2009 is 6 april 2009? | SELECT "Y = 2011" FROM table_73294 WHERE "Y = 2009" = '6 April 2009' | [
2061,
318,
262,
331,
796,
2813,
618,
262,
331,
796,
3717,
318,
718,
46593,
346,
3717,
30,
46506,
366,
56,
796,
2813,
1,
16034,
3084,
62,
4790,
27696,
33411,
366,
56,
796,
3717,
1,
796,
705,
21,
3035,
3717,
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,
318,
262,
331,
796,
2813,
618,
262,
331,
796,
3717,
318,
718,
46593,
346,
3717,
30,
46506,
366,
56,
796,
2813,
1,
16034,
3084,
62,
4790,
27696,
33411,
366,
56,
796,
3717,
1,
796,
705,
21,
3035,
3717,
6
] |
List the names of all music genres. | SELECT name FROM genre | [
8053,
262,
3891,
286,
477,
2647,
27962,
13,
46506,
1438,
16034,
12121
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
3891,
286,
477,
2647,
27962,
13,
46506,
1438,
16034,
12121
] |
Show me mean rating by languages in a histogram, sort X from high to low order. | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY languages DESC | [
15307,
502,
1612,
7955,
416,
8950,
287,
257,
1554,
21857,
11,
3297,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
8950,
11,
35224,
7,
8821,
8,
16034,
3496,
44441,
11050,
8950,
38678,
11050,
8950,
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
] | [
15307,
502,
1612,
7955,
416,
8950,
287,
257,
1554,
21857,
11,
3297,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
8950,
11,
35224,
7,
8821,
8,
16034,
3496,
44441,
11050,
8950,
38678,
11050,
8950,
22196,
34
] |
What visiting team played on October 18? | SELECT "Visiting Team" FROM table_71817 WHERE "Date" = 'october 18' | [
2061,
10013,
1074,
2826,
319,
3267,
1248,
30,
46506,
366,
15854,
1780,
4816,
1,
16034,
3084,
62,
45720,
1558,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1248,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
10013,
1074,
2826,
319,
3267,
1248,
30,
46506,
366,
15854,
1780,
4816,
1,
16034,
3084,
62,
45720,
1558,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1248,
6
] |
what is the number of patients whose admission location is emergency room admit and lab test name is mesothelial cells? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND lab.label = "Mesothelial Cells" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
2248,
1332,
1438,
318,
18842,
313,
35566,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
4067,
318,
6334,
2119,
9159,
290,
2248,
1332,
1438,
318,
18842,
313,
35566,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
In what edition was the opponent team Zimbabwe? | SELECT "Edition" FROM table_3921 WHERE "Opponent Team" = 'Zimbabwe' | [
818,
644,
8313,
373,
262,
6125,
1074,
28589,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
2670,
2481,
33411,
366,
27524,
3471,
4816,
1,
796,
705,
57,
27175,
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
] | [
818,
644,
8313,
373,
262,
6125,
1074,
28589,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
2670,
2481,
33411,
366,
27524,
3471,
4816,
1,
796,
705,
57,
27175,
6
] |
what number of patients born before the year 2098 have their lab tets result as delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2098" AND lab.flag = "delta" | [
10919,
1271,
286,
3871,
4642,
878,
262,
614,
1160,
4089,
423,
511,
2248,
256,
1039,
1255,
355,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
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,
1271,
286,
3871,
4642,
878,
262,
614,
1160,
4089,
423,
511,
2248,
256,
1039,
1255,
355,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16... |
What is the name of the episode written by karina csolty? | SELECT title FROM table_27969432_2 WHERE written_by = "Karina Csolty" | [
2061,
318,
262,
1438,
286,
262,
4471,
3194,
416,
479,
283,
1437,
269,
34453,
774,
30,
46506,
3670,
16034,
3084,
62,
26050,
45214,
2624,
62,
17,
33411,
3194,
62,
1525,
796,
366,
37753,
1437,
327,
34453,
774,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
3194,
416,
479,
283,
1437,
269,
34453,
774,
30,
46506,
3670,
16034,
3084,
62,
26050,
45214,
2624,
62,
17,
33411,
3194,
62,
1525,
796,
366,
37753,
1437,
327,
34453,
774,
1
] |
provide the number of patients who died on or before 2155 and had hypoxia as primary disease. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPOXIA" AND demographic.dod_year <= "2155.0" | [
15234,
485,
262,
1271,
286,
3871,
508,
3724,
319,
393,
878,
362,
18742,
290,
550,
5328,
1140,
544,
355,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
508,
3724,
319,
393,
878,
362,
18742,
290,
550,
5328,
1140,
544,
355,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
... |
Visualize a bar chart for how many students are older than average for each gender?, could you order Sex in ascending order please? | SELECT Sex, COUNT(*) FROM Student WHERE Age > (SELECT AVG(Age) FROM Student) GROUP BY Sex ORDER BY Sex | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2444,
389,
4697,
621,
2811,
329,
1123,
5279,
21747,
714,
345,
1502,
14419,
287,
41988,
1502,
3387,
30,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
13613,
33411,
7129,
1875,
357,
46506,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2444,
389,
4697,
621,
2811,
329,
1123,
5279,
21747,
714,
345,
1502,
14419,
287,
41988,
1502,
3387,
30,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
13613,
33411,
7129,
1875,
357,
46506,
352... |
Which coach founded the Western Strikers team after 1963? | SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers" | [
13828,
3985,
9393,
262,
4885,
520,
12602,
364,
1074,
706,
19342,
30,
46506,
3985,
16034,
3084,
62,
3672,
62,
3365,
33411,
9393,
1875,
19342,
5357,
1074,
796,
366,
14197,
45892,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
3985,
9393,
262,
4885,
520,
12602,
364,
1074,
706,
19342,
30,
46506,
3985,
16034,
3084,
62,
3672,
62,
3365,
33411,
9393,
1875,
19342,
5357,
1074,
796,
366,
14197,
45892,
1
] |
Where will the game at (ET) of 7:00 pm be at? | SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm" | [
8496,
481,
262,
983,
379,
357,
2767,
8,
286,
767,
25,
405,
9114,
307,
379,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
17,
33411,
640,
17569,
316,
834,
796,
366,
22,
25,
405,
9114,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
481,
262,
983,
379,
357,
2767,
8,
286,
767,
25,
405,
9114,
307,
379,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
17,
33411,
640,
17569,
316,
834,
796,
366,
22,
25,
405,
9114,
1
] |
has patient 17667 received an troponin i test during this month? | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'troponin i') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TI... | [
10134,
5827,
1596,
28933,
2722,
281,
14673,
261,
259,
1312,
1332,
1141,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
1596,
28933,
2722,
281,
14673,
261,
259,
1312,
1332,
1141,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312... |
When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division? | SELECT COUNT(division) FROM table_name_89 WHERE regular_season = "2nd, northeast" AND year < 2008 | [
2215,
262,
3218,
1622,
286,
362,
358,
11,
26315,
290,
262,
614,
373,
1342,
621,
3648,
644,
373,
262,
2472,
1271,
286,
7458,
30,
46506,
327,
28270,
7,
21426,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
3218,
62,
6230,
796,
366,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
3218,
1622,
286,
362,
358,
11,
26315,
290,
262,
614,
373,
1342,
621,
3648,
644,
373,
262,
2472,
1271,
286,
7458,
30,
46506,
327,
28270,
7,
21426,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
3218,
62,
6230,
796,
366,
17,
... |
show me all flights both direct and connecting from DALLAS FORT WORTH to either SAN FRANCISCO or oakland that depart after 1900 | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS FORT WORTH' AND flight.from_... | [
12860,
502,
477,
13956,
1111,
1277,
290,
14320,
422,
360,
7036,
1921,
7473,
51,
21881,
4221,
284,
2035,
37376,
8782,
20940,
1797,
8220,
393,
26210,
1044,
326,
6313,
706,
21489,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13956,
1111,
1277,
290,
14320,
422,
360,
7036,
1921,
7473,
51,
21881,
4221,
284,
2035,
37376,
8782,
20940,
1797,
8220,
393,
26210,
1044,
326,
6313,
706,
21489,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
160... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.