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 |
|---|---|---|---|---|---|---|---|
game_1 | SELECT count(DISTINCT sportname) FROM Sportsinfo | How many different types of sports do we offer? | [
"SELECT",
"count",
"(",
"DISTINCT",
"sportname",
")",
"FROM",
"Sportsinfo"
] | [
"select",
"count",
"(",
"distinct",
"sportname",
")",
"from",
"sportsinfo"
] | [
"How",
"many",
"different",
"types",
"of",
"sports",
"do",
"we",
"offer",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"of",
"<mask>",
"do",
"we",
"offer",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT count(DISTINCT StuID) FROM Sportsinfo | How many students play sports? | [
"SELECT",
"count",
"(",
"DISTINCT",
"StuID",
")",
"FROM",
"Sportsinfo"
] | [
"select",
"count",
"(",
"distinct",
"stuid",
")",
"from",
"sportsinfo"
] | [
"How",
"many",
"students",
"play",
"sports",
"?"
] | [
"How",
"many",
"<mask>",
"play",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT count(DISTINCT StuID) FROM Sportsinfo | How many different students are involved in sports? | [
"SELECT",
"count",
"(",
"DISTINCT",
"StuID",
")",
"FROM",
"Sportsinfo"
] | [
"select",
"count",
"(",
"distinct",
"stuid",
")",
"from",
"sportsinfo"
] | [
"How",
"many",
"different",
"students",
"are",
"involved",
"in",
"sports",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"are",
"involved",
"in",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' | List ids for all student who are on scholarship. | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value"
] | [
"List",
"ids",
"for",
"all",
"student",
"who",
"are",
"on",
"scholarship",
"."
] | [
"List",
"ids",
"for",
"all",
"<mask>",
"who",
"are",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' | What are the ids for all sporty students who are on scholarship? | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value"
] | [
"What",
"are",
"the",
"ids",
"for",
"all",
"sporty",
"students",
"who",
"are",
"on",
"scholarship",
"?"
] | [
"What",
"are",
"the",
"ids",
"for",
"all",
"sporty",
"<mask>",
"who",
"are",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' | Show last names for all student who are on scholarship. | [
"SELECT",
"T2.Lname",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T1.onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"t2",
".",
"lname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t1",
".",
"onscholarship",
"=",
"value"
] | [
"Show",
"last",
"names",
"for",
"all",
"student",
"who",
"are",
"on",
"scholarship",
"."
] | [
"Show",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"who",
"are",
"on",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' | What are the last names for all scholarship students? | [
"SELECT",
"T2.Lname",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T1.onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"t2",
".",
"lname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t1",
".",
"onscholarship",
"=",
"value"
] | [
"What",
"are",
"the",
"last",
"names",
"for",
"all",
"scholarship",
"students",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT sum(gamesplayed) FROM Sportsinfo | How many games are played for all students? | [
"SELECT",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo"
] | [
"select",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo"
] | [
"How",
"many",
"games",
"are",
"played",
"for",
"all",
"students",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"played",
"for",
"all",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT sum(gamesplayed) FROM Sportsinfo | What is the total number of games played? | [
"SELECT",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo"
] | [
"select",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"games",
"played",
"?"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"<mask>",
"played",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = "Football" AND onscholarship = 'Y' | How many games are played for all football games by students on scholarship? | [
"SELECT",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''",
"AND",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
"and",
"onscholarship",
"=",
"value"
] | [
"How",
"many",
"games",
"are",
"played",
"for",
"all",
"football",
"games",
"by",
"students",
"on",
"scholarship",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"played",
"for",
"all",
"football",
"<mask>",
"by",
"<mask>",
"on",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = "Football" AND onscholarship = 'Y' | What is the total number of all football games played by scholarship students? | [
"SELECT",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''",
"AND",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
"and",
"onscholarship",
"=",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"all",
"football",
"games",
"played",
"by",
"scholarship",
"students",
"?"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"all",
"football",
"<mask>",
"played",
"by",
"<mask>",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname | Show all sport name and the number of students. | [
"SELECT",
"sportname",
",",
"count",
"(",
"*",
")",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"sportname"
] | [
"select",
"sportname",
",",
"count",
"(",
"*",
")",
"from",
"sportsinfo",
"group",
"by",
"sportname"
] | [
"Show",
"all",
"sport",
"name",
"and",
"the",
"number",
"of",
"students",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname | How many students play each sport? | [
"SELECT",
"sportname",
",",
"count",
"(",
"*",
")",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"sportname"
] | [
"select",
"sportname",
",",
"count",
"(",
"*",
")",
"from",
"sportsinfo",
"group",
"by",
"sportname"
] | [
"How",
"many",
"students",
"play",
"each",
"sport",
"?"
] | [
"How",
"many",
"<mask>",
"play",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID | Show all student IDs with the number of sports and total number of games played | [
"SELECT",
"StuID",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"StuID"
] | [
"select",
"stuid",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"group",
"by",
"stuid"
] | [
"Show",
"all",
"student",
"IDs",
"with",
"the",
"number",
"of",
"sports",
"and",
"total",
"number",
"of",
"games",
"played"
] | [
"Show",
"all",
"<mask>",
"IDs",
"with",
"the",
"number",
"of",
"<mask>",
"and",
"total",
"number",
"of",
"<mask>",
"played"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID | What are the ids of all students along with how many sports and games did they play? | [
"SELECT",
"StuID",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"StuID"
] | [
"select",
"stuid",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"group",
"by",
"stuid"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"along",
"with",
"how",
"many",
"sports",
"and",
"games",
"did",
"they",
"play",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"along",
"with",
"how",
"many",
"<mask>",
"and",
"<mask>",
"did",
"they",
"play",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10 | Show all student IDs with more than total 10 hours per week on all sports played. | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"StuID",
"HAVING",
"sum",
"(",
"hoursperweek",
")",
">",
"10"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"group",
"by",
"stuid",
"having",
"sum",
"(",
"hoursperweek",
")",
">",
"value"
] | [
"Show",
"all",
"student",
"IDs",
"with",
"more",
"than",
"total",
"10",
"hours",
"per",
"week",
"on",
"all",
"sports",
"played",
"."
] | [
"Show",
"all",
"<mask>",
"IDs",
"with",
"more",
"than",
"total",
"<unk>",
"hours",
"<mask>",
"<mask>",
"on",
"all",
"<mask>",
"played",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"sum",
"(",
"<mask>",
")",
">",
"<unk>"
] |
game_1 | SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10 | What are the student IDs for everybody who worked for more than 10 hours per week on all sports? | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"GROUP",
"BY",
"StuID",
"HAVING",
"sum",
"(",
"hoursperweek",
")",
">",
"10"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"group",
"by",
"stuid",
"having",
"sum",
"(",
"hoursperweek",
")",
">",
"value"
] | [
"What",
"are",
"the",
"student",
"IDs",
"for",
"everybody",
"who",
"worked",
"for",
"more",
"than",
"10",
"hours",
"per",
"week",
"on",
"all",
"sports",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"IDs",
"for",
"everybody",
"who",
"worked",
"for",
"more",
"than",
"<unk>",
"hours",
"<mask>",
"<mask>",
"on",
"all",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"sum",
"(",
"<mask>",
")",
">",
"<unk>"
] |
game_1 | SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1 | What is the first name and last name of the student who have most number of sports? | [
"SELECT",
"T2.Fname",
",",
"T2.Lname",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"GROUP",
"BY",
"T1.StuID",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"fname",
",",
"t2",
".",
"lname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"group",
"by",
"t1",
".",
"stuid",
"order",
"by",
"count",
"(",
"*",
")",
"... | [
"What",
"is",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"the",
"student",
"who",
"have",
"most",
"number",
"of",
"sports",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"most",
"number",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
game_1 | SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1 | What is the first and last name of the student who played the most sports? | [
"SELECT",
"T2.Fname",
",",
"T2.Lname",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"GROUP",
"BY",
"T1.StuID",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"fname",
",",
"t2",
".",
"lname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"group",
"by",
"t1",
".",
"stuid",
"order",
"by",
"count",
"(",
"*",
")",
"... | [
"What",
"is",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"student",
"who",
"played",
"the",
"most",
"sports",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"played",
"the",
"most",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
game_1 | SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1 | Which sport has most number of students on scholarship? | [
"SELECT",
"sportname",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'",
"GROUP",
"BY",
"sportname",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"sportname",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value",
"group",
"by",
"sportname",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"sport",
"has",
"most",
"number",
"of",
"students",
"on",
"scholarship",
"?"
] | [
"Which",
"<mask>",
"has",
"most",
"number",
"of",
"<mask>",
"on",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
game_1 | SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1 | What is the sport with the most scholarship students? | [
"SELECT",
"sportname",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'",
"GROUP",
"BY",
"sportname",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"sportname",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value",
"group",
"by",
"sportname",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"sport",
"with",
"the",
"most",
"scholarship",
"students",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"with",
"the",
"most",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
game_1 | SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo | Show student ids who don't have any sports. | [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo"
] | [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"sportsinfo"
] | [
"Show",
"student",
"ids",
"who",
"do",
"n't",
"have",
"any",
"sports",
"."
] | [
"Show",
"<mask>",
"ids",
"who",
"do",
"n't",
"have",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo | What are the ids of all students who don't play sports? | [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo"
] | [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"sportsinfo"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"who",
"do",
"n't",
"play",
"sports",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"who",
"do",
"n't",
"play",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' | Show student ids who are on scholarship and have major 600. | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"major",
"=",
"600",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"stuid",
"from",
"student",
"where",
"major",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value"
] | [
"Show",
"student",
"ids",
"who",
"are",
"on",
"scholarship",
"and",
"have",
"major",
"600",
"."
] | [
"Show",
"<mask>",
"ids",
"who",
"are",
"on",
"<mask>",
"and",
"have",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' | What are the student ids for those on scholarship in major number 600? | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"major",
"=",
"600",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"onscholarship",
"=",
"'Y",
"'"
] | [
"select",
"stuid",
"from",
"student",
"where",
"major",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"onscholarship",
"=",
"value"
] | [
"What",
"are",
"the",
"student",
"ids",
"for",
"those",
"on",
"scholarship",
"in",
"major",
"number",
"600",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"ids",
"for",
"those",
"on",
"<mask>",
"in",
"<mask>",
"number",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = "Football" | Show student ids who are female and play football. | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"'F",
"'",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''"
] | [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value"
] | [
"Show",
"student",
"ids",
"who",
"are",
"female",
"and",
"play",
"football",
"."
] | [
"Show",
"<mask>",
"ids",
"who",
"are",
"female",
"and",
"play",
"football",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = "Football" | What are the ids of all female students who play football? | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"'F",
"'",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''"
] | [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"female",
"students",
"who",
"play",
"football",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"female",
"<mask>",
"who",
"play",
"football",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football" | Show all male student ids who don't play football. | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"'M",
"'",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''"
] | [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value",
"except",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value"
] | [
"Show",
"all",
"male",
"student",
"ids",
"who",
"do",
"n't",
"play",
"football",
"."
] | [
"Show",
"all",
"male",
"<mask>",
"ids",
"who",
"do",
"n't",
"play",
"football",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football" | What are the ids of all male students who do not play football? | [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"'M",
"'",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"sportname",
"=",
"``",
"Football",
"''"
] | [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value",
"except",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"male",
"students",
"who",
"do",
"not",
"play",
"football",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"male",
"<mask>",
"who",
"do",
"not",
"play",
"football",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
game_1 | SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = "David" AND T2.Lname = "Shieber" | Show total hours per week and number of games played for student David Shieber. | [
"SELECT",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.Fname",
"=",
"``",
"David",
"''",
"AND",
"T2.Lname",
"=",
"``... | [
"select",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"fname",
"=",
"value",
"and",
"t2"... | [
"Show",
"total",
"hours",
"per",
"week",
"and",
"number",
"of",
"games",
"played",
"for",
"student",
"David",
"Shieber",
"."
] | [
"Show",
"total",
"hours",
"<mask>",
"<mask>",
"and",
"number",
"of",
"<mask>",
"played",
"for",
"<mask>",
"David",
"Shieber",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",... |
game_1 | SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = "David" AND T2.Lname = "Shieber" | What is the total number of hours per work and number of games played by David Shieber? | [
"SELECT",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.Fname",
"=",
"``",
"David",
"''",
"AND",
"T2.Lname",
"=",
"``... | [
"select",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"fname",
"=",
"value",
"and",
"t2"... | [
"What",
"is",
"the",
"total",
"number",
"of",
"hours",
"per",
"work",
"and",
"number",
"of",
"games",
"played",
"by",
"David",
"Shieber",
"?"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"hours",
"<mask>",
"work",
"and",
"number",
"of",
"<mask>",
"played",
"by",
"David",
"Shieber",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",... |
game_1 | SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20 | Show total hours per week and number of games played for students under 20. | [
"SELECT",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.age",
"<",
"20"
] | [
"select",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"age",
"<",
"value"
] | [
"Show",
"total",
"hours",
"per",
"week",
"and",
"number",
"of",
"games",
"played",
"for",
"students",
"under",
"20",
"."
] | [
"Show",
"total",
"hours",
"<mask>",
"<mask>",
"and",
"number",
"of",
"<mask>",
"played",
"for",
"<mask>",
"under",
"<unk>",
"."
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
game_1 | SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20 | What is the total number of hours per week and number of games played by students under 20? | [
"SELECT",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"FROM",
"Sportsinfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.age",
"<",
"20"
] | [
"select",
"sum",
"(",
"hoursperweek",
")",
",",
"sum",
"(",
"gamesplayed",
")",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"age",
"<",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"hours",
"per",
"week",
"and",
"number",
"of",
"games",
"played",
"by",
"students",
"under",
"20",
"?"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"hours",
"<mask>",
"<mask>",
"and",
"number",
"of",
"<mask>",
"played",
"by",
"<mask>",
"under",
"<unk>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
game_1 | SELECT count(DISTINCT StuID) FROM Plays_games | How many students play video games? | [
"SELECT",
"count",
"(",
"DISTINCT",
"StuID",
")",
"FROM",
"Plays_games"
] | [
"select",
"count",
"(",
"distinct",
"stuid",
")",
"from",
"plays_games"
] | [
"How",
"many",
"students",
"play",
"video",
"games",
"?"
] | [
"How",
"many",
"<mask>",
"play",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT count(DISTINCT StuID) FROM Plays_games | How many different students play games? | [
"SELECT",
"count",
"(",
"DISTINCT",
"StuID",
")",
"FROM",
"Plays_games"
] | [
"select",
"count",
"(",
"distinct",
"stuid",
")",
"from",
"plays_games"
] | [
"How",
"many",
"different",
"students",
"play",
"games",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"play",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games | Show ids of students who don't play video game. | [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Plays_games"
] | [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"plays_games"
] | [
"Show",
"ids",
"of",
"students",
"who",
"do",
"n't",
"play",
"video",
"game",
"."
] | [
"Show",
"ids",
"of",
"<mask>",
"who",
"do",
"n't",
"play",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games | What are the ids of all students who are not video game players? | [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Plays_games"
] | [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"plays_games"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"who",
"are",
"not",
"video",
"game",
"players",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"who",
"are",
"not",
"<mask>",
"<mask>",
"players",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games | Show ids of students who play video game and play sports. | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Plays_games"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"intersect",
"select",
"stuid",
"from",
"plays_games"
] | [
"Show",
"ids",
"of",
"students",
"who",
"play",
"video",
"game",
"and",
"play",
"sports",
"."
] | [
"Show",
"ids",
"of",
"<mask>",
"who",
"play",
"<mask>",
"<mask>",
"and",
"play",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"intersect",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games | What are the ids of all students who played video games and sports? | [
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Plays_games"
] | [
"select",
"stuid",
"from",
"sportsinfo",
"intersect",
"select",
"stuid",
"from",
"plays_games"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"who",
"played",
"video",
"games",
"and",
"sports",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"who",
"played",
"<mask>",
"<mask>",
"and",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"intersect",
"select",
"<mask>",
"from",
"<mask>"
] |
game_1 | SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid | Show all game ids and the number of hours played. | [
"SELECT",
"gameid",
",",
"sum",
"(",
"hours_played",
")",
"FROM",
"Plays_games",
"GROUP",
"BY",
"gameid"
] | [
"select",
"gameid",
",",
"sum",
"(",
"hours_played",
")",
"from",
"plays_games",
"group",
"by",
"gameid"
] | [
"Show",
"all",
"game",
"ids",
"and",
"the",
"number",
"of",
"hours",
"played",
"."
] | [
"Show",
"all",
"<mask>",
"ids",
"and",
"the",
"number",
"of",
"hours",
"played",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid | What are ids and total number of hours played for each game? | [
"SELECT",
"gameid",
",",
"sum",
"(",
"hours_played",
")",
"FROM",
"Plays_games",
"GROUP",
"BY",
"gameid"
] | [
"select",
"gameid",
",",
"sum",
"(",
"hours_played",
")",
"from",
"plays_games",
"group",
"by",
"gameid"
] | [
"What",
"are",
"ids",
"and",
"total",
"number",
"of",
"hours",
"played",
"for",
"each",
"game",
"?"
] | [
"What",
"are",
"ids",
"and",
"total",
"number",
"of",
"hours",
"played",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid | Show all student ids and the number of hours played. | [
"SELECT",
"Stuid",
",",
"sum",
"(",
"hours_played",
")",
"FROM",
"Plays_games",
"GROUP",
"BY",
"Stuid"
] | [
"select",
"stuid",
",",
"sum",
"(",
"hours_played",
")",
"from",
"plays_games",
"group",
"by",
"stuid"
] | [
"Show",
"all",
"student",
"ids",
"and",
"the",
"number",
"of",
"hours",
"played",
"."
] | [
"Show",
"all",
"<mask>",
"ids",
"and",
"the",
"number",
"of",
"hours",
"played",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid | What are the ids of all students and number of hours played? | [
"SELECT",
"Stuid",
",",
"sum",
"(",
"hours_played",
")",
"FROM",
"Plays_games",
"GROUP",
"BY",
"Stuid"
] | [
"select",
"stuid",
",",
"sum",
"(",
"hours_played",
")",
"from",
"plays_games",
"group",
"by",
"stuid"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"and",
"number",
"of",
"hours",
"played",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"and",
"number",
"of",
"hours",
"played",
"?"
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
game_1 | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1 | Show the game name that has most number of hours played. | [
"SELECT",
"gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"GROUP",
"BY",
"T1.gameid",
"ORDER",
"BY",
"sum",
"(",
"hours_played",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"group",
"by",
"t1",
".",
"gameid",
"order",
"by",
"sum",
"(",
"hours_played",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"game",
"name",
"that",
"has",
"most",
"number",
"of",
"hours",
"played",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"that",
"has",
"most",
"number",
"of",
"hours",
"played",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"desc",
"limit",
"<unk>... |
game_1 | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1 | What is the name of the game that has been played the most? | [
"SELECT",
"gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"GROUP",
"BY",
"T1.gameid",
"ORDER",
"BY",
"sum",
"(",
"hours_played",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"group",
"by",
"t1",
".",
"gameid",
"order",
"by",
"sum",
"(",
"hours_played",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"game",
"that",
"has",
"been",
"played",
"the",
"most",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"has",
"been",
"played",
"the",
"most",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"desc",
"limit",
"<unk>... |
game_1 | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 | Show all game names played by at least 1000 hours. | [
"SELECT",
"gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"GROUP",
"BY",
"T1.gameid",
"HAVING",
"sum",
"(",
"hours_played",
")",
">",
"=",
"1000"
] | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"group",
"by",
"t1",
".",
"gameid",
"having",
"sum",
"(",
"hours_played",
")",
">",
"=",
"value"
] | [
"Show",
"all",
"game",
"names",
"played",
"by",
"at",
"least",
"1000",
"hours",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"played",
"by",
"at",
"least",
"<unk>",
"hours",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"sum",
"(",
"<mask>",
")",
">",
"=",
"<unk>"
] |
game_1 | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 | What are the names of all the games that have been played for at least 1000 hours? | [
"SELECT",
"gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"GROUP",
"BY",
"T1.gameid",
"HAVING",
"sum",
"(",
"hours_played",
")",
">",
"=",
"1000"
] | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"group",
"by",
"t1",
".",
"gameid",
"having",
"sum",
"(",
"hours_played",
")",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"games",
"that",
"have",
"been",
"played",
"for",
"at",
"least",
"1000",
"hours",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"that",
"have",
"been",
"played",
"for",
"at",
"least",
"<unk>",
"hours",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"sum",
"(",
"<mask>",
")",
">",
"=",
"<unk>"
] |
game_1 | SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda" | Show all game names played by Linda Smith | [
"SELECT",
"Gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.Stuid",
"=",
"T1.Stuid",
"WHERE",
"T3.Lname",
"=",
"``",
"Smith",
"''",
"AND",
"T3.Fname",
... | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t1",
".",
"stuid",
"where",
"t3",
".",
"lname... | [
"Show",
"all",
"game",
"names",
"played",
"by",
"Linda",
"Smith"
] | [
"Show",
"all",
"<mask>",
"<mask>",
"played",
"by",
"Linda",
"Smith"
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"... |
game_1 | SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda" | What are the names of all games played by Linda Smith? | [
"SELECT",
"Gname",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.gameid",
"=",
"T2.gameid",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.Stuid",
"=",
"T1.Stuid",
"WHERE",
"T3.Lname",
"=",
"``",
"Smith",
"''",
"AND",
"T3.Fname",
... | [
"select",
"gname",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t1",
".",
"stuid",
"where",
"t3",
".",
"lname... | [
"What",
"are",
"the",
"names",
"of",
"all",
"games",
"played",
"by",
"Linda",
"Smith",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"played",
"by",
"Linda",
"Smith",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"... |
game_1 | SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse" | Find the last and first name of students who are playing Football or Lacrosse. | [
"SELECT",
"T2.lname",
",",
"T2.fname",
"FROM",
"SportsInfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T1.SportName",
"=",
"``",
"Football",
"''",
"OR",
"T1.SportName",
"=",
"``",
"Lacrosse",
"''"
] | [
"select",
"t2",
".",
"lname",
",",
"t2",
".",
"fname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t1",
".",
"sportname",
"=",
"value",
"or",
"t1",
".",
"sportname",
... | [
"Find",
"the",
"last",
"and",
"first",
"name",
"of",
"students",
"who",
"are",
"playing",
"Football",
"or",
"Lacrosse",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"<mask>",
"who",
"are",
"playing",
"Football",
"or",
"Lacrosse",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"or",
"<mask... |
game_1 | SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse" | What is the first and last name of all students who play Football or Lacrosse? | [
"SELECT",
"T2.lname",
",",
"T2.fname",
"FROM",
"SportsInfo",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T1.SportName",
"=",
"``",
"Football",
"''",
"OR",
"T1.SportName",
"=",
"``",
"Lacrosse",
"''"
] | [
"select",
"t2",
".",
"lname",
",",
"t2",
".",
"fname",
"from",
"sportsinfo",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t1",
".",
"sportname",
"=",
"value",
"or",
"t1",
".",
"sportname",
... | [
"What",
"is",
"the",
"first",
"and",
"last",
"name",
"of",
"all",
"students",
"who",
"play",
"Football",
"or",
"Lacrosse",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"<mask>",
"who",
"play",
"Football",
"or",
"Lacrosse",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"or",
"<mask... |
game_1 | SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse") | Find the first name and age of the students who are playing both Football and Lacrosse. | [
"SELECT",
"fname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"SportName",
"=",
"``",
"Football",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"SportName",
"=",
"``",
... | [
"select",
"fname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
")"
] | [
"Find",
"the",
"first",
"name",
"and",
"age",
"of",
"the",
"students",
"who",
"are",
"playing",
"both",
"Football",
"and",
"Lacrosse",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"who",
"are",
"playing",
"both",
"Football",
"and",
"Lacrosse",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
game_1 | SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse") | What are the first names and ages of all students who are playing both Football and Lacrosse? | [
"SELECT",
"fname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"SportName",
"=",
"``",
"Football",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Sportsinfo",
"WHERE",
"SportName",
"=",
"``",
... | [
"select",
"fname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"sportsinfo",
"where",
"sportname",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"first",
"names",
"and",
"ages",
"of",
"all",
"students",
"who",
"are",
"playing",
"both",
"Football",
"and",
"Lacrosse",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"who",
"are",
"playing",
"both",
"Football",
"and",
"Lacrosse",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
game_1 | SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Call of Destiny" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Works of Widenius") | Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games. | [
"SELECT",
"lname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.GameID",
"=",
"T2.GameID",
"WHERE",
"T2.Gname",
"=",
"``",
"Call",
"of",
"D... | [
"select",
"lname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"where",
"t2",
".",
... | [
"Find",
"the",
"last",
"name",
"and",
"gender",
"of",
"the",
"students",
"who",
"are",
"playing",
"both",
"Call",
"of",
"Destiny",
"and",
"Works",
"of",
"Widenius",
"games",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"and",
"gender",
"of",
"the",
"<mask>",
"who",
"are",
"playing",
"both",
"Call",
"of",
"Destiny",
"and",
"Works",
"of",
"Widenius",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
... |
game_1 | SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Call of Destiny" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Works of Widenius") | what is the last name and gender of all students who played both Call of Destiny and Works of Widenius? | [
"SELECT",
"lname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Plays_games",
"AS",
"T1",
"JOIN",
"Video_games",
"AS",
"T2",
"ON",
"T1.GameID",
"=",
"T2.GameID",
"WHERE",
"T2.Gname",
"=",
"``",
"Call",
"of",
"D... | [
"select",
"lname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"plays_games",
"as",
"t1",
"join",
"video_games",
"as",
"t2",
"on",
"t1",
".",
"gameid",
"=",
"t2",
".",
"gameid",
"where",
"t2",
".",
... | [
"what",
"is",
"the",
"last",
"name",
"and",
"gender",
"of",
"all",
"students",
"who",
"played",
"both",
"Call",
"of",
"Destiny",
"and",
"Works",
"of",
"Widenius",
"?"
] | [
"what",
"is",
"the",
"<mask>",
"<mask>",
"and",
"gender",
"of",
"all",
"<mask>",
"who",
"played",
"both",
"Call",
"of",
"Destiny",
"and",
"Works",
"of",
"Widenius",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
... |
customers_and_addresses | SELECT customer_name FROM customers | Find the name of all customers. | [
"SELECT",
"customer_name",
"FROM",
"customers"
] | [
"select",
"customer_name",
"from",
"customers"
] | [
"Find",
"the",
"name",
"of",
"all",
"customers",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT customer_name FROM customers | What are the names of all the customers? | [
"SELECT",
"customer_name",
"FROM",
"customers"
] | [
"select",
"customer_name",
"from",
"customers"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"customers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT count(*) FROM customers | How many customers are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customers"
] | [
"How",
"many",
"customers",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT count(*) FROM customers | Return the total number of distinct customers. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"customers"
] | [
"Return",
"the",
"total",
"number",
"of",
"distinct",
"customers",
"."
] | [
"Return",
"the",
"total",
"<mask>",
"of",
"distinct",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT avg(order_quantity) FROM order_items | What is the average amount of items ordered in each order? | [
"SELECT",
"avg",
"(",
"order_quantity",
")",
"FROM",
"order_items"
] | [
"select",
"avg",
"(",
"order_quantity",
")",
"from",
"order_items"
] | [
"What",
"is",
"the",
"average",
"amount",
"of",
"items",
"ordered",
"in",
"each",
"order",
"?"
] | [
"What",
"is",
"the",
"average",
"amount",
"of",
"items",
"<mask>",
"in",
"each",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT avg(order_quantity) FROM order_items | Find the average order quantity per order. | [
"SELECT",
"avg",
"(",
"order_quantity",
")",
"FROM",
"order_items"
] | [
"select",
"avg",
"(",
"order_quantity",
")",
"from",
"order_items"
] | [
"Find",
"the",
"average",
"order",
"quantity",
"per",
"order",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"<mask>",
"per",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method = "Cash" | What are the names of customers who use payment method "Cash"? | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"=",
"``",
"Cash",
"''"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"use",
"payment",
"method",
"``",
"Cash",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"use",
"<mask>",
"<mask>",
"``",
"Cash",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method = "Cash" | Which customers use "Cash" for payment method? Return the customer names. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"=",
"``",
"Cash",
"''"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"=",
"value"
] | [
"Which",
"customers",
"use",
"``",
"Cash",
"''",
"for",
"payment",
"method",
"?",
"Return",
"the",
"customer",
"names",
"."
] | [
"Which",
"<mask>",
"use",
"``",
"Cash",
"''",
"for",
"<mask>",
"<mask>",
"?",
"Return",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 | Find the "date became customers" of the customers whose ID is between 10 and 20. | [
"SELECT",
"date_became_customer",
"FROM",
"customers",
"WHERE",
"customer_id",
"BETWEEN",
"10",
"AND",
"20"
] | [
"select",
"date_became_customer",
"from",
"customers",
"where",
"customer_id",
"between",
"value",
"and",
"value"
] | [
"Find",
"the",
"``",
"date",
"became",
"customers",
"''",
"of",
"the",
"customers",
"whose",
"ID",
"is",
"between",
"10",
"and",
"20",
"."
] | [
"Find",
"the",
"``",
"<mask>",
"became",
"<mask>",
"''",
"of",
"the",
"<mask>",
"whose",
"ID",
"is",
"between",
"<unk>",
"and",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"between",
"<unk>",
"and",
"<unk>"
] |
customers_and_addresses | SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 | What are the dates when customers with ids between 10 and 20 became customers? | [
"SELECT",
"date_became_customer",
"FROM",
"customers",
"WHERE",
"customer_id",
"BETWEEN",
"10",
"AND",
"20"
] | [
"select",
"date_became_customer",
"from",
"customers",
"where",
"customer_id",
"between",
"value",
"and",
"value"
] | [
"What",
"are",
"the",
"dates",
"when",
"customers",
"with",
"ids",
"between",
"10",
"and",
"20",
"became",
"customers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"when",
"<mask>",
"with",
"ids",
"between",
"<unk>",
"and",
"<unk>",
"became",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"between",
"<unk>",
"and",
"<unk>"
] |
customers_and_addresses | SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 | Which payment method is used by most customers? | [
"SELECT",
"payment_method",
"FROM",
"customers",
"GROUP",
"BY",
"payment_method",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"payment_method",
"from",
"customers",
"group",
"by",
"payment_method",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"payment",
"method",
"is",
"used",
"by",
"most",
"customers",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"is",
"used",
"by",
"most",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
customers_and_addresses | SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 | Find the payment method that is used most frequently. | [
"SELECT",
"payment_method",
"FROM",
"customers",
"GROUP",
"BY",
"payment_method",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"payment_method",
"from",
"customers",
"group",
"by",
"payment_method",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"payment",
"method",
"that",
"is",
"used",
"most",
"frequently",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"that",
"is",
"used",
"most",
"frequently",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1) | What are the names of customers using the most popular payment method? | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"=",
"(",
"SELECT",
"payment_method",
"FROM",
"customers",
"GROUP",
"BY",
"payment_method",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
")"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"=",
"(",
"select",
"payment_method",
"from",
"customers",
"group",
"by",
"payment_method",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"using",
"the",
"most",
"popular",
"payment",
"method",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"using",
"the",
"most",
"popular",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>",
")"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1) | Find the name of the customers who use the most frequently used payment method. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"payment_method",
"=",
"(",
"SELECT",
"payment_method",
"FROM",
"customers",
"GROUP",
"BY",
"payment_method",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
")"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"payment_method",
"=",
"(",
"select",
"payment_method",
"from",
"customers",
"group",
"by",
"payment_method",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value",
")"
] | [
"Find",
"the",
"name",
"of",
"the",
"customers",
"who",
"use",
"the",
"most",
"frequently",
"used",
"payment",
"method",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"use",
"the",
"most",
"frequently",
"used",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>",
")"
] |
customers_and_addresses | SELECT DISTINCT payment_method FROM customers | What are all the payment methods? | [
"SELECT",
"DISTINCT",
"payment_method",
"FROM",
"customers"
] | [
"select",
"distinct",
"payment_method",
"from",
"customers"
] | [
"What",
"are",
"all",
"the",
"payment",
"methods",
"?"
] | [
"What",
"are",
"all",
"the",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT DISTINCT payment_method FROM customers | Return all the distinct payment methods used by customers. | [
"SELECT",
"DISTINCT",
"payment_method",
"FROM",
"customers"
] | [
"select",
"distinct",
"payment_method",
"from",
"customers"
] | [
"Return",
"all",
"the",
"distinct",
"payment",
"methods",
"used",
"by",
"customers",
"."
] | [
"Return",
"all",
"the",
"distinct",
"<mask>",
"<mask>",
"used",
"by",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT DISTINCT product_details FROM products | What are the details of all products? | [
"SELECT",
"DISTINCT",
"product_details",
"FROM",
"products"
] | [
"select",
"distinct",
"product_details",
"from",
"products"
] | [
"What",
"are",
"the",
"details",
"of",
"all",
"products",
"?"
] | [
"What",
"are",
"the",
"details",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT DISTINCT product_details FROM products | Return the the details of all products. | [
"SELECT",
"DISTINCT",
"product_details",
"FROM",
"products"
] | [
"select",
"distinct",
"product_details",
"from",
"products"
] | [
"Return",
"the",
"the",
"details",
"of",
"all",
"products",
"."
] | [
"Return",
"the",
"the",
"details",
"of",
"all",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE customer_name LIKE "%Alex%" | Find the name of all customers whose name contains "Alex". | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"customer_name",
"LIKE",
"``",
"%",
"Alex",
"%",
"''"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"customer_name",
"like",
"value"
] | [
"Find",
"the",
"name",
"of",
"all",
"customers",
"whose",
"name",
"contains",
"``",
"Alex",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"<mask>",
"whose",
"<mask>",
"contains",
"``",
"Alex",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT customer_name FROM customers WHERE customer_name LIKE "%Alex%" | Which customer's name contains "Alex"? Find the full name. | [
"SELECT",
"customer_name",
"FROM",
"customers",
"WHERE",
"customer_name",
"LIKE",
"``",
"%",
"Alex",
"%",
"''"
] | [
"select",
"customer_name",
"from",
"customers",
"where",
"customer_name",
"like",
"value"
] | [
"Which",
"customer",
"'s",
"name",
"contains",
"``",
"Alex",
"''",
"?",
"Find",
"the",
"full",
"name",
"."
] | [
"Which",
"<mask>",
"'s",
"<mask>",
"contains",
"``",
"Alex",
"''",
"?",
"Find",
"the",
"full",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT product_details FROM products WHERE product_details LIKE "%Latte%" OR product_details LIKE "%Americano%" | Find the detail of products whose detail contains the word "Latte" or the word "Americano" | [
"SELECT",
"product_details",
"FROM",
"products",
"WHERE",
"product_details",
"LIKE",
"``",
"%",
"Latte",
"%",
"''",
"OR",
"product_details",
"LIKE",
"``",
"%",
"Americano",
"%",
"''"
] | [
"select",
"product_details",
"from",
"products",
"where",
"product_details",
"like",
"value",
"or",
"product_details",
"like",
"value"
] | [
"Find",
"the",
"detail",
"of",
"products",
"whose",
"detail",
"contains",
"the",
"word",
"``",
"Latte",
"''",
"or",
"the",
"word",
"``",
"Americano",
"''"
] | [
"Find",
"the",
"detail",
"of",
"<mask>",
"whose",
"detail",
"contains",
"the",
"word",
"``",
"Latte",
"''",
"or",
"the",
"word",
"``",
"Americano",
"''"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>",
"or",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT product_details FROM products WHERE product_details LIKE "%Latte%" OR product_details LIKE "%Americano%" | Which product's detail contains the word "Latte" or "Americano"? Return the full detail. | [
"SELECT",
"product_details",
"FROM",
"products",
"WHERE",
"product_details",
"LIKE",
"``",
"%",
"Latte",
"%",
"''",
"OR",
"product_details",
"LIKE",
"``",
"%",
"Americano",
"%",
"''"
] | [
"select",
"product_details",
"from",
"products",
"where",
"product_details",
"like",
"value",
"or",
"product_details",
"like",
"value"
] | [
"Which",
"product",
"'s",
"detail",
"contains",
"the",
"word",
"``",
"Latte",
"''",
"or",
"``",
"Americano",
"''",
"?",
"Return",
"the",
"full",
"detail",
"."
] | [
"Which",
"<mask>",
"'s",
"detail",
"contains",
"the",
"word",
"``",
"Latte",
"''",
"or",
"``",
"Americano",
"''",
"?",
"Return",
"the",
"full",
"detail",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>",
"or",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann" | What is the address content of the customer named "Maudie Kertzmann"? | [
"SELECT",
"t3.address_content",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t1.customer_name",
"=",
... | [
"select",
"t3",
".",
"address_content",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
"."... | [
"What",
"is",
"the",
"address",
"content",
"of",
"the",
"customer",
"named",
"``",
"Maudie",
"Kertzmann",
"''",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"``",
"Maudie",
"Kertzmann",
"''",
"?"
] | [
"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... |
customers_and_addresses | SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann" | Return the address content for the customer whose name is "Maudie Kertzmann". | [
"SELECT",
"t3.address_content",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t1.customer_name",
"=",
... | [
"select",
"t3",
".",
"address_content",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
"."... | [
"Return",
"the",
"address",
"content",
"for",
"the",
"customer",
"whose",
"name",
"is",
"``",
"Maudie",
"Kertzmann",
"''",
"."
] | [
"Return",
"the",
"<mask>",
"<mask>",
"for",
"the",
"<mask>",
"whose",
"<mask>",
"is",
"``",
"Maudie",
"Kertzmann",
"''",
"."
] | [
"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... |
customers_and_addresses | SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton" | How many customers are living in city "Lake Geovannyton"? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t3.city",
"=",
"... | [
"select",
"count",
"(",
"*",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
... | [
"How",
"many",
"customers",
"are",
"living",
"in",
"city",
"``",
"Lake",
"Geovannyton",
"''",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"living",
"in",
"<mask>",
"``",
"Lake",
"Geovannyton",
"''",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
customers_and_addresses | SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton" | Find the number of customers who live in the city called Lake Geovannyton. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t3.city",
"=",
"... | [
"select",
"count",
"(",
"*",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
... | [
"Find",
"the",
"number",
"of",
"customers",
"who",
"live",
"in",
"the",
"city",
"called",
"Lake",
"Geovannyton",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"live",
"in",
"the",
"<mask>",
"called",
"Lake",
"Geovannyton",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<ma... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado" | Find the name of customers who are living in Colorado? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t3.state_province_county",
"... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
... | [
"Find",
"the",
"name",
"of",
"customers",
"who",
"are",
"living",
"in",
"Colorado",
"?"
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"living",
"in",
"Colorado",
"?"
] | [
"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... |
customers_and_addresses | SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado" | What are the names of customers who live in Colorado state? | [
"SELECT",
"t1.customer_name",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"WHERE",
"t3.state_province_county",
"... | [
"select",
"t1",
".",
"customer_name",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
... | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"live",
"in",
"Colorado",
"state",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"live",
"in",
"Colorado",
"<mask>",
"?"
] | [
"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... |
customers_and_addresses | SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) | Find the list of cities that no customer is living in. | [
"SELECT",
"city",
"FROM",
"addresses",
"WHERE",
"city",
"NOT",
"IN",
"(",
"SELECT",
"DISTINCT",
"t3.city",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
... | [
"select",
"city",
"from",
"addresses",
"where",
"city",
"not",
"in",
"(",
"select",
"distinct",
"t3",
".",
"city",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"jo... | [
"Find",
"the",
"list",
"of",
"cities",
"that",
"no",
"customer",
"is",
"living",
"in",
"."
] | [
"Find",
"the",
"list",
"of",
"<mask>",
"that",
"no",
"<mask>",
"is",
"living",
"in",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join... |
customers_and_addresses | SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) | What are the cities no customers live in? | [
"SELECT",
"city",
"FROM",
"addresses",
"WHERE",
"city",
"NOT",
"IN",
"(",
"SELECT",
"DISTINCT",
"t3.city",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
... | [
"select",
"city",
"from",
"addresses",
"where",
"city",
"not",
"in",
"(",
"select",
"distinct",
"t3",
".",
"city",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"jo... | [
"What",
"are",
"the",
"cities",
"no",
"customers",
"live",
"in",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"no",
"<mask>",
"live",
"in",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join... |
customers_and_addresses | SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 | Which city has the most customers living in? | [
"SELECT",
"t3.city",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"GROUP",
"BY",
"t3.city",
"ORDER",
"BY",
... | [
"select",
"t3",
".",
"city",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
"addres... | [
"Which",
"city",
"has",
"the",
"most",
"customers",
"living",
"in",
"?"
] | [
"Which",
"<mask>",
"has",
"the",
"most",
"<mask>",
"living",
"in",
"?"
] | [
"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... |
customers_and_addresses | SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 | Find the city where the most customers live. | [
"SELECT",
"t3.city",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_addresses",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"JOIN",
"addresses",
"AS",
"t3",
"ON",
"t2.address_id",
"=",
"t3.address_id",
"GROUP",
"BY",
"t3.city",
"ORDER",
"BY",
... | [
"select",
"t3",
".",
"city",
"from",
"customers",
"as",
"t1",
"join",
"customer_addresses",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"join",
"addresses",
"as",
"t3",
"on",
"t2",
".",
"address_id",
"=",
"t3",
".",
"addres... | [
"Find",
"the",
"city",
"where",
"the",
"most",
"customers",
"live",
"."
] | [
"Find",
"the",
"<mask>",
"where",
"the",
"most",
"<mask>",
"live",
"."
] | [
"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... |
customers_and_addresses | SELECT DISTINCT city FROM addresses | Retrieve the list of all cities. | [
"SELECT",
"DISTINCT",
"city",
"FROM",
"addresses"
] | [
"select",
"distinct",
"city",
"from",
"addresses"
] | [
"Retrieve",
"the",
"list",
"of",
"all",
"cities",
"."
] | [
"Retrieve",
"the",
"list",
"of",
"all",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT DISTINCT city FROM addresses | List all the distinct cities | [
"SELECT",
"DISTINCT",
"city",
"FROM",
"addresses"
] | [
"select",
"distinct",
"city",
"from",
"addresses"
] | [
"List",
"all",
"the",
"distinct",
"cities"
] | [
"List",
"all",
"the",
"distinct",
"<mask>"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>"
] |
customers_and_addresses | SELECT city FROM addresses WHERE zip_postcode = 255 | Find the city with post code 255. | [
"SELECT",
"city",
"FROM",
"addresses",
"WHERE",
"zip_postcode",
"=",
"255"
] | [
"select",
"city",
"from",
"addresses",
"where",
"zip_postcode",
"=",
"value"
] | [
"Find",
"the",
"city",
"with",
"post",
"code",
"255",
"."
] | [
"Find",
"the",
"<mask>",
"with",
"post",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT city FROM addresses WHERE zip_postcode = 255 | Which city is post code 255 located in? | [
"SELECT",
"city",
"FROM",
"addresses",
"WHERE",
"zip_postcode",
"=",
"255"
] | [
"select",
"city",
"from",
"addresses",
"where",
"zip_postcode",
"=",
"value"
] | [
"Which",
"city",
"is",
"post",
"code",
"255",
"located",
"in",
"?"
] | [
"Which",
"<mask>",
"is",
"post",
"<mask>",
"<unk>",
"located",
"in",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE "4%" | Find the state and country of all cities with post code starting with 4. | [
"SELECT",
"state_province_county",
",",
"country",
"FROM",
"addresses",
"WHERE",
"zip_postcode",
"LIKE",
"``",
"4",
"%",
"''"
] | [
"select",
"state_province_county",
",",
"country",
"from",
"addresses",
"where",
"zip_postcode",
"like",
"value"
] | [
"Find",
"the",
"state",
"and",
"country",
"of",
"all",
"cities",
"with",
"post",
"code",
"starting",
"with",
"4",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"with",
"post",
"<mask>",
"starting",
"with",
"<unk>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE "4%" | What are the state and country of all the cities that have post codes starting with 4.\ | [
"SELECT",
"state_province_county",
",",
"country",
"FROM",
"addresses",
"WHERE",
"zip_postcode",
"LIKE",
"``",
"4",
"%",
"''"
] | [
"select",
"state_province_county",
",",
"country",
"from",
"addresses",
"where",
"zip_postcode",
"like",
"value"
] | [
"What",
"are",
"the",
"state",
"and",
"country",
"of",
"all",
"the",
"cities",
"that",
"have",
"post",
"codes",
"starting",
"with",
"4.\\"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"all",
"the",
"<mask>",
"that",
"have",
"post",
"<mask>",
"starting",
"with",
"4.\\"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
customers_and_addresses | SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4 | List the countries having more than 4 addresses listed. | [
"SELECT",
"country",
"FROM",
"addresses",
"GROUP",
"BY",
"country",
"HAVING",
"count",
"(",
"address_id",
")",
">",
"4"
] | [
"select",
"country",
"from",
"addresses",
"group",
"by",
"country",
"having",
"count",
"(",
"address_id",
")",
">",
"value"
] | [
"List",
"the",
"countries",
"having",
"more",
"than",
"4",
"addresses",
"listed",
"."
] | [
"List",
"the",
"<mask>",
"having",
"more",
"than",
"<unk>",
"<mask>",
"listed",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"<mask>",
")",
">",
"<unk>"
] |
customers_and_addresses | SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4 | For which countries are there more than four distinct addresses listed? | [
"SELECT",
"country",
"FROM",
"addresses",
"GROUP",
"BY",
"country",
"HAVING",
"count",
"(",
"address_id",
")",
">",
"4"
] | [
"select",
"country",
"from",
"addresses",
"group",
"by",
"country",
"having",
"count",
"(",
"address_id",
")",
">",
"value"
] | [
"For",
"which",
"countries",
"are",
"there",
"more",
"than",
"four",
"distinct",
"addresses",
"listed",
"?"
] | [
"For",
"which",
"<mask>",
"are",
"there",
"more",
"than",
"four",
"distinct",
"<mask>",
"listed",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"<mask>",
")",
">",
"<unk>"
] |
customers_and_addresses | SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 | List all the contact channel codes that were used less than 5 times. | [
"SELECT",
"channel_code",
"FROM",
"customer_contact_channels",
"GROUP",
"BY",
"channel_code",
"HAVING",
"count",
"(",
"customer_id",
")",
"<",
"5"
] | [
"select",
"channel_code",
"from",
"customer_contact_channels",
"group",
"by",
"channel_code",
"having",
"count",
"(",
"customer_id",
")",
"<",
"value"
] | [
"List",
"all",
"the",
"contact",
"channel",
"codes",
"that",
"were",
"used",
"less",
"than",
"5",
"times",
"."
] | [
"List",
"all",
"the",
"<mask>",
"<mask>",
"<mask>",
"that",
"were",
"used",
"less",
"than",
"<unk>",
"times",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"<mask>",
")",
"<",
"<unk>"
] |
customers_and_addresses | SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 | Which contact channel codes were used less than 5 times? | [
"SELECT",
"channel_code",
"FROM",
"customer_contact_channels",
"GROUP",
"BY",
"channel_code",
"HAVING",
"count",
"(",
"customer_id",
")",
"<",
"5"
] | [
"select",
"channel_code",
"from",
"customer_contact_channels",
"group",
"by",
"channel_code",
"having",
"count",
"(",
"customer_id",
")",
"<",
"value"
] | [
"Which",
"contact",
"channel",
"codes",
"were",
"used",
"less",
"than",
"5",
"times",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"<mask>",
"were",
"used",
"less",
"than",
"<unk>",
"times",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"<mask>",
")",
"<",
"<unk>"
] |
customers_and_addresses | SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | Which contact channel has been used by the customer with name "Tillman Ernser"? | [
"SELECT",
"DISTINCT",
"channel_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Tillman",
"Ernser",
"''"
] | [
"select",
"distinct",
"channel_code",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
] | [
"Which",
"contact",
"channel",
"has",
"been",
"used",
"by",
"the",
"customer",
"with",
"name",
"``",
"Tillman",
"Ernser",
"''",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"has",
"been",
"used",
"by",
"the",
"<mask>",
"with",
"<mask>",
"``",
"Tillman",
"Ernser",
"''",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | Find the contact channel code that was used by the customer named "Tillman Ernser". | [
"SELECT",
"DISTINCT",
"channel_code",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Tillman",
"Ernser",
"''"
] | [
"select",
"distinct",
"channel_code",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
] | [
"Find",
"the",
"contact",
"channel",
"code",
"that",
"was",
"used",
"by",
"the",
"customer",
"named",
"``",
"Tillman",
"Ernser",
"''",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"<mask>",
"that",
"was",
"used",
"by",
"the",
"<mask>",
"<mask>",
"``",
"Tillman",
"Ernser",
"''",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
customers_and_addresses | SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | What is the "active to date" of the latest contact channel used by "Tillman Ernser"? | [
"SELECT",
"max",
"(",
"t2.active_to_date",
")",
"FROM",
"customers",
"AS",
"t1",
"JOIN",
"customer_contact_channels",
"AS",
"t2",
"ON",
"t1.customer_id",
"=",
"t2.customer_id",
"WHERE",
"t1.customer_name",
"=",
"``",
"Tillman",
"Ernser",
"''"
] | [
"select",
"max",
"(",
"t2",
".",
"active_to_date",
")",
"from",
"customers",
"as",
"t1",
"join",
"customer_contact_channels",
"as",
"t2",
"on",
"t1",
".",
"customer_id",
"=",
"t2",
".",
"customer_id",
"where",
"t1",
".",
"customer_name",
"=",
"value"
] | [
"What",
"is",
"the",
"``",
"active",
"to",
"date",
"''",
"of",
"the",
"latest",
"contact",
"channel",
"used",
"by",
"``",
"Tillman",
"Ernser",
"''",
"?"
] | [
"What",
"is",
"the",
"``",
"<mask>",
"to",
"<mask>",
"''",
"of",
"the",
"latest",
"<mask>",
"<mask>",
"used",
"by",
"``",
"Tillman",
"Ernser",
"''",
"?"
] | [
"select",
"max",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.