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 |
|---|---|---|---|---|---|---|---|
shop_membership | SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) | How many branches where have more than average number of memberships are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"(",
"SELECT",
"avg",
"(",
"membership_amount",
")",
"FROM",
"branch",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"branch",
"where",
"membership_amount",
">",
"(",
"select",
"avg",
"(",
"membership_amount",
")",
"from",
"branch",
")"
] | [
"How",
"many",
"branches",
"where",
"have",
"more",
"than",
"average",
"number",
"of",
"memberships",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"where",
"have",
"more",
"than",
"average",
"<mask>",
"of",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
shop_membership | SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) | What is the number of branches that have more than the average number of memberships? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"(",
"SELECT",
"avg",
"(",
"membership_amount",
")",
"FROM",
"branch",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"branch",
"where",
"membership_amount",
">",
"(",
"select",
"avg",
"(",
"membership_amount",
")",
"from",
"branch",
")"
] | [
"What",
"is",
"the",
"number",
"of",
"branches",
"that",
"have",
"more",
"than",
"the",
"average",
"number",
"of",
"memberships",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"more",
"than",
"the",
"average",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
shop_membership | SELECT name , address_road , city FROM branch ORDER BY open_year | Show name, address road, and city for all branches sorted by open year. | [
"SELECT",
"name",
",",
"address_road",
",",
"city",
"FROM",
"branch",
"ORDER",
"BY",
"open_year"
] | [
"select",
"name",
",",
"address_road",
",",
"city",
"from",
"branch",
"order",
"by",
"open_year"
] | [
"Show",
"name",
",",
"address",
"road",
",",
"and",
"city",
"for",
"all",
"branches",
"sorted",
"by",
"open",
"year",
"."
] | [
"Show",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"<mask>",
"for",
"all",
"<mask>",
"sorted",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
shop_membership | SELECT name , address_road , city FROM branch ORDER BY open_year | What are the names, address roads, and cities of the branches ordered by opening year? | [
"SELECT",
"name",
",",
"address_road",
",",
"city",
"FROM",
"branch",
"ORDER",
"BY",
"open_year"
] | [
"select",
"name",
",",
"address_road",
",",
"city",
"from",
"branch",
"order",
"by",
"open_year"
] | [
"What",
"are",
"the",
"names",
",",
"address",
"roads",
",",
"and",
"cities",
"of",
"the",
"branches",
"ordered",
"by",
"opening",
"year",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"<mask>",
"<mask>",
",",
"and",
"<mask>",
"of",
"the",
"<mask>",
"ordered",
"by",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
shop_membership | SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 | What are names for top three branches with most number of membership? | [
"SELECT",
"name",
"FROM",
"branch",
"ORDER",
"BY",
"membership_amount",
"DESC",
"LIMIT",
"3"
] | [
"select",
"name",
"from",
"branch",
"order",
"by",
"membership_amount",
"desc",
"limit",
"value"
] | [
"What",
"are",
"names",
"for",
"top",
"three",
"branches",
"with",
"most",
"number",
"of",
"membership",
"?"
] | [
"What",
"are",
"<mask>",
"for",
"top",
"three",
"<mask>",
"with",
"most",
"<mask>",
"of",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
shop_membership | SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 | What are the names for the 3 branches that have the most memberships? | [
"SELECT",
"name",
"FROM",
"branch",
"ORDER",
"BY",
"membership_amount",
"DESC",
"LIMIT",
"3"
] | [
"select",
"name",
"from",
"branch",
"order",
"by",
"membership_amount",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
"for",
"the",
"3",
"branches",
"that",
"have",
"the",
"most",
"memberships",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"for",
"the",
"<unk>",
"<mask>",
"that",
"have",
"the",
"most",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
shop_membership | SELECT DISTINCT city FROM branch WHERE membership_amount >= 100 | Show all distinct city where branches with at least 100 memberships are located. | [
"SELECT",
"DISTINCT",
"city",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"=",
"100"
] | [
"select",
"distinct",
"city",
"from",
"branch",
"where",
"membership_amount",
">",
"=",
"value"
] | [
"Show",
"all",
"distinct",
"city",
"where",
"branches",
"with",
"at",
"least",
"100",
"memberships",
"are",
"located",
"."
] | [
"Show",
"all",
"distinct",
"<mask>",
"where",
"<mask>",
"with",
"at",
"least",
"<unk>",
"<mask>",
"are",
"located",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
shop_membership | SELECT DISTINCT city FROM branch WHERE membership_amount >= 100 | What are the different cities that have more than 100 memberships? | [
"SELECT",
"DISTINCT",
"city",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"=",
"100"
] | [
"select",
"distinct",
"city",
"from",
"branch",
"where",
"membership_amount",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"different",
"cities",
"that",
"have",
"more",
"than",
"100",
"memberships",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"that",
"have",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
shop_membership | SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2 | List all open years when at least two shops are opened. | [
"SELECT",
"open_year",
"FROM",
"branch",
"GROUP",
"BY",
"open_year",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"open_year",
"from",
"branch",
"group",
"by",
"open_year",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"List",
"all",
"open",
"years",
"when",
"at",
"least",
"two",
"shops",
"are",
"opened",
"."
] | [
"List",
"all",
"<mask>",
"<mask>",
"when",
"at",
"least",
"two",
"shops",
"are",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
shop_membership | SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2 | What are the opening years in which at least two shops opened? | [
"SELECT",
"open_year",
"FROM",
"branch",
"GROUP",
"BY",
"open_year",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"open_year",
"from",
"branch",
"group",
"by",
"open_year",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"What",
"are",
"the",
"opening",
"years",
"in",
"which",
"at",
"least",
"two",
"shops",
"opened",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"in",
"which",
"at",
"least",
"two",
"shops",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
shop_membership | SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London' | Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London. | [
"SELECT",
"min",
"(",
"membership_amount",
")",
",",
"max",
"(",
"membership_amount",
")",
"FROM",
"branch",
"WHERE",
"open_year",
"=",
"2011",
"OR",
"city",
"=",
"'London",
"'"
] | [
"select",
"min",
"(",
"membership_amount",
")",
",",
"max",
"(",
"membership_amount",
")",
"from",
"branch",
"where",
"open_year",
"=",
"value",
"or",
"city",
"=",
"value"
] | [
"Show",
"minimum",
"and",
"maximum",
"amount",
"of",
"memberships",
"for",
"all",
"branches",
"opened",
"in",
"2011",
"or",
"located",
"at",
"city",
"London",
"."
] | [
"Show",
"minimum",
"and",
"maximum",
"<mask>",
"of",
"<mask>",
"for",
"all",
"<mask>",
"<mask>",
"in",
"<unk>",
"or",
"located",
"at",
"<mask>",
"London",
"."
] | [
"select",
"min",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London' | What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London? | [
"SELECT",
"min",
"(",
"membership_amount",
")",
",",
"max",
"(",
"membership_amount",
")",
"FROM",
"branch",
"WHERE",
"open_year",
"=",
"2011",
"OR",
"city",
"=",
"'London",
"'"
] | [
"select",
"min",
"(",
"membership_amount",
")",
",",
"max",
"(",
"membership_amount",
")",
"from",
"branch",
"where",
"open_year",
"=",
"value",
"or",
"city",
"=",
"value"
] | [
"What",
"are",
"the",
"minimum",
"and",
"maximum",
"membership",
"amounts",
"for",
"all",
"branches",
"that",
"either",
"opened",
"in",
"2011",
"or",
"are",
"located",
"in",
"London",
"?"
] | [
"What",
"are",
"the",
"minimum",
"and",
"maximum",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"that",
"either",
"<mask>",
"in",
"<unk>",
"or",
"are",
"located",
"in",
"London",
"?"
] | [
"select",
"min",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city | Show the city and the number of branches opened before 2010 for each city. | [
"SELECT",
"city",
",",
"count",
"(",
"*",
")",
"FROM",
"branch",
"WHERE",
"open_year",
"<",
"2010",
"GROUP",
"BY",
"city"
] | [
"select",
"city",
",",
"count",
"(",
"*",
")",
"from",
"branch",
"where",
"open_year",
"<",
"value",
"group",
"by",
"city"
] | [
"Show",
"the",
"city",
"and",
"the",
"number",
"of",
"branches",
"opened",
"before",
"2010",
"for",
"each",
"city",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"<mask>",
"before",
"<unk>",
"for",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>",
"group",
"by",
"<mask>"
] |
shop_membership | SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city | For each city, how many branches opened before 2010? | [
"SELECT",
"city",
",",
"count",
"(",
"*",
")",
"FROM",
"branch",
"WHERE",
"open_year",
"<",
"2010",
"GROUP",
"BY",
"city"
] | [
"select",
"city",
",",
"count",
"(",
"*",
")",
"from",
"branch",
"where",
"open_year",
"<",
"value",
"group",
"by",
"city"
] | [
"For",
"each",
"city",
",",
"how",
"many",
"branches",
"opened",
"before",
"2010",
"?"
] | [
"For",
"each",
"<mask>",
",",
"how",
"many",
"<mask>",
"<mask>",
"before",
"<unk>",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>",
"group",
"by",
"<mask>"
] |
shop_membership | SELECT count(DISTINCT LEVEL) FROM member | How many different levels do members have? | [
"SELECT",
"count",
"(",
"DISTINCT",
"LEVEL",
")",
"FROM",
"member"
] | [
"select",
"count",
"(",
"distinct",
"level",
")",
"from",
"member"
] | [
"How",
"many",
"different",
"levels",
"do",
"members",
"have",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"do",
"<mask>",
"have",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
shop_membership | SELECT count(DISTINCT LEVEL) FROM member | What are the different membership levels? | [
"SELECT",
"count",
"(",
"DISTINCT",
"LEVEL",
")",
"FROM",
"member"
] | [
"select",
"count",
"(",
"distinct",
"level",
")",
"from",
"member"
] | [
"What",
"are",
"the",
"different",
"membership",
"levels",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
shop_membership | SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC | Show card number, name, and hometown for all members in a descending order of level. | [
"SELECT",
"card_number",
",",
"name",
",",
"hometown",
"FROM",
"member",
"ORDER",
"BY",
"LEVEL",
"DESC"
] | [
"select",
"card_number",
",",
"name",
",",
"hometown",
"from",
"member",
"order",
"by",
"level",
"desc"
] | [
"Show",
"card",
"number",
",",
"name",
",",
"and",
"hometown",
"for",
"all",
"members",
"in",
"a",
"descending",
"order",
"of",
"level",
"."
] | [
"Show",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"for",
"all",
"<mask>",
"in",
"a",
"descending",
"order",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
shop_membership | SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC | What are the card numbers, names, and hometowns of every member ordered by descending level? | [
"SELECT",
"card_number",
",",
"name",
",",
"hometown",
"FROM",
"member",
"ORDER",
"BY",
"LEVEL",
"DESC"
] | [
"select",
"card_number",
",",
"name",
",",
"hometown",
"from",
"member",
"order",
"by",
"level",
"desc"
] | [
"What",
"are",
"the",
"card",
"numbers",
",",
"names",
",",
"and",
"hometowns",
"of",
"every",
"member",
"ordered",
"by",
"descending",
"level",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"of",
"every",
"<mask>",
"ordered",
"by",
"descending",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
shop_membership | SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 | Show the membership level with most number of members. | [
"SELECT",
"LEVEL",
"FROM",
"member",
"GROUP",
"BY",
"LEVEL",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"level",
"from",
"member",
"group",
"by",
"level",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Show",
"the",
"membership",
"level",
"with",
"most",
"number",
"of",
"members",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"with",
"most",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
shop_membership | SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 | What is the membership level with the most people? | [
"SELECT",
"LEVEL",
"FROM",
"member",
"GROUP",
"BY",
"LEVEL",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"level",
"from",
"member",
"group",
"by",
"level",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"membership",
"level",
"with",
"the",
"most",
"people",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"with",
"the",
"most",
"people",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
shop_membership | SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year | Show all member names and registered branch names sorted by register year. | [
"SELECT",
"T3.name",
",",
"T2.name",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"JOIN",
"member",
"AS",
"T3",
"ON",
"T1.member_id",
"=",
"T3.member_id",
"ORDER",
"BY",
"T1.register_yea... | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"name",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"join",
"member",
"as",
"t3",
"on",
"t1",
".",
"member_id",
... | [
"Show",
"all",
"member",
"names",
"and",
"registered",
"branch",
"names",
"sorted",
"by",
"register",
"year",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"<mask>",
"sorted",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
shop_membership | SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year | What are the names of the members and branches at which they are registered sorted by year of registration? | [
"SELECT",
"T3.name",
",",
"T2.name",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"JOIN",
"member",
"AS",
"T3",
"ON",
"T1.member_id",
"=",
"T3.member_id",
"ORDER",
"BY",
"T1.register_yea... | [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"name",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"join",
"member",
"as",
"t3",
"on",
"t1",
".",
"member_id",
... | [
"What",
"are",
"the",
"names",
"of",
"the",
"members",
"and",
"branches",
"at",
"which",
"they",
"are",
"registered",
"sorted",
"by",
"year",
"of",
"registration",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"and",
"<mask>",
"at",
"which",
"they",
"are",
"<mask>",
"sorted",
"by",
"<mask>",
"of",
"registration",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mas... |
shop_membership | SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id | Show all branch names with the number of members in each branch registered after 2015. | [
"SELECT",
"T2.name",
",",
"count",
"(",
"*",
")",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T1.register_year",
">",
"2015",
"GROUP",
"BY",
"T2.branch_id"
] | [
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t1",
".",
"register_year",
">",
"value",
"group... | [
"Show",
"all",
"branch",
"names",
"with",
"the",
"number",
"of",
"members",
"in",
"each",
"branch",
"registered",
"after",
"2015",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"with",
"the",
"<mask>",
"of",
"<mask>",
"in",
"each",
"<mask>",
"<mask>",
"after",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>",
"group",
"b... |
shop_membership | SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id | For each branch id, what are the names of the branches that were registered after 2015? | [
"SELECT",
"T2.name",
",",
"count",
"(",
"*",
")",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T1.register_year",
">",
"2015",
"GROUP",
"BY",
"T2.branch_id"
] | [
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t1",
".",
"register_year",
">",
"value",
"group... | [
"For",
"each",
"branch",
"id",
",",
"what",
"are",
"the",
"names",
"of",
"the",
"branches",
"that",
"were",
"registered",
"after",
"2015",
"?"
] | [
"For",
"each",
"<mask>",
"id",
",",
"what",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"were",
"<mask>",
"after",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>",
"group",
"b... |
shop_membership | SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) | Show member names without any registered branch. | [
"SELECT",
"name",
"FROM",
"member",
"WHERE",
"member_id",
"NOT",
"IN",
"(",
"SELECT",
"member_id",
"FROM",
"membership_register_branch",
")"
] | [
"select",
"name",
"from",
"member",
"where",
"member_id",
"not",
"in",
"(",
"select",
"member_id",
"from",
"membership_register_branch",
")"
] | [
"Show",
"member",
"names",
"without",
"any",
"registered",
"branch",
"."
] | [
"Show",
"<mask>",
"<mask>",
"without",
"any",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
shop_membership | SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) | What are the names of the members that have never registered at any branch? | [
"SELECT",
"name",
"FROM",
"member",
"WHERE",
"member_id",
"NOT",
"IN",
"(",
"SELECT",
"member_id",
"FROM",
"membership_register_branch",
")"
] | [
"select",
"name",
"from",
"member",
"where",
"member_id",
"not",
"in",
"(",
"select",
"member_id",
"from",
"membership_register_branch",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"members",
"that",
"have",
"never",
"registered",
"at",
"any",
"branch",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"never",
"<mask>",
"at",
"any",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
shop_membership | SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch) | List the branch name and city without any registered members. | [
"SELECT",
"name",
",",
"city",
"FROM",
"branch",
"WHERE",
"branch_id",
"NOT",
"IN",
"(",
"SELECT",
"branch_id",
"FROM",
"membership_register_branch",
")"
] | [
"select",
"name",
",",
"city",
"from",
"branch",
"where",
"branch_id",
"not",
"in",
"(",
"select",
"branch_id",
"from",
"membership_register_branch",
")"
] | [
"List",
"the",
"branch",
"name",
"and",
"city",
"without",
"any",
"registered",
"members",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"without",
"any",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
shop_membership | SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch) | What are the names and cities of the branches that do not have any registered members? | [
"SELECT",
"name",
",",
"city",
"FROM",
"branch",
"WHERE",
"branch_id",
"NOT",
"IN",
"(",
"SELECT",
"branch_id",
"FROM",
"membership_register_branch",
")"
] | [
"select",
"name",
",",
"city",
"from",
"branch",
"where",
"branch_id",
"not",
"in",
"(",
"select",
"branch_id",
"from",
"membership_register_branch",
")"
] | [
"What",
"are",
"the",
"names",
"and",
"cities",
"of",
"the",
"branches",
"that",
"do",
"not",
"have",
"any",
"registered",
"members",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"that",
"do",
"not",
"have",
"any",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
shop_membership | SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1 | What is the name and open year for the branch with most number of memberships registered in 2016? | [
"SELECT",
"T2.name",
",",
"T2.open_year",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T1.register_year",
"=",
"2016",
"GROUP",
"BY",
"T2.branch_id",
"ORDER",
"BY",
"count",
"(... | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"open_year",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t1",
".",
"register_year",
"=",
"value",
"group",... | [
"What",
"is",
"the",
"name",
"and",
"open",
"year",
"for",
"the",
"branch",
"with",
"most",
"number",
"of",
"memberships",
"registered",
"in",
"2016",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"for",
"the",
"<mask>",
"with",
"most",
"<mask>",
"of",
"<mask>",
"<mask>",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"group",
"by... |
shop_membership | SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1 | What is the name and opening year for the branch that registered the most members in 2016? | [
"SELECT",
"T2.name",
",",
"T2.open_year",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T1.register_year",
"=",
"2016",
"GROUP",
"BY",
"T2.branch_id",
"ORDER",
"BY",
"count",
"(... | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"open_year",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t1",
".",
"register_year",
"=",
"value",
"group",... | [
"What",
"is",
"the",
"name",
"and",
"opening",
"year",
"for",
"the",
"branch",
"that",
"registered",
"the",
"most",
"members",
"in",
"2016",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"for",
"the",
"<mask>",
"that",
"<mask>",
"the",
"most",
"<mask>",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"group",
"by... |
shop_membership | SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016 | Show the member name and hometown who registered a branch in 2016. | [
"SELECT",
"T2.name",
",",
"T2.hometown",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"member",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_id",
"WHERE",
"T1.register_year",
"=",
"2016"
] | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"hometown",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"member",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_id",
"where",
"t1",
".",
"register_year",
"=",
"value"
] | [
"Show",
"the",
"member",
"name",
"and",
"hometown",
"who",
"registered",
"a",
"branch",
"in",
"2016",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"who",
"<mask>",
"a",
"<mask>",
"in",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016 | What are the member names and hometowns of those who registered at a branch in 2016? | [
"SELECT",
"T2.name",
",",
"T2.hometown",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"member",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_id",
"WHERE",
"T1.register_year",
"=",
"2016"
] | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"hometown",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"member",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_id",
"where",
"t1",
".",
"register_year",
"=",
"value"
] | [
"What",
"are",
"the",
"member",
"names",
"and",
"hometowns",
"of",
"those",
"who",
"registered",
"at",
"a",
"branch",
"in",
"2016",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"those",
"who",
"<mask>",
"at",
"a",
"<mask>",
"in",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 | Show all city with a branch opened in 2001 and a branch with more than 100 membership. | [
"SELECT",
"city",
"FROM",
"branch",
"WHERE",
"open_year",
"=",
"2001",
"AND",
"membership_amount",
">",
"100"
] | [
"select",
"city",
"from",
"branch",
"where",
"open_year",
"=",
"value",
"and",
"membership_amount",
">",
"value"
] | [
"Show",
"all",
"city",
"with",
"a",
"branch",
"opened",
"in",
"2001",
"and",
"a",
"branch",
"with",
"more",
"than",
"100",
"membership",
"."
] | [
"Show",
"all",
"<mask>",
"with",
"a",
"<mask>",
"<mask>",
"in",
"<unk>",
"and",
"a",
"<mask>",
"with",
"more",
"than",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
">",
"<unk>"
] |
shop_membership | SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 | What are the cities that have a branch that opened in 2001 and a branch with more than 100 members? | [
"SELECT",
"city",
"FROM",
"branch",
"WHERE",
"open_year",
"=",
"2001",
"AND",
"membership_amount",
">",
"100"
] | [
"select",
"city",
"from",
"branch",
"where",
"open_year",
"=",
"value",
"and",
"membership_amount",
">",
"value"
] | [
"What",
"are",
"the",
"cities",
"that",
"have",
"a",
"branch",
"that",
"opened",
"in",
"2001",
"and",
"a",
"branch",
"with",
"more",
"than",
"100",
"members",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"that",
"have",
"a",
"<mask>",
"that",
"<mask>",
"in",
"<unk>",
"and",
"a",
"<mask>",
"with",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
">",
"<unk>"
] |
shop_membership | SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 | Show all cities without a branch having more than 100 memberships. | [
"SELECT",
"city",
"FROM",
"branch",
"EXCEPT",
"SELECT",
"city",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"100"
] | [
"select",
"city",
"from",
"branch",
"except",
"select",
"city",
"from",
"branch",
"where",
"membership_amount",
">",
"value"
] | [
"Show",
"all",
"cities",
"without",
"a",
"branch",
"having",
"more",
"than",
"100",
"memberships",
"."
] | [
"Show",
"all",
"<mask>",
"without",
"a",
"<mask>",
"having",
"more",
"than",
"<unk>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
shop_membership | SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 | What are the cities that do not have any branches with more than 100 members? | [
"SELECT",
"city",
"FROM",
"branch",
"EXCEPT",
"SELECT",
"city",
"FROM",
"branch",
"WHERE",
"membership_amount",
">",
"100"
] | [
"select",
"city",
"from",
"branch",
"except",
"select",
"city",
"from",
"branch",
"where",
"membership_amount",
">",
"value"
] | [
"What",
"are",
"the",
"cities",
"that",
"do",
"not",
"have",
"any",
"branches",
"with",
"more",
"than",
"100",
"members",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"that",
"do",
"not",
"have",
"any",
"<mask>",
"with",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
shop_membership | SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 | What is the sum of total pounds of purchase in year 2018 for all branches in London? | [
"SELECT",
"sum",
"(",
"total_pounds",
")",
"FROM",
"purchase",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T2.city",
"=",
"'London",
"'",
"AND",
"T1.year",
"=",
"2018"
] | [
"select",
"sum",
"(",
"total_pounds",
")",
"from",
"purchase",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t2",
".",
"city",
"=",
"value",
"and",
"t1",
".",
"year",
"=",
"value"
] | [
"What",
"is",
"the",
"sum",
"of",
"total",
"pounds",
"of",
"purchase",
"in",
"year",
"2018",
"for",
"all",
"branches",
"in",
"London",
"?"
] | [
"What",
"is",
"the",
"sum",
"of",
"<mask>",
"pounds",
"of",
"<mask>",
"in",
"<mask>",
"<unk>",
"for",
"all",
"<mask>",
"in",
"London",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
shop_membership | SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 | How many total pounds were purchased in the year 2018 at all London branches? | [
"SELECT",
"sum",
"(",
"total_pounds",
")",
"FROM",
"purchase",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"WHERE",
"T2.city",
"=",
"'London",
"'",
"AND",
"T1.year",
"=",
"2018"
] | [
"select",
"sum",
"(",
"total_pounds",
")",
"from",
"purchase",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"where",
"t2",
".",
"city",
"=",
"value",
"and",
"t1",
".",
"year",
"=",
"value"
] | [
"How",
"many",
"total",
"pounds",
"were",
"purchased",
"in",
"the",
"year",
"2018",
"at",
"all",
"London",
"branches",
"?"
] | [
"How",
"many",
"<mask>",
"pounds",
"were",
"<mask>",
"in",
"the",
"<mask>",
"<unk>",
"at",
"all",
"London",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
shop_membership | SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 | What is the total number of purchases for members with level 6? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"purchase",
"AS",
"T1",
"JOIN",
"member",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_id",
"WHERE",
"T2.level",
"=",
"6"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"purchase",
"as",
"t1",
"join",
"member",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_id",
"where",
"t2",
".",
"level",
"=",
"value"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"purchases",
"for",
"members",
"with",
"level",
"6",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"for",
"<mask>",
"with",
"<mask>",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 | What are the total purchases for members rated at level 6? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"purchase",
"AS",
"T1",
"JOIN",
"member",
"AS",
"T2",
"ON",
"T1.member_id",
"=",
"T2.member_id",
"WHERE",
"T2.level",
"=",
"6"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"purchase",
"as",
"t1",
"join",
"member",
"as",
"t2",
"on",
"t1",
".",
"member_id",
"=",
"t2",
".",
"member_id",
"where",
"t2",
".",
"level",
"=",
"value"
] | [
"What",
"are",
"the",
"total",
"purchases",
"for",
"members",
"rated",
"at",
"level",
"6",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"for",
"<mask>",
"rated",
"at",
"<mask>",
"<unk>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
shop_membership | SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN... | Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia. | [
"SELECT",
"T2.name",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"JOIN",
"member",
"AS",
"T3",
"ON",
"T1.member_id",
"=",
"T3.member_id",
"WHERE",
"T3.Hometown",
"=",
"'Louisville",
","... | [
"select",
"t2",
".",
"name",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"join",
"member",
"as",
"t3",
"on",
"t1",
".",
"member_id",
"=",
"t3",
".",
"member_id... | [
"Find",
"the",
"name",
"of",
"branches",
"where",
"have",
"some",
"members",
"whose",
"hometown",
"is",
"in",
"Louisville",
",",
"Kentucky",
"and",
"some",
"in",
"Hiram",
",",
"Georgia",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"where",
"have",
"some",
"<mask>",
"whose",
"<mask>",
"is",
"in",
"Louisville",
",",
"Kentucky",
"and",
"some",
"in",
"Hiram",
",",
"Georgia",
"."
] | [
"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... |
shop_membership | SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN... | What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia? | [
"SELECT",
"T2.name",
"FROM",
"membership_register_branch",
"AS",
"T1",
"JOIN",
"branch",
"AS",
"T2",
"ON",
"T1.branch_id",
"=",
"T2.branch_id",
"JOIN",
"member",
"AS",
"T3",
"ON",
"T1.member_id",
"=",
"T3.member_id",
"WHERE",
"T3.Hometown",
"=",
"'Louisville",
","... | [
"select",
"t2",
".",
"name",
"from",
"membership_register_branch",
"as",
"t1",
"join",
"branch",
"as",
"t2",
"on",
"t1",
".",
"branch_id",
"=",
"t2",
".",
"branch_id",
"join",
"member",
"as",
"t3",
"on",
"t1",
".",
"member_id",
"=",
"t3",
".",
"member_id... | [
"What",
"are",
"the",
"names",
"of",
"the",
"branches",
"that",
"have",
"some",
"members",
"with",
"a",
"hometown",
"in",
"Louisville",
",",
"Kentucky",
"and",
"also",
"those",
"from",
"Hiram",
",",
"Goergia",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"some",
"<mask>",
"with",
"a",
"<mask>",
"in",
"Louisville",
",",
"Kentucky",
"and",
"also",
"those",
"from",
"Hiram",
",",
"Goergia",
"?"
] | [
"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... |
shop_membership | SELECT card_number FROM member WHERE Hometown LIKE "%Kentucky%" | list the card number of all members whose hometown address includes word "Kentucky". | [
"SELECT",
"card_number",
"FROM",
"member",
"WHERE",
"Hometown",
"LIKE",
"``",
"%",
"Kentucky",
"%",
"''"
] | [
"select",
"card_number",
"from",
"member",
"where",
"hometown",
"like",
"value"
] | [
"list",
"the",
"card",
"number",
"of",
"all",
"members",
"whose",
"hometown",
"address",
"includes",
"word",
"``",
"Kentucky",
"''",
"."
] | [
"list",
"the",
"<mask>",
"<mask>",
"of",
"all",
"<mask>",
"whose",
"<mask>",
"<mask>",
"includes",
"word",
"``",
"Kentucky",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
shop_membership | SELECT card_number FROM member WHERE Hometown LIKE "%Kentucky%" | What are the card numbers of members from Kentucky? | [
"SELECT",
"card_number",
"FROM",
"member",
"WHERE",
"Hometown",
"LIKE",
"``",
"%",
"Kentucky",
"%",
"''"
] | [
"select",
"card_number",
"from",
"member",
"where",
"hometown",
"like",
"value"
] | [
"What",
"are",
"the",
"card",
"numbers",
"of",
"members",
"from",
"Kentucky",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"from",
"Kentucky",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
voter_2 | SELECT count(*) FROM STUDENT | Find the number of students in total. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student"
] | [
"Find",
"the",
"number",
"of",
"students",
"in",
"total",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"in",
"total",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
voter_2 | SELECT count(*) FROM STUDENT | How many students are there in total? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student"
] | [
"How",
"many",
"students",
"are",
"there",
"in",
"total",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"in",
"total",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
voter_2 | SELECT count(*) FROM VOTING_RECORD | Find the number of voting records in total. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"VOTING_RECORD"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"voting_record"
] | [
"Find",
"the",
"number",
"of",
"voting",
"records",
"in",
"total",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"<mask>",
"in",
"total",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
voter_2 | SELECT count(*) FROM VOTING_RECORD | How many voting records do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"VOTING_RECORD"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"voting_record"
] | [
"How",
"many",
"voting",
"records",
"do",
"we",
"have",
"?"
] | [
"How",
"many",
"<mask>",
"<mask>",
"do",
"we",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
voter_2 | SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD | Find the distinct number of president votes. | [
"SELECT",
"count",
"(",
"DISTINCT",
"President_Vote",
")",
"FROM",
"VOTING_RECORD"
] | [
"select",
"count",
"(",
"distinct",
"president_vote",
")",
"from",
"voting_record"
] | [
"Find",
"the",
"distinct",
"number",
"of",
"president",
"votes",
"."
] | [
"Find",
"the",
"distinct",
"number",
"of",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
voter_2 | SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD | How many distinct president votes are recorded? | [
"SELECT",
"count",
"(",
"DISTINCT",
"President_Vote",
")",
"FROM",
"VOTING_RECORD"
] | [
"select",
"count",
"(",
"distinct",
"president_vote",
")",
"from",
"voting_record"
] | [
"How",
"many",
"distinct",
"president",
"votes",
"are",
"recorded",
"?"
] | [
"How",
"many",
"distinct",
"<mask>",
"<mask>",
"are",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
voter_2 | SELECT max(Age) FROM STUDENT | Find the maximum age of all the students. | [
"SELECT",
"max",
"(",
"Age",
")",
"FROM",
"STUDENT"
] | [
"select",
"max",
"(",
"age",
")",
"from",
"student"
] | [
"Find",
"the",
"maximum",
"age",
"of",
"all",
"the",
"students",
"."
] | [
"Find",
"the",
"maximum",
"<mask>",
"of",
"all",
"the",
"<mask>",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
voter_2 | SELECT max(Age) FROM STUDENT | What is the oldest age among the students? | [
"SELECT",
"max",
"(",
"Age",
")",
"FROM",
"STUDENT"
] | [
"select",
"max",
"(",
"age",
")",
"from",
"student"
] | [
"What",
"is",
"the",
"oldest",
"age",
"among",
"the",
"students",
"?"
] | [
"What",
"is",
"the",
"oldest",
"<mask>",
"among",
"the",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
voter_2 | SELECT LName FROM STUDENT WHERE Major = 50 | Find the last names of students with major 50. | [
"SELECT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Major",
"=",
"50"
] | [
"select",
"lname",
"from",
"student",
"where",
"major",
"=",
"value"
] | [
"Find",
"the",
"last",
"names",
"of",
"students",
"with",
"major",
"50",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"with",
"<mask>",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT LName FROM STUDENT WHERE Major = 50 | What are the last names of students studying major 50? | [
"SELECT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Major",
"=",
"50"
] | [
"select",
"lname",
"from",
"student",
"where",
"major",
"=",
"value"
] | [
"What",
"are",
"the",
"last",
"names",
"of",
"students",
"studying",
"major",
"50",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"studying",
"<mask>",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT Fname FROM STUDENT WHERE Age > 22 | Find the first names of students with age above 22. | [
"SELECT",
"Fname",
"FROM",
"STUDENT",
"WHERE",
"Age",
">",
"22"
] | [
"select",
"fname",
"from",
"student",
"where",
"age",
">",
"value"
] | [
"Find",
"the",
"first",
"names",
"of",
"students",
"with",
"age",
"above",
"22",
"."
] | [
"Find",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"with",
"<mask>",
"above",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
voter_2 | SELECT Fname FROM STUDENT WHERE Age > 22 | What are the first names of all the students aged above 22? | [
"SELECT",
"Fname",
"FROM",
"STUDENT",
"WHERE",
"Age",
">",
"22"
] | [
"select",
"fname",
"from",
"student",
"where",
"age",
">",
"value"
] | [
"What",
"are",
"the",
"first",
"names",
"of",
"all",
"the",
"students",
"aged",
"above",
"22",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"aged",
"above",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
voter_2 | SELECT Major FROM STUDENT WHERE Sex = "M" | What are the majors of male (sex is M) students? | [
"SELECT",
"Major",
"FROM",
"STUDENT",
"WHERE",
"Sex",
"=",
"``",
"M",
"''"
] | [
"select",
"major",
"from",
"student",
"where",
"sex",
"=",
"value"
] | [
"What",
"are",
"the",
"majors",
"of",
"male",
"(",
"sex",
"is",
"M",
")",
"students",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"male",
"(",
"<mask>",
"is",
"M",
")",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT Major FROM STUDENT WHERE Sex = "M" | List the major of each male student. | [
"SELECT",
"Major",
"FROM",
"STUDENT",
"WHERE",
"Sex",
"=",
"``",
"M",
"''"
] | [
"select",
"major",
"from",
"student",
"where",
"sex",
"=",
"value"
] | [
"List",
"the",
"major",
"of",
"each",
"male",
"student",
"."
] | [
"List",
"the",
"<mask>",
"of",
"each",
"male",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT avg(Age) FROM STUDENT WHERE Sex = "F" | What is the average age of female (sex is F) students? | [
"SELECT",
"avg",
"(",
"Age",
")",
"FROM",
"STUDENT",
"WHERE",
"Sex",
"=",
"``",
"F",
"''"
] | [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"sex",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"age",
"of",
"female",
"(",
"sex",
"is",
"F",
")",
"students",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"female",
"(",
"<mask>",
"is",
"F",
")",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT avg(Age) FROM STUDENT WHERE Sex = "F" | Find the average age of female students. | [
"SELECT",
"avg",
"(",
"Age",
")",
"FROM",
"STUDENT",
"WHERE",
"Sex",
"=",
"``",
"F",
"''"
] | [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"sex",
"=",
"value"
] | [
"Find",
"the",
"average",
"age",
"of",
"female",
"students",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"of",
"female",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600 | What are the maximum and minimum age of students with major 600? | [
"SELECT",
"max",
"(",
"Age",
")",
",",
"min",
"(",
"Age",
")",
"FROM",
"STUDENT",
"WHERE",
"Major",
"=",
"600"
] | [
"select",
"max",
"(",
"age",
")",
",",
"min",
"(",
"age",
")",
"from",
"student",
"where",
"major",
"=",
"value"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"age",
"of",
"students",
"with",
"major",
"600",
"?"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"<mask>",
"of",
"<mask>",
"with",
"<mask>",
"<unk>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600 | Tell me the ages of the oldest and youngest students studying major 600. | [
"SELECT",
"max",
"(",
"Age",
")",
",",
"min",
"(",
"Age",
")",
"FROM",
"STUDENT",
"WHERE",
"Major",
"=",
"600"
] | [
"select",
"max",
"(",
"age",
")",
",",
"min",
"(",
"age",
")",
"from",
"student",
"where",
"major",
"=",
"value"
] | [
"Tell",
"me",
"the",
"ages",
"of",
"the",
"oldest",
"and",
"youngest",
"students",
"studying",
"major",
"600",
"."
] | [
"Tell",
"me",
"the",
"<mask>",
"of",
"the",
"oldest",
"and",
"youngest",
"<mask>",
"studying",
"<mask>",
"<unk>",
"."
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT Advisor FROM STUDENT WHERE city_code = "BAL" | Who are the advisors for students that live in a city with city code "BAL"? | [
"SELECT",
"Advisor",
"FROM",
"STUDENT",
"WHERE",
"city_code",
"=",
"``",
"BAL",
"''"
] | [
"select",
"advisor",
"from",
"student",
"where",
"city_code",
"=",
"value"
] | [
"Who",
"are",
"the",
"advisors",
"for",
"students",
"that",
"live",
"in",
"a",
"city",
"with",
"city",
"code",
"``",
"BAL",
"''",
"?"
] | [
"Who",
"are",
"the",
"<mask>",
"for",
"<mask>",
"that",
"live",
"in",
"a",
"<mask>",
"with",
"<mask>",
"<mask>",
"``",
"BAL",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT Advisor FROM STUDENT WHERE city_code = "BAL" | Show the advisors of the students whose city of residence has city code "BAL". | [
"SELECT",
"Advisor",
"FROM",
"STUDENT",
"WHERE",
"city_code",
"=",
"``",
"BAL",
"''"
] | [
"select",
"advisor",
"from",
"student",
"where",
"city_code",
"=",
"value"
] | [
"Show",
"the",
"advisors",
"of",
"the",
"students",
"whose",
"city",
"of",
"residence",
"has",
"city",
"code",
"``",
"BAL",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"the",
"<mask>",
"whose",
"<mask>",
"of",
"residence",
"has",
"<mask>",
"<mask>",
"``",
"BAL",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall" | What are the distinct secretary votes in the fall election cycle? | [
"SELECT",
"DISTINCT",
"Secretary_Vote",
"FROM",
"VOTING_RECORD",
"WHERE",
"ELECTION_CYCLE",
"=",
"``",
"Fall",
"''"
] | [
"select",
"distinct",
"secretary_vote",
"from",
"voting_record",
"where",
"election_cycle",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"secretary",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall" | Return all the distinct secretary votes made in the fall election cycle. | [
"SELECT",
"DISTINCT",
"Secretary_Vote",
"FROM",
"VOTING_RECORD",
"WHERE",
"ELECTION_CYCLE",
"=",
"``",
"Fall",
"''"
] | [
"select",
"distinct",
"secretary_vote",
"from",
"voting_record",
"where",
"election_cycle",
"=",
"value"
] | [
"Return",
"all",
"the",
"distinct",
"secretary",
"votes",
"made",
"in",
"the",
"fall",
"election",
"cycle",
"."
] | [
"Return",
"all",
"the",
"distinct",
"<mask>",
"<mask>",
"made",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015" | What are the distinct president votes on 08/30/2015? | [
"SELECT",
"DISTINCT",
"PRESIDENT_Vote",
"FROM",
"VOTING_RECORD",
"WHERE",
"Registration_Date",
"=",
"``",
"08/30/2015",
"''"
] | [
"select",
"distinct",
"president_vote",
"from",
"voting_record",
"where",
"registration_date",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"president",
"votes",
"on",
"08/30/2015",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"on",
"08/30/2015",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015" | Show all the distinct president votes made on 08/30/2015. | [
"SELECT",
"DISTINCT",
"PRESIDENT_Vote",
"FROM",
"VOTING_RECORD",
"WHERE",
"Registration_Date",
"=",
"``",
"08/30/2015",
"''"
] | [
"select",
"distinct",
"president_vote",
"from",
"voting_record",
"where",
"registration_date",
"=",
"value"
] | [
"Show",
"all",
"the",
"distinct",
"president",
"votes",
"made",
"on",
"08/30/2015",
"."
] | [
"Show",
"all",
"the",
"distinct",
"<mask>",
"<mask>",
"made",
"on",
"08/30/2015",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD | Report the distinct registration date and the election cycle. | [
"SELECT",
"DISTINCT",
"Registration_Date",
",",
"Election_Cycle",
"FROM",
"VOTING_RECORD"
] | [
"select",
"distinct",
"registration_date",
",",
"election_cycle",
"from",
"voting_record"
] | [
"Report",
"the",
"distinct",
"registration",
"date",
"and",
"the",
"election",
"cycle",
"."
] | [
"Report",
"the",
"distinct",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
voter_2 | SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD | What are the distinct registration dates and the election cycles? | [
"SELECT",
"DISTINCT",
"Registration_Date",
",",
"Election_Cycle",
"FROM",
"VOTING_RECORD"
] | [
"select",
"distinct",
"registration_date",
",",
"election_cycle",
"from",
"voting_record"
] | [
"What",
"are",
"the",
"distinct",
"registration",
"dates",
"and",
"the",
"election",
"cycles",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
voter_2 | SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD | Report the distinct president vote and the vice president vote. | [
"SELECT",
"DISTINCT",
"President_Vote",
",",
"VICE_President_Vote",
"FROM",
"VOTING_RECORD"
] | [
"select",
"distinct",
"president_vote",
",",
"vice_president_vote",
"from",
"voting_record"
] | [
"Report",
"the",
"distinct",
"president",
"vote",
"and",
"the",
"vice",
"president",
"vote",
"."
] | [
"Report",
"the",
"distinct",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
voter_2 | SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD | List all the distinct president votes and the vice president votes. | [
"SELECT",
"DISTINCT",
"President_Vote",
",",
"VICE_President_Vote",
"FROM",
"VOTING_RECORD"
] | [
"select",
"distinct",
"president_vote",
",",
"vice_president_vote",
"from",
"voting_record"
] | [
"List",
"all",
"the",
"distinct",
"president",
"votes",
"and",
"the",
"vice",
"president",
"votes",
"."
] | [
"List",
"all",
"the",
"distinct",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE | Find the distinct last names of the students who have class president votes. | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.CLASS_President_VOTE"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"class_president_vote"
] | [
"Find",
"the",
"distinct",
"last",
"names",
"of",
"the",
"students",
"who",
"have",
"class",
"president",
"votes",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE | What are the distinct last names of the students who have class president votes? | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.CLASS_President_VOTE"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"class_president_vote"
] | [
"What",
"are",
"the",
"distinct",
"last",
"names",
"of",
"the",
"students",
"who",
"have",
"class",
"president",
"votes",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE | Find the distinct first names of the students who have class senator votes. | [
"SELECT",
"DISTINCT",
"T1.Fname",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.CLASS_Senator_VOTE"
] | [
"select",
"distinct",
"t1",
".",
"fname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"class_senator_vote"
] | [
"Find",
"the",
"distinct",
"first",
"names",
"of",
"the",
"students",
"who",
"have",
"class",
"senator",
"votes",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE | What are the distinct first names of the students who have class president votes? | [
"SELECT",
"DISTINCT",
"T1.Fname",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.CLASS_Senator_VOTE"
] | [
"select",
"distinct",
"t1",
".",
"fname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"class_senator_vote"
] | [
"What",
"are",
"the",
"distinct",
"first",
"names",
"of",
"the",
"students",
"who",
"have",
"class",
"president",
"votes",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = "Fall" | Find the distinct ages of students who have secretary votes in the fall election cycle. | [
"SELECT",
"DISTINCT",
"T1.Age",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Secretary_Vote",
"WHERE",
"T2.Election_Cycle",
"=",
"``",
"Fall",
"''"
] | [
"select",
"distinct",
"t1",
".",
"age",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"secretary_vote",
"where",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Find",
"the",
"distinct",
"ages",
"of",
"students",
"who",
"have",
"secretary",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = "Fall" | What are the distinct ages of students who have secretary votes in the fall election cycle? | [
"SELECT",
"DISTINCT",
"T1.Age",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Secretary_Vote",
"WHERE",
"T2.Election_Cycle",
"=",
"``",
"Fall",
"''"
] | [
"select",
"distinct",
"t1",
".",
"age",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"secretary_vote",
"where",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"ages",
"of",
"students",
"who",
"have",
"secretary",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring" | Find the distinct Advisor of students who have treasurer votes in the spring election cycle. | [
"SELECT",
"DISTINCT",
"T1.Advisor",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Treasurer_Vote",
"WHERE",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"distinct",
"t1",
".",
"advisor",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"treasurer_vote",
"where",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Find",
"the",
"distinct",
"Advisor",
"of",
"students",
"who",
"have",
"treasurer",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
"Find",
"the",
"distinct",
"Advisor",
"of",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring" | Who served as an advisor for students who have treasurer votes in the spring election cycle? | [
"SELECT",
"DISTINCT",
"T1.Advisor",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Treasurer_Vote",
"WHERE",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"distinct",
"t1",
".",
"advisor",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"treasurer_vote",
"where",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Who",
"served",
"as",
"an",
"advisor",
"for",
"students",
"who",
"have",
"treasurer",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"?"
] | [
"Who",
"served",
"as",
"an",
"<mask>",
"for",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote | Find the distinct majors of students who have treasurer votes. | [
"SELECT",
"DISTINCT",
"T1.Major",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Treasurer_Vote"
] | [
"select",
"distinct",
"t1",
".",
"major",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"treasurer_vote"
] | [
"Find",
"the",
"distinct",
"majors",
"of",
"students",
"who",
"have",
"treasurer",
"votes",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote | What are the distinct majors that students with treasurer votes are studying? | [
"SELECT",
"DISTINCT",
"T1.Major",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.Treasurer_Vote"
] | [
"select",
"distinct",
"t1",
".",
"major",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"treasurer_vote"
] | [
"What",
"are",
"the",
"distinct",
"majors",
"that",
"students",
"with",
"treasurer",
"votes",
"are",
"studying",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"that",
"<mask>",
"with",
"<mask>",
"<mask>",
"are",
"studying",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
voter_2 | SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F" | Find the first and last names of all the female (sex is F) students who have president votes. | [
"SELECT",
"DISTINCT",
"T1.Fname",
",",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.President_VOTE",
"WHERE",
"T1.sex",
"=",
"``",
"F",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"president_vote",
"where",
"t1",
".",
"sex",
"=",
"value"
] | [
"Find",
"the",
"first",
"and",
"last",
"names",
"of",
"all",
"the",
"female",
"(",
"sex",
"is",
"F",
")",
"students",
"who",
"have",
"president",
"votes",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"female",
"(",
"<mask>",
"is",
"F",
")",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F" | What are the first and last names of all the female students who have president votes? | [
"SELECT",
"DISTINCT",
"T1.Fname",
",",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.President_VOTE",
"WHERE",
"T1.sex",
"=",
"``",
"F",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"president_vote",
"where",
"t1",
".",
"sex",
"=",
"value"
] | [
"What",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"all",
"the",
"female",
"students",
"who",
"have",
"president",
"votes",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"female",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18 | Find the first and last name of all the students of age 18 who have vice president votes. | [
"SELECT",
"DISTINCT",
"T1.Fname",
",",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.VICE_President_VOTE",
"WHERE",
"T1.age",
"=",
"18"
] | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"vice_president_vote",
"where",
"t1",
".",
"age",
"=",
"value"
] | [
"Find",
"the",
"first",
"and",
"last",
"name",
"of",
"all",
"the",
"students",
"of",
"age",
"18",
"who",
"have",
"vice",
"president",
"votes",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"of",
"<mask>",
"<unk>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18 | What are the first names and last names of the students who are 18 years old and have vice president votes. | [
"SELECT",
"DISTINCT",
"T1.Fname",
",",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.VICE_President_VOTE",
"WHERE",
"T1.age",
"=",
"18"
] | [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"vice_president_vote",
"where",
"t1",
".",
"age",
"=",
"value"
] | [
"What",
"are",
"the",
"first",
"names",
"and",
"last",
"names",
"of",
"the",
"students",
"who",
"are",
"18",
"years",
"old",
"and",
"have",
"vice",
"president",
"votes",
"."
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"are",
"<unk>",
"years",
"old",
"and",
"have",
"<mask>",
"<mask>",
"<mask>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall" | How many male (sex is M) students have class senator votes in the fall election cycle? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"Class_Senator_Vote",
"WHERE",
"T1.Sex",
"=",
"``",
"M",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Fall",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"class_senator_vote",
"where",
"t1",
".",
"sex",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"How",
"many",
"male",
"(",
"sex",
"is",
"M",
")",
"students",
"have",
"class",
"senator",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"?"
] | [
"How",
"many",
"male",
"(",
"<mask>",
"is",
"M",
")",
"<mask>",
"have",
"<mask>",
"<mask>",
"<mask>",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall" | Count the number of male students who had class senator votes in the fall election cycle. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"Class_Senator_Vote",
"WHERE",
"T1.Sex",
"=",
"``",
"M",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Fall",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"class_senator_vote",
"where",
"t1",
".",
"sex",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"male",
"students",
"who",
"had",
"class",
"senator",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"."
] | [
"Count",
"the",
"number",
"of",
"male",
"<mask>",
"who",
"had",
"<mask>",
"<mask>",
"<mask>",
"in",
"the",
"fall",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"Class_Senator_Vote",
"WHERE",
"T1.city_code",
"=",
"``",
"NYC",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"class_senator_vote",
"where",
"t1",
".",
"city_code",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"students",
"whose",
"city",
"code",
"is",
"NYC",
"and",
"who",
"have",
"class",
"senator",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"NYC",
"and",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"Class_Senator_Vote",
"WHERE",
"T1.city_code",
"=",
"``",
"NYC",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"class_senator_vote",
"where",
"t1",
".",
"city_code",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
] | [
"Which",
"students",
"live",
"in",
"the",
"city",
"with",
"code",
"``",
"NYC",
"''",
"and",
"have",
"class",
"senator",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"?",
"Count",
"the",
"numbers",
"."
] | [
"Which",
"<mask>",
"live",
"in",
"the",
"<mask>",
"with",
"<mask>",
"``",
"NYC",
"''",
"and",
"have",
"<mask>",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"?",
"Count",
"the",
"numbers",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle. | [
"SELECT",
"avg",
"(",
"T1.Age",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"SECRETARY_Vote",
"WHERE",
"T1.city_code",
"=",
"``",
"NYC",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"avg",
"(",
"t1",
".",
"age",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"secretary_vote",
"where",
"t1",
".",
"city_code",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"v... | [
"Find",
"the",
"average",
"age",
"of",
"students",
"who",
"live",
"in",
"the",
"city",
"with",
"code",
"``",
"NYC",
"''",
"and",
"have",
"secretary",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"of",
"<mask>",
"who",
"live",
"in",
"the",
"<mask>",
"with",
"<mask>",
"``",
"NYC",
"''",
"and",
"have",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
voter_2 | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle? | [
"SELECT",
"avg",
"(",
"T1.Age",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"SECRETARY_Vote",
"WHERE",
"T1.city_code",
"=",
"``",
"NYC",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"avg",
"(",
"t1",
".",
"age",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"secretary_vote",
"where",
"t1",
".",
"city_code",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"v... | [
"What",
"is",
"the",
"average",
"age",
"of",
"students",
"who",
"have",
"city",
"code",
"``",
"NYC",
"''",
"and",
"have",
"secretary",
"votes",
"for",
"the",
"spring",
"election",
"cycle",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"``",
"NYC",
"''",
"and",
"have",
"<mask>",
"<mask>",
"for",
"the",
"spring",
"<mask>",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
voter_2 | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring" | Find the average age of female (sex is F) students who have secretary votes in the spring election cycle. | [
"SELECT",
"avg",
"(",
"T1.Age",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"SECRETARY_Vote",
"WHERE",
"T1.Sex",
"=",
"``",
"F",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"avg",
"(",
"t1",
".",
"age",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"secretary_vote",
"where",
"t1",
".",
"sex",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
... | [
"Find",
"the",
"average",
"age",
"of",
"female",
"(",
"sex",
"is",
"F",
")",
"students",
"who",
"have",
"secretary",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
"Find",
"the",
"average",
"<mask>",
"of",
"female",
"(",
"<mask>",
"is",
"F",
")",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
voter_2 | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring" | What is the average age of the female students with secretary votes in the spring election cycle? | [
"SELECT",
"avg",
"(",
"T1.Age",
")",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"SECRETARY_Vote",
"WHERE",
"T1.Sex",
"=",
"``",
"F",
"''",
"AND",
"T2.Election_Cycle",
"=",
"``",
"Spring",
"''"
] | [
"select",
"avg",
"(",
"t1",
".",
"age",
")",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"secretary_vote",
"where",
"t1",
".",
"sex",
"=",
"value",
"and",
"t2",
".",
"election_cycle",
"=",
"value"
... | [
"What",
"is",
"the",
"average",
"age",
"of",
"the",
"female",
"students",
"with",
"secretary",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"the",
"female",
"<mask>",
"with",
"<mask>",
"<mask>",
"in",
"the",
"spring",
"<mask>",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"... |
voter_2 | SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT" | Find the distinct first names of all the students who have vice president votes and whose city code is not PIT. | [
"SELECT",
"DISTINCT",
"T1.Fname",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.VICE_PRESIDENT_Vote",
"EXCEPT",
"SELECT",
"DISTINCT",
"Fname",
"FROM",
"STUDENT",
"WHERE",
"city_code",
"=",
"``",
"PIT",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"vice_president_vote",
"except",
"select",
"distinct",
"fname",
"from",
"student",
"where",
"city_code",
"... | [
"Find",
"the",
"distinct",
"first",
"names",
"of",
"all",
"the",
"students",
"who",
"have",
"vice",
"president",
"votes",
"and",
"whose",
"city",
"code",
"is",
"not",
"PIT",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"and",
"whose",
"<mask>",
"<mask>",
"is",
"not",
"PIT",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"except",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"="... |
voter_2 | SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT" | What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT? | [
"SELECT",
"DISTINCT",
"T1.Fname",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.VICE_PRESIDENT_Vote",
"EXCEPT",
"SELECT",
"DISTINCT",
"Fname",
"FROM",
"STUDENT",
"WHERE",
"city_code",
"=",
"``",
"PIT",
"''"
] | [
"select",
"distinct",
"t1",
".",
"fname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"vice_president_vote",
"except",
"select",
"distinct",
"fname",
"from",
"student",
"where",
"city_code",
"... | [
"What",
"are",
"the",
"distinct",
"first",
"names",
"of",
"the",
"students",
"who",
"have",
"vice",
"president",
"votes",
"and",
"reside",
"in",
"a",
"city",
"whose",
"city",
"code",
"is",
"not",
"PIT",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"<mask>",
"and",
"reside",
"in",
"a",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"not",
"PIT",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"except",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"="... |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192" | Find the distinct last names of all the students who have president votes and whose advisor is not 2192. | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"PRESIDENT_Vote",
"EXCEPT",
"SELECT",
"DISTINCT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Advisor",
"=",
"``",
"2192",
"''"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"president_vote",
"except",
"select",
"distinct",
"lname",
"from",
"student",
"where",
"advisor",
"=",
"value"
] | [
"Find",
"the",
"distinct",
"last",
"names",
"of",
"all",
"the",
"students",
"who",
"have",
"president",
"votes",
"and",
"whose",
"advisor",
"is",
"not",
"2192",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"and",
"whose",
"<mask>",
"is",
"not",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"except",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192" | What are the distinct last names of the students who have president votes but do not have 2192 as the advisor? | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"PRESIDENT_Vote",
"EXCEPT",
"SELECT",
"DISTINCT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Advisor",
"=",
"``",
"2192",
"''"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"president_vote",
"except",
"select",
"distinct",
"lname",
"from",
"student",
"where",
"advisor",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"last",
"names",
"of",
"the",
"students",
"who",
"have",
"president",
"votes",
"but",
"do",
"not",
"have",
"2192",
"as",
"the",
"advisor",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"but",
"do",
"not",
"have",
"<unk>",
"as",
"the",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"except",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741" | Find the distinct last names of all the students who have president votes and whose advisor is 8741. | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"PRESIDENT_Vote",
"INTERSECT",
"SELECT",
"DISTINCT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Advisor",
"=",
"``",
"8741",
"''"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"president_vote",
"intersect",
"select",
"distinct",
"lname",
"from",
"student",
"where",
"advisor",
"=",
"value"
] | [
"Find",
"the",
"distinct",
"last",
"names",
"of",
"all",
"the",
"students",
"who",
"have",
"president",
"votes",
"and",
"whose",
"advisor",
"is",
"8741",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"all",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"and",
"whose",
"<mask>",
"is",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"intersect",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
voter_2 | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741" | What are the distinct last names of the students who have president votes and have 8741 as the advisor? | [
"SELECT",
"DISTINCT",
"T1.LName",
"FROM",
"STUDENT",
"AS",
"T1",
"JOIN",
"VOTING_RECORD",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"PRESIDENT_Vote",
"INTERSECT",
"SELECT",
"DISTINCT",
"LName",
"FROM",
"STUDENT",
"WHERE",
"Advisor",
"=",
"``",
"8741",
"''"
] | [
"select",
"distinct",
"t1",
".",
"lname",
"from",
"student",
"as",
"t1",
"join",
"voting_record",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"president_vote",
"intersect",
"select",
"distinct",
"lname",
"from",
"student",
"where",
"advisor",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"last",
"names",
"of",
"the",
"students",
"who",
"have",
"president",
"votes",
"and",
"have",
"8741",
"as",
"the",
"advisor",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"who",
"have",
"<mask>",
"<mask>",
"and",
"have",
"<unk>",
"as",
"the",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
"intersect",
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.