instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which channels broadcast both in the morning and at night? Give me the channel names. | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night' | [
13828,
9619,
7025,
1111,
287,
262,
3329,
290,
379,
1755,
30,
13786,
502,
262,
6518,
3891,
13,
46506,
256,
16,
13,
3672,
16034,
6518,
7054,
256,
16,
32357,
1268,
7025,
7054,
256,
17,
6177,
256,
16,
13,
17620,
62,
312,
796,
256,
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,
1... | [
13828,
9619,
7025,
1111,
287,
262,
3329,
290,
379,
1755,
30,
13786,
502,
262,
6518,
3891,
13,
46506,
256,
16,
13,
3672,
16034,
6518,
7054,
256,
16,
32357,
1268,
7025,
7054,
256,
17,
6177,
256,
16,
13,
17620,
62,
312,
796,
256,
17,
... |
how many patients born before the year 2060 were given the cephalexin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2060" AND prescriptions.drug = "Cephalexin" | [
4919,
867,
3871,
4642,
878,
262,
614,
1160,
1899,
547,
1813,
262,
269,
27446,
1000,
87,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
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... | [
4919,
867,
3871,
4642,
878,
262,
614,
1160,
1899,
547,
1813,
262,
269,
27446,
1000,
87,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,... |
Which competition had a 4-1 result, and a score of 4-1? | SELECT "Competition" FROM table_80356 WHERE "Result" = '4-1' AND "Score" = '4-1' | [
13828,
5449,
550,
257,
604,
12,
16,
1255,
11,
290,
257,
4776,
286,
604,
12,
16,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
1795,
32066,
33411,
366,
23004,
1,
796,
705,
19,
12,
16,
6,
5357,
366,
26595,
1,
796,
705,
19,
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
] | [
13828,
5449,
550,
257,
604,
12,
16,
1255,
11,
290,
257,
4776,
286,
604,
12,
16,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
1795,
32066,
33411,
366,
23004,
1,
796,
705,
19,
12,
16,
6,
5357,
366,
26595,
1,
796,
705,
19,
12,
... |
which artist has released at least 5 albums ? | SELECT "artist" FROM table_204_680 GROUP BY "artist" HAVING COUNT(*) >= 5 | [
4758,
6802,
468,
2716,
379,
1551,
642,
16788,
5633,
46506,
366,
49016,
1,
16034,
3084,
62,
18638,
62,
37397,
44441,
11050,
366,
49016,
1,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
6802,
468,
2716,
379,
1551,
642,
16788,
5633,
46506,
366,
49016,
1,
16034,
3084,
62,
18638,
62,
37397,
44441,
11050,
366,
49016,
1,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
642
] |
Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs? | SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin" | [
8241,
373,
287,
2368,
1295,
618,
262,
25358,
373,
360,
7199,
911,
485,
11,
46892,
80,
278,
5882,
87,
259,
373,
604,
400,
290,
1478,
9784,
30,
46506,
2368,
62,
5372,
16034,
3084,
62,
3672,
62,
2780,
33411,
1271,
62,
1659,
62,
18664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
2368,
1295,
618,
262,
25358,
373,
360,
7199,
911,
485,
11,
46892,
80,
278,
5882,
87,
259,
373,
604,
400,
290,
1478,
9784,
30,
46506,
2368,
62,
5372,
16034,
3084,
62,
3672,
62,
2780,
33411,
1271,
62,
1659,
62,
18664,
... |
Name the 1821 with 1811 of 1921 | SELECT "1821" FROM table_38875 WHERE "1811" = '1921' | [
5376,
262,
1248,
2481,
351,
1248,
1157,
286,
35369,
46506,
366,
1507,
2481,
1,
16034,
3084,
62,
30460,
2425,
33411,
366,
1507,
1157,
1,
796,
705,
1129,
2481,
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
] | [
5376,
262,
1248,
2481,
351,
1248,
1157,
286,
35369,
46506,
366,
1507,
2481,
1,
16034,
3084,
62,
30460,
2425,
33411,
366,
1507,
1157,
1,
796,
705,
1129,
2481,
6
] |
Where did the Oakland Raiders play in week 12 of their 1976 season? | SELECT "Game site" FROM table_70403 WHERE "Week" = '12' | [
8496,
750,
262,
12369,
16120,
711,
287,
1285,
1105,
286,
511,
15408,
1622,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
2154,
31552,
33411,
366,
20916,
1,
796,
705,
1065,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
750,
262,
12369,
16120,
711,
287,
1285,
1105,
286,
511,
15408,
1622,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
2154,
31552,
33411,
366,
20916,
1,
796,
705,
1065,
6
] |
WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1? | SELECT "Tournament" FROM table_50695 WHERE "2010" = 'a' AND "2009" = 'a' AND "2011" = 'q1' | [
32971,
3180,
3336,
49698,
45,
2390,
3525,
13315,
317,
3050,
3963,
317,
11,
3717,
3963,
317,
11,
5357,
3571,
16,
19878,
13775,
10725,
5222,
3963,
1195,
16,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
1120,
37381,
33411,
366,
10333,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
49698,
45,
2390,
3525,
13315,
317,
3050,
3963,
317,
11,
3717,
3963,
317,
11,
5357,
3571,
16,
19878,
13775,
10725,
5222,
3963,
1195,
16,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
1120,
37381,
33411,
366,
10333,
1... |
What is the Purpose of the Callsign with a Freq currently of 4gld? | SELECT "Purpose" FROM table_50345 WHERE "Freq currently" = '4gld' | [
2061,
318,
262,
32039,
286,
262,
4889,
12683,
351,
257,
4848,
80,
3058,
286,
604,
70,
335,
30,
46506,
366,
30026,
3455,
1,
16034,
3084,
62,
1120,
27712,
33411,
366,
20366,
80,
3058,
1,
796,
705,
19,
70,
335,
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,
32039,
286,
262,
4889,
12683,
351,
257,
4848,
80,
3058,
286,
604,
70,
335,
30,
46506,
366,
30026,
3455,
1,
16034,
3084,
62,
1120,
27712,
33411,
366,
20366,
80,
3058,
1,
796,
705,
19,
70,
335,
6
] |
Name the class A with class AAAA of longview pine tree and school year of 1995-96 | SELECT "Class A" FROM table_37441 WHERE "Class AAAA" = 'longview pine tree' AND "School Year" = '1995-96' | [
5376,
262,
1398,
317,
351,
1398,
25734,
32,
286,
890,
1177,
20161,
5509,
290,
1524,
614,
286,
8735,
12,
4846,
46506,
366,
9487,
317,
1,
16034,
3084,
62,
2718,
39710,
33411,
366,
9487,
25734,
32,
1,
796,
705,
6511,
1177,
20161,
5509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1398,
317,
351,
1398,
25734,
32,
286,
890,
1177,
20161,
5509,
290,
1524,
614,
286,
8735,
12,
4846,
46506,
366,
9487,
317,
1,
16034,
3084,
62,
2718,
39710,
33411,
366,
9487,
25734,
32,
1,
796,
705,
6511,
1177,
20161,
5509,
... |
what is the number of newborn admitted patients who are diagnosed with loss of weight? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "NEWBORN" AND diagnoses.long_title = "Loss of weight" | [
10919,
318,
262,
1271,
286,
23856,
6848,
3871,
508,
389,
14641,
351,
2994,
286,
3463,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23856,
6848,
3871,
508,
389,
14641,
351,
2994,
286,
3463,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... |
did patient 022-67644 underwent any procedure since 3 years ago? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-67644')) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(... | [
20839,
5827,
657,
1828,
12,
3134,
29173,
25289,
597,
8771,
1201,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
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,
1... | [
20839,
5827,
657,
1828,
12,
3134,
29173,
25289,
597,
8771,
1201,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
1... |
What was the attendance when St Kilda played as the home team? | SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "st kilda" | [
2061,
373,
262,
14858,
618,
520,
509,
27281,
2826,
355,
262,
1363,
1074,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2791,
33411,
1363,
62,
15097,
796,
366,
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
] | [
2061,
373,
262,
14858,
618,
520,
509,
27281,
2826,
355,
262,
1363,
1074,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2791,
33411,
1363,
62,
15097,
796,
366,
301,
479,
27281,
1
] |
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012? | SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf" | [
2061,
318,
262,
17851,
1634,
287,
3050,
618,
340,
373,
317,
287,
3648,
290,
939,
1157,
981,
852,
1195,
37,
287,
2321,
30,
46506,
3050,
16034,
3084,
62,
3672,
62,
940,
33411,
3648,
796,
366,
64,
1,
5357,
2813,
796,
366,
64,
1,
5357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
17851,
1634,
287,
3050,
618,
340,
373,
317,
287,
3648,
290,
939,
1157,
981,
852,
1195,
37,
287,
2321,
30,
46506,
3050,
16034,
3084,
62,
3672,
62,
940,
33411,
3648,
796,
366,
64,
1,
5357,
2813,
796,
366,
64,
1,
5357... |
Show all advisors and corresponding number of students. | SELECT advisor, COUNT(*) FROM student GROUP BY advisor | [
15307,
477,
32456,
290,
11188,
1271,
286,
2444,
13,
46506,
20685,
11,
327,
28270,
7,
28104,
16034,
3710,
44441,
11050,
20685
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
32456,
290,
11188,
1271,
286,
2444,
13,
46506,
20685,
11,
327,
28270,
7,
28104,
16034,
3710,
44441,
11050,
20685
] |
whose time is more than . 24.00 ? | SELECT "name" FROM table_204_401 WHERE "time" > 24.00 | [
38159,
640,
318,
517,
621,
764,
1987,
13,
405,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
21844,
33411,
366,
2435,
1,
1875,
1987,
13,
405
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
38159,
640,
318,
517,
621,
764,
1987,
13,
405,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
21844,
33411,
366,
2435,
1,
1875,
1987,
13,
405
] |
What result took pace in 2009 and had an award of sopot international song festival? | SELECT "Result" FROM table_13624 WHERE "Year" = '2009' AND "Award" = 'sopot international song festival' | [
2061,
1255,
1718,
8761,
287,
3717,
290,
550,
281,
5764,
286,
264,
43372,
3230,
3496,
10876,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
20809,
1731,
33411,
366,
17688,
1,
796,
705,
10531,
6,
5357,
366,
32,
904,
1,
796,
705,
82,
43372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
1718,
8761,
287,
3717,
290,
550,
281,
5764,
286,
264,
43372,
3230,
3496,
10876,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
20809,
1731,
33411,
366,
17688,
1,
796,
705,
10531,
6,
5357,
366,
32,
904,
1,
796,
705,
82,
43372... |
What is the lowest grid with matra as constructor? | SELECT MIN("Grid") FROM table_78428 WHERE "Constructor" = 'matra' | [
2061,
318,
262,
9016,
10706,
351,
2603,
430,
355,
23772,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
37688,
2078,
33411,
366,
42316,
273,
1,
796,
705,
6759,
430,
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,
9016,
10706,
351,
2603,
430,
355,
23772,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
37688,
2078,
33411,
366,
42316,
273,
1,
796,
705,
6759,
430,
6
] |
Find Time and meter_100 , and visualize them by a bar chart. | SELECT Time, meter_100 FROM swimmer | [
16742,
3862,
290,
16430,
62,
3064,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
3862,
11,
16430,
62,
3064,
16034,
9422,
647
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
3862,
290,
16430,
62,
3064,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
3862,
11,
16430,
62,
3064,
16034,
9422,
647
] |
Evolution of the mean question score and number of questions of each week of 2015. | SELECT TIME_TO_STR(p.CreationDate, '%W') AS weekOfCreation, SUM(p.Score) AS meanQuestionScore FROM Posts AS p WHERE p.PostTypeId = 1 AND TIME_TO_STR(p.CreationDate, '%Y') = 2015 GROUP BY TIME_TO_STR(p.CreationDate, '%W') ORDER BY TIME_TO_STR(p.CreationDate, '%W') | [
15200,
2122,
286,
262,
1612,
1808,
4776,
290,
1271,
286,
2683,
286,
1123,
1285,
286,
1853,
13,
46506,
20460,
62,
10468,
62,
18601,
7,
79,
13,
12443,
341,
10430,
11,
705,
4,
54,
11537,
7054,
1285,
5189,
12443,
341,
11,
35683,
7,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15200,
2122,
286,
262,
1612,
1808,
4776,
290,
1271,
286,
2683,
286,
1123,
1285,
286,
1853,
13,
46506,
20460,
62,
10468,
62,
18601,
7,
79,
13,
12443,
341,
10430,
11,
705,
4,
54,
11537,
7054,
1285,
5189,
12443,
341,
11,
35683,
7,
79,
... |
What are the descriptions of all the project outcomes, and count them by a pie chart | SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description | [
2061,
389,
262,
16969,
286,
477,
262,
1628,
10906,
11,
290,
954,
606,
416,
257,
2508,
8262,
46506,
8055,
62,
11213,
11,
327,
28270,
7,
448,
2958,
62,
11213,
8,
16034,
4992,
62,
7975,
8988,
7054,
309,
16,
32357,
1268,
4935,
62,
7975,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16969,
286,
477,
262,
1628,
10906,
11,
290,
954,
606,
416,
257,
2508,
8262,
46506,
8055,
62,
11213,
11,
327,
28270,
7,
448,
2958,
62,
11213,
8,
16034,
4992,
62,
7975,
8988,
7054,
309,
16,
32357,
1268,
4935,
62,
7975,... |
WHAT IS THE RELIGION WITH A SCHEDULED TRIBE OF 0.90%? | SELECT religion FROM table_name_43 WHERE scheduled_tribe = "0.90%" | [
32971,
3180,
3336,
29749,
3528,
2849,
13315,
317,
22374,
1961,
6239,
1961,
37679,
12473,
3963,
657,
13,
3829,
4,
30,
46506,
5737,
16034,
3084,
62,
3672,
62,
3559,
33411,
7530,
62,
83,
4892,
796,
366,
15,
13,
3829,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
29749,
3528,
2849,
13315,
317,
22374,
1961,
6239,
1961,
37679,
12473,
3963,
657,
13,
3829,
4,
30,
46506,
5737,
16034,
3084,
62,
3672,
62,
3559,
33411,
7530,
62,
83,
4892,
796,
366,
15,
13,
3829,
39658
] |
Which stage was being played in Romania? | SELECT stage FROM table_name_34 WHERE venue = "romania" | [
13828,
3800,
373,
852,
2826,
287,
23356,
30,
46506,
3800,
16034,
3084,
62,
3672,
62,
2682,
33411,
14359,
796,
366,
398,
5411,
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,
3800,
373,
852,
2826,
287,
23356,
30,
46506,
3800,
16034,
3084,
62,
3672,
62,
2682,
33411,
14359,
796,
366,
398,
5411,
1
] |
How many newborn patients were admitted before the year 2154? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admityear < "2154" | [
2437,
867,
23856,
3871,
547,
6848,
878,
262,
614,
362,
21526,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1,
5357,
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
] | [
2437,
867,
23856,
3871,
547,
6848,
878,
262,
614,
362,
21526,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1,
5357,
16... |
What were the most in attendance in Richmond? | SELECT MAX("Crowd") FROM table_10109 WHERE "Away team" = 'richmond' | [
2061,
547,
262,
749,
287,
14858,
287,
16940,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
8784,
2931,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
749,
287,
14858,
287,
16940,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
8784,
2931,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
6
] |
Tell me the away team score for 27 april 1974 and veue of mcg | SELECT away_team AS score FROM table_name_51 WHERE date = "27 april 1974" AND venue = "mcg" | [
24446,
502,
262,
1497,
1074,
4776,
329,
2681,
46593,
346,
16489,
290,
1569,
518,
286,
36650,
70,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
3128,
796,
366,
1983,
46593,
346,
16489,
1,
5357,
14359,
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
] | [
24446,
502,
262,
1497,
1074,
4776,
329,
2681,
46593,
346,
16489,
290,
1569,
518,
286,
36650,
70,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
3128,
796,
366,
1983,
46593,
346,
16489,
1,
5357,
14359,
796,
... |
what is the city with the lowest density ? | SELECT "city" FROM table_203_413 ORDER BY "density\n(inhabitants/km2)" LIMIT 1 | [
10919,
318,
262,
1748,
351,
262,
9016,
12109,
5633,
46506,
366,
19205,
1,
16034,
3084,
62,
22416,
62,
44103,
38678,
11050,
366,
43337,
59,
77,
7,
259,
5976,
270,
1187,
14,
13276,
17,
16725,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1748,
351,
262,
9016,
12109,
5633,
46506,
366,
19205,
1,
16034,
3084,
62,
22416,
62,
44103,
38678,
11050,
366,
43337,
59,
77,
7,
259,
5976,
270,
1187,
14,
13276,
17,
16725,
27564,
2043,
352
] |
what is the money for argentina? | SELECT COUNT("Money ( $ )") FROM table_71072 WHERE "Country" = 'argentina' | [
10919,
318,
262,
1637,
329,
1822,
298,
1437,
30,
46506,
327,
28270,
7203,
26788,
357,
720,
1267,
4943,
16034,
3084,
62,
43147,
4761,
33411,
366,
33921,
1,
796,
705,
853,
298,
1437,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1637,
329,
1822,
298,
1437,
30,
46506,
327,
28270,
7203,
26788,
357,
720,
1267,
4943,
16034,
3084,
62,
43147,
4761,
33411,
366,
33921,
1,
796,
705,
853,
298,
1437,
6
] |
What is Frequency, when Model Number is Pentium II 400? | SELECT "Frequency" FROM table_49713 WHERE "Model number" = 'pentium ii 400' | [
2061,
318,
31902,
11,
618,
9104,
7913,
318,
9696,
1505,
2873,
7337,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
38073,
1485,
33411,
366,
17633,
1271,
1,
796,
705,
16923,
1505,
21065,
7337,
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,
31902,
11,
618,
9104,
7913,
318,
9696,
1505,
2873,
7337,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
38073,
1485,
33411,
366,
17633,
1271,
1,
796,
705,
16923,
1505,
21065,
7337,
6
] |
What is the name of the mill located on Anawan Street with a reference number larger than 8? | SELECT name FROM table_name_76 WHERE ref_number > 8 AND location = "anawan street" | [
2061,
318,
262,
1438,
286,
262,
3939,
5140,
319,
1052,
43004,
3530,
351,
257,
4941,
1271,
4025,
621,
807,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4304,
33411,
1006,
62,
17618,
1875,
807,
5357,
4067,
796,
366,
272,
43004,
4675,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
5140,
319,
1052,
43004,
3530,
351,
257,
4941,
1271,
4025,
621,
807,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4304,
33411,
1006,
62,
17618,
1875,
807,
5357,
4067,
796,
366,
272,
43004,
4675,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and manager_id in a bar chart, and sort total number in asc order. | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
4706,
62,
312,
287,
257,
2318,
8262,
11,
290,
3297,
2472,
1271,
287,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
4706,
62,
312,
287,
257,
2318,
8262,
11,
290,
3297,
2472,
1271,
287,
10... |
What is the 2005 value for the 2010 grand slam tournaments? | SELECT 2005 FROM table_name_37 WHERE 2010 = "grand slam tournaments" | [
2061,
318,
262,
5075,
1988,
329,
262,
3050,
4490,
21158,
18130,
30,
46506,
5075,
16034,
3084,
62,
3672,
62,
2718,
33411,
3050,
796,
366,
23936,
21158,
18130,
1
] | [
1,
1,
1,
1,
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,
5075,
1988,
329,
262,
3050,
4490,
21158,
18130,
30,
46506,
5075,
16034,
3084,
62,
3672,
62,
2718,
33411,
3050,
796,
366,
23936,
21158,
18130,
1
] |
What is the average attendance that has 83-52 as the record? | SELECT AVG(attendance) FROM table_name_86 WHERE record = "83-52" | [
2061,
318,
262,
2811,
14858,
326,
468,
9698,
12,
4309,
355,
262,
1700,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
1700,
796,
366,
5999,
12,
4309,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
326,
468,
9698,
12,
4309,
355,
262,
1700,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
1700,
796,
366,
5999,
12,
4309,
1
] |
In what round did opponent Joe Lauzon play? | SELECT round FROM table_name_39 WHERE opponent = "joe lauzon" | [
818,
644,
2835,
750,
6125,
5689,
40014,
26361,
711,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2670,
33411,
6125,
796,
366,
73,
2577,
300,
559,
26361,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
2835,
750,
6125,
5689,
40014,
26361,
711,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2670,
33411,
6125,
796,
366,
73,
2577,
300,
559,
26361,
1
] |
provide the number of patients whose admission type is elective and year of birth is less than 2076? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dob_year < "2076" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
614,
286,
4082,
318,
1342,
621,
1160,
4304,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
614,
286,
4082,
318,
1342,
621,
1160,
4304,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
... |
What were the results of the mens open when the womens 40 was Sydney Scorpions defeated Hunter Hornets? | SELECT mens_open FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions defeated Hunter Hornets" | [
2061,
547,
262,
2482,
286,
262,
285,
641,
1280,
618,
262,
1116,
641,
2319,
373,
11852,
28097,
507,
9772,
9055,
38602,
30,
46506,
285,
641,
62,
9654,
16034,
3084,
62,
21940,
23045,
2598,
62,
16,
33411,
1116,
641,
62,
1821,
796,
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
] | [
2061,
547,
262,
2482,
286,
262,
285,
641,
1280,
618,
262,
1116,
641,
2319,
373,
11852,
28097,
507,
9772,
9055,
38602,
30,
46506,
285,
641,
62,
9654,
16034,
3084,
62,
21940,
23045,
2598,
62,
16,
33411,
1116,
641,
62,
1821,
796,
366,
... |
What's the team's status in the Open Cup in 2006? | SELECT "Open Cup" FROM table_2187 WHERE "Year" = '2006' | [
2061,
338,
262,
1074,
338,
3722,
287,
262,
4946,
5454,
287,
4793,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
17,
23451,
33411,
366,
17688,
1,
796,
705,
13330,
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,
338,
262,
1074,
338,
3722,
287,
262,
4946,
5454,
287,
4793,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
17,
23451,
33411,
366,
17688,
1,
796,
705,
13330,
6
] |
what is diagnoses short title of diagnoses icd9 code 4271? | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "4271" | [
10919,
318,
40567,
1790,
3670,
286,
40567,
14158,
67,
24,
2438,
604,
28977,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
19,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
40567,
1790,
3670,
286,
40567,
14158,
67,
24,
2438,
604,
28977,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
19,
28977,
1
] |
How many laps for grid of 9? | SELECT laps FROM table_name_49 WHERE grid = 9 | [
2437,
867,
24590,
329,
10706,
286,
860,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
2920,
33411,
10706,
796,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
24590,
329,
10706,
286,
860,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
2920,
33411,
10706,
796,
860
] |
For those employees who did not have any job in the past, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart, list by the total number from low to high please. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
1351,
416,
262,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
1351,
416,
262,
2... |
How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999? | SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 0 | [
2437,
867,
389,
612,
287,
5816,
326,
423,
657,
287,
5878,
11,
517,
621,
657,
287,
3717,
290,
7380,
621,
657,
287,
7358,
30,
46506,
35683,
7,
16088,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
5878,
796,
657,
5357,
3717,
1875,
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,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
389,
612,
287,
5816,
326,
423,
657,
287,
5878,
11,
517,
621,
657,
287,
3717,
290,
7380,
621,
657,
287,
7358,
30,
46506,
35683,
7,
16088,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
5878,
796,
657,
5357,
3717,
1875,
657,
... |
how long did nicole fessel take ? | SELECT "time" FROM table_204_14 WHERE "athlete" = 'nicole fessel' | [
4919,
890,
750,
9200,
2305,
277,
7878,
1011,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
1415,
33411,
366,
776,
5807,
1,
796,
705,
6988,
2305,
277,
7878,
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
] | [
4919,
890,
750,
9200,
2305,
277,
7878,
1011,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
1415,
33411,
366,
776,
5807,
1,
796,
705,
6988,
2305,
277,
7878,
6
] |
Percent of questions with a given tag per day. | WITH QuesTagInfo(quesId, quesCreationDate, quesHasTag) AS (SELECT Id AS quesId, DATE(CreationDate) AS quesCreationDate, CASE WHEN (Tags LIKE ('%<##TagName##>%')) THEN 1 ELSE 0 END AS quesHasTag FROM Posts WHERE PostTypeId = 1) SELECT quesCreationDate, COUNT(*) AS "total_questions", SUM(quesHasTag) AS "has_tag" FROM Que... | [
31905,
286,
2683,
351,
257,
1813,
7621,
583,
1110,
13,
54,
10554,
1195,
947,
24835,
12360,
7,
13281,
7390,
11,
627,
274,
12443,
341,
10430,
11,
627,
274,
19242,
24835,
8,
7054,
357,
46506,
5121,
7054,
627,
274,
7390,
11,
360,
6158,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31905,
286,
2683,
351,
257,
1813,
7621,
583,
1110,
13,
54,
10554,
1195,
947,
24835,
12360,
7,
13281,
7390,
11,
627,
274,
12443,
341,
10430,
11,
627,
274,
19242,
24835,
8,
7054,
357,
46506,
5121,
7054,
627,
274,
7390,
11,
360,
6158,
... |
how many patients have actually had a urea nitrogen, body fluid test until 3 years ago? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen, body fluid') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-3 ye... | [
4919,
867,
3871,
423,
1682,
550,
257,
334,
21468,
23417,
11,
1767,
11711,
1332,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
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... | [
4919,
867,
3871,
423,
1682,
550,
257,
334,
21468,
23417,
11,
1767,
11711,
1332,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
... |
For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? | SELECT "Behind" FROM table_55453 WHERE "Class" = 'gt2' AND "Day 2" = '3:59.820' | [
1890,
262,
1074,
351,
257,
1398,
286,
308,
83,
17,
290,
513,
25,
3270,
13,
41739,
319,
1110,
362,
11,
644,
373,
262,
2157,
30,
46506,
366,
34163,
1,
16034,
3084,
62,
2816,
36625,
33411,
366,
9487,
1,
796,
705,
13655,
17,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
262,
1074,
351,
257,
1398,
286,
308,
83,
17,
290,
513,
25,
3270,
13,
41739,
319,
1110,
362,
11,
644,
373,
262,
2157,
30,
46506,
366,
34163,
1,
16034,
3084,
62,
2816,
36625,
33411,
366,
9487,
1,
796,
705,
13655,
17,
6,
5357,
... |
Which nations have more than 1 gold medal and 4 silver medals? | SELECT "Nation" FROM table_43425 WHERE "Gold" > '1' AND "Silver" = '4' | [
13828,
7027,
423,
517,
621,
352,
3869,
18279,
290,
604,
8465,
28057,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
47101,
1495,
33411,
366,
13306,
1,
1875,
705,
16,
6,
5357,
366,
26766,
1,
796,
705,
19,
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
] | [
13828,
7027,
423,
517,
621,
352,
3869,
18279,
290,
604,
8465,
28057,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
47101,
1495,
33411,
366,
13306,
1,
1875,
705,
16,
6,
5357,
366,
26766,
1,
796,
705,
19,
6
] |
What was the score of the home Dallas game that had a decision of Legace? | SELECT "Score" FROM table_70739 WHERE "Decision" = 'legace' AND "Home" = 'dallas' | [
2061,
373,
262,
4776,
286,
262,
1363,
8533,
983,
326,
550,
257,
2551,
286,
3564,
558,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
24038,
2670,
33411,
366,
10707,
1166,
1,
796,
705,
1455,
558,
6,
5357,
366,
16060,
1,
796,
705,
67,
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
] | [
2061,
373,
262,
4776,
286,
262,
1363,
8533,
983,
326,
550,
257,
2551,
286,
3564,
558,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
24038,
2670,
33411,
366,
10707,
1166,
1,
796,
705,
1455,
558,
6,
5357,
366,
16060,
1,
796,
705,
67,
7... |
Show different publishers together with the number of publications they have Plot them as bar chart, and could you list by the total number from high to low? | SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY COUNT(*) DESC | [
15307,
1180,
17604,
1978,
351,
262,
1271,
286,
16125,
484,
423,
28114,
606,
355,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
30,
46506,
28045,
11,
327,
28270,
7,
28104,
16034,
9207,
44441,
11050,
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
] | [
15307,
1180,
17604,
1978,
351,
262,
1271,
286,
16125,
484,
423,
28114,
606,
355,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
30,
46506,
28045,
11,
327,
28270,
7,
28104,
16034,
9207,
44441,
11050,
2... |
How many draws when the Port Fairy FL is Hawkesdale and there are more than 9 wins? | SELECT MAX(draws) FROM table_name_81 WHERE port_fairy_fl = "hawkesdale" AND wins > 9 | [
2437,
867,
14293,
618,
262,
4347,
17746,
9977,
318,
6091,
5209,
14597,
290,
612,
389,
517,
621,
860,
7864,
30,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
2493,
62,
69,
13021,
62,
2704,
796,
366,
26615,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14293,
618,
262,
4347,
17746,
9977,
318,
6091,
5209,
14597,
290,
612,
389,
517,
621,
860,
7864,
30,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
2493,
62,
69,
13021,
62,
2704,
796,
366,
26615,
52... |
What is the toll for light vehicles at the plaza between bela bela and modimolle? | SELECT light_vehicle FROM table_1211545_2 WHERE location = "between Bela Bela and Modimolle" | [
2061,
318,
262,
13592,
329,
1657,
5672,
379,
262,
42433,
1022,
894,
64,
894,
64,
290,
953,
320,
349,
293,
30,
46506,
1657,
62,
33892,
1548,
16034,
3084,
62,
1065,
15363,
2231,
62,
17,
33411,
4067,
796,
366,
23395,
3944,
64,
3944,
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,
1,
1,
1,
1
] | [
2061,
318,
262,
13592,
329,
1657,
5672,
379,
262,
42433,
1022,
894,
64,
894,
64,
290,
953,
320,
349,
293,
30,
46506,
1657,
62,
33892,
1548,
16034,
3084,
62,
1065,
15363,
2231,
62,
17,
33411,
4067,
796,
366,
23395,
3944,
64,
3944,
64... |
What are the different classes of races, and how many races correspond to each Show bar chart, could you rank by the X in desc? | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY Class DESC | [
2061,
389,
262,
1180,
6097,
286,
9558,
11,
290,
703,
867,
9558,
6053,
284,
1123,
5438,
2318,
8262,
11,
714,
345,
4279,
416,
262,
1395,
287,
1715,
30,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
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,
1
] | [
2061,
389,
262,
1180,
6097,
286,
9558,
11,
290,
703,
867,
9558,
6053,
284,
1123,
5438,
2318,
8262,
11,
714,
345,
4279,
416,
262,
1395,
287,
1715,
30,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
38678,
11050... |
how many patients whose procedure icd9 code is 3950? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "3950" | [
4919,
867,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
5014,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
5014,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
provide the number of patients whose diagnoses short title is acq coagul factor defic and drug route is neb? | 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 = "Acq coagul factor defic" AND prescriptions.route = "NEB" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
936,
80,
763,
363,
377,
5766,
12630,
290,
2563,
6339,
318,
45508,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
936,
80,
763,
363,
377,
5766,
12630,
290,
2563,
6339,
318,
45508,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... |
Which ship was raided on 26 September 1940? | SELECT "Name of ship" FROM table_8362 WHERE "Date" = '26 september 1940' | [
13828,
4074,
373,
31158,
319,
2608,
2693,
16236,
30,
46506,
366,
5376,
286,
4074,
1,
16034,
3084,
62,
23,
35667,
33411,
366,
10430,
1,
796,
705,
2075,
384,
457,
1491,
16236,
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
] | [
13828,
4074,
373,
31158,
319,
2608,
2693,
16236,
30,
46506,
366,
5376,
286,
4074,
1,
16034,
3084,
62,
23,
35667,
33411,
366,
10430,
1,
796,
705,
2075,
384,
457,
1491,
16236,
6
] |
Specify the duration of hospital stay of patient Troy Friedman along with his death status | SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.name = "Troy Friedman" | [
22882,
1958,
262,
9478,
286,
4436,
2652,
286,
5827,
21439,
25865,
1863,
351,
465,
1918,
3722,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
51,
3287,
25865,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9478,
286,
4436,
2652,
286,
5827,
21439,
25865,
1863,
351,
465,
1918,
3722,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
51,
3287,
25865,
1
] |
Histogram of this user's post scores. | SELECT p.Score AS "post score", COUNT(*) AS "# posts" FROM Posts AS p WHERE p.OwnerUserId = '##UserId:int##' GROUP BY p.Score ORDER BY p.Score DESC | [
13749,
21857,
286,
428,
2836,
338,
1281,
8198,
13,
46506,
279,
13,
26595,
7054,
366,
7353,
4776,
1600,
327,
28270,
7,
28104,
7054,
25113,
6851,
1,
16034,
12043,
7054,
279,
33411,
279,
13,
42419,
12982,
7390,
796,
705,
2235,
12982,
7390,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13749,
21857,
286,
428,
2836,
338,
1281,
8198,
13,
46506,
279,
13,
26595,
7054,
366,
7353,
4776,
1600,
327,
28270,
7,
28104,
7054,
25113,
6851,
1,
16034,
12043,
7054,
279,
33411,
279,
13,
42419,
12982,
7390,
796,
705,
2235,
12982,
7390,... |
What was the first game played on February 28? | SELECT MIN(game) FROM table_name_95 WHERE date = "february 28" | [
2061,
373,
262,
717,
983,
2826,
319,
3945,
2579,
30,
46506,
20625,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
3128,
796,
366,
69,
1765,
3728,
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
] | [
2061,
373,
262,
717,
983,
2826,
319,
3945,
2579,
30,
46506,
20625,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
3128,
796,
366,
69,
1765,
3728,
2579,
1
] |
When is the arabic title what is the english title? | SELECT english_title FROM table_26555737_1 WHERE arabic_title = "ملح هذا البحر" | [
2215,
318,
262,
610,
397,
291,
3670,
644,
318,
262,
46932,
3670,
30,
46506,
46932,
62,
7839,
16034,
3084,
62,
2075,
2816,
3553,
2718,
62,
16,
33411,
610,
397,
291,
62,
7839,
796,
366,
25405,
13862,
148,
255,
18923,
229,
148,
108,
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
] | [
2215,
318,
262,
610,
397,
291,
3670,
644,
318,
262,
46932,
3670,
30,
46506,
46932,
62,
7839,
16034,
3084,
62,
2075,
2816,
3553,
2718,
62,
16,
33411,
610,
397,
291,
62,
7839,
796,
366,
25405,
13862,
148,
255,
18923,
229,
148,
108,
12... |
What is the description, code and the corresponding count of each service type? | SELECT T1.Service_Type_Description, T2.Service_Type_Code, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code | [
2061,
318,
262,
6764,
11,
2438,
290,
262,
11188,
954,
286,
1123,
2139,
2099,
30,
46506,
309,
16,
13,
16177,
62,
6030,
62,
11828,
11,
309,
17,
13,
16177,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
6524,
62,
16177,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
6764,
11,
2438,
290,
262,
11188,
954,
286,
1123,
2139,
2099,
30,
46506,
309,
16,
13,
16177,
62,
6030,
62,
11828,
11,
309,
17,
13,
16177,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
6524,
62,
16177,
62,
31... |
What is the number of types of competition?, I want to display X-axis from high to low order. | SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type ORDER BY Competition_type DESC | [
2061,
318,
262,
1271,
286,
3858,
286,
5449,
21747,
314,
765,
284,
3359,
1395,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
7293,
15620,
62,
4906,
8,
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,
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,
3858,
286,
5449,
21747,
314,
765,
284,
3359,
1395,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
7293,
15620,
62,
4906,
8,
16034,
5449,
44441,
11050,
27348,
62,
4906,
... |
What is the lowest ranking for Paul Mctiernan? | SELECT MIN("Ranking") FROM table_69466 WHERE "Name" = 'paul mctiernan' | [
2061,
318,
262,
9016,
12759,
329,
3362,
337,
310,
959,
12647,
30,
46506,
20625,
7203,
49,
15230,
4943,
16034,
3084,
62,
3388,
42199,
33411,
366,
5376,
1,
796,
705,
79,
2518,
285,
310,
959,
12647,
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,
262,
9016,
12759,
329,
3362,
337,
310,
959,
12647,
30,
46506,
20625,
7203,
49,
15230,
4943,
16034,
3084,
62,
3388,
42199,
33411,
366,
5376,
1,
796,
705,
79,
2518,
285,
310,
959,
12647,
6
] |
what were the four most commonly ordered procedures for patients with nonrheum tricusp val dis who had previously been diagnosed in the same hospital encounter until 2103? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_i... | [
10919,
547,
262,
1440,
749,
8811,
6149,
9021,
329,
3871,
351,
1729,
81,
258,
388,
491,
291,
17723,
1188,
595,
508,
550,
4271,
587,
14641,
287,
262,
976,
4436,
8791,
1566,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
8811,
6149,
9021,
329,
3871,
351,
1729,
81,
258,
388,
491,
291,
17723,
1188,
595,
508,
550,
4271,
587,
14641,
287,
262,
976,
4436,
8791,
1566,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
... |
hypertension defined as a systolic blood pressure >= 150 mmhg and a diastolic blood pressure >= 95 mmhg; | SELECT * FROM table_train_254 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp >= 150 AND diastolic_blood_pressure_dbp >= 95) | [
12114,
11766,
3004,
5447,
355,
257,
827,
301,
4160,
2910,
3833,
18189,
6640,
8085,
71,
70,
290,
257,
2566,
459,
4160,
2910,
3833,
18189,
6957,
8085,
71,
70,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
24970,
33411,
37454,
796,
352,
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... | [
12114,
11766,
3004,
5447,
355,
257,
827,
301,
4160,
2910,
3833,
18189,
6640,
8085,
71,
70,
290,
257,
2566,
459,
4160,
2910,
3833,
18189,
6957,
8085,
71,
70,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
24970,
33411,
37454,
796,
352,
6... |
what is the number of patients whose days of hospital stay is greater than 10 and drug route is both eyes? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "10" AND prescriptions.route = "BOTH EYES" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
290,
2563,
6339,
318,
1111,
2951,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
290,
2563,
6339,
318,
1111,
2951,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
What director ranked higher than 1 from Universal Studios and grossed $201,957,688? | SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688" | [
2061,
3437,
10307,
2440,
621,
352,
422,
14499,
13799,
290,
10319,
276,
720,
1264,
11,
24,
3553,
11,
34427,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
1558,
33411,
4279,
1875,
352,
5357,
8034,
796,
366,
40082,
1,
5357,
10319,
796,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3437,
10307,
2440,
621,
352,
422,
14499,
13799,
290,
10319,
276,
720,
1264,
11,
24,
3553,
11,
34427,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
1558,
33411,
4279,
1875,
352,
5357,
8034,
796,
366,
40082,
1,
5357,
10319,
796,
179... |
How many populations have a capital of Hong Kong? | SELECT COUNT("Population") FROM table_23092 WHERE "Capital" = 'Hong Kong' | [
2437,
867,
9684,
423,
257,
3139,
286,
9764,
9071,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
19214,
5892,
33411,
366,
39315,
1,
796,
705,
48559,
9071,
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
] | [
2437,
867,
9684,
423,
257,
3139,
286,
9764,
9071,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
19214,
5892,
33411,
366,
39315,
1,
796,
705,
48559,
9071,
6
] |
What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats? | SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats" | [
2061,
5483,
4390,
468,
262,
4390,
290,
5483,
9072,
286,
604,
13,
19,
4,
604,
8632,
30,
46506,
1919,
62,
41232,
16034,
3084,
62,
3672,
62,
4521,
33411,
10518,
62,
392,
62,
14557,
62,
1087,
260,
796,
366,
19,
13,
19,
4,
604,
8632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5483,
4390,
468,
262,
4390,
290,
5483,
9072,
286,
604,
13,
19,
4,
604,
8632,
30,
46506,
1919,
62,
41232,
16034,
3084,
62,
3672,
62,
4521,
33411,
10518,
62,
392,
62,
14557,
62,
1087,
260,
796,
366,
19,
13,
19,
4,
604,
8632,
... |
What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25? | SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1 | [
2061,
7756,
750,
3941,
15372,
711,
287,
618,
339,
550,
1342,
621,
767,
327,
5500,
11,
657,
24423,
11,
290,
1342,
621,
352,
5849,
12,
1495,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2327,
33411,
6630,
62,
9727,
1279,
767,
5357,
786... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7756,
750,
3941,
15372,
711,
287,
618,
339,
550,
1342,
621,
767,
327,
5500,
11,
657,
24423,
11,
290,
1342,
621,
352,
5849,
12,
1495,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2327,
33411,
6630,
62,
9727,
1279,
767,
5357,
786... |
What is the total number of Games, when Losses is greater than 6, when Club is 'Club Sportif Sfaxien', and when Wins is less than 3? | SELECT COUNT("Games") FROM table_12918 WHERE "Losses" > '6' AND "Club" = 'club sportif sfaxien' AND "Wins" < '3' | [
2061,
318,
262,
2472,
1271,
286,
5776,
11,
618,
22014,
274,
318,
3744,
621,
718,
11,
618,
6289,
318,
705,
42350,
12771,
361,
311,
23560,
2013,
3256,
290,
618,
24423,
318,
1342,
621,
513,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
1271,
286,
5776,
11,
618,
22014,
274,
318,
3744,
621,
718,
11,
618,
6289,
318,
705,
42350,
12771,
361,
311,
23560,
2013,
3256,
290,
618,
24423,
318,
1342,
621,
513,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034... |
Name the most rebounds for larry smith | SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = "Larry Smith" | [
5376,
262,
749,
18841,
329,
300,
6532,
895,
342,
46506,
25882,
7,
34806,
3733,
8,
16034,
3084,
62,
23815,
26660,
1129,
62,
18,
33411,
2137,
796,
366,
42918,
4176,
1
] | [
1,
1,
1,
1,
1,
1,
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,
749,
18841,
329,
300,
6532,
895,
342,
46506,
25882,
7,
34806,
3733,
8,
16034,
3084,
62,
23815,
26660,
1129,
62,
18,
33411,
2137,
796,
366,
42918,
4176,
1
] |
A pie chart about the average price of products that have each category code. | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code | [
32,
2508,
8262,
546,
262,
2811,
2756,
286,
3186,
326,
423,
1123,
6536,
2438,
13,
46506,
1720,
62,
22872,
62,
8189,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
22872,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2508,
8262,
546,
262,
2811,
2756,
286,
3186,
326,
423,
1123,
6536,
2438,
13,
46506,
1720,
62,
22872,
62,
8189,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
22872,
62,
8189
] |
what is the total number of circuits listed on the chart ? | SELECT COUNT(DISTINCT "circuit") FROM table_204_210 | [
10919,
318,
262,
2472,
1271,
286,
24907,
5610,
319,
262,
8262,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
21170,
5013,
4943,
16034,
3084,
62,
18638,
62,
21536
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
24907,
5610,
319,
262,
8262,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
21170,
5013,
4943,
16034,
3084,
62,
18638,
62,
21536
] |
What is listed in hight points when the high rebounds is listed as Nick Collison (10)? | SELECT high_points FROM table_28768469_7 WHERE high_rebounds = "Nick Collison (10)" | [
2061,
318,
5610,
287,
289,
432,
2173,
618,
262,
1029,
18841,
318,
5610,
355,
8047,
7778,
1653,
357,
940,
19427,
46506,
1029,
62,
13033,
16034,
3084,
62,
27800,
41580,
3388,
62,
22,
33411,
1029,
62,
34806,
3733,
796,
366,
23609,
7778,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5610,
287,
289,
432,
2173,
618,
262,
1029,
18841,
318,
5610,
355,
8047,
7778,
1653,
357,
940,
19427,
46506,
1029,
62,
13033,
16034,
3084,
62,
27800,
41580,
3388,
62,
22,
33411,
1029,
62,
34806,
3733,
796,
366,
23609,
7778,
... |
How many people are women's singles in the season of 2000/01? | SELECT COUNT("Womens Singles") FROM table_30407 WHERE "Season" = '2000/01' | [
2437,
867,
661,
389,
1466,
338,
25287,
287,
262,
1622,
286,
4751,
14,
486,
30,
46506,
327,
28270,
7203,
54,
296,
641,
5573,
829,
4943,
16034,
3084,
62,
1270,
30120,
33411,
366,
18960,
1,
796,
705,
11024,
14,
486,
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,
661,
389,
1466,
338,
25287,
287,
262,
1622,
286,
4751,
14,
486,
30,
46506,
327,
28270,
7203,
54,
296,
641,
5573,
829,
4943,
16034,
3084,
62,
1270,
30120,
33411,
366,
18960,
1,
796,
705,
11024,
14,
486,
6
] |
how many current patients are of age 40s? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 40 AND 49 | [
4919,
867,
1459,
3871,
389,
286,
2479,
2319,
82,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
5357,
5827,
13,
496,
38651,
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
] | [
4919,
867,
1459,
3871,
389,
286,
2479,
2319,
82,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
5357,
5827,
13,
496,
38651,
8... |
What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? | SELECT AVG("Extras") FROM table_6930 WHERE "Name" = 'muttiah muralitharan' AND "Runs Conceded" < '353' | [
2061,
318,
262,
2811,
43620,
329,
13859,
83,
9520,
337,
1523,
342,
19173,
11,
351,
1342,
621,
47567,
44743,
1482,
771,
276,
30,
46506,
35224,
7203,
11627,
8847,
4943,
16034,
3084,
62,
3388,
1270,
33411,
366,
5376,
1,
796,
705,
76,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
43620,
329,
13859,
83,
9520,
337,
1523,
342,
19173,
11,
351,
1342,
621,
47567,
44743,
1482,
771,
276,
30,
46506,
35224,
7203,
11627,
8847,
4943,
16034,
3084,
62,
3388,
1270,
33411,
366,
5376,
1,
796,
705,
76,
153... |
In the next 6 semesters , what courses will be offered ? | SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | [
818,
262,
1306,
718,
5026,
8586,
837,
644,
10902,
481,
307,
4438,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
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... | [
818,
262,
1306,
718,
5026,
8586,
837,
644,
10902,
481,
307,
4438,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11... |
Display Posts By Votes For Tag in Timerange. | SELECT RANK() OVER (ORDER BY Score DESC, ViewCount DESC), Title, b.DisplayName AS UserName, Score, ViewCount, CAST(TIME_TO_STR(a.CreationDate, '%d/%m/%Y') AS TEXT(30)) AS Date, Tags FROM Posts AS a INNER JOIN Users AS b ON a.OwnerUserId = b.Id WHERE a.CreationDate BETWEEN '03-09-2015' AND '03-22-2015' AND PostTypeId = ... | [
23114,
12043,
2750,
39584,
1114,
17467,
287,
5045,
263,
858,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
15178,
22196,
34,
11,
3582,
12332,
22196,
34,
828,
11851,
11,
275,
13,
23114,
5376,
7054,
11787,
5376,
11,
15178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23114,
12043,
2750,
39584,
1114,
17467,
287,
5045,
263,
858,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
15178,
22196,
34,
11,
3582,
12332,
22196,
34,
828,
11851,
11,
275,
13,
23114,
5376,
7054,
11787,
5376,
11,
15178,
... |
Name the player with pick number of 7 | SELECT "Player" FROM table_36378 WHERE "Pick #" = '7' | [
5376,
262,
2137,
351,
2298,
1271,
286,
767,
46506,
366,
14140,
1,
16034,
3084,
62,
2623,
30695,
33411,
366,
31686,
1303,
1,
796,
705,
22,
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
] | [
5376,
262,
2137,
351,
2298,
1271,
286,
767,
46506,
366,
14140,
1,
16034,
3084,
62,
2623,
30695,
33411,
366,
31686,
1303,
1,
796,
705,
22,
6
] |
What is the highest student GPA for every department? Return a bar chart, could you show from high to low by the Y? | SELECT DEPT_CODE, MAX(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY MAX(STU_GPA) DESC | [
2061,
318,
262,
4511,
3710,
45283,
329,
790,
5011,
30,
8229,
257,
2318,
8262,
11,
714,
345,
905,
422,
1029,
284,
1877,
416,
262,
575,
30,
46506,
5550,
11571,
62,
34,
16820,
11,
25882,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3710,
45283,
329,
790,
5011,
30,
8229,
257,
2318,
8262,
11,
714,
345,
905,
422,
1029,
284,
1877,
416,
262,
575,
30,
46506,
5550,
11571,
62,
34,
16820,
11,
25882,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
35... |
What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name? | SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%') | [
2061,
389,
262,
220,
2340,
11,
1336,
3891,
11,
290,
17058,
329,
4409,
1642,
517,
621,
2811,
290,
508,
670,
287,
257,
5011,
351,
4409,
508,
423,
262,
3850,
449,
287,
511,
717,
1438,
30,
46506,
6538,
62,
312,
11,
717,
62,
3672,
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... | [
2061,
389,
262,
220,
2340,
11,
1336,
3891,
11,
290,
17058,
329,
4409,
1642,
517,
621,
2811,
290,
508,
670,
287,
257,
5011,
351,
4409,
508,
423,
262,
3850,
449,
287,
511,
717,
1438,
30,
46506,
6538,
62,
312,
11,
717,
62,
3672,
11,
... |
count the number of patients whose lab test item id is 51254. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51254" | [
9127,
262,
1271,
286,
3871,
3025,
2248,
1332,
2378,
4686,
318,
22243,
4051,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
2378,
4686,
318,
22243,
4051,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
31... |
What is the crowd size of the match featuring North Melbourne as the away team? | SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "north melbourne" | [
2061,
318,
262,
4315,
2546,
286,
262,
2872,
9593,
2258,
14819,
355,
262,
1497,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
1497,
62,
15097,
796,
366,
43588,
7758,
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,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4315,
2546,
286,
262,
2872,
9593,
2258,
14819,
355,
262,
1497,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
1497,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] |
When was the game played against Southampton? | SELECT "Date" FROM table_11694 WHERE "Opponent" = 'southampton' | [
2215,
373,
262,
983,
2826,
1028,
30035,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1157,
45214,
33411,
366,
27524,
3471,
1,
796,
705,
35782,
23427,
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
] | [
2215,
373,
262,
983,
2826,
1028,
30035,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1157,
45214,
33411,
366,
27524,
3471,
1,
796,
705,
35782,
23427,
6
] |
Who is the player from the 1971 draft with a pick greater than 7? | SELECT player FROM table_name_15 WHERE draft = 1971 AND pick > 7 | [
8241,
318,
262,
2137,
422,
262,
16382,
4538,
351,
257,
2298,
3744,
621,
767,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1314,
33411,
4538,
796,
16382,
5357,
2298,
1875,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
2137,
422,
262,
16382,
4538,
351,
257,
2298,
3744,
621,
767,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1314,
33411,
4538,
796,
16382,
5357,
2298,
1875,
767
] |
Bar chart x axis team name y axis school_id, and list in ascending by the x-axis. | SELECT Team_Name, School_ID FROM basketball_match ORDER BY Team_Name | [
10374,
8262,
2124,
16488,
1074,
1438,
331,
16488,
1524,
62,
312,
11,
290,
1351,
287,
41988,
416,
262,
2124,
12,
22704,
13,
46506,
4816,
62,
5376,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
5376
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
1074,
1438,
331,
16488,
1524,
62,
312,
11,
290,
1351,
287,
41988,
416,
262,
2124,
12,
22704,
13,
46506,
4816,
62,
5376,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
5376
] |
What was the name in English that had a Stat of 7th cut? | SELECT english_name FROM table_name_43 WHERE stat = "7th cut" | [
2061,
373,
262,
1438,
287,
3594,
326,
550,
257,
5133,
286,
767,
400,
2005,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
3672,
62,
3559,
33411,
1185,
796,
366,
22,
400,
2005,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
287,
3594,
326,
550,
257,
5133,
286,
767,
400,
2005,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
3672,
62,
3559,
33411,
1185,
796,
366,
22,
400,
2005,
1
] |
Longest Answers by Markdown for User. | SELECT p.Id AS "post_link", LENGTH(ph.Text) AS "markdown_length", p.Score AS "score" FROM Posts AS p, PostHistory AS ph WHERE p.PostTypeId = 2 AND ph.PostId = p.Id AND ph.PostHistoryTypeId IN (2, 5, 8) AND NOT EXISTS(SELECT * FROM PostHistory AS phtwo WHERE phtwo.PostId = p.Id AND phtwo.PostHistoryTypeId IN (2, 5, 8) A... | [
14617,
395,
42612,
416,
2940,
2902,
329,
11787,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
406,
49494,
7,
746,
13,
8206,
8,
7054,
366,
4102,
2902,
62,
13664,
1600,
279,
13,
26595,
7054,
366,
26675,
1,
16034,
12043,
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... | [
14617,
395,
42612,
416,
2940,
2902,
329,
11787,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
406,
49494,
7,
746,
13,
8206,
8,
7054,
366,
4102,
2902,
62,
13664,
1600,
279,
13,
26595,
7054,
366,
26675,
1,
16034,
12043,
7... |
What was the final score for the tie where Leeds United was the home team? | SELECT score FROM table_name_6 WHERE home_team = "leeds united" | [
2061,
373,
262,
2457,
4776,
329,
262,
9839,
810,
29293,
1578,
373,
262,
1363,
1074,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1363,
62,
15097,
796,
366,
293,
5379,
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,
373,
262,
2457,
4776,
329,
262,
9839,
810,
29293,
1578,
373,
262,
1363,
1074,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1363,
62,
15097,
796,
366,
293,
5379,
16503,
1
] |
i would like a flight on friday morning from TORONTO to MONTREAL | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 25 AND DATE_DAYalias0.month_number = 6 AND DATE_DAYalias0.year = 1991)) AND to... | [
72,
561,
588,
257,
5474,
319,
1216,
2567,
3329,
422,
40691,
1340,
10468,
284,
25000,
51,
2200,
23719,
16779,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
561,
588,
257,
5474,
319,
1216,
2567,
3329,
422,
40691,
1340,
10468,
284,
25000,
51,
2200,
23719,
16779,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,... |
What is the green house made of? | SELECT "Composition" FROM table_16802 WHERE "Colours" = 'Green' | [
2061,
318,
262,
4077,
2156,
925,
286,
30,
46506,
366,
5377,
9150,
1,
16034,
3084,
62,
1433,
30863,
33411,
366,
5216,
4662,
1,
796,
705,
13719,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4077,
2156,
925,
286,
30,
46506,
366,
5377,
9150,
1,
16034,
3084,
62,
1433,
30863,
33411,
366,
5216,
4662,
1,
796,
705,
13719,
6
] |
how many competitors scored above 5,000 points ? | SELECT COUNT("athlete") FROM table_204_731 WHERE "total" > 5000 | [
4919,
867,
13861,
7781,
2029,
642,
11,
830,
2173,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
22,
3132,
33411,
366,
23350,
1,
1875,
23336
] | [
1,
1,
1,
1,
1,
1,
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,
13861,
7781,
2029,
642,
11,
830,
2173,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
22,
3132,
33411,
366,
23350,
1,
1875,
23336
] |
Can you tell me the sum of FA Cup Goals that has the League Cup Goals larger than 0? | SELECT SUM("FA Cup Goals") FROM table_77001 WHERE "League Cup Goals" > '0' | [
6090,
345,
1560,
502,
262,
2160,
286,
9677,
5454,
28510,
326,
468,
262,
4041,
5454,
28510,
4025,
621,
657,
30,
46506,
35683,
7203,
7708,
5454,
28510,
4943,
16034,
3084,
62,
3324,
8298,
33411,
366,
24623,
5454,
28510,
1,
1875,
705,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
2160,
286,
9677,
5454,
28510,
326,
468,
262,
4041,
5454,
28510,
4025,
621,
657,
30,
46506,
35683,
7203,
7708,
5454,
28510,
4943,
16034,
3084,
62,
3324,
8298,
33411,
366,
24623,
5454,
28510,
1,
1875,
705,
15,
... |
In order to fulfill my Other , which class would be the easiest to take ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_c... | [
818,
1502,
284,
14658,
616,
3819,
837,
543,
1398,
561,
307,
262,
16638,
284,
1011,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
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... | [
818,
1502,
284,
14658,
616,
3819,
837,
543,
1398,
561,
307,
262,
16638,
284,
1011,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62... |
For each position, what is the average number of points for players in that position Plot them as bar chart, sort the average of points in desc order. | SELECT Position, AVG(Points) FROM player GROUP BY Position ORDER BY AVG(Points) DESC | [
1890,
1123,
2292,
11,
644,
318,
262,
2811,
1271,
286,
2173,
329,
1938,
287,
326,
2292,
28114,
606,
355,
2318,
8262,
11,
3297,
262,
2811,
286,
2173,
287,
1715,
1502,
13,
46506,
23158,
11,
35224,
7,
40710,
8,
16034,
2137,
44441,
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,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
2292,
11,
644,
318,
262,
2811,
1271,
286,
2173,
329,
1938,
287,
326,
2292,
28114,
606,
355,
2318,
8262,
11,
3297,
262,
2811,
286,
2173,
287,
1715,
1502,
13,
46506,
23158,
11,
35224,
7,
40710,
8,
16034,
2137,
44441,
11050,
... |
What is H/A/N when Date is February 24? | SELECT "H/A/N" FROM table_50112 WHERE "Date" = 'february 24' | [
2061,
318,
367,
14,
32,
14,
45,
618,
7536,
318,
3945,
1987,
30,
46506,
366,
39,
14,
32,
14,
45,
1,
16034,
3084,
62,
33548,
1065,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
1987,
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,
367,
14,
32,
14,
45,
618,
7536,
318,
3945,
1987,
30,
46506,
366,
39,
14,
32,
14,
45,
1,
16034,
3084,
62,
33548,
1065,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
1987,
6
] |
What country submitted the movie the orphanage? | SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = "The Orphanage" | [
2061,
1499,
8948,
262,
3807,
262,
26051,
496,
30,
46506,
24353,
62,
19315,
16034,
3084,
62,
1065,
5705,
1238,
3104,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
464,
1471,
19080,
496,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8948,
262,
3807,
262,
26051,
496,
30,
46506,
24353,
62,
19315,
16034,
3084,
62,
1065,
5705,
1238,
3104,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
464,
1471,
19080,
496,
1
] |
Which Extra points 1 point is the highest one that has a Total Points smaller than 8? | SELECT MAX(extra_points_1_point) FROM table_name_59 WHERE total_points < 8 | [
13828,
17221,
2173,
352,
966,
318,
262,
4511,
530,
326,
468,
257,
7472,
11045,
4833,
621,
807,
30,
46506,
25882,
7,
26086,
62,
13033,
62,
16,
62,
4122,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
2472,
62,
13033,
1279,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17221,
2173,
352,
966,
318,
262,
4511,
530,
326,
468,
257,
7472,
11045,
4833,
621,
807,
30,
46506,
25882,
7,
26086,
62,
13033,
62,
16,
62,
4122,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
2472,
62,
13033,
1279,
807
] |
Which 2008 has a 2002 of a, and a Tournament of australian open? | SELECT 2008 FROM table_name_84 WHERE 2002 = "a" AND tournament = "australian open" | [
13828,
3648,
468,
257,
6244,
286,
257,
11,
290,
257,
9595,
286,
38132,
1373,
666,
1280,
30,
46506,
3648,
16034,
3084,
62,
3672,
62,
5705,
33411,
6244,
796,
366,
64,
1,
5357,
7756,
796,
366,
64,
436,
1373,
666,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3648,
468,
257,
6244,
286,
257,
11,
290,
257,
9595,
286,
38132,
1373,
666,
1280,
30,
46506,
3648,
16034,
3084,
62,
3672,
62,
5705,
33411,
6244,
796,
366,
64,
1,
5357,
7756,
796,
366,
64,
436,
1373,
666,
1280,
1
] |
Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran? | SELECT "Main contestant" FROM table_62685 WHERE "Co-contestant (Yaar vs. Pyaar)" = 'shalini chandran' | [
8241,
318,
262,
1388,
44047,
618,
262,
763,
12,
3642,
395,
415,
357,
3972,
283,
3691,
13,
279,
3972,
283,
8,
318,
47974,
5362,
20631,
2596,
30,
46506,
366,
13383,
44047,
1,
16034,
3084,
62,
45191,
5332,
33411,
366,
7222,
12,
3642,
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
] | [
8241,
318,
262,
1388,
44047,
618,
262,
763,
12,
3642,
395,
415,
357,
3972,
283,
3691,
13,
279,
3972,
283,
8,
318,
47974,
5362,
20631,
2596,
30,
46506,
366,
13383,
44047,
1,
16034,
3084,
62,
45191,
5332,
33411,
366,
7222,
12,
3642,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.