instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Most disliked users of the site. | SELECT * FROM (SELECT DownRank + RepRank AS RawRank, RankedDowns.UserId, RankedDowns.Downs, RankedDowns.DownRank, RepRank.Reputation, RepRank.RepRank FROM (SELECT UserId, Downs, DENSE_RANK() OVER (ORDER BY Downs DESC) AS DownRank FROM (SELECT Posts.OwnerUserId AS UserId, COUNT(*) AS Downs FROM Votes, Posts WHERE Votes.... | [
6943,
43252,
2985,
286,
262,
2524,
13,
46506,
1635,
16034,
357,
46506,
5588,
27520,
1343,
1432,
27520,
7054,
16089,
27520,
11,
41844,
8048,
82,
13,
12982,
7390,
11,
41844,
8048,
82,
13,
8048,
82,
11,
41844,
8048,
82,
13,
8048,
27520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6943,
43252,
2985,
286,
262,
2524,
13,
46506,
1635,
16034,
357,
46506,
5588,
27520,
1343,
1432,
27520,
7054,
16089,
27520,
11,
41844,
8048,
82,
13,
12982,
7390,
11,
41844,
8048,
82,
13,
8048,
82,
11,
41844,
8048,
82,
13,
8048,
27520,
... |
Which To par has a Winning score of 64-68-66-63=261? | SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261 | [
13828,
1675,
1582,
468,
257,
40983,
4776,
286,
5598,
12,
3104,
12,
2791,
12,
5066,
28,
30057,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1828,
33411,
5442,
62,
26675,
796,
5598,
532,
8257,
532,
7930,
532,
8093,
796,
39166
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1675,
1582,
468,
257,
40983,
4776,
286,
5598,
12,
3104,
12,
2791,
12,
5066,
28,
30057,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1828,
33411,
5442,
62,
26675,
796,
5598,
532,
8257,
532,
7930,
532,
8093,
796,
39166
] |
What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0? | SELECT SUM("Silver") FROM table_7650 WHERE "Bronze" > '0' AND "Gold" < '0' | [
2061,
318,
262,
2160,
286,
7698,
351,
257,
19461,
326,
318,
4025,
621,
657,
351,
257,
3561,
4833,
621,
657,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
4304,
1120,
33411,
366,
18760,
2736,
1,
1875,
705,
15,
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
] | [
2061,
318,
262,
2160,
286,
7698,
351,
257,
19461,
326,
318,
4025,
621,
657,
351,
257,
3561,
4833,
621,
657,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
4304,
1120,
33411,
366,
18760,
2736,
1,
1875,
705,
15,
6,
5357,
366,
1... |
How many in total were in attendance at games where Chelsea was the away team? | SELECT SUM(attendance) FROM table_name_23 WHERE away_team = "chelsea" | [
2437,
867,
287,
2472,
547,
287,
14858,
379,
1830,
810,
12147,
373,
262,
1497,
1074,
30,
46506,
35683,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1497,
62,
15097,
796,
366,
29232,
8583,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
2472,
547,
287,
14858,
379,
1830,
810,
12147,
373,
262,
1497,
1074,
30,
46506,
35683,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1497,
62,
15097,
796,
366,
29232,
8583,
1
] |
how many female patients have been suffering from chest pain primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "CHEST PAIN" | [
4919,
867,
4048,
3871,
423,
587,
7195,
422,
7721,
2356,
4165,
4369,
30,
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,
47356,
5958,
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
] | [
4919,
867,
4048,
3871,
423,
587,
7195,
422,
7721,
2356,
4165,
4369,
30,
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,
47356,
5958,
7... |
what were the number of contestants that were male ? | SELECT COUNT("name") FROM table_203_446 WHERE "gender" = 'male' | [
10919,
547,
262,
1271,
286,
37851,
326,
547,
4257,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
22416,
62,
27260,
33411,
366,
8388,
1,
796,
705,
22606,
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
] | [
10919,
547,
262,
1271,
286,
37851,
326,
547,
4257,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
22416,
62,
27260,
33411,
366,
8388,
1,
796,
705,
22606,
6
] |
The Milwaukee Mile circuit has what type of session? | SELECT session FROM table_name_41 WHERE circuit = "milwaukee mile" | [
464,
16629,
26004,
10349,
468,
644,
2099,
286,
6246,
30,
46506,
6246,
16034,
3084,
62,
3672,
62,
3901,
33411,
10349,
796,
366,
25433,
15428,
10591,
1
] | [
1,
1,
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,
16629,
26004,
10349,
468,
644,
2099,
286,
6246,
30,
46506,
6246,
16034,
3084,
62,
3672,
62,
3901,
33411,
10349,
796,
366,
25433,
15428,
10591,
1
] |
List the number of shows that had 12.04 million viewers in the united states | SELECT COUNT("Title") FROM table_25554 WHERE "U.S. viewers (million)" = '12.04' | [
8053,
262,
1271,
286,
2523,
326,
550,
1105,
13,
3023,
1510,
10209,
287,
262,
16503,
2585,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
1495,
44218,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1065,
13,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1271,
286,
2523,
326,
550,
1105,
13,
3023,
1510,
10209,
287,
262,
16503,
2585,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
1495,
44218,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1065,
13,
30... |
What is the height of the player who attended Hartford? | SELECT "Height in Ft." FROM table_72218 WHERE "School/Club Team/Country" = 'Hartford' | [
2061,
318,
262,
6001,
286,
262,
2137,
508,
9141,
37118,
30,
46506,
366,
23106,
287,
45231,
526,
16034,
3084,
62,
22,
1828,
1507,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
44719,
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,
1
] | [
2061,
318,
262,
6001,
286,
262,
2137,
508,
9141,
37118,
30,
46506,
366,
23106,
287,
45231,
526,
16034,
3084,
62,
22,
1828,
1507,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
44719,
3841,
6
] |
Group by the local authorities and count the number of local authorities, and then group by services, could you display in desc by the x-axis? | SELECT services, COUNT(services) FROM station GROUP BY local_authority, services ORDER BY services DESC | [
13247,
416,
262,
1957,
4773,
290,
954,
262,
1271,
286,
1957,
4773,
11,
290,
788,
1448,
416,
2594,
11,
714,
345,
3359,
287,
1715,
416,
262,
2124,
12,
22704,
30,
46506,
2594,
11,
327,
28270,
7,
30416,
8,
16034,
4429,
44441,
11050,
195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13247,
416,
262,
1957,
4773,
290,
954,
262,
1271,
286,
1957,
4773,
11,
290,
788,
1448,
416,
2594,
11,
714,
345,
3359,
287,
1715,
416,
262,
2124,
12,
22704,
30,
46506,
2594,
11,
327,
28270,
7,
30416,
8,
16034,
4429,
44441,
11050,
195... |
Which races did Paul Greifzu win? | SELECT "Race Name" FROM table_220 WHERE "Winning driver" = 'Paul Greifzu' | [
13828,
9558,
750,
3362,
11955,
361,
27624,
1592,
30,
46506,
366,
35157,
6530,
1,
16034,
3084,
62,
17572,
33411,
366,
16643,
768,
4639,
1,
796,
705,
12041,
11955,
361,
27624,
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,
9558,
750,
3362,
11955,
361,
27624,
1592,
30,
46506,
366,
35157,
6530,
1,
16034,
3084,
62,
17572,
33411,
366,
16643,
768,
4639,
1,
796,
705,
12041,
11955,
361,
27624,
6
] |
How many million U.S. viewers watched 'musical chairs'? | SELECT "U.S. viewers (million)" FROM table_30686 WHERE "Title" = 'Musical Chairs' | [
2437,
867,
1510,
471,
13,
50,
13,
10209,
7342,
705,
14664,
605,
18791,
30960,
46506,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
16034,
3084,
62,
1270,
33808,
33411,
366,
19160,
1,
796,
705,
10694,
605,
609,
3468,
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
] | [
2437,
867,
1510,
471,
13,
50,
13,
10209,
7342,
705,
14664,
605,
18791,
30960,
46506,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
16034,
3084,
62,
1270,
33808,
33411,
366,
19160,
1,
796,
705,
10694,
605,
609,
3468,
6
] |
When no.55 ipb spartak racing is the g1 winning team what are the results? | SELECT "Results" FROM table_2109 WHERE "GT1 Winning Team" = 'No.55 IPB Spartak Racing' | [
2215,
645,
13,
2816,
20966,
65,
599,
433,
461,
11717,
318,
262,
308,
16,
5442,
1074,
644,
389,
262,
2482,
30,
46506,
366,
25468,
1,
16034,
3084,
62,
17,
14454,
33411,
366,
19555,
16,
40983,
4816,
1,
796,
705,
2949,
13,
2816,
6101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
645,
13,
2816,
20966,
65,
599,
433,
461,
11717,
318,
262,
308,
16,
5442,
1074,
644,
389,
262,
2482,
30,
46506,
366,
25468,
1,
16034,
3084,
62,
17,
14454,
33411,
366,
19555,
16,
40983,
4816,
1,
796,
705,
2949,
13,
2816,
6101,
... |
What is the total goals for Mark Ward? | SELECT MIN("Total Goals") FROM table_59492 WHERE "Name" = 'mark ward' | [
2061,
318,
262,
2472,
4661,
329,
2940,
12150,
30,
46506,
20625,
7203,
14957,
28510,
4943,
16034,
3084,
62,
3270,
40256,
33411,
366,
5376,
1,
796,
705,
4102,
15305,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
4661,
329,
2940,
12150,
30,
46506,
20625,
7203,
14957,
28510,
4943,
16034,
3084,
62,
3270,
40256,
33411,
366,
5376,
1,
796,
705,
4102,
15305,
6
] |
tell me the marital status and type of admission patient with patient id 15898 had. | SELECT demographic.marital_status, demographic.admission_type FROM demographic WHERE demographic.subject_id = "15898" | [
33331,
502,
262,
29555,
3722,
290,
2099,
286,
13938,
5827,
351,
5827,
4686,
24063,
4089,
550,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
324,
3411,
62,
4906,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
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
] | [
33331,
502,
262,
29555,
3722,
290,
2099,
286,
13938,
5827,
351,
5827,
4686,
24063,
4089,
550,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
324,
3411,
62,
4906,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and employee_id , could you sort by the Y in descending please? | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
6538,
62,
312,
837,
714,
345,
3297,
416,
262,
575,
287,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
6538,
62,
312,
837,
714,
345,
3297,
416,
262,
575,
287,
3... |
for patients diagnosed with hypopituitarism in 2102, what are the top three most common diagnoses that followed within the same month? | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypopituitarism' AND STRFTIME('%y', diag... | [
1640,
3871,
14641,
351,
5328,
404,
270,
5013,
283,
1042,
287,
362,
15377,
11,
644,
389,
262,
1353,
1115,
749,
2219,
40567,
326,
3940,
1626,
262,
976,
1227,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
17,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1640,
3871,
14641,
351,
5328,
404,
270,
5013,
283,
1042,
287,
362,
15377,
11,
644,
389,
262,
1353,
1115,
749,
2219,
40567,
326,
3940,
1626,
262,
976,
1227,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
17,
13,
4... |
Find the name of airports whose altitude is between -50 and 50. | SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 | [
16742,
262,
1438,
286,
22600,
3025,
20334,
318,
1022,
532,
1120,
290,
2026,
13,
46506,
1438,
16034,
22600,
33411,
22910,
38651,
8845,
1677,
532,
1120,
5357,
2026
] | [
1,
1,
1,
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,
1438,
286,
22600,
3025,
20334,
318,
1022,
532,
1120,
290,
2026,
13,
46506,
1438,
16034,
22600,
33411,
22910,
38651,
8845,
1677,
532,
1120,
5357,
2026
] |
What was the away team score when Richmond was the home team? | SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond" | [
2061,
373,
262,
1497,
1074,
4776,
618,
16940,
373,
262,
1363,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1795,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
4776,
618,
16940,
373,
262,
1363,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1795,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] |
Show names of musicals and the number of actors who have appeared in the musicals. | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID | [
15307,
3891,
286,
10530,
82,
290,
262,
1271,
286,
10544,
508,
423,
4120,
287,
262,
10530,
82,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
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... | [
15307,
3891,
286,
10530,
82,
290,
262,
1271,
286,
10544,
508,
423,
4120,
287,
262,
10530,
82,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
... |
Name the total number of rank for east midnapore | SELECT COUNT("Rank") FROM table_27491 WHERE "District" = 'East Midnapore' | [
5376,
262,
2472,
1271,
286,
4279,
329,
7627,
3095,
77,
11656,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
1983,
41289,
33411,
366,
44857,
1,
796,
705,
25234,
7215,
77,
11656,
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
] | [
5376,
262,
2472,
1271,
286,
4279,
329,
7627,
3095,
77,
11656,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
1983,
41289,
33411,
366,
44857,
1,
796,
705,
25234,
7215,
77,
11656,
6
] |
who are all the players for armwood high school | SELECT player FROM table_11677691_12 WHERE school = "Armwood High school" | [
8727,
389,
477,
262,
1938,
329,
3211,
3822,
1029,
1524,
46506,
2137,
16034,
3084,
62,
1157,
40179,
49541,
62,
1065,
33411,
1524,
796,
366,
26560,
3822,
3334,
1524,
1
] | [
1,
1,
1,
1,
1,
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,
389,
477,
262,
1938,
329,
3211,
3822,
1029,
1524,
46506,
2137,
16034,
3084,
62,
1157,
40179,
49541,
62,
1065,
33411,
1524,
796,
366,
26560,
3822,
3334,
1524,
1
] |
What date shows a Loss of lilly (2 2)? | SELECT "Date" FROM table_67921 WHERE "Loss" = 'lilly (2–2)' | [
2061,
3128,
2523,
257,
22014,
286,
300,
6548,
357,
17,
362,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
37601,
2481,
33411,
366,
43,
793,
1,
796,
705,
75,
6548,
357,
17,
1906,
17,
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
] | [
2061,
3128,
2523,
257,
22014,
286,
300,
6548,
357,
17,
362,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
37601,
2481,
33411,
366,
43,
793,
1,
796,
705,
75,
6548,
357,
17,
1906,
17,
33047
] |
What is Away Team, when Home Team is 'West Ham United'? | SELECT away_team FROM table_name_83 WHERE home_team = "west ham united" | [
2061,
318,
21986,
4816,
11,
618,
5995,
4816,
318,
705,
15045,
4345,
1578,
30960,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
5999,
33411,
1363,
62,
15097,
796,
366,
7038,
8891,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21986,
4816,
11,
618,
5995,
4816,
318,
705,
15045,
4345,
1578,
30960,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
5999,
33411,
1363,
62,
15097,
796,
366,
7038,
8891,
16503,
1
] |
Name the bronze for lahti | SELECT bronze FROM table_name_46 WHERE place = "lahti" | [
5376,
262,
22101,
329,
300,
993,
20259,
46506,
22101,
16034,
3084,
62,
3672,
62,
3510,
33411,
1295,
796,
366,
9271,
20259,
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,
22101,
329,
300,
993,
20259,
46506,
22101,
16034,
3084,
62,
3672,
62,
3510,
33411,
1295,
796,
366,
9271,
20259,
1
] |
What papers has James Fogarty written at ubicomp ? | SELECT DISTINCT paper.paperid FROM author, paper, venue, writes WHERE author.authorname = 'James Fogarty' AND venue.venueid = paper.venueid AND venue.venuename = 'ubicomp' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
9473,
468,
3700,
33381,
25494,
3194,
379,
20967,
291,
3361,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
14731,
33381,
25494,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
9473,
468,
3700,
33381,
25494,
3194,
379,
20967,
291,
3361,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
14731,
33381,
25494,
6,... |
which single was released before backslider ? | SELECT "title" FROM table_203_751 WHERE id = (SELECT id FROM table_203_751 WHERE "title" = '"backslider"') - 1 | [
4758,
2060,
373,
2716,
878,
736,
6649,
1304,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
48365,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
48365,
33411,
366,
7839,
1,
796,
705,
1,
1891,
6649,
1304,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
2060,
373,
2716,
878,
736,
6649,
1304,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
48365,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
48365,
33411,
366,
7839,
1,
796,
705,
1,
1891,
6649,
1304,
1,
... |
What is the average feet that has a Latitude (N) of 35 48 35 , and under 8,047m? | SELECT AVG("feet") FROM table_53972 WHERE "Latitude (N)" = '35°48′35″' AND "metres" < '8,047' | [
2061,
318,
262,
2811,
3625,
326,
468,
257,
5476,
3984,
357,
45,
8,
286,
3439,
4764,
3439,
837,
290,
739,
807,
11,
48000,
76,
30,
46506,
35224,
7203,
39690,
4943,
16034,
3084,
62,
20,
2670,
4761,
33411,
366,
24220,
3984,
357,
45,
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
] | [
2061,
318,
262,
2811,
3625,
326,
468,
257,
5476,
3984,
357,
45,
8,
286,
3439,
4764,
3439,
837,
290,
739,
807,
11,
48000,
76,
30,
46506,
35224,
7203,
39690,
4943,
16034,
3084,
62,
20,
2670,
4761,
33411,
366,
24220,
3984,
357,
45,
167... |
Find all the locations whose names contain the word 'film'. | SELECT location_name FROM locations WHERE location_name LIKE "%film%" | [
16742,
477,
262,
7064,
3025,
3891,
3994,
262,
1573,
705,
26240,
4458,
46506,
4067,
62,
3672,
16034,
7064,
33411,
4067,
62,
3672,
34178,
36521,
26240,
39658
] | [
1,
1,
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,
477,
262,
7064,
3025,
3891,
3994,
262,
1573,
705,
26240,
4458,
46506,
4067,
62,
3672,
16034,
7064,
33411,
4067,
62,
3672,
34178,
36521,
26240,
39658
] |
What is the lowest year for the game called The Elder Scrolls v: Skyrim? | SELECT MIN(year) FROM table_name_99 WHERE game = "the elder scrolls v: skyrim" | [
2061,
318,
262,
9016,
614,
329,
262,
983,
1444,
383,
15624,
28859,
410,
25,
21789,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
983,
796,
366,
1169,
10550,
32138,
410,
25,
1341,
17302,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
329,
262,
983,
1444,
383,
15624,
28859,
410,
25,
21789,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
983,
796,
366,
1169,
10550,
32138,
410,
25,
1341,
17302,
1
] |
pm flights leaving SAN FRANCISCO arriving BOSTON | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.departure_time <= 2359 AND flight.departure_time >= 1200) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.... | [
4426,
13956,
4305,
37376,
8782,
20940,
1797,
8220,
14820,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4426,
13956,
4305,
37376,
8782,
20940,
1797,
8220,
14820,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
... |
Specify the minimum number of days for which a patient insured by the government stayed in the hospital | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.insurance = "Government" | [
22882,
1958,
262,
5288,
1271,
286,
1528,
329,
543,
257,
5827,
31977,
416,
262,
1230,
9658,
287,
262,
4436,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22882,
1958,
262,
5288,
1271,
286,
1528,
329,
543,
257,
5827,
31977,
416,
262,
1230,
9658,
287,
262,
4436,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1
] |
%sql SELECT * \ FROM INFORMATION_SCHEMA.TABLES \ WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE. | SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_CATALOG = '$database' AND TABLE_SCHEMA != 'sys' ORDER BY TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, ORDINAL_POSITION | [
4,
25410,
33493,
1635,
3467,
16034,
38044,
62,
50,
3398,
27630,
13,
5603,
9148,
1546,
3467,
33411,
43679,
62,
25216,
796,
705,
33,
11159,
43679,
6,
5357,
43679,
13,
46506,
43679,
62,
34,
1404,
1847,
7730,
11,
43679,
62,
50,
3398,
2763... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4,
25410,
33493,
1635,
3467,
16034,
38044,
62,
50,
3398,
27630,
13,
5603,
9148,
1546,
3467,
33411,
43679,
62,
25216,
796,
705,
33,
11159,
43679,
6,
5357,
43679,
13,
46506,
43679,
62,
34,
1404,
1847,
7730,
11,
43679,
62,
50,
3398,
2763... |
what is the average daily number of patients who have had hemangioma intracranial during the last year? | 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 = 'hemangioma intracranial') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TI... | [
10919,
318,
262,
2811,
4445,
1271,
286,
3871,
508,
423,
550,
16869,
648,
72,
6086,
9913,
330,
2596,
498,
1141,
262,
938,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
4056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4445,
1271,
286,
3871,
508,
423,
550,
16869,
648,
72,
6086,
9913,
330,
2596,
498,
1141,
262,
938,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
4056... |
What winner has pierre rolland as mountains classification, with 7 as the stage? | SELECT winner FROM table_name_14 WHERE mountains_classification = "pierre rolland" AND stage = "7" | [
2061,
8464,
468,
17748,
260,
4836,
392,
355,
12269,
17923,
11,
351,
767,
355,
262,
3800,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1415,
33411,
12269,
62,
4871,
2649,
796,
366,
79,
31058,
4836,
392,
1,
5357,
3800,
796,
366,
22,
1
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
8464,
468,
17748,
260,
4836,
392,
355,
12269,
17923,
11,
351,
767,
355,
262,
3800,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1415,
33411,
12269,
62,
4871,
2649,
796,
366,
79,
31058,
4836,
392,
1,
5357,
3800,
796,
366,
22,
1
... |
who is the the voice actor (japanese) with character name being goku | SELECT voice_actor__japanese_ FROM table_1410384_1 WHERE character_name = "Goku" | [
8727,
318,
262,
262,
3809,
8674,
357,
73,
2674,
2771,
8,
351,
2095,
1438,
852,
467,
23063,
46506,
3809,
62,
11218,
834,
73,
2674,
2771,
62,
16034,
3084,
62,
1415,
940,
22842,
62,
16,
33411,
2095,
62,
3672,
796,
366,
38,
11601,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3809,
8674,
357,
73,
2674,
2771,
8,
351,
2095,
1438,
852,
467,
23063,
46506,
3809,
62,
11218,
834,
73,
2674,
2771,
62,
16034,
3084,
62,
1415,
940,
22842,
62,
16,
33411,
2095,
62,
3672,
796,
366,
38,
11601,
1
] |
had patient 011-55642 been diagnosed with any disease during the current hospital encounter? | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-55642' AND patient.hospitaldischargetime IS NULL)) | [
18108,
5827,
5534,
16,
12,
2816,
41290,
587,
14641,
351,
597,
4369,
1141,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
5534,
16,
12,
2816,
41290,
587,
14641,
351,
597,
4369,
1141,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20... |
For which play was the points 271? | SELECT played FROM table_name_74 WHERE points_against = "271" | [
1890,
543,
711,
373,
262,
2173,
33797,
30,
46506,
2826,
16034,
3084,
62,
3672,
62,
4524,
33411,
2173,
62,
32826,
796,
366,
28977,
1
] | [
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,
543,
711,
373,
262,
2173,
33797,
30,
46506,
2826,
16034,
3084,
62,
3672,
62,
4524,
33411,
2173,
62,
32826,
796,
366,
28977,
1
] |
What is the total amount of points that Christy has in the years before 1954? | SELECT SUM(points) FROM table_name_59 WHERE entrant = "christy" AND year < 1954 | [
2061,
318,
262,
2472,
2033,
286,
2173,
326,
50058,
468,
287,
262,
812,
878,
24718,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
920,
5250,
796,
366,
43533,
88,
1,
5357,
614,
1279,
24718
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
2173,
326,
50058,
468,
287,
262,
812,
878,
24718,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
920,
5250,
796,
366,
43533,
88,
1,
5357,
614,
1279,
24718
] |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by time, and order by the y-axis from high to low. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(SALARY) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1502,
416,
262,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1502,
416,
262,
331,
... |
Which rank's country is the US when the accolade is 40 best albums of the year? | SELECT "Rank" FROM table_76013 WHERE "Country" = 'us' AND "Accolade" = '40 best albums of the year' | [
13828,
4279,
338,
1499,
318,
262,
1294,
618,
262,
45667,
671,
318,
2319,
1266,
16788,
286,
262,
614,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
4304,
30273,
33411,
366,
33921,
1,
796,
705,
385,
6,
5357,
366,
17320,
349,
671,
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
] | [
13828,
4279,
338,
1499,
318,
262,
1294,
618,
262,
45667,
671,
318,
2319,
1266,
16788,
286,
262,
614,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
4304,
30273,
33411,
366,
33921,
1,
796,
705,
385,
6,
5357,
366,
17320,
349,
671,
1,
796,... |
What venue is the home of the Carlton team? | SELECT "Venue" FROM table_51333 WHERE "Home team" = 'carlton' | [
2061,
14359,
318,
262,
1363,
286,
262,
44348,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
48645,
2091,
33411,
366,
16060,
1074,
1,
796,
705,
66,
7063,
1122,
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,
14359,
318,
262,
1363,
286,
262,
44348,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
48645,
2091,
33411,
366,
16060,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
What is the highest Pick, when Player is 'Todd Van Poppel'? | SELECT MAX("Pick") FROM table_59018 WHERE "Player" = 'todd van poppel' | [
2061,
318,
262,
4511,
12346,
11,
618,
7853,
318,
705,
42817,
6656,
7695,
46357,
30960,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
3270,
29159,
33411,
366,
14140,
1,
796,
705,
83,
5088,
5719,
745,
46357,
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,
318,
262,
4511,
12346,
11,
618,
7853,
318,
705,
42817,
6656,
7695,
46357,
30960,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
3270,
29159,
33411,
366,
14140,
1,
796,
705,
83,
5088,
5719,
745,
46357,
6
] |
What is the Rank of the Rowers with FA as Notes? | SELECT AVG("Rank") FROM table_79601 WHERE "Notes" = 'fa' | [
2061,
318,
262,
10916,
286,
262,
371,
3618,
351,
9677,
355,
11822,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
41060,
486,
33411,
366,
16130,
1,
796,
705,
13331,
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,
10916,
286,
262,
371,
3618,
351,
9677,
355,
11822,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
41060,
486,
33411,
366,
16130,
1,
796,
705,
13331,
6
] |
Name the total number of districts for rob teplitz | SELECT COUNT(district) FROM table_1979619_3 WHERE representative = "Rob Teplitz" | [
5376,
262,
2472,
1271,
286,
12815,
329,
3857,
573,
489,
4224,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
33581,
21,
1129,
62,
18,
33411,
8852,
796,
366,
14350,
1665,
489,
4224,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
12815,
329,
3857,
573,
489,
4224,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
33581,
21,
1129,
62,
18,
33411,
8852,
796,
366,
14350,
1665,
489,
4224,
1
] |
how many total languages were there ? | SELECT COUNT(DISTINCT ("language")) FROM table_204_546 | [
4919,
867,
2472,
8950,
547,
612,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5855,
16129,
48774,
16034,
3084,
62,
18638,
62,
49489
] | [
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,
2472,
8950,
547,
612,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5855,
16129,
48774,
16034,
3084,
62,
18638,
62,
49489
] |
How many years had a location at Forest Hills and a score of 6 3, 6 3 for John McEnroe? | SELECT COUNT(year) FROM table_name_42 WHERE location = "forest hills" AND runner_up = "john mcenroe" AND score = "6–3, 6–3" | [
2437,
867,
812,
550,
257,
4067,
379,
9115,
14379,
290,
257,
4776,
286,
718,
513,
11,
718,
513,
329,
1757,
1982,
4834,
20646,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4067,
796,
366,
29623,
18639,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
550,
257,
4067,
379,
9115,
14379,
290,
257,
4776,
286,
718,
513,
11,
718,
513,
329,
1757,
1982,
4834,
20646,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4067,
796,
366,
29623,
18639,
1,... |
Which Score has a Year larger than 1980, and a Margin of victory of 2 strokes, and a Country of united states, and a Player of jim furyk? | SELECT "Score" FROM table_36108 WHERE "Year" > '1980' AND "Margin of victory" = '2 strokes' AND "Country" = 'united states' AND "Player" = 'jim furyk' | [
13828,
15178,
468,
257,
6280,
4025,
621,
7169,
11,
290,
257,
11899,
259,
286,
5373,
286,
362,
29483,
11,
290,
257,
12946,
286,
16503,
2585,
11,
290,
257,
7853,
286,
474,
320,
26206,
74,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
468,
257,
6280,
4025,
621,
7169,
11,
290,
257,
11899,
259,
286,
5373,
286,
362,
29483,
11,
290,
257,
12946,
286,
16503,
2585,
11,
290,
257,
7853,
286,
474,
320,
26206,
74,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
262... |
Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what average gold? | SELECT AVG("Gold") FROM table_38354 WHERE "Total" > '3' AND "Rank" = '4' AND "Silver" > '0' | [
14957,
4025,
621,
513,
11,
290,
257,
10916,
286,
604,
11,
290,
257,
7698,
4025,
621,
657,
468,
644,
2811,
3869,
30,
46506,
35224,
7203,
13306,
4943,
16034,
3084,
62,
2548,
32182,
33411,
366,
14957,
1,
1875,
705,
18,
6,
5357,
366,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
4025,
621,
513,
11,
290,
257,
10916,
286,
604,
11,
290,
257,
7698,
4025,
621,
657,
468,
644,
2811,
3869,
30,
46506,
35224,
7203,
13306,
4943,
16034,
3084,
62,
2548,
32182,
33411,
366,
14957,
1,
1875,
705,
18,
6,
5357,
366,
27... |
How many patients are diagnosed with icd9 code 5679 and had a main drug type? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "5679" AND prescriptions.drug_type = "MAIN" | [
2437,
867,
3871,
389,
14641,
351,
14158,
67,
24,
2438,
642,
37601,
290,
550,
257,
1388,
2563,
2099,
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... | [
2437,
867,
3871,
389,
14641,
351,
14158,
67,
24,
2438,
642,
37601,
290,
550,
257,
1388,
2563,
2099,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
167... |
show me the number of patients less than 71 years who have lab test item id 50856. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "71" AND lab.itemid = "50856" | [
12860,
502,
262,
1271,
286,
3871,
1342,
621,
9166,
812,
508,
423,
2248,
1332,
2378,
4686,
2026,
23,
3980,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
1271,
286,
3871,
1342,
621,
9166,
812,
508,
423,
2248,
1332,
2378,
4686,
2026,
23,
3980,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177... |
What are the results of Format single on March 21? | SELECT result_s_ FROM table_name_34 WHERE format_s_ = "single" AND date = "march 21" | [
2061,
389,
262,
2482,
286,
18980,
2060,
319,
2805,
2310,
30,
46506,
1255,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2682,
33411,
5794,
62,
82,
62,
796,
366,
29762,
1,
5357,
3128,
796,
366,
76,
998,
2310,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2482,
286,
18980,
2060,
319,
2805,
2310,
30,
46506,
1255,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2682,
33411,
5794,
62,
82,
62,
796,
366,
29762,
1,
5357,
3128,
796,
366,
76,
998,
2310,
1
] |
what is the score when the game is higher than 66 on march 28? | SELECT score FROM table_name_82 WHERE game > 66 AND march = 28 | [
10919,
318,
262,
4776,
618,
262,
983,
318,
2440,
621,
7930,
319,
9960,
2579,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6469,
33411,
983,
1875,
7930,
5357,
9960,
796,
2579
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4776,
618,
262,
983,
318,
2440,
621,
7930,
319,
9960,
2579,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6469,
33411,
983,
1875,
7930,
5357,
9960,
796,
2579
] |
what song made it to the highest rank on the us rap charts ? | SELECT "song" FROM table_204_56 ORDER BY "us rap" LIMIT 1 | [
10919,
3496,
925,
340,
284,
262,
4511,
4279,
319,
262,
514,
4095,
15907,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
3980,
38678,
11050,
366,
385,
4095,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
3496,
925,
340,
284,
262,
4511,
4279,
319,
262,
514,
4095,
15907,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
3980,
38678,
11050,
366,
385,
4095,
1,
27564,
2043,
352
] |
What are the different product names, and what is the sum of quantity ordered for each product. Visualize by bar chart. | SELECT product_name, SUM(T1.product_quantity) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name | [
2061,
389,
262,
1180,
1720,
3891,
11,
290,
644,
318,
262,
2160,
286,
12040,
6149,
329,
1123,
1720,
13,
15612,
1096,
416,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
35683,
7,
51,
16,
13,
11167,
62,
40972,
414,
8,
16034,
8284,
62,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
1180,
1720,
3891,
11,
290,
644,
318,
262,
2160,
286,
12040,
6149,
329,
1123,
1720,
13,
15612,
1096,
416,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
35683,
7,
51,
16,
13,
11167,
62,
40972,
414,
8,
16034,
8284,
62,
2... |
What is every institution with the nickname of Wildcats? | SELECT "Institution" FROM table_28413 WHERE "Nickname" = 'WildCats' | [
2061,
318,
790,
9901,
351,
262,
21814,
286,
46011,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
30336,
1485,
33411,
366,
23609,
3672,
1,
796,
705,
25946,
34,
1381,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
790,
9901,
351,
262,
21814,
286,
46011,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
30336,
1485,
33411,
366,
23609,
3672,
1,
796,
705,
25946,
34,
1381,
6
] |
What is the Winnipeg Jets record? | SELECT "Record" FROM table_37042 WHERE "Opponent" = 'winnipeg jets' | [
2061,
318,
262,
23434,
14728,
1700,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
20167,
3682,
33411,
366,
27524,
3471,
1,
796,
705,
86,
3732,
21700,
20792,
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,
23434,
14728,
1700,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
20167,
3682,
33411,
366,
27524,
3471,
1,
796,
705,
86,
3732,
21700,
20792,
6
] |
Where was the tournament won by Hale Irwin (19)? | SELECT location FROM table_name_93 WHERE winner = "hale irwin (19)" | [
8496,
373,
262,
7756,
1839,
416,
35056,
48470,
357,
1129,
19427,
46506,
4067,
16034,
3084,
62,
3672,
62,
6052,
33411,
8464,
796,
366,
71,
1000,
4173,
5404,
357,
1129,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
7756,
1839,
416,
35056,
48470,
357,
1129,
19427,
46506,
4067,
16034,
3084,
62,
3672,
62,
6052,
33411,
8464,
796,
366,
71,
1000,
4173,
5404,
357,
1129,
16725
] |
What is the average points that have a December less than 6, with a game greater than 26? | SELECT AVG(points) FROM table_name_17 WHERE december < 6 AND game > 26 | [
2061,
318,
262,
2811,
2173,
326,
423,
257,
3426,
1342,
621,
718,
11,
351,
257,
983,
3744,
621,
2608,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
390,
3273,
1279,
718,
5357,
983,
1875,
2608
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
326,
423,
257,
3426,
1342,
621,
718,
11,
351,
257,
983,
3744,
621,
2608,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
390,
3273,
1279,
718,
5357,
983,
1875,
2608
] |
Visualize the general trend of the number of planned delivery date over the planned delivery date, and I want to order in ascending by the x axis. | SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date | [
36259,
1096,
262,
2276,
5182,
286,
262,
1271,
286,
6027,
7585,
3128,
625,
262,
6027,
7585,
3128,
11,
290,
314,
765,
284,
1502,
287,
41988,
416,
262,
2124,
16488,
13,
46506,
18451,
62,
33129,
62,
10430,
11,
327,
28270,
7,
3646,
3577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2276,
5182,
286,
262,
1271,
286,
6027,
7585,
3128,
625,
262,
6027,
7585,
3128,
11,
290,
314,
765,
284,
1502,
287,
41988,
416,
262,
2124,
16488,
13,
46506,
18451,
62,
33129,
62,
10430,
11,
327,
28270,
7,
3646,
3577,
... |
Which vocal type is the most frequently appearring type? | SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
12435,
2099,
318,
262,
749,
6777,
1656,
1806,
2099,
30,
46506,
41876,
16034,
25355,
44441,
11050,
41876,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
12435,
2099,
318,
262,
749,
6777,
1656,
1806,
2099,
30,
46506,
41876,
16034,
25355,
44441,
11050,
41876,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
What is the number of population for lithuania? | SELECT COUNT(population) FROM table_1307842_7 WHERE member_countries = "Lithuania" | [
2061,
318,
262,
1271,
286,
3265,
329,
24491,
29743,
30,
46506,
327,
28270,
7,
39748,
8,
16034,
3084,
62,
12952,
3695,
3682,
62,
22,
33411,
2888,
62,
9127,
1678,
796,
366,
43,
342,
29743,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
3265,
329,
24491,
29743,
30,
46506,
327,
28270,
7,
39748,
8,
16034,
3084,
62,
12952,
3695,
3682,
62,
22,
33411,
2888,
62,
9127,
1678,
796,
366,
43,
342,
29743,
1
] |
What is the Date of the match against Guillermo Olaso? | SELECT "Date" FROM table_12585 WHERE "Opponent" = 'guillermo olaso' | [
2061,
318,
262,
7536,
286,
262,
2872,
1028,
1962,
4665,
5908,
6544,
292,
78,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1065,
38905,
33411,
366,
27524,
3471,
1,
796,
705,
5162,
4665,
5908,
267,
21921,
78,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
2872,
1028,
1962,
4665,
5908,
6544,
292,
78,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1065,
38905,
33411,
366,
27524,
3471,
1,
796,
705,
5162,
4665,
5908,
267,
21921,
78,
6
] |
What is the report for the race i sunday mirror trophy? | SELECT report FROM table_1140099_6 WHERE race_name = "I Sunday Mirror Trophy" | [
2061,
318,
262,
989,
329,
262,
3234,
1312,
37437,
323,
10162,
16383,
30,
46506,
989,
16034,
3084,
62,
1157,
7029,
2079,
62,
21,
33411,
3234,
62,
3672,
796,
366,
40,
3502,
17918,
25640,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
989,
329,
262,
3234,
1312,
37437,
323,
10162,
16383,
30,
46506,
989,
16034,
3084,
62,
1157,
7029,
2079,
62,
21,
33411,
3234,
62,
3672,
796,
366,
40,
3502,
17918,
25640,
1
] |
When 00:02 is the total footage (mm:ss) what is the story number? | SELECT "Story no." FROM table_22666 WHERE "Total footage (mm:ss)" = '00:02' | [
2215,
3571,
25,
2999,
318,
262,
2472,
9640,
357,
3020,
25,
824,
8,
644,
318,
262,
1621,
1271,
30,
46506,
366,
11605,
645,
526,
16034,
3084,
62,
1828,
27310,
33411,
366,
14957,
9640,
357,
3020,
25,
824,
16725,
796,
705,
405,
25,
2999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
3571,
25,
2999,
318,
262,
2472,
9640,
357,
3020,
25,
824,
8,
644,
318,
262,
1621,
1271,
30,
46506,
366,
11605,
645,
526,
16034,
3084,
62,
1828,
27310,
33411,
366,
14957,
9640,
357,
3020,
25,
824,
16725,
796,
705,
405,
25,
2999... |
how many total times in new jersey represented in this chart ? | SELECT COUNT(*) FROM table_204_190 WHERE "state" = 'new jersey' | [
4919,
867,
2472,
1661,
287,
649,
22383,
7997,
287,
428,
8262,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
19782,
33411,
366,
5219,
1,
796,
705,
3605,
22383,
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
] | [
4919,
867,
2472,
1661,
287,
649,
22383,
7997,
287,
428,
8262,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
19782,
33411,
366,
5219,
1,
796,
705,
3605,
22383,
6
] |
What is the number of locations with the fastest times of 11.13? | SELECT COUNT(location) FROM table_1231316_7 WHERE fastest_time__s_ = "11.13" | [
2061,
318,
262,
1271,
286,
7064,
351,
262,
14162,
1661,
286,
1367,
13,
1485,
30,
46506,
327,
28270,
7,
24886,
8,
16034,
3084,
62,
10163,
1485,
1433,
62,
22,
33411,
14162,
62,
2435,
834,
82,
62,
796,
366,
1157,
13,
1485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
7064,
351,
262,
14162,
1661,
286,
1367,
13,
1485,
30,
46506,
327,
28270,
7,
24886,
8,
16034,
3084,
62,
10163,
1485,
1433,
62,
22,
33411,
14162,
62,
2435,
834,
82,
62,
796,
366,
1157,
13,
1485,
1
] |
What is the average episode # with a name of the origin of Donnie (part 1)? | SELECT AVG(episode__number) FROM table_name_75 WHERE episode_name = "the origin of donnie (part 1)" | [
2061,
318,
262,
2811,
4471,
1303,
351,
257,
1438,
286,
262,
8159,
286,
2094,
11952,
357,
3911,
352,
19427,
46506,
35224,
7,
38668,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
4471,
62,
3672,
796,
366,
1169,
8159,
286,
836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
1303,
351,
257,
1438,
286,
262,
8159,
286,
2094,
11952,
357,
3911,
352,
19427,
46506,
35224,
7,
38668,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
4471,
62,
3672,
796,
366,
1169,
8159,
286,
836,
... |
What is the Undecided the others was 4%? | SELECT undecided FROM table_name_70 WHERE others = "4%" | [
2061,
318,
262,
13794,
35503,
262,
1854,
373,
604,
4,
30,
46506,
39511,
16034,
3084,
62,
3672,
62,
2154,
33411,
1854,
796,
366,
19,
39658
] | [
1,
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,
13794,
35503,
262,
1854,
373,
604,
4,
30,
46506,
39511,
16034,
3084,
62,
3672,
62,
2154,
33411,
1854,
796,
366,
19,
39658
] |
If the Home team was st kilda, what was the score of the Away team they played? | SELECT "Away team score" FROM table_11894 WHERE "Home team" = 'st kilda' | [
1532,
262,
5995,
1074,
373,
336,
479,
27281,
11,
644,
373,
262,
4776,
286,
262,
21986,
1074,
484,
2826,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
1157,
4531,
19,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
373,
336,
479,
27281,
11,
644,
373,
262,
4776,
286,
262,
21986,
1074,
484,
2826,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
1157,
4531,
19,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,... |
Where did they play the San Diego Chargers? | SELECT "Game site" FROM table_18037 WHERE "Opponent" = 'San Diego Chargers' | [
8496,
750,
484,
711,
262,
2986,
9500,
23559,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
15259,
2718,
33411,
366,
27524,
3471,
1,
796,
705,
15017,
9500,
23559,
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
] | [
8496,
750,
484,
711,
262,
2986,
9500,
23559,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
15259,
2718,
33411,
366,
27524,
3471,
1,
796,
705,
15017,
9500,
23559,
6
] |
What is the total number of each ship type? Give me a bar chart, and list Type in desc order. | SELECT Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY Type DESC | [
2061,
318,
262,
2472,
1271,
286,
1123,
4074,
2099,
30,
13786,
502,
257,
2318,
8262,
11,
290,
1351,
5994,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
6030,
8,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
1123,
4074,
2099,
30,
13786,
502,
257,
2318,
8262,
11,
290,
1351,
5994,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
6030,
8,
16034,
4074,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
34
] |
when was the last time during the last hospital encounter that patient 4326 was prescribed for a medication? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4326 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY prescriptions.startdate DESC LIMIT 1 | [
12518,
373,
262,
938,
640,
1141,
262,
938,
4436,
8791,
326,
5827,
5946,
2075,
373,
14798,
329,
257,
14103,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
938,
640,
1141,
262,
938,
4436,
8791,
326,
5827,
5946,
2075,
373,
14798,
329,
257,
14103,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
6... |
For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? | SELECT MIN("Quantity") FROM table_38190 WHERE "Name" = 'raison blue' AND "Nicotine" > '0.30000000000000004' | [
1890,
7567,
1653,
4518,
351,
257,
21856,
4025,
621,
657,
13,
18,
8269,
24598,
19,
11,
644,
338,
262,
9016,
12040,
30,
46506,
20625,
7203,
31208,
4943,
16034,
3084,
62,
2548,
19782,
33411,
366,
5376,
1,
796,
705,
430,
1653,
4171,
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,
1,
1,
1
] | [
1890,
7567,
1653,
4518,
351,
257,
21856,
4025,
621,
657,
13,
18,
8269,
24598,
19,
11,
644,
338,
262,
9016,
12040,
30,
46506,
20625,
7203,
31208,
4943,
16034,
3084,
62,
2548,
19782,
33411,
366,
5376,
1,
796,
705,
430,
1653,
4171,
6,
... |
Name the number of position for democratic republic of the congo | SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = "Democratic Republic of the Congo" | [
5376,
262,
1271,
286,
2292,
329,
10518,
17146,
286,
262,
369,
2188,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
22995,
2996,
22914,
62,
1485,
33411,
29835,
31185,
796,
366,
33939,
2066,
286,
262,
25935,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
329,
10518,
17146,
286,
262,
369,
2188,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
22995,
2996,
22914,
62,
1485,
33411,
29835,
31185,
796,
366,
33939,
2066,
286,
262,
25935,
1
] |
posts of a user that are tagged as apex. | SELECT DISTINCT u.DisplayName, CONCAT('https://stackoverflow.com/users/', u.Id) AS "profile_link", u.Location, u.AboutMe, u.Reputation FROM Users AS u, Posts AS q, Posts AS a WHERE u.Id = a.OwnerUserId AND a.ParentId = q.Id AND a.PostTypeId = 2 AND q.Tags LIKE '%apex%' AND q.PostTypeId = 1 ORDER BY u.Reputation DESC | [
24875,
286,
257,
2836,
326,
389,
30509,
355,
40167,
13,
46506,
360,
8808,
1268,
4177,
334,
13,
23114,
5376,
11,
39962,
1404,
10786,
5450,
1378,
25558,
2502,
11125,
13,
785,
14,
18417,
14,
3256,
334,
13,
7390,
8,
7054,
366,
13317,
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... | [
24875,
286,
257,
2836,
326,
389,
30509,
355,
40167,
13,
46506,
360,
8808,
1268,
4177,
334,
13,
23114,
5376,
11,
39962,
1404,
10786,
5450,
1378,
25558,
2502,
11125,
13,
785,
14,
18417,
14,
3256,
334,
13,
7390,
8,
7054,
366,
13317,
62,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and manufacturer , and group by attribute founder, show from low to high by the Y-axis. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Manufacturer | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
11,
905,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
13,
46506,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
9119,
11,
905,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
13,
46506,
30... |
among total number of patients diagnosed with tietze's disease, calculate the number of those who were aged below 80. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "80" AND diagnoses.long_title = "Tietze's disease" | [
35131,
2472,
1271,
286,
3871,
14641,
351,
256,
1155,
2736,
338,
4369,
11,
15284,
262,
1271,
286,
883,
508,
547,
9722,
2174,
4019,
13,
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... | [
35131,
2472,
1271,
286,
3871,
14641,
351,
256,
1155,
2736,
338,
4369,
11,
15284,
262,
1271,
286,
883,
508,
547,
9722,
2174,
4019,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... |
is patient 035-17122's respiration last measured on the last icu visit less than the value first measured on the last icu visit? | SELECT (SELECT vitalperiodic.respiration FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-17122') AND NOT patient.unitdischargetime I... | [
271,
5827,
657,
2327,
12,
1558,
18376,
338,
1217,
15297,
938,
8630,
319,
262,
938,
14158,
84,
3187,
1342,
621,
262,
1988,
717,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
13,
411,
10514,
16034,
9204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
5827,
657,
2327,
12,
1558,
18376,
338,
1217,
15297,
938,
8630,
319,
262,
938,
14158,
84,
3187,
1342,
621,
262,
1988,
717,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
13,
411,
10514,
16034,
9204,... |
What is the Location when France was the runner-up at club de campo? | SELECT "Location" FROM table_41365 WHERE "Runners-up" = 'france' AND "Venue" = 'club de campo' | [
2061,
318,
262,
13397,
618,
4881,
373,
262,
17490,
12,
929,
379,
3430,
390,
1413,
78,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
44103,
2996,
33411,
366,
10987,
2741,
12,
929,
1,
796,
705,
69,
8132,
6,
5357,
366,
37522,
518,
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,
1,
1
] | [
2061,
318,
262,
13397,
618,
4881,
373,
262,
17490,
12,
929,
379,
3430,
390,
1413,
78,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
44103,
2996,
33411,
366,
10987,
2741,
12,
929,
1,
796,
705,
69,
8132,
6,
5357,
366,
37522,
518,
1,
79... |
when did the first sheriff 's term start ? | SELECT MIN("start of term") FROM table_203_321 | [
12518,
750,
262,
717,
16570,
705,
82,
3381,
923,
5633,
46506,
20625,
7203,
9688,
286,
3381,
4943,
16034,
3084,
62,
22416,
62,
36453
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
750,
262,
717,
16570,
705,
82,
3381,
923,
5633,
46506,
20625,
7203,
9688,
286,
3381,
4943,
16034,
3084,
62,
22416,
62,
36453
] |
Plot the total number by grouped by competition type as a bar graph | SELECT Competition_type, COUNT(*) FROM competition GROUP BY Competition_type | [
43328,
262,
2472,
1271,
416,
32824,
416,
5449,
2099,
355,
257,
2318,
4823,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
5449,
44441,
11050,
27348,
62,
4906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
2472,
1271,
416,
32824,
416,
5449,
2099,
355,
257,
2318,
4823,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
5449,
44441,
11050,
27348,
62,
4906
] |
what is the cheapest one way fare between BOSTON and OAKLAND | 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,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
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,
... |
what was the amount of pioglitazone that patient 16992 were prescribed in total? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16992) AND prescriptions.drug = 'pioglitazone' | [
10919,
373,
262,
2033,
286,
31028,
519,
18250,
1031,
505,
326,
5827,
1467,
41561,
547,
14798,
287,
2472,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2033,
286,
31028,
519,
18250,
1031,
505,
326,
5827,
1467,
41561,
547,
14798,
287,
2472,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
3... |
What country has the t7 place, and player Peter Oosterhuis? | SELECT country FROM table_name_48 WHERE place = "t7" AND player = "peter oosterhuis" | [
2061,
1499,
468,
262,
256,
22,
1295,
11,
290,
2137,
5613,
440,
6197,
13415,
271,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2780,
33411,
1295,
796,
366,
83,
22,
1,
5357,
2137,
796,
366,
79,
2357,
267,
6197,
13415,
271,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
468,
262,
256,
22,
1295,
11,
290,
2137,
5613,
440,
6197,
13415,
271,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2780,
33411,
1295,
796,
366,
83,
22,
1,
5357,
2137,
796,
366,
79,
2357,
267,
6197,
13415,
271,
1
] |
Who was played against with a result of 3 6, 2 6? | SELECT "Against" FROM table_69223 WHERE "Result" = '3–6, 2–6' | [
8241,
373,
2826,
1028,
351,
257,
1255,
286,
513,
718,
11,
362,
718,
30,
46506,
366,
39276,
1,
16034,
3084,
62,
3388,
22047,
33411,
366,
23004,
1,
796,
705,
18,
1906,
21,
11,
362,
1906,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
2826,
1028,
351,
257,
1255,
286,
513,
718,
11,
362,
718,
30,
46506,
366,
39276,
1,
16034,
3084,
62,
3388,
22047,
33411,
366,
23004,
1,
796,
705,
18,
1906,
21,
11,
362,
1906,
21,
6
] |
Which month has the most happy hours? | SELECT month FROM happy_hour GROUP BY month ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
1227,
468,
262,
749,
3772,
2250,
30,
46506,
1227,
16034,
3772,
62,
9769,
44441,
11050,
1227,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1227,
468,
262,
749,
3772,
2250,
30,
46506,
1227,
16034,
3772,
62,
9769,
44441,
11050,
1227,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
Plot openning year by how many openning year as a trend line, display by the x axis in ascending please. | SELECT Openning_year, COUNT(Openning_year) FROM cinema ORDER BY Openning_year | [
43328,
1280,
768,
614,
416,
703,
867,
1280,
768,
614,
355,
257,
5182,
1627,
11,
3359,
416,
262,
2124,
16488,
287,
41988,
3387,
13,
46506,
4946,
768,
62,
1941,
11,
327,
28270,
7,
11505,
768,
62,
1941,
8,
16034,
22041,
38678,
11050,
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
] | [
43328,
1280,
768,
614,
416,
703,
867,
1280,
768,
614,
355,
257,
5182,
1627,
11,
3359,
416,
262,
2124,
16488,
287,
41988,
3387,
13,
46506,
4946,
768,
62,
1941,
11,
327,
28270,
7,
11505,
768,
62,
1941,
8,
16034,
22041,
38678,
11050,
4... |
Average votes (Up and/or Down) for questions tagged with [Riddle]. | SELECT * FROM PostFeedback RIGHT JOIN Posts ON PostId = Posts.Id WHERE Tags = 'riddle' | [
26287,
5690,
357,
4933,
290,
14,
273,
5588,
8,
329,
2683,
30509,
351,
685,
49,
2509,
4083,
46506,
1635,
16034,
2947,
18332,
1891,
33621,
32357,
1268,
12043,
6177,
2947,
7390,
796,
12043,
13,
7390,
33411,
44789,
796,
705,
81,
2509,
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
] | [
26287,
5690,
357,
4933,
290,
14,
273,
5588,
8,
329,
2683,
30509,
351,
685,
49,
2509,
4083,
46506,
1635,
16034,
2947,
18332,
1891,
33621,
32357,
1268,
12043,
6177,
2947,
7390,
796,
12043,
13,
7390,
33411,
44789,
796,
705,
81,
2509,
6
] |
What are the average wins that have great britain as the team? | SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain" | [
2061,
389,
262,
2811,
7864,
326,
423,
1049,
275,
799,
391,
355,
262,
1074,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
1074,
796,
366,
18223,
275,
799,
391,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
7864,
326,
423,
1049,
275,
799,
391,
355,
262,
1074,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
1074,
796,
366,
18223,
275,
799,
391,
1
] |
If the player is Hashan Tillakaratne, what is the catches minimum? | SELECT MIN("Catches") FROM table_28279 WHERE "Player" = 'Hashan Tillakaratne' | [
1532,
262,
2137,
318,
21059,
272,
17888,
461,
34174,
710,
11,
644,
318,
262,
17591,
5288,
30,
46506,
20625,
7203,
34,
20981,
4943,
16034,
3084,
62,
2078,
26050,
33411,
366,
14140,
1,
796,
705,
26257,
272,
17888,
461,
34174,
710,
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
] | [
1532,
262,
2137,
318,
21059,
272,
17888,
461,
34174,
710,
11,
644,
318,
262,
17591,
5288,
30,
46506,
20625,
7203,
34,
20981,
4943,
16034,
3084,
62,
2078,
26050,
33411,
366,
14140,
1,
796,
705,
26257,
272,
17888,
461,
34174,
710,
6
] |
Name the 1st match for brisbane bears | SELECT "1st Match" FROM table_71865 WHERE "Team" = 'brisbane bears' | [
5376,
262,
352,
301,
2872,
329,
865,
271,
20235,
13062,
46506,
366,
16,
301,
13225,
1,
16034,
3084,
62,
45720,
2996,
33411,
366,
15592,
1,
796,
705,
15311,
20235,
13062,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
352,
301,
2872,
329,
865,
271,
20235,
13062,
46506,
366,
16,
301,
13225,
1,
16034,
3084,
62,
45720,
2996,
33411,
366,
15592,
1,
796,
705,
15311,
20235,
13062,
6
] |
what is marital status and date of birth of subject id 92796? | SELECT demographic.marital_status, demographic.dob FROM demographic WHERE demographic.subject_id = "92796" | [
10919,
318,
29555,
3722,
290,
3128,
286,
4082,
286,
2426,
4686,
860,
1983,
4846,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
24,
1983,
4846,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
290,
3128,
286,
4082,
286,
2426,
4686,
860,
1983,
4846,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
24,
1983,
4846,
1
] |
What is the home team score when the away team was fitzroy? | SELECT "Home team score" FROM table_10169 WHERE "Away team" = 'fitzroy' | [
2061,
318,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
373,
4197,
89,
3287,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
8784,
3388,
33411,
366,
32,
1014,
1074,
1,
796,
705,
69,
4224,
3287,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
373,
4197,
89,
3287,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
8784,
3388,
33411,
366,
32,
1014,
1074,
1,
796,
705,
69,
4224,
3287,
6
] |
Which Points Classification does the General Classification of Cyril Dessel have? | SELECT points_classification FROM table_name_9 WHERE general_classification = "cyril dessel" | [
13828,
11045,
40984,
857,
262,
3611,
40984,
286,
40399,
346,
2935,
741,
423,
30,
46506,
2173,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
24,
33411,
2276,
62,
4871,
2649,
796,
366,
948,
22379,
748,
741,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11045,
40984,
857,
262,
3611,
40984,
286,
40399,
346,
2935,
741,
423,
30,
46506,
2173,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
24,
33411,
2276,
62,
4871,
2649,
796,
366,
948,
22379,
748,
741,
1
] |
For those employees who was hired before 2002-06-21, give me the comparison about the average of manager_id over the job_id , and group by attribute job_id by a bar chart. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
13,
46506,
449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
286,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
13,
46506,
449... |
what is the score when the outcome is winner against yevgeny kafelnikov? | SELECT score FROM table_name_51 WHERE outcome = "winner" AND opponent = "yevgeny kafelnikov" | [
10919,
318,
262,
4776,
618,
262,
8055,
318,
8464,
1028,
331,
1990,
5235,
88,
479,
1878,
417,
45451,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
8055,
796,
366,
39791,
1,
5357,
6125,
796,
366,
88,
1990,
5235,
88,
479,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
4776,
618,
262,
8055,
318,
8464,
1028,
331,
1990,
5235,
88,
479,
1878,
417,
45451,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
8055,
796,
366,
39791,
1,
5357,
6125,
796,
366,
88,
1990,
5235,
88,
479,
18... |
Total users on the site. | SELECT COUNT(Id) FROM Users | [
14957,
2985,
319,
262,
2524,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
2985,
319,
262,
2524,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987
] |
Show the names of products and the number of events they are in, sorted by the number of events in descending order. | SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC | [
15307,
262,
3891,
286,
3186,
290,
262,
1271,
286,
2995,
484,
389,
287,
11,
23243,
416,
262,
1271,
286,
2995,
287,
31491,
1502,
13,
46506,
309,
16,
13,
15667,
62,
5376,
11,
327,
28270,
7,
28104,
16034,
18675,
7054,
309,
16,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
3186,
290,
262,
1271,
286,
2995,
484,
389,
287,
11,
23243,
416,
262,
1271,
286,
2995,
287,
31491,
1502,
13,
46506,
309,
16,
13,
15667,
62,
5376,
11,
327,
28270,
7,
28104,
16034,
18675,
7054,
309,
16,
32357,
12... |
what are the three most commonly given lab tests for patients who have previously received pancreat sphincteroplas during the same month during this year? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
10919,
389,
262,
1115,
749,
8811,
1813,
2248,
5254,
329,
3871,
508,
423,
4271,
2722,
47767,
599,
71,
4612,
263,
20106,
292,
1141,
262,
976,
1227,
1141,
428,
614,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
2381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
1115,
749,
8811,
1813,
2248,
5254,
329,
3871,
508,
423,
4271,
2722,
47767,
599,
71,
4612,
263,
20106,
292,
1141,
262,
976,
1227,
1141,
428,
614,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
2381... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.