db_id stringclasses 140
values | query stringlengths 18 577 | question stringlengths 16 224 | query_toks listlengths 4 90 | query_toks_no_value listlengths 4 125 | question_toks listlengths 4 44 | question_toks_masked listlengths 4 44 | query_toks_masked listlengths 4 125 |
|---|---|---|---|---|---|---|---|
baseball_1 | SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000; | Count the total number of games the team Boston Red Stockings attended from 1990 to 2000. | [
"SELECT",
"sum",
"(",
"T1.games",
")",
"FROM",
"home_game",
"AS",
"T1",
"JOIN",
"team",
"AS",
"T2",
"ON",
"T1.team_id",
"=",
"T2.team_id_br",
"WHERE",
"T2.name",
"=",
"'Boston",
"Red",
"Stockings",
"'",
"AND",
"T1.year",
"BETWEEN",
"1990",
"AND",
"2000",
"... | [
"select",
"sum",
"(",
"t1",
".",
"games",
")",
"from",
"home_game",
"as",
"t1",
"join",
"team",
"as",
"t2",
"on",
"t1",
".",
"team_id",
"=",
"t2",
".",
"team_id_br",
"where",
"t2",
".",
"name",
"=",
"value",
"and",
"t1",
".",
"year",
"between",
"va... | [
"Count",
"the",
"total",
"number",
"of",
"games",
"the",
"team",
"Boston",
"Red",
"Stockings",
"attended",
"from",
"1990",
"to",
"2000",
"."
] | [
"Count",
"the",
"total",
"number",
"of",
"<mask>",
"the",
"<mask>",
"Boston",
"Red",
"Stockings",
"attended",
"from",
"<unk>",
"to",
"<unk>",
"."
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"... |
baseball_1 | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; | Which team had the least number of attendances in home games in 1980? | [
"SELECT",
"T2.name",
"FROM",
"home_game",
"AS",
"T1",
"JOIN",
"team",
"AS",
"T2",
"ON",
"T1.team_id",
"=",
"T2.team_id_br",
"WHERE",
"T1.year",
"=",
"1980",
"ORDER",
"BY",
"T1.attendance",
"ASC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"name",
"from",
"home_game",
"as",
"t1",
"join",
"team",
"as",
"t2",
"on",
"t1",
".",
"team_id",
"=",
"t2",
".",
"team_id_br",
"where",
"t1",
".",
"year",
"=",
"value",
"order",
"by",
"t1",
".",
"attendance",
"asc",
"limit",
"val... | [
"Which",
"team",
"had",
"the",
"least",
"number",
"of",
"attendances",
"in",
"home",
"games",
"in",
"1980",
"?"
] | [
"Which",
"<mask>",
"had",
"the",
"least",
"number",
"of",
"<mask>",
"in",
"<mask>",
"<mask>",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>",
"a... |
baseball_1 | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; | Find the team that attended the least number of home games in 1980. | [
"SELECT",
"T2.name",
"FROM",
"home_game",
"AS",
"T1",
"JOIN",
"team",
"AS",
"T2",
"ON",
"T1.team_id",
"=",
"T2.team_id_br",
"WHERE",
"T1.year",
"=",
"1980",
"ORDER",
"BY",
"T1.attendance",
"ASC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"name",
"from",
"home_game",
"as",
"t1",
"join",
"team",
"as",
"t2",
"on",
"t1",
".",
"team_id",
"=",
"t2",
".",
"team_id_br",
"where",
"t1",
".",
"year",
"=",
"value",
"order",
"by",
"t1",
".",
"attendance",
"asc",
"limit",
"val... | [
"Find",
"the",
"team",
"that",
"attended",
"the",
"least",
"number",
"of",
"home",
"games",
"in",
"1980",
"."
] | [
"Find",
"the",
"<mask>",
"that",
"attended",
"the",
"least",
"number",
"of",
"<mask>",
"<mask>",
"in",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>",
"a... |
baseball_1 | SELECT state FROM park GROUP BY state HAVING count(*) > 2; | List the names of states that have more than 2 parks. | [
"SELECT",
"state",
"FROM",
"park",
"GROUP",
"BY",
"state",
"HAVING",
"count",
"(",
"*",
")",
">",
"2",
";"
] | [
"select",
"state",
"from",
"park",
"group",
"by",
"state",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"List",
"the",
"names",
"of",
"states",
"that",
"have",
"more",
"than",
"2",
"parks",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"more",
"than",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
baseball_1 | SELECT state FROM park GROUP BY state HAVING count(*) > 2; | Which states have more than 2 parks? | [
"SELECT",
"state",
"FROM",
"park",
"GROUP",
"BY",
"state",
"HAVING",
"count",
"(",
"*",
")",
">",
"2",
";"
] | [
"select",
"state",
"from",
"park",
"group",
"by",
"state",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"states",
"have",
"more",
"than",
"2",
"parks",
"?"
] | [
"Which",
"<mask>",
"have",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
baseball_1 | SELECT count(*) FROM team_franchise WHERE active = 'Y'; | How many team franchises are active, with active value 'Y'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"team_franchise",
"WHERE",
"active",
"=",
"'Y",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"team_franchise",
"where",
"active",
"=",
"value"
] | [
"How",
"many",
"team",
"franchises",
"are",
"active",
",",
"with",
"active",
"value",
"'Y",
"'",
"?"
] | [
"How",
"many",
"<mask>",
"<mask>",
"are",
"<mask>",
",",
"with",
"<mask>",
"value",
"'Y",
"'",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
baseball_1 | SELECT count(*) FROM team_franchise WHERE active = 'Y'; | Find the number of team franchises that are active (have 'Y' as "active" information). | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"team_franchise",
"WHERE",
"active",
"=",
"'Y",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"team_franchise",
"where",
"active",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"team",
"franchises",
"that",
"are",
"active",
"(",
"have",
"'Y",
"'",
"as",
"``",
"active",
"''",
"information",
")",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"<mask>",
"that",
"are",
"<mask>",
"(",
"have",
"'Y",
"'",
"as",
"``",
"<mask>",
"''",
"information",
")",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
baseball_1 | SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; | Which cities have 2 to 4 parks? | [
"SELECT",
"city",
"FROM",
"park",
"GROUP",
"BY",
"city",
"HAVING",
"count",
"(",
"*",
")",
"BETWEEN",
"2",
"AND",
"4",
";"
] | [
"select",
"city",
"from",
"park",
"group",
"by",
"city",
"having",
"count",
"(",
"*",
")",
"between",
"value",
"and",
"value"
] | [
"Which",
"cities",
"have",
"2",
"to",
"4",
"parks",
"?"
] | [
"Which",
"<mask>",
"have",
"<unk>",
"to",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"between",
"<unk>",
"and",
"<unk>"
] |
baseball_1 | SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; | Find all the cities that have 2 to 4 parks. | [
"SELECT",
"city",
"FROM",
"park",
"GROUP",
"BY",
"city",
"HAVING",
"count",
"(",
"*",
")",
"BETWEEN",
"2",
"AND",
"4",
";"
] | [
"select",
"city",
"from",
"park",
"group",
"by",
"city",
"having",
"count",
"(",
"*",
")",
"between",
"value",
"and",
"value"
] | [
"Find",
"all",
"the",
"cities",
"that",
"have",
"2",
"to",
"4",
"parks",
"."
] | [
"Find",
"<mask>",
"the",
"<mask>",
"that",
"have",
"<unk>",
"to",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
"between",
"<unk>",
"and",
"<unk>"
] |
baseball_1 | SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; | Which park had most attendances in 2008? | [
"SELECT",
"T2.park_name",
"FROM",
"home_game",
"AS",
"T1",
"JOIN",
"park",
"AS",
"T2",
"ON",
"T1.park_id",
"=",
"T2.park_id",
"WHERE",
"T1.year",
"=",
"2008",
"ORDER",
"BY",
"T1.attendance",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"park_name",
"from",
"home_game",
"as",
"t1",
"join",
"park",
"as",
"t2",
"on",
"t1",
".",
"park_id",
"=",
"t2",
".",
"park_id",
"where",
"t1",
".",
"year",
"=",
"value",
"order",
"by",
"t1",
".",
"attendance",
"desc",
"limit",
"... | [
"Which",
"park",
"had",
"most",
"attendances",
"in",
"2008",
"?"
] | [
"Which",
"<mask>",
"had",
"most",
"<mask>",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>",
"d... |
baseball_1 | SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; | Which park did the most people attend in 2008? | [
"SELECT",
"T2.park_name",
"FROM",
"home_game",
"AS",
"T1",
"JOIN",
"park",
"AS",
"T2",
"ON",
"T1.park_id",
"=",
"T2.park_id",
"WHERE",
"T1.year",
"=",
"2008",
"ORDER",
"BY",
"T1.attendance",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"park_name",
"from",
"home_game",
"as",
"t1",
"join",
"park",
"as",
"t2",
"on",
"t1",
".",
"park_id",
"=",
"t2",
".",
"park_id",
"where",
"t1",
".",
"year",
"=",
"value",
"order",
"by",
"t1",
".",
"attendance",
"desc",
"limit",
"... | [
"Which",
"park",
"did",
"the",
"most",
"people",
"attend",
"in",
"2008",
"?"
] | [
"Which",
"<mask>",
"did",
"the",
"most",
"people",
"attend",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"order",
"by",
"<mask>",
".",
"<mask>",
"d... |
mountain_photos | SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15 | How many camera lenses have a focal length longer than 15 mm? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"camera_lens",
"WHERE",
"focal_length_mm",
">",
"15"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"camera_lens",
"where",
"focal_length_mm",
">",
"value"
] | [
"How",
"many",
"camera",
"lenses",
"have",
"a",
"focal",
"length",
"longer",
"than",
"15",
"mm",
"?"
] | [
"How",
"many",
"<mask>",
"lenses",
"have",
"a",
"<mask>",
"<mask>",
"longer",
"than",
"<unk>",
"mm",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
mountain_photos | SELECT brand , name FROM camera_lens ORDER BY max_aperture DESC | Find the brand and name for each camera lens, and sort in descending order of maximum aperture. | [
"SELECT",
"brand",
",",
"name",
"FROM",
"camera_lens",
"ORDER",
"BY",
"max_aperture",
"DESC"
] | [
"select",
"brand",
",",
"name",
"from",
"camera_lens",
"order",
"by",
"max_aperture",
"desc"
] | [
"Find",
"the",
"brand",
"and",
"name",
"for",
"each",
"camera",
"lens",
",",
"and",
"sort",
"in",
"descending",
"order",
"of",
"maximum",
"aperture",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"for",
"each",
"<mask>",
"lens",
",",
"and",
"sort",
"in",
"descending",
"order",
"of",
"maximum",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
mountain_photos | SELECT id , color , name FROM photos | List the id, color scheme, and name for all the photos. | [
"SELECT",
"id",
",",
"color",
",",
"name",
"FROM",
"photos"
] | [
"select",
"id",
",",
"color",
",",
"name",
"from",
"photos"
] | [
"List",
"the",
"id",
",",
"color",
"scheme",
",",
"and",
"name",
"for",
"all",
"the",
"photos",
"."
] | [
"List",
"the",
"id",
",",
"<mask>",
"scheme",
",",
"and",
"<mask>",
"for",
"all",
"the",
"photos",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
mountain_photos | SELECT max(height) , avg(height) FROM mountain | What are the maximum and average height of the mountains? | [
"SELECT",
"max",
"(",
"height",
")",
",",
"avg",
"(",
"height",
")",
"FROM",
"mountain"
] | [
"select",
"max",
"(",
"height",
")",
",",
"avg",
"(",
"height",
")",
"from",
"mountain"
] | [
"What",
"are",
"the",
"maximum",
"and",
"average",
"height",
"of",
"the",
"mountains",
"?"
] | [
"What",
"are",
"the",
"maximum",
"and",
"average",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
mountain_photos | SELECT avg(prominence) FROM mountain WHERE country = 'Morocco' | What are the average prominence of the mountains in country 'Morocco'? | [
"SELECT",
"avg",
"(",
"prominence",
")",
"FROM",
"mountain",
"WHERE",
"country",
"=",
"'Morocco",
"'"
] | [
"select",
"avg",
"(",
"prominence",
")",
"from",
"mountain",
"where",
"country",
"=",
"value"
] | [
"What",
"are",
"the",
"average",
"prominence",
"of",
"the",
"mountains",
"in",
"country",
"'Morocco",
"'",
"?"
] | [
"What",
"are",
"the",
"average",
"<mask>",
"of",
"the",
"<mask>",
"in",
"<mask>",
"'Morocco",
"'",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
mountain_photos | SELECT name , height , prominence FROM mountain WHERE range != 'Aberdare Range' | What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'? | [
"SELECT",
"name",
",",
"height",
",",
"prominence",
"FROM",
"mountain",
"WHERE",
"range",
"!",
"=",
"'Aberdare",
"Range",
"'"
] | [
"select",
"name",
",",
"height",
",",
"prominence",
"from",
"mountain",
"where",
"range",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"name",
",",
"height",
"and",
"prominence",
"of",
"mountains",
"which",
"do",
"not",
"belong",
"to",
"the",
"range",
"'Aberdare",
"Range",
"'",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"which",
"do",
"not",
"belong",
"to",
"the",
"<mask>",
"'Aberdare",
"<mask>",
"'",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
mountain_photos | SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000 | What are the id and name of the photos for mountains? | [
"SELECT",
"T1.id",
",",
"T1.name",
"FROM",
"mountain",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.mountain_id",
"WHERE",
"T1.height",
">",
"4000"
] | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"mountain",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"mountain_id",
"where",
"t1",
".",
"height",
">",
"value"
] | [
"What",
"are",
"the",
"id",
"and",
"name",
"of",
"the",
"photos",
"for",
"mountains",
"?"
] | [
"What",
"are",
"the",
"id",
"and",
"<mask>",
"of",
"the",
"photos",
"for",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
mountain_photos | SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING count(*) >= 2 | What are the id and name of the mountains that have at least 2 photos? | [
"SELECT",
"T1.id",
",",
"T1.name",
"FROM",
"mountain",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.mountain_id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"mountain",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"mountain_id",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"... | [
"What",
"are",
"the",
"id",
"and",
"name",
"of",
"the",
"mountains",
"that",
"have",
"at",
"least",
"2",
"photos",
"?"
] | [
"What",
"are",
"the",
"id",
"and",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"at",
"least",
"<unk>",
"photos",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"... |
mountain_photos | SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | What are the names of the cameras that have taken picture of the most mountains? | [
"SELECT",
"T2.name",
"FROM",
"photos",
"AS",
"T1",
"JOIN",
"camera_lens",
"AS",
"T2",
"ON",
"T1.camera_lens_id",
"=",
"T2.id",
"GROUP",
"BY",
"T2.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"name",
"from",
"photos",
"as",
"t1",
"join",
"camera_lens",
"as",
"t2",
"on",
"t1",
".",
"camera_lens_id",
"=",
"t2",
".",
"id",
"group",
"by",
"t2",
".",
"id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"cameras",
"that",
"have",
"taken",
"picture",
"of",
"the",
"most",
"mountains",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"taken",
"picture",
"of",
"the",
"most",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
mountain_photos | SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' | What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'? | [
"SELECT",
"T1.name",
"FROM",
"camera_lens",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T2.camera_lens_id",
"=",
"T1.id",
"WHERE",
"T1.brand",
"=",
"'Sigma",
"'",
"OR",
"T1.brand",
"=",
"'Olympus",
"'"
] | [
"select",
"t1",
".",
"name",
"from",
"camera_lens",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t2",
".",
"camera_lens_id",
"=",
"t1",
".",
"id",
"where",
"t1",
".",
"brand",
"=",
"value",
"or",
"t1",
".",
"brand",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"photos",
"taken",
"with",
"the",
"lens",
"brand",
"'Sigma",
"'",
"or",
"'Olympus",
"'",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"photos",
"taken",
"with",
"the",
"lens",
"<mask>",
"'Sigma",
"'",
"or",
"'Olympus",
"'",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
".",
"<mask>",
"=",
"<unk>... |
mountain_photos | SELECT count(DISTINCT brand) FROM camera_lens | How many different kinds of lens brands are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"brand",
")",
"FROM",
"camera_lens"
] | [
"select",
"count",
"(",
"distinct",
"brand",
")",
"from",
"camera_lens"
] | [
"How",
"many",
"different",
"kinds",
"of",
"lens",
"brands",
"are",
"there",
"?"
] | [
"How",
"many",
"different",
"kinds",
"of",
"lens",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
mountain_photos | SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ) | How many camera lenses are not used in taking any photos? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"camera_lens",
"WHERE",
"id",
"NOT",
"IN",
"(",
"SELECT",
"camera_lens_id",
"FROM",
"photos",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"camera_lens",
"where",
"id",
"not",
"in",
"(",
"select",
"camera_lens_id",
"from",
"photos",
")"
] | [
"How",
"many",
"camera",
"lenses",
"are",
"not",
"used",
"in",
"taking",
"any",
"photos",
"?"
] | [
"How",
"many",
"<mask>",
"lenses",
"are",
"not",
"used",
"in",
"taking",
"any",
"photos",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
mountain_photos | SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' | How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'? | [
"SELECT",
"count",
"(",
"DISTINCT",
"T2.camera_lens_id",
")",
"FROM",
"mountain",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.mountain_id",
"WHERE",
"T1.country",
"=",
"'Ethiopia",
"'"
] | [
"select",
"count",
"(",
"distinct",
"t2",
".",
"camera_lens_id",
")",
"from",
"mountain",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"mountain_id",
"where",
"t1",
".",
"country",
"=",
"value"
] | [
"How",
"many",
"distinct",
"kinds",
"of",
"camera",
"lenses",
"are",
"used",
"to",
"take",
"photos",
"of",
"mountains",
"in",
"the",
"country",
"'Ethiopia",
"'",
"?"
] | [
"How",
"many",
"distinct",
"kinds",
"of",
"<mask>",
"lenses",
"are",
"used",
"to",
"take",
"photos",
"of",
"<mask>",
"in",
"the",
"<mask>",
"'Ethiopia",
"'",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
mountain_photos | SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHE... | List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif' | [
"SELECT",
"T3.brand",
"FROM",
"mountain",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.mountain_id",
"JOIN",
"camera_lens",
"AS",
"T3",
"ON",
"T2.camera_lens_id",
"=",
"T3.id",
"WHERE",
"T1.range",
"=",
"'Toubkal",
"Atlas",
"'",
"INTERSECT... | [
"select",
"t3",
".",
"brand",
"from",
"mountain",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"mountain_id",
"join",
"camera_lens",
"as",
"t3",
"on",
"t2",
".",
"camera_lens_id",
"=",
"t3",
".",
"id",
"where",
"t1... | [
"List",
"the",
"brands",
"of",
"lenses",
"that",
"took",
"both",
"a",
"picture",
"of",
"mountains",
"with",
"range",
"'Toubkal",
"Atlas",
"'",
"and",
"a",
"picture",
"of",
"mountains",
"with",
"range",
"'Lasta",
"Massif",
"'"
] | [
"List",
"the",
"<mask>",
"of",
"lenses",
"that",
"took",
"both",
"a",
"picture",
"of",
"<mask>",
"with",
"<mask>",
"'Toubkal",
"Atlas",
"'",
"and",
"a",
"picture",
"of",
"<mask>",
"with",
"<mask>",
"'Lasta",
"Massif",
"'"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
mountain_photos | SELECT name , prominence FROM mountain EXCEPT SELECT T1.name , T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma' | Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'. | [
"SELECT",
"name",
",",
"prominence",
"FROM",
"mountain",
"EXCEPT",
"SELECT",
"T1.name",
",",
"T1.prominence",
"FROM",
"mountain",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.mountain_id",
"JOIN",
"camera_lens",
"AS",
"T3",
"ON",
"T2.camer... | [
"select",
"name",
",",
"prominence",
"from",
"mountain",
"except",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"prominence",
"from",
"mountain",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"mountain_id",
"join",
"c... | [
"Show",
"the",
"name",
"and",
"prominence",
"of",
"the",
"mountains",
"whose",
"picture",
"is",
"not",
"taken",
"by",
"a",
"lens",
"of",
"brand",
"'Sigma",
"'",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"picture",
"is",
"not",
"taken",
"by",
"a",
"lens",
"of",
"<mask>",
"'Sigma",
"'",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",... |
mountain_photos | SELECT name FROM camera_lens WHERE name LIKE "%Digital%" | List the camera lens names containing substring "Digital". | [
"SELECT",
"name",
"FROM",
"camera_lens",
"WHERE",
"name",
"LIKE",
"``",
"%",
"Digital",
"%",
"''"
] | [
"select",
"name",
"from",
"camera_lens",
"where",
"name",
"like",
"value"
] | [
"List",
"the",
"camera",
"lens",
"names",
"containing",
"substring",
"``",
"Digital",
"''",
"."
] | [
"List",
"the",
"<mask>",
"lens",
"<mask>",
"containing",
"substring",
"``",
"Digital",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
mountain_photos | SELECT T1.name , count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY count(*) | What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos. | [
"SELECT",
"T1.name",
",",
"count",
"(",
"*",
")",
"FROM",
"camera_lens",
"AS",
"T1",
"JOIN",
"photos",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.camera_lens_id",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")"
] | [
"select",
"t1",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"camera_lens",
"as",
"t1",
"join",
"photos",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"camera_lens_id",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
"*",
... | [
"What",
"is",
"the",
"name",
"of",
"each",
"camera",
"lens",
"and",
"the",
"number",
"of",
"photos",
"taken",
"by",
"it",
"?",
"Order",
"the",
"result",
"by",
"the",
"count",
"of",
"photos",
"."
] | [
"What",
"is",
"the",
"<mask>",
"of",
"each",
"<mask>",
"lens",
"and",
"the",
"number",
"of",
"photos",
"taken",
"by",
"it",
"?",
"Order",
"the",
"result",
"by",
"the",
"count",
"of",
"photos",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"cou... |
program_share | SELECT name FROM channel WHERE OWNER != 'CCTV' | Find the names of channels that are not owned by CCTV. | [
"SELECT",
"name",
"FROM",
"channel",
"WHERE",
"OWNER",
"!",
"=",
"'CCTV",
"'"
] | [
"select",
"name",
"from",
"channel",
"where",
"owner",
"!",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"channels",
"that",
"are",
"not",
"owned",
"by",
"CCTV",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"that",
"are",
"not",
"owned",
"by",
"CCTV",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
program_share | SELECT name FROM channel WHERE OWNER != 'CCTV' | Which channels are not owned by CCTV? Give me the channel names. | [
"SELECT",
"name",
"FROM",
"channel",
"WHERE",
"OWNER",
"!",
"=",
"'CCTV",
"'"
] | [
"select",
"name",
"from",
"channel",
"where",
"owner",
"!",
"=",
"value"
] | [
"Which",
"channels",
"are",
"not",
"owned",
"by",
"CCTV",
"?",
"Give",
"me",
"the",
"channel",
"names",
"."
] | [
"Which",
"<mask>",
"are",
"not",
"owned",
"by",
"CCTV",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
program_share | SELECT name FROM channel ORDER BY rating_in_percent DESC | List all channel names ordered by their rating in percent from big to small. | [
"SELECT",
"name",
"FROM",
"channel",
"ORDER",
"BY",
"rating_in_percent",
"DESC"
] | [
"select",
"name",
"from",
"channel",
"order",
"by",
"rating_in_percent",
"desc"
] | [
"List",
"all",
"channel",
"names",
"ordered",
"by",
"their",
"rating",
"in",
"percent",
"from",
"big",
"to",
"small",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"ordered",
"by",
"their",
"<mask>",
"in",
"<mask>",
"from",
"big",
"to",
"small",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
program_share | SELECT name FROM channel ORDER BY rating_in_percent DESC | Give me a list of all the channel names sorted by the channel rating in descending order. | [
"SELECT",
"name",
"FROM",
"channel",
"ORDER",
"BY",
"rating_in_percent",
"DESC"
] | [
"select",
"name",
"from",
"channel",
"order",
"by",
"rating_in_percent",
"desc"
] | [
"Give",
"me",
"a",
"list",
"of",
"all",
"the",
"channel",
"names",
"sorted",
"by",
"the",
"channel",
"rating",
"in",
"descending",
"order",
"."
] | [
"Give",
"me",
"a",
"list",
"of",
"all",
"the",
"<mask>",
"<mask>",
"sorted",
"by",
"the",
"<mask>",
"<mask>",
"in",
"descending",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
program_share | SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 | What is the owner of the channel that has the highest rating ratio? | [
"SELECT",
"OWNER",
"FROM",
"channel",
"ORDER",
"BY",
"rating_in_percent",
"DESC",
"LIMIT",
"1"
] | [
"select",
"owner",
"from",
"channel",
"order",
"by",
"rating_in_percent",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"owner",
"of",
"the",
"channel",
"that",
"has",
"the",
"highest",
"rating",
"ratio",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"the",
"highest",
"<mask>",
"ratio",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
program_share | SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 | Show me the owner of the channel with the highest rating. | [
"SELECT",
"OWNER",
"FROM",
"channel",
"ORDER",
"BY",
"rating_in_percent",
"DESC",
"LIMIT",
"1"
] | [
"select",
"owner",
"from",
"channel",
"order",
"by",
"rating_in_percent",
"desc",
"limit",
"value"
] | [
"Show",
"me",
"the",
"owner",
"of",
"the",
"channel",
"with",
"the",
"highest",
"rating",
"."
] | [
"Show",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"highest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
program_share | SELECT count(*) FROM program | how many programs are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"program"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"program"
] | [
"how",
"many",
"programs",
"are",
"there",
"?"
] | [
"how",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
program_share | SELECT count(*) FROM program | Count the number of programs. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"program"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"program"
] | [
"Count",
"the",
"number",
"of",
"programs",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
program_share | SELECT name FROM program ORDER BY launch | list all the names of programs, ordering by launch time. | [
"SELECT",
"name",
"FROM",
"program",
"ORDER",
"BY",
"launch"
] | [
"select",
"name",
"from",
"program",
"order",
"by",
"launch"
] | [
"list",
"all",
"the",
"names",
"of",
"programs",
",",
"ordering",
"by",
"launch",
"time",
"."
] | [
"list",
"all",
"the",
"<mask>",
"of",
"<mask>",
",",
"ordering",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
program_share | SELECT name FROM program ORDER BY launch | What is the list of program names, sorted by the order of launch date? | [
"SELECT",
"name",
"FROM",
"program",
"ORDER",
"BY",
"launch"
] | [
"select",
"name",
"from",
"program",
"order",
"by",
"launch"
] | [
"What",
"is",
"the",
"list",
"of",
"program",
"names",
",",
"sorted",
"by",
"the",
"order",
"of",
"launch",
"date",
"?"
] | [
"What",
"is",
"the",
"list",
"of",
"<mask>",
"<mask>",
",",
"sorted",
"by",
"the",
"order",
"of",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
program_share | SELECT name , origin , OWNER FROM program | List the name, origin and owner of each program. | [
"SELECT",
"name",
",",
"origin",
",",
"OWNER",
"FROM",
"program"
] | [
"select",
"name",
",",
"origin",
",",
"owner",
"from",
"program"
] | [
"List",
"the",
"name",
",",
"origin",
"and",
"owner",
"of",
"each",
"program",
"."
] | [
"List",
"the",
"<mask>",
",",
"<mask>",
"and",
"<mask>",
"of",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
program_share | SELECT name , origin , OWNER FROM program | What are the name, origin and owner of each program? | [
"SELECT",
"name",
",",
"origin",
",",
"OWNER",
"FROM",
"program"
] | [
"select",
"name",
",",
"origin",
",",
"owner",
"from",
"program"
] | [
"What",
"are",
"the",
"name",
",",
"origin",
"and",
"owner",
"of",
"each",
"program",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"<mask>",
"and",
"<mask>",
"of",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
program_share | SELECT name FROM program ORDER BY launch DESC LIMIT 1 | find the name of the program that was launched most recently. | [
"SELECT",
"name",
"FROM",
"program",
"ORDER",
"BY",
"launch",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"program",
"order",
"by",
"launch",
"desc",
"limit",
"value"
] | [
"find",
"the",
"name",
"of",
"the",
"program",
"that",
"was",
"launched",
"most",
"recently",
"."
] | [
"find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"was",
"<mask>",
"most",
"recently",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
program_share | SELECT name FROM program ORDER BY launch DESC LIMIT 1 | Which program was launched most recently? Return the program name. | [
"SELECT",
"name",
"FROM",
"program",
"ORDER",
"BY",
"launch",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"program",
"order",
"by",
"launch",
"desc",
"limit",
"value"
] | [
"Which",
"program",
"was",
"launched",
"most",
"recently",
"?",
"Return",
"the",
"program",
"name",
"."
] | [
"Which",
"<mask>",
"was",
"<mask>",
"most",
"recently",
"?",
"Return",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
program_share | SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV' | find the total percentage share of all channels owned by CCTV. | [
"SELECT",
"sum",
"(",
"Share_in_percent",
")",
"FROM",
"channel",
"WHERE",
"OWNER",
"=",
"'CCTV",
"'"
] | [
"select",
"sum",
"(",
"share_in_percent",
")",
"from",
"channel",
"where",
"owner",
"=",
"value"
] | [
"find",
"the",
"total",
"percentage",
"share",
"of",
"all",
"channels",
"owned",
"by",
"CCTV",
"."
] | [
"find",
"the",
"total",
"percentage",
"<mask>",
"of",
"all",
"<mask>",
"owned",
"by",
"CCTV",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV' | What is the total share (in percent) of all the channels owned by CCTV? | [
"SELECT",
"sum",
"(",
"Share_in_percent",
")",
"FROM",
"channel",
"WHERE",
"OWNER",
"=",
"'CCTV",
"'"
] | [
"select",
"sum",
"(",
"share_in_percent",
")",
"from",
"channel",
"where",
"owner",
"=",
"value"
] | [
"What",
"is",
"the",
"total",
"share",
"(",
"in",
"percent",
")",
"of",
"all",
"the",
"channels",
"owned",
"by",
"CCTV",
"?"
] | [
"What",
"is",
"the",
"total",
"<mask>",
"(",
"in",
"<mask>",
")",
"of",
"all",
"the",
"<mask>",
"owned",
"by",
"CCTV",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' | Find the names of the channels that are broadcast in the morning. | [
"SELECT",
"t1.name",
"FROM",
"channel",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.channel_id",
"=",
"t2.channel_id",
"WHERE",
"t2.time_of_day",
"=",
"'Morning",
"'"
] | [
"select",
"t1",
".",
"name",
"from",
"channel",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"channel_id",
"=",
"t2",
".",
"channel_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"the",
"channels",
"that",
"are",
"broadcast",
"in",
"the",
"morning",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"<mask>",
"in",
"the",
"morning",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' | Which channels are broadcast in the morning? 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",
"'"
] | [
"select",
"t1",
".",
"name",
"from",
"channel",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"channel_id",
"=",
"t2",
".",
"channel_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value"
] | [
"Which",
"channels",
"are",
"broadcast",
"in",
"the",
"morning",
"?",
"Give",
"me",
"the",
"channel",
"names",
"."
] | [
"Which",
"<mask>",
"are",
"<mask>",
"in",
"the",
"morning",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
program_share | 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' | what are the names of the channels that broadcast in both morning and night? | [
"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... | [
"select",
"t1",
".",
"name",
"from",
"channel",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"channel_id",
"=",
"t2",
".",
"channel_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
"from",
... | [
"what",
"are",
"the",
"names",
"of",
"the",
"channels",
"that",
"broadcast",
"in",
"both",
"morning",
"and",
"night",
"?"
] | [
"what",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"<mask>",
"in",
"both",
"morning",
"and",
"night",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
program_share | 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' | 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... | [
"select",
"t1",
".",
"name",
"from",
"channel",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"channel_id",
"=",
"t2",
".",
"channel_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
"from",
... | [
"Which",
"channels",
"broadcast",
"both",
"in",
"the",
"morning",
"and",
"at",
"night",
"?",
"Give",
"me",
"the",
"channel",
"names",
"."
] | [
"Which",
"<mask>",
"<mask>",
"both",
"in",
"the",
"morning",
"and",
"at",
"night",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
program_share | SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day | how many programs are broadcast in each time section of the day? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"time_of_day",
"FROM",
"broadcast",
"GROUP",
"BY",
"time_of_day"
] | [
"select",
"count",
"(",
"*",
")",
",",
"time_of_day",
"from",
"broadcast",
"group",
"by",
"time_of_day"
] | [
"how",
"many",
"programs",
"are",
"broadcast",
"in",
"each",
"time",
"section",
"of",
"the",
"day",
"?"
] | [
"how",
"many",
"<mask>",
"are",
"<mask>",
"in",
"each",
"<mask>",
"section",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
program_share | SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day | Count the number of programs broadcast for each time section of a day. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"time_of_day",
"FROM",
"broadcast",
"GROUP",
"BY",
"time_of_day"
] | [
"select",
"count",
"(",
"*",
")",
",",
"time_of_day",
"from",
"broadcast",
"group",
"by",
"time_of_day"
] | [
"Count",
"the",
"number",
"of",
"programs",
"broadcast",
"for",
"each",
"time",
"section",
"of",
"a",
"day",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"section",
"of",
"a",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
program_share | SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night' | find the number of different programs that are broadcast during night time. | [
"SELECT",
"count",
"(",
"DISTINCT",
"program_id",
")",
"FROM",
"broadcast",
"WHERE",
"time_of_day",
"=",
"'Night",
"'"
] | [
"select",
"count",
"(",
"distinct",
"program_id",
")",
"from",
"broadcast",
"where",
"time_of_day",
"=",
"value"
] | [
"find",
"the",
"number",
"of",
"different",
"programs",
"that",
"are",
"broadcast",
"during",
"night",
"time",
"."
] | [
"find",
"the",
"number",
"of",
"different",
"<mask>",
"that",
"are",
"<mask>",
"during",
"night",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night' | How many distinct programs are broadcast at "Night" time? | [
"SELECT",
"count",
"(",
"DISTINCT",
"program_id",
")",
"FROM",
"broadcast",
"WHERE",
"time_of_day",
"=",
"'Night",
"'"
] | [
"select",
"count",
"(",
"distinct",
"program_id",
")",
"from",
"broadcast",
"where",
"time_of_day",
"=",
"value"
] | [
"How",
"many",
"distinct",
"programs",
"are",
"broadcast",
"at",
"``",
"Night",
"''",
"time",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"are",
"<mask>",
"at",
"``",
"Night",
"''",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" | Find the names of programs that are never broadcasted in the morning. | [
"SELECT",
"name",
"FROM",
"program",
"EXCEPT",
"SELECT",
"t1.name",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"WHERE",
"t2.Time_of_day",
"=",
"``",
"Morning",
"''"
] | [
"select",
"name",
"from",
"program",
"except",
"select",
"t1",
".",
"name",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"programs",
"that",
"are",
"never",
"broadcasted",
"in",
"the",
"morning",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"that",
"are",
"never",
"<mask>",
"in",
"the",
"morning",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
program_share | SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" | Which programs are never broadcasted in the morning? Give me the names of the programs. | [
"SELECT",
"name",
"FROM",
"program",
"EXCEPT",
"SELECT",
"t1.name",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"WHERE",
"t2.Time_of_day",
"=",
"``",
"Morning",
"''"
] | [
"select",
"name",
"from",
"program",
"except",
"select",
"t1",
".",
"name",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value"
] | [
"Which",
"programs",
"are",
"never",
"broadcasted",
"in",
"the",
"morning",
"?",
"Give",
"me",
"the",
"names",
"of",
"the",
"programs",
"."
] | [
"Which",
"<mask>",
"are",
"never",
"<mask>",
"in",
"the",
"morning",
"?",
"Give",
"me",
"the",
"<mask>",
"of",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
program_share | SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night" | find the program owners that have some programs in both morning and night time. | [
"SELECT",
"t1.owner",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"WHERE",
"t2.Time_of_day",
"=",
"``",
"Morning",
"''",
"INTERSECT",
"SELECT",
"t1.owner",
"FROM",
"program",
"AS",
"t1",
"JOIN",
... | [
"select",
"t1",
".",
"owner",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value",
"intersect",
"select",
"t1",
".",
"owner",
"from",... | [
"find",
"the",
"program",
"owners",
"that",
"have",
"some",
"programs",
"in",
"both",
"morning",
"and",
"night",
"time",
"."
] | [
"find",
"the",
"<mask>",
"<mask>",
"that",
"have",
"some",
"<mask>",
"in",
"both",
"morning",
"and",
"night",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
program_share | SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night" | Who are the owners of the programs that broadcast both in the morning and at night? | [
"SELECT",
"t1.owner",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"WHERE",
"t2.Time_of_day",
"=",
"``",
"Morning",
"''",
"INTERSECT",
"SELECT",
"t1.owner",
"FROM",
"program",
"AS",
"t1",
"JOIN",
... | [
"select",
"t1",
".",
"owner",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"where",
"t2",
".",
"time_of_day",
"=",
"value",
"intersect",
"select",
"t1",
".",
"owner",
"from",... | [
"Who",
"are",
"the",
"owners",
"of",
"the",
"programs",
"that",
"broadcast",
"both",
"in",
"the",
"morning",
"and",
"at",
"night",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"<mask>",
"both",
"in",
"the",
"morning",
"and",
"at",
"night",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
program_share | SELECT origin FROM program ORDER BY origin | List all program origins in the alphabetical order. | [
"SELECT",
"origin",
"FROM",
"program",
"ORDER",
"BY",
"origin"
] | [
"select",
"origin",
"from",
"program",
"order",
"by",
"origin"
] | [
"List",
"all",
"program",
"origins",
"in",
"the",
"alphabetical",
"order",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"in",
"the",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
program_share | SELECT origin FROM program ORDER BY origin | What is the list of program origins ordered alphabetically? | [
"SELECT",
"origin",
"FROM",
"program",
"ORDER",
"BY",
"origin"
] | [
"select",
"origin",
"from",
"program",
"order",
"by",
"origin"
] | [
"What",
"is",
"the",
"list",
"of",
"program",
"origins",
"ordered",
"alphabetically",
"?"
] | [
"What",
"is",
"the",
"list",
"of",
"<mask>",
"<mask>",
"ordered",
"alphabetically",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
program_share | SELECT count(DISTINCT OWNER) FROM channel | what is the number of different channel owners? | [
"SELECT",
"count",
"(",
"DISTINCT",
"OWNER",
")",
"FROM",
"channel"
] | [
"select",
"count",
"(",
"distinct",
"owner",
")",
"from",
"channel"
] | [
"what",
"is",
"the",
"number",
"of",
"different",
"channel",
"owners",
"?"
] | [
"what",
"is",
"the",
"number",
"of",
"different",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
program_share | SELECT count(DISTINCT OWNER) FROM channel | Count the number of distinct channel owners. | [
"SELECT",
"count",
"(",
"DISTINCT",
"OWNER",
")",
"FROM",
"channel"
] | [
"select",
"count",
"(",
"distinct",
"owner",
")",
"from",
"channel"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"channel",
"owners",
"."
] | [
"Count",
"the",
"number",
"of",
"distinct",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
program_share | SELECT name FROM program WHERE origin != 'Beijing' | find the names of programs whose origin is not in Beijing. | [
"SELECT",
"name",
"FROM",
"program",
"WHERE",
"origin",
"!",
"=",
"'Beijing",
"'"
] | [
"select",
"name",
"from",
"program",
"where",
"origin",
"!",
"=",
"value"
] | [
"find",
"the",
"names",
"of",
"programs",
"whose",
"origin",
"is",
"not",
"in",
"Beijing",
"."
] | [
"find",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"not",
"in",
"Beijing",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
program_share | SELECT name FROM program WHERE origin != 'Beijing' | Which programs' origins are not "Beijing"? Give me the program names. | [
"SELECT",
"name",
"FROM",
"program",
"WHERE",
"origin",
"!",
"=",
"'Beijing",
"'"
] | [
"select",
"name",
"from",
"program",
"where",
"origin",
"!",
"=",
"value"
] | [
"Which",
"programs",
"'",
"origins",
"are",
"not",
"``",
"Beijing",
"''",
"?",
"Give",
"me",
"the",
"program",
"names",
"."
] | [
"Which",
"<mask>",
"'",
"<mask>",
"are",
"not",
"``",
"Beijing",
"''",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
program_share | SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' | What are the names of the channels owned by CCTV or HBS? | [
"SELECT",
"name",
"FROM",
"channel",
"WHERE",
"OWNER",
"=",
"'CCTV",
"'",
"OR",
"OWNER",
"=",
"'HBS",
"'"
] | [
"select",
"name",
"from",
"channel",
"where",
"owner",
"=",
"value",
"or",
"owner",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"channels",
"owned",
"by",
"CCTV",
"or",
"HBS",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"owned",
"by",
"CCTV",
"or",
"HBS",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' | List the names of all the channels owned by either CCTV or HBS | [
"SELECT",
"name",
"FROM",
"channel",
"WHERE",
"OWNER",
"=",
"'CCTV",
"'",
"OR",
"OWNER",
"=",
"'HBS",
"'"
] | [
"select",
"name",
"from",
"channel",
"where",
"owner",
"=",
"value",
"or",
"owner",
"=",
"value"
] | [
"List",
"the",
"names",
"of",
"all",
"the",
"channels",
"owned",
"by",
"either",
"CCTV",
"or",
"HBS"
] | [
"List",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"owned",
"by",
"either",
"CCTV",
"or",
"HBS"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
program_share | SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER | Find the total rating ratio for each channel owner. | [
"SELECT",
"sum",
"(",
"Rating_in_percent",
")",
",",
"OWNER",
"FROM",
"channel",
"GROUP",
"BY",
"OWNER"
] | [
"select",
"sum",
"(",
"rating_in_percent",
")",
",",
"owner",
"from",
"channel",
"group",
"by",
"owner"
] | [
"Find",
"the",
"total",
"rating",
"ratio",
"for",
"each",
"channel",
"owner",
"."
] | [
"Find",
"the",
"total",
"<mask>",
"ratio",
"for",
"each",
"<mask>",
"<mask>",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
program_share | SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER | What is the total rating of channel for each channel owner? | [
"SELECT",
"sum",
"(",
"Rating_in_percent",
")",
",",
"OWNER",
"FROM",
"channel",
"GROUP",
"BY",
"OWNER"
] | [
"select",
"sum",
"(",
"rating_in_percent",
")",
",",
"owner",
"from",
"channel",
"group",
"by",
"owner"
] | [
"What",
"is",
"the",
"total",
"rating",
"of",
"channel",
"for",
"each",
"channel",
"owner",
"?"
] | [
"What",
"is",
"the",
"total",
"<mask>",
"of",
"<mask>",
"for",
"each",
"<mask>",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
program_share | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1 | Find the name of the program that is broadcast most frequently. | [
"SELECT",
"t1.name",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"GROUP",
"BY",
"t2.program_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"group",
"by",
"t2",
".",
"program_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
... | [
"Find",
"the",
"name",
"of",
"the",
"program",
"that",
"is",
"broadcast",
"most",
"frequently",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"is",
"<mask>",
"most",
"frequently",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
program_share | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1 | Which program is broadcast most frequently? Give me the program name. | [
"SELECT",
"t1.name",
"FROM",
"program",
"AS",
"t1",
"JOIN",
"broadcast",
"AS",
"t2",
"ON",
"t1.program_id",
"=",
"t2.program_id",
"GROUP",
"BY",
"t2.program_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"program",
"as",
"t1",
"join",
"broadcast",
"as",
"t2",
"on",
"t1",
".",
"program_id",
"=",
"t2",
".",
"program_id",
"group",
"by",
"t2",
".",
"program_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
... | [
"Which",
"program",
"is",
"broadcast",
"most",
"frequently",
"?",
"Give",
"me",
"the",
"program",
"name",
"."
] | [
"Which",
"<mask>",
"is",
"<mask>",
"most",
"frequently",
"?",
"Give",
"me",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"... |
e_learning | SELECT count(*) FROM COURSES | How many courses are there in total? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"COURSES"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"courses"
] | [
"How",
"many",
"courses",
"are",
"there",
"in",
"total",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"in",
"total",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
e_learning | SELECT count(*) FROM COURSES | Find the total number of courses offered. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"COURSES"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"courses"
] | [
"Find",
"the",
"total",
"number",
"of",
"courses",
"offered",
"."
] | [
"Find",
"the",
"total",
"number",
"of",
"<mask>",
"offered",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
e_learning | SELECT course_description FROM COURSES WHERE course_name = "database" | What are the descriptions of the courses with name "database"? | [
"SELECT",
"course_description",
"FROM",
"COURSES",
"WHERE",
"course_name",
"=",
"``",
"database",
"''"
] | [
"select",
"course_description",
"from",
"courses",
"where",
"course_name",
"=",
"value"
] | [
"What",
"are",
"the",
"descriptions",
"of",
"the",
"courses",
"with",
"name",
"``",
"database",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"<mask>",
"``",
"database",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT course_description FROM COURSES WHERE course_name = "database" | Return the description for the courses named "database". | [
"SELECT",
"course_description",
"FROM",
"COURSES",
"WHERE",
"course_name",
"=",
"``",
"database",
"''"
] | [
"select",
"course_description",
"from",
"courses",
"where",
"course_name",
"=",
"value"
] | [
"Return",
"the",
"description",
"for",
"the",
"courses",
"named",
"``",
"database",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"for",
"the",
"<mask>",
"<mask>",
"``",
"database",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = "Cathrine" | What are the addresses of the course authors or tutors with personal name "Cathrine" | [
"SELECT",
"address_line_1",
"FROM",
"Course_Authors_and_Tutors",
"WHERE",
"personal_name",
"=",
"``",
"Cathrine",
"''"
] | [
"select",
"address_line_1",
"from",
"course_authors_and_tutors",
"where",
"personal_name",
"=",
"value"
] | [
"What",
"are",
"the",
"addresses",
"of",
"the",
"course",
"authors",
"or",
"tutors",
"with",
"personal",
"name",
"``",
"Cathrine",
"''"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"or",
"<mask>",
"with",
"<mask>",
"<mask>",
"``",
"Cathrine",
"''"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = "Cathrine" | Return the addresses of the course authors or tutors whose personal name is "Cathrine". | [
"SELECT",
"address_line_1",
"FROM",
"Course_Authors_and_Tutors",
"WHERE",
"personal_name",
"=",
"``",
"Cathrine",
"''"
] | [
"select",
"address_line_1",
"from",
"course_authors_and_tutors",
"where",
"personal_name",
"=",
"value"
] | [
"Return",
"the",
"addresses",
"of",
"the",
"course",
"authors",
"or",
"tutors",
"whose",
"personal",
"name",
"is",
"``",
"Cathrine",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"or",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"``",
"Cathrine",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT address_line_1 FROM Course_Authors_and_Tutors | List the addresses of all the course authors or tutors. | [
"SELECT",
"address_line_1",
"FROM",
"Course_Authors_and_Tutors"
] | [
"select",
"address_line_1",
"from",
"course_authors_and_tutors"
] | [
"List",
"the",
"addresses",
"of",
"all",
"the",
"course",
"authors",
"or",
"tutors",
"."
] | [
"List",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"<mask>",
"or",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT address_line_1 FROM Course_Authors_and_Tutors | What is the address of each course author or tutor? | [
"SELECT",
"address_line_1",
"FROM",
"Course_Authors_and_Tutors"
] | [
"select",
"address_line_1",
"from",
"course_authors_and_tutors"
] | [
"What",
"is",
"the",
"address",
"of",
"each",
"course",
"author",
"or",
"tutor",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"each",
"<mask>",
"<mask>",
"or",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT login_name , family_name FROM Course_Authors_and_Tutors | List all the login names and family names of course author and tutors. | [
"SELECT",
"login_name",
",",
"family_name",
"FROM",
"Course_Authors_and_Tutors"
] | [
"select",
"login_name",
",",
"family_name",
"from",
"course_authors_and_tutors"
] | [
"List",
"all",
"the",
"login",
"names",
"and",
"family",
"names",
"of",
"course",
"author",
"and",
"tutors",
"."
] | [
"List",
"all",
"the",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT login_name , family_name FROM Course_Authors_and_Tutors | What are the login names and family names of course author and tutors? | [
"SELECT",
"login_name",
",",
"family_name",
"FROM",
"Course_Authors_and_Tutors"
] | [
"select",
"login_name",
",",
"family_name",
"from",
"course_authors_and_tutors"
] | [
"What",
"are",
"the",
"login",
"names",
"and",
"family",
"names",
"of",
"course",
"author",
"and",
"tutors",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"of",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment | List all the dates of enrollment and completion of students. | [
"SELECT",
"date_of_enrolment",
",",
"date_of_completion",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"date_of_enrolment",
",",
"date_of_completion",
"from",
"student_course_enrolment"
] | [
"List",
"all",
"the",
"dates",
"of",
"enrollment",
"and",
"completion",
"of",
"students",
"."
] | [
"List",
"all",
"the",
"<mask>",
"of",
"enrollment",
"<mask>",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment | What are all the dates of enrollment and completion in record? | [
"SELECT",
"date_of_enrolment",
",",
"date_of_completion",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"date_of_enrolment",
",",
"date_of_completion",
"from",
"student_course_enrolment"
] | [
"What",
"are",
"all",
"the",
"dates",
"of",
"enrollment",
"and",
"completion",
"in",
"record",
"?"
] | [
"What",
"are",
"all",
"the",
"<mask>",
"of",
"enrollment",
"<mask>",
"<mask>",
"in",
"record",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment | How many distinct students are enrolled in courses? | [
"SELECT",
"count",
"(",
"DISTINCT",
"student_id",
")",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"count",
"(",
"distinct",
"student_id",
")",
"from",
"student_course_enrolment"
] | [
"How",
"many",
"distinct",
"students",
"are",
"enrolled",
"in",
"courses",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"are",
"enrolled",
"in",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
e_learning | SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment | Find the number of distinct students enrolled in courses. | [
"SELECT",
"count",
"(",
"DISTINCT",
"student_id",
")",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"count",
"(",
"distinct",
"student_id",
")",
"from",
"student_course_enrolment"
] | [
"Find",
"the",
"number",
"of",
"distinct",
"students",
"enrolled",
"in",
"courses",
"."
] | [
"Find",
"the",
"number",
"of",
"distinct",
"<mask>",
"enrolled",
"in",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
e_learning | SELECT count(course_id) FROM Student_Course_Enrolment | How many distinct courses are enrolled in by students? | [
"SELECT",
"count",
"(",
"course_id",
")",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"count",
"(",
"course_id",
")",
"from",
"student_course_enrolment"
] | [
"How",
"many",
"distinct",
"courses",
"are",
"enrolled",
"in",
"by",
"students",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"are",
"enrolled",
"in",
"by",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
e_learning | SELECT count(course_id) FROM Student_Course_Enrolment | Find the number of distinct courses that have enrolled students. | [
"SELECT",
"count",
"(",
"course_id",
")",
"FROM",
"Student_Course_Enrolment"
] | [
"select",
"count",
"(",
"course_id",
")",
"from",
"student_course_enrolment"
] | [
"Find",
"the",
"number",
"of",
"distinct",
"courses",
"that",
"have",
"enrolled",
"students",
"."
] | [
"Find",
"the",
"number",
"of",
"distinct",
"<mask>",
"that",
"have",
"enrolled",
"<mask>",
"."
] | [
"select",
"count",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
e_learning | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass" | Find the dates of the tests taken with result "Pass". | [
"SELECT",
"date_test_taken",
"FROM",
"Student_Tests_Taken",
"WHERE",
"test_result",
"=",
"``",
"Pass",
"''"
] | [
"select",
"date_test_taken",
"from",
"student_tests_taken",
"where",
"test_result",
"=",
"value"
] | [
"Find",
"the",
"dates",
"of",
"the",
"tests",
"taken",
"with",
"result",
"``",
"Pass",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"taken",
"with",
"<mask>",
"``",
"Pass",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass" | Which tests have "Pass" results? Return the dates when the tests were taken. | [
"SELECT",
"date_test_taken",
"FROM",
"Student_Tests_Taken",
"WHERE",
"test_result",
"=",
"``",
"Pass",
"''"
] | [
"select",
"date_test_taken",
"from",
"student_tests_taken",
"where",
"test_result",
"=",
"value"
] | [
"Which",
"tests",
"have",
"``",
"Pass",
"''",
"results",
"?",
"Return",
"the",
"dates",
"when",
"the",
"tests",
"were",
"taken",
"."
] | [
"Which",
"<mask>",
"have",
"``",
"Pass",
"''",
"<mask>",
"?",
"Return",
"the",
"<mask>",
"when",
"the",
"<mask>",
"were",
"taken",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT count(*) FROM Student_Tests_Taken WHERE test_result = "Fail" | How many tests have result "Fail"? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student_Tests_Taken",
"WHERE",
"test_result",
"=",
"``",
"Fail",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student_tests_taken",
"where",
"test_result",
"=",
"value"
] | [
"How",
"many",
"tests",
"have",
"result",
"``",
"Fail",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"<mask>",
"``",
"Fail",
"''",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT count(*) FROM Student_Tests_Taken WHERE test_result = "Fail" | Count the number of tests with "Fail" result. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student_Tests_Taken",
"WHERE",
"test_result",
"=",
"``",
"Fail",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student_tests_taken",
"where",
"test_result",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"tests",
"with",
"``",
"Fail",
"''",
"result",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"with",
"``",
"Fail",
"''",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT login_name FROM Students WHERE family_name = "Ward" | What are the login names of the students with family name "Ward"? | [
"SELECT",
"login_name",
"FROM",
"Students",
"WHERE",
"family_name",
"=",
"``",
"Ward",
"''"
] | [
"select",
"login_name",
"from",
"students",
"where",
"family_name",
"=",
"value"
] | [
"What",
"are",
"the",
"login",
"names",
"of",
"the",
"students",
"with",
"family",
"name",
"``",
"Ward",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"with",
"<mask>",
"<mask>",
"``",
"Ward",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT login_name FROM Students WHERE family_name = "Ward" | Return the login names of the students whose family name is "Ward". | [
"SELECT",
"login_name",
"FROM",
"Students",
"WHERE",
"family_name",
"=",
"``",
"Ward",
"''"
] | [
"select",
"login_name",
"from",
"students",
"where",
"family_name",
"=",
"value"
] | [
"Return",
"the",
"login",
"names",
"of",
"the",
"students",
"whose",
"family",
"name",
"is",
"``",
"Ward",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"``",
"Ward",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"? | [
"SELECT",
"date_of_latest_logon",
"FROM",
"Students",
"WHERE",
"family_name",
"=",
"``",
"Jaskolski",
"''",
"OR",
"family_name",
"=",
"``",
"Langosh",
"''"
] | [
"select",
"date_of_latest_logon",
"from",
"students",
"where",
"family_name",
"=",
"value",
"or",
"family_name",
"=",
"value"
] | [
"What",
"are",
"the",
"dates",
"of",
"the",
"latest",
"logon",
"of",
"the",
"students",
"with",
"family",
"name",
"``",
"Jaskolski",
"''",
"or",
"``",
"Langosh",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"latest",
"<mask>",
"of",
"the",
"<mask>",
"with",
"<mask>",
"<mask>",
"``",
"Jaskolski",
"''",
"or",
"``",
"Langosh",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | Find the latest logon date of the students whose family name is "Jaskolski" or "Langosh". | [
"SELECT",
"date_of_latest_logon",
"FROM",
"Students",
"WHERE",
"family_name",
"=",
"``",
"Jaskolski",
"''",
"OR",
"family_name",
"=",
"``",
"Langosh",
"''"
] | [
"select",
"date_of_latest_logon",
"from",
"students",
"where",
"family_name",
"=",
"value",
"or",
"family_name",
"=",
"value"
] | [
"Find",
"the",
"latest",
"logon",
"date",
"of",
"the",
"students",
"whose",
"family",
"name",
"is",
"``",
"Jaskolski",
"''",
"or",
"``",
"Langosh",
"''",
"."
] | [
"Find",
"the",
"latest",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"``",
"Jaskolski",
"''",
"or",
"``",
"Langosh",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
e_learning | SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%" | How many students have personal names that contain the word "son"? | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"Students",
"WHERE",
"personal_name",
"LIKE",
"``",
"%",
"son",
"%",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"students",
"where",
"personal_name",
"like",
"value"
] | [
"How",
"many",
"students",
"have",
"personal",
"names",
"that",
"contain",
"the",
"word",
"``",
"son",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"<mask>",
"<mask>",
"that",
"contain",
"the",
"word",
"``",
"son",
"''",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
e_learning | SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%" | Find the number of students who have the word "son" in their personal names. | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"Students",
"WHERE",
"personal_name",
"LIKE",
"``",
"%",
"son",
"%",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"students",
"where",
"personal_name",
"like",
"value"
] | [
"Find",
"the",
"number",
"of",
"students",
"who",
"have",
"the",
"word",
"``",
"son",
"''",
"in",
"their",
"personal",
"names",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"who",
"have",
"the",
"word",
"``",
"son",
"''",
"in",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
e_learning | SELECT subject_name FROM SUBJECTS | List all the subject names. | [
"SELECT",
"subject_name",
"FROM",
"SUBJECTS"
] | [
"select",
"subject_name",
"from",
"subjects"
] | [
"List",
"all",
"the",
"subject",
"names",
"."
] | [
"List",
"all",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT subject_name FROM SUBJECTS | What are the names of all the subjects. | [
"SELECT",
"subject_name",
"FROM",
"SUBJECTS"
] | [
"select",
"subject_name",
"from",
"subjects"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"subjects",
"."
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
e_learning | SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name | List all the information about course authors and tutors in alphabetical order of the personal name. | [
"SELECT",
"*",
"FROM",
"Course_Authors_and_Tutors",
"ORDER",
"BY",
"personal_name"
] | [
"select",
"*",
"from",
"course_authors_and_tutors",
"order",
"by",
"personal_name"
] | [
"List",
"all",
"the",
"information",
"about",
"course",
"authors",
"and",
"tutors",
"in",
"alphabetical",
"order",
"of",
"the",
"personal",
"name",
"."
] | [
"List",
"all",
"the",
"information",
"about",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"in",
"alphabetical",
"order",
"of",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"*",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
e_learning | SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name | Sort the information about course authors and tutors in alphabetical order of the personal name. | [
"SELECT",
"*",
"FROM",
"Course_Authors_and_Tutors",
"ORDER",
"BY",
"personal_name"
] | [
"select",
"*",
"from",
"course_authors_and_tutors",
"order",
"by",
"personal_name"
] | [
"Sort",
"the",
"information",
"about",
"course",
"authors",
"and",
"tutors",
"in",
"alphabetical",
"order",
"of",
"the",
"personal",
"name",
"."
] | [
"Sort",
"the",
"information",
"about",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"in",
"alphabetical",
"order",
"of",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"*",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
e_learning | SELECT personal_name , family_name FROM Students ORDER BY family_name | List the personal names and family names of all the students in alphabetical order of family name. | [
"SELECT",
"personal_name",
",",
"family_name",
"FROM",
"Students",
"ORDER",
"BY",
"family_name"
] | [
"select",
"personal_name",
",",
"family_name",
"from",
"students",
"order",
"by",
"family_name"
] | [
"List",
"the",
"personal",
"names",
"and",
"family",
"names",
"of",
"all",
"the",
"students",
"in",
"alphabetical",
"order",
"of",
"family",
"name",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"in",
"alphabetical",
"order",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
e_learning | SELECT personal_name , family_name FROM Students ORDER BY family_name | What are the personal names and family names of the students? Sort the result in alphabetical order of the family name. | [
"SELECT",
"personal_name",
",",
"family_name",
"FROM",
"Students",
"ORDER",
"BY",
"family_name"
] | [
"select",
"personal_name",
",",
"family_name",
"from",
"students",
"order",
"by",
"family_name"
] | [
"What",
"are",
"the",
"personal",
"names",
"and",
"family",
"names",
"of",
"the",
"students",
"?",
"Sort",
"the",
"result",
"in",
"alphabetical",
"order",
"of",
"the",
"family",
"name",
"."
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"?",
"Sort",
"the",
"<mask>",
"in",
"alphabetical",
"order",
"of",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.